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
715 program_transform_name
728 enable_option_checking
733 enable_sim_decode_mechanism
734 enable_sim_default_model
741 enable_sim_hostbitsize
742 enable_sim_hostendian
748 enable_sim_model_issue
752 enable_sim_reserved_bits
759 enable_sim_xor_endian
765 ac_precious_vars
='build_alias
776 # Initialize some variables set by options.
778 ac_init_version
=false
779 ac_unrecognized_opts
=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
790 program_transform_name
=s
,x
,x
,
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir
='${exec_prefix}/bin'
805 sbindir
='${exec_prefix}/sbin'
806 libexecdir
='${exec_prefix}/libexec'
807 datarootdir
='${prefix}/share'
808 datadir
='${datarootdir}'
809 sysconfdir
='${prefix}/etc'
810 sharedstatedir
='${prefix}/com'
811 localstatedir
='${prefix}/var'
812 includedir
='${prefix}/include'
813 oldincludedir
='/usr/include'
814 docdir
='${datarootdir}/doc/${PACKAGE}'
815 infodir
='${datarootdir}/info'
820 libdir
='${exec_prefix}/lib'
821 localedir
='${datarootdir}/locale'
822 mandir
='${datarootdir}/man'
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\
$ac_option
836 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 # Accept the important Cygnus configure options, so we can diagnose typos.
842 case $ac_dashdash$ac_option in
846 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
848 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
851 -build |
--build |
--buil |
--bui |
--bu)
852 ac_prev
=build_alias
;;
853 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
854 build_alias
=$ac_optarg ;;
856 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
857 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
858 ac_prev
=cache_file
;;
859 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
860 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
861 cache_file
=$ac_optarg ;;
864 cache_file
=config.cache
;;
866 -datadir |
--datadir |
--datadi |
--datad)
868 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
869 datadir
=$ac_optarg ;;
871 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
872 |
--dataroo |
--dataro |
--datar)
873 ac_prev
=datarootdir
;;
874 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
875 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
876 datarootdir
=$ac_optarg ;;
878 -disable-* |
--disable-*)
879 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
882 as_fn_error
"invalid feature name: $ac_useropt"
883 ac_useropt_orig
=$ac_useropt
884 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
889 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890 ac_unrecognized_sep
=', ';;
892 eval enable_
$ac_useropt=no
;;
894 -docdir |
--docdir |
--docdi |
--doc |
--do)
896 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
899 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
901 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
904 -enable-* |
--enable-*)
905 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
908 as_fn_error
"invalid feature name: $ac_useropt"
909 ac_useropt_orig
=$ac_useropt
910 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
915 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916 ac_unrecognized_sep
=', ';;
918 eval enable_
$ac_useropt=\
$ac_optarg ;;
920 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
921 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
922 |
--exec |
--exe |
--ex)
923 ac_prev
=exec_prefix
;;
924 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
925 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
926 |
--exec=* |
--exe=* |
--ex=*)
927 exec_prefix
=$ac_optarg ;;
929 -gas |
--gas |
--ga |
--g)
930 # Obsolete; use --with-gas.
933 -help |
--help |
--hel |
--he |
-h)
935 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
936 ac_init_help
=recursive
;;
937 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
938 ac_init_help
=short
;;
940 -host |
--host |
--hos |
--ho)
941 ac_prev
=host_alias
;;
942 -host=* |
--host=* |
--hos=* |
--ho=*)
943 host_alias
=$ac_optarg ;;
945 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
947 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
949 htmldir
=$ac_optarg ;;
951 -includedir |
--includedir |
--includedi |
--included |
--include \
952 |
--includ |
--inclu |
--incl |
--inc)
953 ac_prev
=includedir
;;
954 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
955 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
956 includedir
=$ac_optarg ;;
958 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
960 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
961 infodir
=$ac_optarg ;;
963 -libdir |
--libdir |
--libdi |
--libd)
965 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
968 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
969 |
--libexe |
--libex |
--libe)
970 ac_prev
=libexecdir
;;
971 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
972 |
--libexe=* |
--libex=* |
--libe=*)
973 libexecdir
=$ac_optarg ;;
975 -localedir |
--localedir |
--localedi |
--localed |
--locale)
977 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
978 localedir
=$ac_optarg ;;
980 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
981 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
982 ac_prev
=localstatedir
;;
983 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
984 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
985 localstatedir
=$ac_optarg ;;
987 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
989 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
993 # Obsolete; use --without-fp.
996 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
997 |
--no-cr |
--no-c |
-n)
1000 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1001 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1004 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1005 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1006 |
--oldin |
--oldi |
--old |
--ol |
--o)
1007 ac_prev
=oldincludedir
;;
1008 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1009 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1010 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1011 oldincludedir
=$ac_optarg ;;
1013 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1015 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1016 prefix
=$ac_optarg ;;
1018 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1019 |
--program-pre |
--program-pr |
--program-p)
1020 ac_prev
=program_prefix
;;
1021 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1022 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1023 program_prefix
=$ac_optarg ;;
1025 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1026 |
--program-suf |
--program-su |
--program-s)
1027 ac_prev
=program_suffix
;;
1028 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1029 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1030 program_suffix
=$ac_optarg ;;
1032 -program-transform-name |
--program-transform-name \
1033 |
--program-transform-nam |
--program-transform-na \
1034 |
--program-transform-n |
--program-transform- \
1035 |
--program-transform |
--program-transfor \
1036 |
--program-transfo |
--program-transf \
1037 |
--program-trans |
--program-tran \
1038 |
--progr-tra |
--program-tr |
--program-t)
1039 ac_prev
=program_transform_name
;;
1040 -program-transform-name=* |
--program-transform-name=* \
1041 |
--program-transform-nam=* |
--program-transform-na=* \
1042 |
--program-transform-n=* |
--program-transform-=* \
1043 |
--program-transform=* |
--program-transfor=* \
1044 |
--program-transfo=* |
--program-transf=* \
1045 |
--program-trans=* |
--program-tran=* \
1046 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1047 program_transform_name
=$ac_optarg ;;
1049 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1051 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1052 pdfdir
=$ac_optarg ;;
1054 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1056 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1059 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1060 |
-silent |
--silent |
--silen |
--sile |
--sil)
1063 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1065 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1067 sbindir
=$ac_optarg ;;
1069 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1070 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1071 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1073 ac_prev
=sharedstatedir
;;
1074 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1075 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1076 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1078 sharedstatedir
=$ac_optarg ;;
1080 -site |
--site |
--sit)
1082 -site=* |
--site=* |
--sit=*)
1085 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1087 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1088 srcdir
=$ac_optarg ;;
1090 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1091 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1092 ac_prev
=sysconfdir
;;
1093 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1094 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1095 sysconfdir
=$ac_optarg ;;
1097 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1098 ac_prev
=target_alias
;;
1099 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1100 target_alias
=$ac_optarg ;;
1102 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1105 -version |
--version |
--versio |
--versi |
--vers |
-V)
1106 ac_init_version
=: ;;
1109 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1120 ac_unrecognized_sep
=', ';;
1122 eval with_
$ac_useropt=\
$ac_optarg ;;
1124 -without-* |
--without-*)
1125 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1128 as_fn_error
"invalid package name: $ac_useropt"
1129 ac_useropt_orig
=$ac_useropt
1130 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1135 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1136 ac_unrecognized_sep
=', ';;
1138 eval with_
$ac_useropt=no
;;
1141 # Obsolete; use --with-x.
1144 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1145 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1146 ac_prev
=x_includes
;;
1147 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1148 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1149 x_includes
=$ac_optarg ;;
1151 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1152 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1153 ac_prev
=x_libraries
;;
1154 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1155 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1156 x_libraries
=$ac_optarg ;;
1158 -*) as_fn_error
"unrecognized option: \`$ac_option'
1159 Try \`$0 --help' for more information."
1163 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 case $ac_envvar in #(
1166 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1167 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1169 eval $ac_envvar=\
$ac_optarg
1170 export $ac_envvar ;;
1173 # FIXME: should be removed in autoconf 3.0.
1174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1177 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1183 if test -n "$ac_prev"; then
1184 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1185 as_fn_error
"missing argument to $ac_option"
1188 if test -n "$ac_unrecognized_opts"; then
1189 case $enable_option_checking in
1191 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196 # Check all directory arguments for consistency.
1197 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198 datadir sysconfdir sharedstatedir localstatedir includedir \
1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200 libdir localedir mandir
1202 eval ac_val
=\$
$ac_var
1203 # Remove trailing slashes.
1206 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1207 eval $ac_var=\
$ac_val;;
1209 # Be sure to have absolute directory names.
1211 [\\/$
]* | ?
:[\\/]* ) continue;;
1212 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1214 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target
=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x
; then
1226 if test "x$build_alias" = x
; then
1227 cross_compiling
=maybe
1228 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1238 test "$silent" = yes && exec 6>/dev
/null
1241 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di
=`ls -di .` &&
1243 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1244 as_fn_error
"working directory cannot be determined"
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 as_fn_error
"pwd does not report name of working directory"
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted
=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir
=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1281 ac_srcdir_defaulted
=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1285 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1287 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1299 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 for ac_var
in $ac_precious_vars; do
1302 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1304 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1309 # Report the --help message.
1311 if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1315 \`configure' configures this package to adapt to many kinds of systems.
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE. See below for descriptions of some of the useful variables.
1322 Defaults for the options are specified in brackets.
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335 Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
1337 [$ac_default_prefix]
1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1346 For better control, use the options below.
1348 Fine tuning of the installation directories:
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
1373 --program-prefix=PREFIX prepend PREFIX to installed program names
1374 --program-suffix=SUFFIX append SUFFIX to installed program names
1375 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1378 --build=BUILD configure
for building on BUILD
[guessed
]
1379 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1380 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1384 if test -n "$ac_init_help"; then
1389 --disable-option-checking ignore unrecognized
--enable/--with options
1390 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1391 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1392 --enable-sim-alignment=align Specify strict or nonstrict alignment.
1393 --enable-sim-assert Specify whether to perform random assertions.
1394 --enable-sim-bitsize=n Specify target bitsize
(32 or
64).
1395 --enable-sim-config=file Override default config
file
1396 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1397 --enable-sim-default-model=which Specify default PowerPC to model.
1398 --enable-sim-duplicate Expand
(duplicate
) semantic functions.
1399 --enable-sim-endian=endian Specify target byte endian orientation.
1400 --enable-sim-env=env Specify target environment
(operating
, virtual
, user
).
1401 --enable-sim-filter=rule Specify filter rules.
1402 --enable-sim-float Specify whether the target has hard
, soft
, altivec or e500 floating point.
1403 --enable-sim-hardware=list Specify the hardware to be included
in the build.
1404 --enable-sim-hostbitsize=32|
64 Specify
host bitsize
(32 or
64).
1405 --enable-sim-hostendian=end Specify
host byte endian orientation.
1406 --enable-sim-icache=size Specify instruction-decode cache size and
type.
1407 --enable-sim-inline=inlines Specify
which functions should be inlined.
1408 --enable-sim-jump Jump between semantic code
(instead of
call
/return).
1409 --enable-sim-line-nr=opts Generate extra CPP code that references
source rather than generated code
1410 --enable-sim-model=which Specify PowerPC to model.
1411 --enable-sim-model-issue Specify whether to simulate model specific actions
1412 --enable-sim-monitor=mon Specify whether to
enable monitoring events.
1413 --enable-sim-opcode=which Override default opcode lookup.
1414 --enable-sim-packages=list Specify the packages to be included
in the build.
1415 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
1416 --enable-sim-smp=n Specify number of processors to configure
for.
1417 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1418 --enable-sim-switch Use a switch instead of a table
for instruction call.
1419 --enable-sim-timebase Specify whether the PPC timebase is supported.
1420 --enable-sim-trace Specify whether tracing is supported.
1421 --enable-sim-warnings=opts Extra CFLAGS
for turning on compiler warnings except
for idecode.o
, semantics.o and psim.o
1422 --enable-sim-xor-endian=n Specify number bytes involved
in PowerPC XOR bi-endian mode
(default
8).
1423 --enable-plugins Enable support
for plugins
1426 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1427 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1428 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1429 --with-bugurl=URL Direct users to URL to report a bug
1430 --with-system-zlib use installed libz
1432 Some influential environment variables
:
1433 CC C compiler
command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1436 nonstandard directory
<lib dir
>
1437 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1438 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1439 you have headers
in a nonstandard directory
<include dir
>
1442 Use these variables to override the choices made by
`configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1445 Report bugs to the package provider.
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1475 .) # We are building in place.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1509 generated by GNU Autoconf 2.64
1511 Copyright (C) 2009 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1532 *) ac_try_echo
=$ac_try;;
1534 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1538 if test -s conftest.err
; then
1539 grep -v '^ *+' conftest.err
>conftest.er1
1540 cat conftest.er1
>&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.
$ac_objext; then :
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.
$ac_ext >&5
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1558 } # ac_fn_c_try_compile
1560 # ac_fn_c_try_run LINENO
1561 # ----------------------
1562 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1563 # that executables *can* be run.
1566 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1567 if { { ac_try
="$ac_link"
1569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_link") 2>&5
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1578 { { case "(($ac_try" in
1579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1580 *) ac_try_echo
=$ac_try;;
1582 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_try") 2>&5
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; }; }; then :
1590 $as_echo "$as_me: program exited with status $ac_status" >&5
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.
$ac_ext >&5
1594 ac_retval
=$ac_status
1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1607 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1608 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } >/dev/null && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1639 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists and can be compiled using the include files in
1642 # INCLUDES, setting the cache variable VAR accordingly.
1643 ac_fn_c_check_header_compile ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1649 $as_echo_n "(cached) " >&6
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1656 if ac_fn_c_try_compile "$LINENO"; then :
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668 } # ac_fn_c_check_header_compile
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
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_link") 2>conftest.err
1686 if test -s conftest.err
; then
1687 grep -v '^ *+' conftest.err
>conftest.er1
1688 cat conftest.er1
>&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest
$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 $as_test_x conftest
$ac_exeext
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.
$ac_ext >&5
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1714 } # ac_fn_c_try_link
1716 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1717 # ----------------------------------------------------
1718 # Tries to find if the field MEMBER exists in type AGGR, after including
1719 # INCLUDES, setting cache variable VAR accordingly.
1720 ac_fn_c_check_member
()
1722 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1724 $as_echo_n "checking for $2.$3... " >&6; }
1725 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1726 $as_echo_n "(cached) " >&6
1728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1741 if ac_fn_c_try_compile
"$LINENO"; then :
1744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1751 if (sizeof ac_aggr.$3)
1757 if ac_fn_c_try_compile
"$LINENO"; then :
1762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1771 } # ac_fn_c_check_member
1773 # ac_fn_c_check_decl LINENO SYMBOL VAR
1774 # ------------------------------------
1775 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1776 ac_fn_c_check_decl
()
1778 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1779 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1780 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1782 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1783 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1792 #ifndef $as_decl_name
1794 (void) $as_decl_use;
1796 (void) $as_decl_name;
1804 if ac_fn_c_try_compile
"$LINENO"; then :
1809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1816 } # ac_fn_c_check_decl
1818 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1819 # -------------------------------------------
1820 # Tests whether TYPE exists after having included INCLUDES, setting cache
1821 # variable VAR accordingly.
1822 ac_fn_c_check_type
()
1824 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1828 $as_echo_n "(cached) " >&6
1831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1843 if ac_fn_c_try_compile
"$LINENO"; then :
1844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1856 if ac_fn_c_try_compile
"$LINENO"; then :
1861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1870 } # ac_fn_c_check_type
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func
()
1877 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1881 $as_echo_n "(cached) " >&6
1883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1887 #define $2 innocuous_$2
1889 /* System header to define __stub macros and hopefully few prototypes,
1890 which can conflict with char $2 (); below.
1891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892 <limits.h> exists even on freestanding compilers. */
1895 # include <limits.h>
1897 # include <assert.h>
1902 /* Override any GCC internal prototype to avoid an error.
1903 Use char because int might match the return type of a GCC
1904 builtin and then its argument prototype would still apply. */
1909 /* The GNU C library defines this for functions which it implements
1910 to always fail with ENOSYS. Some functions are actually named
1911 something starting with __ and the normal name is an alias. */
1912 #if defined __stub_$2 || defined __stub___$2
1924 if ac_fn_c_try_link
"$LINENO"; then :
1929 rm -f core conftest.err conftest.
$ac_objext \
1930 conftest
$ac_exeext conftest.
$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1937 } # ac_fn_c_check_func
1939 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1942 # the include files in INCLUDES and setting the cache variable VAR
1944 ac_fn_c_check_header_mongrel
()
1946 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1947 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951 $as_echo_n "(cached) " >&6
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1957 # Is the header compilable?
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1959 $as_echo_n "checking $2 usability... " >&6; }
1960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1965 if ac_fn_c_try_compile
"$LINENO"; then :
1966 ac_header_compiler
=yes
1968 ac_header_compiler
=no
1970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1972 $as_echo "$ac_header_compiler" >&6; }
1974 # Is the header present?
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1976 $as_echo_n "checking $2 presence... " >&6; }
1977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1981 if ac_fn_c_try_cpp
"$LINENO"; then :
1982 ac_header_preproc
=yes
1984 ac_header_preproc
=no
1986 rm -f conftest.err conftest.
$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1988 $as_echo "$ac_header_preproc" >&6; }
1990 # So? What about this header?
1991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1994 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2000 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2002 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2004 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2006 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2008 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014 $as_echo_n "(cached) " >&6
2016 eval "$3=\$ac_header_compiler"
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2024 } # ac_fn_c_check_header_mongrel
2025 cat >config.log
<<_ACEOF
2026 This file contains any messages produced by compilers while
2027 running configure, to aid debugging if configure makes a mistake.
2029 It was created by $as_me, which was
2030 generated by GNU Autoconf 2.64. Invocation command line was
2042 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2043 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2044 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2045 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2046 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2048 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2049 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2051 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2052 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2053 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2054 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2055 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2056 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2057 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir
=.
2066 $as_echo "PATH: $as_dir"
2082 # Keep a trace of the command line.
2083 # Strip out --no-create and --no-recursion so they do not pile up.
2084 # Strip out --silent because we don't want to record it for future runs.
2085 # Also quote any args containing shell meta-characters.
2086 # Make two passes to allow for proper duplicate-argument suppression.
2090 ac_must_keep_next
=false
2096 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2097 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2098 |
-silent |
--silent |
--silen |
--sile |
--sil)
2101 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2104 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2106 as_fn_append ac_configure_args1
" '$ac_arg'"
2107 if test $ac_must_keep_next = true
; then
2108 ac_must_keep_next
=false
# Got value, back to normal.
2111 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2112 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2113 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2114 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2115 case "$ac_configure_args0 " in
2116 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2119 -* ) ac_must_keep_next
=true
;;
2122 as_fn_append ac_configure_args
" '$ac_arg'"
2127 { ac_configure_args0
=; unset ac_configure_args0
;}
2128 { ac_configure_args1
=; unset ac_configure_args1
;}
2130 # When interrupted or exit'd, cleanup temporary files, and complete
2131 # config.log. We remove comments because anyway the quotes in there
2132 # would cause problems or look ugly.
2133 # WARNING: Use '\'' to represent an apostrophe within the trap.
2134 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2135 trap 'exit_status=$?
2136 # Save into config.log some information that might help in debugging.
2141 ## ---------------- ##
2142 ## Cache variables. ##
2143 ## ---------------- ##
2146 # The following way of writing the cache mishandles newlines in values,
2148 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2149 eval ac_val=\$$ac_var
2153 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2154 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2157 _ | IFS | as_nl) ;; #(
2158 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2159 *) { eval $ac_var=; unset $ac_var;} ;;
2164 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2165 *${as_nl}ac_space=\ *)
2167 "s/'\''/'\''\\\\'\'''\''/g;
2168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2171 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2179 ## ----------------- ##
2180 ## Output variables. ##
2181 ## ----------------- ##
2184 for ac_var in $ac_subst_vars
2186 eval ac_val=\$$ac_var
2188 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190 $as_echo "$ac_var='\''$ac_val'\''"
2194 if test -n "$ac_subst_files"; then
2196 ## ------------------- ##
2197 ## File substitutions. ##
2198 ## ------------------- ##
2201 for ac_var
in $ac_subst_files
2203 eval ac_val
=\$
$ac_var
2205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207 $as_echo "$ac_var='\''$ac_val'\''"
2212 if test -s confdefs.h; then
2222 test "$ac_signal" != 0 &&
2223 $as_echo "$as_me: caught signal $ac_signal"
2224 $as_echo "$as_me: exit $exit_status"
2226 rm -f core *.core core.conftest.* &&
2227 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2230 for ac_signal
in 1 2 13 15; do
2231 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2235 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2236 rm -f -r conftest
* confdefs.h
2238 $as_echo "/* confdefs.h */" > confdefs.h
2240 # Predefined preprocessor variables.
2242 cat >>confdefs.h
<<_ACEOF
2243 #define PACKAGE_NAME "$PACKAGE_NAME"
2246 cat >>confdefs.h
<<_ACEOF
2247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2250 cat >>confdefs.h
<<_ACEOF
2251 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2254 cat >>confdefs.h
<<_ACEOF
2255 #define PACKAGE_STRING "$PACKAGE_STRING"
2258 cat >>confdefs.h
<<_ACEOF
2259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2262 cat >>confdefs.h
<<_ACEOF
2263 #define PACKAGE_URL "$PACKAGE_URL"
2267 # Let the site file select an alternate cache file if it wants to.
2268 # Prefer an explicitly selected file to automatically selected ones.
2271 if test -n "$CONFIG_SITE"; then
2272 ac_site_file1
=$CONFIG_SITE
2273 elif test "x$prefix" != xNONE
; then
2274 ac_site_file1
=$prefix/share
/config.site
2275 ac_site_file2
=$prefix/etc
/config.site
2277 ac_site_file1
=$ac_default_prefix/share
/config.site
2278 ac_site_file2
=$ac_default_prefix/etc
/config.site
2280 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2282 test "x$ac_site_file" = xNONE
&& continue
2283 if test -r "$ac_site_file"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2285 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2286 sed 's/^/| /' "$ac_site_file" >&5
2291 if test -r "$cache_file"; then
2292 # Some versions of bash will fail to source /dev/null (special
2293 # files actually), so we avoid doing that.
2294 if test -f "$cache_file"; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2296 $as_echo "$as_me: loading cache $cache_file" >&6;}
2298 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2299 *) .
"./$cache_file";;
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2304 $as_echo "$as_me: creating cache $cache_file" >&6;}
2308 # Check that the precious variables saved in the cache have kept the same
2310 ac_cache_corrupted
=false
2311 for ac_var
in $ac_precious_vars; do
2312 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2313 eval ac_new_set
=\
$ac_env_${ac_var}_set
2314 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2315 eval ac_new_val
=\
$ac_env_${ac_var}_value
2316 case $ac_old_set,$ac_new_set in
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2319 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2320 ac_cache_corrupted
=: ;;
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2323 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2324 ac_cache_corrupted
=: ;;
2327 if test "x$ac_old_val" != "x$ac_new_val"; then
2328 # differences in whitespace do not lead to failure.
2329 ac_old_val_w
=`echo x $ac_old_val`
2330 ac_new_val_w
=`echo x $ac_new_val`
2331 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2333 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2334 ac_cache_corrupted
=:
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2337 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2338 eval $ac_var=\
$ac_old_val
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2341 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2343 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2346 # Pass precious variables to config.status.
2347 if test "$ac_new_set" = set; then
2349 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2350 *) ac_arg
=$ac_var=$ac_new_val ;;
2352 case " $ac_configure_args " in
2353 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2354 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2358 if $ac_cache_corrupted; then
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2362 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2363 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2365 ## -------------------- ##
2366 ## Main body of script. ##
2367 ## -------------------- ##
2370 ac_cpp
='$CPP $CPPFLAGS'
2371 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2376 # This file contains common code used by all simulators.
2378 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2379 # directory. It is intended to be invoked before any target specific stuff.
2380 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2381 # It is intended to be invoked last.
2383 # The simulator's configure.ac should look like:
2385 # dnl Process this file with autoconf to produce a configure script.
2386 # AC_PREREQ(2.64)dnl
2387 # AC_INIT(Makefile.in)
2388 # sinclude(../common/aclocal.m4)
2392 # ... target specific stuff ...
2396 # Include global overrides and fixes for Autoconf.
2423 # _AC_CHECK_DECL_BODY
2424 # -------------------
2425 # Shell function body for AC_CHECK_DECL.
2426 # _AC_CHECK_DECL_BODY
2428 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2430 # -------------------------------------------------------------
2431 # Helper to AC_CHECK_DECLS, which generates the check for a single
2432 # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2433 # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2445 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2447 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2448 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2449 # Written by Gordon Matzigkeit, 1996
2451 # This file is free software; the Free Software Foundation gives
2452 # unlimited permission to copy and/or distribute it, with or without
2453 # modifications, as long as this notice is preserved.
2460 # LT_PREREQ(VERSION)
2461 # ------------------
2462 # Complain and exit if this libtool version is less that VERSION.
2466 # _LT_CHECK_BUILDDIR
2467 # ------------------
2468 # Complain if the absolute build directory name contains unusual characters
2472 # LT_INIT([OPTIONS])
2473 # ------------------
2477 # This is what autoupdate's m4 run will expand. It fires
2478 # the warning (with _au_warn_XXX), outputs it into the
2479 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2480 # the replacement expansion.
2483 # This is an auxiliary macro that is also run when
2484 # autoupdate runs m4. It simply calls m4_warning, but
2485 # we need a wrapper so that each warning is emitted only
2486 # once. We break the quoting in m4_warning's argument in
2487 # order to expand this macro's arguments, not AU_DEFUN's.
2490 # Finally, this is the expansion that is picked up by
2491 # autoconf. It tells the user to run autoupdate, and
2492 # then outputs the replacement expansion. We do not care
2493 # about autoupdate's warning because that contains
2494 # information on what to do *after* running autoupdate.
2496 # This is what autoupdate's m4 run will expand. It fires
2497 # the warning (with _au_warn_XXX), outputs it into the
2498 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2499 # the replacement expansion.
2502 # This is an auxiliary macro that is also run when
2503 # autoupdate runs m4. It simply calls m4_warning, but
2504 # we need a wrapper so that each warning is emitted only
2505 # once. We break the quoting in m4_warning's argument in
2506 # order to expand this macro's arguments, not AU_DEFUN's.
2509 # Finally, this is the expansion that is picked up by
2510 # autoconf. It tells the user to run autoupdate, and
2511 # then outputs the replacement expansion. We do not care
2512 # about autoupdate's warning because that contains
2513 # information on what to do *after* running autoupdate.
2517 # _LT_CC_BASENAME(CC)
2518 # -------------------
2519 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2523 # _LT_FILEUTILS_DEFAULTS
2524 # ----------------------
2525 # It is okay to use these file commands and assume they have been set
2526 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2527 # _LT_FILEUTILS_DEFAULTS
2535 # _LT_PREPARE_SED_QUOTE_VARS
2536 # --------------------------
2537 # Define a few sed substitution that help us do robust quoting.
2542 # Note that this code is called both from `configure', and `config.status'
2543 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2544 # `config.status' has no value for ac_aux_dir unless we are using Automake,
2545 # so we pass a copy along to make sure it has a sensible value anyway.
2549 ## ------------------------------------- ##
2550 ## Accumulate code for creating libtool. ##
2551 ## ------------------------------------- ##
2553 # So that we can recreate a full libtool script including additional
2554 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2555 # in macros and then make a single call at the end using the `libtool'
2559 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2560 # ----------------------------------------
2561 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2568 # _LT_CONFIG_LIBTOOL([COMMANDS])
2569 # ------------------------------
2570 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2577 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2578 # -----------------------------------------------------
2582 # _LT_FORMAT_COMMENT([COMMENT])
2583 # -----------------------------
2584 # Add leading comment marks to the start of each line, and a trailing
2585 # full-stop to the whole comment if one is not present already.
2590 ## ------------------------ ##
2591 ## FIXME: Eliminate VARNAME ##
2592 ## ------------------------ ##
2595 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2596 # -------------------------------------------------------------------
2597 # CONFIGNAME is the name given to the value in the libtool script.
2598 # VARNAME is the (base) name used in the configure script.
2599 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2600 # VARNAME. Any other value will be used directly.
2604 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2605 # --------------------------------------------------------
2609 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2610 # ------------------------------------------------
2614 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2615 # ---------------------------------------------------------
2619 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2620 # --------------------------------------------------
2624 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2625 # ---------------------------------------------------
2629 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2630 # ---------------------------------------------------
2635 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2636 # ------------------------------------------------
2641 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
2642 # ------------------------------------
2643 # Quote a variable value, and forward it to `config.status' so that its
2644 # declaration there will have the same value as in `configure'. VARNAME
2645 # must have a single quote delimited value for this to work.
2649 # _LT_CONFIG_STATUS_DECLARATIONS
2650 # ------------------------------
2651 # We delimit libtool config variables with single quotes, so when
2652 # we write them to config.status, we have to be sure to quote all
2653 # embedded single quotes properly. In configure, this macro expands
2654 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2656 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2662 # Output comment and list of tags supported by the script
2666 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2667 # -----------------------------------
2668 # Extract the dictionary values for VARNAME (optionally with TAG) and
2669 # expand to a commented shell variable setting:
2671 # # Some comment about what VAR is for.
2672 # visible_name=$lt_internal_name
2676 # _LT_LIBTOOL_CONFIG_VARS
2677 # -----------------------
2678 # Produce commented declarations of non-tagged libtool config variables
2679 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2680 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2681 # section) are produced by _LT_LIBTOOL_TAG_VARS.
2685 # _LT_LIBTOOL_TAG_VARS(TAG)
2686 # -------------------------
2690 # _LT_TAGVAR(VARNAME, [TAGNAME])
2691 # ------------------------------
2695 # _LT_CONFIG_COMMANDS
2696 # -------------------
2697 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2698 # variables for single and double quote escaping we saved from calls
2699 # to _LT_DECL, we can put quote escaped variables declarations
2700 # into `config.status', and then the shell code to quote escape them in
2701 # for loops in `config.status'. Finally, any additional code accumulated
2702 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2703 #_LT_CONFIG_COMMANDS
2709 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2710 # ------------------------------------
2711 # Generate a child script FILE with all initialization necessary to
2712 # reuse the environment learned by the parent script, and make the
2713 # file executable. If COMMENT is supplied, it is inserted after the
2714 # `#!' sequence but before initialization text begins. After this
2715 # macro, additional text can be appended to FILE to form the body of
2716 # the child script. The macro ends with non-zero status if the
2717 # file could not be fully written (such as if the disk is full).
2718 # _LT_GENERATED_FILE_INIT
2722 # This macro allows early generation of the libtool script (before
2723 # AC_OUTPUT is called), incase it is used in configure for compilation
2730 # If TAG is the built-in tag, create an initial libtool script with a
2731 # default configuration from the untagged config vars. Otherwise add code
2732 # to config.status for appending the configuration named by TAG from the
2733 # matching tagged config vars.
2737 # LT_SUPPORTED_TAG(TAG)
2738 # ---------------------
2739 # Trace this macro to discover what tags are supported by the libtool
2740 # --tag option, using:
2741 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
2745 # C support is built-in for now
2752 # Enable libtool support for the given language if not already enabled.
2756 # _LT_LANG(LANGNAME)
2757 # ------------------
2761 # _LT_LANG_DEFAULT_CONFIG
2762 # -----------------------
2763 # _LT_LANG_DEFAULT_CONFIG
2766 # This is what autoupdate's m4 run will expand. It fires
2767 # the warning (with _au_warn_XXX), outputs it into the
2768 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2769 # the replacement expansion.
2772 # This is an auxiliary macro that is also run when
2773 # autoupdate runs m4. It simply calls m4_warning, but
2774 # we need a wrapper so that each warning is emitted only
2775 # once. We break the quoting in m4_warning's argument in
2776 # order to expand this macro's arguments, not AU_DEFUN's.
2779 # Finally, this is the expansion that is picked up by
2780 # autoconf. It tells the user to run autoupdate, and
2781 # then outputs the replacement expansion. We do not care
2782 # about autoupdate's warning because that contains
2783 # information on what to do *after* running autoupdate.
2785 # This is what autoupdate's m4 run will expand. It fires
2786 # the warning (with _au_warn_XXX), outputs it into the
2787 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2788 # the replacement expansion.
2791 # This is an auxiliary macro that is also run when
2792 # autoupdate runs m4. It simply calls m4_warning, but
2793 # we need a wrapper so that each warning is emitted only
2794 # once. We break the quoting in m4_warning's argument in
2795 # order to expand this macro's arguments, not AU_DEFUN's.
2798 # Finally, this is the expansion that is picked up by
2799 # autoconf. It tells the user to run autoupdate, and
2800 # then outputs the replacement expansion. We do not care
2801 # about autoupdate's warning because that contains
2802 # information on what to do *after* running autoupdate.
2804 # This is what autoupdate's m4 run will expand. It fires
2805 # the warning (with _au_warn_XXX), outputs it into the
2806 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2807 # the replacement expansion.
2810 # This is an auxiliary macro that is also run when
2811 # autoupdate runs m4. It simply calls m4_warning, but
2812 # we need a wrapper so that each warning is emitted only
2813 # once. We break the quoting in m4_warning's argument in
2814 # order to expand this macro's arguments, not AU_DEFUN's.
2817 # Finally, this is the expansion that is picked up by
2818 # autoconf. It tells the user to run autoupdate, and
2819 # then outputs the replacement expansion. We do not care
2820 # about autoupdate's warning because that contains
2821 # information on what to do *after* running autoupdate.
2823 # This is what autoupdate's m4 run will expand. It fires
2824 # the warning (with _au_warn_XXX), outputs it into the
2825 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2826 # the replacement expansion.
2829 # This is an auxiliary macro that is also run when
2830 # autoupdate runs m4. It simply calls m4_warning, but
2831 # we need a wrapper so that each warning is emitted only
2832 # once. We break the quoting in m4_warning's argument in
2833 # order to expand this macro's arguments, not AU_DEFUN's.
2836 # Finally, this is the expansion that is picked up by
2837 # autoconf. It tells the user to run autoupdate, and
2838 # then outputs the replacement expansion. We do not care
2839 # about autoupdate's warning because that contains
2840 # information on what to do *after* running autoupdate.
2842 # This is what autoupdate's m4 run will expand. It fires
2843 # the warning (with _au_warn_XXX), outputs it into the
2844 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2845 # the replacement expansion.
2848 # This is an auxiliary macro that is also run when
2849 # autoupdate runs m4. It simply calls m4_warning, but
2850 # we need a wrapper so that each warning is emitted only
2851 # once. We break the quoting in m4_warning's argument in
2852 # order to expand this macro's arguments, not AU_DEFUN's.
2855 # Finally, this is the expansion that is picked up by
2856 # autoconf. It tells the user to run autoupdate, and
2857 # then outputs the replacement expansion. We do not care
2858 # about autoupdate's warning because that contains
2859 # information on what to do *after* running autoupdate.
2868 # _LT_COMPILER_BOILERPLATE
2869 # ------------------------
2870 # Check for compiler boilerplate output or warnings with
2871 # the simple compiler test code.
2872 # _LT_COMPILER_BOILERPLATE
2875 # _LT_LINKER_BOILERPLATE
2876 # ----------------------
2877 # Check for linker boilerplate output or warnings with
2878 # the simple link test code.
2879 # _LT_LINKER_BOILERPLATE
2881 # _LT_REQUIRED_DARWIN_CHECKS
2882 # -------------------------
2886 # _LT_DARWIN_LINKER_FEATURES
2887 # --------------------------
2888 # Checks for linker and compiler features on darwin
2891 # _LT_SYS_MODULE_PATH_AIX
2892 # -----------------------
2893 # Links a minimal program and checks the executable
2894 # for the system default hardcoded library path. In most cases,
2895 # this is /usr/lib:/lib, but when the MPI compilers are used
2896 # the location of the communication and MPI libs are included too.
2897 # If we don't find anything, use the default library path according
2898 # to the aix ld manual.
2899 # _LT_SYS_MODULE_PATH_AIX
2902 # _LT_SHELL_INIT(ARG)
2903 # -------------------
2908 # _LT_PROG_ECHO_BACKSLASH
2909 # -----------------------
2910 # Find how we can fake an echo command that does not interpret backslash.
2911 # In particular, with Autoconf 2.60 or later we add some code to the start
2912 # of the generated configure script which will find a shell with a builtin
2913 # printf (which we can use as an echo command).
2914 # _LT_PROG_ECHO_BACKSLASH
2922 # _LT_CMD_OLD_ARCHIVE
2923 # -------------------
2924 # _LT_CMD_OLD_ARCHIVE
2927 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2928 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2929 # ----------------------------------------------------------------
2930 # Check whether the given compiler option works
2931 # _LT_COMPILER_OPTION
2934 # This is what autoupdate's m4 run will expand. It fires
2935 # the warning (with _au_warn_XXX), outputs it into the
2936 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2937 # the replacement expansion.
2940 # This is an auxiliary macro that is also run when
2941 # autoupdate runs m4. It simply calls m4_warning, but
2942 # we need a wrapper so that each warning is emitted only
2943 # once. We break the quoting in m4_warning's argument in
2944 # order to expand this macro's arguments, not AU_DEFUN's.
2947 # Finally, this is the expansion that is picked up by
2948 # autoconf. It tells the user to run autoupdate, and
2949 # then outputs the replacement expansion. We do not care
2950 # about autoupdate's warning because that contains
2951 # information on what to do *after* running autoupdate.
2955 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2956 # [ACTION-SUCCESS], [ACTION-FAILURE])
2957 # ----------------------------------------------------
2958 # Check whether the given linker option works
2962 # This is what autoupdate's m4 run will expand. It fires
2963 # the warning (with _au_warn_XXX), outputs it into the
2964 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2965 # the replacement expansion.
2968 # This is an auxiliary macro that is also run when
2969 # autoupdate runs m4. It simply calls m4_warning, but
2970 # we need a wrapper so that each warning is emitted only
2971 # once. We break the quoting in m4_warning's argument in
2972 # order to expand this macro's arguments, not AU_DEFUN's.
2975 # Finally, this is the expansion that is picked up by
2976 # autoconf. It tells the user to run autoupdate, and
2977 # then outputs the replacement expansion. We do not care
2978 # about autoupdate's warning because that contains
2979 # information on what to do *after* running autoupdate.
2988 # This is what autoupdate's m4 run will expand. It fires
2989 # the warning (with _au_warn_XXX), outputs it into the
2990 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2991 # the replacement expansion.
2994 # This is an auxiliary macro that is also run when
2995 # autoupdate runs m4. It simply calls m4_warning, but
2996 # we need a wrapper so that each warning is emitted only
2997 # once. We break the quoting in m4_warning's argument in
2998 # order to expand this macro's arguments, not AU_DEFUN's.
3001 # Finally, this is the expansion that is picked up by
3002 # autoconf. It tells the user to run autoupdate, and
3003 # then outputs the replacement expansion. We do not care
3004 # about autoupdate's warning because that contains
3005 # information on what to do *after* running autoupdate.
3014 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3015 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3016 # ----------------------------------------------------------------
3017 # _LT_TRY_DLOPEN_SELF
3020 # LT_SYS_DLOPEN_SELF
3021 # ------------------
3022 # LT_SYS_DLOPEN_SELF
3025 # This is what autoupdate's m4 run will expand. It fires
3026 # the warning (with _au_warn_XXX), outputs it into the
3027 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3028 # the replacement expansion.
3031 # This is an auxiliary macro that is also run when
3032 # autoupdate runs m4. It simply calls m4_warning, but
3033 # we need a wrapper so that each warning is emitted only
3034 # once. We break the quoting in m4_warning's argument in
3035 # order to expand this macro's arguments, not AU_DEFUN's.
3038 # Finally, this is the expansion that is picked up by
3039 # autoconf. It tells the user to run autoupdate, and
3040 # then outputs the replacement expansion. We do not care
3041 # about autoupdate's warning because that contains
3042 # information on what to do *after* running autoupdate.
3046 # _LT_COMPILER_C_O([TAGNAME])
3047 # ---------------------------
3048 # Check to see if options -c and -o are simultaneously supported by compiler.
3049 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
3053 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
3054 # ----------------------------------
3055 # Check to see if we can do hard links to lock some files if needed
3056 # _LT_COMPILER_FILE_LOCKS
3064 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3065 # --------------------------------------
3066 # Check hardcoding attributes.
3067 # _LT_LINKER_HARDCODE_LIBPATH
3075 # _LT_SYS_DYNAMIC_LINKER([TAG])
3076 # -----------------------------
3077 # PORTME Fill in your ld.so characteristics
3078 # _LT_SYS_DYNAMIC_LINKER
3081 # _LT_PATH_TOOL_PREFIX(TOOL)
3082 # --------------------------
3083 # find a file program which can recognize shared library
3084 # _LT_PATH_TOOL_PREFIX
3087 # This is what autoupdate's m4 run will expand. It fires
3088 # the warning (with _au_warn_XXX), outputs it into the
3089 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3090 # the replacement expansion.
3093 # This is an auxiliary macro that is also run when
3094 # autoupdate runs m4. It simply calls m4_warning, but
3095 # we need a wrapper so that each warning is emitted only
3096 # once. We break the quoting in m4_warning's argument in
3097 # order to expand this macro's arguments, not AU_DEFUN's.
3100 # Finally, this is the expansion that is picked up by
3101 # autoconf. It tells the user to run autoupdate, and
3102 # then outputs the replacement expansion. We do not care
3103 # about autoupdate's warning because that contains
3104 # information on what to do *after* running autoupdate.
3110 # find a file program which can recognize a shared library
3116 # find the pathname to the GNU or non-GNU linker
3120 # This is what autoupdate's m4 run will expand. It fires
3121 # the warning (with _au_warn_XXX), outputs it into the
3122 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3123 # the replacement expansion.
3126 # This is an auxiliary macro that is also run when
3127 # autoupdate runs m4. It simply calls m4_warning, but
3128 # we need a wrapper so that each warning is emitted only
3129 # once. We break the quoting in m4_warning's argument in
3130 # order to expand this macro's arguments, not AU_DEFUN's.
3133 # Finally, this is the expansion that is picked up by
3134 # autoconf. It tells the user to run autoupdate, and
3135 # then outputs the replacement expansion. We do not care
3136 # about autoupdate's warning because that contains
3137 # information on what to do *after* running autoupdate.
3139 # This is what autoupdate's m4 run will expand. It fires
3140 # the warning (with _au_warn_XXX), outputs it into the
3141 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3142 # the replacement expansion.
3145 # This is an auxiliary macro that is also run when
3146 # autoupdate runs m4. It simply calls m4_warning, but
3147 # we need a wrapper so that each warning is emitted only
3148 # once. We break the quoting in m4_warning's argument in
3149 # order to expand this macro's arguments, not AU_DEFUN's.
3152 # Finally, this is the expansion that is picked up by
3153 # autoconf. It tells the user to run autoupdate, and
3154 # then outputs the replacement expansion. We do not care
3155 # about autoupdate's warning because that contains
3156 # information on what to do *after* running autoupdate.
3167 # find reload flag for linker
3168 # -- PORTME Some linkers may need a different reload flag.
3172 # _LT_CHECK_MAGIC_METHOD
3173 # ----------------------
3174 # how to check for library dependencies
3175 # -- PORTME fill in with the dynamic library characteristics
3176 # _LT_CHECK_MAGIC_METHOD
3181 # find the pathname to a BSD- or MS-compatible name lister
3185 # This is what autoupdate's m4 run will expand. It fires
3186 # the warning (with _au_warn_XXX), outputs it into the
3187 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3188 # the replacement expansion.
3191 # This is an auxiliary macro that is also run when
3192 # autoupdate runs m4. It simply calls m4_warning, but
3193 # we need a wrapper so that each warning is emitted only
3194 # once. We break the quoting in m4_warning's argument in
3195 # order to expand this macro's arguments, not AU_DEFUN's.
3198 # Finally, this is the expansion that is picked up by
3199 # autoconf. It tells the user to run autoupdate, and
3200 # then outputs the replacement expansion. We do not care
3201 # about autoupdate's warning because that contains
3202 # information on what to do *after* running autoupdate.
3204 # This is what autoupdate's m4 run will expand. It fires
3205 # the warning (with _au_warn_XXX), outputs it into the
3206 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3207 # the replacement expansion.
3210 # This is an auxiliary macro that is also run when
3211 # autoupdate runs m4. It simply calls m4_warning, but
3212 # we need a wrapper so that each warning is emitted only
3213 # once. We break the quoting in m4_warning's argument in
3214 # order to expand this macro's arguments, not AU_DEFUN's.
3217 # Finally, this is the expansion that is picked up by
3218 # autoconf. It tells the user to run autoupdate, and
3219 # then outputs the replacement expansion. We do not care
3220 # about autoupdate's warning because that contains
3221 # information on what to do *after* running autoupdate.
3227 # check for math library
3231 # This is what autoupdate's m4 run will expand. It fires
3232 # the warning (with _au_warn_XXX), outputs it into the
3233 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3234 # the replacement expansion.
3237 # This is an auxiliary macro that is also run when
3238 # autoupdate runs m4. It simply calls m4_warning, but
3239 # we need a wrapper so that each warning is emitted only
3240 # once. We break the quoting in m4_warning's argument in
3241 # order to expand this macro's arguments, not AU_DEFUN's.
3244 # Finally, this is the expansion that is picked up by
3245 # autoconf. It tells the user to run autoupdate, and
3246 # then outputs the replacement expansion. We do not care
3247 # about autoupdate's warning because that contains
3248 # information on what to do *after* running autoupdate.
3252 # _LT_COMPILER_NO_RTTI([TAGNAME])
3253 # -------------------------------
3254 # _LT_COMPILER_NO_RTTI
3257 # _LT_CMD_GLOBAL_SYMBOLS
3258 # ----------------------
3259 # _LT_CMD_GLOBAL_SYMBOLS
3262 # _LT_COMPILER_PIC([TAGNAME])
3263 # ---------------------------
3267 # _LT_LINKER_SHLIBS([TAGNAME])
3268 # ----------------------------
3269 # See if the linker supports building shared libraries.
3273 # _LT_LANG_C_CONFIG([TAG])
3274 # ------------------------
3275 # Ensure that the configuration variables for a C compiler are suitably
3276 # defined. These variables are subsequently used by _LT_CONFIG to write
3277 # the compiler configuration to `libtool'.
3281 # _LT_LANG_CXX_CONFIG([TAG])
3282 # --------------------------
3283 # Ensure that the configuration variables for a C++ compiler are suitably
3284 # defined. These variables are subsequently used by _LT_CONFIG to write
3285 # the compiler configuration to `libtool'.
3286 # _LT_LANG_CXX_CONFIG
3289 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3290 # ---------------------------------
3291 # Figure out "hidden" library dependencies from verbose
3292 # compiler output when linking a shared library.
3293 # Parse the compiler output and extract the necessary
3294 # objects, libraries and library flags.
3295 # _LT_SYS_HIDDEN_LIBDEPS
3298 # _LT_LANG_F77_CONFIG([TAG])
3299 # --------------------------
3300 # Ensure that the configuration variables for a Fortran 77 compiler are
3301 # suitably defined. These variables are subsequently used by _LT_CONFIG
3302 # to write the compiler configuration to `libtool'.
3303 # _LT_LANG_F77_CONFIG
3306 # _LT_LANG_FC_CONFIG([TAG])
3307 # -------------------------
3308 # Ensure that the configuration variables for a Fortran compiler are
3309 # suitably defined. These variables are subsequently used by _LT_CONFIG
3310 # to write the compiler configuration to `libtool'.
3311 # _LT_LANG_FC_CONFIG
3314 # _LT_LANG_GCJ_CONFIG([TAG])
3315 # --------------------------
3316 # Ensure that the configuration variables for the GNU Java Compiler compiler
3317 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3318 # to write the compiler configuration to `libtool'.
3319 # _LT_LANG_GCJ_CONFIG
3322 # _LT_LANG_RC_CONFIG([TAG])
3323 # -------------------------
3324 # Ensure that the configuration variables for the Windows resource compiler
3325 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3326 # to write the compiler configuration to `libtool'.
3327 # _LT_LANG_RC_CONFIG
3335 # This is what autoupdate's m4 run will expand. It fires
3336 # the warning (with _au_warn_XXX), outputs it into the
3337 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3338 # the replacement expansion.
3341 # This is an auxiliary macro that is also run when
3342 # autoupdate runs m4. It simply calls m4_warning, but
3343 # we need a wrapper so that each warning is emitted only
3344 # once. We break the quoting in m4_warning's argument in
3345 # order to expand this macro's arguments, not AU_DEFUN's.
3348 # Finally, this is the expansion that is picked up by
3349 # autoconf. It tells the user to run autoupdate, and
3350 # then outputs the replacement expansion. We do not care
3351 # about autoupdate's warning because that contains
3352 # information on what to do *after* running autoupdate.
3361 # This is what autoupdate's m4 run will expand. It fires
3362 # the warning (with _au_warn_XXX), outputs it into the
3363 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3364 # the replacement expansion.
3367 # This is an auxiliary macro that is also run when
3368 # autoupdate runs m4. It simply calls m4_warning, but
3369 # we need a wrapper so that each warning is emitted only
3370 # once. We break the quoting in m4_warning's argument in
3371 # order to expand this macro's arguments, not AU_DEFUN's.
3374 # Finally, this is the expansion that is picked up by
3375 # autoconf. It tells the user to run autoupdate, and
3376 # then outputs the replacement expansion. We do not care
3377 # about autoupdate's warning because that contains
3378 # information on what to do *after* running autoupdate.
3384 # If we don't have a new enough Autoconf to choose the best grep
3385 # available, choose the one first in the user's PATH.
3391 # If we don't have a new enough Autoconf to choose the best objdump
3392 # available, choose the one first in the user's PATH.
3398 # Check for a fully-functional sed program, that truncates
3399 # as few characters as possible. Prefer GNU sed if found.
3405 # This is what autoupdate's m4 run will expand. It fires
3406 # the warning (with _au_warn_XXX), outputs it into the
3407 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3408 # the replacement expansion.
3411 # This is an auxiliary macro that is also run when
3412 # autoupdate runs m4. It simply calls m4_warning, but
3413 # we need a wrapper so that each warning is emitted only
3414 # once. We break the quoting in m4_warning's argument in
3415 # order to expand this macro's arguments, not AU_DEFUN's.
3418 # Finally, this is the expansion that is picked up by
3419 # autoconf. It tells the user to run autoupdate, and
3420 # then outputs the replacement expansion. We do not care
3421 # about autoupdate's warning because that contains
3422 # information on what to do *after* running autoupdate.
3426 # _LT_CHECK_SHELL_FEATURES
3427 # ------------------------
3428 # Find out whether the shell is Bourne or XSI compatible,
3429 # or has some other useful features.
3430 # _LT_CHECK_SHELL_FEATURES
3433 # _LT_PROG_XSI_SHELLFNS
3434 # ---------------------
3435 # Bourne and XSI compatible variants of some useful shell functions.
3438 # Helper functions for option handling. -*- Autoconf -*-
3440 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3442 # Written by Gary V. Vaughan, 2004
3444 # This file is free software; the Free Software Foundation gives
3445 # unlimited permission to copy and/or distribute it, with or without
3446 # modifications, as long as this notice is preserved.
3448 # serial 6 ltoptions.m4
3450 # This is to help aclocal find these macros, as it can't see m4_define.
3454 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3455 # ------------------------------------------
3459 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3460 # ---------------------------------------
3461 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3462 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
3467 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3468 # ------------------------------------------------------------
3469 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3473 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3474 # -------------------------------------------------------
3475 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3480 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3481 # ----------------------------------------
3482 # OPTION-LIST is a space-separated list of Libtool options associated
3483 # with MACRO-NAME. If any OPTION has a matching handler declared with
3484 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3485 # the unknown option and exit.
3489 ## --------------------------------- ##
3490 ## Macros to handle LT_INIT options. ##
3491 ## --------------------------------- ##
3493 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3494 # -----------------------------------------
3498 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3499 # -----------------------------------------------
3507 # This is what autoupdate's m4 run will expand. It fires
3508 # the warning (with _au_warn_XXX), outputs it into the
3509 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3510 # the replacement expansion.
3513 # This is an auxiliary macro that is also run when
3514 # autoupdate runs m4. It simply calls m4_warning, but
3515 # we need a wrapper so that each warning is emitted only
3516 # once. We break the quoting in m4_warning's argument in
3517 # order to expand this macro's arguments, not AU_DEFUN's.
3520 # Finally, this is the expansion that is picked up by
3521 # autoconf. It tells the user to run autoupdate, and
3522 # then outputs the replacement expansion. We do not care
3523 # about autoupdate's warning because that contains
3524 # information on what to do *after* running autoupdate.
3531 # Declare package support for building win32 dll's.
3534 # This is what autoupdate's m4 run will expand. It fires
3535 # the warning (with _au_warn_XXX), outputs it into the
3536 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3537 # the replacement expansion.
3540 # This is an auxiliary macro that is also run when
3541 # autoupdate runs m4. It simply calls m4_warning, but
3542 # we need a wrapper so that each warning is emitted only
3543 # once. We break the quoting in m4_warning's argument in
3544 # order to expand this macro's arguments, not AU_DEFUN's.
3547 # Finally, this is the expansion that is picked up by
3548 # autoconf. It tells the user to run autoupdate, and
3549 # then outputs the replacement expansion. We do not care
3550 # about autoupdate's warning because that contains
3551 # information on what to do *after* running autoupdate.
3556 # _LT_ENABLE_SHARED([DEFAULT])
3557 # ----------------------------
3558 # implement the --enable-shared flag, and supports the `shared' and
3559 # `disable-shared' LT_INIT options.
3560 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3571 # This is what autoupdate's m4 run will expand. It fires
3572 # the warning (with _au_warn_XXX), outputs it into the
3573 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3574 # the replacement expansion.
3577 # This is an auxiliary macro that is also run when
3578 # autoupdate runs m4. It simply calls m4_warning, but
3579 # we need a wrapper so that each warning is emitted only
3580 # once. We break the quoting in m4_warning's argument in
3581 # order to expand this macro's arguments, not AU_DEFUN's.
3584 # Finally, this is the expansion that is picked up by
3585 # autoconf. It tells the user to run autoupdate, and
3586 # then outputs the replacement expansion. We do not care
3587 # about autoupdate's warning because that contains
3588 # information on what to do *after* running autoupdate.
3590 # This is what autoupdate's m4 run will expand. It fires
3591 # the warning (with _au_warn_XXX), outputs it into the
3592 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3593 # the replacement expansion.
3596 # This is an auxiliary macro that is also run when
3597 # autoupdate runs m4. It simply calls m4_warning, but
3598 # we need a wrapper so that each warning is emitted only
3599 # once. We break the quoting in m4_warning's argument in
3600 # order to expand this macro's arguments, not AU_DEFUN's.
3603 # Finally, this is the expansion that is picked up by
3604 # autoconf. It tells the user to run autoupdate, and
3605 # then outputs the replacement expansion. We do not care
3606 # about autoupdate's warning because that contains
3607 # information on what to do *after* running autoupdate.
3613 # _LT_ENABLE_STATIC([DEFAULT])
3614 # ----------------------------
3615 # implement the --enable-static flag, and support the `static' and
3616 # `disable-static' LT_INIT options.
3617 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3628 # This is what autoupdate's m4 run will expand. It fires
3629 # the warning (with _au_warn_XXX), outputs it into the
3630 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3631 # the replacement expansion.
3634 # This is an auxiliary macro that is also run when
3635 # autoupdate runs m4. It simply calls m4_warning, but
3636 # we need a wrapper so that each warning is emitted only
3637 # once. We break the quoting in m4_warning's argument in
3638 # order to expand this macro's arguments, not AU_DEFUN's.
3641 # Finally, this is the expansion that is picked up by
3642 # autoconf. It tells the user to run autoupdate, and
3643 # then outputs the replacement expansion. We do not care
3644 # about autoupdate's warning because that contains
3645 # information on what to do *after* running autoupdate.
3647 # This is what autoupdate's m4 run will expand. It fires
3648 # the warning (with _au_warn_XXX), outputs it into the
3649 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3650 # the replacement expansion.
3653 # This is an auxiliary macro that is also run when
3654 # autoupdate runs m4. It simply calls m4_warning, but
3655 # we need a wrapper so that each warning is emitted only
3656 # once. We break the quoting in m4_warning's argument in
3657 # order to expand this macro's arguments, not AU_DEFUN's.
3660 # Finally, this is the expansion that is picked up by
3661 # autoconf. It tells the user to run autoupdate, and
3662 # then outputs the replacement expansion. We do not care
3663 # about autoupdate's warning because that contains
3664 # information on what to do *after* running autoupdate.
3670 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
3671 # ----------------------------------
3672 # implement the --enable-fast-install flag, and support the `fast-install'
3673 # and `disable-fast-install' LT_INIT options.
3674 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3675 # _LT_ENABLE_FAST_INSTALL
3681 # This is what autoupdate's m4 run will expand. It fires
3682 # the warning (with _au_warn_XXX), outputs it into the
3683 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3684 # the replacement expansion.
3687 # This is an auxiliary macro that is also run when
3688 # autoupdate runs m4. It simply calls m4_warning, but
3689 # we need a wrapper so that each warning is emitted only
3690 # once. We break the quoting in m4_warning's argument in
3691 # order to expand this macro's arguments, not AU_DEFUN's.
3694 # Finally, this is the expansion that is picked up by
3695 # autoconf. It tells the user to run autoupdate, and
3696 # then outputs the replacement expansion. We do not care
3697 # about autoupdate's warning because that contains
3698 # information on what to do *after* running autoupdate.
3701 # This is what autoupdate's m4 run will expand. It fires
3702 # the warning (with _au_warn_XXX), outputs it into the
3703 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3704 # the replacement expansion.
3707 # This is an auxiliary macro that is also run when
3708 # autoupdate runs m4. It simply calls m4_warning, but
3709 # we need a wrapper so that each warning is emitted only
3710 # once. We break the quoting in m4_warning's argument in
3711 # order to expand this macro's arguments, not AU_DEFUN's.
3714 # Finally, this is the expansion that is picked up by
3715 # autoconf. It tells the user to run autoupdate, and
3716 # then outputs the replacement expansion. We do not care
3717 # about autoupdate's warning because that contains
3718 # information on what to do *after* running autoupdate.
3723 # _LT_WITH_PIC([MODE])
3724 # --------------------
3725 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
3727 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3734 # This is what autoupdate's m4 run will expand. It fires
3735 # the warning (with _au_warn_XXX), outputs it into the
3736 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3737 # the replacement expansion.
3740 # This is an auxiliary macro that is also run when
3741 # autoupdate runs m4. It simply calls m4_warning, but
3742 # we need a wrapper so that each warning is emitted only
3743 # once. We break the quoting in m4_warning's argument in
3744 # order to expand this macro's arguments, not AU_DEFUN's.
3747 # Finally, this is the expansion that is picked up by
3748 # autoconf. It tells the user to run autoupdate, and
3749 # then outputs the replacement expansion. We do not care
3750 # about autoupdate's warning because that contains
3751 # information on what to do *after* running autoupdate.
3755 ## ----------------- ##
3756 ## LTDL_INIT Options ##
3757 ## ----------------- ##
3768 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3770 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3771 # Written by Gary V. Vaughan, 2004
3773 # This file is free software; the Free Software Foundation gives
3774 # unlimited permission to copy and/or distribute it, with or without
3775 # modifications, as long as this notice is preserved.
3777 # serial 6 ltsugar.m4
3779 # This is to help aclocal find these macros, as it can't see m4_define.
3783 # lt_join(SEP, ARG1, [ARG2...])
3784 # -----------------------------
3785 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3786 # associated separator.
3787 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3788 # versions in m4sugar had bugs.
3796 # Manipulate m4 lists.
3797 # These macros are necessary as long as will still need to support
3798 # Autoconf-2.59 which quotes differently.
3804 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
3805 # ------------------------------------------
3806 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3807 # Note that neither SEPARATOR nor STRING are expanded; they are appended
3808 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3809 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
3810 # than defined and empty).
3812 # This macro is needed until we can rely on Autoconf 2.62, since earlier
3813 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3818 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3819 # ----------------------------------------------------------
3820 # Produce a SEP delimited list of all paired combinations of elements of
3821 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3822 # has the form PREFIXmINFIXSUFFIXn.
3823 # Needed until we can rely on m4_combine added in Autoconf 2.62.
3827 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3828 # -----------------------------------------------------------------------
3829 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3830 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3834 # lt_dict_add(DICT, KEY, VALUE)
3835 # -----------------------------
3839 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3840 # --------------------------------------------
3844 # lt_dict_fetch(DICT, KEY, [SUBKEY])
3845 # ----------------------------------
3849 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3850 # -----------------------------------------------------------------
3854 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3855 # --------------------------------------------------------------
3858 # ltversion.m4 -- version numbers -*- Autoconf -*-
3860 # Copyright (C) 2004 Free Software Foundation, Inc.
3861 # Written by Scott James Remnant, 2004
3863 # This file is free software; the Free Software Foundation gives
3864 # unlimited permission to copy and/or distribute it, with or without
3865 # modifications, as long as this notice is preserved.
3867 # Generated from ltversion.in.
3869 # serial 3134 ltversion.m4
3870 # This file is part of GNU Libtool
3877 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3879 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3880 # Written by Scott James Remnant, 2004.
3882 # This file is free software; the Free Software Foundation gives
3883 # unlimited permission to copy and/or distribute it, with or without
3884 # modifications, as long as this notice is preserved.
3886 # serial 4 lt~obsolete.m4
3888 # These exist entirely to fool aclocal when bootstrapping libtool.
3890 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3891 # which have later been changed to m4_define as they aren't part of the
3892 # exported API, or moved to Autoconf or Automake where they belong.
3894 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3895 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3896 # using a macro with the same name in our local m4/libtool.m4 it'll
3897 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3898 # and doesn't know about Autoconf macros at all.)
3900 # So we provide this file, which has a silly filename so it's always
3901 # included after everything else. This provides aclocal with the
3902 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3903 # because those macros already exist, or will be overwritten later.
3904 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3906 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3907 # Yes, that means every name once taken will need to remain here until
3908 # we give up compatibility with versions before 1.7, at which point
3909 # we need to keep only those names which we still refer to.
3911 # This is to help aclocal find these macros, as it can't see m4_define.
3978 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3979 # Free Software Foundation, Inc.
3981 # This file is free software; the Free Software Foundation
3982 # gives unlimited permission to copy and/or distribute it,
3983 # with or without modifications, as long as this notice is preserved.
3987 # Based on depend.m4 from automake 1.9, modified for standalone use in
3988 # an environment where GNU make is required.
3990 # ZW_PROG_COMPILER_DEPENDENCIES
3991 # -----------------------------
3992 # Variant of _AM_DEPENDENCIES which just does the dependency probe and
3993 # sets fooDEPMODE accordingly. Cache-variable compatible with
3994 # original; not side-effect compatible. As the users of this macro
3995 # may require accurate dependencies for correct builds, it does *not*
3996 # honor --disable-dependency-checking, and failure to detect a usable
3997 # method is an error. depcomp is assumed to be located in
4000 # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
4006 # Choose a directory name for dependency files.
4011 # As AM_SET_DEPDIR, but also create the directory at config.status time.
4082 # intl sister-directory configuration rules.
4085 # The idea behind this macro is that there's no need to repeat all the
4086 # autoconf probes done by the intl directory - it's already done them
4087 # for us. In fact, there's no need even to look at the cache for the
4088 # answers. All we need to do is nab a few pieces of information.
4089 # The intl directory is set up to make this easy, by generating a
4090 # small file which can be sourced as a shell script; then we produce
4091 # the necessary substitutions and definitions for this directory.
4095 # Autoconf M4 include file defining utility macros for complex Canadian
4107 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4109 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
4112 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4113 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4117 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4118 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4122 # Backported from Autoconf 2.5x; can go away when and if
4123 # we switch. Put the OS path separator in $PATH_SEPARATOR.
4128 # ACX_HAVE_GCC_FOR_TARGET
4129 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4132 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4133 # Searching for installed target binutils. We need to take extra care,
4134 # else we may find the wrong assembler, linker, etc., and lose.
4136 # First try --with-build-time-tools, if specified.
4138 # For build != host, we ask the installed GCC for the name of the tool it
4139 # uses, and accept it if it is an absolute path. This is because the
4140 # only good choice for a compiler is the same GCC version that is being
4141 # installed (or we couldn't make target libraries), and we assume that
4142 # on the host system we'll have not only the same GCC version, but also
4143 # the same binutils version.
4145 # For build == host, search the same directories that the installed
4146 # compiler will search. We used to do this for the assembler, linker,
4147 # and nm only; for simplicity of configuration, however, we extend this
4148 # criterion to tools (such as ar and ranlib) that are never invoked by
4149 # the compiler, to avoid mismatches.
4151 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
4152 # if build == target. This makes the most sense only when bootstrapping,
4153 # but we also do so when build != host. In this case, we hope that the
4154 # build and host systems will have similar contents of MD_EXEC_PREFIX.
4156 # If we do not find a suitable binary, then try the user's path.
4160 # AC_PROG_CPP_WERROR
4161 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4162 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
4163 # For now, using this also overrides header checks to use only the
4164 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4165 # bit harder from here).
4166 # Eventually autoconf will default to checking headers with the compiler
4167 # instead, and we'll have to do this differently.
4169 # AC_PROG_CPP_WERROR
4172 # We require the gnatbind & gnatmake programs, as well as a compiler driver
4173 # that understands Ada. We use the user's CC setting, already found, and
4174 # possibly add $1 to the command-line parameters.
4176 # Sets the shell variable have_gnat to yes or no as appropriate, and
4177 # substitutes GNATBIND and GNATMAKE.
4204 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4205 for ac_t
in install-sh
install.sh shtool
; do
4206 if test -f "$ac_dir/$ac_t"; then
4208 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4213 if test -z "$ac_aux_dir"; then
4214 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4217 # These three variables are undocumented and unsupported,
4218 # and are intended to be withdrawn in a future Autoconf release.
4219 # They can cause serious problems if a builder's source tree is in a directory
4220 # whose full name contains unusual characters.
4221 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4222 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4223 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4226 # Find a good install program. We prefer a C program (faster),
4227 # so one script is as good as another. But avoid the broken or
4228 # incompatible versions:
4229 # SysV /etc/install, /usr/sbin/install
4230 # SunOS /usr/etc/install
4231 # IRIX /sbin/install
4233 # AmigaOS /C/install, which installs bootblocks on floppy discs
4234 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4235 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4236 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4237 # OS/2's system install, which has a completely different semantic
4238 # ./install, which can be erroneously created by make from ./install.sh.
4239 # Reject install programs that cannot install multiple files.
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4241 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4242 if test -z "$INSTALL"; then
4243 if test "${ac_cv_path_install+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir
=.
4251 # Account for people who put trailing slashes in PATH elements.
4252 case $as_dir/ in #((
4253 .
/ | .
// |
/[cC
]/* | \
4254 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4255 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4258 # OSF1 and SCO ODT 3.0 have their own names for install.
4259 # Don't use installbsd from OSF since it installs stuff as root
4261 for ac_prog
in ginstall scoinst
install; do
4262 for ac_exec_ext
in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4264 if test $ac_prog = install &&
4265 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4266 # AIX install. It has an incompatible calling convention.
4268 elif test $ac_prog = install &&
4269 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4270 # program-specific install script used by HP pwplus--don't use.
4273 rm -rf conftest.one conftest.two conftest.dir
4274 echo one
> conftest.one
4275 echo two
> conftest.two
4277 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4278 test -s conftest.one
&& test -s conftest.two
&&
4279 test -s conftest.dir
/conftest.one
&&
4280 test -s conftest.dir
/conftest.two
4282 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4295 rm -rf conftest.one conftest.two conftest.dir
4298 if test "${ac_cv_path_install+set}" = set; then
4299 INSTALL
=$ac_cv_path_install
4301 # As a last resort, use the slow shell script. Don't cache a
4302 # value for INSTALL within a source directory, because that will
4303 # break other packages using the cache if that directory is
4304 # removed, or if the value is a relative name.
4305 INSTALL
=$ac_install_sh
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4309 $as_echo "$INSTALL" >&6; }
4311 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4312 # It thinks the first close brace ends the variable substitution.
4313 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4315 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4317 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4320 ac_cpp
='$CPP $CPPFLAGS'
4321 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4324 if test -n "$ac_tool_prefix"; then
4325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4326 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if test "${ac_cv_prog_CC+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4332 if test -n "$CC"; then
4333 ac_cv_prog_CC
="$CC" # Let the user override the test.
4335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir
=.
4340 for ac_exec_ext
in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 if test -n "$CC"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4355 $as_echo "$CC" >&6; }
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4363 if test -z "$ac_cv_prog_CC"; then
4365 # Extract the first word of "gcc", so it can be a program name with args.
4366 set dummy gcc
; ac_word
=$2
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368 $as_echo_n "checking for $ac_word... " >&6; }
4369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4372 if test -n "$ac_ct_CC"; then
4373 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4379 test -z "$as_dir" && as_dir
=.
4380 for ac_exec_ext
in '' $ac_executable_extensions; do
4381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382 ac_cv_prog_ac_ct_CC
="gcc"
4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4393 if test -n "$ac_ct_CC"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4395 $as_echo "$ac_ct_CC" >&6; }
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4401 if test "x$ac_ct_CC" = x
; then
4404 case $cross_compiling:$ac_tool_warned in
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4408 ac_tool_warned
=yes ;;
4416 if test -z "$CC"; then
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4419 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if test "${ac_cv_prog_CC+set}" = set; then :
4423 $as_echo_n "(cached) " >&6
4425 if test -n "$CC"; then
4426 ac_cv_prog_CC
="$CC" # Let the user override the test.
4428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir
=.
4433 for ac_exec_ext
in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 if test -n "$CC"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4448 $as_echo "$CC" >&6; }
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4457 if test -z "$CC"; then
4458 # Extract the first word of "cc", so it can be a program name with args.
4459 set dummy cc
; ac_word
=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if test "${ac_cv_prog_CC+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4465 if test -n "$CC"; then
4466 ac_cv_prog_CC
="$CC" # Let the user override the test.
4469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4473 test -z "$as_dir" && as_dir
=.
4474 for ac_exec_ext
in '' $ac_executable_extensions; do
4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4476 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4477 ac_prog_rejected
=yes
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 if test $ac_prog_rejected = yes; then
4489 # We found a bogon in the path, so make sure we never use it.
4490 set dummy
$ac_cv_prog_CC
4492 if test $# != 0; then
4493 # We chose a different compiler from the bogus one.
4494 # However, it has the same basename, so the bogon will be chosen
4495 # first if we set CC to just the basename; use the full file name.
4497 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4503 if test -n "$CC"; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4505 $as_echo "$CC" >&6; }
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4513 if test -z "$CC"; then
4514 if test -n "$ac_tool_prefix"; then
4515 for ac_prog
in cl.exe
4517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4518 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if test "${ac_cv_prog_CC+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4524 if test -n "$CC"; then
4525 ac_cv_prog_CC
="$CC" # Let the user override the test.
4527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4531 test -z "$as_dir" && as_dir
=.
4532 for ac_exec_ext
in '' $ac_executable_extensions; do
4533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4534 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 if test -n "$CC"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4547 $as_echo "$CC" >&6; }
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4554 test -n "$CC" && break
4557 if test -z "$CC"; then
4559 for ac_prog
in cl.exe
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy
$ac_prog; ac_word
=$2
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4568 if test -n "$ac_ct_CC"; then
4569 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir
=.
4576 for ac_exec_ext
in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_ac_ct_CC
="$ac_prog"
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4589 if test -n "$ac_ct_CC"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4591 $as_echo "$ac_ct_CC" >&6; }
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4598 test -n "$ac_ct_CC" && break
4601 if test "x$ac_ct_CC" = x
; then
4604 case $cross_compiling:$ac_tool_warned in
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4608 ac_tool_warned
=yes ;;
4617 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4619 as_fn_error
"no acceptable C compiler found in \$PATH
4620 See \`config.log' for more details." "$LINENO" 5; }
4622 # Provide some information about the compiler.
4623 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4626 for ac_option
in --version -v -V -qversion; do
4627 { { ac_try
="$ac_compiler $ac_option >&5"
4629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4633 $as_echo "$ac_try_echo"; } >&5
4634 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4636 if test -s conftest.err; then
4638 ... rest of stderr output deleted ...
4639 10q' conftest.err >conftest.er1
4640 cat conftest.er1 >&5
4641 rm -f conftest.er1 conftest.err
4643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4644 test $ac_status = 0; }
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4658 ac_clean_files_save=$ac_clean_files
4659 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4660 # Try to create an executable without -o first, disregard a.out.
4661 # It will help us diagnose broken compilers, and finding out an intuition
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4664 $as_echo_n "checking for C compiler default output file name... " >&6; }
4665 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4667 # The possible output files:
4668 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4671 for ac_file in $ac_files
4674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4675 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4680 if { { ac_try="$ac_link_default"
4682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4683 *) ac_try_echo
=$ac_try;;
4685 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4686 $as_echo "$ac_try_echo"; } >&5
4687 (eval "$ac_link_default") 2>&5
4689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690 test $ac_status = 0; }; then :
4691 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4692 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4693 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4694 # so that the user can short-circuit this test for compilers unknown to
4696 for ac_file
in $ac_files ''
4698 test -f "$ac_file" ||
continue
4700 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4703 # We found the default executable, but exeext='' is most
4707 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4709 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4711 # We set ac_cv_exeext here because the later test for it is not
4712 # safe: cross compilers may not add the suffix if given an `-o'
4713 # argument, so we may need to know it at that point already.
4714 # Even if this section looks crufty: it has the advantage of
4721 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4727 $as_echo "$ac_file" >&6; }
4728 if test -z "$ac_file"; then :
4729 $as_echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.
$ac_ext >&5
4732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4734 { as_fn_set_status
77
4735 as_fn_error
"C compiler cannot create executables
4736 See \`config.log' for more details." "$LINENO" 5; }; }
4738 ac_exeext
=$ac_cv_exeext
4740 # Check that the compiler produces executables we can run. If not, either
4741 # the compiler is broken, or we cross compile.
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4743 $as_echo_n "checking whether the C compiler works... " >&6; }
4744 # If not cross compiling, check that we can run a simple program.
4745 if test "$cross_compiling" != yes; then
4746 if { ac_try
='./$ac_file'
4747 { { case "(($ac_try" in
4748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4752 $as_echo "$ac_try_echo"; } >&5
4753 (eval "$ac_try") 2>&5
4755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756 test $ac_status = 0; }; }; then
4759 if test "$cross_compiling" = maybe; then
4762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4764 as_fn_error "cannot run C compiled programs.
4765 If you meant to cross compile
, use \
`--host'.
4766 See \`config.log
' for more details." "$LINENO" 5; }
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4771 $as_echo "yes" >&6; }
4773 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4774 ac_clean_files=$ac_clean_files_save
4775 # Check that the compiler produces executables we can run. If not, either
4776 # the compiler is broken, or we cross compile.
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4778 $as_echo_n "checking whether we are cross compiling... " >&6; }
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4780 $as_echo "$cross_compiling" >&6; }
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4783 $as_echo_n "checking for suffix of executables... " >&6; }
4784 if { { ac_try="$ac_link"
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4790 $as_echo "$ac_try_echo"; } >&5
4791 (eval "$ac_link") 2>&5
4793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4794 test $ac_status = 0; }; then :
4795 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4796 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4797 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4799 for ac_file
in conftest.exe conftest conftest.
*; do
4800 test -f "$ac_file" ||
continue
4802 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4803 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4811 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4812 See \`config.log' for more details." "$LINENO" 5; }
4814 rm -f conftest
$ac_cv_exeext
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4816 $as_echo "$ac_cv_exeext" >&6; }
4818 rm -f conftest.
$ac_ext
4819 EXEEXT
=$ac_cv_exeext
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4822 $as_echo_n "checking for suffix of object files... " >&6; }
4823 if test "${ac_cv_objext+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4837 rm -f conftest.o conftest.obj
4838 if { { ac_try
="$ac_compile"
4840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4844 $as_echo "$ac_try_echo"; } >&5
4845 (eval "$ac_compile") 2>&5
4847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4848 test $ac_status = 0; }; then :
4849 for ac_file in conftest.o conftest.obj conftest.*; do
4850 test -f "$ac_file" || continue;
4852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4853 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4858 $as_echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4863 as_fn_error "cannot compute suffix of object files
: cannot compile
4864 See \
`config.log' for more details." "$LINENO" 5; }
4866 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4869 $as_echo "$ac_cv_objext" >&6; }
4870 OBJEXT=$ac_cv_objext
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4873 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4874 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4891 if ac_fn_c_try_compile "$LINENO"; then :
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4901 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4902 if test $ac_compiler_gnu = yes; then
4907 ac_test_CFLAGS=${CFLAGS+set}
4908 ac_save_CFLAGS=$CFLAGS
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4910 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4911 if test "${ac_cv_prog_cc_g+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4914 ac_save_c_werror_flag=$ac_c_werror_flag
4915 ac_c_werror_flag=yes
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4929 if ac_fn_c_try_compile "$LINENO"; then :
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4944 if ac_fn_c_try_compile "$LINENO"; then :
4947 ac_c_werror_flag=$ac_save_c_werror_flag
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4960 if ac_fn_c_try_compile "$LINENO"; then :
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 ac_c_werror_flag=$ac_save_c_werror_flag
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4971 $as_echo "$ac_cv_prog_cc_g" >&6; }
4972 if test "$ac_test_CFLAGS" = set; then
4973 CFLAGS=$ac_save_CFLAGS
4974 elif test $ac_cv_prog_cc_g = yes; then
4975 if test "$GCC" = yes; then
4981 if test "$GCC" = yes; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4988 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4989 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4992 ac_cv_prog_cc_c89=no
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4998 #include <sys/types.h>
4999 #include <sys/stat.h>
5000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5001 struct buf { int x; };
5002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5003 static char *e (p, i)
5009 static char *f (char * (*g) (char **, int), char **p, ...)
5014 s = g (p, va_arg (v,int));
5019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5020 function prototypes and stuff, but not '\xHH' hex character constants.
5021 These don't provoke an error unfortunately, instead are silently treated
5022 as 'x'. The following induces an error, until -std is added to get
5023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5024 array size at least. It's necessary to write '\x00'==0 to get something
5025 that's true only with -std. */
5026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5029 inside strings and character constants. */
5031 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5033 int test (int i, double x);
5034 struct s1 {int (*f) (int a);};
5035 struct s2 {int (*f) (double a);};
5036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5042 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5048 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5050 CC="$ac_save_CC $ac_arg"
5051 if ac_fn_c_try_compile "$LINENO"; then :
5052 ac_cv_prog_cc_c89=$ac_arg
5054 rm -f core conftest.err conftest.$ac_objext
5055 test "x$ac_cv_prog_cc_c89" != "xno" && break
5057 rm -f conftest.$ac_ext
5062 case "x$ac_cv_prog_cc_c89" in
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5065 $as_echo "none needed" >&6; } ;;
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5068 $as_echo "unsupported" >&6; } ;;
5070 CC="$CC $ac_cv_prog_cc_c89"
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5072 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5074 if test "x$ac_cv_prog_cc_c89" != xno; then :
5079 ac_cpp='$CPP $CPPFLAGS'
5080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085 # Put a plausible default for CC_FOR_BUILD in Makefile.
5086 if test "x$cross_compiling" = "xno"; then
5087 CC_FOR_BUILD='$(CC)'
5091 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5094 # If we haven't got the data from the intl directory,
5095 # assume NLS is disabled.
5104 if test -f ../../intl/config.intl; then
5105 . ../../intl/config.intl
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5108 $as_echo_n "checking whether NLS is requested... " >&6; }
5109 if test x"$USE_NLS" != xyes; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5114 $as_echo "yes" >&6; }
5116 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5120 $as_echo_n "checking for catalogs to be installed... " >&6; }
5121 # Look for .po and .gmo files in the source directory.
5124 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5125 # If there aren't any .gmo files the shell will give us the
5126 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5128 case "$cat" in *\**)
5131 # The quadruple backslash is collapsed to a double backslash
5132 # by the backticks, then collapsed again by the double quotes,
5133 # leaving us with one backslash in the sed expression (right
5134 # before the dot that mustn't act as a wildcard).
5135 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5136 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
5137 # The user is allowed to set LINGUAS to a list of languages to
5138 # install catalogs for. If it's empty that means "all of them."
5139 if test "x$LINGUAS" = x; then
5140 CATALOGS="$CATALOGS $cat"
5141 XLINGUAS="$XLINGUAS $lang"
5143 case "$LINGUAS" in *$lang*)
5144 CATALOGS="$CATALOGS $cat"
5145 XLINGUAS="$XLINGUAS $lang"
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5152 $as_echo "$LINGUAS" >&6; }
5166 # Check whether --enable-sim-alignment was given.
5167 if test "${enable_sim_alignment+set}" = set; then :
5168 enableval=$enable_sim_alignment; case "${enableval}" in
5169 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
5170 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
5171 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
5172 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
5174 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
5175 echo "Setting alignment flags = $sim_alignment" 6>&1
5182 # Check whether --enable-sim-assert was given.
5183 if test "${enable_sim_assert+set}" = set; then :
5184 enableval=$enable_sim_assert; case "${enableval}" in
5185 yes) sim_assert="-DWITH_ASSERT=1";;
5186 no) sim_assert="-DWITH_ASSERT=0";;
5187 *) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
5189 if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
5190 echo "Setting assert flags = $sim_assert" 6>&1
5197 # Check whether --enable-sim-bitsize was given.
5198 if test "${enable_sim_bitsize+set}" = set; then :
5199 enableval=$enable_sim_bitsize; case "${enableval}" in
5200 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
5201 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
5203 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5204 echo "Setting bitsize flags = $sim_bitsize" 6>&1
5211 # Check whether --enable-sim-config was given.
5212 if test "${enable_sim_config+set}" = set; then :
5213 enableval=$enable_sim_config; case "${enableval}" in
5214 yes|no) as_fn_error "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
5215 *) if test -f "${srcdir}/${enableval}"; then
5216 sim_config="${enableval}";
5217 elif test -f "${srcdir}/${enableval}-config.h"; then
5218 sim_config="${enableval}-config.h"
5220 as_fn_error "\"Config file $enableval was not found\"" "$LINENO" 5;
5221 sim_config=std-config.h
5224 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
5225 echo "Setting config flags = $sim_config" 6>&1
5228 sim_config="std-config.h"
5229 if test x"$silent" != x"yes"; then
5230 echo "Setting config flags = $sim_config" 6>&1
5235 # Check whether --enable-sim-decode-mechanism was given.
5236 if test "${enable_sim_decode_mechanism+set}" = set; then :
5237 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
5238 yes|no) as_fn_error "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
5239 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
5240 *) as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
5241 sim_decode_mechanism="switch";;
5243 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
5244 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
5247 sim_decode_mechanism=""
5248 if test x"$silent" != x"yes"; then
5249 echo "Setting decode mechanism flags = $sim_decode_mechanism"
5254 # Check whether --enable-sim-default-model was given.
5255 if test "${enable_sim_default_model+set}" = set; then :
5256 enableval=$enable_sim_default_model; case "${enableval}" in
5257 yes|no) as_fn_error "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
5258 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
5260 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5261 echo "Setting default-model flags = $sim_default_model" 6>&1
5264 sim_default_model=""
5268 # Check whether --enable-sim-duplicate was given.
5269 if test "${enable_sim_duplicate+set}" = set; then :
5270 enableval=$enable_sim_duplicate; case "${enableval}" in
5273 *) as_fn_error "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
5275 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
5276 echo "Setting duplicate flags = $sim_dup" 6>&1
5280 if test x"$silent" != x"yes"; then
5281 echo "Setting duplicate flags = $sim_dup" 6>&1
5286 # Check whether --enable-sim-endian was given.
5287 if test "${enable_sim_endian+set}" = set; then :
5288 enableval=$enable_sim_endian; case "${enableval}" in
5289 yes) case "$target" in
5290 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5291 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5292 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5294 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5295 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5296 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5297 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
5299 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5300 echo "Setting endian flags = $sim_endian" 6>&1
5307 # Check whether --enable-sim-env was given.
5308 if test "${enable_sim_env+set}" = set; then :
5309 enableval=$enable_sim_env; case "${enableval}" in
5310 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5311 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5312 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5313 no) sim_env="-DWITH_ENVIRONMENT=0";;
5314 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-env\"" "$LINENO" 5; sim_env="";;
5316 if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
5317 echo "Setting env flags = $sim_env" 6>&1
5324 # Check whether --enable-sim-filter was given.
5325 if test "${enable_sim_filter+set}" = set; then :
5326 enableval=$enable_sim_filter; case "${enableval}" in
5327 yes) as_fn_error "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
5329 *) sim_filter="-F $enableval";;
5331 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
5332 echo "Setting filter flags = $sim_filter" 6>&1
5335 sim_filter="-F 32,f,o"
5336 if test x"$silent" != x"yes"; then
5337 echo "Setting filter flags = $sim_filter" 6>&1
5342 # Check whether --enable-sim-float was given.
5343 if test "${enable_sim_float+set}" = set; then :
5344 enableval=$enable_sim_float; case "${enableval}" in
5345 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5346 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5347 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5348 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5349 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
5351 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5352 echo "Setting float flags = $sim_float" 6>&1
5357 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5358 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
5366 $as_echo_n "checking if union semun defined... " >&6; }
5367 if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5373 #include <sys/types.h>
5374 #include <sys/ipc.h>
5375 #include <sys/sem.h>
5384 if ac_fn_c_try_compile "$LINENO"; then :
5385 ac_cv_has_union_semun="yes"
5387 ac_cv_has_union_semun="no"
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
5391 $as_echo "$ac_cv_has_union_semun" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
5395 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
5398 if test "$ac_cv_has_union_semun" = "yes"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5400 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
5401 if test "${ac_cv_sysv_sem+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5405 if test "$cross_compiling" = yes; then :
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5411 #include <sys/types.h>
5412 #include <sys/ipc.h>
5413 #include <sys/sem.h>
5417 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5420 arg.val = 0; /* avoid implicit type cast to union */
5421 if (semctl(id, 0, IPC_RMID, arg) == -1)
5427 if ac_fn_c_try_run "$LINENO"; then :
5428 ac_cv_sysv_sem="yes"
5432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5433 conftest.$ac_objext conftest.beam conftest.$ac_ext
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5439 $as_echo "$ac_cv_sysv_sem" >&6; }
5440 else # semun is not defined
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5442 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
5443 if test "${ac_cv_sysv_sem+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5447 if test "$cross_compiling" = yes; then :
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5453 #include <sys/types.h>
5454 #include <sys/ipc.h>
5455 #include <sys/sem.h>
5458 struct semid_ds *buf;
5464 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5467 arg.val = 0; /* avoid implicit type cast to union */
5468 if (semctl(id, 0, IPC_RMID, arg) == -1)
5474 if ac_fn_c_try_run "$LINENO"; then :
5475 ac_cv_sysv_sem="yes"
5479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5480 conftest.$ac_objext conftest.beam conftest.$ac_ext
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5486 $as_echo "$ac_cv_sysv_sem" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
5490 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
5491 if test "${ac_cv_sysv_shm+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5495 if test "$cross_compiling" = yes; then :
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5501 #include <sys/types.h>
5502 #include <sys/ipc.h>
5503 #include <sys/shm.h>
5505 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
5508 if (shmctl(id, IPC_RMID, 0) == -1)
5514 if ac_fn_c_try_run "$LINENO"; then :
5515 ac_cv_sysv_shm="yes"
5519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5520 conftest.$ac_objext conftest.beam conftest.$ac_ext
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
5526 $as_echo "$ac_cv_sysv_shm" >&6; }
5528 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
5529 sim_sysv_ipc_hw=",sem,shm";
5534 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
5536 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
5541 # Check whether --enable-sim-hardware was given.
5542 if test "${enable_sim_hardware+set}" = set; then :
5543 enableval=$enable_sim_hardware; hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
5544 case "${enableval}" in
5546 no) as_fn_error "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
5547 ,*) hardware="${hardware}${enableval}";;
5548 *,) hardware="${enableval}${hardware}";;
5549 *) hardware="${enableval}"'';;
5551 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
5552 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
5553 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
5554 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5557 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
5558 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
5559 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
5560 if test x"$silent" != x"yes"; then
5561 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5565 # Check whether --enable-sim-hostbitsize was given.
5566 if test "${enable_sim_hostbitsize+set}" = set; then :
5567 enableval=$enable_sim_hostbitsize; case "${enableval}" in
5568 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
5569 *) as_fn_error "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
5571 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
5572 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
5580 ac_cpp='$CPP $CPPFLAGS'
5581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5585 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5586 # On Suns, sometimes $CPP names a directory.
5587 if test -n "$CPP" && test -d "$CPP"; then
5590 if test -z "$CPP"; then
5591 if test "${ac_cv_prog_CPP+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5594 # Double quotes because CPP needs to be expanded
5595 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5598 for ac_c_preproc_warn_flag in '' yes
5600 # Use a header file that comes with gcc, so configuring glibc
5601 # with a fresh cross-compiler works.
5602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5603 # <limits.h> exists even on freestanding compilers.
5604 # On the NeXT, cc -E runs the code through the compiler's parser,
5605 # not just through cpp. "Syntax error" is here to catch this case.
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5609 # include <limits.h>
5611 # include <assert.h>
5615 if ac_fn_c_try_cpp "$LINENO"; then :
5618 # Broken: fails on valid input.
5621 rm -f conftest.err conftest.$ac_ext
5623 # OK, works on sane cases. Now check whether nonexistent headers
5624 # can be detected and how.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #include <ac_nonexistent.h>
5629 if ac_fn_c_try_cpp "$LINENO"; then :
5630 # Broken: success on invalid input.
5633 # Passes both tests.
5637 rm -f conftest.err conftest.$ac_ext
5640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5641 rm -f conftest.err conftest.
$ac_ext
5642 if $ac_preproc_ok; then :
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5655 $as_echo "$CPP" >&6; }
5657 for ac_c_preproc_warn_flag
in '' yes
5659 # Use a header file that comes with gcc, so configuring glibc
5660 # with a fresh cross-compiler works.
5661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5662 # <limits.h> exists even on freestanding compilers.
5663 # On the NeXT, cc -E runs the code through the compiler's parser,
5664 # not just through cpp. "Syntax error" is here to catch this case.
5665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5668 # include <limits.h>
5670 # include <assert.h>
5674 if ac_fn_c_try_cpp
"$LINENO"; then :
5677 # Broken: fails on valid input.
5680 rm -f conftest.err conftest.
$ac_ext
5682 # OK, works on sane cases. Now check whether nonexistent headers
5683 # can be detected and how.
5684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 #include <ac_nonexistent.h>
5688 if ac_fn_c_try_cpp
"$LINENO"; then :
5689 # Broken: success on invalid input.
5692 # Passes both tests.
5696 rm -f conftest.err conftest.
$ac_ext
5699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5700 rm -f conftest.err conftest.
$ac_ext
5701 if $ac_preproc_ok; then :
5704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5706 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5707 See \`config.log' for more details." "$LINENO" 5; }
5711 ac_cpp
='$CPP $CPPFLAGS'
5712 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5713 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5714 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5718 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5719 if test "${ac_cv_path_GREP+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5722 if test -z "$GREP"; then
5723 ac_path_GREP_found
=false
5724 # Loop through the user's path and test for each of PROGNAME-LIST
5725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5726 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5729 test -z "$as_dir" && as_dir
=.
5730 for ac_prog
in grep ggrep
; do
5731 for ac_exec_ext
in '' $ac_executable_extensions; do
5732 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5733 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5734 # Check for GNU ac_path_GREP and select it if it is found.
5735 # Check for GNU $ac_path_GREP
5736 case `"$ac_path_GREP" --version 2>&1` in
5738 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5741 $as_echo_n 0123456789 >"conftest.in"
5744 cat "conftest.in" "conftest.in" >"conftest.tmp"
5745 mv "conftest.tmp" "conftest.in"
5746 cp "conftest.in" "conftest.nl"
5747 $as_echo 'GREP' >> "conftest.nl"
5748 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5749 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5750 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5751 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5752 # Best one so far, save it but keep looking for a better one
5753 ac_cv_path_GREP
="$ac_path_GREP"
5754 ac_path_GREP_max
=$ac_count
5756 # 10*(2^10) chars as input seems more than enough
5757 test $ac_count -gt 10 && break
5759 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5762 $ac_path_GREP_found && break 3
5767 if test -z "$ac_cv_path_GREP"; then
5768 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5771 ac_cv_path_GREP
=$GREP
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5776 $as_echo "$ac_cv_path_GREP" >&6; }
5777 GREP
="$ac_cv_path_GREP"
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5781 $as_echo_n "checking for egrep... " >&6; }
5782 if test "${ac_cv_path_EGREP+set}" = set; then :
5783 $as_echo_n "(cached) " >&6
5785 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5786 then ac_cv_path_EGREP
="$GREP -E"
5788 if test -z "$EGREP"; then
5789 ac_path_EGREP_found
=false
5790 # Loop through the user's path and test for each of PROGNAME-LIST
5791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5792 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5795 test -z "$as_dir" && as_dir
=.
5796 for ac_prog
in egrep; do
5797 for ac_exec_ext
in '' $ac_executable_extensions; do
5798 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5799 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5800 # Check for GNU ac_path_EGREP and select it if it is found.
5801 # Check for GNU $ac_path_EGREP
5802 case `"$ac_path_EGREP" --version 2>&1` in
5804 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5807 $as_echo_n 0123456789 >"conftest.in"
5810 cat "conftest.in" "conftest.in" >"conftest.tmp"
5811 mv "conftest.tmp" "conftest.in"
5812 cp "conftest.in" "conftest.nl"
5813 $as_echo 'EGREP' >> "conftest.nl"
5814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5815 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5816 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5818 # Best one so far, save it but keep looking for a better one
5819 ac_cv_path_EGREP
="$ac_path_EGREP"
5820 ac_path_EGREP_max
=$ac_count
5822 # 10*(2^10) chars as input seems more than enough
5823 test $ac_count -gt 10 && break
5825 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5828 $ac_path_EGREP_found && break 3
5833 if test -z "$ac_cv_path_EGREP"; then
5834 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5837 ac_cv_path_EGREP
=$EGREP
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5843 $as_echo "$ac_cv_path_EGREP" >&6; }
5844 EGREP
="$ac_cv_path_EGREP"
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5848 $as_echo_n "checking for ANSI C header files... " >&6; }
5849 if test "${ac_cv_header_stdc+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5867 if ac_fn_c_try_compile
"$LINENO"; then :
5868 ac_cv_header_stdc
=yes
5870 ac_cv_header_stdc
=no
5872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5874 if test $ac_cv_header_stdc = yes; then
5875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5882 $EGREP "memchr" >/dev
/null
2>&1; then :
5885 ac_cv_header_stdc
=no
5891 if test $ac_cv_header_stdc = yes; then
5892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5899 $EGREP "free" >/dev
/null
2>&1; then :
5902 ac_cv_header_stdc
=no
5908 if test $ac_cv_header_stdc = yes; then
5909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5910 if test "$cross_compiling" = yes; then :
5913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5917 #if ((' ' & 0x0FF) == 0x020)
5918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5921 # define ISLOWER(c) \
5922 (('a' <= (c) && (c) <= 'i') \
5923 || ('j' <= (c) && (c) <= 'r') \
5924 || ('s' <= (c) && (c) <= 'z'))
5925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5933 for (i = 0; i < 256; i++)
5934 if (XOR (islower (i), ISLOWER (i))
5935 || toupper (i) != TOUPPER (i))
5940 if ac_fn_c_try_run
"$LINENO"; then :
5943 ac_cv_header_stdc
=no
5945 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5946 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5952 $as_echo "$ac_cv_header_stdc" >&6; }
5953 if test $ac_cv_header_stdc = yes; then
5955 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5959 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5960 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5961 inttypes.h stdint.h unistd.h
5963 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5964 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5966 eval as_val
=\$
$as_ac_Header
5967 if test "x$as_val" = x
""yes; then :
5968 cat >>confdefs.h
<<_ACEOF
5969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5977 # Check whether --enable-sim-hostendian was given.
5978 if test "${enable_sim_hostendian+set}" = set; then :
5979 enableval
=$enable_sim_hostendian; case "${enableval}" in
5980 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
5981 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
5982 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
5983 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
5985 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
5986 echo "Setting hostendian flags = $sim_hostendian" 6>&1
5990 if test "x$cross_compiling" = "xno"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5992 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5993 if test "${ac_cv_c_bigendian+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5996 ac_cv_c_bigendian
=unknown
5997 # See if we're dealing with a universal compiler.
5998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6000 #ifndef __APPLE_CC__
6001 not a universal capable compiler
6006 if ac_fn_c_try_compile
"$LINENO"; then :
6008 # Check for potential -arch flags. It is not universal unless
6009 # there are at least two -arch flags with different values.
6012 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6013 if test -n "$ac_prev"; then
6015 i?
86 | x86_64 | ppc | ppc64
)
6016 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
6019 ac_cv_c_bigendian
=universal
6025 elif test "x$ac_word" = "x-arch"; then
6030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6031 if test $ac_cv_c_bigendian = unknown
; then
6032 # See if sys/param.h defines the BYTE_ORDER macro.
6033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6035 #include <sys/types.h>
6036 #include <sys/param.h>
6041 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6042 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6051 if ac_fn_c_try_compile
"$LINENO"; then :
6052 # It does; now see whether it defined to BIG_ENDIAN or not.
6053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #include <sys/types.h>
6056 #include <sys/param.h>
6061 #if BYTE_ORDER != BIG_ENDIAN
6069 if ac_fn_c_try_compile
"$LINENO"; then :
6070 ac_cv_c_bigendian
=yes
6072 ac_cv_c_bigendian
=no
6074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6078 if test $ac_cv_c_bigendian = unknown
; then
6079 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6087 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6095 if ac_fn_c_try_compile
"$LINENO"; then :
6096 # It does; now see whether it defined to _BIG_ENDIAN or not.
6097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6112 if ac_fn_c_try_compile
"$LINENO"; then :
6113 ac_cv_c_bigendian
=yes
6115 ac_cv_c_bigendian
=no
6117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6121 if test $ac_cv_c_bigendian = unknown
; then
6122 # Compile a test program.
6123 if test "$cross_compiling" = yes; then :
6124 # Try to guess by grepping values from an object file.
6125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6127 short int ascii_mm[] =
6128 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6129 short int ascii_ii[] =
6130 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6131 int use_ascii (int i) {
6132 return ascii_mm[i] + ascii_ii[i];
6134 short int ebcdic_ii[] =
6135 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6136 short int ebcdic_mm[] =
6137 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6138 int use_ebcdic (int i) {
6139 return ebcdic_mm[i] + ebcdic_ii[i];
6146 return use_ascii (foo) == use_ebcdic (foo);
6151 if ac_fn_c_try_compile
"$LINENO"; then :
6152 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6153 ac_cv_c_bigendian
=yes
6155 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6156 if test "$ac_cv_c_bigendian" = unknown
; then
6157 ac_cv_c_bigendian
=no
6159 # finding both strings is unlikely to happen, but who knows?
6160 ac_cv_c_bigendian
=unknown
6164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6168 $ac_includes_default
6173 /* Are we little or big endian? From Harbison&Steele. */
6177 char c[sizeof (long int)];
6180 return u.c[sizeof (long int) - 1] == 1;
6186 if ac_fn_c_try_run
"$LINENO"; then :
6187 ac_cv_c_bigendian
=no
6189 ac_cv_c_bigendian
=yes
6191 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6192 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6198 $as_echo "$ac_cv_c_bigendian" >&6; }
6199 case $ac_cv_c_bigendian in #(
6201 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6207 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6211 as_fn_error
"unknown endianness
6212 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6215 if test $ac_cv_c_bigendian = yes; then
6216 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
6218 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
6221 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
6226 # Check whether --enable-sim-icache was given.
6227 if test "${enable_sim_icache+set}" = set; then :
6228 enableval
=$enable_sim_icache; icache
="-R"
6229 case "${enableval}" in
6230 yes) icache
="1024"; sim_icache
="-I $icache";;
6231 no
) sim_icache
="-R";;
6234 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
6236 define
) sim_icache
="${sim_icache}R";;
6237 semantic
) sim_icache
="${sim_icache}C";;
6238 insn
) sim_icache
="${sim_icache}S";;
6239 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
6240 *) as_fn_error
"\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache
="";;
6243 sim_icache
="${sim_icache}I $icache";;
6245 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
6246 echo "Setting instruction cache size to $icache ($sim_icache)"
6249 sim_icache
="-CSRI 1024"
6250 if test x
"$silent" != x
"yes"; then
6251 echo "Setting instruction cache size to 1024 ($sim_icache)"
6256 # Check whether --enable-sim-inline was given.
6257 if test "${enable_sim_inline+set}" = set; then :
6258 enableval
=$enable_sim_inline; sim_inline
=""
6259 case "$enableval" in
6260 no
) sim_inline
="-DDEFAULT_INLINE=0";;
6261 0) sim_inline
="-DDEFAULT_INLINE=0";;
6262 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
6263 1) sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
6264 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6267 *_INLINE
=*) new_flag
="-D$x";;
6268 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6269 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
6270 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
6272 if test x
"$sim_inline" = x
""; then
6273 sim_inline
="$new_flag"
6275 sim_inline
="$sim_inline $new_flag"
6279 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
6280 echo "Setting inline flags = $sim_inline" 6>&1
6283 if test x
"$GCC" != ""; then
6284 sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
6285 if test x
"$silent" != x
"yes"; then
6286 echo "Setting inline flags = $sim_inline" 6>&1
6294 # Check whether --enable-sim-jump was given.
6295 if test "${enable_sim_jump+set}" = set; then :
6296 enableval
=$enable_sim_jump; case "${enableval}" in
6297 yes) sim_jump
="-J";;
6299 *) as_fn_error
"\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump
="";;
6301 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
6302 echo "Setting jump flag = $sim_jump" 6>&1
6306 if test x
"$silent" != x
"yes"; then
6307 echo "Setting jump flag = $sim_jump" 6>&1
6312 # Check whether --enable-sim-line-nr was given.
6313 if test "${enable_sim_line_nr+set}" = set; then :
6314 enableval
=$enable_sim_line_nr; case "${enableval}" in
6315 yes) sim_line_nr
="";;
6316 no
) sim_line_nr
="-L";;
6317 *) as_fn_error
"\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr
="";;
6319 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
6320 echo "Setting warning flags = $sim_line_nr" 6>&1
6327 # Check whether --enable-sim-model was given.
6328 if test "${enable_sim_model+set}" = set; then :
6329 enableval
=$enable_sim_model; case "${enableval}" in
6330 yes|no
) as_fn_error
"\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
6331 *) sim_model
="-DWITH_MODEL=${enableval}";;
6333 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
6334 echo "Setting model flags = $sim_model" 6>&1
6341 # Check whether --enable-sim-model-issue was given.
6342 if test "${enable_sim_model_issue+set}" = set; then :
6343 enableval
=$enable_sim_model_issue; case "${enableval}" in
6344 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
6345 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
6346 *) as_fn_error
"\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue
="";;
6348 if test x
"$silent" != x
"yes"; then
6349 echo "Setting model-issue flags = $sim_model_issue" 6>&1
6356 # Check whether --enable-sim-monitor was given.
6357 if test "${enable_sim_monitor+set}" = set; then :
6358 enableval
=$enable_sim_monitor; case "${enableval}" in
6359 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
6360 no
) sim_monitor
="-DWITH_MON=0";;
6361 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
6362 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
6363 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env
="";;
6365 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
6366 echo "Setting monitor flags = $sim_monitor" 6>&1
6373 # Check whether --enable-sim-opcode was given.
6374 if test "${enable_sim_opcode+set}" = set; then :
6375 enableval
=$enable_sim_opcode; case "${enableval}" in
6376 yes|no
) as_fn_error
"\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
6377 *) if test -f "${srcdir}/${enableval}"; then
6378 sim_opcode
="${enableval}"
6379 elif test -f "${srcdir}/dc-${enableval}"; then
6380 sim_opcode
="dc-${enableval}"
6382 as_fn_error
"\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
6383 sim_opcode
="dc-complex"
6386 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
6387 echo "Setting opcode flags = $sim_opcode" 6>&1
6390 sim_opcode
="dc-complex"
6391 if test x
"$silent" != x
"yes"; then
6392 echo "Setting opcode flags = $sim_opcode"
6397 # Check whether --enable-sim-packages was given.
6398 if test "${enable_sim_packages+set}" = set; then :
6399 enableval
=$enable_sim_packages; packages
=disklabel
6400 case "${enableval}" in
6402 no
) as_fn_error
"\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages
="";;
6403 ,*) packages
="${packages}${enableval}";;
6404 *,) packages
="${enableval}${packages}";;
6405 *) packages
="${enableval}"'';;
6407 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6408 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6409 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
6410 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6414 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6415 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6416 if test x
"$silent" != x
"yes"; then
6417 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6422 # Check whether --enable-sim-reserved-bits was given.
6423 if test "${enable_sim_reserved_bits+set}" = set; then :
6424 enableval
=$enable_sim_reserved_bits; case "${enableval}" in
6425 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
6426 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
6427 *) as_fn_error
"\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved
="";;
6429 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
6430 echo "Setting reserved flags = $sim_reserved" 6>&1
6437 # Check whether --enable-sim-smp was given.
6438 if test "${enable_sim_smp+set}" = set; then :
6439 enableval
=$enable_sim_smp; case "${enableval}" in
6440 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
6441 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
6442 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
6444 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
6445 echo "Setting smp flags = $sim_smp" 6>&1
6448 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
6449 if test x
"$silent" != x
"yes"; then
6450 echo "Setting smp flags = $sim_smp" 6>&1
6455 # Check whether --enable-sim-stdio was given.
6456 if test "${enable_sim_stdio+set}" = set; then :
6457 enableval
=$enable_sim_stdio; case "${enableval}" in
6458 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
6459 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
6460 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
6462 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
6463 echo "Setting stdio flags = $sim_stdio" 6>&1
6470 # Check whether --enable-sim-switch was given.
6471 if test "${enable_sim_switch+set}" = set; then :
6472 enableval
=$enable_sim_switch; case "${enableval}" in
6473 yes) sim_switch
="-s";;
6475 *) as_fn_error
"\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch
="";;
6477 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
6478 echo "Setting switch flags = $sim_switch" 6>&1
6482 if test x
"$silent" != x
"yes"; then
6483 echo "Setting switch flags = $sim_switch" 6>&1
6488 # Check whether --enable-sim-timebase was given.
6489 if test "${enable_sim_timebase+set}" = set; then :
6490 enableval
=$enable_sim_timebase; case "${enableval}" in
6491 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
6492 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
6493 *) as_fn_error
"\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase
="";;
6495 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
6496 echo "Setting timebase flags = $sim_timebase" 6>&1
6503 # Check whether --enable-sim-trace was given.
6504 if test "${enable_sim_trace+set}" = set; then :
6505 enableval
=$enable_sim_trace; case "${enableval}" in
6506 yes) sim_trace
="-DWITH_TRACE=1";;
6507 no
) sim_trace
="-DWITH_TRACE=0";;
6508 *) as_fn_error
"\"--enable-sim-trace does not take a value\"" "$LINENO" 5; sim_trace
="";;
6510 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
6511 echo "Setting trace flags = $sim_trace" 6>&1
6518 # Check whether --enable-sim-warnings was given.
6519 if test "${enable_sim_warnings+set}" = set; then :
6520 enableval
=$enable_sim_warnings; case "${enableval}" in
6521 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
6522 no
) sim_warnings
="-w";;
6523 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6525 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
6526 echo "Setting warning flags = $sim_warnings" 6>&1
6533 # Check whether --enable-sim-xor-endian was given.
6534 if test "${enable_sim_xor_endian+set}" = set; then :
6535 enableval
=$enable_sim_xor_endian; case "${enableval}" in
6536 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
6537 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
6538 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
6540 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
6541 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
6550 # Check whether --with-pkgversion was given.
6551 if test "${with_pkgversion+set}" = set; then :
6552 withval
=$with_pkgversion; case "$withval" in
6553 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6555 *) PKGVERSION
="($withval) " ;;
6566 # Check whether --with-bugurl was given.
6567 if test "${with_bugurl+set}" = set; then :
6568 withval
=$with_bugurl; case "$withval" in
6569 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6572 *) BUGURL
="$withval"
6576 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
6586 REPORT_BUGS_TO
="<$BUGURL>"
6587 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6594 cat >>confdefs.h
<<_ACEOF
6595 #define PKGVERSION "$PKGVERSION"
6599 cat >>confdefs.h
<<_ACEOF
6600 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6604 # Make sure we can run config.sub.
6605 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
6606 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6609 $as_echo_n "checking build system type... " >&6; }
6610 if test "${ac_cv_build+set}" = set; then :
6611 $as_echo_n "(cached) " >&6
6613 ac_build_alias
=$build_alias
6614 test "x$ac_build_alias" = x
&&
6615 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
6616 test "x$ac_build_alias" = x
&&
6617 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
6618 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6619 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6623 $as_echo "$ac_cv_build" >&6; }
6624 case $ac_cv_build in
6626 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
6629 ac_save_IFS
=$IFS; IFS
='-'
6635 # Remember, the first character of IFS is used to create $*,
6636 # except with old shells:
6639 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6643 $as_echo_n "checking host system type... " >&6; }
6644 if test "${ac_cv_host+set}" = set; then :
6645 $as_echo_n "(cached) " >&6
6647 if test "x$host_alias" = x
; then
6648 ac_cv_host
=$ac_cv_build
6650 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6651 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6656 $as_echo "$ac_cv_host" >&6; }
6659 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
6662 ac_save_IFS
=$IFS; IFS
='-'
6668 # Remember, the first character of IFS is used to create $*,
6669 # except with old shells:
6672 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6676 $as_echo_n "checking target system type... " >&6; }
6677 if test "${ac_cv_target+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6680 if test "x$target_alias" = x
; then
6681 ac_cv_target
=$ac_cv_host
6683 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6684 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6689 $as_echo "$ac_cv_target" >&6; }
6690 case $ac_cv_target in
6692 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
6694 target
=$ac_cv_target
6695 ac_save_IFS
=$IFS; IFS
='-'
6701 # Remember, the first character of IFS is used to create $*,
6702 # except with old shells:
6705 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
6708 # The aliases save the names the user supplied, while $host etc.
6709 # will get canonicalized.
6710 test -n "$target_alias" &&
6711 test "$program_prefix$program_suffix$program_transform_name" = \
6713 program_prefix
=${target_alias}-
6715 test "$program_prefix" != NONE
&&
6716 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
6717 # Use a double $ so make ignores it.
6718 test "$program_suffix" != NONE
&&
6719 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
6720 # Double any \ or $.
6721 # By default was `s,x,x', remove it if useless.
6722 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
6723 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
6726 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
6727 # using the same condition.
6729 # Use the system's zlib library.
6730 zlibdir
="-L\$(top_builddir)/../zlib"
6731 zlibinc
="-I\$(top_srcdir)/../zlib"
6733 # Check whether --with-system-zlib was given.
6734 if test "${with_system_zlib+set}" = set; then :
6735 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
6746 # BFD uses libdl when when plugins enabled.
6749 for ac_header
in dlfcn.h
6751 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6753 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
6754 cat >>confdefs.h
<<_ACEOF
6755 #define HAVE_DLFCN_H 1
6762 for ac_header
in windows.h
6764 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6766 if test "x$ac_cv_header_windows_h" = x
""yes; then :
6767 cat >>confdefs.h
<<_ACEOF
6768 #define HAVE_WINDOWS_H 1
6776 # Check whether --enable-plugins was given.
6777 if test "${enable_plugins+set}" = set; then :
6778 enableval
=$enable_plugins; case "${enableval}" in
6781 if test "$maybe_plugins" != "yes" ; then
6782 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6786 plugins
=$maybe_plugins
6790 if test "$plugins" = "yes"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
6792 $as_echo_n "checking for library containing dlopen... " >&6; }
6793 if test "${ac_cv_search_dlopen+set}" = set; then :
6794 $as_echo_n "(cached) " >&6
6796 ac_func_search_save_LIBS
=$LIBS
6797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6800 /* Override any GCC internal prototype to avoid an error.
6801 Use char because int might match the return type of a GCC
6802 builtin and then its argument prototype would still apply. */
6815 for ac_lib
in '' dl
; do
6816 if test -z "$ac_lib"; then
6817 ac_res
="none required"
6820 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6822 if ac_fn_c_try_link
"$LINENO"; then :
6823 ac_cv_search_dlopen
=$ac_res
6825 rm -f core conftest.err conftest.
$ac_objext \
6827 if test "${ac_cv_search_dlopen+set}" = set; then :
6831 if test "${ac_cv_search_dlopen+set}" = set; then :
6834 ac_cv_search_dlopen
=no
6837 LIBS
=$ac_func_search_save_LIBS
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
6840 $as_echo "$ac_cv_search_dlopen" >&6; }
6841 ac_res
=$ac_cv_search_dlopen
6842 if test "$ac_res" != no
; then :
6843 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6850 .
${srcdir}/..
/..
/bfd
/configure.
host
6855 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6860 ac_config_headers
="$ac_config_headers config.h:config.in"
6863 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6864 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
6866 cat >>confdefs.h
<<_ACEOF
6867 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6871 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6876 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6877 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
6879 cat >>confdefs.h
<<_ACEOF
6880 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6884 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6887 case " $LIBOBJS " in
6888 *" fileblocks.$ac_objext "* ) ;;
6889 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6896 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6897 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
6899 cat >>confdefs.h
<<_ACEOF
6900 #define HAVE_STRUCT_STAT_ST_RDEV 1
6904 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6910 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6911 if test "${ac_cv_struct_tm+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916 #include <sys/types.h>
6923 int *p = &tm.tm_sec;
6929 if ac_fn_c_try_compile
"$LINENO"; then :
6930 ac_cv_struct_tm
=time.h
6932 ac_cv_struct_tm
=sys
/time.h
6934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6937 $as_echo "$ac_cv_struct_tm" >&6; }
6938 if test $ac_cv_struct_tm = sys
/time.h
; then
6940 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6944 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6945 #include <$ac_cv_struct_tm>
6948 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6950 cat >>confdefs.h
<<_ACEOF
6951 #define HAVE_STRUCT_TM_TM_ZONE 1
6957 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6959 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6962 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6964 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6970 cat >>confdefs.h
<<_ACEOF
6971 #define HAVE_DECL_TZNAME $ac_have_decl
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6975 $as_echo_n "checking for tzname... " >&6; }
6976 if test "${ac_cv_var_tzname+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6982 #if !HAVE_DECL_TZNAME
6983 extern char *tzname[];
6989 return tzname[0][0];
6994 if ac_fn_c_try_link
"$LINENO"; then :
6995 ac_cv_var_tzname
=yes
6999 rm -f core conftest.err conftest.
$ac_objext \
7000 conftest
$ac_exeext conftest.
$ac_ext
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7003 $as_echo "$ac_cv_var_tzname" >&6; }
7004 if test $ac_cv_var_tzname = yes; then
7006 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7013 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7014 if test "${ac_cv_type_uid_t+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019 #include <sys/types.h>
7022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7023 $EGREP "uid_t" >/dev
/null
2>&1; then :
7024 ac_cv_type_uid_t
=yes
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7032 $as_echo "$ac_cv_type_uid_t" >&6; }
7033 if test $ac_cv_type_uid_t = no
; then
7035 $as_echo "#define uid_t int" >>confdefs.h
7038 $as_echo "#define gid_t int" >>confdefs.h
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
7043 $as_echo_n "checking type of array argument to getgroups... " >&6; }
7044 if test "${ac_cv_type_getgroups+set}" = set; then :
7045 $as_echo_n "(cached) " >&6
7047 if test "$cross_compiling" = yes; then :
7048 ac_cv_type_getgroups
=cross
7050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 /* Thanks to Mike Rendell for this test. */
7053 $ac_includes_default
7056 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7063 union { gid_t gval; long int lval; } val;
7066 for (i = 0; i < NGID; i++)
7067 gidset[i] = val.gval;
7068 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7070 /* Exit non-zero if getgroups seems to require an array of ints. This
7071 happens when gid_t is short int but getgroups modifies an array
7073 return n > 0 && gidset[n] != val.gval;
7076 if ac_fn_c_try_run
"$LINENO"; then :
7077 ac_cv_type_getgroups
=gid_t
7079 ac_cv_type_getgroups
=int
7081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7085 if test $ac_cv_type_getgroups = cross
; then
7086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7092 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
7093 ac_cv_type_getgroups
=gid_t
7095 ac_cv_type_getgroups
=int
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
7102 $as_echo "$ac_cv_type_getgroups" >&6; }
7104 cat >>confdefs.h
<<_ACEOF
7105 #define GETGROUPS_T $ac_cv_type_getgroups
7109 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7110 if test "x$ac_cv_type_mode_t" = x
""yes; then :
7114 cat >>confdefs.h
<<_ACEOF
7120 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7121 if test "x$ac_cv_type_off_t" = x
""yes; then :
7125 cat >>confdefs.h
<<_ACEOF
7126 #define off_t long int
7131 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7132 if test "x$ac_cv_type_pid_t" = x
""yes; then :
7136 cat >>confdefs.h
<<_ACEOF
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7143 $as_echo_n "checking return type of signal handlers... " >&6; }
7144 if test "${ac_cv_type_signal+set}" = set; then :
7145 $as_echo_n "(cached) " >&6
7147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149 #include <sys/types.h>
7155 return *(signal (0, 0)) (0) == 1;
7160 if ac_fn_c_try_compile
"$LINENO"; then :
7161 ac_cv_type_signal
=int
7163 ac_cv_type_signal
=void
7165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7168 $as_echo "$ac_cv_type_signal" >&6; }
7170 cat >>confdefs.h
<<_ACEOF
7171 #define RETSIGTYPE $ac_cv_type_signal
7175 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7176 if test "x$ac_cv_type_size_t" = x
""yes; then :
7180 cat >>confdefs.h
<<_ACEOF
7181 #define size_t unsigned int
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7187 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7188 if test "${ac_cv_type_uid_t+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7193 #include <sys/types.h>
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197 $EGREP "uid_t" >/dev
/null
2>&1; then :
7198 ac_cv_type_uid_t
=yes
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7206 $as_echo "$ac_cv_type_uid_t" >&6; }
7207 if test $ac_cv_type_uid_t = no
; then
7209 $as_echo "#define uid_t int" >>confdefs.h
7212 $as_echo "#define gid_t int" >>confdefs.h
7217 for ac_func
in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir
chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl
kill link lseek lstat mkdir pipe readlink
rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp
time umask unlink
7219 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7220 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7221 eval as_val
=\$
$as_ac_var
7222 if test "x$as_val" = x
""yes; then :
7223 cat >>confdefs.h
<<_ACEOF
7224 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7231 for ac_header
in fcntl.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mount.h sys
/param.h sys
/resource.h sys
/stat.h sys
/termio.h sys
/termios.h sys
/time.h sys
/times.h sys
/types.h
time.h unistd.h sys
/vfs.h sys
/statfs.h
7233 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7234 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7235 eval as_val
=\$
$as_ac_Header
7236 if test "x$as_val" = x
""yes; then :
7237 cat >>confdefs.h
<<_ACEOF
7238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7246 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
7247 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7249 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7250 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
7251 $as_echo_n "(cached) " >&6
7253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7255 #include <sys/types.h>
7267 if ac_fn_c_try_compile
"$LINENO"; then :
7268 eval "$as_ac_Header=yes"
7270 eval "$as_ac_Header=no"
7272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7274 eval ac_res
=\$
$as_ac_Header
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7276 $as_echo "$ac_res" >&6; }
7277 eval as_val
=\$
$as_ac_Header
7278 if test "x$as_val" = x
""yes; then :
7279 cat >>confdefs.h
<<_ACEOF
7280 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7283 ac_header_dirent
=$ac_hdr; break
7287 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7288 if test $ac_header_dirent = dirent.h
; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7290 $as_echo_n "checking for library containing opendir... " >&6; }
7291 if test "${ac_cv_search_opendir+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7294 ac_func_search_save_LIBS
=$LIBS
7295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7296 /* end confdefs.h. */
7298 /* Override any GCC internal prototype to avoid an error.
7299 Use char because int might match the return type of a GCC
7300 builtin and then its argument prototype would still apply. */
7313 for ac_lib
in '' dir
; do
7314 if test -z "$ac_lib"; then
7315 ac_res
="none required"
7318 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7320 if ac_fn_c_try_link
"$LINENO"; then :
7321 ac_cv_search_opendir
=$ac_res
7323 rm -f core conftest.err conftest.
$ac_objext \
7325 if test "${ac_cv_search_opendir+set}" = set; then :
7329 if test "${ac_cv_search_opendir+set}" = set; then :
7332 ac_cv_search_opendir
=no
7335 LIBS
=$ac_func_search_save_LIBS
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7338 $as_echo "$ac_cv_search_opendir" >&6; }
7339 ac_res
=$ac_cv_search_opendir
7340 if test "$ac_res" != no
; then :
7341 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7347 $as_echo_n "checking for library containing opendir... " >&6; }
7348 if test "${ac_cv_search_opendir+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
7351 ac_func_search_save_LIBS
=$LIBS
7352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7355 /* Override any GCC internal prototype to avoid an error.
7356 Use char because int might match the return type of a GCC
7357 builtin and then its argument prototype would still apply. */
7370 for ac_lib
in '' x
; do
7371 if test -z "$ac_lib"; then
7372 ac_res
="none required"
7375 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7377 if ac_fn_c_try_link
"$LINENO"; then :
7378 ac_cv_search_opendir
=$ac_res
7380 rm -f core conftest.err conftest.
$ac_objext \
7382 if test "${ac_cv_search_opendir+set}" = set; then :
7386 if test "${ac_cv_search_opendir+set}" = set; then :
7389 ac_cv_search_opendir
=no
7392 LIBS
=$ac_func_search_save_LIBS
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7395 $as_echo "$ac_cv_search_opendir" >&6; }
7396 ac_res
=$ac_cv_search_opendir
7397 if test "$ac_res" != no
; then :
7398 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
7407 $as_echo_n "checking for struct termios... " >&6; }
7408 if test "${ac_cv_termios_struct+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413 #include <sys/types.h>
7414 #include <sys/termios.h>
7418 static struct termios x;
7428 if ac_fn_c_try_compile
"$LINENO"; then :
7429 ac_cv_termios_struct
=yes
7431 ac_cv_termios_struct
=no
7433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
7437 $as_echo "$ac_cv_termios_struct" >&6; }
7438 if test $ac_cv_termios_struct = yes; then
7439 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
7442 if test "$ac_cv_termios_struct" = "yes"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
7444 $as_echo_n "checking for c_line field in struct termios... " >&6; }
7445 if test "${ac_cv_termios_cline+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450 #include <sys/types.h>
7451 #include <sys/termios.h>
7455 static struct termios x; x.c_line = 0;
7460 if ac_fn_c_try_compile
"$LINENO"; then :
7461 ac_cv_termios_cline
=yes
7463 ac_cv_termios_cline
=no
7465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
7470 $as_echo "$ac_cv_termios_cline" >&6; }
7471 if test $ac_cv_termios_cline = yes; then
7472 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
7475 ac_cv_termios_cline
=no
7478 if test "$ac_cv_termios_struct" != "yes"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
7480 $as_echo_n "checking for struct termio... " >&6; }
7481 if test "${ac_cv_termio_struct+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7486 #include <sys/types.h>
7487 #include <sys/termio.h>
7491 static struct termio x;
7501 if ac_fn_c_try_compile
"$LINENO"; then :
7502 ac_cv_termio_struct
=yes
7504 ac_cv_termio_struct
=no
7506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
7510 $as_echo "$ac_cv_termio_struct" >&6; }
7511 if test $ac_cv_termio_struct = yes; then
7512 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
7515 ac_cv_termio_struct
=no
7518 if test "$ac_cv_termio_struct" = "yes"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
7520 $as_echo_n "checking for c_line field in struct termio... " >&6; }
7521 if test "${ac_cv_termio_cline+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7526 #include <sys/types.h>
7527 #include <sys/termio.h>
7531 static struct termio x; x.c_line = 0;
7536 if ac_fn_c_try_compile
"$LINENO"; then :
7537 ac_cv_termio_cline
=yes
7539 ac_cv_termio_cline
=no
7541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
7546 $as_echo "$ac_cv_termio_cline" >&6; }
7547 if test $ac_cv_termio_cline = yes; then
7548 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
7551 ac_cv_termio_cline
=no
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
7555 $as_echo_n "checking for struct statfs... " >&6; }
7556 if test "${ac_cv_struct_statfs+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 #include <sys/types.h>
7562 #ifdef HAVE_SYS_PARAM_H
7563 #include <sys/param.h>
7565 #ifdef HAVE_SYS_MOUNT_H
7566 #include <sys/mount.h>
7568 #ifdef HAVE_SYS_VFS_H
7569 #include <sys/vfs.h>
7571 #ifdef HAVE_SYS_STATFS_H
7572 #include <sys/statfs.h>
7577 static struct statfs s;
7582 if ac_fn_c_try_compile
"$LINENO"; then :
7583 ac_cv_struct_statfs
=yes
7585 ac_cv_struct_statfs
=no
7587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
7591 $as_echo "$ac_cv_struct_statfs" >&6; }
7592 if test $ac_cv_struct_statfs = yes; then
7594 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
7598 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7599 if test "x$ac_cv_type_long_long" = x
""yes; then :
7601 cat >>confdefs.h
<<_ACEOF
7602 #define HAVE_LONG_LONG 1
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
7611 $as_echo_n "checking for /dev/zero... " >&6; }
7612 if test "${ac_cv_devzero+set}" = set; then :
7613 $as_echo_n "(cached) " >&6
7615 if test "$cross_compiling" = yes; then :
7618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7624 int fd = open ("/dev/zero", O_RDONLY);
7627 for (i = 0; i < sizeof (buf); i++)
7629 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
7631 for (i = 0; i < sizeof (buf); i++)
7637 if ac_fn_c_try_run
"$LINENO"; then :
7642 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7643 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
7649 $as_echo "$ac_cv_devzero" >&6; }
7650 if test $ac_cv_devzero = yes; then
7651 sim_devzero
="-DHAVE_DEVZERO"
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
7657 $as_echo_n "checking for common simulator directory... " >&6; }
7658 if test -f "${srcdir}/../common/callback.c"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7660 $as_echo "yes" >&6; }
7661 sim_callback
="callback.o targ-map.o"
7662 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
7671 $as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
7672 if test -f "${srcdir}/../common/sim-fpu.c"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674 $as_echo "yes" >&6; }
7675 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7684 # Since we run commands on the build system, we have to create a
7685 # separate config header for the build system if build != host.
7686 if test x
$host = x
$build; then
7687 ac_config_commands
="$ac_config_commands build-config.h"
7695 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
7696 *) realsrcdir
=..
/${srcdir};;
7698 saved_CFLAGS
="${CFLAGS}"
7699 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
7700 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
7701 ${realsrcdir}/configure \
7702 --enable-languages=${enable_languages-all} \
7703 --target=$target_alias --host=$build_alias --build=$build_alias
7704 CFLAGS
="${saved_CFLAGS}"
7705 mv config.h ..
/build-config.h
7718 if test -n "$ac_tool_prefix"; then
7719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7720 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7726 if test -n "$RANLIB"; then
7727 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir
=.
7734 for ac_exec_ext
in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 RANLIB
=$ac_cv_prog_RANLIB
7747 if test -n "$RANLIB"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7749 $as_echo "$RANLIB" >&6; }
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7757 if test -z "$ac_cv_prog_RANLIB"; then
7758 ac_ct_RANLIB
=$RANLIB
7759 # Extract the first word of "ranlib", so it can be a program name with args.
7760 set dummy ranlib
; ac_word
=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7766 if test -n "$ac_ct_RANLIB"; then
7767 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7773 test -z "$as_dir" && as_dir
=.
7774 for ac_exec_ext
in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7787 if test -n "$ac_ct_RANLIB"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7789 $as_echo "$ac_ct_RANLIB" >&6; }
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7795 if test "x$ac_ct_RANLIB" = x
; then
7798 case $cross_compiling:$ac_tool_warned in
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802 ac_tool_warned
=yes ;;
7804 RANLIB
=$ac_ct_RANLIB
7807 RANLIB
="$ac_cv_prog_RANLIB"
7851 ac_config_files
="$ac_config_files Makefile"
7853 ac_config_commands
="$ac_config_commands default"
7855 cat >confcache
<<\_ACEOF
7856 # This file is a shell script that caches the results of configure
7857 # tests run on this system so they can be shared between configure
7858 # scripts and configure runs, see configure's option --config-cache.
7859 # It is not useful on other systems. If it contains results you don't
7860 # want to keep, you may remove or edit it.
7862 # config.status only pays attention to the cache file if you give it
7863 # the --recheck option to rerun configure.
7865 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7866 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7871 # The following way of writing the cache mishandles newlines in values,
7872 # but we know of no workaround that is simple, portable, and efficient.
7873 # So, we kill variables containing newlines.
7874 # Ultrix sh set writes to stderr and can't be redirected directly,
7875 # and sets the high bit in the cache file unless we assign to the vars.
7877 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7878 eval ac_val
=\$
$ac_var
7882 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7883 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7886 _ | IFS | as_nl
) ;; #(
7887 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7888 *) { eval $ac_var=; unset $ac_var;} ;;
7894 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7895 *${as_nl}ac_space
=\
*)
7896 # `set' does not quote correctly, so add quotes: double-quote
7897 # substitution turns \\\\ into \\, and sed turns \\ into \.
7900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7903 # `set' quotes correctly as required by POSIX, so do not add quotes.
7904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7915 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7917 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7918 if test -w "$cache_file"; then
7919 test "x$cache_file" != "x/dev/null" &&
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7921 $as_echo "$as_me: updating cache $cache_file" >&6;}
7922 cat confcache
>$cache_file
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7925 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7930 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7931 # Let make expand exec_prefix.
7932 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7934 DEFS
=-DHAVE_CONFIG_H
7938 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7939 # 1. Remove the extension, and $U if already installed.
7940 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7941 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7942 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7943 # will be set to the directory where LIBOBJS objects are built.
7944 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7945 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7949 LTLIBOBJS
=$ac_ltlibobjs
7954 : ${CONFIG_STATUS=./config.status}
7956 ac_clean_files_save
=$ac_clean_files
7957 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7959 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7961 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7963 # Generated by $as_me.
7964 # Run this file to recreate the current configuration.
7965 # Compiler output produced by configure, useful for debugging
7966 # configure, is in config.log if it exists.
7972 SHELL=\${CONFIG_SHELL-$SHELL}
7975 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7976 ## -------------------- ##
7977 ## M4sh Initialization. ##
7978 ## -------------------- ##
7980 # Be more Bourne compatible
7981 DUALCASE
=1; export DUALCASE
# for MKS sh
7982 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7985 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7986 # is contrary to our usage. Disable this feature.
7987 alias -g '${1+"$@"}'='"$@"'
7988 setopt NO_GLOB_SUBST
7990 case `(set -o) 2>/dev/null` in #(
8002 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8003 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8004 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8005 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8006 # Prefer a ksh shell builtin over an external printf program on Solaris,
8007 # but without wasting forks for bash or zsh.
8008 if test -z "$BASH_VERSION$ZSH_VERSION" \
8009 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8010 as_echo='print
-r --'
8011 as_echo_n='print
-rn --'
8012 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8013 as_echo='printf %s
\n'
8014 as_echo_n='printf %s
'
8016 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8017 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8018 as_echo_n='/usr
/ucb
/echo -n'
8020 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8021 as_echo_n_body='eval
8025 expr "X$arg" : "X\\(.*\\)$as_nl";
8026 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8028 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8030 export as_echo_n_body
8031 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8034 as_echo='sh
-c $as_echo_body as_echo
'
8037 # The user is always right.
8038 if test "${PATH_SEPARATOR+set}" != set; then
8040 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8041 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8048 # We need space, tab and new line, in precisely that order. Quoting is
8049 # there to prevent editors from complaining about space-tab.
8050 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8051 # splitting by setting IFS to empty value.)
8054 # Find who we are. Look in the path if we contain no directory separator.
8056 *[\\/]* ) as_myself=$0 ;;
8057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 test -z "$as_dir" && as_dir=.
8062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8068 # We did not find ourselves, most probably we were run as `sh COMMAND'
8069 # in which case we are not to be found in the path.
8070 if test "x$as_myself" = x
; then
8073 if test ! -f "$as_myself"; then
8074 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8078 # Unset variables that we do not need and which cause bugs (e.g. in
8079 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8080 # suppresses any "Segmentation fault" message there. '((' could
8081 # trigger a bug in pdksh 5.2.14.
8082 for as_var
in BASH_ENV ENV MAIL MAILPATH
8083 do eval test x\
${$as_var+set} = xset \
8084 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8097 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8100 # as_fn_error ERROR [LINENO LOG_FD]
8101 # ---------------------------------
8102 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8103 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8104 # script with status $?, using 1 if that was 0.
8107 as_status
=$?
; test $as_status -eq 0 && as_status
=1
8109 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8110 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8112 $as_echo "$as_me: error: $1" >&2
8113 as_fn_exit
$as_status
8117 # as_fn_set_status STATUS
8118 # -----------------------
8119 # Set $? to STATUS, without forking.
8123 } # as_fn_set_status
8127 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8137 # Portably unset VAR.
8140 { eval $1=; unset $1;}
8142 as_unset
=as_fn_unset
8143 # as_fn_append VAR VALUE
8144 # ----------------------
8145 # Append the text in VALUE to the end of the definition contained in VAR. Take
8146 # advantage of any shell optimizations that allow amortized linear growth over
8147 # repeated appends, instead of the typical quadratic growth present in naive
8149 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8150 eval 'as_fn_append ()
8161 # as_fn_arith ARG...
8162 # ------------------
8163 # Perform arithmetic evaluation on the ARGs, and store the result in the
8164 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8165 # must be portable across $(()) and expr.
8166 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8167 eval 'as_fn_arith ()
8174 as_val
=`expr "$@" || test $? -eq 1`
8179 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8180 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8186 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8187 as_basename
=basename
8192 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8198 as_me
=`$as_basename -- "$0" ||
8199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8200 X"$0" : 'X\(//\)$' \| \
8201 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8203 sed '/^.*\/\([^/][^/]*\)\/*$/{
8217 # Avoid depending upon Character Ranges.
8218 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8219 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8220 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8221 as_cr_digits
='0123456789'
8222 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8224 ECHO_C
= ECHO_N
= ECHO_T
=
8225 case `echo -n x` in #(((((
8227 case `echo 'xy\c'` in
8228 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8230 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8237 rm -f conf$$ conf$$.exe conf$$.
file
8238 if test -d conf$$.dir
; then
8239 rm -f conf$$.dir
/conf$$.
file
8242 mkdir conf$$.dir
2>/dev
/null
8244 if (echo >conf$$.
file) 2>/dev
/null
; then
8245 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8247 # ... but there are two gotchas:
8248 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8249 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8250 # In both cases, we have to default to `cp -p'.
8251 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8253 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8261 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8262 rmdir conf$$.dir
2>/dev
/null
8267 # Create "$as_dir" as a directory, including parents if necessary.
8272 -*) as_dir
=.
/$as_dir;;
8274 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8278 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8279 *) as_qdir
=$as_dir;;
8281 as_dirs
="'$as_qdir' $as_dirs"
8282 as_dir
=`$as_dirname -- "$as_dir" ||
8283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8284 X"$as_dir" : 'X\(//\)[^/]' \| \
8285 X"$as_dir" : 'X\(//\)$' \| \
8286 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8287 $as_echo X"$as_dir" |
8288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8305 test -d "$as_dir" && break
8307 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8308 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
8312 if mkdir
-p .
2>/dev
/null
; then
8313 as_mkdir_p
='mkdir -p "$as_dir"'
8315 test -d .
/-p && rmdir .
/-p
8319 if test -x / >/dev
/null
2>&1; then
8322 if ls -dL / >/dev
/null
2>&1; then
8329 if test -d "$1"; then
8335 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8336 ???[sx]*):;;*)false;;esac;fi
8340 as_executable_p
=$as_test_x
8342 # Sed expression to map a string onto a valid CPP name.
8343 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8345 # Sed expression to map a string onto a valid variable name.
8346 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8350 ## ----------------------------------- ##
8351 ## Main body of $CONFIG_STATUS script. ##
8352 ## ----------------------------------- ##
8354 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8357 # Save the log message, to keep $0 and so on meaningful, and to
8358 # report actual input values of CONFIG_FILES etc. instead of their
8359 # values after options handling.
8361 This file was extended by $as_me, which was
8362 generated by GNU Autoconf 2.64. Invocation command line was
8364 CONFIG_FILES = $CONFIG_FILES
8365 CONFIG_HEADERS = $CONFIG_HEADERS
8366 CONFIG_LINKS = $CONFIG_LINKS
8367 CONFIG_COMMANDS = $CONFIG_COMMANDS
8370 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8375 case $ac_config_files in *"
8376 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8379 case $ac_config_headers in *"
8380 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8385 # Files that config.status was made for.
8386 config_files="$ac_config_files"
8387 config_headers="$ac_config_headers"
8388 config_commands="$ac_config_commands"
8392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8394 \`$as_me' instantiates files and other configuration actions
8395 from templates according to the current configuration. Unless the files
8396 and actions are specified as TAGs, all are instantiated by default.
8398 Usage: $0 [OPTION]... [TAG]...
8400 -h, --help print this help, then exit
8401 -V, --version print version number and configuration settings, then exit
8402 -q, --quiet, --silent
8403 do not print progress messages
8404 -d, --debug don't remove temporary files
8405 --recheck update $as_me by reconfiguring in the same conditions
8406 --file=FILE[:TEMPLATE]
8407 instantiate the configuration file FILE
8408 --header=FILE[:TEMPLATE]
8409 instantiate the configuration header FILE
8411 Configuration files:
8414 Configuration headers:
8417 Configuration commands:
8420 Report bugs to the package provider."
8423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8426 configured by $0, generated by GNU Autoconf 2.64,
8427 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8429 Copyright (C) 2009 Free Software Foundation, Inc.
8430 This config.status script is free software; the Free Software Foundation
8431 gives unlimited permission to copy, distribute and modify it."
8436 test -n "\$AWK" || AWK=awk
8439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8440 # The default lists apply if the user does not specify any file.
8446 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8447 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8458 # Handling of the options.
8459 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8461 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8462 $as_echo "$ac_cs_version"; exit ;;
8463 --debug |
--debu |
--deb |
--de |
--d |
-d )
8465 --file |
--fil |
--fi |
--f )
8468 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8470 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8471 ac_need_defaults
=false
;;
8472 --header |
--heade |
--head |
--hea )
8475 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8477 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8478 ac_need_defaults
=false
;;
8480 # Conflict between --help and --header
8481 as_fn_error
"ambiguous option: \`$1'
8482 Try \`$0 --help' for more information.";;
8483 --help |
--hel |
-h )
8484 $as_echo "$ac_cs_usage"; exit ;;
8485 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8486 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8490 -*) as_fn_error
"unrecognized option: \`$1'
8491 Try \`$0 --help' for more information." ;;
8493 *) as_fn_append ac_config_targets
" $1"
8494 ac_need_defaults
=false
;;
8500 ac_configure_extra_args
=
8502 if $ac_cs_silent; then
8504 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8509 if \$ac_cs_recheck; then
8510 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8512 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8513 CONFIG_SHELL='$SHELL'
8519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8523 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8524 ## Running $as_me. ##
8530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8535 # Handling of arguments.
8536 for ac_config_target
in $ac_config_targets
8538 case $ac_config_target in
8539 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8540 "build-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS build-config.h" ;;
8541 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8542 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8544 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8549 # If the user did not use the arguments to specify the items to instantiate,
8550 # then the envvar interface is used. Set only those that are not.
8551 # We use the long form for the default assignment because of an extremely
8552 # bizarre bug on SunOS 4.1.3.
8553 if $ac_need_defaults; then
8554 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8555 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8556 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8559 # Have a temporary directory for convenience. Make it in the build tree
8560 # simply because there is no reason against having it here, and in addition,
8561 # creating and moving files from /tmp can sometimes cause problems.
8562 # Hook for its removal unless debugging.
8563 # Note that there is a small window in which the directory will not be cleaned:
8564 # after its creation but before its name has been assigned to `$tmp'.
8568 trap 'exit_status=$?
8569 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8571 trap 'as_fn_exit 1' 1 2 13 15
8573 # Create a (secure) tmp directory for tmp files.
8576 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8577 test -n "$tmp" && test -d "$tmp"
8580 tmp
=.
/conf$$
-$RANDOM
8581 (umask 077 && mkdir
"$tmp")
8582 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
8584 # Set up the scripts for CONFIG_FILES section.
8585 # No need to generate them if there are no CONFIG_FILES.
8586 # This happens for instance with `./config.status config.h'.
8587 if test -n "$CONFIG_FILES"; then
8590 ac_cr
=`echo X | tr X '\015'`
8591 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8592 # But we know of no other shell where ac_cr would be empty at this
8593 # point, so we can use a bashism as a fallback.
8594 if test "x$ac_cr" = x
; then
8595 eval ac_cr
=\$
\'\\r
\'
8597 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8598 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8604 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8609 echo "cat >conf$$subs.awk <<_ACEOF" &&
8610 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8613 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8614 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8616 for ac_last_try in false false false false false :; do
8617 . ./conf$$subs.sh ||
8618 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8620 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8621 if test $ac_delim_n = $ac_delim_num; then
8623 elif $ac_last_try; then
8624 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8626 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8632 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8636 s/^/S["/; s
/!.
*/"]=/
8646 s/\(.\{148\}\).*/\1/
8648 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8653 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8660 s/\(.\{148\}\).*/\1/
8662 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8666 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8671 ' <conf$$subs.awk | sed '
8676 ' >>$CONFIG_STATUS || ac_write_fail=1
8677 rm -f conf$$subs.awk
8678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8680 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8681 for (key in S) S_is_set[key] = 1
8687 nfields = split(line, field, "@
")
8689 len = length(field[1])
8690 for (i = 2; i < nfields; i++) {
8692 keylen = length(key)
8693 if (S_is_set[key]) {
8695 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8696 len += length(value) + length(field[++i])
8707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8708 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8709 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8712 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8713 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8716 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8717 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8718 # trailing colons and then remove the whole line if VPATH becomes empty
8719 # (actually we leave an empty line to preserve line numbers).
8720 if test "x
$srcdir" = x.; then
8721 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8725 s/^\([^=]*=[ ]*\):*/\1/
8731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8732 fi # test -n "$CONFIG_FILES"
8734 # Set up the scripts for CONFIG_HEADERS section.
8735 # No need to generate them if there are no CONFIG_HEADERS.
8736 # This happens for instance with `./config.status Makefile'.
8737 if test -n "$CONFIG_HEADERS"; then
8738 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8742 # Transform confdefs.h into an awk script `defines.awk', embedded as
8743 # here-document in config.status, that substitutes the proper values into
8744 # config.h.in to produce config.h.
8746 # Create a delimiter string that does not exist in confdefs.h, to ease
8747 # handling of long lines.
8749 for ac_last_try in false false :; do
8750 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8751 if test -z "$ac_t"; then
8753 elif $ac_last_try; then
8754 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8756 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8760 # For the awk script, D is an array of macro values keyed by name,
8761 # likewise P contains macro parameters if any. Preserve backslash
8762 # newline sequences.
8764 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8766 s/.\{148\}/&'"$ac_delim"'/g
8769 s/^[ ]*#[ ]*define[ ][ ]*/ /
8776 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8778 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8782 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8783 D["\
1"]=" \
3\\\\\\n
"\\/p
8785 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8790 s/.\{148\}/&'"$ac_delim"'/g
8795 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8798 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8800 ' <confdefs.h | sed '
8801 s/'"$ac_delim"'/"\\\
8802 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8805 for (key in D) D_is_set[key] = 1
8808 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8810 split(line, arg, " ")
8811 if (arg[1] == "#") {
8815 defundef
= substr
(arg
[1], 2)
8818 split(mac1
, mac2
, "(") #)
8820 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8821 if (D_is_set
[macro
]) {
8822 # Preserve the white space surrounding the "#".
8823 print prefix
"define", macro P
[macro
] D
[macro
]
8826 # Replace #undef with comments. This is necessary, for example,
8827 # in the case of _POSIX_SOURCE, which is predefined and required
8828 # on some systems where configure will not decide to define it.
8829 if (defundef
== "undef") {
8830 print
"/*", prefix defundef
, macro
, "*/"
8838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8839 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8840 fi # test -n "$CONFIG_HEADERS"
8843 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8848 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8850 case $ac_mode$ac_tag in
8852 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8853 :[FH
]-) ac_tag
=-:-;;
8854 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8871 -) ac_f
="$tmp/stdin";;
8872 *) # Look for the file first in the build tree, then in the source tree
8873 # (if the path is not absolute). The absolute path cannot be DOS-style,
8874 # because $ac_f cannot contain `:'.
8878 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8880 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8882 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8883 as_fn_append ac_file_inputs
" '$ac_f'"
8886 # Let's still pretend it is `configure' which instantiates (i.e., don't
8887 # use $as_me), people would be surprised to read:
8888 # /* config.h. Generated by config.status. */
8889 configure_input
='Generated from '`
8890 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8892 if test x
"$ac_file" != x-
; then
8893 configure_input
="$ac_file. $configure_input"
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8895 $as_echo "$as_me: creating $ac_file" >&6;}
8897 # Neutralize special characters interpreted by sed in replacement strings.
8898 case $configure_input in #(
8899 *\
&* |
*\|
* |
*\\* )
8900 ac_sed_conf_input
=`$as_echo "$configure_input" |
8901 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8902 *) ac_sed_conf_input
=$configure_input;;
8906 *:-:* |
*:-) cat >"$tmp/stdin" \
8907 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8912 ac_dir
=`$as_dirname -- "$ac_file" ||
8913 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8914 X"$ac_file" : 'X\(//\)[^/]' \| \
8915 X"$ac_file" : 'X\(//\)$' \| \
8916 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8917 $as_echo X"$ac_file" |
8918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8935 as_dir
="$ac_dir"; as_fn_mkdir_p
8939 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8941 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8942 # A ".." for each directory in $ac_dir_suffix.
8943 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8944 case $ac_top_builddir_sub in
8945 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8946 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8949 ac_abs_top_builddir
=$ac_pwd
8950 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8951 # for backward compatibility:
8952 ac_top_builddir
=$ac_top_build_prefix
8955 .
) # We are building in place.
8957 ac_top_srcdir
=$ac_top_builddir_sub
8958 ac_abs_top_srcdir
=$ac_pwd ;;
8959 [\\/]* | ?
:[\\/]* ) # Absolute name.
8960 ac_srcdir
=$srcdir$ac_dir_suffix;
8961 ac_top_srcdir
=$srcdir
8962 ac_abs_top_srcdir
=$srcdir ;;
8964 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8965 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8966 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8968 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8978 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8979 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8984 # If the template does not know about datarootdir, expand it.
8985 # FIXME: This hack should be removed a few years after 2.60.
8986 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8997 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8998 *datarootdir
*) ac_datarootdir_seen
=yes;;
8999 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9001 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9004 ac_datarootdir_hack='
9005 s&@datadir@&$datadir&g
9006 s&@docdir@&$docdir&g
9007 s&@infodir@&$infodir&g
9008 s&@localedir@&$localedir&g
9009 s&@mandir@&$mandir&g
9010 s&\\\${datarootdir}&$datarootdir&g' ;;
9014 # Neutralize VPATH when `$srcdir' = `.'.
9015 # Shell code in configure.ac might set extrasub.
9016 # FIXME: do we really want to maintain this feature?
9017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9018 ac_sed_extra="$ac_vpsub
9021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9023 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9024 s|@configure_input@|
$ac_sed_conf_input|
;t t
9025 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9026 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9027 s
&@srcdir@
&$ac_srcdir&;t t
9028 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9029 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9030 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9031 s
&@builddir@
&$ac_builddir&;t t
9032 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9033 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9034 s
&@INSTALL@
&$ac_INSTALL&;t t
9035 $ac_datarootdir_hack
9037 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
9038 || as_fn_error "could not create
$ac_file" "$LINENO" 5
9040 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9041 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9042 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9044 which seems to be undefined. Please make sure it is defined." >&5
9045 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9046 which seems to be undefined. Please make sure it is defined." >&2;}
9050 -) cat "$tmp/out" && rm -f "$tmp/out";;
9051 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9053 || as_fn_error "could not create $ac_file" "$LINENO" 5
9059 if test x"$ac_file" != x-; then
9061 $as_echo "/* $configure_input */" \
9062 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9063 } >"$tmp/config.h" \
9064 || as_fn_error "could not create $ac_file" "$LINENO" 5
9065 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9067 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9070 mv "$tmp/config.h" "$ac_file" \
9071 || as_fn_error "could not create $ac_file" "$LINENO" 5
9074 $as_echo "/* $configure_input */" \
9075 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9076 || as_fn_error "could not create -" "$LINENO" 5
9080 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9081 $as_echo "$as_me: executing $ac_file commands" >&6;}
9086 case $ac_file$ac_mode in
9087 "build-config.h":C) cp config.h build-config.h ;;
9088 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
9096 ac_clean_files=$ac_clean_files_save
9098 test $ac_write_fail = 0 ||
9099 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9102 # configure is writing to config.log, and then calls config.status.
9103 # config.status does its own redirection, appending to config.log.
9104 # Unfortunately, on DOS this fails, as config.log is still kept open
9105 # by configure, so config.status won't be able to
write to it
; its
9106 # output is simply discarded. So we exec the FD to /dev/null,
9107 # effectively closing config.log, so it can be properly (re)opened and
9108 # appended to by config.status. When coming back to configure, we
9109 # need to make the FD available again.
9110 if test "$no_create" != yes; then
9112 ac_config_status_args
=
9113 test "$silent" = yes &&
9114 ac_config_status_args
="$ac_config_status_args --quiet"
9116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9119 # would make configure fail if this is the last instruction.
9120 $ac_cs_success || as_fn_exit $?
9122 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9124 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}