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
727 program_transform_name
740 enable_option_checking
743 enable_sim_decode_mechanism
744 enable_sim_default_model
749 enable_sim_hostbitsize
755 enable_sim_model_issue
759 enable_sim_reserved_bits
764 enable_sim_xor_endian
768 ac_precious_vars
='build_alias
779 # Initialize some variables set by options.
781 ac_init_version
=false
782 ac_unrecognized_opts
=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
793 program_transform_name
=s
,x
,x
,
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir
='${exec_prefix}/bin'
808 sbindir
='${exec_prefix}/sbin'
809 libexecdir
='${exec_prefix}/libexec'
810 datarootdir
='${prefix}/share'
811 datadir
='${datarootdir}'
812 sysconfdir
='${prefix}/etc'
813 sharedstatedir
='${prefix}/com'
814 localstatedir
='${prefix}/var'
815 includedir
='${prefix}/include'
816 oldincludedir
='/usr/include'
817 docdir
='${datarootdir}/doc/${PACKAGE}'
818 infodir
='${datarootdir}/info'
823 libdir
='${exec_prefix}/lib'
824 localedir
='${datarootdir}/locale'
825 mandir
='${datarootdir}/man'
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\
$ac_option
839 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 # Accept the important Cygnus configure options, so we can diagnose typos.
846 case $ac_dashdash$ac_option in
850 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
852 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
855 -build |
--build |
--buil |
--bui |
--bu)
856 ac_prev
=build_alias
;;
857 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
858 build_alias
=$ac_optarg ;;
860 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
861 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
862 ac_prev
=cache_file
;;
863 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
864 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
865 cache_file
=$ac_optarg ;;
868 cache_file
=config.cache
;;
870 -datadir |
--datadir |
--datadi |
--datad)
872 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
873 datadir
=$ac_optarg ;;
875 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
876 |
--dataroo |
--dataro |
--datar)
877 ac_prev
=datarootdir
;;
878 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
879 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
880 datarootdir
=$ac_optarg ;;
882 -disable-* |
--disable-*)
883 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
886 as_fn_error $?
"invalid feature name: $ac_useropt"
887 ac_useropt_orig
=$ac_useropt
888 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
893 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep
=', ';;
896 eval enable_
$ac_useropt=no
;;
898 -docdir |
--docdir |
--docdi |
--doc |
--do)
900 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
903 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
905 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
908 -enable-* |
--enable-*)
909 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
912 as_fn_error $?
"invalid feature name: $ac_useropt"
913 ac_useropt_orig
=$ac_useropt
914 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
919 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep
=', ';;
922 eval enable_
$ac_useropt=\
$ac_optarg ;;
924 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
925 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
926 |
--exec |
--exe |
--ex)
927 ac_prev
=exec_prefix
;;
928 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
929 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
930 |
--exec=* |
--exe=* |
--ex=*)
931 exec_prefix
=$ac_optarg ;;
933 -gas |
--gas |
--ga |
--g)
934 # Obsolete; use --with-gas.
937 -help |
--help |
--hel |
--he |
-h)
939 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
940 ac_init_help
=recursive
;;
941 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
942 ac_init_help
=short
;;
944 -host |
--host |
--hos |
--ho)
945 ac_prev
=host_alias
;;
946 -host=* |
--host=* |
--hos=* |
--ho=*)
947 host_alias
=$ac_optarg ;;
949 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
951 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
953 htmldir
=$ac_optarg ;;
955 -includedir |
--includedir |
--includedi |
--included |
--include \
956 |
--includ |
--inclu |
--incl |
--inc)
957 ac_prev
=includedir
;;
958 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
959 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
960 includedir
=$ac_optarg ;;
962 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
964 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
965 infodir
=$ac_optarg ;;
967 -libdir |
--libdir |
--libdi |
--libd)
969 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
972 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
973 |
--libexe |
--libex |
--libe)
974 ac_prev
=libexecdir
;;
975 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
976 |
--libexe=* |
--libex=* |
--libe=*)
977 libexecdir
=$ac_optarg ;;
979 -localedir |
--localedir |
--localedi |
--localed |
--locale)
981 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
982 localedir
=$ac_optarg ;;
984 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
985 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
986 ac_prev
=localstatedir
;;
987 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
988 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
989 localstatedir
=$ac_optarg ;;
991 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
993 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
997 # Obsolete; use --without-fp.
1000 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1001 |
--no-cr |
--no-c |
-n)
1004 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1005 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1008 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1009 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1010 |
--oldin |
--oldi |
--old |
--ol |
--o)
1011 ac_prev
=oldincludedir
;;
1012 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1013 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1014 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1015 oldincludedir
=$ac_optarg ;;
1017 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1019 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1020 prefix
=$ac_optarg ;;
1022 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1023 |
--program-pre |
--program-pr |
--program-p)
1024 ac_prev
=program_prefix
;;
1025 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1026 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1027 program_prefix
=$ac_optarg ;;
1029 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1030 |
--program-suf |
--program-su |
--program-s)
1031 ac_prev
=program_suffix
;;
1032 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1033 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1034 program_suffix
=$ac_optarg ;;
1036 -program-transform-name |
--program-transform-name \
1037 |
--program-transform-nam |
--program-transform-na \
1038 |
--program-transform-n |
--program-transform- \
1039 |
--program-transform |
--program-transfor \
1040 |
--program-transfo |
--program-transf \
1041 |
--program-trans |
--program-tran \
1042 |
--progr-tra |
--program-tr |
--program-t)
1043 ac_prev
=program_transform_name
;;
1044 -program-transform-name=* |
--program-transform-name=* \
1045 |
--program-transform-nam=* |
--program-transform-na=* \
1046 |
--program-transform-n=* |
--program-transform-=* \
1047 |
--program-transform=* |
--program-transfor=* \
1048 |
--program-transfo=* |
--program-transf=* \
1049 |
--program-trans=* |
--program-tran=* \
1050 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1051 program_transform_name
=$ac_optarg ;;
1053 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1055 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1056 pdfdir
=$ac_optarg ;;
1058 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1060 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1063 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1064 |
-silent |
--silent |
--silen |
--sile |
--sil)
1067 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1069 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1071 sbindir
=$ac_optarg ;;
1073 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1074 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1075 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1077 ac_prev
=sharedstatedir
;;
1078 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1079 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1080 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1082 sharedstatedir
=$ac_optarg ;;
1084 -site |
--site |
--sit)
1086 -site=* |
--site=* |
--sit=*)
1089 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1091 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1092 srcdir
=$ac_optarg ;;
1094 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1095 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1096 ac_prev
=sysconfdir
;;
1097 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1098 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1099 sysconfdir
=$ac_optarg ;;
1101 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1102 ac_prev
=target_alias
;;
1103 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1104 target_alias
=$ac_optarg ;;
1106 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1109 -version |
--version |
--versio |
--versi |
--vers |
-V)
1110 ac_init_version
=: ;;
1113 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1116 as_fn_error $?
"invalid package name: $ac_useropt"
1117 ac_useropt_orig
=$ac_useropt
1118 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1123 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep
=', ';;
1126 eval with_
$ac_useropt=\
$ac_optarg ;;
1128 -without-* |
--without-*)
1129 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1132 as_fn_error $?
"invalid package name: $ac_useropt"
1133 ac_useropt_orig
=$ac_useropt
1134 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1139 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep
=', ';;
1142 eval with_
$ac_useropt=no
;;
1145 # Obsolete; use --with-x.
1148 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1149 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1150 ac_prev
=x_includes
;;
1151 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1152 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1153 x_includes
=$ac_optarg ;;
1155 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1156 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1157 ac_prev
=x_libraries
;;
1158 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1159 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1160 x_libraries
=$ac_optarg ;;
1162 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information"
1167 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
1169 case $ac_envvar in #(
1170 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1171 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1173 eval $ac_envvar=\
$ac_optarg
1174 export $ac_envvar ;;
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187 if test -n "$ac_prev"; then
1188 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1189 as_fn_error $?
"missing argument to $ac_option"
1192 if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1195 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 # Check all directory arguments for consistency.
1201 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val
=\$
$ac_var
1207 # Remove trailing slashes.
1210 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\
$ac_val;;
1213 # Be sure to have absolute directory names.
1215 [\\/$
]* | ?
:[\\/]* ) continue;;
1216 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1218 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1226 target
=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x
; then
1230 if test "x$build_alias" = x
; then
1231 cross_compiling
=maybe
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1240 test "$silent" = yes && exec 6>/dev
/null
1243 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di
=`ls -di .` &&
1245 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error $?
"working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error $?
"pwd does not report name of working directory"
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted
=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir
=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted
=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1287 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1289 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var
in $ac_precious_vars; do
1304 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1306 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures this package to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking ...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1380 --build=BUILD configure
for building on BUILD
[guessed
]
1381 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1382 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1386 if test -n "$ac_init_help"; then
1391 --disable-option-checking ignore unrecognized
--enable/--with options
1392 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1393 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1394 --enable-sim-bitsize=n Specify target bitsize
(32 or
64).
1395 --enable-sim-config=file Override default config
file
1396 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1397 --enable-sim-default-model=which Specify default PowerPC to model.
1398 --enable-sim-duplicate Expand
(duplicate
) semantic functions.
1399 --enable-sim-filter=rule Specify filter rules.
1400 --enable-sim-float Specify whether the target has hard
, soft
, altivec or e500 floating point.
1401 --enable-sim-hardware=list Specify the hardware to be included
in the build.
1402 --enable-sim-hostbitsize=32|
64 Specify
host bitsize
(32 or
64).
1403 --enable-sim-icache=size Specify instruction-decode cache size and
type.
1404 --enable-sim-inline=inlines Specify
which functions should be inlined.
1405 --enable-sim-jump Jump between semantic code
(instead of
call
/return).
1406 --enable-sim-line-nr=opts Generate extra CPP code that references
source rather than generated code
1407 --enable-sim-model=which Specify PowerPC to model.
1408 --enable-sim-model-issue Specify whether to simulate model specific actions
1409 --enable-sim-monitor=mon Specify whether to
enable monitoring events.
1410 --enable-sim-opcode=which Override default opcode lookup.
1411 --enable-sim-packages=list Specify the packages to be included
in the build.
1412 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
1413 --enable-sim-smp=n Specify number of processors to configure
for.
1414 --enable-sim-switch Use a switch instead of a table
for instruction call.
1415 --enable-sim-timebase Specify whether the PPC timebase is supported.
1416 --enable-sim-warnings=opts Extra CFLAGS
for turning on compiler warnings except
for idecode.o
, semantics.o and psim.o
1417 --enable-sim-xor-endian=n Specify number bytes involved
in PowerPC XOR bi-endian mode
(default
8).
1418 --enable-plugins Enable support
for plugins
1421 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1422 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1423 --with-system-zlib use installed libz
1425 Some influential environment variables
:
1426 CC C compiler
command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1429 nonstandard directory
<lib dir
>
1430 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1431 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1432 you have headers
in a nonstandard directory
<include dir
>
1435 Use these variables to override the choices made by
`configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1438 Report bugs to the package provider.
1443 if test "$ac_init_help" = "recursive"; then
1444 # If there are subdirs, report their specific --help.
1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1468 .) # We are building in place.
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
1473 ac_srcdir=$srcdir$ac_dir_suffix;
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1502 generated by GNU Autoconf 2.69
1504 Copyright (C) 2012 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1525 *) ac_try_echo
=$ac_try;;
1527 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1531 if test -s conftest.err
; then
1532 grep -v '^ *+' conftest.err
>conftest.er1
1533 cat conftest.er1
>&5
1534 mv -f conftest.er1 conftest.err
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.
$ac_objext; then :
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.
$ac_ext >&5
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 as_fn_set_status
$ac_retval
1551 } # ac_fn_c_try_compile
1553 # ac_fn_c_try_run LINENO
1554 # ----------------------
1555 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1556 # that executables *can* be run.
1559 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1560 if { { ac_try
="$ac_link"
1562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_link") 2>&5
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1571 { { case "(($ac_try" in
1572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1573 *) ac_try_echo
=$ac_try;;
1575 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_try") 2>&5
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; }; }; then :
1583 $as_echo "$as_me: program exited with status $ac_status" >&5
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.
$ac_ext >&5
1587 ac_retval
=$ac_status
1589 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status
$ac_retval
1595 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1596 # -------------------------------------------------------
1597 # Tests whether HEADER exists and can be compiled using the include files in
1598 # INCLUDES, setting the cache variable VAR accordingly.
1599 ac_fn_c_check_header_compile
()
1601 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603 $as_echo_n "checking for $2... " >&6; }
1604 if eval \
${$3+:} false
; then :
1605 $as_echo_n "(cached) " >&6
1607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1612 if ac_fn_c_try_compile
"$LINENO"; then :
1617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 $as_echo "$ac_res" >&6; }
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 } # ac_fn_c_check_header_compile
1626 # ac_fn_c_try_cpp LINENO
1627 # ----------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1632 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } > conftest.i && {
1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1663 # ac_fn_c_try_link LINENO
1664 # -----------------------
1665 # Try to link conftest.$ac_ext, and return whether this succeeded.
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext conftest$ac_exeext
1670 if { { ac_try="$ac_link"
1672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1673 *) ac_try_echo
=$ac_try;;
1675 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_link") 2>conftest.err
1679 if test -s conftest.err
; then
1680 grep -v '^ *+' conftest.err
>conftest.er1
1681 cat conftest.er1
>&5
1682 mv -f conftest.er1 conftest.err
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest
$ac_exeext && {
1689 test "$cross_compiling" = yes ||
1690 test -x conftest
$ac_exeext
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.
$ac_ext >&5
1699 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1700 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1701 # interfere with the next link command; also delete a directory that is
1702 # left behind by Apple's compiler. We do this before executing the actions.
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status
$ac_retval
1707 } # ac_fn_c_try_link
1709 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1710 # -------------------------------------------
1711 # Tests whether TYPE exists after having included INCLUDES, setting cache
1712 # variable VAR accordingly.
1713 ac_fn_c_check_type
()
1715 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \
${$3+:} false
; then :
1719 $as_echo_n "(cached) " >&6
1722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1734 if ac_fn_c_try_compile
"$LINENO"; then :
1735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1747 if ac_fn_c_try_compile
"$LINENO"; then :
1752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 } # ac_fn_c_check_type
1762 cat >config.log
<<_ACEOF
1763 This file contains any messages produced by compilers while
1764 running configure, to aid debugging if configure makes a mistake.
1766 It was created by $as_me, which was
1767 generated by GNU Autoconf 2.69. Invocation command line was
1779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1780 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1781 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1782 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1783 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1786 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1788 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1789 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1791 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1792 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1793 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1794 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1802 test -z "$as_dir" && as_dir
=.
1803 $as_echo "PATH: $as_dir"
1819 # Keep a trace of the command line.
1820 # Strip out --no-create and --no-recursion so they do not pile up.
1821 # Strip out --silent because we don't want to record it for future runs.
1822 # Also quote any args containing shell meta-characters.
1823 # Make two passes to allow for proper duplicate-argument suppression.
1827 ac_must_keep_next
=false
1833 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1834 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1835 |
-silent |
--silent |
--silen |
--sile |
--sil)
1838 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1841 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1843 as_fn_append ac_configure_args1
" '$ac_arg'"
1844 if test $ac_must_keep_next = true
; then
1845 ac_must_keep_next
=false
# Got value, back to normal.
1848 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1849 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1850 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1851 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1852 case "$ac_configure_args0 " in
1853 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1856 -* ) ac_must_keep_next
=true
;;
1859 as_fn_append ac_configure_args
" '$ac_arg'"
1864 { ac_configure_args0
=; unset ac_configure_args0
;}
1865 { ac_configure_args1
=; unset ac_configure_args1
;}
1867 # When interrupted or exit'd, cleanup temporary files, and complete
1868 # config.log. We remove comments because anyway the quotes in there
1869 # would cause problems or look ugly.
1870 # WARNING: Use '\'' to represent an apostrophe within the trap.
1871 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1872 trap 'exit_status=$?
1873 # Save into config.log some information that might help in debugging.
1877 $as_echo "## ---------------- ##
1878 ## Cache variables. ##
1879 ## ---------------- ##"
1881 # The following way of writing the cache mishandles newlines in values,
1883 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1884 eval ac_val=\$$ac_var
1888 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1889 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1892 _ | IFS | as_nl) ;; #(
1893 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1894 *) { eval $ac_var=; unset $ac_var;} ;;
1899 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1900 *${as_nl}ac_space=\ *)
1902 "s/'\''/'\''\\\\'\'''\''/g;
1903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1906 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1913 $as_echo "## ----------------- ##
1914 ## Output variables. ##
1915 ## ----------------- ##"
1917 for ac_var in $ac_subst_vars
1919 eval ac_val=\$$ac_var
1921 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923 $as_echo "$ac_var='\''$ac_val'\''"
1927 if test -n "$ac_subst_files"; then
1928 $as_echo "## ------------------- ##
1929 ## File substitutions. ##
1930 ## ------------------- ##"
1932 for ac_var
in $ac_subst_files
1934 eval ac_val
=\$
$ac_var
1936 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1938 $as_echo "$ac_var='\''$ac_val'\''"
1943 if test -s confdefs.h; then
1944 $as_echo "## ----------- ##
1951 test "$ac_signal" != 0 &&
1952 $as_echo "$as_me: caught signal $ac_signal"
1953 $as_echo "$as_me: exit $exit_status"
1955 rm -f core *.core core.conftest.* &&
1956 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1959 for ac_signal
in 1 2 13 15; do
1960 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1964 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1965 rm -f -r conftest
* confdefs.h
1967 $as_echo "/* confdefs.h */" > confdefs.h
1969 # Predefined preprocessor variables.
1971 cat >>confdefs.h
<<_ACEOF
1972 #define PACKAGE_NAME "$PACKAGE_NAME"
1975 cat >>confdefs.h
<<_ACEOF
1976 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1979 cat >>confdefs.h
<<_ACEOF
1980 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1983 cat >>confdefs.h
<<_ACEOF
1984 #define PACKAGE_STRING "$PACKAGE_STRING"
1987 cat >>confdefs.h
<<_ACEOF
1988 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1991 cat >>confdefs.h
<<_ACEOF
1992 #define PACKAGE_URL "$PACKAGE_URL"
1996 # Let the site file select an alternate cache file if it wants to.
1997 # Prefer an explicitly selected file to automatically selected ones.
2000 if test -n "$CONFIG_SITE"; then
2001 # We do not want a PATH search for config.site.
2002 case $CONFIG_SITE in #((
2003 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2004 */*) ac_site_file1
=$CONFIG_SITE;;
2005 *) ac_site_file1
=.
/$CONFIG_SITE;;
2007 elif test "x$prefix" != xNONE
; then
2008 ac_site_file1
=$prefix/share
/config.site
2009 ac_site_file2
=$prefix/etc
/config.site
2011 ac_site_file1
=$ac_default_prefix/share
/config.site
2012 ac_site_file2
=$ac_default_prefix/etc
/config.site
2014 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2016 test "x$ac_site_file" = xNONE
&& continue
2017 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2019 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2020 sed 's/^/| /' "$ac_site_file" >&5
2022 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2024 as_fn_error $?
"failed to load site script $ac_site_file
2025 See \`config.log' for more details" "$LINENO" 5; }
2029 if test -r "$cache_file"; then
2030 # Some versions of bash will fail to source /dev/null (special files
2031 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2032 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2034 $as_echo "$as_me: loading cache $cache_file" >&6;}
2036 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2037 *) .
"./$cache_file";;
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2042 $as_echo "$as_me: creating cache $cache_file" >&6;}
2046 # Check that the precious variables saved in the cache have kept the same
2048 ac_cache_corrupted
=false
2049 for ac_var
in $ac_precious_vars; do
2050 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2051 eval ac_new_set
=\
$ac_env_${ac_var}_set
2052 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2053 eval ac_new_val
=\
$ac_env_${ac_var}_value
2054 case $ac_old_set,$ac_new_set in
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2057 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2058 ac_cache_corrupted
=: ;;
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2061 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2062 ac_cache_corrupted
=: ;;
2065 if test "x$ac_old_val" != "x$ac_new_val"; then
2066 # differences in whitespace do not lead to failure.
2067 ac_old_val_w
=`echo x $ac_old_val`
2068 ac_new_val_w
=`echo x $ac_new_val`
2069 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2071 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2072 ac_cache_corrupted
=:
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2075 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2076 eval $ac_var=\
$ac_old_val
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2079 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2081 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2084 # Pass precious variables to config.status.
2085 if test "$ac_new_set" = set; then
2087 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2088 *) ac_arg
=$ac_var=$ac_new_val ;;
2090 case " $ac_configure_args " in
2091 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2092 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2096 if $ac_cache_corrupted; then
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2100 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2101 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2103 ## -------------------- ##
2104 ## Main body of script. ##
2105 ## -------------------- ##
2108 ac_cpp
='$CPP $CPPFLAGS'
2109 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2117 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2118 if test -f "$ac_dir/install-sh"; then
2120 ac_install_sh
="$ac_aux_dir/install-sh -c"
2122 elif test -f "$ac_dir/install.sh"; then
2124 ac_install_sh
="$ac_aux_dir/install.sh -c"
2126 elif test -f "$ac_dir/shtool"; then
2128 ac_install_sh
="$ac_aux_dir/shtool install -c"
2132 if test -z "$ac_aux_dir"; then
2133 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2136 # These three variables are undocumented and unsupported,
2137 # and are intended to be withdrawn in a future Autoconf release.
2138 # They can cause serious problems if a builder's source tree is in a directory
2139 # whose full name contains unusual characters.
2140 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2141 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2142 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2145 # Find a good install program. We prefer a C program (faster),
2146 # so one script is as good as another. But avoid the broken or
2147 # incompatible versions:
2148 # SysV /etc/install, /usr/sbin/install
2149 # SunOS /usr/etc/install
2150 # IRIX /sbin/install
2152 # AmigaOS /C/install, which installs bootblocks on floppy discs
2153 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2154 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2155 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2156 # OS/2's system install, which has a completely different semantic
2157 # ./install, which can be erroneously created by make from ./install.sh.
2158 # Reject install programs that cannot install multiple files.
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2160 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2161 if test -z "$INSTALL"; then
2162 if ${ac_cv_path_install+:} false
; then :
2163 $as_echo_n "(cached) " >&6
2165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2169 test -z "$as_dir" && as_dir
=.
2170 # Account for people who put trailing slashes in PATH elements.
2171 case $as_dir/ in #((
2172 .
/ | .
// |
/[cC
]/* | \
2173 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2174 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2177 # OSF1 and SCO ODT 3.0 have their own names for install.
2178 # Don't use installbsd from OSF since it installs stuff as root
2180 for ac_prog
in ginstall scoinst
install; do
2181 for ac_exec_ext
in '' $ac_executable_extensions; do
2182 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2183 if test $ac_prog = install &&
2184 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2185 # AIX install. It has an incompatible calling convention.
2187 elif test $ac_prog = install &&
2188 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2189 # program-specific install script used by HP pwplus--don't use.
2192 rm -rf conftest.one conftest.two conftest.dir
2193 echo one
> conftest.one
2194 echo two
> conftest.two
2196 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2197 test -s conftest.one
&& test -s conftest.two
&&
2198 test -s conftest.dir
/conftest.one
&&
2199 test -s conftest.dir
/conftest.two
2201 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2214 rm -rf conftest.one conftest.two conftest.dir
2217 if test "${ac_cv_path_install+set}" = set; then
2218 INSTALL
=$ac_cv_path_install
2220 # As a last resort, use the slow shell script. Don't cache a
2221 # value for INSTALL within a source directory, because that will
2222 # break other packages using the cache if that directory is
2223 # removed, or if the value is a relative name.
2224 INSTALL
=$ac_install_sh
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2228 $as_echo "$INSTALL" >&6; }
2230 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2231 # It thinks the first close brace ends the variable substitution.
2232 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2234 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2236 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2239 ac_cpp
='$CPP $CPPFLAGS'
2240 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2241 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2242 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2243 if test -n "$ac_tool_prefix"; then
2244 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2245 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2247 $as_echo_n "checking for $ac_word... " >&6; }
2248 if ${ac_cv_prog_CC+:} false
; then :
2249 $as_echo_n "(cached) " >&6
2251 if test -n "$CC"; then
2252 ac_cv_prog_CC
="$CC" # Let the user override the test.
2254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir
=.
2259 for ac_exec_ext
in '' $ac_executable_extensions; do
2260 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2261 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 if test -n "$CC"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2274 $as_echo "$CC" >&6; }
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2277 $as_echo "no" >&6; }
2282 if test -z "$ac_cv_prog_CC"; then
2284 # Extract the first word of "gcc", so it can be a program name with args.
2285 set dummy gcc
; ac_word
=$2
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2287 $as_echo_n "checking for $ac_word... " >&6; }
2288 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2289 $as_echo_n "(cached) " >&6
2291 if test -n "$ac_ct_CC"; then
2292 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir
=.
2299 for ac_exec_ext
in '' $ac_executable_extensions; do
2300 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2301 ac_cv_prog_ac_ct_CC
="gcc"
2302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2312 if test -n "$ac_ct_CC"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2314 $as_echo "$ac_ct_CC" >&6; }
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2317 $as_echo "no" >&6; }
2320 if test "x$ac_ct_CC" = x
; then
2323 case $cross_compiling:$ac_tool_warned in
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2327 ac_tool_warned
=yes ;;
2335 if test -z "$CC"; then
2336 if test -n "$ac_tool_prefix"; then
2337 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2338 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2340 $as_echo_n "checking for $ac_word... " >&6; }
2341 if ${ac_cv_prog_CC+:} false
; then :
2342 $as_echo_n "(cached) " >&6
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC
="$CC" # Let the user override the test.
2347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir
=.
2352 for ac_exec_ext
in '' $ac_executable_extensions; do
2353 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2354 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 if test -n "$CC"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2367 $as_echo "$CC" >&6; }
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2370 $as_echo "no" >&6; }
2376 if test -z "$CC"; then
2377 # Extract the first word of "cc", so it can be a program name with args.
2378 set dummy cc
; ac_word
=$2
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2380 $as_echo_n "checking for $ac_word... " >&6; }
2381 if ${ac_cv_prog_CC+:} false
; then :
2382 $as_echo_n "(cached) " >&6
2384 if test -n "$CC"; then
2385 ac_cv_prog_CC
="$CC" # Let the user override the test.
2388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2392 test -z "$as_dir" && as_dir
=.
2393 for ac_exec_ext
in '' $ac_executable_extensions; do
2394 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2395 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2396 ac_prog_rejected
=yes
2400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 if test $ac_prog_rejected = yes; then
2408 # We found a bogon in the path, so make sure we never use it.
2409 set dummy
$ac_cv_prog_CC
2411 if test $# != 0; then
2412 # We chose a different compiler from the bogus one.
2413 # However, it has the same basename, so the bogon will be chosen
2414 # first if we set CC to just the basename; use the full file name.
2416 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2422 if test -n "$CC"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2424 $as_echo "$CC" >&6; }
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427 $as_echo "no" >&6; }
2432 if test -z "$CC"; then
2433 if test -n "$ac_tool_prefix"; then
2434 for ac_prog
in cl.exe
2436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2437 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2439 $as_echo_n "checking for $ac_word... " >&6; }
2440 if ${ac_cv_prog_CC+:} false
; then :
2441 $as_echo_n "(cached) " >&6
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC
="$CC" # Let the user override the test.
2446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir
=.
2451 for ac_exec_ext
in '' $ac_executable_extensions; do
2452 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2453 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 if test -n "$CC"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2466 $as_echo "$CC" >&6; }
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2469 $as_echo "no" >&6; }
2473 test -n "$CC" && break
2476 if test -z "$CC"; then
2478 for ac_prog
in cl.exe
2480 # Extract the first word of "$ac_prog", so it can be a program name with args.
2481 set dummy
$ac_prog; ac_word
=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2485 $as_echo_n "(cached) " >&6
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir
=.
2495 for ac_exec_ext
in '' $ac_executable_extensions; do
2496 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_ac_ct_CC
="$ac_prog"
2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2508 if test -n "$ac_ct_CC"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2510 $as_echo "$ac_ct_CC" >&6; }
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2517 test -n "$ac_ct_CC" && break
2520 if test "x$ac_ct_CC" = x
; then
2523 case $cross_compiling:$ac_tool_warned in
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2527 ac_tool_warned
=yes ;;
2536 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538 as_fn_error $?
"no acceptable C compiler found in \$PATH
2539 See \`config.log' for more details" "$LINENO" 5; }
2541 # Provide some information about the compiler.
2542 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2545 for ac_option
in --version -v -V -qversion; do
2546 { { ac_try
="$ac_compiler $ac_option >&5"
2548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2552 $as_echo "$ac_try_echo"; } >&5
2553 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2555 if test -s conftest.err; then
2557 ... rest of stderr output deleted ...
2558 10q' conftest.err >conftest.er1
2559 cat conftest.er1 >&5
2561 rm -f conftest.er1 conftest.err
2562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2563 test $ac_status = 0; }
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2577 ac_clean_files_save=$ac_clean_files
2578 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2579 # Try to create an executable without -o first, disregard a.out.
2580 # It will help us diagnose broken compilers, and finding out an intuition
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2583 $as_echo_n "checking whether the C compiler works... " >&6; }
2584 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2586 # The possible output files:
2587 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2590 for ac_file in $ac_files
2593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2594 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2599 if { { ac_try="$ac_link_default"
2601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2602 *) ac_try_echo
=$ac_try;;
2604 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2605 $as_echo "$ac_try_echo"; } >&5
2606 (eval "$ac_link_default") 2>&5
2608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2609 test $ac_status = 0; }; then :
2610 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2611 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2612 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2613 # so that the user can short-circuit this test for compilers unknown to
2615 for ac_file
in $ac_files ''
2617 test -f "$ac_file" ||
continue
2619 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2622 # We found the default executable, but exeext='' is most
2626 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2628 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2630 # We set ac_cv_exeext here because the later test for it is not
2631 # safe: cross compilers may not add the suffix if given an `-o'
2632 # argument, so we may need to know it at that point already.
2633 # Even if this section looks crufty: it has the advantage of
2640 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2645 if test -z "$ac_file"; then :
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2648 $as_echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.
$ac_ext >&5
2651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653 as_fn_error
77 "C compiler cannot create executables
2654 See \`config.log' for more details" "$LINENO" 5; }
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657 $as_echo "yes" >&6; }
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2660 $as_echo_n "checking for C compiler default output file name... " >&6; }
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2662 $as_echo "$ac_file" >&6; }
2663 ac_exeext
=$ac_cv_exeext
2665 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2666 ac_clean_files
=$ac_clean_files_save
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2668 $as_echo_n "checking for suffix of executables... " >&6; }
2669 if { { ac_try
="$ac_link"
2671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 $as_echo "$ac_try_echo"; } >&5
2676 (eval "$ac_link") 2>&5
2678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2679 test $ac_status = 0; }; then :
2680 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2681 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2682 # work properly (i.e., refer to `conftest.exe'), while it won't with
2684 for ac_file
in conftest.exe conftest conftest.
*; do
2685 test -f "$ac_file" ||
continue
2687 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2688 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2697 See \`config.log' for more details" "$LINENO" 5; }
2699 rm -f conftest conftest
$ac_cv_exeext
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2701 $as_echo "$ac_cv_exeext" >&6; }
2703 rm -f conftest.
$ac_ext
2704 EXEEXT
=$ac_cv_exeext
2706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2712 FILE *f = fopen ("conftest.out", "w");
2713 return ferror (f) || fclose (f) != 0;
2719 ac_clean_files
="$ac_clean_files conftest.out"
2720 # Check that the compiler produces executables we can run. If not, either
2721 # the compiler is broken, or we cross compile.
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2723 $as_echo_n "checking whether we are cross compiling... " >&6; }
2724 if test "$cross_compiling" != yes; then
2725 { { ac_try
="$ac_link"
2727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2731 $as_echo "$ac_try_echo"; } >&5
2732 (eval "$ac_link") 2>&5
2734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2735 test $ac_status = 0; }
2736 if { ac_try='./conftest$ac_cv_exeext'
2737 { { case "(($ac_try" in
2738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2739 *) ac_try_echo
=$ac_try;;
2741 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742 $as_echo "$ac_try_echo"; } >&5
2743 (eval "$ac_try") 2>&5
2745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746 test $ac_status = 0; }; }; then
2749 if test "$cross_compiling" = maybe
; then
2752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2754 as_fn_error $?
"cannot run C compiled programs.
2755 If you meant to cross compile, use \`--host'.
2756 See \`config.log' for more details" "$LINENO" 5; }
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2761 $as_echo "$cross_compiling" >&6; }
2763 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2764 ac_clean_files
=$ac_clean_files_save
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2766 $as_echo_n "checking for suffix of object files... " >&6; }
2767 if ${ac_cv_objext+:} false
; then :
2768 $as_echo_n "(cached) " >&6
2770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2781 rm -f conftest.o conftest.obj
2782 if { { ac_try
="$ac_compile"
2784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788 $as_echo "$ac_try_echo"; } >&5
2789 (eval "$ac_compile") 2>&5
2791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792 test $ac_status = 0; }; then :
2793 for ac_file in conftest.o conftest.obj conftest.*; do
2794 test -f "$ac_file" || continue;
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2797 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2802 $as_echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2807 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2808 See \
`config.log' for more details" "$LINENO" 5; }
2810 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2813 $as_echo "$ac_cv_objext" >&6; }
2814 OBJEXT=$ac_cv_objext
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2817 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2818 if ${ac_cv_c_compiler_gnu+:} false; then :
2819 $as_echo_n "(cached) " >&6
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2835 if ac_fn_c_try_compile "$LINENO"; then :
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2845 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2846 if test $ac_compiler_gnu = yes; then
2851 ac_test_CFLAGS=${CFLAGS+set}
2852 ac_save_CFLAGS=$CFLAGS
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2854 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2855 if ${ac_cv_prog_cc_g+:} false; then :
2856 $as_echo_n "(cached) " >&6
2858 ac_save_c_werror_flag=$ac_c_werror_flag
2859 ac_c_werror_flag=yes
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863 /* end confdefs.h. */
2873 if ac_fn_c_try_compile "$LINENO"; then :
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878 /* end confdefs.h. */
2888 if ac_fn_c_try_compile "$LINENO"; then :
2891 ac_c_werror_flag=$ac_save_c_werror_flag
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894 /* end confdefs.h. */
2904 if ac_fn_c_try_compile "$LINENO"; then :
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 ac_c_werror_flag=$ac_save_c_werror_flag
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2915 $as_echo "$ac_cv_prog_cc_g" >&6; }
2916 if test "$ac_test_CFLAGS" = set; then
2917 CFLAGS=$ac_save_CFLAGS
2918 elif test $ac_cv_prog_cc_g = yes; then
2919 if test "$GCC" = yes; then
2925 if test "$GCC" = yes; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2932 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2933 if ${ac_cv_prog_cc_c89+:} false; then :
2934 $as_echo_n "(cached) " >&6
2936 ac_cv_prog_cc_c89=no
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h. */
2943 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2944 struct buf { int x; };
2945 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2946 static char *e (p, i)
2952 static char *f (char * (*g) (char **, int), char **p, ...)
2957 s = g (p, va_arg (v,int));
2962 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2963 function prototypes and stuff, but not '\xHH' hex character constants.
2964 These don't provoke an error unfortunately, instead are silently treated
2965 as 'x'. The following induces an error, until -std is added to get
2966 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2967 array size at least. It's necessary to write '\x00'==0 to get something
2968 that's true only with -std. */
2969 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2971 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2972 inside strings and character constants. */
2974 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2976 int test (int i, double x);
2977 struct s1 {int (*f) (int a);};
2978 struct s2 {int (*f) (double a);};
2979 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2985 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2990 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2991 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2993 CC="$ac_save_CC $ac_arg"
2994 if ac_fn_c_try_compile "$LINENO"; then :
2995 ac_cv_prog_cc_c89=$ac_arg
2997 rm -f core conftest.err conftest.$ac_objext
2998 test "x$ac_cv_prog_cc_c89" != "xno" && break
3000 rm -f conftest.$ac_ext
3005 case "x$ac_cv_prog_cc_c89" in
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3008 $as_echo "none needed" >&6; } ;;
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3011 $as_echo "unsupported" >&6; } ;;
3013 CC="$CC $ac_cv_prog_cc_c89"
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3015 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3017 if test "x$ac_cv_prog_cc_c89" != xno; then :
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028 # Put a plausible default for CC_FOR_BUILD in Makefile.
3029 if test "x$cross_compiling" = "xno"; then
3030 CC_FOR_BUILD='$(CC)'
3034 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3037 # If we haven't got the data from the intl directory,
3038 # assume NLS is disabled.
3047 if test -f ../../intl/config.intl; then
3048 . ../../intl/config.intl
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3051 $as_echo_n "checking whether NLS is requested... " >&6; }
3052 if test x"$USE_NLS" != xyes; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3057 $as_echo "yes" >&6; }
3059 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3063 $as_echo_n "checking for catalogs to be installed... " >&6; }
3064 # Look for .po and .gmo files in the source directory.
3067 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3068 # If there aren't any .gmo files the shell will give us the
3069 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3071 case "$cat" in *\**)
3074 # The quadruple backslash is collapsed to a double backslash
3075 # by the backticks, then collapsed again by the double quotes,
3076 # leaving us with one backslash in the sed expression (right
3077 # before the dot that mustn't act as a wildcard).
3078 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3079 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
3080 # The user is allowed to set LINGUAS to a list of languages to
3081 # install catalogs for. If it's empty that means "all of them."
3082 if test "x$LINGUAS" = x; then
3083 CATALOGS="$CATALOGS $cat"
3084 XLINGUAS="$XLINGUAS $lang"
3086 case "$LINGUAS" in *$lang*)
3087 CATALOGS="$CATALOGS $cat"
3088 XLINGUAS="$XLINGUAS $lang"
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3095 $as_echo "$LINGUAS" >&6; }
3109 # Check whether --enable-sim-bitsize was given.
3110 if test "${enable_sim_bitsize+set}" = set; then :
3111 enableval=$enable_sim_bitsize; case "${enableval}" in
3112 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
3113 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
3115 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3116 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3123 # Check whether --enable-sim-config was given.
3124 if test "${enable_sim_config+set}" = set; then :
3125 enableval=$enable_sim_config; case "${enableval}" in
3126 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
3127 *) if test -f "${srcdir}/${enableval}"; then
3128 sim_config="${enableval}";
3129 elif test -f "${srcdir}/${enableval}-config.h"; then
3130 sim_config="${enableval}-config.h"
3132 as_fn_error $? "\"Config file $enableval was not found\"" "$LINENO" 5;
3133 sim_config=std-config.h
3136 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
3137 echo "Setting config flags = $sim_config" 6>&1
3140 sim_config="std-config.h"
3141 if test x"$silent" != x"yes"; then
3142 echo "Setting config flags = $sim_config" 6>&1
3147 # Check whether --enable-sim-decode-mechanism was given.
3148 if test "${enable_sim_decode_mechanism+set}" = set; then :
3149 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
3150 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
3151 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
3152 *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3153 sim_decode_mechanism="switch";;
3155 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
3156 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
3159 sim_decode_mechanism=""
3160 if test x"$silent" != x"yes"; then
3161 echo "Setting decode mechanism flags = $sim_decode_mechanism"
3166 # Check whether --enable-sim-default-model was given.
3167 if test "${enable_sim_default_model+set}" = set; then :
3168 enableval=$enable_sim_default_model; case "${enableval}" in
3169 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
3170 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
3172 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3173 echo "Setting default-model flags = $sim_default_model" 6>&1
3176 sim_default_model=""
3180 # Check whether --enable-sim-duplicate was given.
3181 if test "${enable_sim_duplicate+set}" = set; then :
3182 enableval=$enable_sim_duplicate; case "${enableval}" in
3185 *) as_fn_error $? "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
3187 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
3188 echo "Setting duplicate flags = $sim_dup" 6>&1
3192 if test x"$silent" != x"yes"; then
3193 echo "Setting duplicate flags = $sim_dup" 6>&1
3198 # Check whether --enable-sim-filter was given.
3199 if test "${enable_sim_filter+set}" = set; then :
3200 enableval=$enable_sim_filter; case "${enableval}" in
3201 yes) as_fn_error $? "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
3203 *) sim_filter="-F $enableval";;
3205 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
3206 echo "Setting filter flags = $sim_filter" 6>&1
3209 sim_filter="-F 32,f,o"
3210 if test x"$silent" != x"yes"; then
3211 echo "Setting filter flags = $sim_filter" 6>&1
3216 # Check whether --enable-sim-float was given.
3217 if test "${enable_sim_float+set}" = set; then :
3218 enableval=$enable_sim_float; case "${enableval}" in
3219 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3220 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3221 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3222 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3223 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
3225 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3226 echo "Setting float flags = $sim_float" 6>&1
3231 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3232 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3240 $as_echo_n "checking if union semun defined... " >&6; }
3241 if ${ac_cv_HAS_UNION_SEMUN+:} false; then :
3242 $as_echo_n "(cached) " >&6
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3247 #include <sys/types.h>
3248 #include <sys/ipc.h>
3249 #include <sys/sem.h>
3258 if ac_fn_c_try_compile "$LINENO"; then :
3259 ac_cv_has_union_semun="yes"
3261 ac_cv_has_union_semun="no"
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3265 $as_echo "$ac_cv_has_union_semun" >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3269 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
3272 if test "$ac_cv_has_union_semun" = "yes"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3274 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3275 if ${ac_cv_sysv_sem+:} false; then :
3276 $as_echo_n "(cached) " >&6
3279 if test "$cross_compiling" = yes; then :
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3285 #include <sys/types.h>
3286 #include <sys/ipc.h>
3287 #include <sys/sem.h>
3291 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3294 arg.val = 0; /* avoid implicit type cast to union */
3295 if (semctl(id, 0, IPC_RMID, arg) == -1)
3301 if ac_fn_c_try_run "$LINENO"; then :
3302 ac_cv_sysv_sem="yes"
3306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3307 conftest.$ac_objext conftest.beam conftest.$ac_ext
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3313 $as_echo "$ac_cv_sysv_sem" >&6; }
3314 else # semun is not defined
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3316 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3317 if ${ac_cv_sysv_sem+:} false; then :
3318 $as_echo_n "(cached) " >&6
3321 if test "$cross_compiling" = yes; then :
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3327 #include <sys/types.h>
3328 #include <sys/ipc.h>
3329 #include <sys/sem.h>
3332 struct semid_ds *buf;
3338 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3341 arg.val = 0; /* avoid implicit type cast to union */
3342 if (semctl(id, 0, IPC_RMID, arg) == -1)
3348 if ac_fn_c_try_run "$LINENO"; then :
3349 ac_cv_sysv_sem="yes"
3353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3354 conftest.$ac_objext conftest.beam conftest.$ac_ext
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3360 $as_echo "$ac_cv_sysv_sem" >&6; }
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3364 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
3365 if ${ac_cv_sysv_shm+:} false; then :
3366 $as_echo_n "(cached) " >&6
3369 if test "$cross_compiling" = yes; then :
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3375 #include <sys/types.h>
3376 #include <sys/ipc.h>
3377 #include <sys/shm.h>
3379 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3382 if (shmctl(id, IPC_RMID, 0) == -1)
3388 if ac_fn_c_try_run "$LINENO"; then :
3389 ac_cv_sysv_shm="yes"
3393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3394 conftest.$ac_objext conftest.beam conftest.$ac_ext
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
3400 $as_echo "$ac_cv_sysv_shm" >&6; }
3402 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3403 sim_sysv_ipc_hw=",sem,shm";
3408 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3410 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
3415 # Check whether --enable-sim-hardware was given.
3416 if test "${enable_sim_hardware+set}" = set; then :
3417 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}"
3418 case "${enableval}" in
3420 no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
3421 ,*) hardware="${hardware}${enableval}";;
3422 *,) hardware="${enableval}${hardware}";;
3423 *) hardware="${enableval}"'';;
3425 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3426 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3427 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
3428 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3431 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3432 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3433 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3434 if test x"$silent" != x"yes"; then
3435 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3439 # Check whether --enable-sim-hostbitsize was given.
3440 if test "${enable_sim_hostbitsize+set}" = set; then :
3441 enableval=$enable_sim_hostbitsize; case "${enableval}" in
3442 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
3443 *) as_fn_error $? "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
3445 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
3446 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3453 # Check whether --enable-sim-icache was given.
3454 if test "${enable_sim_icache+set}" = set; then :
3455 enableval=$enable_sim_icache; icache="-R"
3456 case "${enableval}" in
3457 yes) icache="1024"; sim_icache="-I $icache";;
3458 no) sim_icache="-R";;
3461 for x in `echo "${enableval}" |
sed -e "s/,/ /g"`; do
3463 define) sim_icache="${sim_icache}R";;
3464 semantic) sim_icache="${sim_icache}C";;
3465 insn) sim_icache="${sim_icache}S";;
3466 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
3467 *) as_fn_error $? "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
3470 sim_icache="${sim_icache}I $icache";;
3472 if test x"$silent" != x"yes" && test x"$icache" != x""; then
3473 echo "Setting instruction cache size to $icache ($sim_icache)"
3476 sim_icache="-CSRI 1024"
3477 if test x"$silent" != x"yes"; then
3478 echo "Setting instruction cache size to 1024 ($sim_icache)"
3483 # Check whether --enable-sim-inline was given.
3484 if test "${enable_sim_inline+set}" = set; then :
3485 enableval=$enable_sim_inline; sim_inline=""
3486 case "$enableval" in
3487 no) sim_inline="-DDEFAULT_INLINE=0";;
3488 0) sim_inline="-DDEFAULT_INLINE=0";;
3489 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
3490 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
3491 *) for x in `echo "$enableval" |
sed -e "s/,/ /g"`; do
3494 *_INLINE=*) new_flag="-D$x";;
3495 *=*) new_flag=`echo "$x" |
sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3496 *_INLINE) new_flag="-D$x=ALL_INLINE";;
3497 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
3499 if test x"$sim_inline" = x""; then
3500 sim_inline="$new_flag"
3502 sim_inline="$sim_inline $new_flag"
3506 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
3507 echo "Setting inline flags = $sim_inline" 6>&1
3510 if test x"$GCC" != ""; then
3511 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
3512 if test x"$silent" != x"yes"; then
3513 echo "Setting inline flags = $sim_inline" 6>&1
3521 # Check whether --enable-sim-jump was given.
3522 if test "${enable_sim_jump+set}" = set; then :
3523 enableval=$enable_sim_jump; case "${enableval}" in
3524 yes) sim_jump="-J";;
3526 *) as_fn_error $? "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
3528 if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
3529 echo "Setting jump flag = $sim_jump" 6>&1
3533 if test x"$silent" != x"yes"; then
3534 echo "Setting jump flag = $sim_jump" 6>&1
3539 # Check whether --enable-sim-line-nr was given.
3540 if test "${enable_sim_line_nr+set}" = set; then :
3541 enableval=$enable_sim_line_nr; case "${enableval}" in
3542 yes) sim_line_nr="";;
3543 no) sim_line_nr="-L";;
3544 *) as_fn_error $? "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
3546 if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
3547 echo "Setting warning flags = $sim_line_nr" 6>&1
3554 # Check whether --enable-sim-model was given.
3555 if test "${enable_sim_model+set}" = set; then :
3556 enableval=$enable_sim_model; case "${enableval}" in
3557 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
3558 *) sim_model="-DWITH_MODEL=${enableval}";;
3560 if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
3561 echo "Setting model flags = $sim_model" 6>&1
3568 # Check whether --enable-sim-model-issue was given.
3569 if test "${enable_sim_model_issue+set}" = set; then :
3570 enableval=$enable_sim_model_issue; case "${enableval}" in
3571 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3572 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3573 *) as_fn_error $? "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
3575 if test x"$silent" != x"yes"; then
3576 echo "Setting model-issue flags = $sim_model_issue" 6>&1
3583 # Check whether --enable-sim-monitor was given.
3584 if test "${enable_sim_monitor+set}" = set; then :
3585 enableval=$enable_sim_monitor; case "${enableval}" in
3586 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3587 no) sim_monitor="-DWITH_MON=0";;
3588 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3589 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3590 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5;;
3592 if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
3593 echo "Setting monitor flags = $sim_monitor" 6>&1
3600 # Check whether --enable-sim-opcode was given.
3601 if test "${enable_sim_opcode+set}" = set; then :
3602 enableval=$enable_sim_opcode; case "${enableval}" in
3603 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
3604 *) if test -f "${srcdir}/${enableval}"; then
3605 sim_opcode="${enableval}"
3606 elif test -f "${srcdir}/dc-${enableval}"; then
3607 sim_opcode="dc-${enableval}"
3609 as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3610 sim_opcode="dc-complex"
3613 if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
3614 echo "Setting opcode flags = $sim_opcode" 6>&1
3617 sim_opcode="dc-complex"
3618 if test x"$silent" != x"yes"; then
3619 echo "Setting opcode flags = $sim_opcode"
3624 # Check whether --enable-sim-packages was given.
3625 if test "${enable_sim_packages+set}" = set; then :
3626 enableval=$enable_sim_packages; packages=disklabel
3627 case "${enableval}" in
3629 no) as_fn_error $? "\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages="";;
3630 ,*) packages="${packages}${enableval}";;
3631 *,) packages="${enableval}${packages}";;
3632 *) packages="${enableval}"'';;
3634 sim_pk_src=`echo $packages |
sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3635 sim_pk_obj=`echo $sim_pk_src |
sed -e 's/\.c/.o/g'`
3636 if test x"$silent" != x"yes" && test x"$packages" != x""; then
3637 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3641 sim_pk_src=`echo $packages |
sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3642 sim_pk_obj=`echo $sim_pk_src |
sed -e 's/\.c/.o/g'`
3643 if test x"$silent" != x"yes"; then
3644 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3649 # Check whether --enable-sim-reserved-bits was given.
3650 if test "${enable_sim_reserved_bits+set}" = set; then :
3651 enableval=$enable_sim_reserved_bits; case "${enableval}" in
3652 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
3653 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
3654 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved="";;
3656 if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
3657 echo "Setting reserved flags = $sim_reserved" 6>&1
3664 # Check whether --enable-sim-smp was given.
3665 if test "${enable_sim_smp+set}" = set; then :
3666 enableval=$enable_sim_smp; case "${enableval}" in
3667 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
3668 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
3669 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
3671 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
3672 echo "Setting smp flags = $sim_smp" 6>&1
3675 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
3676 if test x"$silent" != x"yes"; then
3677 echo "Setting smp flags = $sim_smp" 6>&1
3682 # Check whether --enable-sim-switch was given.
3683 if test "${enable_sim_switch+set}" = set; then :
3684 enableval=$enable_sim_switch; case "${enableval}" in
3685 yes) sim_switch="-s";;
3687 *) as_fn_error $? "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
3689 if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
3690 echo "Setting switch flags = $sim_switch" 6>&1
3694 if test x"$silent" != x"yes"; then
3695 echo "Setting switch flags = $sim_switch" 6>&1
3700 # Check whether --enable-sim-timebase was given.
3701 if test "${enable_sim_timebase+set}" = set; then :
3702 enableval=$enable_sim_timebase; case "${enableval}" in
3703 yes) sim_timebase="-DWITH_TIME_BASE=1";;
3704 no) sim_timebase="-DWITH_TIME_BASE=0";;
3705 *) as_fn_error $? "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
3707 if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
3708 echo "Setting timebase flags = $sim_timebase" 6>&1
3715 # Check whether --enable-sim-warnings was given.
3716 if test "${enable_sim_warnings+set}" = set; then :
3717 enableval=$enable_sim_warnings; case "${enableval}" in
3718 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3719 no) sim_warnings="-w";;
3720 *) sim_warnings=`echo "${enableval}" |
sed -e "s/,/ /g"`;;
3722 if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
3723 echo "Setting warning flags = $sim_warnings" 6>&1
3730 # Check whether --enable-sim-xor-endian was given.
3731 if test "${enable_sim_xor_endian+set}" = set; then :
3732 enableval=$enable_sim_xor_endian; case "${enableval}" in
3733 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
3734 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
3735 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
3737 if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
3738 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3745 # Make sure we can run config.sub.
3746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3747 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3750 $as_echo_n "checking build system type... " >&6; }
3751 if ${ac_cv_build+:} false; then :
3752 $as_echo_n "(cached) " >&6
3754 ac_build_alias=$build_alias
3755 test "x$ac_build_alias" = x &&
3756 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3757 test "x$ac_build_alias" = x &&
3758 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3759 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3760 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3764 $as_echo "$ac_cv_build" >&6; }
3765 case $ac_cv_build in
3767 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3770 ac_save_IFS=$IFS; IFS='-'
3776 # Remember, the first character of IFS is used to create $*,
3777 # except with old shells:
3780 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3784 $as_echo_n "checking host system type... " >&6; }
3785 if ${ac_cv_host+:} false; then :
3786 $as_echo_n "(cached) " >&6
3788 if test "x$host_alias" = x; then
3789 ac_cv_host=$ac_cv_build
3791 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3797 $as_echo "$ac_cv_host" >&6; }
3800 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3803 ac_save_IFS=$IFS; IFS='-'
3809 # Remember, the first character of IFS is used to create $*,
3810 # except with old shells:
3813 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3817 $as_echo_n "checking target system type... " >&6; }
3818 if ${ac_cv_target+:} false; then :
3819 $as_echo_n "(cached) " >&6
3821 if test "x$target_alias" = x; then
3822 ac_cv_target=$ac_cv_host
3824 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3825 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3830 $as_echo "$ac_cv_target" >&6; }
3831 case $ac_cv_target in
3833 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3835 target=$ac_cv_target
3836 ac_save_IFS=$IFS; IFS='-'
3842 # Remember, the first character of IFS is used to create $*,
3843 # except with old shells:
3846 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3849 # The aliases save the names the user supplied, while $host etc.
3850 # will get canonicalized.
3851 test -n "$target_alias" &&
3852 test "$program_prefix$program_suffix$program_transform_name" = \
3854 program_prefix=${target_alias}-
3856 test "$program_prefix" != NONE &&
3857 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3858 # Use a double $ so make ignores it.
3859 test "$program_suffix" != NONE &&
3860 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3861 # Double any \ or $.
3862 # By default was `s
,x
,x
', remove it if useless.
3863 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3864 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3867 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
3868 # using the same condition.
3870 # Use the system's zlib library.
3871 zlibdir
="-L\$(top_builddir)/../zlib"
3872 zlibinc
="-I\$(top_srcdir)/../zlib"
3874 # Check whether --with-system-zlib was given.
3875 if test "${with_system_zlib+set}" = set; then :
3876 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
3887 # BFD uses libdl when when plugins enabled.
3889 ac_cpp
='$CPP $CPPFLAGS'
3890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3894 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3895 # On Suns, sometimes $CPP names a directory.
3896 if test -n "$CPP" && test -d "$CPP"; then
3899 if test -z "$CPP"; then
3900 if ${ac_cv_prog_CPP+:} false
; then :
3901 $as_echo_n "(cached) " >&6
3903 # Double quotes because CPP needs to be expanded
3904 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3907 for ac_c_preproc_warn_flag
in '' yes
3909 # Use a header file that comes with gcc, so configuring glibc
3910 # with a fresh cross-compiler works.
3911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3912 # <limits.h> exists even on freestanding compilers.
3913 # On the NeXT, cc -E runs the code through the compiler's parser,
3914 # not just through cpp. "Syntax error" is here to catch this case.
3915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3918 # include <limits.h>
3920 # include <assert.h>
3924 if ac_fn_c_try_cpp
"$LINENO"; then :
3927 # Broken: fails on valid input.
3930 rm -f conftest.err conftest.i conftest.
$ac_ext
3932 # OK, works on sane cases. Now check whether nonexistent headers
3933 # can be detected and how.
3934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3936 #include <ac_nonexistent.h>
3938 if ac_fn_c_try_cpp
"$LINENO"; then :
3939 # Broken: success on invalid input.
3942 # Passes both tests.
3946 rm -f conftest.err conftest.i conftest.
$ac_ext
3949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3950 rm -f conftest.i conftest.err conftest.
$ac_ext
3951 if $ac_preproc_ok; then :
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3964 $as_echo "$CPP" >&6; }
3966 for ac_c_preproc_warn_flag
in '' yes
3968 # Use a header file that comes with gcc, so configuring glibc
3969 # with a fresh cross-compiler works.
3970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971 # <limits.h> exists even on freestanding compilers.
3972 # On the NeXT, cc -E runs the code through the compiler's parser,
3973 # not just through cpp. "Syntax error" is here to catch this case.
3974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3977 # include <limits.h>
3979 # include <assert.h>
3983 if ac_fn_c_try_cpp
"$LINENO"; then :
3986 # Broken: fails on valid input.
3989 rm -f conftest.err conftest.i conftest.
$ac_ext
3991 # OK, works on sane cases. Now check whether nonexistent headers
3992 # can be detected and how.
3993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #include <ac_nonexistent.h>
3997 if ac_fn_c_try_cpp
"$LINENO"; then :
3998 # Broken: success on invalid input.
4001 # Passes both tests.
4005 rm -f conftest.err conftest.i conftest.
$ac_ext
4008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4009 rm -f conftest.i conftest.err conftest.
$ac_ext
4010 if $ac_preproc_ok; then :
4013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4015 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4016 See \`config.log' for more details" "$LINENO" 5; }
4020 ac_cpp
='$CPP $CPPFLAGS'
4021 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4022 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4023 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4027 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4028 if ${ac_cv_path_GREP+:} false
; then :
4029 $as_echo_n "(cached) " >&6
4031 if test -z "$GREP"; then
4032 ac_path_GREP_found
=false
4033 # Loop through the user's path and test for each of PROGNAME-LIST
4034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4035 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4038 test -z "$as_dir" && as_dir
=.
4039 for ac_prog
in grep ggrep
; do
4040 for ac_exec_ext
in '' $ac_executable_extensions; do
4041 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4042 as_fn_executable_p
"$ac_path_GREP" ||
continue
4043 # Check for GNU ac_path_GREP and select it if it is found.
4044 # Check for GNU $ac_path_GREP
4045 case `"$ac_path_GREP" --version 2>&1` in
4047 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4050 $as_echo_n 0123456789 >"conftest.in"
4053 cat "conftest.in" "conftest.in" >"conftest.tmp"
4054 mv "conftest.tmp" "conftest.in"
4055 cp "conftest.in" "conftest.nl"
4056 $as_echo 'GREP' >> "conftest.nl"
4057 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4058 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4059 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4060 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4061 # Best one so far, save it but keep looking for a better one
4062 ac_cv_path_GREP
="$ac_path_GREP"
4063 ac_path_GREP_max
=$ac_count
4065 # 10*(2^10) chars as input seems more than enough
4066 test $ac_count -gt 10 && break
4068 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4071 $ac_path_GREP_found && break 3
4076 if test -z "$ac_cv_path_GREP"; then
4077 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4080 ac_cv_path_GREP
=$GREP
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4085 $as_echo "$ac_cv_path_GREP" >&6; }
4086 GREP
="$ac_cv_path_GREP"
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4090 $as_echo_n "checking for egrep... " >&6; }
4091 if ${ac_cv_path_EGREP+:} false
; then :
4092 $as_echo_n "(cached) " >&6
4094 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4095 then ac_cv_path_EGREP
="$GREP -E"
4097 if test -z "$EGREP"; then
4098 ac_path_EGREP_found
=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4101 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4104 test -z "$as_dir" && as_dir
=.
4105 for ac_prog
in egrep; do
4106 for ac_exec_ext
in '' $ac_executable_extensions; do
4107 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4108 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4109 # Check for GNU ac_path_EGREP and select it if it is found.
4110 # Check for GNU $ac_path_EGREP
4111 case `"$ac_path_EGREP" --version 2>&1` in
4113 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4116 $as_echo_n 0123456789 >"conftest.in"
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
4122 $as_echo 'EGREP' >> "conftest.nl"
4123 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4124 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4125 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4126 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_EGREP
="$ac_path_EGREP"
4129 ac_path_EGREP_max
=$ac_count
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4134 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4137 $ac_path_EGREP_found && break 3
4142 if test -z "$ac_cv_path_EGREP"; then
4143 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4146 ac_cv_path_EGREP
=$EGREP
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4152 $as_echo "$ac_cv_path_EGREP" >&6; }
4153 EGREP
="$ac_cv_path_EGREP"
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4157 $as_echo_n "checking for ANSI C header files... " >&6; }
4158 if ${ac_cv_header_stdc+:} false
; then :
4159 $as_echo_n "(cached) " >&6
4161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4176 if ac_fn_c_try_compile
"$LINENO"; then :
4177 ac_cv_header_stdc
=yes
4179 ac_cv_header_stdc
=no
4181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4183 if test $ac_cv_header_stdc = yes; then
4184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4191 $EGREP "memchr" >/dev
/null
2>&1; then :
4194 ac_cv_header_stdc
=no
4200 if test $ac_cv_header_stdc = yes; then
4201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4208 $EGREP "free" >/dev
/null
2>&1; then :
4211 ac_cv_header_stdc
=no
4217 if test $ac_cv_header_stdc = yes; then
4218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4219 if test "$cross_compiling" = yes; then :
4222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4226 #if ((' ' & 0x0FF) == 0x020)
4227 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4228 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4230 # define ISLOWER(c) \
4231 (('a' <= (c) && (c) <= 'i') \
4232 || ('j' <= (c) && (c) <= 'r') \
4233 || ('s' <= (c) && (c) <= 'z'))
4234 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4242 for (i = 0; i < 256; i++)
4243 if (XOR (islower (i), ISLOWER (i))
4244 || toupper (i) != TOUPPER (i))
4249 if ac_fn_c_try_run
"$LINENO"; then :
4252 ac_cv_header_stdc
=no
4254 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4255 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4261 $as_echo "$ac_cv_header_stdc" >&6; }
4262 if test $ac_cv_header_stdc = yes; then
4264 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4269 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4270 inttypes.h stdint.h unistd.h
4272 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4273 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4275 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4276 cat >>confdefs.h
<<_ACEOF
4277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4287 for ac_header
in dlfcn.h
4289 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4291 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4292 cat >>confdefs.h
<<_ACEOF
4293 #define HAVE_DLFCN_H 1
4300 for ac_header
in windows.h
4302 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4304 if test "x$ac_cv_header_windows_h" = xyes
; then :
4305 cat >>confdefs.h
<<_ACEOF
4306 #define HAVE_WINDOWS_H 1
4314 # Check whether --enable-plugins was given.
4315 if test "${enable_plugins+set}" = set; then :
4316 enableval
=$enable_plugins; case "${enableval}" in
4319 if test "$maybe_plugins" != "yes" ; then
4320 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4324 plugins
=$maybe_plugins
4328 if test "$plugins" = "yes"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4330 $as_echo_n "checking for library containing dlsym... " >&6; }
4331 if ${ac_cv_search_dlsym+:} false
; then :
4332 $as_echo_n "(cached) " >&6
4334 ac_func_search_save_LIBS
=$LIBS
4335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4338 /* Override any GCC internal prototype to avoid an error.
4339 Use char because int might match the return type of a GCC
4340 builtin and then its argument prototype would still apply. */
4353 for ac_lib
in '' dl
; do
4354 if test -z "$ac_lib"; then
4355 ac_res
="none required"
4358 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4360 if ac_fn_c_try_link
"$LINENO"; then :
4361 ac_cv_search_dlsym
=$ac_res
4363 rm -f core conftest.err conftest.
$ac_objext \
4365 if ${ac_cv_search_dlsym+:} false
; then :
4369 if ${ac_cv_search_dlsym+:} false
; then :
4372 ac_cv_search_dlsym
=no
4375 LIBS
=$ac_func_search_save_LIBS
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4378 $as_echo "$ac_cv_search_dlsym" >&6; }
4379 ac_res
=$ac_cv_search_dlsym
4380 if test "$ac_res" != no
; then :
4381 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4391 $as_echo "#define USE_WIN32API 1" >>confdefs.h
4396 ac_config_headers
="$ac_config_headers config.h:config.in"
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
4402 $as_echo_n "checking for struct termios... " >&6; }
4403 if ${ac_cv_termios_struct+:} false
; then :
4404 $as_echo_n "(cached) " >&6
4406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 #include <sys/types.h>
4409 #include <sys/termios.h>
4413 static struct termios x;
4423 if ac_fn_c_try_compile
"$LINENO"; then :
4424 ac_cv_termios_struct
=yes
4426 ac_cv_termios_struct
=no
4428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
4432 $as_echo "$ac_cv_termios_struct" >&6; }
4433 if test $ac_cv_termios_struct = yes; then
4434 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
4437 if test "$ac_cv_termios_struct" = "yes"; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
4439 $as_echo_n "checking for c_line field in struct termios... " >&6; }
4440 if ${ac_cv_termios_cline+:} false
; then :
4441 $as_echo_n "(cached) " >&6
4443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445 #include <sys/types.h>
4446 #include <sys/termios.h>
4450 static struct termios x; x.c_line = 0;
4455 if ac_fn_c_try_compile
"$LINENO"; then :
4456 ac_cv_termios_cline
=yes
4458 ac_cv_termios_cline
=no
4460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
4465 $as_echo "$ac_cv_termios_cline" >&6; }
4466 if test $ac_cv_termios_cline = yes; then
4467 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
4470 ac_cv_termios_cline
=no
4473 if test "$ac_cv_termios_struct" != "yes"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
4475 $as_echo_n "checking for struct termio... " >&6; }
4476 if ${ac_cv_termio_struct+:} false
; then :
4477 $as_echo_n "(cached) " >&6
4479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4481 #include <sys/types.h>
4482 #include <sys/termio.h>
4486 static struct termio x;
4496 if ac_fn_c_try_compile
"$LINENO"; then :
4497 ac_cv_termio_struct
=yes
4499 ac_cv_termio_struct
=no
4501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
4505 $as_echo "$ac_cv_termio_struct" >&6; }
4506 if test $ac_cv_termio_struct = yes; then
4507 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
4510 ac_cv_termio_struct
=no
4513 if test "$ac_cv_termio_struct" = "yes"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
4515 $as_echo_n "checking for c_line field in struct termio... " >&6; }
4516 if ${ac_cv_termio_cline+:} false
; then :
4517 $as_echo_n "(cached) " >&6
4519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4521 #include <sys/types.h>
4522 #include <sys/termio.h>
4526 static struct termio x; x.c_line = 0;
4531 if ac_fn_c_try_compile
"$LINENO"; then :
4532 ac_cv_termio_cline
=yes
4534 ac_cv_termio_cline
=no
4536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
4541 $as_echo "$ac_cv_termio_cline" >&6; }
4542 if test $ac_cv_termio_cline = yes; then
4543 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
4546 ac_cv_termio_cline
=no
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
4550 $as_echo_n "checking for struct statfs... " >&6; }
4551 if ${ac_cv_struct_statfs+:} false
; then :
4552 $as_echo_n "(cached) " >&6
4554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #include <sys/types.h>
4557 #ifdef HAVE_SYS_PARAM_H
4558 #include <sys/param.h>
4560 #ifdef HAVE_SYS_MOUNT_H
4561 #include <sys/mount.h>
4563 #ifdef HAVE_SYS_VFS_H
4564 #include <sys/vfs.h>
4566 #ifdef HAVE_SYS_STATFS_H
4567 #include <sys/statfs.h>
4572 static struct statfs s;
4577 if ac_fn_c_try_compile
"$LINENO"; then :
4578 ac_cv_struct_statfs
=yes
4580 ac_cv_struct_statfs
=no
4582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
4586 $as_echo "$ac_cv_struct_statfs" >&6; }
4587 if test $ac_cv_struct_statfs = yes; then
4589 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
4593 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
4594 if test "x$ac_cv_type_long_long" = xyes
; then :
4596 cat >>confdefs.h
<<_ACEOF
4597 #define HAVE_LONG_LONG 1
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
4606 $as_echo_n "checking for /dev/zero... " >&6; }
4607 if ${ac_cv_devzero+:} false
; then :
4608 $as_echo_n "(cached) " >&6
4610 if test "$cross_compiling" = yes; then :
4613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4619 int fd = open ("/dev/zero", O_RDONLY);
4622 for (i = 0; i < sizeof (buf); i++)
4624 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
4626 for (i = 0; i < sizeof (buf); i++)
4632 if ac_fn_c_try_run
"$LINENO"; then :
4637 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4638 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
4644 $as_echo "$ac_cv_devzero" >&6; }
4645 if test $ac_cv_devzero = yes; then
4646 sim_devzero
="-DHAVE_DEVZERO"
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
4652 $as_echo_n "checking for common simulator directory... " >&6; }
4653 if test -f "${srcdir}/../common/callback.c"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4655 $as_echo "yes" >&6; }
4656 sim_callback
="callback.o targ-map.o"
4657 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
4666 $as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
4667 if test -f "${srcdir}/../common/sim-fpu.c"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4669 $as_echo "yes" >&6; }
4670 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4679 # Since we run commands on the build system, we have to create a
4680 # separate config header for the build system if build != host.
4681 if test x
$host = x
$build; then
4682 ac_config_commands
="$ac_config_commands build-config.h"
4690 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
4691 *) realsrcdir
=..
/${srcdir};;
4693 saved_CFLAGS
="${CFLAGS}"
4694 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
4695 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
4696 ${realsrcdir}/configure \
4697 --enable-languages=${enable_languages-all} \
4698 --target=$target_alias --host=$build_alias --build=$build_alias
4699 CFLAGS
="${saved_CFLAGS}"
4700 mv config.h ..
/build-config.h
4710 if test -n "$ac_tool_prefix"; then
4711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4712 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if ${ac_cv_prog_RANLIB+:} false
; then :
4716 $as_echo_n "(cached) " >&6
4718 if test -n "$RANLIB"; then
4719 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir
=.
4726 for ac_exec_ext
in '' $ac_executable_extensions; do
4727 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4728 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 RANLIB
=$ac_cv_prog_RANLIB
4739 if test -n "$RANLIB"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4741 $as_echo "$RANLIB" >&6; }
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4749 if test -z "$ac_cv_prog_RANLIB"; then
4750 ac_ct_RANLIB
=$RANLIB
4751 # Extract the first word of "ranlib", so it can be a program name with args.
4752 set dummy ranlib
; ac_word
=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4756 $as_echo_n "(cached) " >&6
4758 if test -n "$ac_ct_RANLIB"; then
4759 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4765 test -z "$as_dir" && as_dir
=.
4766 for ac_exec_ext
in '' $ac_executable_extensions; do
4767 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4768 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4779 if test -n "$ac_ct_RANLIB"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4781 $as_echo "$ac_ct_RANLIB" >&6; }
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4787 if test "x$ac_ct_RANLIB" = x
; then
4790 case $cross_compiling:$ac_tool_warned in
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4794 ac_tool_warned
=yes ;;
4796 RANLIB
=$ac_ct_RANLIB
4799 RANLIB
="$ac_cv_prog_RANLIB"
4836 ac_config_files
="$ac_config_files Makefile"
4838 ac_config_commands
="$ac_config_commands default"
4840 cat >confcache
<<\_ACEOF
4841 # This file is a shell script that caches the results of configure
4842 # tests run on this system so they can be shared between configure
4843 # scripts and configure runs, see configure's option --config-cache.
4844 # It is not useful on other systems. If it contains results you don't
4845 # want to keep, you may remove or edit it.
4847 # config.status only pays attention to the cache file if you give it
4848 # the --recheck option to rerun configure.
4850 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4851 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4856 # The following way of writing the cache mishandles newlines in values,
4857 # but we know of no workaround that is simple, portable, and efficient.
4858 # So, we kill variables containing newlines.
4859 # Ultrix sh set writes to stderr and can't be redirected directly,
4860 # and sets the high bit in the cache file unless we assign to the vars.
4862 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4863 eval ac_val
=\$
$ac_var
4867 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4868 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4871 _ | IFS | as_nl
) ;; #(
4872 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4873 *) { eval $ac_var=; unset $ac_var;} ;;
4879 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4880 *${as_nl}ac_space
=\
*)
4881 # `set' does not quote correctly, so add quotes: double-quote
4882 # substitution turns \\\\ into \\, and sed turns \\ into \.
4885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4888 # `set' quotes correctly as required by POSIX, so do not add quotes.
4889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4898 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4900 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4902 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4903 if test -w "$cache_file"; then
4904 if test "x$cache_file" != "x/dev/null"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4906 $as_echo "$as_me: updating cache $cache_file" >&6;}
4907 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4908 cat confcache
>"$cache_file"
4910 case $cache_file in #(
4912 mv -f confcache
"$cache_file"$$
&&
4913 mv -f "$cache_file"$$
"$cache_file" ;; #(
4915 mv -f confcache
"$cache_file" ;;
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4921 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4926 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4927 # Let make expand exec_prefix.
4928 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4930 DEFS
=-DHAVE_CONFIG_H
4935 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4936 # 1. Remove the extension, and $U if already installed.
4937 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4938 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4939 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4940 # will be set to the directory where LIBOBJS objects are built.
4941 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4942 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4946 LTLIBOBJS
=$ac_ltlibobjs
4950 : "${CONFIG_STATUS=./config.status}"
4952 ac_clean_files_save
=$ac_clean_files
4953 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4955 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4957 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4959 # Generated by $as_me.
4960 # Run this file to recreate the current configuration.
4961 # Compiler output produced by configure, useful for debugging
4962 # configure, is in config.log if it exists.
4968 SHELL=\${CONFIG_SHELL-$SHELL}
4971 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4972 ## -------------------- ##
4973 ## M4sh Initialization. ##
4974 ## -------------------- ##
4976 # Be more Bourne compatible
4977 DUALCASE
=1; export DUALCASE
# for MKS sh
4978 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4981 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4982 # is contrary to our usage. Disable this feature.
4983 alias -g '${1+"$@"}'='"$@"'
4984 setopt NO_GLOB_SUBST
4986 case `(set -o) 2>/dev/null` in #(
4998 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4999 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5000 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5001 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5002 # Prefer a ksh shell builtin over an external printf program on Solaris,
5003 # but without wasting forks for bash or zsh.
5004 if test -z "$BASH_VERSION$ZSH_VERSION" \
5005 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5006 as_echo='print
-r --'
5007 as_echo_n='print
-rn --'
5008 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5009 as_echo='printf %s
\n'
5010 as_echo_n='printf %s
'
5012 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5013 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
5014 as_echo_n='/usr
/ucb
/echo -n'
5016 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5017 as_echo_n_body='eval
5021 expr "X$arg" : "X\\(.*\\)$as_nl";
5022 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5024 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
5026 export as_echo_n_body
5027 as_echo_n='sh
-c $as_echo_n_body as_echo
'
5030 as_echo='sh
-c $as_echo_body as_echo
'
5033 # The user is always right.
5034 if test "${PATH_SEPARATOR+set}" != set; then
5036 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5037 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5044 # We need space, tab and new line, in precisely that order. Quoting is
5045 # there to prevent editors from complaining about space-tab.
5046 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5047 # splitting by setting IFS to empty value.)
5050 # Find who we are. Look in the path if we contain no directory separator.
5053 *[\\/]* ) as_myself=$0 ;;
5054 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 test -z "$as_dir" && as_dir=.
5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5065 # We did not find ourselves, most probably we were run as `sh COMMAND'
5066 # in which case we are not to be found in the path.
5067 if test "x$as_myself" = x
; then
5070 if test ! -f "$as_myself"; then
5071 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5075 # Unset variables that we do not need and which cause bugs (e.g. in
5076 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5077 # suppresses any "Segmentation fault" message there. '((' could
5078 # trigger a bug in pdksh 5.2.14.
5079 for as_var
in BASH_ENV ENV MAIL MAILPATH
5080 do eval test x\
${$as_var+set} = xset \
5081 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5094 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5097 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5098 # ----------------------------------------
5099 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5100 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5101 # script with STATUS, using 1 if that was 0.
5104 as_status
=$1; test $as_status -eq 0 && as_status
=1
5106 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5107 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5109 $as_echo "$as_me: error: $2" >&2
5110 as_fn_exit
$as_status
5114 # as_fn_set_status STATUS
5115 # -----------------------
5116 # Set $? to STATUS, without forking.
5120 } # as_fn_set_status
5124 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5134 # Portably unset VAR.
5137 { eval $1=; unset $1;}
5139 as_unset
=as_fn_unset
5140 # as_fn_append VAR VALUE
5141 # ----------------------
5142 # Append the text in VALUE to the end of the definition contained in VAR. Take
5143 # advantage of any shell optimizations that allow amortized linear growth over
5144 # repeated appends, instead of the typical quadratic growth present in naive
5146 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5147 eval 'as_fn_append ()
5158 # as_fn_arith ARG...
5159 # ------------------
5160 # Perform arithmetic evaluation on the ARGs, and store the result in the
5161 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5162 # must be portable across $(()) and expr.
5163 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5164 eval 'as_fn_arith ()
5171 as_val
=`expr "$@" || test $? -eq 1`
5176 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5177 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
5183 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5184 as_basename
=basename
5189 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
5195 as_me
=`$as_basename -- "$0" ||
5196 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5197 X"$0" : 'X\(//\)$' \| \
5198 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5200 sed '/^.*\/\([^/][^/]*\)\/*$/{
5214 # Avoid depending upon Character Ranges.
5215 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5216 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5217 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5218 as_cr_digits
='0123456789'
5219 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5221 ECHO_C
= ECHO_N
= ECHO_T
=
5222 case `echo -n x` in #(((((
5224 case `echo 'xy\c'` in
5225 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
5227 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
5234 rm -f conf$$ conf$$.exe conf$$.
file
5235 if test -d conf$$.dir
; then
5236 rm -f conf$$.dir
/conf$$.
file
5239 mkdir conf$$.dir
2>/dev
/null
5241 if (echo >conf$$.
file) 2>/dev
/null
; then
5242 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5244 # ... but there are two gotchas:
5245 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5246 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5247 # In both cases, we have to default to `cp -pR'.
5248 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
5250 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5258 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
5259 rmdir conf$$.dir
2>/dev
/null
5264 # Create "$as_dir" as a directory, including parents if necessary.
5269 -*) as_dir
=.
/$as_dir;;
5271 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
5275 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5276 *) as_qdir
=$as_dir;;
5278 as_dirs
="'$as_qdir' $as_dirs"
5279 as_dir
=`$as_dirname -- "$as_dir" ||
5280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5281 X"$as_dir" : 'X\(//\)[^/]' \| \
5282 X"$as_dir" : 'X\(//\)$' \| \
5283 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5284 $as_echo X"$as_dir" |
5285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5302 test -d "$as_dir" && break
5304 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
5305 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
5309 if mkdir
-p .
2>/dev
/null
; then
5310 as_mkdir_p
='mkdir -p "$as_dir"'
5312 test -d .
/-p && rmdir .
/-p
5317 # as_fn_executable_p FILE
5318 # -----------------------
5319 # Test if FILE is an executable regular file.
5320 as_fn_executable_p
()
5322 test -f "$1" && test -x "$1"
5323 } # as_fn_executable_p
5325 as_executable_p
=as_fn_executable_p
5327 # Sed expression to map a string onto a valid CPP name.
5328 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5330 # Sed expression to map a string onto a valid variable name.
5331 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5335 ## ----------------------------------- ##
5336 ## Main body of $CONFIG_STATUS script. ##
5337 ## ----------------------------------- ##
5339 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
5341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5342 # Save the log message, to keep $0 and so on meaningful, and to
5343 # report actual input values of CONFIG_FILES etc. instead of their
5344 # values after options handling.
5346 This file was extended by $as_me, which was
5347 generated by GNU Autoconf 2.69. Invocation command line was
5349 CONFIG_FILES = $CONFIG_FILES
5350 CONFIG_HEADERS = $CONFIG_HEADERS
5351 CONFIG_LINKS = $CONFIG_LINKS
5352 CONFIG_COMMANDS = $CONFIG_COMMANDS
5355 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5360 case $ac_config_files in *"
5361 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
5364 case $ac_config_headers in *"
5365 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
5369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5370 # Files that config.status was made for.
5371 config_files="$ac_config_files"
5372 config_headers="$ac_config_headers"
5373 config_commands="$ac_config_commands"
5377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5379 \`$as_me' instantiates files and other configuration actions
5380 from templates according to the current configuration. Unless the files
5381 and actions are specified as TAGs, all are instantiated by default.
5383 Usage: $0 [OPTION]... [TAG]...
5385 -h, --help print this help, then exit
5386 -V, --version print version number and configuration settings, then exit
5387 --config print configuration, then exit
5388 -q, --quiet, --silent
5389 do not print progress messages
5390 -d, --debug don't remove temporary files
5391 --recheck update $as_me by reconfiguring in the same conditions
5392 --file=FILE[:TEMPLATE]
5393 instantiate the configuration file FILE
5394 --header=FILE[:TEMPLATE]
5395 instantiate the configuration header FILE
5397 Configuration files:
5400 Configuration headers:
5403 Configuration commands:
5406 Report bugs to the package provider."
5409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5410 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5413 configured by $0, generated by GNU Autoconf 2.69,
5414 with options \\"\$ac_cs_config\\"
5416 Copyright (C) 2012 Free Software Foundation, Inc.
5417 This config.status script is free software; the Free Software Foundation
5418 gives unlimited permission to copy, distribute and modify it."
5423 test -n "\$AWK" || AWK=awk
5426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5427 # The default lists apply if the user does not specify any file.
5433 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5434 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5438 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5450 # Handling of the options.
5451 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5453 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5454 $as_echo "$ac_cs_version"; exit ;;
5455 --config |
--confi |
--conf |
--con |
--co |
--c )
5456 $as_echo "$ac_cs_config"; exit ;;
5457 --debug |
--debu |
--deb |
--de |
--d |
-d )
5459 --file |
--fil |
--fi |
--f )
5462 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5463 '') as_fn_error $?
"missing file argument" ;;
5465 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5466 ac_need_defaults
=false
;;
5467 --header |
--heade |
--head |
--hea )
5470 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5472 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5473 ac_need_defaults
=false
;;
5475 # Conflict between --help and --header
5476 as_fn_error $?
"ambiguous option: \`$1'
5477 Try \`$0 --help' for more information.";;
5478 --help |
--hel |
-h )
5479 $as_echo "$ac_cs_usage"; exit ;;
5480 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5481 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5485 -*) as_fn_error $?
"unrecognized option: \`$1'
5486 Try \`$0 --help' for more information." ;;
5488 *) as_fn_append ac_config_targets
" $1"
5489 ac_need_defaults
=false
;;
5495 ac_configure_extra_args
=
5497 if $ac_cs_silent; then
5499 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5504 if \$ac_cs_recheck; then
5505 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5507 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5508 CONFIG_SHELL='$SHELL'
5514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5518 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5519 ## Running $as_me. ##
5525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5530 # Handling of arguments.
5531 for ac_config_target
in $ac_config_targets
5533 case $ac_config_target in
5534 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
5535 "build-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS build-config.h" ;;
5536 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5537 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
5539 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5544 # If the user did not use the arguments to specify the items to instantiate,
5545 # then the envvar interface is used. Set only those that are not.
5546 # We use the long form for the default assignment because of an extremely
5547 # bizarre bug on SunOS 4.1.3.
5548 if $ac_need_defaults; then
5549 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5550 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5551 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
5554 # Have a temporary directory for convenience. Make it in the build tree
5555 # simply because there is no reason against having it here, and in addition,
5556 # creating and moving files from /tmp can sometimes cause problems.
5557 # Hook for its removal unless debugging.
5558 # Note that there is a small window in which the directory will not be cleaned:
5559 # after its creation but before its name has been assigned to `$tmp'.
5563 trap 'exit_status=$?
5565 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5567 trap 'as_fn_exit 1' 1 2 13 15
5569 # Create a (secure) tmp directory for tmp files.
5572 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5576 tmp
=.
/conf$$
-$RANDOM
5577 (umask 077 && mkdir
"$tmp")
5578 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5581 # Set up the scripts for CONFIG_FILES section.
5582 # No need to generate them if there are no CONFIG_FILES.
5583 # This happens for instance with `./config.status config.h'.
5584 if test -n "$CONFIG_FILES"; then
5587 ac_cr
=`echo X | tr X '\015'`
5588 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5589 # But we know of no other shell where ac_cr would be empty at this
5590 # point, so we can use a bashism as a fallback.
5591 if test "x$ac_cr" = x
; then
5592 eval ac_cr
=\$
\'\\r
\'
5594 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5595 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5601 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5606 echo "cat >conf$$subs.awk <<_ACEOF" &&
5607 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5610 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5611 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5613 for ac_last_try in false false false false false :; do
5614 . ./conf$$subs.sh ||
5615 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5617 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5618 if test $ac_delim_n = $ac_delim_num; then
5620 elif $ac_last_try; then
5621 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5623 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5629 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5633 s/^/S["/; s
/!.
*/"]=/
5643 s/\(.\{148\}\)..*/\1/
5645 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5650 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5657 s/\(.\{148\}\)..*/\1/
5659 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5663 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5668 ' <conf$$subs.awk | sed '
5673 ' >>$CONFIG_STATUS || ac_write_fail=1
5674 rm -f conf$$subs.awk
5675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5677 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5678 for (key in S) S_is_set[key] = 1
5684 nfields = split(line, field, "@
")
5686 len = length(field[1])
5687 for (i = 2; i < nfields; i++) {
5689 keylen = length(key)
5690 if (S_is_set[key]) {
5692 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5693 len += length(value) + length(field[++i])
5704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5705 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5706 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5709 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5710 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5713 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5714 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5715 # trailing colons and then remove the whole line if VPATH becomes empty
5716 # (actually we leave an empty line to preserve line numbers).
5717 if test "x
$srcdir" = x.; then
5718 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5737 fi # test -n "$CONFIG_FILES"
5739 # Set up the scripts for CONFIG_HEADERS section.
5740 # No need to generate them if there are no CONFIG_HEADERS.
5741 # This happens for instance with `./config.status Makefile'.
5742 if test -n "$CONFIG_HEADERS"; then
5743 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5747 # Transform confdefs.h into an awk script `defines.awk', embedded as
5748 # here-document in config.status, that substitutes the proper values into
5749 # config.h.in to produce config.h.
5751 # Create a delimiter string that does not exist in confdefs.h, to ease
5752 # handling of long lines.
5754 for ac_last_try in false false :; do
5755 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5756 if test -z "$ac_tt"; then
5758 elif $ac_last_try; then
5759 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5761 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5765 # For the awk script, D is an array of macro values keyed by name,
5766 # likewise P contains macro parameters if any. Preserve backslash
5767 # newline sequences.
5769 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5771 s/.\{148\}/&'"$ac_delim"'/g
5774 s/^[ ]*#[ ]*define[ ][ ]*/ /
5781 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5783 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5787 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5788 D["\
1"]=" \
3\\\\\\n
"\\/p
5790 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5795 s/.\{148\}/&'"$ac_delim"'/g
5800 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5803 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5805 ' <confdefs.h | sed '
5806 s/'"$ac_delim"'/"\\\
5807 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5810 for (key in D) D_is_set[key] = 1
5813 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5815 split(line, arg, " ")
5816 if (arg[1] == "#") {
5820 defundef
= substr
(arg
[1], 2)
5823 split(mac1
, mac2
, "(") #)
5825 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5826 if (D_is_set
[macro
]) {
5827 # Preserve the white space surrounding the "#".
5828 print prefix
"define", macro P
[macro
] D
[macro
]
5831 # Replace #undef with comments. This is necessary, for example,
5832 # in the case of _POSIX_SOURCE, which is predefined and required
5833 # on some systems where configure will not decide to define it.
5834 if (defundef
== "undef") {
5835 print
"/*", prefix defundef
, macro
, "*/"
5843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5844 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5845 fi # test -n "$CONFIG_HEADERS"
5848 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5853 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5855 case $ac_mode$ac_tag in
5857 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5858 :[FH
]-) ac_tag
=-:-;;
5859 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5876 -) ac_f
="$ac_tmp/stdin";;
5877 *) # Look for the file first in the build tree, then in the source tree
5878 # (if the path is not absolute). The absolute path cannot be DOS-style,
5879 # because $ac_f cannot contain `:'.
5883 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5885 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5887 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5888 as_fn_append ac_file_inputs
" '$ac_f'"
5891 # Let's still pretend it is `configure' which instantiates (i.e., don't
5892 # use $as_me), people would be surprised to read:
5893 # /* config.h. Generated by config.status. */
5894 configure_input
='Generated from '`
5895 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5897 if test x
"$ac_file" != x-
; then
5898 configure_input
="$ac_file. $configure_input"
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5900 $as_echo "$as_me: creating $ac_file" >&6;}
5902 # Neutralize special characters interpreted by sed in replacement strings.
5903 case $configure_input in #(
5904 *\
&* |
*\|
* |
*\\* )
5905 ac_sed_conf_input
=`$as_echo "$configure_input" |
5906 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5907 *) ac_sed_conf_input
=$configure_input;;
5911 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5912 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5917 ac_dir
=`$as_dirname -- "$ac_file" ||
5918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5919 X"$ac_file" : 'X\(//\)[^/]' \| \
5920 X"$ac_file" : 'X\(//\)$' \| \
5921 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5922 $as_echo X"$ac_file" |
5923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5940 as_dir
="$ac_dir"; as_fn_mkdir_p
5944 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5946 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5947 # A ".." for each directory in $ac_dir_suffix.
5948 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5949 case $ac_top_builddir_sub in
5950 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5951 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5954 ac_abs_top_builddir
=$ac_pwd
5955 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5956 # for backward compatibility:
5957 ac_top_builddir
=$ac_top_build_prefix
5960 .
) # We are building in place.
5962 ac_top_srcdir
=$ac_top_builddir_sub
5963 ac_abs_top_srcdir
=$ac_pwd ;;
5964 [\\/]* | ?
:[\\/]* ) # Absolute name.
5965 ac_srcdir
=$srcdir$ac_dir_suffix;
5966 ac_top_srcdir
=$srcdir
5967 ac_abs_top_srcdir
=$srcdir ;;
5969 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5970 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5971 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5973 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5983 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5984 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5989 # If the template does not know about datarootdir, expand it.
5990 # FIXME: This hack should be removed a few years after 2.60.
5991 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6002 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6003 *datarootdir
*) ac_datarootdir_seen
=yes;;
6004 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6006 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6009 ac_datarootdir_hack='
6010 s&@datadir@&$datadir&g
6011 s&@docdir@&$docdir&g
6012 s&@infodir@&$infodir&g
6013 s&@localedir@&$localedir&g
6014 s&@mandir@&$mandir&g
6015 s&\\\${datarootdir}&$datarootdir&g' ;;
6019 # Neutralize VPATH when `$srcdir' = `.'.
6020 # Shell code in configure.ac might set extrasub.
6021 # FIXME: do we really want to maintain this feature?
6022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6023 ac_sed_extra="$ac_vpsub
6026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6028 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6029 s|@configure_input@|
$ac_sed_conf_input|
;t t
6030 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6031 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6032 s
&@srcdir@
&$ac_srcdir&;t t
6033 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6034 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6035 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6036 s
&@builddir@
&$ac_builddir&;t t
6037 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6038 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6039 s
&@INSTALL@
&$ac_INSTALL&;t t
6040 $ac_datarootdir_hack
6042 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6043 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6045 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6046 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6047 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6048 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6050 which seems to be undefined. Please make sure it is defined" >&5
6051 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6052 which seems to be undefined. Please make sure it is defined" >&2;}
6054 rm -f "$ac_tmp/stdin"
6056 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6057 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6059 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6065 if test x"$ac_file" != x-; then
6067 $as_echo "/* $configure_input */" \
6068 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6069 } >"$ac_tmp/config.h" \
6070 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6071 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6073 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6076 mv "$ac_tmp/config.h" "$ac_file" \
6077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6080 $as_echo "/* $configure_input */" \
6081 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6082 || as_fn_error $? "could not create -" "$LINENO" 5
6086 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6087 $as_echo "$as_me: executing $ac_file commands" >&6;}
6092 case $ac_file$ac_mode in
6093 "build-config.h":C) cp config.h build-config.h ;;
6094 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
6102 ac_clean_files=$ac_clean_files_save
6104 test $ac_write_fail = 0 ||
6105 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6108 # configure is writing to config.log, and then calls config.status.
6109 # config.status does its own redirection, appending to config.log.
6110 # Unfortunately, on DOS this fails, as config.log is still kept open
6111 # by configure, so config.status won't be able to
write to it
; its
6112 # output is simply discarded. So we exec the FD to /dev/null,
6113 # effectively closing config.log, so it can be properly (re)opened and
6114 # appended to by config.status. When coming back to configure, we
6115 # need to make the FD available again.
6116 if test "$no_create" != yes; then
6118 ac_config_status_args
=
6119 test "$silent" = yes &&
6120 ac_config_status_args
="$ac_config_status_args --quiet"
6122 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6125 # would make configure fail if this is the last instruction.
6126 $ac_cs_success || as_fn_exit
1
6128 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6130 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}