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
698 program_transform_name
711 enable_option_checking
713 enable_sim_decode_mechanism
714 enable_sim_default_model
723 enable_sim_model_issue
729 enable_sim_xor_endian
731 ac_precious_vars
='build_alias
742 # Initialize some variables set by options.
744 ac_init_version
=false
745 ac_unrecognized_opts
=
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
756 program_transform_name
=s
,x
,x
,
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir
='${exec_prefix}/bin'
771 sbindir
='${exec_prefix}/sbin'
772 libexecdir
='${exec_prefix}/libexec'
773 datarootdir
='${prefix}/share'
774 datadir
='${datarootdir}'
775 sysconfdir
='${prefix}/etc'
776 sharedstatedir
='${prefix}/com'
777 localstatedir
='${prefix}/var'
778 includedir
='${prefix}/include'
779 oldincludedir
='/usr/include'
780 docdir
='${datarootdir}/doc/${PACKAGE}'
781 infodir
='${datarootdir}/info'
786 libdir
='${exec_prefix}/lib'
787 localedir
='${datarootdir}/locale'
788 mandir
='${datarootdir}/man'
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\
$ac_option
802 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
813 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
815 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
818 -build |
--build |
--buil |
--bui |
--bu)
819 ac_prev
=build_alias
;;
820 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
821 build_alias
=$ac_optarg ;;
823 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
824 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
825 ac_prev
=cache_file
;;
826 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
827 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
828 cache_file
=$ac_optarg ;;
831 cache_file
=config.cache
;;
833 -datadir |
--datadir |
--datadi |
--datad)
835 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
836 datadir
=$ac_optarg ;;
838 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
839 |
--dataroo |
--dataro |
--datar)
840 ac_prev
=datarootdir
;;
841 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
842 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
843 datarootdir
=$ac_optarg ;;
845 -disable-* |
--disable-*)
846 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
849 as_fn_error $?
"invalid feature name: $ac_useropt"
850 ac_useropt_orig
=$ac_useropt
851 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852 case $ac_user_opts in
856 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
857 ac_unrecognized_sep
=', ';;
859 eval enable_
$ac_useropt=no
;;
861 -docdir |
--docdir |
--docdi |
--doc |
--do)
863 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
866 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
868 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
871 -enable-* |
--enable-*)
872 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
875 as_fn_error $?
"invalid feature name: $ac_useropt"
876 ac_useropt_orig
=$ac_useropt
877 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
882 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
883 ac_unrecognized_sep
=', ';;
885 eval enable_
$ac_useropt=\
$ac_optarg ;;
887 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
888 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
889 |
--exec |
--exe |
--ex)
890 ac_prev
=exec_prefix
;;
891 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
892 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
893 |
--exec=* |
--exe=* |
--ex=*)
894 exec_prefix
=$ac_optarg ;;
896 -gas |
--gas |
--ga |
--g)
897 # Obsolete; use --with-gas.
900 -help |
--help |
--hel |
--he |
-h)
902 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
903 ac_init_help
=recursive
;;
904 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
905 ac_init_help
=short
;;
907 -host |
--host |
--hos |
--ho)
908 ac_prev
=host_alias
;;
909 -host=* |
--host=* |
--hos=* |
--ho=*)
910 host_alias
=$ac_optarg ;;
912 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
914 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
916 htmldir
=$ac_optarg ;;
918 -includedir |
--includedir |
--includedi |
--included |
--include \
919 |
--includ |
--inclu |
--incl |
--inc)
920 ac_prev
=includedir
;;
921 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
922 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
923 includedir
=$ac_optarg ;;
925 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
927 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
928 infodir
=$ac_optarg ;;
930 -libdir |
--libdir |
--libdi |
--libd)
932 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
935 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
936 |
--libexe |
--libex |
--libe)
937 ac_prev
=libexecdir
;;
938 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
939 |
--libexe=* |
--libex=* |
--libe=*)
940 libexecdir
=$ac_optarg ;;
942 -localedir |
--localedir |
--localedi |
--localed |
--locale)
944 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
945 localedir
=$ac_optarg ;;
947 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
948 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
949 ac_prev
=localstatedir
;;
950 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
951 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
952 localstatedir
=$ac_optarg ;;
954 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
956 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
960 # Obsolete; use --without-fp.
963 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
964 |
--no-cr |
--no-c |
-n)
967 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
968 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
971 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
972 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
973 |
--oldin |
--oldi |
--old |
--ol |
--o)
974 ac_prev
=oldincludedir
;;
975 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
976 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
977 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
978 oldincludedir
=$ac_optarg ;;
980 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
982 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
985 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
986 |
--program-pre |
--program-pr |
--program-p)
987 ac_prev
=program_prefix
;;
988 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
989 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
990 program_prefix
=$ac_optarg ;;
992 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
993 |
--program-suf |
--program-su |
--program-s)
994 ac_prev
=program_suffix
;;
995 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
996 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
997 program_suffix
=$ac_optarg ;;
999 -program-transform-name |
--program-transform-name \
1000 |
--program-transform-nam |
--program-transform-na \
1001 |
--program-transform-n |
--program-transform- \
1002 |
--program-transform |
--program-transfor \
1003 |
--program-transfo |
--program-transf \
1004 |
--program-trans |
--program-tran \
1005 |
--progr-tra |
--program-tr |
--program-t)
1006 ac_prev
=program_transform_name
;;
1007 -program-transform-name=* |
--program-transform-name=* \
1008 |
--program-transform-nam=* |
--program-transform-na=* \
1009 |
--program-transform-n=* |
--program-transform-=* \
1010 |
--program-transform=* |
--program-transfor=* \
1011 |
--program-transfo=* |
--program-transf=* \
1012 |
--program-trans=* |
--program-tran=* \
1013 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1014 program_transform_name
=$ac_optarg ;;
1016 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1018 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1019 pdfdir
=$ac_optarg ;;
1021 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1023 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1026 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1027 |
-silent |
--silent |
--silen |
--sile |
--sil)
1030 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1032 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1034 sbindir
=$ac_optarg ;;
1036 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1037 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1038 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1040 ac_prev
=sharedstatedir
;;
1041 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1042 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1043 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1045 sharedstatedir
=$ac_optarg ;;
1047 -site |
--site |
--sit)
1049 -site=* |
--site=* |
--sit=*)
1052 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1054 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1055 srcdir
=$ac_optarg ;;
1057 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1058 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1059 ac_prev
=sysconfdir
;;
1060 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1061 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1062 sysconfdir
=$ac_optarg ;;
1064 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1065 ac_prev
=target_alias
;;
1066 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1067 target_alias
=$ac_optarg ;;
1069 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1072 -version |
--version |
--versio |
--versi |
--vers |
-V)
1073 ac_init_version
=: ;;
1076 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1079 as_fn_error $?
"invalid package name: $ac_useropt"
1080 ac_useropt_orig
=$ac_useropt
1081 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1086 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1087 ac_unrecognized_sep
=', ';;
1089 eval with_
$ac_useropt=\
$ac_optarg ;;
1091 -without-* |
--without-*)
1092 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1095 as_fn_error $?
"invalid package name: $ac_useropt"
1096 ac_useropt_orig
=$ac_useropt
1097 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1102 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103 ac_unrecognized_sep
=', ';;
1105 eval with_
$ac_useropt=no
;;
1108 # Obsolete; use --with-x.
1111 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1112 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1113 ac_prev
=x_includes
;;
1114 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1115 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1116 x_includes
=$ac_optarg ;;
1118 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1119 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1120 ac_prev
=x_libraries
;;
1121 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1122 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1123 x_libraries
=$ac_optarg ;;
1125 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1126 Try \`$0 --help' for more information"
1130 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1131 # Reject names that are not valid shell variable names.
1132 case $ac_envvar in #(
1133 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1134 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1136 eval $ac_envvar=\
$ac_optarg
1137 export $ac_envvar ;;
1140 # FIXME: should be removed in autoconf 3.0.
1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1150 if test -n "$ac_prev"; then
1151 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1152 as_fn_error $?
"missing argument to $ac_option"
1155 if test -n "$ac_unrecognized_opts"; then
1156 case $enable_option_checking in
1158 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163 # Check all directory arguments for consistency.
1164 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val
=\$
$ac_var
1170 # Remove trailing slashes.
1173 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174 eval $ac_var=\
$ac_val;;
1176 # Be sure to have absolute directory names.
1178 [\\/$
]* | ?
:[\\/]* ) continue;;
1179 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1181 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1184 # There might be people who depend on the old broken behavior: `$host'
1185 # used to hold the argument of --host etc.
1186 # FIXME: To remove some day.
1189 target
=$target_alias
1191 # FIXME: To remove some day.
1192 if test "x$host_alias" != x
; then
1193 if test "x$build_alias" = x
; then
1194 cross_compiling
=maybe
1195 elif test "x$build_alias" != "x$host_alias"; then
1201 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1203 test "$silent" = yes && exec 6>/dev
/null
1206 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1207 ac_ls_di
=`ls -di .` &&
1208 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1209 as_fn_error $?
"working directory cannot be determined"
1210 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211 as_fn_error $?
"pwd does not report name of working directory"
1214 # Find the source files, if location was not specified.
1215 if test -z "$srcdir"; then
1216 ac_srcdir_defaulted
=yes
1217 # Try the directory containing this script, then the parent directory.
1218 ac_confdir
=`$as_dirname -- "$as_myself" ||
1219 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1220 X"$as_myself" : 'X\(//\)[^/]' \| \
1221 X"$as_myself" : 'X\(//\)$' \| \
1222 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1223 $as_echo X"$as_myself" |
1224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242 if test ! -r "$srcdir/$ac_unique_file"; then
1246 ac_srcdir_defaulted
=no
1248 if test ! -r "$srcdir/$ac_unique_file"; then
1249 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1250 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1252 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1254 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1264 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 for ac_var
in $ac_precious_vars; do
1267 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1269 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1280 \`configure' configures this package to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking ...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1338 --build=BUILD configure
for building on BUILD
[guessed
]
1339 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1340 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1344 if test -n "$ac_init_help"; then
1349 --disable-option-checking ignore unrecognized
--enable/--with options
1350 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1351 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1352 --enable-sim-bitsize=n Specify target bitsize
(32 or
64).
1353 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1354 --enable-sim-default-model=which Specify default PowerPC to model.
1355 --enable-sim-duplicate Expand
(duplicate
) semantic functions.
1356 --enable-sim-filter=rule Specify filter rules.
1357 --enable-sim-float Specify whether the target has hard
, soft
, altivec or e500 floating point.
1358 --enable-sim-hardware=list Specify the hardware to be included
in the build.
1359 --enable-sim-icache=size Specify instruction-decode cache size and
type.
1360 --enable-sim-jump Jump between semantic code
(instead of
call
/return).
1361 --enable-sim-line-nr=opts Generate extra CPP code that references
source rather than generated code
1362 --enable-sim-model=which Specify PowerPC to model.
1363 --enable-sim-model-issue Specify whether to simulate model specific actions
1364 --enable-sim-monitor=mon Specify whether to
enable monitoring events.
1365 --enable-sim-opcode=which Override default opcode lookup.
1366 --enable-sim-smp=n Specify number of processors to configure
for.
1367 --enable-sim-switch Use a switch instead of a table
for instruction call.
1368 --enable-sim-timebase Specify whether the PPC timebase is supported.
1369 --enable-sim-xor-endian=n Specify number bytes involved
in PowerPC XOR bi-endian mode
(default
8).
1371 Some influential environment variables
:
1372 CC C compiler
command
1373 CFLAGS C compiler flags
1374 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1375 nonstandard directory
<lib dir
>
1376 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1377 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1378 you have headers
in a nonstandard directory
<include dir
>
1381 Use these variables to override the choices made by
`configure' or to help
1382 it to find libraries and programs with nonstandard names/locations.
1384 Report bugs to the package provider.
1389 if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392 test -d "$ac_dir" ||
1393 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1401 # A ".." for each directory in $ac_dir_suffix.
1402 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1403 case $ac_top_builddir_sub in
1404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1408 ac_abs_top_builddir=$ac_pwd
1409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1410 # for backward compatibility:
1411 ac_top_builddir=$ac_top_build_prefix
1414 .) # We are building in place.
1416 ac_top_srcdir=$ac_top_builddir_sub
1417 ac_abs_top_srcdir=$ac_pwd ;;
1418 [\\/]* | ?:[\\/]* ) # Absolute name.
1419 ac_srcdir=$srcdir$ac_dir_suffix;
1420 ac_top_srcdir=$srcdir
1421 ac_abs_top_srcdir=$srcdir ;;
1423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424 ac_top_srcdir=$ac_top_build_prefix$srcdir
1425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429 cd "$ac_dir" || { ac_status=$?; continue; }
1430 # Check for guested configure.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1436 $SHELL "$ac_srcdir/configure" --help=recursive
1438 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1440 cd "$ac_pwd" || { ac_status=$?; break; }
1444 test -n "$ac_init_help" && exit $ac_status
1445 if $ac_init_version; then
1448 generated by GNU Autoconf 2.69
1450 Copyright (C) 2012 Free Software Foundation, Inc.
1451 This configure script is free software; the Free Software Foundation
1452 gives unlimited permission to copy, distribute and modify it.
1457 ## ------------------------ ##
1458 ## Autoconf initialization. ##
1459 ## ------------------------ ##
1461 # ac_fn_c_try_compile LINENO
1462 # --------------------------
1463 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1464 ac_fn_c_try_compile ()
1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467 rm -f conftest.$ac_objext
1468 if { { ac_try="$ac_compile"
1470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1471 *) ac_try_echo
=$ac_try;;
1473 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1474 $as_echo "$ac_try_echo"; } >&5
1475 (eval "$ac_compile") 2>conftest.err
1477 if test -s conftest.err
; then
1478 grep -v '^ *+' conftest.err
>conftest.er1
1479 cat conftest.er1
>&5
1480 mv -f conftest.er1 conftest.err
1482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1483 test $ac_status = 0; } && {
1484 test -z "$ac_c_werror_flag" ||
1485 test ! -s conftest.err
1486 } && test -s conftest.
$ac_objext; then :
1489 $as_echo "$as_me: failed program was:" >&5
1490 sed 's/^/| /' conftest.
$ac_ext >&5
1494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1495 as_fn_set_status
$ac_retval
1497 } # ac_fn_c_try_compile
1499 # ac_fn_c_try_run LINENO
1500 # ----------------------
1501 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1502 # that executables *can* be run.
1505 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1506 if { { ac_try
="$ac_link"
1508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_link") 2>&5
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1517 { { case "(($ac_try" in
1518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1519 *) ac_try_echo
=$ac_try;;
1521 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_try") 2>&5
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; }; }; then :
1529 $as_echo "$as_me: program exited with status $ac_status" >&5
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.
$ac_ext >&5
1533 ac_retval
=$ac_status
1535 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537 as_fn_set_status
$ac_retval
1541 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1542 # -------------------------------------------
1543 # Tests whether TYPE exists after having included INCLUDES, setting cache
1544 # variable VAR accordingly.
1545 ac_fn_c_check_type
()
1547 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1549 $as_echo_n "checking for $2... " >&6; }
1550 if eval \
${$3+:} false
; then :
1551 $as_echo_n "(cached) " >&6
1554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1555 /* end confdefs.h. */
1566 if ac_fn_c_try_compile
"$LINENO"; then :
1567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1568 /* end confdefs.h. */
1579 if ac_fn_c_try_compile
"$LINENO"; then :
1584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 $as_echo "$ac_res" >&6; }
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 } # ac_fn_c_check_type
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1601 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } > conftest.i && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1632 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists and can be compiled using the include files in
1635 # INCLUDES, setting the cache variable VAR accordingly.
1636 ac_fn_c_check_header_compile ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if eval \${$3+:} false; then :
1642 $as_echo_n "(cached) " >&6
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1649 if ac_fn_c_try_compile "$LINENO"; then :
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 } # ac_fn_c_check_header_compile
1662 cat >config.log <<_ACEOF
1663 This file contains any messages produced by compilers while
1664 running configure, to aid debugging if configure makes a mistake.
1666 It was created by $as_me, which was
1667 generated by GNU Autoconf 2.69. Invocation command line was
1679 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1680 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1681 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1682 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1683 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1685 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1686 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1688 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1689 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1690 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1691 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1692 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1693 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1694 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 $as_echo "PATH: $as_dir"
1719 # Keep a trace of the command line.
1720 # Strip out --no-create and --no-recursion so they do not pile up.
1721 # Strip out --silent because we don't want to record it for future runs.
1722 # Also quote any args containing shell meta-characters.
1723 # Make two passes to allow for proper duplicate-argument suppression.
1727 ac_must_keep_next=false
1733 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1735 | -silent | --silent | --silen | --sile | --sil)
1738 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1741 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1743 as_fn_append ac_configure_args1 " '$ac_arg'"
1744 if test $ac_must_keep_next = true; then
1745 ac_must_keep_next=false # Got value, back to normal.
1748 *=* | --config-cache | -C | -disable-* | --disable-* \
1749 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1750 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1751 | -with-* | --with-* | -without-* | --without-* | --x)
1752 case "$ac_configure_args0 " in
1753 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1756 -* ) ac_must_keep_next=true ;;
1759 as_fn_append ac_configure_args " '$ac_arg'"
1764 { ac_configure_args0=; unset ac_configure_args0;}
1765 { ac_configure_args1=; unset ac_configure_args1;}
1767 # When interrupted or exit'd, cleanup temporary files, and complete
1768 # config.log. We remove comments because anyway the quotes in there
1769 # would cause problems or look ugly.
1770 # WARNING: Use '\'' to represent an apostrophe within the trap.
1771 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1772 trap 'exit_status=$?
1773 # Save into config.log some information that might help in debugging.
1777 $as_echo "## ---------------- ##
1778 ## Cache variables. ##
1779 ## ---------------- ##"
1781 # The following way of writing the cache mishandles newlines in values,
1783 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1784 eval ac_val=\$$ac_var
1788 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1789 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1792 _ | IFS | as_nl) ;; #(
1793 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1794 *) { eval $ac_var=; unset $ac_var;} ;;
1799 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1800 *${as_nl}ac_space=\ *)
1802 "s/'\''/'\''\\\\'\'''\''/g;
1803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1813 $as_echo "## ----------------- ##
1814 ## Output variables. ##
1815 ## ----------------- ##"
1817 for ac_var in $ac_subst_vars
1819 eval ac_val=\$$ac_var
1821 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823 $as_echo "$ac_var='\''$ac_val'\''"
1827 if test -n "$ac_subst_files"; then
1828 $as_echo "## ------------------- ##
1829 ## File substitutions. ##
1830 ## ------------------- ##"
1832 for ac_var in $ac_subst_files
1834 eval ac_val=\$$ac_var
1836 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 $as_echo "$ac_var='\''$ac_val'\''"
1843 if test -s confdefs.h; then
1844 $as_echo "## ----------- ##
1851 test "$ac_signal" != 0 &&
1852 $as_echo "$as_me: caught signal $ac_signal"
1853 $as_echo "$as_me: exit $exit_status"
1855 rm -f core *.core core.conftest.* &&
1856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1859 for ac_signal in 1 2 13 15; do
1860 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1865 rm -f -r conftest* confdefs.h
1867 $as_echo "/* confdefs.h */" > confdefs.h
1869 # Predefined preprocessor variables.
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_NAME "$PACKAGE_NAME"
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_STRING "$PACKAGE_STRING"
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_URL "$PACKAGE_URL"
1896 # Let the site file select an alternate cache file if it wants to.
1897 # Prefer an explicitly selected file to automatically selected ones.
1900 if test -n "$CONFIG_SITE"; then
1901 # We do not want a PATH search for config.site.
1902 case $CONFIG_SITE in #((
1903 -*) ac_site_file1=./$CONFIG_SITE;;
1904 */*) ac_site_file1=$CONFIG_SITE;;
1905 *) ac_site_file1=./$CONFIG_SITE;;
1907 elif test "x$prefix" != xNONE; then
1908 ac_site_file1=$prefix/share/config.site
1909 ac_site_file2=$prefix/etc/config.site
1911 ac_site_file1=$ac_default_prefix/share/config.site
1912 ac_site_file2=$ac_default_prefix/etc/config.site
1914 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1916 test "x$ac_site_file" = xNONE && continue
1917 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1919 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1920 sed 's/^/| /' "$ac_site_file" >&5
1922 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1924 as_fn_error $? "failed to load site
script $ac_site_file
1925 See \
`config.log' for more details" "$LINENO" 5; }
1929 if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special files
1931 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1932 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1934 $as_echo "$as_me: loading cache $cache_file" >&6;}
1936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937 *) . "./$cache_file";;
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1942 $as_echo "$as_me: creating cache $cache_file" >&6;}
1946 # Check that the precious variables saved in the cache have kept the same
1948 ac_cache_corrupted=false
1949 for ac_var in $ac_precious_vars; do
1950 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1951 eval ac_new_set=\$ac_env_${ac_var}_set
1952 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1953 eval ac_new_val=\$ac_env_${ac_var}_value
1954 case $ac_old_set,$ac_new_set in
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1957 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1958 ac_cache_corrupted=: ;;
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1961 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1962 ac_cache_corrupted=: ;;
1965 if test "x$ac_old_val" != "x$ac_new_val"; then
1966 # differences in whitespace do not lead to failure.
1967 ac_old_val_w=`echo x
$ac_old_val`
1968 ac_new_val_w=`echo x
$ac_new_val`
1969 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1971 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1972 ac_cache_corrupted=:
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1975 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1976 eval $ac_var=\$ac_old_val
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1979 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1981 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1984 # Pass precious variables to config.status.
1985 if test "$ac_new_set" = set; then
1987 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1988 *) ac_arg=$ac_var=$ac_new_val ;;
1990 case " $ac_configure_args " in
1991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1992 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1996 if $ac_cache_corrupted; then
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2000 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2003 ## -------------------- ##
2004 ## Main body of script. ##
2005 ## -------------------- ##
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2018 if test -f "$ac_dir/install-sh"; then
2020 ac_install_sh="$ac_aux_dir/install-sh -c"
2022 elif test -f "$ac_dir/install.sh"; then
2024 ac_install_sh="$ac_aux_dir/install.sh -c"
2026 elif test -f "$ac_dir/shtool"; then
2028 ac_install_sh="$ac_aux_dir/shtool install -c"
2032 if test -z "$ac_aux_dir"; then
2033 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2045 # Find a good install program. We prefer a C program (faster),
2046 # so one script is as good as another. But avoid the broken or
2047 # incompatible versions:
2048 # SysV /etc/install, /usr/sbin/install
2049 # SunOS /usr/etc/install
2050 # IRIX /sbin/install
2052 # AmigaOS /C/install, which installs bootblocks on floppy discs
2053 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2054 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2055 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2056 # OS/2's system install, which has a completely different semantic
2057 # ./install, which can be erroneously created by make from ./install.sh.
2058 # Reject install programs that cannot install multiple files.
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2060 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2061 if test -z "$INSTALL"; then
2062 if ${ac_cv_path_install+:} false; then :
2063 $as_echo_n "(cached) " >&6
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 # Account for people who put trailing slashes in PATH elements.
2071 case $as_dir/ in #((
2072 ./ | .// | /[cC]/* | \
2073 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2074 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2077 # OSF1 and SCO ODT 3.0 have their own names for install.
2078 # Don't use installbsd from OSF since it installs stuff as root
2080 for ac_prog in ginstall scoinst install; do
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2083 if test $ac_prog = install &&
2084 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2085 # AIX install. It has an incompatible calling convention.
2087 elif test $ac_prog = install &&
2088 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2089 # program-specific install script used by HP pwplus--don't use.
2092 rm -rf conftest.one conftest.two conftest.dir
2093 echo one > conftest.one
2094 echo two > conftest.two
2096 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2097 test -s conftest.one && test -s conftest.two &&
2098 test -s conftest.dir/conftest.one &&
2099 test -s conftest.dir/conftest.two
2101 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2114 rm -rf conftest.one conftest.two conftest.dir
2117 if test "${ac_cv_path_install+set}" = set; then
2118 INSTALL=$ac_cv_path_install
2120 # As a last resort, use the slow shell script. Don't cache a
2121 # value for INSTALL within a source directory, because that will
2122 # break other packages using the cache if that directory is
2123 # removed, or if the value is a relative name.
2124 INSTALL=$ac_install_sh
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2128 $as_echo "$INSTALL" >&6; }
2130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2131 # It thinks the first close brace ends the variable substitution.
2132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2139 ac_cpp='$CPP $CPPFLAGS'
2140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143 if test -n "$ac_tool_prefix"; then
2144 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2145 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2147 $as_echo_n "checking for $ac_word... " >&6; }
2148 if ${ac_cv_prog_CC+:} false; then :
2149 $as_echo_n "(cached) " >&6
2151 if test -n "$CC"; then
2152 ac_cv_prog_CC="$CC" # Let the user override the test.
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 if test -n "$CC"; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2174 $as_echo "$CC" >&6; }
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2177 $as_echo "no" >&6; }
2182 if test -z "$ac_cv_prog_CC"; then
2184 # Extract the first word of "gcc", so it can be a program name with args.
2185 set dummy gcc; ac_word=$2
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2187 $as_echo_n "checking for $ac_word... " >&6; }
2188 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2189 $as_echo_n "(cached) " >&6
2191 if test -n "$ac_ct_CC"; then
2192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201 ac_cv_prog_ac_ct_CC="gcc"
2202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2212 if test -n "$ac_ct_CC"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2214 $as_echo "$ac_ct_CC" >&6; }
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2217 $as_echo "no" >&6; }
2220 if test "x$ac_ct_CC" = x; then
2223 case $cross_compiling:$ac_tool_warned in
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2227 ac_tool_warned=yes ;;
2235 if test -z "$CC"; then
2236 if test -n "$ac_tool_prefix"; then
2237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}cc; ac_word=$2
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2240 $as_echo_n "checking for $ac_word... " >&6; }
2241 if ${ac_cv_prog_CC+:} false; then :
2242 $as_echo_n "(cached) " >&6
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254 ac_cv_prog_CC="${ac_tool_prefix}cc"
2255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 if test -n "$CC"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2267 $as_echo "$CC" >&6; }
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2270 $as_echo "no" >&6; }
2276 if test -z "$CC"; then
2277 # Extract the first word of "cc", so it can be a program name with args.
2278 set dummy cc; ac_word=$2
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2280 $as_echo_n "checking for $ac_word... " >&6; }
2281 if ${ac_cv_prog_CC+:} false; then :
2282 $as_echo_n "(cached) " >&6
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2296 ac_prog_rejected=yes
2300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 if test $ac_prog_rejected = yes; then
2308 # We found a bogon in the path, so make sure we never use it.
2309 set dummy $ac_cv_prog_CC
2311 if test $# != 0; then
2312 # We chose a different compiler from the bogus one.
2313 # However, it has the same basename, so the bogon will be chosen
2314 # first if we set CC to just the basename; use the full file name.
2316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2322 if test -n "$CC"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2324 $as_echo "$CC" >&6; }
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2327 $as_echo "no" >&6; }
2332 if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 for ac_prog in cl.exe
2336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2339 $as_echo_n "checking for $ac_word... " >&6; }
2340 if ${ac_cv_prog_CC+:} false; then :
2341 $as_echo_n "(cached) " >&6
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 if test -n "$CC"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2366 $as_echo "$CC" >&6; }
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2369 $as_echo "no" >&6; }
2373 test -n "$CC" && break
2376 if test -z "$CC"; then
2378 for ac_prog in cl.exe
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2383 $as_echo_n "checking for $ac_word... " >&6; }
2384 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2385 $as_echo_n "(cached) " >&6
2387 if test -n "$ac_ct_CC"; then
2388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2397 ac_cv_prog_ac_ct_CC="$ac_prog"
2398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408 if test -n "$ac_ct_CC"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2410 $as_echo "$ac_ct_CC" >&6; }
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2413 $as_echo "no" >&6; }
2417 test -n "$ac_ct_CC" && break
2420 if test "x$ac_ct_CC" = x; then
2423 case $cross_compiling:$ac_tool_warned in
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2427 ac_tool_warned=yes ;;
2436 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2439 See \
`config.log' for more details" "$LINENO" 5; }
2441 # Provide some information about the compiler.
2442 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2445 for ac_option in --version -v -V -qversion; do
2446 { { ac_try="$ac_compiler $ac_option >&5"
2448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2449 *) ac_try_echo
=$ac_try;;
2451 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2452 $as_echo "$ac_try_echo"; } >&5
2453 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2455 if test -s conftest.err
; then
2457 ... rest of stderr output deleted ...
2458 10q' conftest.err
>conftest.er1
2459 cat conftest.er1
>&5
2461 rm -f conftest.er1 conftest.err
2462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2463 test $ac_status = 0; }
2466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2477 ac_clean_files_save
=$ac_clean_files
2478 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2479 # Try to create an executable without -o first, disregard a.out.
2480 # It will help us diagnose broken compilers, and finding out an intuition
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2483 $as_echo_n "checking whether the C compiler works... " >&6; }
2484 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2486 # The possible output files:
2487 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2490 for ac_file
in $ac_files
2493 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2494 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2499 if { { ac_try
="$ac_link_default"
2501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_link_default") 2>&5
2508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2509 test $ac_status = 0; }; then :
2510 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2511 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2512 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2513 # so that the user can short-circuit this test for compilers unknown to
2515 for ac_file in $ac_files ''
2517 test -f "$ac_file" || continue
2519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2522 # We found the default executable, but exeext='' is most
2526 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2528 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2530 # We set ac_cv_exeext here because the later test for it is not
2531 # safe: cross compilers may not add the suffix if given an `-o'
2532 # argument, so we may need to know it at that point already.
2533 # Even if this section looks crufty: it has the advantage of
2540 test "$ac_cv_exeext" = no && ac_cv_exeext=
2545 if test -z "$ac_file"; then :
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2548 $as_echo "$as_me: failed program was:" >&5
2549 sed 's
/^
/|
/' conftest.$ac_ext >&5
2551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2553 as_fn_error 77 "C compiler cannot create executables
2554 See \`config.log
' for more details" "$LINENO" 5; }
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557 $as_echo "yes" >&6; }
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2560 $as_echo_n "checking for C compiler default output file name... " >&6; }
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2562 $as_echo "$ac_file" >&6; }
2563 ac_exeext=$ac_cv_exeext
2565 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2566 ac_clean_files=$ac_clean_files_save
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2568 $as_echo_n "checking for suffix of executables... " >&6; }
2569 if { { ac_try="$ac_link"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575 $as_echo "$ac_try_echo"; } >&5
2576 (eval "$ac_link") 2>&5
2578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579 test $ac_status = 0; }; then :
2580 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2581 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2582 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2584 for ac_file
in conftest.exe conftest conftest.
*; do
2585 test -f "$ac_file" ||
continue
2587 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2588 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2597 See \`config.log' for more details" "$LINENO" 5; }
2599 rm -f conftest conftest
$ac_cv_exeext
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2601 $as_echo "$ac_cv_exeext" >&6; }
2603 rm -f conftest.
$ac_ext
2604 EXEEXT
=$ac_cv_exeext
2606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2612 FILE *f = fopen ("conftest.out", "w");
2613 return ferror (f) || fclose (f) != 0;
2619 ac_clean_files
="$ac_clean_files conftest.out"
2620 # Check that the compiler produces executables we can run. If not, either
2621 # the compiler is broken, or we cross compile.
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2623 $as_echo_n "checking whether we are cross compiling... " >&6; }
2624 if test "$cross_compiling" != yes; then
2625 { { ac_try
="$ac_link"
2627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632 (eval "$ac_link") 2>&5
2634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635 test $ac_status = 0; }
2636 if { ac_try='./conftest$ac_cv_exeext'
2637 { { case "(($ac_try" in
2638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2639 *) ac_try_echo
=$ac_try;;
2641 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642 $as_echo "$ac_try_echo"; } >&5
2643 (eval "$ac_try") 2>&5
2645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2646 test $ac_status = 0; }; }; then
2649 if test "$cross_compiling" = maybe
; then
2652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654 as_fn_error $?
"cannot run C compiled programs.
2655 If you meant to cross compile, use \`--host'.
2656 See \`config.log' for more details" "$LINENO" 5; }
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2661 $as_echo "$cross_compiling" >&6; }
2663 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2664 ac_clean_files
=$ac_clean_files_save
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2666 $as_echo_n "checking for suffix of object files... " >&6; }
2667 if ${ac_cv_objext+:} false
; then :
2668 $as_echo_n "(cached) " >&6
2670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h. */
2681 rm -f conftest.o conftest.obj
2682 if { { ac_try
="$ac_compile"
2684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2688 $as_echo "$ac_try_echo"; } >&5
2689 (eval "$ac_compile") 2>&5
2691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692 test $ac_status = 0; }; then :
2693 for ac_file in conftest.o conftest.obj conftest.*; do
2694 test -f "$ac_file" || continue;
2696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2697 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2702 $as_echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2708 See \
`config.log' for more details" "$LINENO" 5; }
2710 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2713 $as_echo "$ac_cv_objext" >&6; }
2714 OBJEXT=$ac_cv_objext
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2717 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2718 if ${ac_cv_c_compiler_gnu+:} false; then :
2719 $as_echo_n "(cached) " >&6
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h. */
2735 if ac_fn_c_try_compile "$LINENO"; then :
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2745 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2746 if test $ac_compiler_gnu = yes; then
2751 ac_test_CFLAGS=${CFLAGS+set}
2752 ac_save_CFLAGS=$CFLAGS
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2754 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2755 if ${ac_cv_prog_cc_g+:} false; then :
2756 $as_echo_n "(cached) " >&6
2758 ac_save_c_werror_flag=$ac_c_werror_flag
2759 ac_c_werror_flag=yes
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2773 if ac_fn_c_try_compile "$LINENO"; then :
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2788 if ac_fn_c_try_compile "$LINENO"; then :
2791 ac_c_werror_flag=$ac_save_c_werror_flag
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2804 if ac_fn_c_try_compile "$LINENO"; then :
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 ac_c_werror_flag=$ac_save_c_werror_flag
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2815 $as_echo "$ac_cv_prog_cc_g" >&6; }
2816 if test "$ac_test_CFLAGS" = set; then
2817 CFLAGS=$ac_save_CFLAGS
2818 elif test $ac_cv_prog_cc_g = yes; then
2819 if test "$GCC" = yes; then
2825 if test "$GCC" = yes; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2832 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2833 if ${ac_cv_prog_cc_c89+:} false; then :
2834 $as_echo_n "(cached) " >&6
2836 ac_cv_prog_cc_c89=no
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2857 s = g (p, va_arg (v,int));
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2863 function prototypes and stuff, but not '\xHH' hex character constants.
2864 These don't provoke an error unfortunately, instead are silently treated
2865 as 'x'. The following induces an error, until -std is added to get
2866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2867 array size at least. It's necessary to write '\x00'==0 to get something
2868 that's true only with -std. */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2872 inside strings and character constants. */
2874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2876 int test (int i, double x);
2877 struct s1 {int (*f) (int a);};
2878 struct s2 {int (*f) (double a);};
2879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2885 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2893 CC="$ac_save_CC $ac_arg"
2894 if ac_fn_c_try_compile "$LINENO"; then :
2895 ac_cv_prog_cc_c89=$ac_arg
2897 rm -f core conftest.err conftest.$ac_objext
2898 test "x$ac_cv_prog_cc_c89" != "xno" && break
2900 rm -f conftest.$ac_ext
2905 case "x$ac_cv_prog_cc_c89" in
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2908 $as_echo "none needed" >&6; } ;;
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2911 $as_echo "unsupported" >&6; } ;;
2913 CC="$CC $ac_cv_prog_cc_c89"
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2915 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2917 if test "x$ac_cv_prog_cc_c89" != xno; then :
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 # Make sure we can run config.sub.
2929 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2930 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2933 $as_echo_n "checking build system type... " >&6; }
2934 if ${ac_cv_build+:} false; then :
2935 $as_echo_n "(cached) " >&6
2937 ac_build_alias=$build_alias
2938 test "x$ac_build_alias" = x &&
2939 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2940 test "x$ac_build_alias" = x &&
2941 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2942 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2943 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2947 $as_echo "$ac_cv_build" >&6; }
2948 case $ac_cv_build in
2950 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2953 ac_save_IFS=$IFS; IFS='-'
2959 # Remember, the first character of IFS is used to create $*,
2960 # except with old shells:
2963 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2967 $as_echo_n "checking host system type... " >&6; }
2968 if ${ac_cv_host+:} false; then :
2969 $as_echo_n "(cached) " >&6
2971 if test "x$host_alias" = x; then
2972 ac_cv_host=$ac_cv_build
2974 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2975 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2980 $as_echo "$ac_cv_host" >&6; }
2983 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2986 ac_save_IFS=$IFS; IFS='-'
2992 # Remember, the first character of IFS is used to create $*,
2993 # except with old shells:
2996 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3000 $as_echo_n "checking target system type... " >&6; }
3001 if ${ac_cv_target+:} false; then :
3002 $as_echo_n "(cached) " >&6
3004 if test "x$target_alias" = x; then
3005 ac_cv_target=$ac_cv_host
3007 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3008 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3013 $as_echo "$ac_cv_target" >&6; }
3014 case $ac_cv_target in
3016 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3018 target=$ac_cv_target
3019 ac_save_IFS=$IFS; IFS='-'
3025 # Remember, the first character of IFS is used to create $*,
3026 # except with old shells:
3029 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3032 # The aliases save the names the user supplied, while $host etc.
3033 # will get canonicalized.
3034 test -n "$target_alias" &&
3035 test "$program_prefix$program_suffix$program_transform_name" = \
3037 program_prefix=${target_alias}-
3040 # Check whether --enable-sim-bitsize was given.
3041 if test "${enable_sim_bitsize+set}" = set; then :
3042 enableval=$enable_sim_bitsize; case "${enableval}" in
3043 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
3044 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
3046 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3047 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3054 # Check whether --enable-sim-decode-mechanism was given.
3055 if test "${enable_sim_decode_mechanism+set}" = set; then :
3056 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
3057 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
3058 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
3059 *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3060 sim_decode_mechanism="switch";;
3062 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
3063 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
3066 sim_decode_mechanism=""
3067 if test x"$silent" != x"yes"; then
3068 echo "Setting decode mechanism flags = $sim_decode_mechanism"
3073 # Check whether --enable-sim-default-model was given.
3074 if test "${enable_sim_default_model+set}" = set; then :
3075 enableval=$enable_sim_default_model; case "${enableval}" in
3076 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
3077 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
3079 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3080 echo "Setting default-model flags = $sim_default_model" 6>&1
3083 sim_default_model=""
3087 # Check whether --enable-sim-duplicate was given.
3088 if test "${enable_sim_duplicate+set}" = set; then :
3089 enableval=$enable_sim_duplicate; case "${enableval}" in
3092 *) as_fn_error $? "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
3094 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
3095 echo "Setting duplicate flags = $sim_dup" 6>&1
3099 if test x"$silent" != x"yes"; then
3100 echo "Setting duplicate flags = $sim_dup" 6>&1
3105 # Check whether --enable-sim-filter was given.
3106 if test "${enable_sim_filter+set}" = set; then :
3107 enableval=$enable_sim_filter; case "${enableval}" in
3108 yes) as_fn_error $? "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
3110 *) sim_filter="-F $enableval";;
3112 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
3113 echo "Setting filter flags = $sim_filter" 6>&1
3116 sim_filter="-F 32,f,o"
3117 if test x"$silent" != x"yes"; then
3118 echo "Setting filter flags = $sim_filter" 6>&1
3123 # Check whether --enable-sim-float was given.
3124 if test "${enable_sim_float+set}" = set; then :
3125 enableval=$enable_sim_float; case "${enableval}" in
3126 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3127 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3128 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3129 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3130 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
3132 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3133 echo "Setting float flags = $sim_float" 6>&1
3138 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3139 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3147 $as_echo_n "checking if union semun defined... " >&6; }
3148 if ${ac_cv_HAS_UNION_SEMUN+:} false; then :
3149 $as_echo_n "(cached) " >&6
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152 /* end confdefs.h. */
3154 #include <sys/types.h>
3155 #include <sys/ipc.h>
3156 #include <sys/sem.h>
3165 if ac_fn_c_try_compile "$LINENO"; then :
3166 ac_cv_has_union_semun="yes"
3168 ac_cv_has_union_semun="no"
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3172 $as_echo "$ac_cv_has_union_semun" >&6; }
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3176 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
3179 if test "$ac_cv_has_union_semun" = "yes"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3181 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3182 if ${ac_cv_sysv_sem+:} false; then :
3183 $as_echo_n "(cached) " >&6
3186 if test "$cross_compiling" = yes; then :
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3192 #include <sys/types.h>
3193 #include <sys/ipc.h>
3194 #include <sys/sem.h>
3198 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3201 arg.val = 0; /* avoid implicit type cast to union */
3202 if (semctl(id, 0, IPC_RMID, arg) == -1)
3208 if ac_fn_c_try_run "$LINENO"; then :
3209 ac_cv_sysv_sem="yes"
3213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3214 conftest.$ac_objext conftest.beam conftest.$ac_ext
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3220 $as_echo "$ac_cv_sysv_sem" >&6; }
3221 else # semun is not defined
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3223 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3224 if ${ac_cv_sysv_sem+:} false; then :
3225 $as_echo_n "(cached) " >&6
3228 if test "$cross_compiling" = yes; then :
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3234 #include <sys/types.h>
3235 #include <sys/ipc.h>
3236 #include <sys/sem.h>
3239 struct semid_ds *buf;
3245 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3248 arg.val = 0; /* avoid implicit type cast to union */
3249 if (semctl(id, 0, IPC_RMID, arg) == -1)
3255 if ac_fn_c_try_run "$LINENO"; then :
3256 ac_cv_sysv_sem="yes"
3260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3261 conftest.$ac_objext conftest.beam conftest.$ac_ext
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3267 $as_echo "$ac_cv_sysv_sem" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3271 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
3272 if ${ac_cv_sysv_shm+:} false; then :
3273 $as_echo_n "(cached) " >&6
3276 if test "$cross_compiling" = yes; then :
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3282 #include <sys/types.h>
3283 #include <sys/ipc.h>
3284 #include <sys/shm.h>
3286 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3289 if (shmctl(id, IPC_RMID, 0) == -1)
3295 if ac_fn_c_try_run "$LINENO"; then :
3296 ac_cv_sysv_shm="yes"
3300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3301 conftest.$ac_objext conftest.beam conftest.$ac_ext
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
3307 $as_echo "$ac_cv_sysv_shm" >&6; }
3309 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3310 sim_sysv_ipc_hw=",sem,shm";
3315 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3317 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
3322 # Check whether --enable-sim-hardware was given.
3323 if test "${enable_sim_hardware+set}" = set; then :
3324 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}"
3325 case "${enableval}" in
3327 no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
3328 ,*) hardware="${hardware}${enableval}";;
3329 *,) hardware="${enableval}${hardware}";;
3330 *) hardware="${enableval}"'';;
3332 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3333 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3334 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
3335 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3338 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3339 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3340 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3341 if test x"$silent" != x"yes"; then
3342 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3347 # Check whether --enable-sim-icache was given.
3348 if test "${enable_sim_icache+set}" = set; then :
3349 enableval=$enable_sim_icache; icache="-R"
3350 case "${enableval}" in
3351 yes) icache="1024"; sim_icache="-I $icache";;
3352 no) sim_icache="-R";;
3355 for x in `echo "${enableval}" |
sed -e "s/,/ /g"`; do
3357 define) sim_icache="${sim_icache}R";;
3358 semantic) sim_icache="${sim_icache}C";;
3359 insn) sim_icache="${sim_icache}S";;
3360 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
3361 *) as_fn_error $? "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
3364 sim_icache="${sim_icache}I $icache";;
3366 if test x"$silent" != x"yes" && test x"$icache" != x""; then
3367 echo "Setting instruction cache size to $icache ($sim_icache)"
3370 sim_icache="-CSRI 1024"
3371 if test x"$silent" != x"yes"; then
3372 echo "Setting instruction cache size to 1024 ($sim_icache)"
3377 # Check whether --enable-sim-jump was given.
3378 if test "${enable_sim_jump+set}" = set; then :
3379 enableval=$enable_sim_jump; case "${enableval}" in
3380 yes) sim_jump="-J";;
3382 *) as_fn_error $? "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
3384 if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
3385 echo "Setting jump flag = $sim_jump" 6>&1
3389 if test x"$silent" != x"yes"; then
3390 echo "Setting jump flag = $sim_jump" 6>&1
3395 # Check whether --enable-sim-line-nr was given.
3396 if test "${enable_sim_line_nr+set}" = set; then :
3397 enableval=$enable_sim_line_nr; case "${enableval}" in
3398 yes) sim_line_nr="";;
3399 no) sim_line_nr="-L";;
3400 *) as_fn_error $? "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
3402 if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
3403 echo "Setting warning flags = $sim_line_nr" 6>&1
3410 # Check whether --enable-sim-model was given.
3411 if test "${enable_sim_model+set}" = set; then :
3412 enableval=$enable_sim_model; case "${enableval}" in
3413 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
3414 *) sim_model="-DWITH_MODEL=${enableval}";;
3416 if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
3417 echo "Setting model flags = $sim_model" 6>&1
3424 # Check whether --enable-sim-model-issue was given.
3425 if test "${enable_sim_model_issue+set}" = set; then :
3426 enableval=$enable_sim_model_issue; case "${enableval}" in
3427 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3428 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3429 *) as_fn_error $? "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
3431 if test x"$silent" != x"yes"; then
3432 echo "Setting model-issue flags = $sim_model_issue" 6>&1
3439 # Check whether --enable-sim-monitor was given.
3440 if test "${enable_sim_monitor+set}" = set; then :
3441 enableval=$enable_sim_monitor; case "${enableval}" in
3442 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3443 no) sim_monitor="-DWITH_MON=0";;
3444 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3445 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3446 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5;;
3448 if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
3449 echo "Setting monitor flags = $sim_monitor" 6>&1
3456 # Check whether --enable-sim-opcode was given.
3457 if test "${enable_sim_opcode+set}" = set; then :
3458 enableval=$enable_sim_opcode; case "${enableval}" in
3459 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
3460 *) if test -f "${srcdir}/${enableval}"; then
3461 sim_opcode="${enableval}"
3462 elif test -f "${srcdir}/dc-${enableval}"; then
3463 sim_opcode="dc-${enableval}"
3465 as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3466 sim_opcode="dc-complex"
3469 if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
3470 echo "Setting opcode flags = $sim_opcode" 6>&1
3473 sim_opcode="dc-complex"
3474 if test x"$silent" != x"yes"; then
3475 echo "Setting opcode flags = $sim_opcode"
3480 # Check whether --enable-sim-smp was given.
3481 if test "${enable_sim_smp+set}" = set; then :
3482 enableval=$enable_sim_smp; case "${enableval}" in
3483 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
3484 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
3485 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
3487 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
3488 echo "Setting smp flags = $sim_smp" 6>&1
3491 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
3492 if test x"$silent" != x"yes"; then
3493 echo "Setting smp flags = $sim_smp" 6>&1
3498 # Check whether --enable-sim-switch was given.
3499 if test "${enable_sim_switch+set}" = set; then :
3500 enableval=$enable_sim_switch; case "${enableval}" in
3501 yes) sim_switch="-DWITH_SPREG_SWITCH_TABLE";;
3503 *) as_fn_error $? "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
3505 if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
3506 echo "Setting switch flags = $sim_switch" 6>&1
3510 if test x"$silent" != x"yes"; then
3511 echo "Setting switch flags = $sim_switch" 6>&1
3516 # Check whether --enable-sim-timebase was given.
3517 if test "${enable_sim_timebase+set}" = set; then :
3518 enableval=$enable_sim_timebase; case "${enableval}" in
3519 yes) sim_timebase="-DWITH_TIME_BASE=1";;
3520 no) sim_timebase="-DWITH_TIME_BASE=0";;
3521 *) as_fn_error $? "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
3523 if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
3524 echo "Setting timebase flags = $sim_timebase" 6>&1
3531 # Check whether --enable-sim-xor-endian was given.
3532 if test "${enable_sim_xor_endian+set}" = set; then :
3533 enableval=$enable_sim_xor_endian; case "${enableval}" in
3534 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
3535 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
3536 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
3538 if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
3539 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3546 ac_config_headers="$ac_config_headers config.h:config.in"
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
3552 $as_echo_n "checking for struct termios... " >&6; }
3553 if ${ac_cv_termios_struct+:} false; then :
3554 $as_echo_n "(cached) " >&6
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3558 #include <sys/types.h>
3559 #include <sys/termios.h>
3563 static struct termios x;
3573 if ac_fn_c_try_compile "$LINENO"; then :
3574 ac_cv_termios_struct=yes
3576 ac_cv_termios_struct=no
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
3582 $as_echo "$ac_cv_termios_struct" >&6; }
3583 if test $ac_cv_termios_struct = yes; then
3584 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
3587 if test "$ac_cv_termios_struct" = "yes"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
3589 $as_echo_n "checking for c_line field in struct termios... " >&6; }
3590 if ${ac_cv_termios_cline+:} false; then :
3591 $as_echo_n "(cached) " >&6
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595 #include <sys/types.h>
3596 #include <sys/termios.h>
3600 static struct termios x; x.c_line = 0;
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_termios_cline=yes
3608 ac_cv_termios_cline=no
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
3615 $as_echo "$ac_cv_termios_cline" >&6; }
3616 if test $ac_cv_termios_cline = yes; then
3617 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
3620 ac_cv_termios_cline=no
3623 if test "$ac_cv_termios_struct" != "yes"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
3625 $as_echo_n "checking for struct termio... " >&6; }
3626 if ${ac_cv_termio_struct+:} false; then :
3627 $as_echo_n "(cached) " >&6
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3631 #include <sys/types.h>
3632 #include <sys/termio.h>
3636 static struct termio x;
3646 if ac_fn_c_try_compile "$LINENO"; then :
3647 ac_cv_termio_struct=yes
3649 ac_cv_termio_struct=no
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
3655 $as_echo "$ac_cv_termio_struct" >&6; }
3656 if test $ac_cv_termio_struct = yes; then
3657 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
3660 ac_cv_termio_struct=no
3663 if test "$ac_cv_termio_struct" = "yes"; then
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
3665 $as_echo_n "checking for c_line field in struct termio... " >&6; }
3666 if ${ac_cv_termio_cline+:} false; then :
3667 $as_echo_n "(cached) " >&6
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3671 #include <sys/types.h>
3672 #include <sys/termio.h>
3676 static struct termio x; x.c_line = 0;
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682 ac_cv_termio_cline=yes
3684 ac_cv_termio_cline=no
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
3691 $as_echo "$ac_cv_termio_cline" >&6; }
3692 if test $ac_cv_termio_cline = yes; then
3693 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
3696 ac_cv_termio_cline=no
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
3700 $as_echo_n "checking for struct statfs... " >&6; }
3701 if ${ac_cv_struct_statfs+:} false; then :
3702 $as_echo_n "(cached) " >&6
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706 #include <sys/types.h>
3707 #ifdef HAVE_SYS_PARAM_H
3708 #include <sys/param.h>
3710 #ifdef HAVE_SYS_MOUNT_H
3711 #include <sys/mount.h>
3713 #ifdef HAVE_SYS_VFS_H
3714 #include <sys/vfs.h>
3716 #ifdef HAVE_SYS_STATFS_H
3717 #include <sys/statfs.h>
3722 static struct statfs s;
3727 if ac_fn_c_try_compile "$LINENO"; then :
3728 ac_cv_struct_statfs=yes
3730 ac_cv_struct_statfs=no
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
3736 $as_echo "$ac_cv_struct_statfs" >&6; }
3737 if test $ac_cv_struct_statfs = yes; then
3739 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3749 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3750 # On Suns, sometimes $CPP names a directory.
3751 if test -n "$CPP" && test -d "$CPP"; then
3754 if test -z "$CPP"; then
3755 if ${ac_cv_prog_CPP+:} false; then :
3756 $as_echo_n "(cached) " >&6
3758 # Double quotes because CPP needs to be expanded
3759 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3762 for ac_c_preproc_warn_flag in '' yes
3764 # Use a header file that comes with gcc, so configuring glibc
3765 # with a fresh cross-compiler works.
3766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767 # <limits.h> exists even on freestanding compilers.
3768 # On the NeXT, cc -E runs the code through the compiler's parser,
3769 # not just through cpp. "Syntax error" is here to catch this case.
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3773 # include <limits.h>
3775 # include <assert.h>
3779 if ac_fn_c_try_cpp "$LINENO"; then :
3782 # Broken: fails on valid input.
3785 rm -f conftest.err conftest.i conftest.$ac_ext
3787 # OK, works on sane cases. Now check whether nonexistent headers
3788 # can be detected and how.
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791 #include <ac_nonexistent.h>
3793 if ac_fn_c_try_cpp "$LINENO"; then :
3794 # Broken: success on invalid input.
3797 # Passes both tests.
3801 rm -f conftest.err conftest.i conftest.$ac_ext
3804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3805 rm -f conftest.i conftest.err conftest.
$ac_ext
3806 if $ac_preproc_ok; then :
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3819 $as_echo "$CPP" >&6; }
3821 for ac_c_preproc_warn_flag
in '' yes
3823 # Use a header file that comes with gcc, so configuring glibc
3824 # with a fresh cross-compiler works.
3825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3826 # <limits.h> exists even on freestanding compilers.
3827 # On the NeXT, cc -E runs the code through the compiler's parser,
3828 # not just through cpp. "Syntax error" is here to catch this case.
3829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3832 # include <limits.h>
3834 # include <assert.h>
3838 if ac_fn_c_try_cpp
"$LINENO"; then :
3841 # Broken: fails on valid input.
3844 rm -f conftest.err conftest.i conftest.
$ac_ext
3846 # OK, works on sane cases. Now check whether nonexistent headers
3847 # can be detected and how.
3848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3850 #include <ac_nonexistent.h>
3852 if ac_fn_c_try_cpp
"$LINENO"; then :
3853 # Broken: success on invalid input.
3856 # Passes both tests.
3860 rm -f conftest.err conftest.i conftest.
$ac_ext
3863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3864 rm -f conftest.i conftest.err conftest.
$ac_ext
3865 if $ac_preproc_ok; then :
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3871 See \`config.log' for more details" "$LINENO" 5; }
3875 ac_cpp
='$CPP $CPPFLAGS'
3876 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3882 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3883 if ${ac_cv_path_GREP+:} false
; then :
3884 $as_echo_n "(cached) " >&6
3886 if test -z "$GREP"; then
3887 ac_path_GREP_found
=false
3888 # Loop through the user's path and test for each of PROGNAME-LIST
3889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3890 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3893 test -z "$as_dir" && as_dir
=.
3894 for ac_prog
in grep ggrep
; do
3895 for ac_exec_ext
in '' $ac_executable_extensions; do
3896 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3897 as_fn_executable_p
"$ac_path_GREP" ||
continue
3898 # Check for GNU ac_path_GREP and select it if it is found.
3899 # Check for GNU $ac_path_GREP
3900 case `"$ac_path_GREP" --version 2>&1` in
3902 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3905 $as_echo_n 0123456789 >"conftest.in"
3908 cat "conftest.in" "conftest.in" >"conftest.tmp"
3909 mv "conftest.tmp" "conftest.in"
3910 cp "conftest.in" "conftest.nl"
3911 $as_echo 'GREP' >> "conftest.nl"
3912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3913 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3914 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3915 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3916 # Best one so far, save it but keep looking for a better one
3917 ac_cv_path_GREP
="$ac_path_GREP"
3918 ac_path_GREP_max
=$ac_count
3920 # 10*(2^10) chars as input seems more than enough
3921 test $ac_count -gt 10 && break
3923 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3926 $ac_path_GREP_found && break 3
3931 if test -z "$ac_cv_path_GREP"; then
3932 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3935 ac_cv_path_GREP
=$GREP
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3940 $as_echo "$ac_cv_path_GREP" >&6; }
3941 GREP
="$ac_cv_path_GREP"
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3945 $as_echo_n "checking for egrep... " >&6; }
3946 if ${ac_cv_path_EGREP+:} false
; then :
3947 $as_echo_n "(cached) " >&6
3949 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3950 then ac_cv_path_EGREP
="$GREP -E"
3952 if test -z "$EGREP"; then
3953 ac_path_EGREP_found
=false
3954 # Loop through the user's path and test for each of PROGNAME-LIST
3955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3956 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3959 test -z "$as_dir" && as_dir
=.
3960 for ac_prog
in egrep; do
3961 for ac_exec_ext
in '' $ac_executable_extensions; do
3962 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3963 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3964 # Check for GNU ac_path_EGREP and select it if it is found.
3965 # Check for GNU $ac_path_EGREP
3966 case `"$ac_path_EGREP" --version 2>&1` in
3968 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3971 $as_echo_n 0123456789 >"conftest.in"
3974 cat "conftest.in" "conftest.in" >"conftest.tmp"
3975 mv "conftest.tmp" "conftest.in"
3976 cp "conftest.in" "conftest.nl"
3977 $as_echo 'EGREP' >> "conftest.nl"
3978 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3979 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3980 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3981 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3982 # Best one so far, save it but keep looking for a better one
3983 ac_cv_path_EGREP
="$ac_path_EGREP"
3984 ac_path_EGREP_max
=$ac_count
3986 # 10*(2^10) chars as input seems more than enough
3987 test $ac_count -gt 10 && break
3989 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3992 $ac_path_EGREP_found && break 3
3997 if test -z "$ac_cv_path_EGREP"; then
3998 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4001 ac_cv_path_EGREP
=$EGREP
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4007 $as_echo "$ac_cv_path_EGREP" >&6; }
4008 EGREP
="$ac_cv_path_EGREP"
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4012 $as_echo_n "checking for ANSI C header files... " >&6; }
4013 if ${ac_cv_header_stdc+:} false
; then :
4014 $as_echo_n "(cached) " >&6
4016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4031 if ac_fn_c_try_compile
"$LINENO"; then :
4032 ac_cv_header_stdc
=yes
4034 ac_cv_header_stdc
=no
4036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4038 if test $ac_cv_header_stdc = yes; then
4039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4046 $EGREP "memchr" >/dev
/null
2>&1; then :
4049 ac_cv_header_stdc
=no
4055 if test $ac_cv_header_stdc = yes; then
4056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4063 $EGREP "free" >/dev
/null
2>&1; then :
4066 ac_cv_header_stdc
=no
4072 if test $ac_cv_header_stdc = yes; then
4073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4074 if test "$cross_compiling" = yes; then :
4077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 #if ((' ' & 0x0FF) == 0x020)
4082 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4083 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4085 # define ISLOWER(c) \
4086 (('a' <= (c) && (c) <= 'i') \
4087 || ('j' <= (c) && (c) <= 'r') \
4088 || ('s' <= (c) && (c) <= 'z'))
4089 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4092 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4097 for (i = 0; i < 256; i++)
4098 if (XOR (islower (i), ISLOWER (i))
4099 || toupper (i) != TOUPPER (i))
4104 if ac_fn_c_try_run
"$LINENO"; then :
4107 ac_cv_header_stdc
=no
4109 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4110 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4116 $as_echo "$ac_cv_header_stdc" >&6; }
4117 if test $ac_cv_header_stdc = yes; then
4119 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4123 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4124 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4125 inttypes.h stdint.h unistd.h
4127 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4128 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4130 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4131 cat >>confdefs.h
<<_ACEOF
4132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4140 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
4141 if test "x$ac_cv_type_long_long" = xyes
; then :
4143 cat >>confdefs.h
<<_ACEOF
4144 #define HAVE_LONG_LONG 1
4151 # Since we run commands on the build system, we have to create a
4152 # separate config header for the build system if build != host.
4153 if test x
$host = x
$build; then
4154 ac_config_commands
="$ac_config_commands build-config.h"
4162 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
4163 *) realsrcdir
=..
/${srcdir};;
4165 saved_CFLAGS
="${CFLAGS}"
4166 # Put a plausible default for CC_FOR_BUILD in Makefile.
4167 if test "x$cross_compiling" = "xno"; then
4168 CC_FOR_BUILD
='$(CC)'
4172 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD-${CFLAGS}}" \
4173 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
4174 ${realsrcdir}/configure \
4175 --enable-languages=${enable_languages-all} \
4176 --target=$target_alias --host=$build_alias --build=$build_alias
4177 CFLAGS
="${saved_CFLAGS}"
4178 mv config.h ..
/build-config.h
4206 ac_config_files
="$ac_config_files Makefile"
4208 ac_config_commands
="$ac_config_commands default"
4210 cat >confcache
<<\_ACEOF
4211 # This file is a shell script that caches the results of configure
4212 # tests run on this system so they can be shared between configure
4213 # scripts and configure runs, see configure's option --config-cache.
4214 # It is not useful on other systems. If it contains results you don't
4215 # want to keep, you may remove or edit it.
4217 # config.status only pays attention to the cache file if you give it
4218 # the --recheck option to rerun configure.
4220 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4221 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4226 # The following way of writing the cache mishandles newlines in values,
4227 # but we know of no workaround that is simple, portable, and efficient.
4228 # So, we kill variables containing newlines.
4229 # Ultrix sh set writes to stderr and can't be redirected directly,
4230 # and sets the high bit in the cache file unless we assign to the vars.
4232 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4233 eval ac_val
=\$
$ac_var
4237 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4241 _ | IFS | as_nl
) ;; #(
4242 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4243 *) { eval $ac_var=; unset $ac_var;} ;;
4249 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4250 *${as_nl}ac_space
=\
*)
4251 # `set' does not quote correctly, so add quotes: double-quote
4252 # substitution turns \\\\ into \\, and sed turns \\ into \.
4255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4258 # `set' quotes correctly as required by POSIX, so do not add quotes.
4259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4268 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4270 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4272 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4273 if test -w "$cache_file"; then
4274 if test "x$cache_file" != "x/dev/null"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4276 $as_echo "$as_me: updating cache $cache_file" >&6;}
4277 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4278 cat confcache
>"$cache_file"
4280 case $cache_file in #(
4282 mv -f confcache
"$cache_file"$$
&&
4283 mv -f "$cache_file"$$
"$cache_file" ;; #(
4285 mv -f confcache
"$cache_file" ;;
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4291 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4296 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4297 # Let make expand exec_prefix.
4298 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4300 DEFS
=-DHAVE_CONFIG_H
4305 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4306 # 1. Remove the extension, and $U if already installed.
4307 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4308 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4309 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4310 # will be set to the directory where LIBOBJS objects are built.
4311 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4312 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4316 LTLIBOBJS
=$ac_ltlibobjs
4320 : "${CONFIG_STATUS=./config.status}"
4322 ac_clean_files_save
=$ac_clean_files
4323 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4325 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4327 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4329 # Generated by $as_me.
4330 # Run this file to recreate the current configuration.
4331 # Compiler output produced by configure, useful for debugging
4332 # configure, is in config.log if it exists.
4338 SHELL=\${CONFIG_SHELL-$SHELL}
4341 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4342 ## -------------------- ##
4343 ## M4sh Initialization. ##
4344 ## -------------------- ##
4346 # Be more Bourne compatible
4347 DUALCASE
=1; export DUALCASE
# for MKS sh
4348 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4351 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4352 # is contrary to our usage. Disable this feature.
4353 alias -g '${1+"$@"}'='"$@"'
4354 setopt NO_GLOB_SUBST
4356 case `(set -o) 2>/dev/null` in #(
4368 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4369 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4370 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4371 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4372 # Prefer a ksh shell builtin over an external printf program on Solaris,
4373 # but without wasting forks for bash or zsh.
4374 if test -z "$BASH_VERSION$ZSH_VERSION" \
4375 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4376 as_echo='print
-r --'
4377 as_echo_n='print
-rn --'
4378 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4379 as_echo='printf %s
\n'
4380 as_echo_n='printf %s
'
4382 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4383 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4384 as_echo_n='/usr
/ucb
/echo -n'
4386 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4387 as_echo_n_body='eval
4391 expr "X$arg" : "X\\(.*\\)$as_nl";
4392 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4394 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4396 export as_echo_n_body
4397 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4400 as_echo='sh
-c $as_echo_body as_echo
'
4403 # The user is always right.
4404 if test "${PATH_SEPARATOR+set}" != set; then
4406 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4407 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4414 # We need space, tab and new line, in precisely that order. Quoting is
4415 # there to prevent editors from complaining about space-tab.
4416 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4417 # splitting by setting IFS to empty value.)
4420 # Find who we are. Look in the path if we contain no directory separator.
4423 *[\\/]* ) as_myself=$0 ;;
4424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4435 # We did not find ourselves, most probably we were run as `sh COMMAND'
4436 # in which case we are not to be found in the path.
4437 if test "x$as_myself" = x
; then
4440 if test ! -f "$as_myself"; then
4441 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4445 # Unset variables that we do not need and which cause bugs (e.g. in
4446 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4447 # suppresses any "Segmentation fault" message there. '((' could
4448 # trigger a bug in pdksh 5.2.14.
4449 for as_var
in BASH_ENV ENV MAIL MAILPATH
4450 do eval test x\
${$as_var+set} = xset \
4451 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4464 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4467 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4468 # ----------------------------------------
4469 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4470 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4471 # script with STATUS, using 1 if that was 0.
4474 as_status
=$1; test $as_status -eq 0 && as_status
=1
4476 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4477 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4479 $as_echo "$as_me: error: $2" >&2
4480 as_fn_exit
$as_status
4484 # as_fn_set_status STATUS
4485 # -----------------------
4486 # Set $? to STATUS, without forking.
4490 } # as_fn_set_status
4494 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4504 # Portably unset VAR.
4507 { eval $1=; unset $1;}
4509 as_unset
=as_fn_unset
4510 # as_fn_append VAR VALUE
4511 # ----------------------
4512 # Append the text in VALUE to the end of the definition contained in VAR. Take
4513 # advantage of any shell optimizations that allow amortized linear growth over
4514 # repeated appends, instead of the typical quadratic growth present in naive
4516 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4517 eval 'as_fn_append ()
4528 # as_fn_arith ARG...
4529 # ------------------
4530 # Perform arithmetic evaluation on the ARGs, and store the result in the
4531 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4532 # must be portable across $(()) and expr.
4533 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4534 eval 'as_fn_arith ()
4541 as_val
=`expr "$@" || test $? -eq 1`
4546 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4547 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4553 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4554 as_basename
=basename
4559 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4565 as_me
=`$as_basename -- "$0" ||
4566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4567 X"$0" : 'X\(//\)$' \| \
4568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4570 sed '/^.*\/\([^/][^/]*\)\/*$/{
4584 # Avoid depending upon Character Ranges.
4585 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4586 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4587 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4588 as_cr_digits
='0123456789'
4589 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4591 ECHO_C
= ECHO_N
= ECHO_T
=
4592 case `echo -n x` in #(((((
4594 case `echo 'xy\c'` in
4595 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4597 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4604 rm -f conf$$ conf$$.exe conf$$.
file
4605 if test -d conf$$.dir
; then
4606 rm -f conf$$.dir
/conf$$.
file
4609 mkdir conf$$.dir
2>/dev
/null
4611 if (echo >conf$$.
file) 2>/dev
/null
; then
4612 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4614 # ... but there are two gotchas:
4615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4617 # In both cases, we have to default to `cp -pR'.
4618 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4620 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4628 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4629 rmdir conf$$.dir
2>/dev
/null
4634 # Create "$as_dir" as a directory, including parents if necessary.
4639 -*) as_dir
=.
/$as_dir;;
4641 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4645 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4646 *) as_qdir
=$as_dir;;
4648 as_dirs
="'$as_qdir' $as_dirs"
4649 as_dir
=`$as_dirname -- "$as_dir" ||
4650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4651 X"$as_dir" : 'X\(//\)[^/]' \| \
4652 X"$as_dir" : 'X\(//\)$' \| \
4653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4654 $as_echo X"$as_dir" |
4655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4672 test -d "$as_dir" && break
4674 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4675 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
4679 if mkdir
-p .
2>/dev
/null
; then
4680 as_mkdir_p
='mkdir -p "$as_dir"'
4682 test -d .
/-p && rmdir .
/-p
4687 # as_fn_executable_p FILE
4688 # -----------------------
4689 # Test if FILE is an executable regular file.
4690 as_fn_executable_p
()
4692 test -f "$1" && test -x "$1"
4693 } # as_fn_executable_p
4695 as_executable_p
=as_fn_executable_p
4697 # Sed expression to map a string onto a valid CPP name.
4698 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4700 # Sed expression to map a string onto a valid variable name.
4701 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4705 ## ----------------------------------- ##
4706 ## Main body of $CONFIG_STATUS script. ##
4707 ## ----------------------------------- ##
4709 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4712 # Save the log message, to keep $0 and so on meaningful, and to
4713 # report actual input values of CONFIG_FILES etc. instead of their
4714 # values after options handling.
4716 This file was extended by $as_me, which was
4717 generated by GNU Autoconf 2.69. Invocation command line was
4719 CONFIG_FILES = $CONFIG_FILES
4720 CONFIG_HEADERS = $CONFIG_HEADERS
4721 CONFIG_LINKS = $CONFIG_LINKS
4722 CONFIG_COMMANDS = $CONFIG_COMMANDS
4725 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4730 case $ac_config_files in *"
4731 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4734 case $ac_config_headers in *"
4735 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4740 # Files that config.status was made for.
4741 config_files="$ac_config_files"
4742 config_headers="$ac_config_headers"
4743 config_commands="$ac_config_commands"
4747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4749 \`$as_me' instantiates files and other configuration actions
4750 from templates according to the current configuration. Unless the files
4751 and actions are specified as TAGs, all are instantiated by default.
4753 Usage: $0 [OPTION]... [TAG]...
4755 -h, --help print this help, then exit
4756 -V, --version print version number and configuration settings, then exit
4757 --config print configuration, then exit
4758 -q, --quiet, --silent
4759 do not print progress messages
4760 -d, --debug don't remove temporary files
4761 --recheck update $as_me by reconfiguring in the same conditions
4762 --file=FILE[:TEMPLATE]
4763 instantiate the configuration file FILE
4764 --header=FILE[:TEMPLATE]
4765 instantiate the configuration header FILE
4767 Configuration files:
4770 Configuration headers:
4773 Configuration commands:
4776 Report bugs to the package provider."
4779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4780 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4783 configured by $0, generated by GNU Autoconf 2.69,
4784 with options \\"\$ac_cs_config\\"
4786 Copyright (C) 2012 Free Software Foundation, Inc.
4787 This config.status script is free software; the Free Software Foundation
4788 gives unlimited permission to copy, distribute and modify it."
4793 test -n "\$AWK" || AWK=awk
4796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4797 # The default lists apply if the user does not specify any file.
4803 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4804 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
4808 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4820 # Handling of the options.
4821 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4823 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
4824 $as_echo "$ac_cs_version"; exit ;;
4825 --config |
--confi |
--conf |
--con |
--co |
--c )
4826 $as_echo "$ac_cs_config"; exit ;;
4827 --debug |
--debu |
--deb |
--de |
--d |
-d )
4829 --file |
--fil |
--fi |
--f )
4832 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4833 '') as_fn_error $?
"missing file argument" ;;
4835 as_fn_append CONFIG_FILES
" '$ac_optarg'"
4836 ac_need_defaults
=false
;;
4837 --header |
--heade |
--head |
--hea )
4840 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4842 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
4843 ac_need_defaults
=false
;;
4845 # Conflict between --help and --header
4846 as_fn_error $?
"ambiguous option: \`$1'
4847 Try \`$0 --help' for more information.";;
4848 --help |
--hel |
-h )
4849 $as_echo "$ac_cs_usage"; exit ;;
4850 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4851 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4855 -*) as_fn_error $?
"unrecognized option: \`$1'
4856 Try \`$0 --help' for more information." ;;
4858 *) as_fn_append ac_config_targets
" $1"
4859 ac_need_defaults
=false
;;
4865 ac_configure_extra_args
=
4867 if $ac_cs_silent; then
4869 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4874 if \$ac_cs_recheck; then
4875 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4877 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4878 CONFIG_SHELL='$SHELL'
4884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4889 ## Running $as_me. ##
4895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4900 # Handling of arguments.
4901 for ac_config_target
in $ac_config_targets
4903 case $ac_config_target in
4904 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
4905 "build-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS build-config.h" ;;
4906 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4907 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
4909 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4914 # If the user did not use the arguments to specify the items to instantiate,
4915 # then the envvar interface is used. Set only those that are not.
4916 # We use the long form for the default assignment because of an extremely
4917 # bizarre bug on SunOS 4.1.3.
4918 if $ac_need_defaults; then
4919 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4920 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
4921 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
4924 # Have a temporary directory for convenience. Make it in the build tree
4925 # simply because there is no reason against having it here, and in addition,
4926 # creating and moving files from /tmp can sometimes cause problems.
4927 # Hook for its removal unless debugging.
4928 # Note that there is a small window in which the directory will not be cleaned:
4929 # after its creation but before its name has been assigned to `$tmp'.
4933 trap 'exit_status=$?
4935 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4937 trap 'as_fn_exit 1' 1 2 13 15
4939 # Create a (secure) tmp directory for tmp files.
4942 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4946 tmp
=.
/conf$$
-$RANDOM
4947 (umask 077 && mkdir
"$tmp")
4948 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
4951 # Set up the scripts for CONFIG_FILES section.
4952 # No need to generate them if there are no CONFIG_FILES.
4953 # This happens for instance with `./config.status config.h'.
4954 if test -n "$CONFIG_FILES"; then
4957 ac_cr
=`echo X | tr X '\015'`
4958 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4959 # But we know of no other shell where ac_cr would be empty at this
4960 # point, so we can use a bashism as a fallback.
4961 if test "x$ac_cr" = x
; then
4962 eval ac_cr
=\$
\'\\r
\'
4964 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4965 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4971 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4976 echo "cat >conf$$subs.awk <<_ACEOF" &&
4977 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4980 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
4981 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4983 for ac_last_try in false false false false false :; do
4984 . ./conf$$subs.sh ||
4985 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
4987 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
4988 if test $ac_delim_n = $ac_delim_num; then
4990 elif $ac_last_try; then
4991 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
4993 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
4998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4999 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5003 s/^/S["/; s
/!.
*/"]=/
5013 s/\(.\{148\}\)..*/\1/
5015 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5020 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5027 s/\(.\{148\}\)..*/\1/
5029 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5033 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5038 ' <conf$$subs.awk | sed '
5043 ' >>$CONFIG_STATUS || ac_write_fail=1
5044 rm -f conf$$subs.awk
5045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5047 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5048 for (key in S) S_is_set[key] = 1
5054 nfields = split(line, field, "@
")
5056 len = length(field[1])
5057 for (i = 2; i < nfields; i++) {
5059 keylen = length(key)
5060 if (S_is_set[key]) {
5062 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5063 len += length(value) + length(field[++i])
5074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5075 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5076 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5079 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5080 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5083 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5084 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5085 # trailing colons and then remove the whole line if VPATH becomes empty
5086 # (actually we leave an empty line to preserve line numbers).
5087 if test "x
$srcdir" = x.; then
5088 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5107 fi # test -n "$CONFIG_FILES"
5109 # Set up the scripts for CONFIG_HEADERS section.
5110 # No need to generate them if there are no CONFIG_HEADERS.
5111 # This happens for instance with `./config.status Makefile'.
5112 if test -n "$CONFIG_HEADERS"; then
5113 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5117 # Transform confdefs.h into an awk script `defines.awk', embedded as
5118 # here-document in config.status, that substitutes the proper values into
5119 # config.h.in to produce config.h.
5121 # Create a delimiter string that does not exist in confdefs.h, to ease
5122 # handling of long lines.
5124 for ac_last_try in false false :; do
5125 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5126 if test -z "$ac_tt"; then
5128 elif $ac_last_try; then
5129 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5131 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5135 # For the awk script, D is an array of macro values keyed by name,
5136 # likewise P contains macro parameters if any. Preserve backslash
5137 # newline sequences.
5139 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5141 s/.\{148\}/&'"$ac_delim"'/g
5144 s/^[ ]*#[ ]*define[ ][ ]*/ /
5151 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5153 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5157 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5158 D["\
1"]=" \
3\\\\\\n
"\\/p
5160 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5165 s/.\{148\}/&'"$ac_delim"'/g
5170 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5173 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5175 ' <confdefs.h | sed '
5176 s/'"$ac_delim"'/"\\\
5177 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5180 for (key in D) D_is_set[key] = 1
5183 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5185 split(line, arg, " ")
5186 if (arg[1] == "#") {
5190 defundef
= substr
(arg
[1], 2)
5193 split(mac1
, mac2
, "(") #)
5195 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5196 if (D_is_set
[macro
]) {
5197 # Preserve the white space surrounding the "#".
5198 print prefix
"define", macro P
[macro
] D
[macro
]
5201 # Replace #undef with comments. This is necessary, for example,
5202 # in the case of _POSIX_SOURCE, which is predefined and required
5203 # on some systems where configure will not decide to define it.
5204 if (defundef
== "undef") {
5205 print
"/*", prefix defundef
, macro
, "*/"
5213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5214 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5215 fi # test -n "$CONFIG_HEADERS"
5218 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5223 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5225 case $ac_mode$ac_tag in
5227 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5228 :[FH
]-) ac_tag
=-:-;;
5229 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5246 -) ac_f
="$ac_tmp/stdin";;
5247 *) # Look for the file first in the build tree, then in the source tree
5248 # (if the path is not absolute). The absolute path cannot be DOS-style,
5249 # because $ac_f cannot contain `:'.
5253 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5255 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5257 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5258 as_fn_append ac_file_inputs
" '$ac_f'"
5261 # Let's still pretend it is `configure' which instantiates (i.e., don't
5262 # use $as_me), people would be surprised to read:
5263 # /* config.h. Generated by config.status. */
5264 configure_input
='Generated from '`
5265 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5267 if test x
"$ac_file" != x-
; then
5268 configure_input
="$ac_file. $configure_input"
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5270 $as_echo "$as_me: creating $ac_file" >&6;}
5272 # Neutralize special characters interpreted by sed in replacement strings.
5273 case $configure_input in #(
5274 *\
&* |
*\|
* |
*\\* )
5275 ac_sed_conf_input
=`$as_echo "$configure_input" |
5276 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5277 *) ac_sed_conf_input
=$configure_input;;
5281 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5282 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5287 ac_dir
=`$as_dirname -- "$ac_file" ||
5288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5289 X"$ac_file" : 'X\(//\)[^/]' \| \
5290 X"$ac_file" : 'X\(//\)$' \| \
5291 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5292 $as_echo X"$ac_file" |
5293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5310 as_dir
="$ac_dir"; as_fn_mkdir_p
5314 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5316 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5317 # A ".." for each directory in $ac_dir_suffix.
5318 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5319 case $ac_top_builddir_sub in
5320 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5321 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5324 ac_abs_top_builddir
=$ac_pwd
5325 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5326 # for backward compatibility:
5327 ac_top_builddir
=$ac_top_build_prefix
5330 .
) # We are building in place.
5332 ac_top_srcdir
=$ac_top_builddir_sub
5333 ac_abs_top_srcdir
=$ac_pwd ;;
5334 [\\/]* | ?
:[\\/]* ) # Absolute name.
5335 ac_srcdir
=$srcdir$ac_dir_suffix;
5336 ac_top_srcdir
=$srcdir
5337 ac_abs_top_srcdir
=$srcdir ;;
5339 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5340 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5341 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5343 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5353 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5354 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5359 # If the template does not know about datarootdir, expand it.
5360 # FIXME: This hack should be removed a few years after 2.60.
5361 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5372 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5373 *datarootdir
*) ac_datarootdir_seen
=yes;;
5374 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5376 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5379 ac_datarootdir_hack='
5380 s&@datadir@&$datadir&g
5381 s&@docdir@&$docdir&g
5382 s&@infodir@&$infodir&g
5383 s&@localedir@&$localedir&g
5384 s&@mandir@&$mandir&g
5385 s&\\\${datarootdir}&$datarootdir&g' ;;
5389 # Neutralize VPATH when `$srcdir' = `.'.
5390 # Shell code in configure.ac might set extrasub.
5391 # FIXME: do we really want to maintain this feature?
5392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5393 ac_sed_extra="$ac_vpsub
5396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5398 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5399 s|@configure_input@|
$ac_sed_conf_input|
;t t
5400 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5401 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5402 s
&@srcdir@
&$ac_srcdir&;t t
5403 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5404 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5405 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5406 s
&@builddir@
&$ac_builddir&;t t
5407 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5408 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5409 s
&@INSTALL@
&$ac_INSTALL&;t t
5410 $ac_datarootdir_hack
5412 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
5413 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
5415 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5416 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
5417 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5418 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5420 which seems to be undefined. Please make sure it is defined" >&5
5421 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5422 which seems to be undefined. Please make sure it is defined" >&2;}
5424 rm -f "$ac_tmp/stdin"
5426 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5427 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5435 if test x"$ac_file" != x-; then
5437 $as_echo "/* $configure_input */" \
5438 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5439 } >"$ac_tmp/config.h" \
5440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5441 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5443 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5446 mv "$ac_tmp/config.h" "$ac_file" \
5447 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5450 $as_echo "/* $configure_input */" \
5451 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5452 || as_fn_error $? "could not create -" "$LINENO" 5
5456 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5457 $as_echo "$as_me: executing $ac_file commands" >&6;}
5462 case $ac_file$ac_mode in
5463 "build-config.h":C) cp config.h build-config.h ;;
5464 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
5472 ac_clean_files=$ac_clean_files_save
5474 test $ac_write_fail = 0 ||
5475 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5478 # configure is writing to config.log, and then calls config.status.
5479 # config.status does its own redirection, appending to config.log.
5480 # Unfortunately, on DOS this fails, as config.log is still kept open
5481 # by configure, so config.status won't be able to
write to it
; its
5482 # output is simply discarded. So we exec the FD to /dev/null,
5483 # effectively closing config.log, so it can be properly (re)opened and
5484 # appended to by config.status. When coming back to configure, we
5485 # need to make the FD available again.
5486 if test "$no_create" != yes; then
5488 ac_config_status_args
=
5489 test "$silent" = yes &&
5490 ac_config_status_args
="$ac_config_status_args --quiet"
5492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5495 # would make configure fail if this is the last instruction.
5496 $ac_cs_success || as_fn_exit
1
5498 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5500 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}