2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="Makefile.in"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='LTLIBOBJS
734 program_transform_name
747 enable_option_checking
752 enable_sim_decode_mechanism
753 enable_sim_default_model
759 enable_sim_hostbitsize
760 enable_sim_hostendian
766 enable_sim_model_issue
770 enable_sim_reserved_bits
778 enable_sim_xor_endian
784 ac_precious_vars
='build_alias
795 # Initialize some variables set by options.
797 ac_init_version
=false
798 ac_unrecognized_opts
=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
809 program_transform_name
=s
,x
,x
,
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir
='${exec_prefix}/bin'
824 sbindir
='${exec_prefix}/sbin'
825 libexecdir
='${exec_prefix}/libexec'
826 datarootdir
='${prefix}/share'
827 datadir
='${datarootdir}'
828 sysconfdir
='${prefix}/etc'
829 sharedstatedir
='${prefix}/com'
830 localstatedir
='${prefix}/var'
831 includedir
='${prefix}/include'
832 oldincludedir
='/usr/include'
833 docdir
='${datarootdir}/doc/${PACKAGE}'
834 infodir
='${datarootdir}/info'
839 libdir
='${exec_prefix}/lib'
840 localedir
='${datarootdir}/locale'
841 mandir
='${datarootdir}/man'
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\
$ac_option
855 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 # Accept the important Cygnus configure options, so we can diagnose typos.
862 case $ac_dashdash$ac_option in
866 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
868 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
871 -build |
--build |
--buil |
--bui |
--bu)
872 ac_prev
=build_alias
;;
873 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
874 build_alias
=$ac_optarg ;;
876 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
877 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
878 ac_prev
=cache_file
;;
879 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
880 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
881 cache_file
=$ac_optarg ;;
884 cache_file
=config.cache
;;
886 -datadir |
--datadir |
--datadi |
--datad)
888 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
889 datadir
=$ac_optarg ;;
891 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
892 |
--dataroo |
--dataro |
--datar)
893 ac_prev
=datarootdir
;;
894 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
895 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
896 datarootdir
=$ac_optarg ;;
898 -disable-* |
--disable-*)
899 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
902 as_fn_error $?
"invalid feature name: $ac_useropt"
903 ac_useropt_orig
=$ac_useropt
904 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
909 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep
=', ';;
912 eval enable_
$ac_useropt=no
;;
914 -docdir |
--docdir |
--docdi |
--doc |
--do)
916 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
919 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
921 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
924 -enable-* |
--enable-*)
925 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
928 as_fn_error $?
"invalid feature name: $ac_useropt"
929 ac_useropt_orig
=$ac_useropt
930 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
935 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep
=', ';;
938 eval enable_
$ac_useropt=\
$ac_optarg ;;
940 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
941 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
942 |
--exec |
--exe |
--ex)
943 ac_prev
=exec_prefix
;;
944 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
945 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
946 |
--exec=* |
--exe=* |
--ex=*)
947 exec_prefix
=$ac_optarg ;;
949 -gas |
--gas |
--ga |
--g)
950 # Obsolete; use --with-gas.
953 -help |
--help |
--hel |
--he |
-h)
955 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
956 ac_init_help
=recursive
;;
957 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
958 ac_init_help
=short
;;
960 -host |
--host |
--hos |
--ho)
961 ac_prev
=host_alias
;;
962 -host=* |
--host=* |
--hos=* |
--ho=*)
963 host_alias
=$ac_optarg ;;
965 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
967 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
969 htmldir
=$ac_optarg ;;
971 -includedir |
--includedir |
--includedi |
--included |
--include \
972 |
--includ |
--inclu |
--incl |
--inc)
973 ac_prev
=includedir
;;
974 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
975 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
976 includedir
=$ac_optarg ;;
978 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
980 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
981 infodir
=$ac_optarg ;;
983 -libdir |
--libdir |
--libdi |
--libd)
985 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
988 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
989 |
--libexe |
--libex |
--libe)
990 ac_prev
=libexecdir
;;
991 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
992 |
--libexe=* |
--libex=* |
--libe=*)
993 libexecdir
=$ac_optarg ;;
995 -localedir |
--localedir |
--localedi |
--localed |
--locale)
997 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
998 localedir
=$ac_optarg ;;
1000 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1001 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1002 ac_prev
=localstatedir
;;
1003 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1004 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1005 localstatedir
=$ac_optarg ;;
1007 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1009 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1010 mandir
=$ac_optarg ;;
1012 -nfp |
--nfp |
--nf)
1013 # Obsolete; use --without-fp.
1016 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1017 |
--no-cr |
--no-c |
-n)
1020 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1021 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1024 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1025 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1026 |
--oldin |
--oldi |
--old |
--ol |
--o)
1027 ac_prev
=oldincludedir
;;
1028 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1029 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1030 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1031 oldincludedir
=$ac_optarg ;;
1033 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1035 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1036 prefix
=$ac_optarg ;;
1038 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1039 |
--program-pre |
--program-pr |
--program-p)
1040 ac_prev
=program_prefix
;;
1041 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1042 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1043 program_prefix
=$ac_optarg ;;
1045 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1046 |
--program-suf |
--program-su |
--program-s)
1047 ac_prev
=program_suffix
;;
1048 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1049 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1050 program_suffix
=$ac_optarg ;;
1052 -program-transform-name |
--program-transform-name \
1053 |
--program-transform-nam |
--program-transform-na \
1054 |
--program-transform-n |
--program-transform- \
1055 |
--program-transform |
--program-transfor \
1056 |
--program-transfo |
--program-transf \
1057 |
--program-trans |
--program-tran \
1058 |
--progr-tra |
--program-tr |
--program-t)
1059 ac_prev
=program_transform_name
;;
1060 -program-transform-name=* |
--program-transform-name=* \
1061 |
--program-transform-nam=* |
--program-transform-na=* \
1062 |
--program-transform-n=* |
--program-transform-=* \
1063 |
--program-transform=* |
--program-transfor=* \
1064 |
--program-transfo=* |
--program-transf=* \
1065 |
--program-trans=* |
--program-tran=* \
1066 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1067 program_transform_name
=$ac_optarg ;;
1069 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1071 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1072 pdfdir
=$ac_optarg ;;
1074 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1076 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1079 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1080 |
-silent |
--silent |
--silen |
--sile |
--sil)
1083 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1085 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1087 sbindir
=$ac_optarg ;;
1089 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1090 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1091 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1093 ac_prev
=sharedstatedir
;;
1094 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1095 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1096 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1098 sharedstatedir
=$ac_optarg ;;
1100 -site |
--site |
--sit)
1102 -site=* |
--site=* |
--sit=*)
1105 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1107 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1108 srcdir
=$ac_optarg ;;
1110 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1111 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1112 ac_prev
=sysconfdir
;;
1113 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1114 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1115 sysconfdir
=$ac_optarg ;;
1117 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1118 ac_prev
=target_alias
;;
1119 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1120 target_alias
=$ac_optarg ;;
1122 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1125 -version |
--version |
--versio |
--versi |
--vers |
-V)
1126 ac_init_version
=: ;;
1129 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1132 as_fn_error $?
"invalid package name: $ac_useropt"
1133 ac_useropt_orig
=$ac_useropt
1134 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1139 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep
=', ';;
1142 eval with_
$ac_useropt=\
$ac_optarg ;;
1144 -without-* |
--without-*)
1145 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1148 as_fn_error $?
"invalid package name: $ac_useropt"
1149 ac_useropt_orig
=$ac_useropt
1150 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1155 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep
=', ';;
1158 eval with_
$ac_useropt=no
;;
1161 # Obsolete; use --with-x.
1164 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1165 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1166 ac_prev
=x_includes
;;
1167 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1168 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1169 x_includes
=$ac_optarg ;;
1171 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1172 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1173 ac_prev
=x_libraries
;;
1174 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1175 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1176 x_libraries
=$ac_optarg ;;
1178 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1183 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1187 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1189 eval $ac_envvar=\
$ac_optarg
1190 export $ac_envvar ;;
1193 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 if test -n "$ac_prev"; then
1204 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1205 as_fn_error $?
"missing argument to $ac_option"
1208 if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1211 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 # Check all directory arguments for consistency.
1217 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1222 eval ac_val
=\$
$ac_var
1223 # Remove trailing slashes.
1226 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\
$ac_val;;
1229 # Be sure to have absolute directory names.
1231 [\\/$
]* | ?
:[\\/]* ) continue;;
1232 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1234 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1242 target
=$target_alias
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x
; then
1246 if test "x$build_alias" = x
; then
1247 cross_compiling
=maybe
1248 elif test "x$build_alias" != "x$host_alias"; then
1254 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1256 test "$silent" = yes && exec 6>/dev
/null
1259 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di
=`ls -di .` &&
1261 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1262 as_fn_error $?
"working directory cannot be determined"
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 as_fn_error $?
"pwd does not report name of working directory"
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted
=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir
=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1299 ac_srcdir_defaulted
=no
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1303 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1305 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1317 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 for ac_var
in $ac_precious_vars; do
1320 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1322 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1327 # Report the --help message.
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1333 \`configure' configures this package to adapt to many kinds of systems.
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1340 Defaults for the options are specified in brackets.
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking ...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1364 For better control, use the options below.
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1396 --build=BUILD configure
for building on BUILD
[guessed
]
1397 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1398 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1402 if test -n "$ac_init_help"; then
1407 --disable-option-checking ignore unrecognized
--enable/--with options
1408 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1409 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1410 --enable-sim-alignment=align Specify strict or nonstrict alignment.
1411 --enable-sim-assert Specify whether to perform random assertions.
1412 --enable-sim-bitsize=n Specify target bitsize
(32 or
64).
1413 --enable-sim-config=file Override default config
file
1414 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1415 --enable-sim-default-model=which Specify default PowerPC to model.
1416 --enable-sim-duplicate Expand
(duplicate
) semantic functions.
1417 --enable-sim-endian=endian Specify target byte endian orientation.
1418 --enable-sim-filter=rule Specify filter rules.
1419 --enable-sim-float Specify whether the target has hard
, soft
, altivec or e500 floating point.
1420 --enable-sim-hardware=list Specify the hardware to be included
in the build.
1421 --enable-sim-hostbitsize=32|
64 Specify
host bitsize
(32 or
64).
1422 --enable-sim-hostendian=end Specify
host byte endian orientation.
1423 --enable-sim-icache=size Specify instruction-decode cache size and
type.
1424 --enable-sim-inline=inlines Specify
which functions should be inlined.
1425 --enable-sim-jump Jump between semantic code
(instead of
call
/return).
1426 --enable-sim-line-nr=opts Generate extra CPP code that references
source rather than generated code
1427 --enable-sim-model=which Specify PowerPC to model.
1428 --enable-sim-model-issue Specify whether to simulate model specific actions
1429 --enable-sim-monitor=mon Specify whether to
enable monitoring events.
1430 --enable-sim-opcode=which Override default opcode lookup.
1431 --enable-sim-packages=list Specify the packages to be included
in the build.
1432 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
1433 --enable-sim-smp=n Specify number of processors to configure
for.
1434 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1435 --enable-sim-switch Use a switch instead of a table
for instruction call.
1436 --enable-sim-timebase Specify whether the PPC timebase is supported.
1437 --enable-sim-trace Specify whether tracing is supported.
1438 --enable-werror treat compile warnings as errors
1439 --enable-sim-warnings=opts Extra CFLAGS
for turning on compiler warnings except
for idecode.o
, semantics.o and psim.o
1440 --enable-sim-xor-endian=n Specify number bytes involved
in PowerPC XOR bi-endian mode
(default
8).
1441 --enable-plugins Enable support
for plugins
1444 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1445 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1446 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1447 --with-bugurl=URL Direct users to URL to report a bug
1448 --with-system-zlib use installed libz
1450 Some influential environment variables
:
1451 CC C compiler
command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1454 nonstandard directory
<lib dir
>
1455 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1456 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1457 you have headers
in a nonstandard directory
<include dir
>
1460 Use these variables to override the choices made by
`configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1463 Report bugs to the package provider.
1468 if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 ac_abs_top_builddir=$ac_pwd
1488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir=$ac_top_build_prefix
1493 .) # We are building in place.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1527 generated by GNU Autoconf 2.69
1529 Copyright (C) 2012 Free Software Foundation, Inc.
1530 This configure script is free software; the Free Software Foundation
1531 gives unlimited permission to copy, distribute and modify it.
1536 ## ------------------------ ##
1537 ## Autoconf initialization. ##
1538 ## ------------------------ ##
1540 # ac_fn_c_try_compile LINENO
1541 # --------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_compile ()
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1550 *) ac_try_echo
=$ac_try;;
1552 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1556 if test -s conftest.err
; then
1557 grep -v '^ *+' conftest.err
>conftest.er1
1558 cat conftest.er1
>&5
1559 mv -f conftest.er1 conftest.err
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.
$ac_objext; then :
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.
$ac_ext >&5
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status
$ac_retval
1576 } # ac_fn_c_try_compile
1578 # ac_fn_c_try_run LINENO
1579 # ----------------------
1580 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1581 # that executables *can* be run.
1584 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1585 if { { ac_try
="$ac_link"
1587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_link") 2>&5
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1596 { { case "(($ac_try" in
1597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1598 *) ac_try_echo
=$ac_try;;
1600 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_try") 2>&5
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; }; }; then :
1608 $as_echo "$as_me: program exited with status $ac_status" >&5
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.
$ac_ext >&5
1612 ac_retval
=$ac_status
1614 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status
$ac_retval
1620 # ac_fn_c_try_cpp LINENO
1621 # ----------------------
1622 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1625 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1626 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } > conftest.i && {
1642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if eval \${$3+:} false; then :
1667 $as_echo_n "(cached) " >&6
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1674 if ac_fn_c_try_compile "$LINENO"; then :
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 } # ac_fn_c_check_header_compile
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest$ac_exeext
1695 if { { ac_try="$ac_link"
1697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1698 *) ac_try_echo
=$ac_try;;
1700 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>conftest.err
1704 if test -s conftest.err
; then
1705 grep -v '^ *+' conftest.err
>conftest.er1
1706 cat conftest.er1
>&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest
$ac_exeext && {
1714 test "$cross_compiling" = yes ||
1715 test -x conftest
$ac_exeext
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.
$ac_ext >&5
1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726 # interfere with the next link command; also delete a directory that is
1727 # left behind by Apple's compiler. We do this before executing the actions.
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status
$ac_retval
1732 } # ac_fn_c_try_link
1734 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1735 # -------------------------------------------
1736 # Tests whether TYPE exists after having included INCLUDES, setting cache
1737 # variable VAR accordingly.
1738 ac_fn_c_check_type
()
1740 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \
${$3+:} false
; then :
1744 $as_echo_n "(cached) " >&6
1747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1759 if ac_fn_c_try_compile
"$LINENO"; then :
1760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1772 if ac_fn_c_try_compile
"$LINENO"; then :
1777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 } # ac_fn_c_check_type
1787 cat >config.log
<<_ACEOF
1788 This file contains any messages produced by compilers while
1789 running configure, to aid debugging if configure makes a mistake.
1791 It was created by $as_me, which was
1792 generated by GNU Autoconf 2.69. Invocation command line was
1804 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1805 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1806 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1807 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1808 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1810 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1811 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1813 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1814 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1815 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1816 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1817 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1818 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1819 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1827 test -z "$as_dir" && as_dir
=.
1828 $as_echo "PATH: $as_dir"
1844 # Keep a trace of the command line.
1845 # Strip out --no-create and --no-recursion so they do not pile up.
1846 # Strip out --silent because we don't want to record it for future runs.
1847 # Also quote any args containing shell meta-characters.
1848 # Make two passes to allow for proper duplicate-argument suppression.
1852 ac_must_keep_next
=false
1858 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1859 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1860 |
-silent |
--silent |
--silen |
--sile |
--sil)
1863 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1866 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1868 as_fn_append ac_configure_args1
" '$ac_arg'"
1869 if test $ac_must_keep_next = true
; then
1870 ac_must_keep_next
=false
# Got value, back to normal.
1873 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1874 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1875 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1876 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1877 case "$ac_configure_args0 " in
1878 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1881 -* ) ac_must_keep_next
=true
;;
1884 as_fn_append ac_configure_args
" '$ac_arg'"
1889 { ac_configure_args0
=; unset ac_configure_args0
;}
1890 { ac_configure_args1
=; unset ac_configure_args1
;}
1892 # When interrupted or exit'd, cleanup temporary files, and complete
1893 # config.log. We remove comments because anyway the quotes in there
1894 # would cause problems or look ugly.
1895 # WARNING: Use '\'' to represent an apostrophe within the trap.
1896 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1897 trap 'exit_status=$?
1898 # Save into config.log some information that might help in debugging.
1902 $as_echo "## ---------------- ##
1903 ## Cache variables. ##
1904 ## ---------------- ##"
1906 # The following way of writing the cache mishandles newlines in values,
1908 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1909 eval ac_val=\$$ac_var
1913 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1914 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1917 _ | IFS | as_nl) ;; #(
1918 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1919 *) { eval $ac_var=; unset $ac_var;} ;;
1924 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1925 *${as_nl}ac_space=\ *)
1927 "s/'\''/'\''\\\\'\'''\''/g;
1928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1938 $as_echo "## ----------------- ##
1939 ## Output variables. ##
1940 ## ----------------- ##"
1942 for ac_var in $ac_subst_vars
1944 eval ac_val=\$$ac_var
1946 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1948 $as_echo "$ac_var='\''$ac_val'\''"
1952 if test -n "$ac_subst_files"; then
1953 $as_echo "## ------------------- ##
1954 ## File substitutions. ##
1955 ## ------------------- ##"
1957 for ac_var
in $ac_subst_files
1959 eval ac_val
=\$
$ac_var
1961 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1963 $as_echo "$ac_var='\''$ac_val'\''"
1968 if test -s confdefs.h; then
1969 $as_echo "## ----------- ##
1976 test "$ac_signal" != 0 &&
1977 $as_echo "$as_me: caught signal $ac_signal"
1978 $as_echo "$as_me: exit $exit_status"
1980 rm -f core *.core core.conftest.* &&
1981 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1984 for ac_signal
in 1 2 13 15; do
1985 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1989 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1990 rm -f -r conftest
* confdefs.h
1992 $as_echo "/* confdefs.h */" > confdefs.h
1994 # Predefined preprocessor variables.
1996 cat >>confdefs.h
<<_ACEOF
1997 #define PACKAGE_NAME "$PACKAGE_NAME"
2000 cat >>confdefs.h
<<_ACEOF
2001 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2004 cat >>confdefs.h
<<_ACEOF
2005 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2008 cat >>confdefs.h
<<_ACEOF
2009 #define PACKAGE_STRING "$PACKAGE_STRING"
2012 cat >>confdefs.h
<<_ACEOF
2013 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2016 cat >>confdefs.h
<<_ACEOF
2017 #define PACKAGE_URL "$PACKAGE_URL"
2021 # Let the site file select an alternate cache file if it wants to.
2022 # Prefer an explicitly selected file to automatically selected ones.
2025 if test -n "$CONFIG_SITE"; then
2026 # We do not want a PATH search for config.site.
2027 case $CONFIG_SITE in #((
2028 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2029 */*) ac_site_file1
=$CONFIG_SITE;;
2030 *) ac_site_file1
=.
/$CONFIG_SITE;;
2032 elif test "x$prefix" != xNONE
; then
2033 ac_site_file1
=$prefix/share
/config.site
2034 ac_site_file2
=$prefix/etc
/config.site
2036 ac_site_file1
=$ac_default_prefix/share
/config.site
2037 ac_site_file2
=$ac_default_prefix/etc
/config.site
2039 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2041 test "x$ac_site_file" = xNONE
&& continue
2042 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2044 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2045 sed 's/^/| /' "$ac_site_file" >&5
2047 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2049 as_fn_error $?
"failed to load site script $ac_site_file
2050 See \`config.log' for more details" "$LINENO" 5; }
2054 if test -r "$cache_file"; then
2055 # Some versions of bash will fail to source /dev/null (special files
2056 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2057 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2059 $as_echo "$as_me: loading cache $cache_file" >&6;}
2061 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2062 *) .
"./$cache_file";;
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2067 $as_echo "$as_me: creating cache $cache_file" >&6;}
2071 # Check that the precious variables saved in the cache have kept the same
2073 ac_cache_corrupted
=false
2074 for ac_var
in $ac_precious_vars; do
2075 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2076 eval ac_new_set
=\
$ac_env_${ac_var}_set
2077 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2078 eval ac_new_val
=\
$ac_env_${ac_var}_value
2079 case $ac_old_set,$ac_new_set in
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2082 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2083 ac_cache_corrupted
=: ;;
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2086 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2087 ac_cache_corrupted
=: ;;
2090 if test "x$ac_old_val" != "x$ac_new_val"; then
2091 # differences in whitespace do not lead to failure.
2092 ac_old_val_w
=`echo x $ac_old_val`
2093 ac_new_val_w
=`echo x $ac_new_val`
2094 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2096 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2097 ac_cache_corrupted
=:
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2100 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2101 eval $ac_var=\
$ac_old_val
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2104 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2106 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2109 # Pass precious variables to config.status.
2110 if test "$ac_new_set" = set; then
2112 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2113 *) ac_arg
=$ac_var=$ac_new_val ;;
2115 case " $ac_configure_args " in
2116 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2117 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2121 if $ac_cache_corrupted; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2125 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2126 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2128 ## -------------------- ##
2129 ## Main body of script. ##
2130 ## -------------------- ##
2133 ac_cpp
='$CPP $CPPFLAGS'
2134 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2142 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2143 if test -f "$ac_dir/install-sh"; then
2145 ac_install_sh
="$ac_aux_dir/install-sh -c"
2147 elif test -f "$ac_dir/install.sh"; then
2149 ac_install_sh
="$ac_aux_dir/install.sh -c"
2151 elif test -f "$ac_dir/shtool"; then
2153 ac_install_sh
="$ac_aux_dir/shtool install -c"
2157 if test -z "$ac_aux_dir"; then
2158 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2161 # These three variables are undocumented and unsupported,
2162 # and are intended to be withdrawn in a future Autoconf release.
2163 # They can cause serious problems if a builder's source tree is in a directory
2164 # whose full name contains unusual characters.
2165 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2166 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2167 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2170 # Find a good install program. We prefer a C program (faster),
2171 # so one script is as good as another. But avoid the broken or
2172 # incompatible versions:
2173 # SysV /etc/install, /usr/sbin/install
2174 # SunOS /usr/etc/install
2175 # IRIX /sbin/install
2177 # AmigaOS /C/install, which installs bootblocks on floppy discs
2178 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2179 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2180 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2181 # OS/2's system install, which has a completely different semantic
2182 # ./install, which can be erroneously created by make from ./install.sh.
2183 # Reject install programs that cannot install multiple files.
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2185 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2186 if test -z "$INSTALL"; then
2187 if ${ac_cv_path_install+:} false
; then :
2188 $as_echo_n "(cached) " >&6
2190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir
=.
2195 # Account for people who put trailing slashes in PATH elements.
2196 case $as_dir/ in #((
2197 .
/ | .
// |
/[cC
]/* | \
2198 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2199 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2202 # OSF1 and SCO ODT 3.0 have their own names for install.
2203 # Don't use installbsd from OSF since it installs stuff as root
2205 for ac_prog
in ginstall scoinst
install; do
2206 for ac_exec_ext
in '' $ac_executable_extensions; do
2207 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2208 if test $ac_prog = install &&
2209 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2210 # AIX install. It has an incompatible calling convention.
2212 elif test $ac_prog = install &&
2213 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2214 # program-specific install script used by HP pwplus--don't use.
2217 rm -rf conftest.one conftest.two conftest.dir
2218 echo one
> conftest.one
2219 echo two
> conftest.two
2221 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2222 test -s conftest.one
&& test -s conftest.two
&&
2223 test -s conftest.dir
/conftest.one
&&
2224 test -s conftest.dir
/conftest.two
2226 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2239 rm -rf conftest.one conftest.two conftest.dir
2242 if test "${ac_cv_path_install+set}" = set; then
2243 INSTALL
=$ac_cv_path_install
2245 # As a last resort, use the slow shell script. Don't cache a
2246 # value for INSTALL within a source directory, because that will
2247 # break other packages using the cache if that directory is
2248 # removed, or if the value is a relative name.
2249 INSTALL
=$ac_install_sh
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2253 $as_echo "$INSTALL" >&6; }
2255 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2256 # It thinks the first close brace ends the variable substitution.
2257 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2259 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2261 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2264 ac_cpp
='$CPP $CPPFLAGS'
2265 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2270 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2272 $as_echo_n "checking for $ac_word... " >&6; }
2273 if ${ac_cv_prog_CC+:} false
; then :
2274 $as_echo_n "(cached) " >&6
2276 if test -n "$CC"; then
2277 ac_cv_prog_CC
="$CC" # Let the user override the test.
2279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2283 test -z "$as_dir" && as_dir
=.
2284 for ac_exec_ext
in '' $ac_executable_extensions; do
2285 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2286 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 if test -n "$CC"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2299 $as_echo "$CC" >&6; }
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2302 $as_echo "no" >&6; }
2307 if test -z "$ac_cv_prog_CC"; then
2309 # Extract the first word of "gcc", so it can be a program name with args.
2310 set dummy gcc
; ac_word
=$2
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2314 $as_echo_n "(cached) " >&6
2316 if test -n "$ac_ct_CC"; then
2317 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir
=.
2324 for ac_exec_ext
in '' $ac_executable_extensions; do
2325 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_ac_ct_CC
="gcc"
2327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2339 $as_echo "$ac_ct_CC" >&6; }
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2342 $as_echo "no" >&6; }
2345 if test "x$ac_ct_CC" = x
; then
2348 case $cross_compiling:$ac_tool_warned in
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2352 ac_tool_warned
=yes ;;
2360 if test -z "$CC"; then
2361 if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2363 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2365 $as_echo_n "checking for $ac_word... " >&6; }
2366 if ${ac_cv_prog_CC+:} false
; then :
2367 $as_echo_n "(cached) " >&6
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC
="$CC" # Let the user override the test.
2372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir
=.
2377 for ac_exec_ext
in '' $ac_executable_extensions; do
2378 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2379 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 if test -n "$CC"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2392 $as_echo "$CC" >&6; }
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2395 $as_echo "no" >&6; }
2401 if test -z "$CC"; then
2402 # Extract the first word of "cc", so it can be a program name with args.
2403 set dummy cc
; ac_word
=$2
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if ${ac_cv_prog_CC+:} false
; then :
2407 $as_echo_n "(cached) " >&6
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC
="$CC" # Let the user override the test.
2413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir
=.
2418 for ac_exec_ext
in '' $ac_executable_extensions; do
2419 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2421 ac_prog_rejected
=yes
2425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 if test $ac_prog_rejected = yes; then
2433 # We found a bogon in the path, so make sure we never use it.
2434 set dummy
$ac_cv_prog_CC
2436 if test $# != 0; then
2437 # We chose a different compiler from the bogus one.
2438 # However, it has the same basename, so the bogon will be chosen
2439 # first if we set CC to just the basename; use the full file name.
2441 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2447 if test -n "$CC"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2449 $as_echo "$CC" >&6; }
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2452 $as_echo "no" >&6; }
2457 if test -z "$CC"; then
2458 if test -n "$ac_tool_prefix"; then
2459 for ac_prog
in cl.exe
2461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2464 $as_echo_n "checking for $ac_word... " >&6; }
2465 if ${ac_cv_prog_CC+:} false
; then :
2466 $as_echo_n "(cached) " >&6
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC
="$CC" # Let the user override the test.
2471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir
=.
2476 for ac_exec_ext
in '' $ac_executable_extensions; do
2477 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2478 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 if test -n "$CC"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2491 $as_echo "$CC" >&6; }
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2494 $as_echo "no" >&6; }
2498 test -n "$CC" && break
2501 if test -z "$CC"; then
2503 for ac_prog
in cl.exe
2505 # Extract the first word of "$ac_prog", so it can be a program name with args.
2506 set dummy
$ac_prog; ac_word
=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2510 $as_echo_n "(cached) " >&6
2512 if test -n "$ac_ct_CC"; then
2513 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir
=.
2520 for ac_exec_ext
in '' $ac_executable_extensions; do
2521 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2522 ac_cv_prog_ac_ct_CC
="$ac_prog"
2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2533 if test -n "$ac_ct_CC"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2535 $as_echo "$ac_ct_CC" >&6; }
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2542 test -n "$ac_ct_CC" && break
2545 if test "x$ac_ct_CC" = x
; then
2548 case $cross_compiling:$ac_tool_warned in
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2552 ac_tool_warned
=yes ;;
2561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2563 as_fn_error $?
"no acceptable C compiler found in \$PATH
2564 See \`config.log' for more details" "$LINENO" 5; }
2566 # Provide some information about the compiler.
2567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2570 for ac_option
in --version -v -V -qversion; do
2571 { { ac_try
="$ac_compiler $ac_option >&5"
2573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2577 $as_echo "$ac_try_echo"; } >&5
2578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2580 if test -s conftest.err; then
2582 ... rest of stderr output deleted ...
2583 10q' conftest.err >conftest.er1
2584 cat conftest.er1 >&5
2586 rm -f conftest.er1 conftest.err
2587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2588 test $ac_status = 0; }
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2602 ac_clean_files_save=$ac_clean_files
2603 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2604 # Try to create an executable without -o first, disregard a.out.
2605 # It will help us diagnose broken compilers, and finding out an intuition
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2608 $as_echo_n "checking whether the C compiler works... " >&6; }
2609 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2611 # The possible output files:
2612 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2615 for ac_file in $ac_files
2618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2619 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2624 if { { ac_try="$ac_link_default"
2626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2627 *) ac_try_echo
=$ac_try;;
2629 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630 $as_echo "$ac_try_echo"; } >&5
2631 (eval "$ac_link_default") 2>&5
2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634 test $ac_status = 0; }; then :
2635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2637 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2638 # so that the user can short-circuit this test for compilers unknown to
2640 for ac_file
in $ac_files ''
2642 test -f "$ac_file" ||
continue
2644 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2647 # We found the default executable, but exeext='' is most
2651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2653 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2655 # We set ac_cv_exeext here because the later test for it is not
2656 # safe: cross compilers may not add the suffix if given an `-o'
2657 # argument, so we may need to know it at that point already.
2658 # Even if this section looks crufty: it has the advantage of
2665 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2670 if test -z "$ac_file"; then :
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2673 $as_echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.
$ac_ext >&5
2676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 as_fn_error
77 "C compiler cannot create executables
2679 See \`config.log' for more details" "$LINENO" 5; }
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2682 $as_echo "yes" >&6; }
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2685 $as_echo_n "checking for C compiler default output file name... " >&6; }
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2687 $as_echo "$ac_file" >&6; }
2688 ac_exeext
=$ac_cv_exeext
2690 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2691 ac_clean_files
=$ac_clean_files_save
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2693 $as_echo_n "checking for suffix of executables... " >&6; }
2694 if { { ac_try
="$ac_link"
2696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2700 $as_echo "$ac_try_echo"; } >&5
2701 (eval "$ac_link") 2>&5
2703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2704 test $ac_status = 0; }; then :
2705 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2706 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2707 # work properly (i.e., refer to `conftest.exe'), while it won't with
2709 for ac_file
in conftest.exe conftest conftest.
*; do
2710 test -f "$ac_file" ||
continue
2712 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2713 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2722 See \`config.log' for more details" "$LINENO" 5; }
2724 rm -f conftest conftest
$ac_cv_exeext
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2726 $as_echo "$ac_cv_exeext" >&6; }
2728 rm -f conftest.
$ac_ext
2729 EXEEXT
=$ac_cv_exeext
2731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2737 FILE *f = fopen ("conftest.out", "w");
2738 return ferror (f) || fclose (f) != 0;
2744 ac_clean_files
="$ac_clean_files conftest.out"
2745 # Check that the compiler produces executables we can run. If not, either
2746 # the compiler is broken, or we cross compile.
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2748 $as_echo_n "checking whether we are cross compiling... " >&6; }
2749 if test "$cross_compiling" != yes; then
2750 { { ac_try
="$ac_link"
2752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2756 $as_echo "$ac_try_echo"; } >&5
2757 (eval "$ac_link") 2>&5
2759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2760 test $ac_status = 0; }
2761 if { ac_try='./conftest$ac_cv_exeext'
2762 { { case "(($ac_try" in
2763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2764 *) ac_try_echo
=$ac_try;;
2766 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767 $as_echo "$ac_try_echo"; } >&5
2768 (eval "$ac_try") 2>&5
2770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2771 test $ac_status = 0; }; }; then
2774 if test "$cross_compiling" = maybe
; then
2777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2779 as_fn_error $?
"cannot run C compiled programs.
2780 If you meant to cross compile, use \`--host'.
2781 See \`config.log' for more details" "$LINENO" 5; }
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2786 $as_echo "$cross_compiling" >&6; }
2788 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2789 ac_clean_files
=$ac_clean_files_save
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2791 $as_echo_n "checking for suffix of object files... " >&6; }
2792 if ${ac_cv_objext+:} false
; then :
2793 $as_echo_n "(cached) " >&6
2795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h. */
2806 rm -f conftest.o conftest.obj
2807 if { { ac_try
="$ac_compile"
2809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2813 $as_echo "$ac_try_echo"; } >&5
2814 (eval "$ac_compile") 2>&5
2816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2817 test $ac_status = 0; }; then :
2818 for ac_file in conftest.o conftest.obj conftest.*; do
2819 test -f "$ac_file" || continue;
2821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2822 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2827 $as_echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2833 See \
`config.log' for more details" "$LINENO" 5; }
2835 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2838 $as_echo "$ac_cv_objext" >&6; }
2839 OBJEXT=$ac_cv_objext
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2842 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2843 if ${ac_cv_c_compiler_gnu+:} false; then :
2844 $as_echo_n "(cached) " >&6
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847 /* end confdefs.h. */
2860 if ac_fn_c_try_compile "$LINENO"; then :
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2870 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2871 if test $ac_compiler_gnu = yes; then
2876 ac_test_CFLAGS=${CFLAGS+set}
2877 ac_save_CFLAGS=$CFLAGS
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2879 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2880 if ${ac_cv_prog_cc_g+:} false; then :
2881 $as_echo_n "(cached) " >&6
2883 ac_save_c_werror_flag=$ac_c_werror_flag
2884 ac_c_werror_flag=yes
2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888 /* end confdefs.h. */
2898 if ac_fn_c_try_compile "$LINENO"; then :
2902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h. */
2913 if ac_fn_c_try_compile "$LINENO"; then :
2916 ac_c_werror_flag=$ac_save_c_werror_flag
2918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2919 /* end confdefs.h. */
2929 if ac_fn_c_try_compile "$LINENO"; then :
2932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2937 ac_c_werror_flag=$ac_save_c_werror_flag
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2940 $as_echo "$ac_cv_prog_cc_g" >&6; }
2941 if test "$ac_test_CFLAGS" = set; then
2942 CFLAGS=$ac_save_CFLAGS
2943 elif test $ac_cv_prog_cc_g = yes; then
2944 if test "$GCC" = yes; then
2950 if test "$GCC" = yes; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2957 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2958 if ${ac_cv_prog_cc_c89+:} false; then :
2959 $as_echo_n "(cached) " >&6
2961 ac_cv_prog_cc_c89=no
2963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964 /* end confdefs.h. */
2968 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2969 struct buf { int x; };
2970 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2971 static char *e (p, i)
2977 static char *f (char * (*g) (char **, int), char **p, ...)
2982 s = g (p, va_arg (v,int));
2987 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2988 function prototypes and stuff, but not '\xHH' hex character constants.
2989 These don't provoke an error unfortunately, instead are silently treated
2990 as 'x'. The following induces an error, until -std is added to get
2991 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2992 array size at least. It's necessary to write '\x00'==0 to get something
2993 that's true only with -std. */
2994 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2996 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2997 inside strings and character constants. */
2999 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3001 int test (int i, double x);
3002 struct s1 {int (*f) (int a);};
3003 struct s2 {int (*f) (double a);};
3004 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3010 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3015 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3016 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3018 CC="$ac_save_CC $ac_arg"
3019 if ac_fn_c_try_compile "$LINENO"; then :
3020 ac_cv_prog_cc_c89=$ac_arg
3022 rm -f core conftest.err conftest.$ac_objext
3023 test "x$ac_cv_prog_cc_c89" != "xno" && break
3025 rm -f conftest.$ac_ext
3030 case "x$ac_cv_prog_cc_c89" in
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3033 $as_echo "none needed" >&6; } ;;
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3036 $as_echo "unsupported" >&6; } ;;
3038 CC="$CC $ac_cv_prog_cc_c89"
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3040 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3042 if test "x$ac_cv_prog_cc_c89" != xno; then :
3047 ac_cpp='$CPP $CPPFLAGS'
3048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053 # Put a plausible default for CC_FOR_BUILD in Makefile.
3054 if test "x$cross_compiling" = "xno"; then
3055 CC_FOR_BUILD='$(CC)'
3059 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3062 # If we haven't got the data from the intl directory,
3063 # assume NLS is disabled.
3072 if test -f ../../intl/config.intl; then
3073 . ../../intl/config.intl
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3076 $as_echo_n "checking whether NLS is requested... " >&6; }
3077 if test x"$USE_NLS" != xyes; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082 $as_echo "yes" >&6; }
3084 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3088 $as_echo_n "checking for catalogs to be installed... " >&6; }
3089 # Look for .po and .gmo files in the source directory.
3092 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3093 # If there aren't any .gmo files the shell will give us the
3094 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3096 case "$cat" in *\**)
3099 # The quadruple backslash is collapsed to a double backslash
3100 # by the backticks, then collapsed again by the double quotes,
3101 # leaving us with one backslash in the sed expression (right
3102 # before the dot that mustn't act as a wildcard).
3103 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3104 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
3105 # The user is allowed to set LINGUAS to a list of languages to
3106 # install catalogs for. If it's empty that means "all of them."
3107 if test "x$LINGUAS" = x; then
3108 CATALOGS="$CATALOGS $cat"
3109 XLINGUAS="$XLINGUAS $lang"
3111 case "$LINGUAS" in *$lang*)
3112 CATALOGS="$CATALOGS $cat"
3113 XLINGUAS="$XLINGUAS $lang"
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3120 $as_echo "$LINGUAS" >&6; }
3134 # Check whether --enable-sim-alignment was given.
3135 if test "${enable_sim_alignment+set}" = set; then :
3136 enableval=$enable_sim_alignment; case "${enableval}" in
3137 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3138 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3139 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
3140 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
3142 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
3143 echo "Setting alignment flags = $sim_alignment" 6>&1
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
3151 $as_echo_n "checking whether to enable sim asserts... " >&6; }
3153 # Check whether --enable-sim-assert was given.
3154 if test "${enable_sim_assert+set}" = set; then :
3155 enableval=$enable_sim_assert; case "${enableval}" in
3156 yes) sim_assert="1";;
3157 no) sim_assert="0";;
3158 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
3162 cat >>confdefs.h <<_ACEOF
3163 #define WITH_ASSERT $sim_assert
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
3167 $as_echo "$sim_assert" >&6; }
3170 # Check whether --enable-sim-bitsize was given.
3171 if test "${enable_sim_bitsize+set}" = set; then :
3172 enableval=$enable_sim_bitsize; case "${enableval}" in
3173 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
3174 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
3176 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3177 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3184 # Check whether --enable-sim-config was given.
3185 if test "${enable_sim_config+set}" = set; then :
3186 enableval=$enable_sim_config; case "${enableval}" in
3187 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
3188 *) if test -f "${srcdir}/${enableval}"; then
3189 sim_config="${enableval}";
3190 elif test -f "${srcdir}/${enableval}-config.h"; then
3191 sim_config="${enableval}-config.h"
3193 as_fn_error $? "\"Config file $enableval was not found\"" "$LINENO" 5;
3194 sim_config=std-config.h
3197 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
3198 echo "Setting config flags = $sim_config" 6>&1
3201 sim_config="std-config.h"
3202 if test x"$silent" != x"yes"; then
3203 echo "Setting config flags = $sim_config" 6>&1
3208 # Check whether --enable-sim-decode-mechanism was given.
3209 if test "${enable_sim_decode_mechanism+set}" = set; then :
3210 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
3211 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
3212 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
3213 *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3214 sim_decode_mechanism="switch";;
3216 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
3217 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
3220 sim_decode_mechanism=""
3221 if test x"$silent" != x"yes"; then
3222 echo "Setting decode mechanism flags = $sim_decode_mechanism"
3227 # Check whether --enable-sim-default-model was given.
3228 if test "${enable_sim_default_model+set}" = set; then :
3229 enableval=$enable_sim_default_model; case "${enableval}" in
3230 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
3231 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
3233 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3234 echo "Setting default-model flags = $sim_default_model" 6>&1
3237 sim_default_model=""
3241 # Check whether --enable-sim-duplicate was given.
3242 if test "${enable_sim_duplicate+set}" = set; then :
3243 enableval=$enable_sim_duplicate; case "${enableval}" in
3246 *) as_fn_error $? "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
3248 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
3249 echo "Setting duplicate flags = $sim_dup" 6>&1
3253 if test x"$silent" != x"yes"; then
3254 echo "Setting duplicate flags = $sim_dup" 6>&1
3259 # Check whether --enable-sim-endian was given.
3260 if test "${enable_sim_endian+set}" = set; then :
3261 enableval=$enable_sim_endian; case "${enableval}" in
3262 yes) case "$target" in
3263 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3264 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3265 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3267 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3268 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3269 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3270 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
3272 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3273 echo "Setting endian flags = $sim_endian" 6>&1
3280 # Check whether --enable-sim-filter was given.
3281 if test "${enable_sim_filter+set}" = set; then :
3282 enableval=$enable_sim_filter; case "${enableval}" in
3283 yes) as_fn_error $? "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
3285 *) sim_filter="-F $enableval";;
3287 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
3288 echo "Setting filter flags = $sim_filter" 6>&1
3291 sim_filter="-F 32,f,o"
3292 if test x"$silent" != x"yes"; then
3293 echo "Setting filter flags = $sim_filter" 6>&1
3298 # Check whether --enable-sim-float was given.
3299 if test "${enable_sim_float+set}" = set; then :
3300 enableval=$enable_sim_float; case "${enableval}" in
3301 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3302 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3303 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3304 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3305 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
3307 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3308 echo "Setting float flags = $sim_float" 6>&1
3313 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3314 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3322 $as_echo_n "checking if union semun defined... " >&6; }
3323 if ${ac_cv_HAS_UNION_SEMUN+:} false; then :
3324 $as_echo_n "(cached) " >&6
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3329 #include <sys/types.h>
3330 #include <sys/ipc.h>
3331 #include <sys/sem.h>
3340 if ac_fn_c_try_compile "$LINENO"; then :
3341 ac_cv_has_union_semun="yes"
3343 ac_cv_has_union_semun="no"
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3347 $as_echo "$ac_cv_has_union_semun" >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3351 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
3354 if test "$ac_cv_has_union_semun" = "yes"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3356 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3357 if ${ac_cv_sysv_sem+:} false; then :
3358 $as_echo_n "(cached) " >&6
3361 if test "$cross_compiling" = yes; then :
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3367 #include <sys/types.h>
3368 #include <sys/ipc.h>
3369 #include <sys/sem.h>
3373 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3376 arg.val = 0; /* avoid implicit type cast to union */
3377 if (semctl(id, 0, IPC_RMID, arg) == -1)
3383 if ac_fn_c_try_run "$LINENO"; then :
3384 ac_cv_sysv_sem="yes"
3388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3389 conftest.$ac_objext conftest.beam conftest.$ac_ext
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3395 $as_echo "$ac_cv_sysv_sem" >&6; }
3396 else # semun is not defined
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3398 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3399 if ${ac_cv_sysv_sem+:} false; then :
3400 $as_echo_n "(cached) " >&6
3403 if test "$cross_compiling" = yes; then :
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3409 #include <sys/types.h>
3410 #include <sys/ipc.h>
3411 #include <sys/sem.h>
3414 struct semid_ds *buf;
3420 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3423 arg.val = 0; /* avoid implicit type cast to union */
3424 if (semctl(id, 0, IPC_RMID, arg) == -1)
3430 if ac_fn_c_try_run "$LINENO"; then :
3431 ac_cv_sysv_sem="yes"
3435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3436 conftest.$ac_objext conftest.beam conftest.$ac_ext
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3442 $as_echo "$ac_cv_sysv_sem" >&6; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3446 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
3447 if ${ac_cv_sysv_shm+:} false; then :
3448 $as_echo_n "(cached) " >&6
3451 if test "$cross_compiling" = yes; then :
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3457 #include <sys/types.h>
3458 #include <sys/ipc.h>
3459 #include <sys/shm.h>
3461 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3464 if (shmctl(id, IPC_RMID, 0) == -1)
3470 if ac_fn_c_try_run "$LINENO"; then :
3471 ac_cv_sysv_shm="yes"
3475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3476 conftest.$ac_objext conftest.beam conftest.$ac_ext
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
3482 $as_echo "$ac_cv_sysv_shm" >&6; }
3484 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3485 sim_sysv_ipc_hw=",sem,shm";
3490 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3492 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
3497 # Check whether --enable-sim-hardware was given.
3498 if test "${enable_sim_hardware+set}" = set; then :
3499 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}"
3500 case "${enableval}" in
3502 no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
3503 ,*) hardware="${hardware}${enableval}";;
3504 *,) hardware="${enableval}${hardware}";;
3505 *) hardware="${enableval}"'';;
3507 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3508 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3509 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
3510 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3513 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3514 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3515 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3516 if test x"$silent" != x"yes"; then
3517 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3521 # Check whether --enable-sim-hostbitsize was given.
3522 if test "${enable_sim_hostbitsize+set}" = set; then :
3523 enableval=$enable_sim_hostbitsize; case "${enableval}" in
3524 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
3525 *) as_fn_error $? "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
3527 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
3528 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3541 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3542 # On Suns, sometimes $CPP names a directory.
3543 if test -n "$CPP" && test -d "$CPP"; then
3546 if test -z "$CPP"; then
3547 if ${ac_cv_prog_CPP+:} false; then :
3548 $as_echo_n "(cached) " >&6
3550 # Double quotes because CPP needs to be expanded
3551 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3554 for ac_c_preproc_warn_flag in '' yes
3556 # Use a header file that comes with gcc, so configuring glibc
3557 # with a fresh cross-compiler works.
3558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3559 # <limits.h> exists even on freestanding compilers.
3560 # On the NeXT, cc -E runs the code through the compiler's parser,
3561 # not just through cpp. "Syntax error" is here to catch this case.
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3565 # include <limits.h>
3567 # include <assert.h>
3571 if ac_fn_c_try_cpp "$LINENO"; then :
3574 # Broken: fails on valid input.
3577 rm -f conftest.err conftest.i conftest.$ac_ext
3579 # OK, works on sane cases. Now check whether nonexistent headers
3580 # can be detected and how.
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3583 #include <ac_nonexistent.h>
3585 if ac_fn_c_try_cpp "$LINENO"; then :
3586 # Broken: success on invalid input.
3589 # Passes both tests.
3593 rm -f conftest.err conftest.i conftest.$ac_ext
3596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3597 rm -f conftest.i conftest.err conftest.
$ac_ext
3598 if $ac_preproc_ok; then :
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3611 $as_echo "$CPP" >&6; }
3613 for ac_c_preproc_warn_flag
in '' yes
3615 # Use a header file that comes with gcc, so configuring glibc
3616 # with a fresh cross-compiler works.
3617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3618 # <limits.h> exists even on freestanding compilers.
3619 # On the NeXT, cc -E runs the code through the compiler's parser,
3620 # not just through cpp. "Syntax error" is here to catch this case.
3621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3624 # include <limits.h>
3626 # include <assert.h>
3630 if ac_fn_c_try_cpp
"$LINENO"; then :
3633 # Broken: fails on valid input.
3636 rm -f conftest.err conftest.i conftest.
$ac_ext
3638 # OK, works on sane cases. Now check whether nonexistent headers
3639 # can be detected and how.
3640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3642 #include <ac_nonexistent.h>
3644 if ac_fn_c_try_cpp
"$LINENO"; then :
3645 # Broken: success on invalid input.
3648 # Passes both tests.
3652 rm -f conftest.err conftest.i conftest.
$ac_ext
3655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3656 rm -f conftest.i conftest.err conftest.
$ac_ext
3657 if $ac_preproc_ok; then :
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3663 See \`config.log' for more details" "$LINENO" 5; }
3667 ac_cpp
='$CPP $CPPFLAGS'
3668 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3674 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3675 if ${ac_cv_path_GREP+:} false
; then :
3676 $as_echo_n "(cached) " >&6
3678 if test -z "$GREP"; then
3679 ac_path_GREP_found
=false
3680 # Loop through the user's path and test for each of PROGNAME-LIST
3681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3682 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3685 test -z "$as_dir" && as_dir
=.
3686 for ac_prog
in grep ggrep
; do
3687 for ac_exec_ext
in '' $ac_executable_extensions; do
3688 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3689 as_fn_executable_p
"$ac_path_GREP" ||
continue
3690 # Check for GNU ac_path_GREP and select it if it is found.
3691 # Check for GNU $ac_path_GREP
3692 case `"$ac_path_GREP" --version 2>&1` in
3694 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3697 $as_echo_n 0123456789 >"conftest.in"
3700 cat "conftest.in" "conftest.in" >"conftest.tmp"
3701 mv "conftest.tmp" "conftest.in"
3702 cp "conftest.in" "conftest.nl"
3703 $as_echo 'GREP' >> "conftest.nl"
3704 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3705 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3706 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3707 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3708 # Best one so far, save it but keep looking for a better one
3709 ac_cv_path_GREP
="$ac_path_GREP"
3710 ac_path_GREP_max
=$ac_count
3712 # 10*(2^10) chars as input seems more than enough
3713 test $ac_count -gt 10 && break
3715 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3718 $ac_path_GREP_found && break 3
3723 if test -z "$ac_cv_path_GREP"; then
3724 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3727 ac_cv_path_GREP
=$GREP
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3732 $as_echo "$ac_cv_path_GREP" >&6; }
3733 GREP
="$ac_cv_path_GREP"
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3737 $as_echo_n "checking for egrep... " >&6; }
3738 if ${ac_cv_path_EGREP+:} false
; then :
3739 $as_echo_n "(cached) " >&6
3741 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3742 then ac_cv_path_EGREP
="$GREP -E"
3744 if test -z "$EGREP"; then
3745 ac_path_EGREP_found
=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3748 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3751 test -z "$as_dir" && as_dir
=.
3752 for ac_prog
in egrep; do
3753 for ac_exec_ext
in '' $ac_executable_extensions; do
3754 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3755 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3756 # Check for GNU ac_path_EGREP and select it if it is found.
3757 # Check for GNU $ac_path_EGREP
3758 case `"$ac_path_EGREP" --version 2>&1` in
3760 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3763 $as_echo_n 0123456789 >"conftest.in"
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 $as_echo 'EGREP' >> "conftest.nl"
3770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3771 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3772 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_EGREP
="$ac_path_EGREP"
3776 ac_path_EGREP_max
=$ac_count
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3781 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3784 $ac_path_EGREP_found && break 3
3789 if test -z "$ac_cv_path_EGREP"; then
3790 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3793 ac_cv_path_EGREP
=$EGREP
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3799 $as_echo "$ac_cv_path_EGREP" >&6; }
3800 EGREP
="$ac_cv_path_EGREP"
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3804 $as_echo_n "checking for ANSI C header files... " >&6; }
3805 if ${ac_cv_header_stdc+:} false
; then :
3806 $as_echo_n "(cached) " >&6
3808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3823 if ac_fn_c_try_compile
"$LINENO"; then :
3824 ac_cv_header_stdc
=yes
3826 ac_cv_header_stdc
=no
3828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3830 if test $ac_cv_header_stdc = yes; then
3831 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3838 $EGREP "memchr" >/dev
/null
2>&1; then :
3841 ac_cv_header_stdc
=no
3847 if test $ac_cv_header_stdc = yes; then
3848 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3855 $EGREP "free" >/dev
/null
2>&1; then :
3858 ac_cv_header_stdc
=no
3864 if test $ac_cv_header_stdc = yes; then
3865 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3866 if test "$cross_compiling" = yes; then :
3869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3873 #if ((' ' & 0x0FF) == 0x020)
3874 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3875 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3877 # define ISLOWER(c) \
3878 (('a' <= (c) && (c) <= 'i') \
3879 || ('j' <= (c) && (c) <= 'r') \
3880 || ('s' <= (c) && (c) <= 'z'))
3881 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3884 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3889 for (i = 0; i < 256; i++)
3890 if (XOR (islower (i), ISLOWER (i))
3891 || toupper (i) != TOUPPER (i))
3896 if ac_fn_c_try_run
"$LINENO"; then :
3899 ac_cv_header_stdc
=no
3901 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3902 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3908 $as_echo "$ac_cv_header_stdc" >&6; }
3909 if test $ac_cv_header_stdc = yes; then
3911 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3915 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3916 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3917 inttypes.h stdint.h unistd.h
3919 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3920 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3922 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3923 cat >>confdefs.h
<<_ACEOF
3924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3932 # Check whether --enable-sim-hostendian was given.
3933 if test "${enable_sim_hostendian+set}" = set; then :
3934 enableval
=$enable_sim_hostendian; case "${enableval}" in
3935 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3936 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3937 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3938 *) as_fn_error $?
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
3940 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3941 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3945 if test "x$cross_compiling" = "xno"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3947 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3948 if ${ac_cv_c_bigendian+:} false
; then :
3949 $as_echo_n "(cached) " >&6
3951 ac_cv_c_bigendian
=unknown
3952 # See if we're dealing with a universal compiler.
3953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955 #ifndef __APPLE_CC__
3956 not a universal capable compiler
3961 if ac_fn_c_try_compile
"$LINENO"; then :
3963 # Check for potential -arch flags. It is not universal unless
3964 # there are at least two -arch flags with different values.
3967 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3968 if test -n "$ac_prev"; then
3970 i?
86 | x86_64 | ppc | ppc64
)
3971 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
3974 ac_cv_c_bigendian
=universal
3980 elif test "x$ac_word" = "x-arch"; then
3985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3986 if test $ac_cv_c_bigendian = unknown
; then
3987 # See if sys/param.h defines the BYTE_ORDER macro.
3988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990 #include <sys/types.h>
3991 #include <sys/param.h>
3996 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3997 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4006 if ac_fn_c_try_compile
"$LINENO"; then :
4007 # It does; now see whether it defined to BIG_ENDIAN or not.
4008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4010 #include <sys/types.h>
4011 #include <sys/param.h>
4016 #if BYTE_ORDER != BIG_ENDIAN
4024 if ac_fn_c_try_compile
"$LINENO"; then :
4025 ac_cv_c_bigendian
=yes
4027 ac_cv_c_bigendian
=no
4029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4033 if test $ac_cv_c_bigendian = unknown
; then
4034 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4042 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4050 if ac_fn_c_try_compile
"$LINENO"; then :
4051 # It does; now see whether it defined to _BIG_ENDIAN or not.
4052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4067 if ac_fn_c_try_compile
"$LINENO"; then :
4068 ac_cv_c_bigendian
=yes
4070 ac_cv_c_bigendian
=no
4072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4076 if test $ac_cv_c_bigendian = unknown
; then
4077 # Compile a test program.
4078 if test "$cross_compiling" = yes; then :
4079 # Try to guess by grepping values from an object file.
4080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 short int ascii_mm[] =
4083 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4084 short int ascii_ii[] =
4085 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4086 int use_ascii (int i) {
4087 return ascii_mm[i] + ascii_ii[i];
4089 short int ebcdic_ii[] =
4090 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4091 short int ebcdic_mm[] =
4092 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4093 int use_ebcdic (int i) {
4094 return ebcdic_mm[i] + ebcdic_ii[i];
4101 return use_ascii (foo) == use_ebcdic (foo);
4106 if ac_fn_c_try_compile
"$LINENO"; then :
4107 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4108 ac_cv_c_bigendian
=yes
4110 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4111 if test "$ac_cv_c_bigendian" = unknown
; then
4112 ac_cv_c_bigendian
=no
4114 # finding both strings is unlikely to happen, but who knows?
4115 ac_cv_c_bigendian
=unknown
4119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 $ac_includes_default
4128 /* Are we little or big endian? From Harbison&Steele. */
4132 char c[sizeof (long int)];
4135 return u.c[sizeof (long int) - 1] == 1;
4141 if ac_fn_c_try_run
"$LINENO"; then :
4142 ac_cv_c_bigendian
=no
4144 ac_cv_c_bigendian
=yes
4146 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4147 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4153 $as_echo "$ac_cv_c_bigendian" >&6; }
4154 case $ac_cv_c_bigendian in #(
4156 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4162 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4166 as_fn_error $?
"unknown endianness
4167 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4170 if test $ac_cv_c_bigendian = yes; then
4171 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4173 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4176 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
4181 # Check whether --enable-sim-icache was given.
4182 if test "${enable_sim_icache+set}" = set; then :
4183 enableval
=$enable_sim_icache; icache
="-R"
4184 case "${enableval}" in
4185 yes) icache
="1024"; sim_icache
="-I $icache";;
4186 no
) sim_icache
="-R";;
4189 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
4191 define
) sim_icache
="${sim_icache}R";;
4192 semantic
) sim_icache
="${sim_icache}C";;
4193 insn
) sim_icache
="${sim_icache}S";;
4194 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
4195 *) as_fn_error $?
"\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache
="";;
4198 sim_icache
="${sim_icache}I $icache";;
4200 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
4201 echo "Setting instruction cache size to $icache ($sim_icache)"
4204 sim_icache
="-CSRI 1024"
4205 if test x
"$silent" != x
"yes"; then
4206 echo "Setting instruction cache size to 1024 ($sim_icache)"
4211 # Check whether --enable-sim-inline was given.
4212 if test "${enable_sim_inline+set}" = set; then :
4213 enableval
=$enable_sim_inline; sim_inline
=""
4214 case "$enableval" in
4215 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4216 0) sim_inline
="-DDEFAULT_INLINE=0";;
4217 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
4218 1) sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
4219 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4222 *_INLINE
=*) new_flag
="-D$x";;
4223 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4224 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
4225 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
4227 if test x
"$sim_inline" = x
""; then
4228 sim_inline
="$new_flag"
4230 sim_inline
="$sim_inline $new_flag"
4234 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4235 echo "Setting inline flags = $sim_inline" 6>&1
4238 if test x
"$GCC" != ""; then
4239 sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
4240 if test x
"$silent" != x
"yes"; then
4241 echo "Setting inline flags = $sim_inline" 6>&1
4249 # Check whether --enable-sim-jump was given.
4250 if test "${enable_sim_jump+set}" = set; then :
4251 enableval
=$enable_sim_jump; case "${enableval}" in
4252 yes) sim_jump
="-J";;
4254 *) as_fn_error $?
"\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump
="";;
4256 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
4257 echo "Setting jump flag = $sim_jump" 6>&1
4261 if test x
"$silent" != x
"yes"; then
4262 echo "Setting jump flag = $sim_jump" 6>&1
4267 # Check whether --enable-sim-line-nr was given.
4268 if test "${enable_sim_line_nr+set}" = set; then :
4269 enableval
=$enable_sim_line_nr; case "${enableval}" in
4270 yes) sim_line_nr
="";;
4271 no
) sim_line_nr
="-L";;
4272 *) as_fn_error $?
"\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr
="";;
4274 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
4275 echo "Setting warning flags = $sim_line_nr" 6>&1
4282 # Check whether --enable-sim-model was given.
4283 if test "${enable_sim_model+set}" = set; then :
4284 enableval
=$enable_sim_model; case "${enableval}" in
4285 yes|no
) as_fn_error $?
"\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
4286 *) sim_model
="-DWITH_MODEL=${enableval}";;
4288 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
4289 echo "Setting model flags = $sim_model" 6>&1
4296 # Check whether --enable-sim-model-issue was given.
4297 if test "${enable_sim_model_issue+set}" = set; then :
4298 enableval
=$enable_sim_model_issue; case "${enableval}" in
4299 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
4300 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
4301 *) as_fn_error $?
"\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue
="";;
4303 if test x
"$silent" != x
"yes"; then
4304 echo "Setting model-issue flags = $sim_model_issue" 6>&1
4311 # Check whether --enable-sim-monitor was given.
4312 if test "${enable_sim_monitor+set}" = set; then :
4313 enableval
=$enable_sim_monitor; case "${enableval}" in
4314 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
4315 no
) sim_monitor
="-DWITH_MON=0";;
4316 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
4317 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
4318 *) as_fn_error $?
"\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5;;
4320 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
4321 echo "Setting monitor flags = $sim_monitor" 6>&1
4328 # Check whether --enable-sim-opcode was given.
4329 if test "${enable_sim_opcode+set}" = set; then :
4330 enableval
=$enable_sim_opcode; case "${enableval}" in
4331 yes|no
) as_fn_error $?
"\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
4332 *) if test -f "${srcdir}/${enableval}"; then
4333 sim_opcode
="${enableval}"
4334 elif test -f "${srcdir}/dc-${enableval}"; then
4335 sim_opcode
="dc-${enableval}"
4337 as_fn_error $?
"\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
4338 sim_opcode
="dc-complex"
4341 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
4342 echo "Setting opcode flags = $sim_opcode" 6>&1
4345 sim_opcode
="dc-complex"
4346 if test x
"$silent" != x
"yes"; then
4347 echo "Setting opcode flags = $sim_opcode"
4352 # Check whether --enable-sim-packages was given.
4353 if test "${enable_sim_packages+set}" = set; then :
4354 enableval
=$enable_sim_packages; packages
=disklabel
4355 case "${enableval}" in
4357 no
) as_fn_error $?
"\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages
="";;
4358 ,*) packages
="${packages}${enableval}";;
4359 *,) packages
="${enableval}${packages}";;
4360 *) packages
="${enableval}"'';;
4362 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4363 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4364 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
4365 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4369 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4370 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4371 if test x
"$silent" != x
"yes"; then
4372 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4377 # Check whether --enable-sim-reserved-bits was given.
4378 if test "${enable_sim_reserved_bits+set}" = set; then :
4379 enableval
=$enable_sim_reserved_bits; case "${enableval}" in
4380 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
4381 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
4382 *) as_fn_error $?
"\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved
="";;
4384 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
4385 echo "Setting reserved flags = $sim_reserved" 6>&1
4392 # Check whether --enable-sim-smp was given.
4393 if test "${enable_sim_smp+set}" = set; then :
4394 enableval
=$enable_sim_smp; case "${enableval}" in
4395 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
4396 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
4397 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
4399 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
4400 echo "Setting smp flags = $sim_smp" 6>&1
4403 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
4404 if test x
"$silent" != x
"yes"; then
4405 echo "Setting smp flags = $sim_smp" 6>&1
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
4411 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
4413 # Check whether --enable-sim-stdio was given.
4414 if test "${enable_sim_stdio+set}" = set; then :
4415 enableval
=$enable_sim_stdio; case "${enableval}" in
4416 yes) sim_stdio
="DO_USE_STDIO";;
4417 no
) sim_stdio
="DONT_USE_STDIO";;
4418 *) as_fn_error $?
"Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
4422 cat >>confdefs.h
<<_ACEOF
4423 #define WITH_STDIO $sim_stdio
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
4427 $as_echo "$sim_stdio" >&6; }
4430 # Check whether --enable-sim-switch was given.
4431 if test "${enable_sim_switch+set}" = set; then :
4432 enableval
=$enable_sim_switch; case "${enableval}" in
4433 yes) sim_switch
="-s";;
4435 *) as_fn_error $?
"\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch
="";;
4437 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
4438 echo "Setting switch flags = $sim_switch" 6>&1
4442 if test x
"$silent" != x
"yes"; then
4443 echo "Setting switch flags = $sim_switch" 6>&1
4448 # Check whether --enable-sim-timebase was given.
4449 if test "${enable_sim_timebase+set}" = set; then :
4450 enableval
=$enable_sim_timebase; case "${enableval}" in
4451 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
4452 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
4453 *) as_fn_error $?
"\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase
="";;
4455 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
4456 echo "Setting timebase flags = $sim_timebase" 6>&1
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
4464 $as_echo_n "checking for sim trace settings... " >&6; }
4466 # Check whether --enable-sim-trace was given.
4467 if test "${enable_sim_trace+set}" = set; then :
4468 enableval
=$enable_sim_trace; case "${enableval}" in
4469 yes) sim_trace
="1";;
4471 *) as_fn_error $?
"--enable-sim-trace does not take a value" "$LINENO" 5;;
4475 cat >>confdefs.h
<<_ACEOF
4476 #define WITH_TRACE $sim_trace
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
4480 $as_echo "$sim_trace" >&6; }
4483 # Check whether --enable-werror was given.
4484 if test "${enable_werror+set}" = set; then :
4485 enableval
=$enable_werror; case "${enableval}" in
4486 yes | y
) ERROR_ON_WARNING
="yes" ;;
4487 no | n
) ERROR_ON_WARNING
="no" ;;
4488 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4492 # Enable -Werror by default when using gcc
4493 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4494 ERROR_ON_WARNING
=yes
4497 if test "${ERROR_ON_WARNING}" = yes ; then
4498 WERROR_CFLAGS
="-Werror"
4501 *-*-mingw32*) WERROR_CFLAGS
="$WERROR_CFLAGS -Wno-format" ;;
4505 # Check whether --enable-sim-warnings was given.
4506 if test "${enable_sim_warnings+set}" = set; then :
4507 enableval
=$enable_sim_warnings; case "${enableval}" in
4508 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
4509 no
) sim_warnings
="-w";;
4510 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4512 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
4513 echo "Setting warning flags = $sim_warnings" 6>&1
4520 # Check whether --enable-sim-xor-endian was given.
4521 if test "${enable_sim_xor_endian+set}" = set; then :
4522 enableval
=$enable_sim_xor_endian; case "${enableval}" in
4523 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
4524 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
4525 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
4527 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
4528 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
4537 # Check whether --with-pkgversion was given.
4538 if test "${with_pkgversion+set}" = set; then :
4539 withval
=$with_pkgversion; case "$withval" in
4540 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
4542 *) PKGVERSION
="($withval) " ;;
4553 # Check whether --with-bugurl was given.
4554 if test "${with_bugurl+set}" = set; then :
4555 withval
=$with_bugurl; case "$withval" in
4556 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
4559 *) BUGURL
="$withval"
4563 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
4573 REPORT_BUGS_TO
="<$BUGURL>"
4574 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4581 cat >>confdefs.h
<<_ACEOF
4582 #define PKGVERSION "$PKGVERSION"
4586 cat >>confdefs.h
<<_ACEOF
4587 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4591 # Make sure we can run config.sub.
4592 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4593 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4596 $as_echo_n "checking build system type... " >&6; }
4597 if ${ac_cv_build+:} false
; then :
4598 $as_echo_n "(cached) " >&6
4600 ac_build_alias
=$build_alias
4601 test "x$ac_build_alias" = x
&&
4602 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4603 test "x$ac_build_alias" = x
&&
4604 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4605 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4606 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4610 $as_echo "$ac_cv_build" >&6; }
4611 case $ac_cv_build in
4613 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4616 ac_save_IFS
=$IFS; IFS
='-'
4622 # Remember, the first character of IFS is used to create $*,
4623 # except with old shells:
4626 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4630 $as_echo_n "checking host system type... " >&6; }
4631 if ${ac_cv_host+:} false
; then :
4632 $as_echo_n "(cached) " >&6
4634 if test "x$host_alias" = x
; then
4635 ac_cv_host
=$ac_cv_build
4637 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4638 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4643 $as_echo "$ac_cv_host" >&6; }
4646 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4649 ac_save_IFS
=$IFS; IFS
='-'
4655 # Remember, the first character of IFS is used to create $*,
4656 # except with old shells:
4659 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4663 $as_echo_n "checking target system type... " >&6; }
4664 if ${ac_cv_target+:} false
; then :
4665 $as_echo_n "(cached) " >&6
4667 if test "x$target_alias" = x
; then
4668 ac_cv_target
=$ac_cv_host
4670 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4671 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4676 $as_echo "$ac_cv_target" >&6; }
4677 case $ac_cv_target in
4679 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4681 target
=$ac_cv_target
4682 ac_save_IFS
=$IFS; IFS
='-'
4688 # Remember, the first character of IFS is used to create $*,
4689 # except with old shells:
4692 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4695 # The aliases save the names the user supplied, while $host etc.
4696 # will get canonicalized.
4697 test -n "$target_alias" &&
4698 test "$program_prefix$program_suffix$program_transform_name" = \
4700 program_prefix
=${target_alias}-
4702 test "$program_prefix" != NONE
&&
4703 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4704 # Use a double $ so make ignores it.
4705 test "$program_suffix" != NONE
&&
4706 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4707 # Double any \ or $.
4708 # By default was `s,x,x', remove it if useless.
4709 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4710 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4713 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4714 # using the same condition.
4716 # Use the system's zlib library.
4717 zlibdir
="-L\$(top_builddir)/../zlib"
4718 zlibinc
="-I\$(top_srcdir)/../zlib"
4720 # Check whether --with-system-zlib was given.
4721 if test "${with_system_zlib+set}" = set; then :
4722 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
4733 # BFD uses libdl when when plugins enabled.
4736 for ac_header
in dlfcn.h
4738 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4740 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4741 cat >>confdefs.h
<<_ACEOF
4742 #define HAVE_DLFCN_H 1
4749 for ac_header
in windows.h
4751 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4753 if test "x$ac_cv_header_windows_h" = xyes
; then :
4754 cat >>confdefs.h
<<_ACEOF
4755 #define HAVE_WINDOWS_H 1
4763 # Check whether --enable-plugins was given.
4764 if test "${enable_plugins+set}" = set; then :
4765 enableval
=$enable_plugins; case "${enableval}" in
4768 if test "$maybe_plugins" != "yes" ; then
4769 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4773 plugins
=$maybe_plugins
4777 if test "$plugins" = "yes"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4779 $as_echo_n "checking for library containing dlsym... " >&6; }
4780 if ${ac_cv_search_dlsym+:} false
; then :
4781 $as_echo_n "(cached) " >&6
4783 ac_func_search_save_LIBS
=$LIBS
4784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4787 /* Override any GCC internal prototype to avoid an error.
4788 Use char because int might match the return type of a GCC
4789 builtin and then its argument prototype would still apply. */
4802 for ac_lib
in '' dl
; do
4803 if test -z "$ac_lib"; then
4804 ac_res
="none required"
4807 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4809 if ac_fn_c_try_link
"$LINENO"; then :
4810 ac_cv_search_dlsym
=$ac_res
4812 rm -f core conftest.err conftest.
$ac_objext \
4814 if ${ac_cv_search_dlsym+:} false
; then :
4818 if ${ac_cv_search_dlsym+:} false
; then :
4821 ac_cv_search_dlsym
=no
4824 LIBS
=$ac_func_search_save_LIBS
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4827 $as_echo "$ac_cv_search_dlsym" >&6; }
4828 ac_res
=$ac_cv_search_dlsym
4829 if test "$ac_res" != no
; then :
4830 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4840 $as_echo "#define USE_WIN32API 1" >>confdefs.h
4845 ac_config_headers
="$ac_config_headers config.h:config.in"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
4851 $as_echo_n "checking for struct termios... " >&6; }
4852 if ${ac_cv_termios_struct+:} false
; then :
4853 $as_echo_n "(cached) " >&6
4855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857 #include <sys/types.h>
4858 #include <sys/termios.h>
4862 static struct termios x;
4872 if ac_fn_c_try_compile
"$LINENO"; then :
4873 ac_cv_termios_struct
=yes
4875 ac_cv_termios_struct
=no
4877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
4881 $as_echo "$ac_cv_termios_struct" >&6; }
4882 if test $ac_cv_termios_struct = yes; then
4883 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
4886 if test "$ac_cv_termios_struct" = "yes"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
4888 $as_echo_n "checking for c_line field in struct termios... " >&6; }
4889 if ${ac_cv_termios_cline+:} false
; then :
4890 $as_echo_n "(cached) " >&6
4892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 #include <sys/types.h>
4895 #include <sys/termios.h>
4899 static struct termios x; x.c_line = 0;
4904 if ac_fn_c_try_compile
"$LINENO"; then :
4905 ac_cv_termios_cline
=yes
4907 ac_cv_termios_cline
=no
4909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
4914 $as_echo "$ac_cv_termios_cline" >&6; }
4915 if test $ac_cv_termios_cline = yes; then
4916 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
4919 ac_cv_termios_cline
=no
4922 if test "$ac_cv_termios_struct" != "yes"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
4924 $as_echo_n "checking for struct termio... " >&6; }
4925 if ${ac_cv_termio_struct+:} false
; then :
4926 $as_echo_n "(cached) " >&6
4928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 #include <sys/types.h>
4931 #include <sys/termio.h>
4935 static struct termio x;
4945 if ac_fn_c_try_compile
"$LINENO"; then :
4946 ac_cv_termio_struct
=yes
4948 ac_cv_termio_struct
=no
4950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
4954 $as_echo "$ac_cv_termio_struct" >&6; }
4955 if test $ac_cv_termio_struct = yes; then
4956 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
4959 ac_cv_termio_struct
=no
4962 if test "$ac_cv_termio_struct" = "yes"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
4964 $as_echo_n "checking for c_line field in struct termio... " >&6; }
4965 if ${ac_cv_termio_cline+:} false
; then :
4966 $as_echo_n "(cached) " >&6
4968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4970 #include <sys/types.h>
4971 #include <sys/termio.h>
4975 static struct termio x; x.c_line = 0;
4980 if ac_fn_c_try_compile
"$LINENO"; then :
4981 ac_cv_termio_cline
=yes
4983 ac_cv_termio_cline
=no
4985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
4990 $as_echo "$ac_cv_termio_cline" >&6; }
4991 if test $ac_cv_termio_cline = yes; then
4992 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
4995 ac_cv_termio_cline
=no
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
4999 $as_echo_n "checking for struct statfs... " >&6; }
5000 if ${ac_cv_struct_statfs+:} false
; then :
5001 $as_echo_n "(cached) " >&6
5003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005 #include <sys/types.h>
5006 #ifdef HAVE_SYS_PARAM_H
5007 #include <sys/param.h>
5009 #ifdef HAVE_SYS_MOUNT_H
5010 #include <sys/mount.h>
5012 #ifdef HAVE_SYS_VFS_H
5013 #include <sys/vfs.h>
5015 #ifdef HAVE_SYS_STATFS_H
5016 #include <sys/statfs.h>
5021 static struct statfs s;
5026 if ac_fn_c_try_compile
"$LINENO"; then :
5027 ac_cv_struct_statfs
=yes
5029 ac_cv_struct_statfs
=no
5031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
5035 $as_echo "$ac_cv_struct_statfs" >&6; }
5036 if test $ac_cv_struct_statfs = yes; then
5038 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
5042 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5043 if test "x$ac_cv_type_long_long" = xyes
; then :
5045 cat >>confdefs.h
<<_ACEOF
5046 #define HAVE_LONG_LONG 1
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
5055 $as_echo_n "checking for /dev/zero... " >&6; }
5056 if ${ac_cv_devzero+:} false
; then :
5057 $as_echo_n "(cached) " >&6
5059 if test "$cross_compiling" = yes; then :
5062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5068 int fd = open ("/dev/zero", O_RDONLY);
5071 for (i = 0; i < sizeof (buf); i++)
5073 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
5075 for (i = 0; i < sizeof (buf); i++)
5081 if ac_fn_c_try_run
"$LINENO"; then :
5086 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5087 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
5093 $as_echo "$ac_cv_devzero" >&6; }
5094 if test $ac_cv_devzero = yes; then
5095 sim_devzero
="-DHAVE_DEVZERO"
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
5101 $as_echo_n "checking for common simulator directory... " >&6; }
5102 if test -f "${srcdir}/../common/callback.c"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5104 $as_echo "yes" >&6; }
5105 sim_callback
="callback.o targ-map.o"
5106 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
5115 $as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
5116 if test -f "${srcdir}/../common/sim-fpu.c"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5118 $as_echo "yes" >&6; }
5119 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5128 # Since we run commands on the build system, we have to create a
5129 # separate config header for the build system if build != host.
5130 if test x
$host = x
$build; then
5131 ac_config_commands
="$ac_config_commands build-config.h"
5139 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5140 *) realsrcdir
=..
/${srcdir};;
5142 saved_CFLAGS
="${CFLAGS}"
5143 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5144 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
5145 ${realsrcdir}/configure \
5146 --enable-languages=${enable_languages-all} \
5147 --target=$target_alias --host=$build_alias --build=$build_alias
5148 CFLAGS
="${saved_CFLAGS}"
5149 mv config.h ..
/build-config.h
5161 if test -n "$ac_tool_prefix"; then
5162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5163 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if ${ac_cv_prog_RANLIB+:} false
; then :
5167 $as_echo_n "(cached) " >&6
5169 if test -n "$RANLIB"; then
5170 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir
=.
5177 for ac_exec_ext
in '' $ac_executable_extensions; do
5178 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 RANLIB
=$ac_cv_prog_RANLIB
5190 if test -n "$RANLIB"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5192 $as_echo "$RANLIB" >&6; }
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5200 if test -z "$ac_cv_prog_RANLIB"; then
5201 ac_ct_RANLIB
=$RANLIB
5202 # Extract the first word of "ranlib", so it can be a program name with args.
5203 set dummy ranlib
; ac_word
=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5207 $as_echo_n "(cached) " >&6
5209 if test -n "$ac_ct_RANLIB"; then
5210 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5216 test -z "$as_dir" && as_dir
=.
5217 for ac_exec_ext
in '' $ac_executable_extensions; do
5218 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5219 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5230 if test -n "$ac_ct_RANLIB"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5232 $as_echo "$ac_ct_RANLIB" >&6; }
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5238 if test "x$ac_ct_RANLIB" = x
; then
5241 case $cross_compiling:$ac_tool_warned in
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245 ac_tool_warned
=yes ;;
5247 RANLIB
=$ac_ct_RANLIB
5250 RANLIB
="$ac_cv_prog_RANLIB"
5290 ac_config_files
="$ac_config_files Makefile"
5292 ac_config_commands
="$ac_config_commands default"
5294 cat >confcache
<<\_ACEOF
5295 # This file is a shell script that caches the results of configure
5296 # tests run on this system so they can be shared between configure
5297 # scripts and configure runs, see configure's option --config-cache.
5298 # It is not useful on other systems. If it contains results you don't
5299 # want to keep, you may remove or edit it.
5301 # config.status only pays attention to the cache file if you give it
5302 # the --recheck option to rerun configure.
5304 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5305 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5310 # The following way of writing the cache mishandles newlines in values,
5311 # but we know of no workaround that is simple, portable, and efficient.
5312 # So, we kill variables containing newlines.
5313 # Ultrix sh set writes to stderr and can't be redirected directly,
5314 # and sets the high bit in the cache file unless we assign to the vars.
5316 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5317 eval ac_val
=\$
$ac_var
5321 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5322 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5325 _ | IFS | as_nl
) ;; #(
5326 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5327 *) { eval $ac_var=; unset $ac_var;} ;;
5333 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5334 *${as_nl}ac_space
=\
*)
5335 # `set' does not quote correctly, so add quotes: double-quote
5336 # substitution turns \\\\ into \\, and sed turns \\ into \.
5339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5342 # `set' quotes correctly as required by POSIX, so do not add quotes.
5343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5352 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5354 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5356 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5357 if test -w "$cache_file"; then
5358 if test "x$cache_file" != "x/dev/null"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5360 $as_echo "$as_me: updating cache $cache_file" >&6;}
5361 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
5362 cat confcache
>"$cache_file"
5364 case $cache_file in #(
5366 mv -f confcache
"$cache_file"$$
&&
5367 mv -f "$cache_file"$$
"$cache_file" ;; #(
5369 mv -f confcache
"$cache_file" ;;
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5375 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5380 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5381 # Let make expand exec_prefix.
5382 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5384 DEFS
=-DHAVE_CONFIG_H
5389 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5390 # 1. Remove the extension, and $U if already installed.
5391 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5392 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
5393 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5394 # will be set to the directory where LIBOBJS objects are built.
5395 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5396 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
5400 LTLIBOBJS
=$ac_ltlibobjs
5405 : "${CONFIG_STATUS=./config.status}"
5407 ac_clean_files_save
=$ac_clean_files
5408 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5410 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5412 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5414 # Generated by $as_me.
5415 # Run this file to recreate the current configuration.
5416 # Compiler output produced by configure, useful for debugging
5417 # configure, is in config.log if it exists.
5423 SHELL=\${CONFIG_SHELL-$SHELL}
5426 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
5427 ## -------------------- ##
5428 ## M4sh Initialization. ##
5429 ## -------------------- ##
5431 # Be more Bourne compatible
5432 DUALCASE
=1; export DUALCASE
# for MKS sh
5433 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
5436 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5437 # is contrary to our usage. Disable this feature.
5438 alias -g '${1+"$@"}'='"$@"'
5439 setopt NO_GLOB_SUBST
5441 case `(set -o) 2>/dev/null` in #(
5453 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5454 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5455 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5456 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5457 # Prefer a ksh shell builtin over an external printf program on Solaris,
5458 # but without wasting forks for bash or zsh.
5459 if test -z "$BASH_VERSION$ZSH_VERSION" \
5460 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5461 as_echo='print
-r --'
5462 as_echo_n='print
-rn --'
5463 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5464 as_echo='printf %s
\n'
5465 as_echo_n='printf %s
'
5467 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5468 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
5469 as_echo_n='/usr
/ucb
/echo -n'
5471 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5472 as_echo_n_body='eval
5476 expr "X$arg" : "X\\(.*\\)$as_nl";
5477 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5479 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
5481 export as_echo_n_body
5482 as_echo_n='sh
-c $as_echo_n_body as_echo
'
5485 as_echo='sh
-c $as_echo_body as_echo
'
5488 # The user is always right.
5489 if test "${PATH_SEPARATOR+set}" != set; then
5491 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5492 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5499 # We need space, tab and new line, in precisely that order. Quoting is
5500 # there to prevent editors from complaining about space-tab.
5501 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5502 # splitting by setting IFS to empty value.)
5505 # Find who we are. Look in the path if we contain no directory separator.
5508 *[\\/]* ) as_myself=$0 ;;
5509 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 test -z "$as_dir" && as_dir=.
5514 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5520 # We did not find ourselves, most probably we were run as `sh COMMAND'
5521 # in which case we are not to be found in the path.
5522 if test "x$as_myself" = x
; then
5525 if test ! -f "$as_myself"; then
5526 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5530 # Unset variables that we do not need and which cause bugs (e.g. in
5531 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5532 # suppresses any "Segmentation fault" message there. '((' could
5533 # trigger a bug in pdksh 5.2.14.
5534 for as_var
in BASH_ENV ENV MAIL MAILPATH
5535 do eval test x\
${$as_var+set} = xset \
5536 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5549 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5552 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5553 # ----------------------------------------
5554 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5555 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5556 # script with STATUS, using 1 if that was 0.
5559 as_status
=$1; test $as_status -eq 0 && as_status
=1
5561 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5562 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5564 $as_echo "$as_me: error: $2" >&2
5565 as_fn_exit
$as_status
5569 # as_fn_set_status STATUS
5570 # -----------------------
5571 # Set $? to STATUS, without forking.
5575 } # as_fn_set_status
5579 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5589 # Portably unset VAR.
5592 { eval $1=; unset $1;}
5594 as_unset
=as_fn_unset
5595 # as_fn_append VAR VALUE
5596 # ----------------------
5597 # Append the text in VALUE to the end of the definition contained in VAR. Take
5598 # advantage of any shell optimizations that allow amortized linear growth over
5599 # repeated appends, instead of the typical quadratic growth present in naive
5601 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5602 eval 'as_fn_append ()
5613 # as_fn_arith ARG...
5614 # ------------------
5615 # Perform arithmetic evaluation on the ARGs, and store the result in the
5616 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5617 # must be portable across $(()) and expr.
5618 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5619 eval 'as_fn_arith ()
5626 as_val
=`expr "$@" || test $? -eq 1`
5631 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5632 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
5638 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5639 as_basename
=basename
5644 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
5650 as_me
=`$as_basename -- "$0" ||
5651 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5652 X"$0" : 'X\(//\)$' \| \
5653 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5655 sed '/^.*\/\([^/][^/]*\)\/*$/{
5669 # Avoid depending upon Character Ranges.
5670 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5671 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5672 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5673 as_cr_digits
='0123456789'
5674 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5676 ECHO_C
= ECHO_N
= ECHO_T
=
5677 case `echo -n x` in #(((((
5679 case `echo 'xy\c'` in
5680 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
5682 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
5689 rm -f conf$$ conf$$.exe conf$$.
file
5690 if test -d conf$$.dir
; then
5691 rm -f conf$$.dir
/conf$$.
file
5694 mkdir conf$$.dir
2>/dev
/null
5696 if (echo >conf$$.
file) 2>/dev
/null
; then
5697 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5699 # ... but there are two gotchas:
5700 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5701 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5702 # In both cases, we have to default to `cp -pR'.
5703 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
5705 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5713 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
5714 rmdir conf$$.dir
2>/dev
/null
5719 # Create "$as_dir" as a directory, including parents if necessary.
5724 -*) as_dir
=.
/$as_dir;;
5726 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
5730 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5731 *) as_qdir
=$as_dir;;
5733 as_dirs
="'$as_qdir' $as_dirs"
5734 as_dir
=`$as_dirname -- "$as_dir" ||
5735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5736 X"$as_dir" : 'X\(//\)[^/]' \| \
5737 X"$as_dir" : 'X\(//\)$' \| \
5738 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5739 $as_echo X"$as_dir" |
5740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5757 test -d "$as_dir" && break
5759 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
5760 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
5764 if mkdir
-p .
2>/dev
/null
; then
5765 as_mkdir_p
='mkdir -p "$as_dir"'
5767 test -d .
/-p && rmdir .
/-p
5772 # as_fn_executable_p FILE
5773 # -----------------------
5774 # Test if FILE is an executable regular file.
5775 as_fn_executable_p
()
5777 test -f "$1" && test -x "$1"
5778 } # as_fn_executable_p
5780 as_executable_p
=as_fn_executable_p
5782 # Sed expression to map a string onto a valid CPP name.
5783 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5785 # Sed expression to map a string onto a valid variable name.
5786 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5790 ## ----------------------------------- ##
5791 ## Main body of $CONFIG_STATUS script. ##
5792 ## ----------------------------------- ##
5794 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
5796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5797 # Save the log message, to keep $0 and so on meaningful, and to
5798 # report actual input values of CONFIG_FILES etc. instead of their
5799 # values after options handling.
5801 This file was extended by $as_me, which was
5802 generated by GNU Autoconf 2.69. Invocation command line was
5804 CONFIG_FILES = $CONFIG_FILES
5805 CONFIG_HEADERS = $CONFIG_HEADERS
5806 CONFIG_LINKS = $CONFIG_LINKS
5807 CONFIG_COMMANDS = $CONFIG_COMMANDS
5810 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5815 case $ac_config_files in *"
5816 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
5819 case $ac_config_headers in *"
5820 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
5824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5825 # Files that config.status was made for.
5826 config_files="$ac_config_files"
5827 config_headers="$ac_config_headers"
5828 config_commands="$ac_config_commands"
5832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5834 \`$as_me' instantiates files and other configuration actions
5835 from templates according to the current configuration. Unless the files
5836 and actions are specified as TAGs, all are instantiated by default.
5838 Usage: $0 [OPTION]... [TAG]...
5840 -h, --help print this help, then exit
5841 -V, --version print version number and configuration settings, then exit
5842 --config print configuration, then exit
5843 -q, --quiet, --silent
5844 do not print progress messages
5845 -d, --debug don't remove temporary files
5846 --recheck update $as_me by reconfiguring in the same conditions
5847 --file=FILE[:TEMPLATE]
5848 instantiate the configuration file FILE
5849 --header=FILE[:TEMPLATE]
5850 instantiate the configuration header FILE
5852 Configuration files:
5855 Configuration headers:
5858 Configuration commands:
5861 Report bugs to the package provider."
5864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5865 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5868 configured by $0, generated by GNU Autoconf 2.69,
5869 with options \\"\$ac_cs_config\\"
5871 Copyright (C) 2012 Free Software Foundation, Inc.
5872 This config.status script is free software; the Free Software Foundation
5873 gives unlimited permission to copy, distribute and modify it."
5878 test -n "\$AWK" || AWK=awk
5881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5882 # The default lists apply if the user does not specify any file.
5888 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5889 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5893 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5905 # Handling of the options.
5906 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5908 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5909 $as_echo "$ac_cs_version"; exit ;;
5910 --config |
--confi |
--conf |
--con |
--co |
--c )
5911 $as_echo "$ac_cs_config"; exit ;;
5912 --debug |
--debu |
--deb |
--de |
--d |
-d )
5914 --file |
--fil |
--fi |
--f )
5917 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5918 '') as_fn_error $?
"missing file argument" ;;
5920 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5921 ac_need_defaults
=false
;;
5922 --header |
--heade |
--head |
--hea )
5925 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5927 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5928 ac_need_defaults
=false
;;
5930 # Conflict between --help and --header
5931 as_fn_error $?
"ambiguous option: \`$1'
5932 Try \`$0 --help' for more information.";;
5933 --help |
--hel |
-h )
5934 $as_echo "$ac_cs_usage"; exit ;;
5935 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5936 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5940 -*) as_fn_error $?
"unrecognized option: \`$1'
5941 Try \`$0 --help' for more information." ;;
5943 *) as_fn_append ac_config_targets
" $1"
5944 ac_need_defaults
=false
;;
5950 ac_configure_extra_args
=
5952 if $ac_cs_silent; then
5954 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5959 if \$ac_cs_recheck; then
5960 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5962 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5963 CONFIG_SHELL='$SHELL'
5969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5973 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5974 ## Running $as_me. ##
5980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5985 # Handling of arguments.
5986 for ac_config_target
in $ac_config_targets
5988 case $ac_config_target in
5989 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
5990 "build-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS build-config.h" ;;
5991 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5992 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
5994 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5999 # If the user did not use the arguments to specify the items to instantiate,
6000 # then the envvar interface is used. Set only those that are not.
6001 # We use the long form for the default assignment because of an extremely
6002 # bizarre bug on SunOS 4.1.3.
6003 if $ac_need_defaults; then
6004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6009 # Have a temporary directory for convenience. Make it in the build tree
6010 # simply because there is no reason against having it here, and in addition,
6011 # creating and moving files from /tmp can sometimes cause problems.
6012 # Hook for its removal unless debugging.
6013 # Note that there is a small window in which the directory will not be cleaned:
6014 # after its creation but before its name has been assigned to `$tmp'.
6018 trap 'exit_status=$?
6020 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6022 trap 'as_fn_exit 1' 1 2 13 15
6024 # Create a (secure) tmp directory for tmp files.
6027 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6031 tmp
=.
/conf$$
-$RANDOM
6032 (umask 077 && mkdir
"$tmp")
6033 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
6036 # Set up the scripts for CONFIG_FILES section.
6037 # No need to generate them if there are no CONFIG_FILES.
6038 # This happens for instance with `./config.status config.h'.
6039 if test -n "$CONFIG_FILES"; then
6042 ac_cr
=`echo X | tr X '\015'`
6043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6044 # But we know of no other shell where ac_cr would be empty at this
6045 # point, so we can use a bashism as a fallback.
6046 if test "x$ac_cr" = x
; then
6047 eval ac_cr
=\$
\'\\r
\'
6049 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6056 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6061 echo "cat >conf$$subs.awk <<_ACEOF" &&
6062 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6065 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6068 for ac_last_try in false false false false false :; do
6069 . ./conf$$subs.sh ||
6070 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6072 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6073 if test $ac_delim_n = $ac_delim_num; then
6075 elif $ac_last_try; then
6076 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6078 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6084 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
6088 s/^/S["/; s
/!.
*/"]=/
6098 s/\(.\{148\}\)..*/\1/
6100 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6105 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6112 s/\(.\{148\}\)..*/\1/
6114 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6118 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6123 ' <conf$$subs.awk | sed '
6128 ' >>$CONFIG_STATUS || ac_write_fail=1
6129 rm -f conf$$subs.awk
6130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6132 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
6133 for (key in S) S_is_set[key] = 1
6139 nfields = split(line, field, "@
")
6141 len = length(field[1])
6142 for (i = 2; i < nfields; i++) {
6144 keylen = length(key)
6145 if (S_is_set[key]) {
6147 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6148 len += length(value) + length(field[++i])
6159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6160 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6161 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6164 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
6165 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
6168 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6169 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
6170 # trailing colons and then remove the whole line if VPATH becomes empty
6171 # (actually we leave an empty line to preserve line numbers).
6172 if test "x
$srcdir" = x.; then
6173 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6192 fi # test -n "$CONFIG_FILES"
6194 # Set up the scripts for CONFIG_HEADERS section.
6195 # No need to generate them if there are no CONFIG_HEADERS.
6196 # This happens for instance with `./config.status Makefile'.
6197 if test -n "$CONFIG_HEADERS"; then
6198 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
6202 # Transform confdefs.h into an awk script `defines.awk', embedded as
6203 # here-document in config.status, that substitutes the proper values into
6204 # config.h.in to produce config.h.
6206 # Create a delimiter string that does not exist in confdefs.h, to ease
6207 # handling of long lines.
6209 for ac_last_try in false false :; do
6210 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
6211 if test -z "$ac_tt"; then
6213 elif $ac_last_try; then
6214 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
6216 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6220 # For the awk script, D is an array of macro values keyed by name,
6221 # likewise P contains macro parameters if any. Preserve backslash
6222 # newline sequences.
6224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6226 s/.\{148\}/&'"$ac_delim"'/g
6229 s/^[ ]*#[ ]*define[ ][ ]*/ /
6236 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6238 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6243 D["\
1"]=" \
3\\\\\\n
"\\/p
6245 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6250 s/.\{148\}/&'"$ac_delim"'/g
6255 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6258 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6260 ' <confdefs.h | sed '
6261 s/'"$ac_delim"'/"\\\
6262 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6265 for (key in D) D_is_set[key] = 1
6268 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6270 split(line, arg, " ")
6271 if (arg[1] == "#") {
6275 defundef
= substr
(arg
[1], 2)
6278 split(mac1
, mac2
, "(") #)
6280 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6281 if (D_is_set
[macro
]) {
6282 # Preserve the white space surrounding the "#".
6283 print prefix
"define", macro P
[macro
] D
[macro
]
6286 # Replace #undef with comments. This is necessary, for example,
6287 # in the case of _POSIX_SOURCE, which is predefined and required
6288 # on some systems where configure will not decide to define it.
6289 if (defundef
== "undef") {
6290 print
"/*", prefix defundef
, macro
, "*/"
6298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6299 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
6300 fi # test -n "$CONFIG_HEADERS"
6303 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6308 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6310 case $ac_mode$ac_tag in
6312 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6313 :[FH
]-) ac_tag
=-:-;;
6314 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6331 -) ac_f
="$ac_tmp/stdin";;
6332 *) # Look for the file first in the build tree, then in the source tree
6333 # (if the path is not absolute). The absolute path cannot be DOS-style,
6334 # because $ac_f cannot contain `:'.
6338 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6340 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6342 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6343 as_fn_append ac_file_inputs
" '$ac_f'"
6346 # Let's still pretend it is `configure' which instantiates (i.e., don't
6347 # use $as_me), people would be surprised to read:
6348 # /* config.h. Generated by config.status. */
6349 configure_input
='Generated from '`
6350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6352 if test x
"$ac_file" != x-
; then
6353 configure_input
="$ac_file. $configure_input"
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6355 $as_echo "$as_me: creating $ac_file" >&6;}
6357 # Neutralize special characters interpreted by sed in replacement strings.
6358 case $configure_input in #(
6359 *\
&* |
*\|
* |
*\\* )
6360 ac_sed_conf_input
=`$as_echo "$configure_input" |
6361 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6362 *) ac_sed_conf_input
=$configure_input;;
6366 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
6367 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
6372 ac_dir
=`$as_dirname -- "$ac_file" ||
6373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6374 X"$ac_file" : 'X\(//\)[^/]' \| \
6375 X"$ac_file" : 'X\(//\)$' \| \
6376 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6377 $as_echo X"$ac_file" |
6378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6395 as_dir
="$ac_dir"; as_fn_mkdir_p
6399 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6401 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6402 # A ".." for each directory in $ac_dir_suffix.
6403 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6404 case $ac_top_builddir_sub in
6405 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6406 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6409 ac_abs_top_builddir
=$ac_pwd
6410 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6411 # for backward compatibility:
6412 ac_top_builddir
=$ac_top_build_prefix
6415 .
) # We are building in place.
6417 ac_top_srcdir
=$ac_top_builddir_sub
6418 ac_abs_top_srcdir
=$ac_pwd ;;
6419 [\\/]* | ?
:[\\/]* ) # Absolute name.
6420 ac_srcdir
=$srcdir$ac_dir_suffix;
6421 ac_top_srcdir
=$srcdir
6422 ac_abs_top_srcdir
=$srcdir ;;
6424 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6425 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6426 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6428 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6438 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6439 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
6443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6444 # If the template does not know about datarootdir, expand it.
6445 # FIXME: This hack should be removed a few years after 2.60.
6446 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6457 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6458 *datarootdir
*) ac_datarootdir_seen
=yes;;
6459 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6461 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6464 ac_datarootdir_hack='
6465 s&@datadir@&$datadir&g
6466 s&@docdir@&$docdir&g
6467 s&@infodir@&$infodir&g
6468 s&@localedir@&$localedir&g
6469 s&@mandir@&$mandir&g
6470 s&\\\${datarootdir}&$datarootdir&g' ;;
6474 # Neutralize VPATH when `$srcdir' = `.'.
6475 # Shell code in configure.ac might set extrasub.
6476 # FIXME: do we really want to maintain this feature?
6477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6478 ac_sed_extra="$ac_vpsub
6481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6483 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6484 s|@configure_input@|
$ac_sed_conf_input|
;t t
6485 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6486 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6487 s
&@srcdir@
&$ac_srcdir&;t t
6488 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6489 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6490 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6491 s
&@builddir@
&$ac_builddir&;t t
6492 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6493 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6494 s
&@INSTALL@
&$ac_INSTALL&;t t
6495 $ac_datarootdir_hack
6497 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6498 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6500 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6501 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6502 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6503 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6505 which seems to be undefined. Please make sure it is defined" >&5
6506 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6507 which seems to be undefined. Please make sure it is defined" >&2;}
6509 rm -f "$ac_tmp/stdin"
6511 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6512 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6520 if test x"$ac_file" != x-; then
6522 $as_echo "/* $configure_input */" \
6523 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6524 } >"$ac_tmp/config.h" \
6525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6526 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6528 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6531 mv "$ac_tmp/config.h" "$ac_file" \
6532 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6535 $as_echo "/* $configure_input */" \
6536 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6537 || as_fn_error $? "could not create -" "$LINENO" 5
6541 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6542 $as_echo "$as_me: executing $ac_file commands" >&6;}
6547 case $ac_file$ac_mode in
6548 "build-config.h":C) cp config.h build-config.h ;;
6549 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
6557 ac_clean_files=$ac_clean_files_save
6559 test $ac_write_fail = 0 ||
6560 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6563 # configure is writing to config.log, and then calls config.status.
6564 # config.status does its own redirection, appending to config.log.
6565 # Unfortunately, on DOS this fails, as config.log is still kept open
6566 # by configure, so config.status won't be able to
write to it
; its
6567 # output is simply discarded. So we exec the FD to /dev/null,
6568 # effectively closing config.log, so it can be properly (re)opened and
6569 # appended to by config.status. When coming back to configure, we
6570 # need to make the FD available again.
6571 if test "$no_create" != yes; then
6573 ac_config_status_args
=
6574 test "$silent" = yes &&
6575 ac_config_status_args
="$ac_config_status_args --quiet"
6577 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6579 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6580 # would make configure fail if this is the last instruction.
6581 $ac_cs_success || as_fn_exit
1
6583 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6585 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}