2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="server.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars
='LTLIBOBJS
651 MAINTAINER_MODE_FALSE
680 program_transform_name
693 enable_option_checking
694 enable_maintainer_mode
696 enable_build_with_cxx
702 enable_build_warnings
703 enable_gdb_build_warnings
707 enable_inprocess_agent
709 ac_precious_vars
='build_alias
723 # Initialize some variables set by options.
725 ac_init_version
=false
726 ac_unrecognized_opts
=
728 # The variables have the same names as the options, with
729 # dashes changed to underlines.
737 program_transform_name
=s
,x
,x
,
745 # Installation directory options.
746 # These are left unexpanded so users can "make install exec_prefix=/foo"
747 # and all the variables that are supposed to be based on exec_prefix
748 # by default will actually change.
749 # Use braces instead of parens because sh, perl, etc. also accept them.
750 # (The list follows the same order as the GNU Coding Standards.)
751 bindir
='${exec_prefix}/bin'
752 sbindir
='${exec_prefix}/sbin'
753 libexecdir
='${exec_prefix}/libexec'
754 datarootdir
='${prefix}/share'
755 datadir
='${datarootdir}'
756 sysconfdir
='${prefix}/etc'
757 sharedstatedir
='${prefix}/com'
758 localstatedir
='${prefix}/var'
759 includedir
='${prefix}/include'
760 oldincludedir
='/usr/include'
761 docdir
='${datarootdir}/doc/${PACKAGE}'
762 infodir
='${datarootdir}/info'
767 libdir
='${exec_prefix}/lib'
768 localedir
='${datarootdir}/locale'
769 mandir
='${datarootdir}/man'
775 # If the previous option needs an argument, assign it.
776 if test -n "$ac_prev"; then
777 eval $ac_prev=\
$ac_option
783 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787 # Accept the important Cygnus configure options, so we can diagnose typos.
789 case $ac_dashdash$ac_option in
793 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
795 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
798 -build |
--build |
--buil |
--bui |
--bu)
799 ac_prev
=build_alias
;;
800 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
801 build_alias
=$ac_optarg ;;
803 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
804 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
805 ac_prev
=cache_file
;;
806 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
807 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
808 cache_file
=$ac_optarg ;;
811 cache_file
=config.cache
;;
813 -datadir |
--datadir |
--datadi |
--datad)
815 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
816 datadir
=$ac_optarg ;;
818 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
819 |
--dataroo |
--dataro |
--datar)
820 ac_prev
=datarootdir
;;
821 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
822 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
823 datarootdir
=$ac_optarg ;;
825 -disable-* |
--disable-*)
826 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
829 as_fn_error
"invalid feature name: $ac_useropt"
830 ac_useropt_orig
=$ac_useropt
831 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
836 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837 ac_unrecognized_sep
=', ';;
839 eval enable_
$ac_useropt=no
;;
841 -docdir |
--docdir |
--docdi |
--doc |
--do)
843 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
846 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
848 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
851 -enable-* |
--enable-*)
852 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
855 as_fn_error
"invalid feature name: $ac_useropt"
856 ac_useropt_orig
=$ac_useropt
857 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
862 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 ac_unrecognized_sep
=', ';;
865 eval enable_
$ac_useropt=\
$ac_optarg ;;
867 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
868 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
869 |
--exec |
--exe |
--ex)
870 ac_prev
=exec_prefix
;;
871 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
872 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
873 |
--exec=* |
--exe=* |
--ex=*)
874 exec_prefix
=$ac_optarg ;;
876 -gas |
--gas |
--ga |
--g)
877 # Obsolete; use --with-gas.
880 -help |
--help |
--hel |
--he |
-h)
882 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
883 ac_init_help
=recursive
;;
884 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
885 ac_init_help
=short
;;
887 -host |
--host |
--hos |
--ho)
888 ac_prev
=host_alias
;;
889 -host=* |
--host=* |
--hos=* |
--ho=*)
890 host_alias
=$ac_optarg ;;
892 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
894 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
896 htmldir
=$ac_optarg ;;
898 -includedir |
--includedir |
--includedi |
--included |
--include \
899 |
--includ |
--inclu |
--incl |
--inc)
900 ac_prev
=includedir
;;
901 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
902 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
903 includedir
=$ac_optarg ;;
905 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
907 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
908 infodir
=$ac_optarg ;;
910 -libdir |
--libdir |
--libdi |
--libd)
912 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
915 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
916 |
--libexe |
--libex |
--libe)
917 ac_prev
=libexecdir
;;
918 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
919 |
--libexe=* |
--libex=* |
--libe=*)
920 libexecdir
=$ac_optarg ;;
922 -localedir |
--localedir |
--localedi |
--localed |
--locale)
924 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
925 localedir
=$ac_optarg ;;
927 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
928 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
929 ac_prev
=localstatedir
;;
930 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
931 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
932 localstatedir
=$ac_optarg ;;
934 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
936 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
940 # Obsolete; use --without-fp.
943 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
944 |
--no-cr |
--no-c |
-n)
947 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
948 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
951 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
952 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
953 |
--oldin |
--oldi |
--old |
--ol |
--o)
954 ac_prev
=oldincludedir
;;
955 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
956 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
957 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
958 oldincludedir
=$ac_optarg ;;
960 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
962 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
965 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
966 |
--program-pre |
--program-pr |
--program-p)
967 ac_prev
=program_prefix
;;
968 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
969 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
970 program_prefix
=$ac_optarg ;;
972 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
973 |
--program-suf |
--program-su |
--program-s)
974 ac_prev
=program_suffix
;;
975 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
976 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
977 program_suffix
=$ac_optarg ;;
979 -program-transform-name |
--program-transform-name \
980 |
--program-transform-nam |
--program-transform-na \
981 |
--program-transform-n |
--program-transform- \
982 |
--program-transform |
--program-transfor \
983 |
--program-transfo |
--program-transf \
984 |
--program-trans |
--program-tran \
985 |
--progr-tra |
--program-tr |
--program-t)
986 ac_prev
=program_transform_name
;;
987 -program-transform-name=* |
--program-transform-name=* \
988 |
--program-transform-nam=* |
--program-transform-na=* \
989 |
--program-transform-n=* |
--program-transform-=* \
990 |
--program-transform=* |
--program-transfor=* \
991 |
--program-transfo=* |
--program-transf=* \
992 |
--program-trans=* |
--program-tran=* \
993 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
994 program_transform_name
=$ac_optarg ;;
996 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
998 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1001 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1003 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1006 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1007 |
-silent |
--silent |
--silen |
--sile |
--sil)
1010 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1012 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1014 sbindir
=$ac_optarg ;;
1016 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1017 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1018 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1020 ac_prev
=sharedstatedir
;;
1021 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1022 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1023 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1025 sharedstatedir
=$ac_optarg ;;
1027 -site |
--site |
--sit)
1029 -site=* |
--site=* |
--sit=*)
1032 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1034 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1035 srcdir
=$ac_optarg ;;
1037 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1038 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1039 ac_prev
=sysconfdir
;;
1040 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1041 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1042 sysconfdir
=$ac_optarg ;;
1044 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1045 ac_prev
=target_alias
;;
1046 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1047 target_alias
=$ac_optarg ;;
1049 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1052 -version |
--version |
--versio |
--versi |
--vers |
-V)
1053 ac_init_version
=: ;;
1056 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1059 as_fn_error
"invalid package name: $ac_useropt"
1060 ac_useropt_orig
=$ac_useropt
1061 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1066 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep
=', ';;
1069 eval with_
$ac_useropt=\
$ac_optarg ;;
1071 -without-* |
--without-*)
1072 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1075 as_fn_error
"invalid package name: $ac_useropt"
1076 ac_useropt_orig
=$ac_useropt
1077 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1082 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep
=', ';;
1085 eval with_
$ac_useropt=no
;;
1088 # Obsolete; use --with-x.
1091 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1092 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1093 ac_prev
=x_includes
;;
1094 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1095 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1096 x_includes
=$ac_optarg ;;
1098 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1099 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1100 ac_prev
=x_libraries
;;
1101 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1102 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1103 x_libraries
=$ac_optarg ;;
1105 -*) as_fn_error
"unrecognized option: \`$ac_option'
1106 Try \`$0 --help' for more information."
1110 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 case $ac_envvar in #(
1113 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1114 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1116 eval $ac_envvar=\
$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1130 if test -n "$ac_prev"; then
1131 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1132 as_fn_error
"missing argument to $ac_option"
1135 if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1138 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1139 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 # Check all directory arguments for consistency.
1144 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir
1149 eval ac_val
=\$
$ac_var
1150 # Remove trailing slashes.
1153 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\
$ac_val;;
1156 # Be sure to have absolute directory names.
1158 [\\/$
]* | ?
:[\\/]* ) continue;;
1159 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1161 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1164 # There might be people who depend on the old broken behavior: `$host'
1165 # used to hold the argument of --host etc.
1166 # FIXME: To remove some day.
1169 target
=$target_alias
1171 # FIXME: To remove some day.
1172 if test "x$host_alias" != x
; then
1173 if test "x$build_alias" = x
; then
1174 cross_compiling
=maybe
1175 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1176 If a cross compiler is detected then cross compile mode will be used." >&2
1177 elif test "x$build_alias" != "x$host_alias"; then
1183 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1185 test "$silent" = yes && exec 6>/dev
/null
1188 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1189 ac_ls_di
=`ls -di .` &&
1190 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1191 as_fn_error
"working directory cannot be determined"
1192 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1193 as_fn_error
"pwd does not report name of working directory"
1196 # Find the source files, if location was not specified.
1197 if test -z "$srcdir"; then
1198 ac_srcdir_defaulted
=yes
1199 # Try the directory containing this script, then the parent directory.
1200 ac_confdir
=`$as_dirname -- "$as_myself" ||
1201 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202 X"$as_myself" : 'X\(//\)[^/]' \| \
1203 X"$as_myself" : 'X\(//\)$' \| \
1204 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1205 $as_echo X"$as_myself" |
1206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1228 ac_srcdir_defaulted
=no
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1231 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1232 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1234 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1238 # When building in place, set srcdir=.
1239 if test "$ac_abs_confdir" = "$ac_pwd"; then
1242 # Remove unnecessary trailing slashes from srcdir.
1243 # Double slashes in file names in object file debugging info
1244 # mess up M-x gdb in Emacs.
1246 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248 for ac_var
in $ac_precious_vars; do
1249 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1250 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1251 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1252 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1256 # Report the --help message.
1258 if test "$ac_init_help" = "long"; then
1259 # Omit some internal or obsolete options to make the list less imposing.
1260 # This message is too long to be a string in the A/UX 3.1 sh.
1262 \`configure' configures this package to adapt to many kinds of systems.
1264 Usage: $0 [OPTION]... [VAR=VALUE]...
1266 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1267 VAR=VALUE. See below for descriptions of some of the useful variables.
1269 Defaults for the options are specified in brackets.
1272 -h, --help display this help and exit
1273 --help=short display options specific to this package
1274 --help=recursive display the short help of all the included packages
1275 -V, --version display version information and exit
1276 -q, --quiet, --silent do not print \`checking...' messages
1277 --cache-file=FILE cache test results in FILE [disabled]
1278 -C, --config-cache alias for \`--cache-file=config.cache'
1279 -n, --no-create do not create output files
1280 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1282 Installation directories:
1283 --prefix=PREFIX install architecture-independent files in PREFIX
1284 [$ac_default_prefix]
1285 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1288 By default, \`make install' will install all the files in
1289 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1290 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1291 for instance \`--prefix=\$HOME'.
1293 For better control, use the options below.
1295 Fine tuning of the installation directories:
1296 --bindir=DIR user executables [EPREFIX/bin]
1297 --sbindir=DIR system admin executables [EPREFIX/sbin]
1298 --libexecdir=DIR program executables [EPREFIX/libexec]
1299 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1300 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1301 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1302 --libdir=DIR object code libraries [EPREFIX/lib]
1303 --includedir=DIR C header files [PREFIX/include]
1304 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1305 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1306 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1307 --infodir=DIR info documentation [DATAROOTDIR/info]
1308 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1309 --mandir=DIR man documentation [DATAROOTDIR/man]
1310 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1311 --htmldir=DIR html documentation [DOCDIR]
1312 --dvidir=DIR dvi documentation [DOCDIR]
1313 --pdfdir=DIR pdf documentation [DOCDIR]
1314 --psdir=DIR ps documentation [DOCDIR]
1320 --program-prefix=PREFIX prepend PREFIX to installed program names
1321 --program-suffix=SUFFIX append SUFFIX to installed program names
1322 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1325 --build=BUILD configure
for building on BUILD
[guessed
]
1326 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1327 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1331 if test -n "$ac_init_help"; then
1336 --disable-option-checking ignore unrecognized
--enable/--with options
1337 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1338 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1339 --enable-maintainer-mode enable make rules and dependencies not useful
1340 (and sometimes confusing
) to the casual installer
1341 --disable-largefile omit support
for large files
1342 --disable-build-with-cxx
1343 build with C compiler instead of C
++ compiler
1344 --enable-libmcheck Try linking with
-lmcheck if available
1345 --enable-werror treat compile warnings as errors
1346 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1347 --enable-gdb-build-warnings
1348 enable GDB specific build-time compiler warnings
if
1350 --enable-inprocess-agent
1354 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1355 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1356 --with-ust=PATH Specify prefix directory
for the installed UST package
1357 Equivalent to
--with-ust-include=PATH
/include
1358 plus
--with-ust-lib=PATH
/lib
1359 --with-ust-include=PATH Specify directory
for installed UST include files
1360 --with-ust-lib=PATH Specify the directory
for the installed UST library
1361 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1362 --with-bugurl=URL Direct users to URL to report a bug
1363 --with-libthread-db=PATH
1364 use given libthread_db directly
1366 Some influential environment variables
:
1367 CC C compiler
command
1368 CFLAGS C compiler flags
1369 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1370 nonstandard directory
<lib dir
>
1371 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1372 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1373 you have headers
in a nonstandard directory
<include dir
>
1374 CXX C
++ compiler
command
1375 CXXFLAGS C
++ compiler flags
1378 Use these variables to override the choices made by
`configure' or to help
1379 it to find libraries and programs with nonstandard names/locations.
1381 Report bugs to the package provider.
1386 if test "$ac_init_help" = "recursive"; then
1387 # If there are subdirs, report their specific --help.
1388 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1389 test -d "$ac_dir" ||
1390 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1411 .) # We are building in place.
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
1416 ac_srcdir=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1435 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 cd "$ac_pwd" || { ac_status=$?; break; }
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1445 generated by GNU Autoconf 2.64
1447 Copyright (C) 2009 Free Software Foundation, Inc.
1448 This configure script is free software; the Free Software Foundation
1449 gives unlimited permission to copy, distribute and modify it.
1454 ## ------------------------ ##
1455 ## Autoconf initialization. ##
1456 ## ------------------------ ##
1458 # ac_fn_c_try_compile LINENO
1459 # --------------------------
1460 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1461 ac_fn_c_try_compile ()
1463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1464 rm -f conftest.$ac_objext
1465 if { { ac_try="$ac_compile"
1467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1468 *) ac_try_echo
=$ac_try;;
1470 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1471 $as_echo "$ac_try_echo"; } >&5
1472 (eval "$ac_compile") 2>conftest.err
1474 if test -s conftest.err
; then
1475 grep -v '^ *+' conftest.err
>conftest.er1
1476 cat conftest.er1
>&5
1477 mv -f conftest.er1 conftest.err
1479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1480 test $ac_status = 0; } && {
1481 test -z "$ac_c_werror_flag" ||
1482 test ! -s conftest.err
1483 } && test -s conftest.
$ac_objext; then :
1486 $as_echo "$as_me: failed program was:" >&5
1487 sed 's/^/| /' conftest.
$ac_ext >&5
1491 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1494 } # ac_fn_c_try_compile
1496 # ac_fn_cxx_try_compile LINENO
1497 # ----------------------------
1498 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1499 ac_fn_cxx_try_compile
()
1501 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1502 rm -f conftest.
$ac_objext
1503 if { { ac_try
="$ac_compile"
1505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1506 *) ac_try_echo=$ac_try;;
1508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509 $as_echo "$ac_try_echo"; } >&5
1510 (eval "$ac_compile") 2>conftest.err
1512 if test -s conftest.err; then
1513 grep -v '^ *+' conftest.err >conftest.er1
1514 cat conftest.er1 >&5
1515 mv -f conftest.er1 conftest.err
1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } && {
1519 test -z "$ac_cxx_werror_flag" ||
1520 test ! -s conftest.err
1521 } && test -s conftest.$ac_objext; then :
1524 $as_echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1529 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1532 } # ac_fn_cxx_try_compile
1534 # ac_fn_c_try_cpp LINENO
1535 # ----------------------
1536 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 if { { ac_try="$ac_cpp conftest.$ac_ext"
1542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1543 *) ac_try_echo
=$ac_try;;
1545 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1549 if test -s conftest.err
; then
1550 grep -v '^ *+' conftest.err
>conftest.er1
1551 cat conftest.er1
>&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } >/dev
/null
&& {
1556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.
$ac_ext >&5
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1571 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1572 # -------------------------------------------------------
1573 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1574 # the include files in INCLUDES and setting the cache variable VAR
1576 ac_fn_c_check_header_mongrel
()
1578 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1579 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1581 $as_echo_n "checking for $2... " >&6; }
1582 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1583 $as_echo_n "(cached) " >&6
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587 $as_echo "$ac_res" >&6; }
1589 # Is the header compilable?
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1591 $as_echo_n "checking $2 usability... " >&6; }
1592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1593 /* end confdefs.h. */
1597 if ac_fn_c_try_compile
"$LINENO"; then :
1598 ac_header_compiler
=yes
1600 ac_header_compiler
=no
1602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1604 $as_echo "$ac_header_compiler" >&6; }
1606 # Is the header present?
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1608 $as_echo_n "checking $2 presence... " >&6; }
1609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1610 /* end confdefs.h. */
1613 if ac_fn_c_try_cpp
"$LINENO"; then :
1614 ac_header_preproc
=yes
1616 ac_header_preproc
=no
1618 rm -f conftest.err conftest.
$ac_ext
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1620 $as_echo "$ac_header_preproc" >&6; }
1622 # So? What about this header?
1623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1626 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1628 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1632 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1634 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1636 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1638 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1646 $as_echo_n "(cached) " >&6
1648 eval "$3=\$ac_header_compiler"
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1656 } # ac_fn_c_check_header_mongrel
1658 # ac_fn_c_try_run LINENO
1659 # ----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661 # that executables *can* be run.
1664 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1665 if { { ac_try
="$ac_link"
1667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>&5
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676 { { case "(($ac_try" in
1677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1678 *) ac_try_echo
=$ac_try;;
1680 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_try") 2>&5
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; }; }; then :
1688 $as_echo "$as_me: program exited with status $ac_status" >&5
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.
$ac_ext >&5
1692 ac_retval
=$ac_status
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1700 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists and can be compiled using the include files in
1703 # INCLUDES, setting the cache variable VAR accordingly.
1704 ac_fn_c_check_header_compile
()
1706 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1710 $as_echo_n "(cached) " >&6
1712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1717 if ac_fn_c_try_compile
"$LINENO"; then :
1722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1729 } # ac_fn_c_check_header_compile
1731 # ac_fn_c_try_link LINENO
1732 # -----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded.
1736 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1737 rm -f conftest.
$ac_objext conftest
$ac_exeext
1738 if { { ac_try
="$ac_link"
1740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
1758 $as_test_x conftest$ac_exeext
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 } # ac_fn_c_try_link
1777 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1778 # -------------------------------------------
1779 # Tests whether TYPE exists after having included INCLUDES, setting cache
1780 # variable VAR accordingly.
1781 ac_fn_c_check_type ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1787 $as_echo_n "(cached) " >&6
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1815 if ac_fn_c_try_compile "$LINENO"; then :
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 } # ac_fn_c_check_type
1831 # ac_fn_c_check_func LINENO FUNC VAR
1832 # ----------------------------------
1833 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1834 ac_fn_c_check_func ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1840 $as_echo_n "(cached) " >&6
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below.
1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851 <limits.h> exists even on freestanding compilers. */
1854 # include <limits.h>
1856 # include <assert.h>
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1883 if ac_fn_c_try_link "$LINENO"; then :
1888 rm -f core conftest.err conftest.$ac_objext \
1889 conftest$ac_exeext conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 } # ac_fn_c_check_func
1898 # ac_fn_c_check_decl LINENO SYMBOL VAR
1899 # ------------------------------------
1900 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1901 ac_fn_c_check_decl ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1905 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1907 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1917 #ifndef $as_decl_name
1919 (void) $as_decl_use;
1921 (void) $as_decl_name;
1929 if ac_fn_c_try_compile "$LINENO"; then :
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941 } # ac_fn_c_check_decl
1943 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1944 # --------------------------------------------
1945 # Tries to find the compile-time value of EXPR in a program that includes
1946 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1948 ac_fn_c_compute_int ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if test "$cross_compiling" = yes; then
1952 # Depending upon the size, compute the lo and hi bounds.
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1959 static int test_array [1 - 2 * !(($2) >= 0)];
1966 if ac_fn_c_try_compile "$LINENO"; then :
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1975 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983 ac_hi=$ac_mid; break
1985 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1986 if test $ac_lo -le $ac_mid; then
1990 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
2001 static int test_array [1 - 2 * !(($2) < 0)];
2008 if ac_fn_c_try_compile "$LINENO"; then :
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2017 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 ac_lo=$ac_mid; break
2027 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2028 if test $ac_mid -le $ac_hi; then
2032 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 # Binary search between lo and hi bounds.
2043 while test "x$ac_lo" != "x$ac_hi"; do
2044 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2051 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2058 if ac_fn_c_try_compile "$LINENO"; then :
2061 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2073 static long int longval () { return $2; }
2074 static unsigned long int ulongval () { return $2; }
2081 FILE *f = fopen ("conftest.val", "w");
2086 long int i = longval ();
2089 fprintf (f, "%ld", i);
2093 unsigned long int i = ulongval ();
2096 fprintf (f, "%lu", i);
2098 /* Do not output a trailing newline, as this causes \r\n confusion
2099 on some platforms. */
2100 return ferror (f) || fclose (f) != 0;
2106 if ac_fn_c_try_run "$LINENO"; then :
2107 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2112 conftest.$ac_objext conftest.beam conftest.$ac_ext
2116 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119 } # ac_fn_c_compute_int
2121 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2122 # ----------------------------------------------------
2123 # Tries to find if the field MEMBER exists in type AGGR, after including
2124 # INCLUDES, setting cache variable VAR accordingly.
2125 ac_fn_c_check_member ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2129 $as_echo_n "checking for $2.$3... " >&6; }
2130 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2131 $as_echo_n "(cached) " >&6
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2146 if ac_fn_c_try_compile "$LINENO"; then :
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2156 if (sizeof ac_aggr.$3)
2162 if ac_fn_c_try_compile "$LINENO"; then :
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2176 } # ac_fn_c_check_member
2177 cat >config.log <<_ACEOF
2178 This file contains any messages produced by compilers while
2179 running configure, to aid debugging if configure makes a mistake.
2181 It was created by $as_me, which was
2182 generated by GNU Autoconf 2.64. Invocation command line was
2194 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2195 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2196 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2197 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2198 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2200 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2201 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2203 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2204 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2205 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2206 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2207 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2208 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2209 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 test -z "$as_dir" && as_dir=.
2218 $as_echo "PATH: $as_dir"
2234 # Keep a trace of the command line.
2235 # Strip out --no-create and --no-recursion so they do not pile up.
2236 # Strip out --silent because we don't want to record it for future runs.
2237 # Also quote any args containing shell meta-characters.
2238 # Make two passes to allow for proper duplicate-argument suppression.
2242 ac_must_keep_next=false
2248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2250 | -silent | --silent | --silen | --sile | --sil)
2253 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2256 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2258 as_fn_append ac_configure_args1 " '$ac_arg'"
2259 if test $ac_must_keep_next = true; then
2260 ac_must_keep_next=false # Got value, back to normal.
2263 *=* | --config-cache | -C | -disable-* | --disable-* \
2264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2266 | -with-* | --with-* | -without-* | --without-* | --x)
2267 case "$ac_configure_args0 " in
2268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2271 -* ) ac_must_keep_next=true ;;
2274 as_fn_append ac_configure_args " '$ac_arg'"
2279 { ac_configure_args0=; unset ac_configure_args0;}
2280 { ac_configure_args1=; unset ac_configure_args1;}
2282 # When interrupted or exit'd, cleanup temporary files, and complete
2283 # config.log. We remove comments because anyway the quotes in there
2284 # would cause problems or look ugly.
2285 # WARNING: Use '\'' to represent an apostrophe within the trap.
2286 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2287 trap 'exit_status=$?
2288 # Save into config.log some information that might help in debugging.
2293 ## ---------------- ##
2294 ## Cache variables. ##
2295 ## ---------------- ##
2298 # The following way of writing the cache mishandles newlines in values,
2300 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2301 eval ac_val=\$$ac_var
2305 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2306 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2309 _ | IFS | as_nl) ;; #(
2310 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2311 *) { eval $ac_var=; unset $ac_var;} ;;
2316 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2317 *${as_nl}ac_space=\ *)
2319 "s/'\''/'\''\\\\'\'''\''/g;
2320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2331 ## ----------------- ##
2332 ## Output variables. ##
2333 ## ----------------- ##
2336 for ac_var in $ac_subst_vars
2338 eval ac_val=\$$ac_var
2340 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342 $as_echo "$ac_var='\''$ac_val'\''"
2346 if test -n "$ac_subst_files"; then
2348 ## ------------------- ##
2349 ## File substitutions. ##
2350 ## ------------------- ##
2353 for ac_var in $ac_subst_files
2355 eval ac_val=\$$ac_var
2357 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2359 $as_echo "$ac_var='\''$ac_val'\''"
2364 if test -s confdefs.h; then
2374 test "$ac_signal" != 0 &&
2375 $as_echo "$as_me: caught signal $ac_signal"
2376 $as_echo "$as_me: exit $exit_status"
2378 rm -f core *.core core.conftest.* &&
2379 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2382 for ac_signal in 1 2 13 15; do
2383 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2387 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2388 rm -f -r conftest* confdefs.h
2390 $as_echo "/* confdefs.h */" > confdefs.h
2392 # Predefined preprocessor variables.
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_NAME "$PACKAGE_NAME"
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_STRING "$PACKAGE_STRING"
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_URL "$PACKAGE_URL"
2419 # Let the site file select an alternate cache file if it wants to.
2420 # Prefer an explicitly selected file to automatically selected ones.
2423 if test -n "$CONFIG_SITE"; then
2424 ac_site_file1=$CONFIG_SITE
2425 elif test "x$prefix" != xNONE; then
2426 ac_site_file1=$prefix/share/config.site
2427 ac_site_file2=$prefix/etc/config.site
2429 ac_site_file1=$ac_default_prefix/share/config.site
2430 ac_site_file2=$ac_default_prefix/etc/config.site
2432 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2434 test "x$ac_site_file" = xNONE && continue
2435 if test -r "$ac_site_file"; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2437 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2438 sed 's/^/| /' "$ac_site_file" >&5
2443 if test -r "$cache_file"; then
2444 # Some versions of bash will fail to source /dev/null (special
2445 # files actually), so we avoid doing that.
2446 if test -f "$cache_file"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2448 $as_echo "$as_me: loading cache $cache_file" >&6;}
2450 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2451 *) . "./$cache_file";;
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2456 $as_echo "$as_me: creating cache $cache_file" >&6;}
2460 # Check that the precious variables saved in the cache have kept the same
2462 ac_cache_corrupted=false
2463 for ac_var in $ac_precious_vars; do
2464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2465 eval ac_new_set=\$ac_env_${ac_var}_set
2466 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2467 eval ac_new_val=\$ac_env_${ac_var}_value
2468 case $ac_old_set,$ac_new_set in
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2471 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2472 ac_cache_corrupted=: ;;
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2475 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2476 ac_cache_corrupted=: ;;
2479 if test "x$ac_old_val" != "x$ac_new_val"; then
2480 # differences in whitespace do not lead to failure.
2481 ac_old_val_w=`echo x
$ac_old_val`
2482 ac_new_val_w=`echo x
$ac_new_val`
2483 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2485 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2486 ac_cache_corrupted=:
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2489 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2490 eval $ac_var=\$ac_old_val
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2493 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2495 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2498 # Pass precious variables to config.status.
2499 if test "$ac_new_set" = set; then
2501 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2502 *) ac_arg=$ac_var=$ac_new_val ;;
2504 case " $ac_configure_args " in
2505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2506 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2510 if $ac_cache_corrupted; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2514 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2515 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2517 ## -------------------- ##
2518 ## Main body of script. ##
2519 ## -------------------- ##
2522 ac_cpp='$CPP $CPPFLAGS'
2523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 ac_config_headers="$ac_config_headers config.h:config.in"
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2536 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2537 # Check whether --enable-maintainer-mode was given.
2538 if test "${enable_maintainer_mode+set}" = set; then :
2539 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2541 USE_MAINTAINER_MODE=no
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2545 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2546 if test $USE_MAINTAINER_MODE = yes; then
2547 MAINTAINER_MODE_TRUE=
2548 MAINTAINER_MODE_FALSE='#'
2550 MAINTAINER_MODE_TRUE='#'
2551 MAINTAINER_MODE_FALSE=
2554 MAINT=$MAINTAINER_MODE_TRUE
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563 if test -n "$ac_tool_prefix"; then
2564 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2565 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if test "${ac_cv_prog_CC+set}" = set; then :
2569 $as_echo_n "(cached) " >&6
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 if test -n "$CC"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2594 $as_echo "$CC" >&6; }
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2602 if test -z "$ac_cv_prog_CC"; then
2604 # Extract the first word of "gcc", so it can be a program name with args.
2605 set dummy gcc; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2611 if test -n "$ac_ct_CC"; then
2612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_ac_ct_CC="gcc"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2632 if test -n "$ac_ct_CC"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2634 $as_echo "$ac_ct_CC" >&6; }
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2640 if test "x$ac_ct_CC" = x; then
2643 case $cross_compiling:$ac_tool_warned in
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2647 ac_tool_warned=yes ;;
2655 if test -z "$CC"; then
2656 if test -n "$ac_tool_prefix"; then
2657 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2658 set dummy ${ac_tool_prefix}cc; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if test "${ac_cv_prog_CC+set}" = set; then :
2662 $as_echo_n "(cached) " >&6
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC="$CC" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 ac_cv_prog_CC="${ac_tool_prefix}cc"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 if test -n "$CC"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2687 $as_echo "$CC" >&6; }
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2696 if test -z "$CC"; then
2697 # Extract the first word of "cc", so it can be a program name with args.
2698 set dummy cc; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if test "${ac_cv_prog_CC+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2704 if test -n "$CC"; then
2705 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2716 ac_prog_rejected=yes
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 if test $ac_prog_rejected = yes; then
2728 # We found a bogon in the path, so make sure we never use it.
2729 set dummy $ac_cv_prog_CC
2731 if test $# != 0; then
2732 # We chose a different compiler from the bogus one.
2733 # However, it has the same basename, so the bogon will be chosen
2734 # first if we set CC to just the basename; use the full file name.
2736 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2742 if test -n "$CC"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2744 $as_echo "$CC" >&6; }
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2752 if test -z "$CC"; then
2753 if test -n "$ac_tool_prefix"; then
2754 for ac_prog in cl.exe
2756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if test "${ac_cv_prog_CC+set}" = set; then :
2761 $as_echo_n "(cached) " >&6
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 if test -n "$CC"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2793 test -n "$CC" && break
2796 if test -z "$CC"; then
2798 for ac_prog in cl.exe
2800 # Extract the first word of "$ac_prog", so it can be a program name with args.
2801 set dummy $ac_prog; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2805 $as_echo_n "(cached) " >&6
2807 if test -n "$ac_ct_CC"; then
2808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817 ac_cv_prog_ac_ct_CC="$ac_prog"
2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2828 if test -n "$ac_ct_CC"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2830 $as_echo "$ac_ct_CC" >&6; }
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2837 test -n "$ac_ct_CC" && break
2840 if test "x$ac_ct_CC" = x; then
2843 case $cross_compiling:$ac_tool_warned in
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2856 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2858 as_fn_error "no acceptable C compiler found
in \
$PATH
2859 See \
`config.log' for more details." "$LINENO" 5; }
2861 # Provide some information about the compiler.
2862 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2865 for ac_option in --version -v -V -qversion; do
2866 { { ac_try="$ac_compiler $ac_option >&5"
2868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2869 *) ac_try_echo
=$ac_try;;
2871 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2872 $as_echo "$ac_try_echo"; } >&5
2873 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2875 if test -s conftest.err
; then
2877 ... rest of stderr output deleted ...
2878 10q' conftest.err
>conftest.er1
2879 cat conftest.er1
>&5
2880 rm -f conftest.er1 conftest.err
2882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2883 test $ac_status = 0; }
2886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2897 ac_clean_files_save
=$ac_clean_files
2898 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2899 # Try to create an executable without -o first, disregard a.out.
2900 # It will help us diagnose broken compilers, and finding out an intuition
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2903 $as_echo_n "checking for C compiler default output file name... " >&6; }
2904 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2906 # The possible output files:
2907 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2910 for ac_file
in $ac_files
2913 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2914 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2919 if { { ac_try
="$ac_link_default"
2921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925 $as_echo "$ac_try_echo"; } >&5
2926 (eval "$ac_link_default") 2>&5
2928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2929 test $ac_status = 0; }; then :
2930 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2931 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2932 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2933 # so that the user can short-circuit this test for compilers unknown to
2935 for ac_file in $ac_files ''
2937 test -f "$ac_file" || continue
2939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2942 # We found the default executable, but exeext='' is most
2946 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2948 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2950 # We set ac_cv_exeext here because the later test for it is not
2951 # safe: cross compilers may not add the suffix if given an `-o'
2952 # argument, so we may need to know it at that point already.
2953 # Even if this section looks crufty: it has the advantage of
2960 test "$ac_cv_exeext" = no && ac_cv_exeext=
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2966 $as_echo "$ac_file" >&6; }
2967 if test -z "$ac_file"; then :
2968 $as_echo "$as_me: failed program was:" >&5
2969 sed 's
/^
/|
/' conftest.$ac_ext >&5
2971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2972 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2973 { as_fn_set_status 77
2974 as_fn_error "C compiler cannot create executables
2975 See \`config.log
' for more details." "$LINENO" 5; }; }
2977 ac_exeext=$ac_cv_exeext
2979 # Check that the compiler produces executables we can run. If not, either
2980 # the compiler is broken, or we cross compile.
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2982 $as_echo_n "checking whether the C compiler works... " >&6; }
2983 # If not cross compiling, check that we can run a simple program.
2984 if test "$cross_compiling" != yes; then
2985 if { ac_try='.
/$ac_file'
2986 { { case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991 $as_echo "$ac_try_echo"; } >&5
2992 (eval "$ac_try") 2>&5
2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995 test $ac_status = 0; }; }; then
2998 if test "$cross_compiling" = maybe; then
3001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3003 as_fn_error "cannot run C compiled programs.
3004 If you meant to cross compile, use \`--host'.
3005 See \`config.log' for more details.
" "$LINENO" 5; }
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3010 $as_echo "yes" >&6; }
3012 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3013 ac_clean_files=$ac_clean_files_save
3014 # Check that the compiler produces executables we can run. If not, either
3015 # the compiler is broken, or we cross compile.
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3017 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3019 $as_echo "$cross_compiling" >&6; }
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3022 $as_echo_n "checking
for suffix of executables...
" >&6; }
3023 if { { ac_try="$ac_link"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_link") 2>&5
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3033 test $ac_status = 0; }; then :
3034 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3035 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3036 # work properly (i.e., refer to `conftest.exe'), while it won't with
3038 for ac_file in conftest.exe conftest conftest.*; do
3039 test -f "$ac_file" || continue
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3042 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error "cannot compute suffix of executables: cannot compile and link
3051 See \`config.log' for more details.
" "$LINENO" 5; }
3053 rm -f conftest$ac_cv_exeext
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3055 $as_echo "$ac_cv_exeext" >&6; }
3057 rm -f conftest.$ac_ext
3058 EXEEXT=$ac_cv_exeext
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3061 $as_echo_n "checking
for suffix of object files...
" >&6; }
3062 if test "${ac_cv_objext+set}" = set; then :
3063 $as_echo_n "(cached
) " >&6
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3076 rm -f conftest.o conftest.obj
3077 if { { ac_try="$ac_compile"
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
3084 (eval "$ac_compile") 2>&5
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3087 test $ac_status = 0; }; then :
3088 for ac_file in conftest.o conftest.obj conftest.*; do
3089 test -f "$ac_file" || continue;
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3092 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3097 $as_echo "$as_me: failed program was
:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 as_fn_error "cannot compute suffix of object files: cannot compile
3103 See \`config.log' for more details.
" "$LINENO" 5; }
3105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3108 $as_echo "$ac_cv_objext" >&6; }
3109 OBJEXT=$ac_cv_objext
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3112 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3113 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3114 $as_echo_n "(cached
) " >&6
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3130 if ac_fn_c_try_compile "$LINENO"; then :
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3140 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3141 if test $ac_compiler_gnu = yes; then
3146 ac_test_CFLAGS=${CFLAGS+set}
3147 ac_save_CFLAGS=$CFLAGS
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3149 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3150 if test "${ac_cv_prog_cc_g+set}" = set; then :
3151 $as_echo_n "(cached
) " >&6
3153 ac_save_c_werror_flag=$ac_c_werror_flag
3154 ac_c_werror_flag=yes
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3168 if ac_fn_c_try_compile "$LINENO"; then :
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3183 if ac_fn_c_try_compile "$LINENO"; then :
3186 ac_c_werror_flag=$ac_save_c_werror_flag
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3199 if ac_fn_c_try_compile "$LINENO"; then :
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 ac_c_werror_flag=$ac_save_c_werror_flag
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3210 $as_echo "$ac_cv_prog_cc_g" >&6; }
3211 if test "$ac_test_CFLAGS" = set; then
3212 CFLAGS=$ac_save_CFLAGS
3213 elif test $ac_cv_prog_cc_g = yes; then
3214 if test "$GCC" = yes; then
3220 if test "$GCC" = yes; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3227 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3228 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3229 $as_echo_n "(cached
) " >&6
3231 ac_cv_prog_cc_c89=no
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3237 #include <sys/types.h>
3238 #include <sys/stat.h>
3239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3240 struct buf { int x; };
3241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242 static char *e (p, i)
3248 static char *f (char * (*g) (char **, int), char **p, ...)
3253 s = g (p, va_arg (v,int));
3258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3259 function prototypes and stuff, but not '\xHH' hex character constants.
3260 These don't provoke an error unfortunately, instead are silently treated
3261 as 'x'. The following induces an error, until -std is added to get
3262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3263 array size at least. It's necessary to write '\x00'==0 to get something
3264 that's true only with -std. */
3265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268 inside strings and character constants. */
3270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272 int test (int i, double x);
3273 struct s1 {int (*f) (int a);};
3274 struct s2 {int (*f) (double a);};
3275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3289 CC="$ac_save_CC $ac_arg"
3290 if ac_fn_c_try_compile "$LINENO"; then :
3291 ac_cv_prog_cc_c89=$ac_arg
3293 rm -f core conftest.err conftest.$ac_objext
3294 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3296 rm -f conftest.$ac_ext
3301 case "x
$ac_cv_prog_cc_c89" in
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3304 $as_echo "none needed
" >&6; } ;;
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3307 $as_echo "unsupported
" >&6; } ;;
3309 CC="$CC $ac_cv_prog_cc_c89"
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3313 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 ac_cpp='$CXXCPP $CPPFLAGS'
3325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3328 if test -z "$CXX"; then
3329 if test -n "$CCC"; then
3332 if test -n "$ac_tool_prefix"; then
3333 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3338 $as_echo_n "checking
for $ac_word...
" >&6; }
3339 if test "${ac_cv_prog_CXX+set}" = set; then :
3340 $as_echo_n "(cached
) " >&6
3342 if test -n "$CXX"; then
3343 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3353 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3363 if test -n "$CXX"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
3365 $as_echo "$CXX" >&6; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3368 $as_echo "no
" >&6; }
3372 test -n "$CXX" && break
3375 if test -z "$CXX"; then
3377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3379 # Extract the first word of "$ac_prog", so it can be a program name with args.
3380 set dummy $ac_prog; ac_word=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3382 $as_echo_n "checking
for $ac_word...
" >&6; }
3383 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3384 $as_echo_n "(cached
) " >&6
3386 if test -n "$ac_ct_CXX"; then
3387 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 ac_cv_prog_ac_ct_CXX="$ac_prog"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3406 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3407 if test -n "$ac_ct_CXX"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
3409 $as_echo "$ac_ct_CXX" >&6; }
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3412 $as_echo "no
" >&6; }
3416 test -n "$ac_ct_CXX" && break
3419 if test "x
$ac_ct_CXX" = x; then
3422 case $cross_compiling:$ac_tool_warned in
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3425 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3426 ac_tool_warned=yes ;;
3434 # Provide some information about the compiler.
3435 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
3438 for ac_option in --version -v -V -qversion; do
3439 { { ac_try="$ac_compiler $ac_option >&5"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3448 if test -s conftest.err; then
3450 ... rest of stderr output deleted ...
3451 10q' conftest.err >conftest.er1
3452 cat conftest.er1 >&5
3453 rm -f conftest.er1 conftest.err
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3456 test $ac_status = 0; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
3460 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
3461 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3462 $as_echo_n "(cached
) " >&6
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3478 if ac_fn_cxx_try_compile "$LINENO"; then :
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
3488 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3489 if test $ac_compiler_gnu = yes; then
3494 ac_test_CXXFLAGS=${CXXFLAGS+set}
3495 ac_save_CXXFLAGS=$CXXFLAGS
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
3497 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
3498 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3499 $as_echo_n "(cached
) " >&6
3501 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3502 ac_cxx_werror_flag=yes
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3516 if ac_fn_cxx_try_compile "$LINENO"; then :
3517 ac_cv_prog_cxx_g=yes
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3531 if ac_fn_cxx_try_compile "$LINENO"; then :
3534 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3547 if ac_fn_cxx_try_compile "$LINENO"; then :
3548 ac_cv_prog_cxx_g=yes
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3558 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3559 if test "$ac_test_CXXFLAGS" = set; then
3560 CXXFLAGS=$ac_save_CXXFLAGS
3561 elif test $ac_cv_prog_cxx_g = yes; then
3562 if test "$GXX" = yes; then
3568 if test "$GXX" = yes; then
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3587 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3588 # On Suns, sometimes $CPP names a directory.
3589 if test -n "$CPP" && test -d "$CPP"; then
3592 if test -z "$CPP"; then
3593 if test "${ac_cv_prog_CPP+set}" = set; then :
3594 $as_echo_n "(cached
) " >&6
3596 # Double quotes because CPP needs to be expanded
3597 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3600 for ac_c_preproc_warn_flag in '' yes
3602 # Use a header file that comes with gcc, so configuring glibc
3603 # with a fresh cross-compiler works.
3604 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3605 # <limits.h> exists even on freestanding compilers.
3606 # On the NeXT, cc -E runs the code through the compiler's parser,
3607 # not just through cpp. "Syntax error
" is here to catch this case.
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3611 # include <limits.h>
3613 # include <assert.h>
3617 if ac_fn_c_try_cpp "$LINENO"; then :
3620 # Broken: fails on valid input.
3623 rm -f conftest.err conftest.$ac_ext
3625 # OK, works on sane cases. Now check whether nonexistent headers
3626 # can be detected and how.
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629 #include <ac_nonexistent.h>
3631 if ac_fn_c_try_cpp "$LINENO"; then :
3632 # Broken: success on invalid input.
3635 # Passes both tests.
3639 rm -f conftest.err conftest.$ac_ext
3642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3643 rm -f conftest.err conftest.$ac_ext
3644 if $ac_preproc_ok; then :
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3657 $as_echo "$CPP" >&6; }
3659 for ac_c_preproc_warn_flag in '' yes
3661 # Use a header file that comes with gcc, so configuring glibc
3662 # with a fresh cross-compiler works.
3663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664 # <limits.h> exists even on freestanding compilers.
3665 # On the NeXT, cc -E runs the code through the compiler's parser,
3666 # not just through cpp. "Syntax error
" is here to catch this case.
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3670 # include <limits.h>
3672 # include <assert.h>
3676 if ac_fn_c_try_cpp "$LINENO"; then :
3679 # Broken: fails on valid input.
3682 rm -f conftest.err conftest.$ac_ext
3684 # OK, works on sane cases. Now check whether nonexistent headers
3685 # can be detected and how.
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 #include <ac_nonexistent.h>
3690 if ac_fn_c_try_cpp "$LINENO"; then :
3691 # Broken: success on invalid input.
3694 # Passes both tests.
3698 rm -f conftest.err conftest.$ac_ext
3701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3702 rm -f conftest.err conftest.$ac_ext
3703 if $ac_preproc_ok; then :
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3709 See \`config.log' for more details.
" "$LINENO" 5; }
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3720 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3721 if test "${ac_cv_path_GREP+set}" = set; then :
3722 $as_echo_n "(cached
) " >&6
3724 if test -z "$GREP"; then
3725 ac_path_GREP_found=false
3726 # Loop through the user's path and test for each of PROGNAME-LIST
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3731 test -z "$as_dir" && as_dir=.
3732 for ac_prog in grep ggrep; do
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3735 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3736 # Check for GNU ac_path_GREP and select it if it is found.
3737 # Check for GNU $ac_path_GREP
3738 case `"$ac_path_GREP" --version 2>&1` in
3740 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3743 $as_echo_n 0123456789 >"conftest.
in"
3746 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3747 mv "conftest.tmp
" "conftest.
in"
3748 cp "conftest.
in" "conftest.
nl"
3749 $as_echo 'GREP' >> "conftest.
nl"
3750 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3751 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3752 as_fn_arith $ac_count + 1 && ac_count=$as_val
3753 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3754 # Best one so far, save it but keep looking for a better one
3755 ac_cv_path_GREP="$ac_path_GREP"
3756 ac_path_GREP_max=$ac_count
3758 # 10*(2^10) chars as input seems more than enough
3759 test $ac_count -gt 10 && break
3761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3764 $ac_path_GREP_found && break 3
3769 if test -z "$ac_cv_path_GREP"; then
3770 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3773 ac_cv_path_GREP=$GREP
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3778 $as_echo "$ac_cv_path_GREP" >&6; }
3779 GREP="$ac_cv_path_GREP"
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3783 $as_echo_n "checking
for egrep...
" >&6; }
3784 if test "${ac_cv_path_EGREP+set}" = set; then :
3785 $as_echo_n "(cached
) " >&6
3787 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3788 then ac_cv_path_EGREP="$GREP -E"
3790 if test -z "$EGREP"; then
3791 ac_path_EGREP_found=false
3792 # Loop through the user's path and test for each of PROGNAME-LIST
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3797 test -z "$as_dir" && as_dir=.
3798 for ac_prog in egrep; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3801 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3802 # Check for GNU ac_path_EGREP and select it if it is found.
3803 # Check for GNU $ac_path_EGREP
3804 case `"$ac_path_EGREP" --version 2>&1` in
3806 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3809 $as_echo_n 0123456789 >"conftest.
in"
3812 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3813 mv "conftest.tmp
" "conftest.
in"
3814 cp "conftest.
in" "conftest.
nl"
3815 $as_echo 'EGREP' >> "conftest.
nl"
3816 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3817 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3818 as_fn_arith $ac_count + 1 && ac_count=$as_val
3819 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3820 # Best one so far, save it but keep looking for a better one
3821 ac_cv_path_EGREP="$ac_path_EGREP"
3822 ac_path_EGREP_max=$ac_count
3824 # 10*(2^10) chars as input seems more than enough
3825 test $ac_count -gt 10 && break
3827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3830 $ac_path_EGREP_found && break 3
3835 if test -z "$ac_cv_path_EGREP"; then
3836 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3839 ac_cv_path_EGREP=$EGREP
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3845 $as_echo "$ac_cv_path_EGREP" >&6; }
3846 EGREP="$ac_cv_path_EGREP"
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3850 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3851 if test "${ac_cv_header_stdc+set}" = set; then :
3852 $as_echo_n "(cached
) " >&6
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3869 if ac_fn_c_try_compile "$LINENO"; then :
3870 ac_cv_header_stdc=yes
3872 ac_cv_header_stdc=no
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 if test $ac_cv_header_stdc = yes; then
3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3883 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3884 $EGREP "memchr
" >/dev/null 2>&1; then :
3887 ac_cv_header_stdc=no
3893 if test $ac_cv_header_stdc = yes; then
3894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3900 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3901 $EGREP "free
" >/dev/null 2>&1; then :
3904 ac_cv_header_stdc=no
3910 if test $ac_cv_header_stdc = yes; then
3911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3912 if test "$cross_compiling" = yes; then :
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3919 #if ((' ' & 0x0FF) == 0x020)
3920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3923 # define ISLOWER(c) \
3924 (('a' <= (c) && (c) <= 'i') \
3925 || ('j' <= (c) && (c) <= 'r') \
3926 || ('s' <= (c) && (c) <= 'z'))
3927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3935 for (i = 0; i < 256; i++)
3936 if (XOR (islower (i), ISLOWER (i))
3937 || toupper (i) != TOUPPER (i))
3942 if ac_fn_c_try_run "$LINENO"; then :
3945 ac_cv_header_stdc=no
3947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3948 conftest.$ac_objext conftest.beam conftest.$ac_ext
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3954 $as_echo "$ac_cv_header_stdc" >&6; }
3955 if test $ac_cv_header_stdc = yes; then
3957 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3961 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3962 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3963 inttypes.h stdint.h unistd.h
3965 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3966 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3968 eval as_val
=\$
$as_ac_Header
3969 if test "x$as_val" = x
""yes; then :
3970 cat >>confdefs.h
<<_ACEOF
3971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3980 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3981 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3988 if test "$MINIX" = yes; then
3990 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3993 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3996 $as_echo "#define _MINIX 1" >>confdefs.h
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4002 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4003 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4009 # define __EXTENSIONS__ 1
4010 $ac_includes_default
4019 if ac_fn_c_try_compile
"$LINENO"; then :
4020 ac_cv_safe_to_define___extensions__
=yes
4022 ac_cv_safe_to_define___extensions__
=no
4024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4027 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4028 test $ac_cv_safe_to_define___extensions__ = yes &&
4029 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4031 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4033 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4035 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4037 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4041 # Check whether --enable-largefile was given.
4042 if test "${enable_largefile+set}" = set; then :
4043 enableval
=$enable_largefile;
4046 if test "$enable_largefile" != no
; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4049 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4050 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4051 $as_echo_n "(cached) " >&6
4053 ac_cv_sys_largefile_CC
=no
4054 if test "$GCC" != yes; then
4057 # IRIX 6.2 and later do not support large files by default,
4058 # so use the C compiler's -n32 option if that helps.
4059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #include <sys/types.h>
4062 /* Check that off_t can represent 2**63 - 1 correctly.
4063 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4064 since some C++ compilers masquerading as C compilers
4065 incorrectly reject 9223372036854775807. */
4066 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4067 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4068 && LARGE_OFF_T % 2147483647 == 1)
4078 if ac_fn_c_try_compile
"$LINENO"; then :
4081 rm -f core conftest.err conftest.
$ac_objext
4083 if ac_fn_c_try_compile
"$LINENO"; then :
4084 ac_cv_sys_largefile_CC
=' -n32'; break
4086 rm -f core conftest.err conftest.
$ac_objext
4090 rm -f conftest.
$ac_ext
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4094 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4095 if test "$ac_cv_sys_largefile_CC" != no
; then
4096 CC
=$CC$ac_cv_sys_largefile_CC
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4100 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4101 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 #include <sys/types.h>
4108 /* Check that off_t can represent 2**63 - 1 correctly.
4109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4110 since some C++ compilers masquerading as C compilers
4111 incorrectly reject 9223372036854775807. */
4112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4114 && LARGE_OFF_T % 2147483647 == 1)
4124 if ac_fn_c_try_compile
"$LINENO"; then :
4125 ac_cv_sys_file_offset_bits
=no
; break
4127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130 #define _FILE_OFFSET_BITS 64
4131 #include <sys/types.h>
4132 /* Check that off_t can represent 2**63 - 1 correctly.
4133 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4134 since some C++ compilers masquerading as C compilers
4135 incorrectly reject 9223372036854775807. */
4136 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4137 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4138 && LARGE_OFF_T % 2147483647 == 1)
4148 if ac_fn_c_try_compile
"$LINENO"; then :
4149 ac_cv_sys_file_offset_bits
=64; break
4151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4152 ac_cv_sys_file_offset_bits
=unknown
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4157 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4158 case $ac_cv_sys_file_offset_bits in #(
4161 cat >>confdefs.h
<<_ACEOF
4162 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4167 if test $ac_cv_sys_file_offset_bits = unknown
; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4169 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4170 if test "${ac_cv_sys_large_files+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176 #include <sys/types.h>
4177 /* Check that off_t can represent 2**63 - 1 correctly.
4178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4179 since some C++ compilers masquerading as C compilers
4180 incorrectly reject 9223372036854775807. */
4181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4183 && LARGE_OFF_T % 2147483647 == 1)
4193 if ac_fn_c_try_compile
"$LINENO"; then :
4194 ac_cv_sys_large_files
=no
; break
4196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 #define _LARGE_FILES 1
4200 #include <sys/types.h>
4201 /* Check that off_t can represent 2**63 - 1 correctly.
4202 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4203 since some C++ compilers masquerading as C compilers
4204 incorrectly reject 9223372036854775807. */
4205 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4206 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4207 && LARGE_OFF_T % 2147483647 == 1)
4217 if ac_fn_c_try_compile
"$LINENO"; then :
4218 ac_cv_sys_large_files
=1; break
4220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4221 ac_cv_sys_large_files
=unknown
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4226 $as_echo "$ac_cv_sys_large_files" >&6; }
4227 case $ac_cv_sys_large_files in #(
4230 cat >>confdefs.h
<<_ACEOF
4231 #define _LARGE_FILES $ac_cv_sys_large_files
4241 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4242 for ac_t
in install-sh
install.sh shtool
; do
4243 if test -f "$ac_dir/$ac_t"; then
4245 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4250 if test -z "$ac_aux_dir"; then
4251 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4254 # These three variables are undocumented and unsupported,
4255 # and are intended to be withdrawn in a future Autoconf release.
4256 # They can cause serious problems if a builder's source tree is in a directory
4257 # whose full name contains unusual characters.
4258 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4259 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4260 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4263 # Make sure we can run config.sub.
4264 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4265 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4268 $as_echo_n "checking build system type... " >&6; }
4269 if test "${ac_cv_build+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4272 ac_build_alias
=$build_alias
4273 test "x$ac_build_alias" = x
&&
4274 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4275 test "x$ac_build_alias" = x
&&
4276 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4277 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4278 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4282 $as_echo "$ac_cv_build" >&6; }
4283 case $ac_cv_build in
4285 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4288 ac_save_IFS
=$IFS; IFS
='-'
4294 # Remember, the first character of IFS is used to create $*,
4295 # except with old shells:
4298 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4302 $as_echo_n "checking host system type... " >&6; }
4303 if test "${ac_cv_host+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4306 if test "x$host_alias" = x
; then
4307 ac_cv_host
=$ac_cv_build
4309 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4310 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4315 $as_echo "$ac_cv_host" >&6; }
4318 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4321 ac_save_IFS
=$IFS; IFS
='-'
4327 # Remember, the first character of IFS is used to create $*,
4328 # except with old shells:
4331 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4335 $as_echo_n "checking target system type... " >&6; }
4336 if test "${ac_cv_target+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4339 if test "x$target_alias" = x
; then
4340 ac_cv_target
=$ac_cv_host
4342 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4343 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4348 $as_echo "$ac_cv_target" >&6; }
4349 case $ac_cv_target in
4351 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4353 target
=$ac_cv_target
4354 ac_save_IFS
=$IFS; IFS
='-'
4360 # Remember, the first character of IFS is used to create $*,
4361 # except with old shells:
4364 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4367 # The aliases save the names the user supplied, while $host etc.
4368 # will get canonicalized.
4369 test -n "$target_alias" &&
4370 test "$program_prefix$program_suffix$program_transform_name" = \
4372 program_prefix
=${target_alias}-
4375 # Find a good install program. We prefer a C program (faster),
4376 # so one script is as good as another. But avoid the broken or
4377 # incompatible versions:
4378 # SysV /etc/install, /usr/sbin/install
4379 # SunOS /usr/etc/install
4380 # IRIX /sbin/install
4382 # AmigaOS /C/install, which installs bootblocks on floppy discs
4383 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4384 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4385 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4386 # OS/2's system install, which has a completely different semantic
4387 # ./install, which can be erroneously created by make from ./install.sh.
4388 # Reject install programs that cannot install multiple files.
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4390 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4391 if test -z "$INSTALL"; then
4392 if test "${ac_cv_path_install+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir
=.
4400 # Account for people who put trailing slashes in PATH elements.
4401 case $as_dir/ in #((
4402 .
/ | .
// |
/[cC
]/* | \
4403 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4404 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4407 # OSF1 and SCO ODT 3.0 have their own names for install.
4408 # Don't use installbsd from OSF since it installs stuff as root
4410 for ac_prog
in ginstall scoinst
install; do
4411 for ac_exec_ext
in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4413 if test $ac_prog = install &&
4414 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4415 # AIX install. It has an incompatible calling convention.
4417 elif test $ac_prog = install &&
4418 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4419 # program-specific install script used by HP pwplus--don't use.
4422 rm -rf conftest.one conftest.two conftest.dir
4423 echo one
> conftest.one
4424 echo two
> conftest.two
4426 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4427 test -s conftest.one
&& test -s conftest.two
&&
4428 test -s conftest.dir
/conftest.one
&&
4429 test -s conftest.dir
/conftest.two
4431 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4444 rm -rf conftest.one conftest.two conftest.dir
4447 if test "${ac_cv_path_install+set}" = set; then
4448 INSTALL
=$ac_cv_path_install
4450 # As a last resort, use the slow shell script. Don't cache a
4451 # value for INSTALL within a source directory, because that will
4452 # break other packages using the cache if that directory is
4453 # removed, or if the value is a relative name.
4454 INSTALL
=$ac_install_sh
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4458 $as_echo "$INSTALL" >&6; }
4460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4461 # It thinks the first close brace ends the variable substitution.
4462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4466 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4468 if test -n "$ac_tool_prefix"; then
4469 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4470 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if test "${ac_cv_prog_AR+set}" = set; then :
4474 $as_echo_n "(cached) " >&6
4476 if test -n "$AR"; then
4477 ac_cv_prog_AR
="$AR" # Let the user override the test.
4479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4483 test -z "$as_dir" && as_dir
=.
4484 for ac_exec_ext
in '' $ac_executable_extensions; do
4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 if test -n "$AR"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4499 $as_echo "$AR" >&6; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4507 if test -z "$ac_cv_prog_AR"; then
4509 # Extract the first word of "ar", so it can be a program name with args.
4510 set dummy
ar; ac_word
=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4516 if test -n "$ac_ct_AR"; then
4517 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir
=.
4524 for ac_exec_ext
in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_ac_ct_AR
="ar"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4537 if test -n "$ac_ct_AR"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4539 $as_echo "$ac_ct_AR" >&6; }
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4545 if test "x$ac_ct_AR" = x
; then
4548 case $cross_compiling:$ac_tool_warned in
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552 ac_tool_warned
=yes ;;
4560 if test -n "$ac_tool_prefix"; then
4561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4562 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4568 if test -n "$RANLIB"; then
4569 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir
=.
4576 for ac_exec_ext
in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 RANLIB
=$ac_cv_prog_RANLIB
4589 if test -n "$RANLIB"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4591 $as_echo "$RANLIB" >&6; }
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4599 if test -z "$ac_cv_prog_RANLIB"; then
4600 ac_ct_RANLIB
=$RANLIB
4601 # Extract the first word of "ranlib", so it can be a program name with args.
4602 set dummy ranlib
; ac_word
=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4608 if test -n "$ac_ct_RANLIB"; then
4609 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir
=.
4616 for ac_exec_ext
in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4629 if test -n "$ac_ct_RANLIB"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4631 $as_echo "$ac_ct_RANLIB" >&6; }
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4637 if test "x$ac_ct_RANLIB" = x
; then
4640 case $cross_compiling:$ac_tool_warned in
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644 ac_tool_warned
=yes ;;
4646 RANLIB
=$ac_ct_RANLIB
4649 RANLIB
="$ac_cv_prog_RANLIB"
4653 test "$program_prefix" != NONE
&&
4654 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4655 # Use a double $ so make ignores it.
4656 test "$program_suffix" != NONE
&&
4657 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4658 # Double any \ or $.
4659 # By default was `s,x,x', remove it if useless.
4660 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4661 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4665 $as_echo_n "checking for ANSI C header files... " >&6; }
4666 if test "${ac_cv_header_stdc+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
4669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4684 if ac_fn_c_try_compile
"$LINENO"; then :
4685 ac_cv_header_stdc
=yes
4687 ac_cv_header_stdc
=no
4689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4691 if test $ac_cv_header_stdc = yes; then
4692 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4699 $EGREP "memchr" >/dev
/null
2>&1; then :
4702 ac_cv_header_stdc
=no
4708 if test $ac_cv_header_stdc = yes; then
4709 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4716 $EGREP "free" >/dev
/null
2>&1; then :
4719 ac_cv_header_stdc
=no
4725 if test $ac_cv_header_stdc = yes; then
4726 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4727 if test "$cross_compiling" = yes; then :
4730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4734 #if ((' ' & 0x0FF) == 0x020)
4735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4738 # define ISLOWER(c) \
4739 (('a' <= (c) && (c) <= 'i') \
4740 || ('j' <= (c) && (c) <= 'r') \
4741 || ('s' <= (c) && (c) <= 'z'))
4742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4750 for (i = 0; i < 256; i++)
4751 if (XOR (islower (i), ISLOWER (i))
4752 || toupper (i) != TOUPPER (i))
4757 if ac_fn_c_try_run
"$LINENO"; then :
4760 ac_cv_header_stdc
=no
4762 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4763 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4769 $as_echo "$ac_cv_header_stdc" >&6; }
4770 if test $ac_cv_header_stdc = yes; then
4772 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4777 # See if we are building with C++, and substitute COMPILER.
4779 # Check whether --enable-build-with-cxx was given.
4780 if test "${enable_build_with_cxx+set}" = set; then :
4781 enableval
=$enable_build_with_cxx; case $enableval in
4785 as_fn_error
"bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4788 enable_build_with_cxx
=yes
4792 if test "$enable_build_with_cxx" = "yes"; then
4794 COMPILER_CFLAGS
='$(CXXFLAGS)'
4797 COMPILER_CFLAGS
='$(CFLAGS)'
4803 # Set the 'development' global.
4804 .
$srcdir/..
/..
/bfd
/development.sh
4806 # Enable -lmcheck by default (it provides cheap-enough memory
4807 # mangling), but turn it off for releases.
4808 if $development; then
4809 libmcheck_default
=yes
4811 libmcheck_default
=no
4814 # Check whether --enable-libmcheck was given.
4815 if test "${enable_libmcheck+set}" = set; then :
4816 enableval
=$enable_libmcheck; case "${enableval}" in
4817 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
4818 no | n
) ENABLE_LIBMCHECK
="no" ;;
4819 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
4824 if test -z "${ENABLE_LIBMCHECK}"; then
4825 ENABLE_LIBMCHECK
=${libmcheck_default}
4828 if test "$ENABLE_LIBMCHECK" = "yes" ; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
4830 $as_echo_n "checking for main in -lmcheck... " >&6; }
4831 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4834 ac_check_lib_save_LIBS
=$LIBS
4835 LIBS
="-lmcheck $LIBS"
4836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4848 if ac_fn_c_try_link
"$LINENO"; then :
4849 ac_cv_lib_mcheck_main
=yes
4851 ac_cv_lib_mcheck_main
=no
4853 rm -f core conftest.err conftest.
$ac_objext \
4854 conftest
$ac_exeext conftest.
$ac_ext
4855 LIBS
=$ac_check_lib_save_LIBS
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
4858 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
4859 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
4860 cat >>confdefs.h
<<_ACEOF
4861 #define HAVE_LIBMCHECK 1
4864 LIBS
="-lmcheck $LIBS"
4871 case ${build_alias} in
4872 "") build_noncanonical
=${build} ;;
4873 *) build_noncanonical
=${build_alias} ;;
4876 case ${host_alias} in
4877 "") host_noncanonical
=${build_noncanonical} ;;
4878 *) host_noncanonical
=${host_alias} ;;
4881 case ${target_alias} in
4882 "") target_noncanonical
=${host_noncanonical} ;;
4883 *) target_noncanonical
=${target_alias} ;;
4891 # Dependency checking.
4892 rm -rf .tst
2>/dev
/null
4893 mkdir .tst
2>/dev
/null
4894 if test -d .tst
; then
4899 rmdir .tst
2>/dev
/null
4901 DEPDIR
="${am__leading_dot}deps"
4903 ac_config_commands
="$ac_config_commands depdir"
4906 depcc
="$CC" am_compiler_list
=
4908 am_depcomp
=$ac_aux_dir/depcomp
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4910 $as_echo_n "checking dependency style of $depcc... " >&6; }
4911 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4914 if test -f "$am_depcomp"; then
4915 # We make a subdir and do the tests there. Otherwise we can end up
4916 # making bogus files that we don't know about and never remove. For
4917 # instance it was reported that on HP-UX the gcc test will end up
4918 # making a dummy file named `D' -- because `-MD' means `put the output
4921 # Copy depcomp to subdir because otherwise we won't find it if we're
4922 # using a relative directory.
4923 cp "$am_depcomp" conftest.dir
4925 # We will build objects and dependencies in a subdirectory because
4926 # it helps to detect inapplicable dependency modes. For instance
4927 # both Tru64's cc and ICC support -MD to output dependencies as a
4928 # side effect of compilation, but ICC will put the dependencies in
4929 # the current directory while Tru64 will put them in the object
4933 am_cv_CC_dependencies_compiler_type
=none
4934 if test "$am_compiler_list" = ""; then
4935 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4937 for depmode
in $am_compiler_list; do
4938 if test $depmode = none
; then break; fi
4940 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4941 # Setup a source with many dependencies, because some compilers
4942 # like to wrap large dependency lists on column 80 (with \), and
4943 # we should not choose a depcomp mode which is confused by this.
4945 # We need to recreate these files for each test, as the compiler may
4946 # overwrite some of them when testing with obscure command lines.
4947 # This happens at least with the AIX C compiler.
4949 for i
in 1 2 3 4 5 6; do
4950 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4951 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4952 # Solaris 8's {/usr,}/bin/sh.
4953 touch sub
/conftst
$i.h
4955 echo "include sub/conftest.Po" > confmf
4957 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4958 # mode. It turns out that the SunPro C++ compiler does not properly
4959 # handle `-M -o', and we need to detect this.
4960 depcmd
="depmode=$depmode \
4961 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4962 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4963 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4964 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4965 if env
$depcmd > conftest.err
2>&1 &&
4966 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4967 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4968 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4969 # icc doesn't choke on unknown options, it will just issue warnings
4970 # or remarks (even with -Werror). So we grep stderr for any message
4971 # that says an option was ignored or not supported.
4972 # When given -MP, icc 7.0 and 7.1 complain thusly:
4973 # icc: Command line warning: ignoring option '-M'; no argument required
4974 # The diagnosis changed in icc 8.0:
4975 # icc: Command line remark: option '-MP' not supported
4976 if (grep 'ignoring option' conftest.err ||
4977 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4978 am_cv_CC_dependencies_compiler_type
=$depmode
4979 $as_echo "$as_me:$LINENO: success" >&5
4983 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4984 sed -e 's/^/| /' < conftest.err
>&5
4990 am_cv_CC_dependencies_compiler_type
=none
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4995 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4996 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4997 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4998 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5003 # Check for the 'make' the user wants to use.
5006 # Extract the first word of "$ac_prog", so it can be a program name with args.
5007 set dummy
$ac_prog; ac_word
=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if test "${ac_cv_prog_MAKE+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5013 if test -n "$MAKE"; then
5014 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir
=.
5021 for ac_exec_ext
in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_MAKE
="$ac_prog"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 MAKE
=$ac_cv_prog_MAKE
5034 if test -n "$MAKE"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5036 $as_echo "$MAKE" >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5043 test -n "$MAKE" && break
5047 case "`$MAKE --version 2>&1 | sed 1q`" in
5052 if test "$MAKE_IS_GNU" = yes; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5061 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5063 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5064 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5065 $as_echo_n "(cached) " >&6
5067 cat >conftest.
make <<\_ACEOF
5070 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5072 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5073 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5075 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5077 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5081 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5083 $as_echo "yes" >&6; }
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5088 SET_MAKE
="MAKE=${MAKE-make}"
5092 gnulib_extra_configure_args
=
5093 # If large-file support is disabled, make sure gnulib does the same.
5094 if test "$enable_largefile" = no
; then
5095 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5098 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
5099 # to find the the source subdir to be configured directly under
5100 # gdbserver/. We need to build gnulib under some other directory not
5101 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
5102 # build it in the same directory, when building in the source dir.
5105 in_build
="build-gnulib-gdbserver"
5106 in_extra_args
="$gnulib_extra_configure_args"
5108 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5109 # so they do not pile up.
5110 ac_sub_configure_args
=
5112 eval "set x $ac_configure_args"
5116 if test -n "$ac_prev"; then
5121 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5122 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5123 ac_prev
=cache_file
;;
5124 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5125 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5128 --config-cache |
-C)
5130 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5132 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5134 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5136 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5138 --disable-option-checking)
5142 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5144 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5148 # Always prepend --prefix to ensure using the same prefix
5149 # in subdir configurations.
5150 ac_arg
="--prefix=$prefix"
5152 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5154 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5157 if test "$silent" = yes; then
5158 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5161 # Always prepend --disable-option-checking to silence warnings, since
5162 # different subdirs can have different --enable and --with options.
5163 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5168 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5170 $as_echo "$ac_msg" >&6
5171 as_dir
="$ac_dir"; as_fn_mkdir_p
5175 ac_srcdir
=$srcdir/$in_src ;;
5177 ac_srcdir
=..
/$srcdir/$in_src ;;
5182 ac_sub_configure
=$ac_srcdir/configure
5184 # Make the cache file name correct relative to the subdirectory.
5186 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5188 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5191 if test -n "$in_extra_args"; then
5192 # Add the extra args at the end.
5193 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
5197 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5198 # The eval makes quoting arguments work.
5199 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5200 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5201 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5207 in_src
="../../libiberty"
5208 in_build
="build-libiberty-gdbserver"
5211 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5212 # so they do not pile up.
5213 ac_sub_configure_args
=
5215 eval "set x $ac_configure_args"
5219 if test -n "$ac_prev"; then
5224 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5225 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5226 ac_prev
=cache_file
;;
5227 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5228 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5231 --config-cache |
-C)
5233 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5235 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5237 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5239 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5241 --disable-option-checking)
5245 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5247 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5251 # Always prepend --prefix to ensure using the same prefix
5252 # in subdir configurations.
5253 ac_arg
="--prefix=$prefix"
5255 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5257 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5260 if test "$silent" = yes; then
5261 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5264 # Always prepend --disable-option-checking to silence warnings, since
5265 # different subdirs can have different --enable and --with options.
5266 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5271 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5272 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5273 $as_echo "$ac_msg" >&6
5274 as_dir
="$ac_dir"; as_fn_mkdir_p
5278 ac_srcdir
=$srcdir/$in_src ;;
5280 ac_srcdir
=..
/$srcdir/$in_src ;;
5285 ac_sub_configure
=$ac_srcdir/configure
5287 # Make the cache file name correct relative to the subdirectory.
5289 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5291 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5294 if test -n "$in_extra_args"; then
5295 # Add the extra args at the end.
5296 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
5300 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5301 # The eval makes quoting arguments work.
5302 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5303 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5304 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5309 for ac_header
in sgtty.h termio.h termios.h sys
/reg.h string.h proc_service.h sys
/procfs.h linux
/elf.h fcntl.h signal.h sys
/file.h sys
/ioctl.h netinet
/in.h sys
/socket.h netdb.h netinet
/tcp.h arpa
/inet.h
5311 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5312 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5313 eval as_val
=\$
$as_ac_Header
5314 if test "x$as_val" = x
""yes; then :
5315 cat >>confdefs.h
<<_ACEOF
5316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5323 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5324 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5328 cat >>confdefs.h
<<_ACEOF
5334 for ac_header
in vfork.h
5336 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5337 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
5338 cat >>confdefs.h
<<_ACEOF
5339 #define HAVE_VFORK_H 1
5346 for ac_func
in fork vfork
5348 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5349 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5350 eval as_val
=\$
$as_ac_var
5351 if test "x$as_val" = x
""yes; then :
5352 cat >>confdefs.h
<<_ACEOF
5353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5359 if test "x$ac_cv_func_fork" = xyes
; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5361 $as_echo_n "checking for working fork... " >&6; }
5362 if test "${ac_cv_func_fork_works+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
5365 if test "$cross_compiling" = yes; then :
5366 ac_cv_func_fork_works
=cross
5368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370 $ac_includes_default
5375 /* By Ruediger Kuhlmann. */
5382 if ac_fn_c_try_run
"$LINENO"; then :
5383 ac_cv_func_fork_works
=yes
5385 ac_cv_func_fork_works
=no
5387 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5388 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5393 $as_echo "$ac_cv_func_fork_works" >&6; }
5396 ac_cv_func_fork_works
=$ac_cv_func_fork
5398 if test "x$ac_cv_func_fork_works" = xcross
; then
5400 *-*-amigaos* |
*-*-msdosdjgpp*)
5401 # Override, as these systems have only a dummy fork() stub
5402 ac_cv_func_fork_works
=no
5405 ac_cv_func_fork_works
=yes
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5409 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5411 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5412 if test "x$ac_cv_func_vfork" = xyes
; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5414 $as_echo_n "checking for working vfork... " >&6; }
5415 if test "${ac_cv_func_vfork_works+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5418 if test "$cross_compiling" = yes; then :
5419 ac_cv_func_vfork_works
=cross
5421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 /* Thanks to Paul Eggert for this test. */
5424 $ac_includes_default
5425 #include <sys/wait.h>
5429 /* On some sparc systems, changes by the child to local and incoming
5430 argument registers are propagated back to the parent. The compiler
5431 is told about this with #include <vfork.h>, but some compilers
5432 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5433 static variable whose address is put into a register that is
5434 clobbered by the vfork. */
5437 sparc_address_test (int arg)
5439 sparc_address_test (arg) int arg;
5460 pid_t parent = getpid ();
5463 sparc_address_test (0);
5468 /* Here is another test for sparc vfork register problems. This
5469 test uses lots of local variables, at least as many local
5470 variables as main has allocated so far including compiler
5471 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5472 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5473 reuse the register of parent for one of the local variables,
5474 since it will think that parent can't possibly be used any more
5475 in this routine. Assigning to the local variable will thus
5476 munge parent in the parent process. */
5478 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5479 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5480 /* Convince the compiler that p..p7 are live; otherwise, it might
5481 use the same hardware register for all 8 local variables. */
5482 if (p != p1 || p != p2 || p != p3 || p != p4
5483 || p != p5 || p != p6 || p != p7)
5486 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5487 from child file descriptors. If the child closes a descriptor
5488 before it execs or exits, this munges the parent's descriptor
5489 as well. Test for this by closing stdout in the child. */
5490 _exit(close(fileno(stdout)) != 0);
5495 while (wait(&status) != child)
5498 /* Was there some problem with vforking? */
5501 /* Did the child fail? (This shouldn't happen.) */
5504 /* Did the vfork/compiler bug occur? */
5505 || parent != getpid()
5507 /* Did the file descriptor bug occur? */
5508 || fstat(fileno(stdout), &st) != 0
5513 if ac_fn_c_try_run
"$LINENO"; then :
5514 ac_cv_func_vfork_works
=yes
5516 ac_cv_func_vfork_works
=no
5518 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5519 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5524 $as_echo "$ac_cv_func_vfork_works" >&6; }
5527 if test "x$ac_cv_func_fork_works" = xcross
; then
5528 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5530 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5533 if test "x$ac_cv_func_vfork_works" = xyes
; then
5535 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5539 $as_echo "#define vfork fork" >>confdefs.h
5542 if test "x$ac_cv_func_fork_works" = xyes
; then
5544 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5548 for ac_func
in getauxval pread pwrite pread64 setns
5550 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5551 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5552 eval as_val
=\$
$as_ac_var
5553 if test "x$as_val" = x
""yes; then :
5554 cat >>confdefs.h
<<_ACEOF
5555 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5564 $as_echo_n "checking for ANSI C header files... " >&6; }
5565 if test "${ac_cv_header_stdc+set}" = set; then :
5566 $as_echo_n "(cached) " >&6
5568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5583 if ac_fn_c_try_compile
"$LINENO"; then :
5584 ac_cv_header_stdc
=yes
5586 ac_cv_header_stdc
=no
5588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5590 if test $ac_cv_header_stdc = yes; then
5591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5598 $EGREP "memchr" >/dev
/null
2>&1; then :
5601 ac_cv_header_stdc
=no
5607 if test $ac_cv_header_stdc = yes; then
5608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5615 $EGREP "free" >/dev
/null
2>&1; then :
5618 ac_cv_header_stdc
=no
5624 if test $ac_cv_header_stdc = yes; then
5625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5626 if test "$cross_compiling" = yes; then :
5629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5633 #if ((' ' & 0x0FF) == 0x020)
5634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5637 # define ISLOWER(c) \
5638 (('a' <= (c) && (c) <= 'i') \
5639 || ('j' <= (c) && (c) <= 'r') \
5640 || ('s' <= (c) && (c) <= 'z'))
5641 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5644 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5649 for (i = 0; i < 256; i++)
5650 if (XOR (islower (i), ISLOWER (i))
5651 || toupper (i) != TOUPPER (i))
5656 if ac_fn_c_try_run
"$LINENO"; then :
5659 ac_cv_header_stdc
=no
5661 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5662 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5668 $as_echo "$ac_cv_header_stdc" >&6; }
5669 if test $ac_cv_header_stdc = yes; then
5671 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5675 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5676 # for constant arguments. Useless!
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5678 $as_echo_n "checking for working alloca.h... " >&6; }
5679 if test "${ac_cv_working_alloca_h+set}" = set; then :
5680 $as_echo_n "(cached) " >&6
5682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5688 char *p = (char *) alloca (2 * sizeof (int));
5694 if ac_fn_c_try_link
"$LINENO"; then :
5695 ac_cv_working_alloca_h
=yes
5697 ac_cv_working_alloca_h
=no
5699 rm -f core conftest.err conftest.
$ac_objext \
5700 conftest
$ac_exeext conftest.
$ac_ext
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5703 $as_echo "$ac_cv_working_alloca_h" >&6; }
5704 if test $ac_cv_working_alloca_h = yes; then
5706 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5711 $as_echo_n "checking for alloca... " >&6; }
5712 if test "${ac_cv_func_alloca_works+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5718 # define alloca __builtin_alloca
5721 # include <malloc.h>
5722 # define alloca _alloca
5724 # ifdef HAVE_ALLOCA_H
5725 # include <alloca.h>
5730 # ifndef alloca /* predefined by HP cc +Olibcalls */
5741 char *p = (char *) alloca (1);
5747 if ac_fn_c_try_link
"$LINENO"; then :
5748 ac_cv_func_alloca_works
=yes
5750 ac_cv_func_alloca_works
=no
5752 rm -f core conftest.err conftest.
$ac_objext \
5753 conftest
$ac_exeext conftest.
$ac_ext
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5756 $as_echo "$ac_cv_func_alloca_works" >&6; }
5758 if test $ac_cv_func_alloca_works = yes; then
5760 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5763 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5764 # that cause trouble. Some versions do not even contain alloca or
5765 # contain a buggy version. If you still want to use their alloca,
5766 # use ar to extract alloca.o from them instead of compiling alloca.c.
5768 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5770 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5774 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5775 if test "${ac_cv_os_cray+set}" = set; then :
5776 $as_echo_n "(cached) " >&6
5778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #if defined CRAY && ! defined CRAY2
5787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5788 $EGREP "webecray" >/dev
/null
2>&1; then :
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5797 $as_echo "$ac_cv_os_cray" >&6; }
5798 if test $ac_cv_os_cray = yes; then
5799 for ac_func
in _getb67 GETB67 getb67
; do
5800 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5801 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5802 eval as_val
=\$
$as_ac_var
5803 if test "x$as_val" = x
""yes; then :
5805 cat >>confdefs.h
<<_ACEOF
5806 #define CRAY_STACKSEG_END $ac_func
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5816 $as_echo_n "checking stack direction for C alloca... " >&6; }
5817 if test "${ac_cv_c_stack_direction+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5820 if test "$cross_compiling" = yes; then :
5821 ac_cv_c_stack_direction
=0
5823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 $ac_includes_default
5827 find_stack_direction ()
5829 static char *addr = 0;
5834 return find_stack_direction ();
5837 return (&dummy > addr) ? 1 : -1;
5843 return find_stack_direction () < 0;
5846 if ac_fn_c_try_run
"$LINENO"; then :
5847 ac_cv_c_stack_direction
=1
5849 ac_cv_c_stack_direction
=-1
5851 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5852 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5857 $as_echo "$ac_cv_c_stack_direction" >&6; }
5858 cat >>confdefs.h
<<_ACEOF
5859 #define STACK_DIRECTION $ac_cv_c_stack_direction
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5868 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5869 if test "${am_cv_langinfo_codeset+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5874 #include <langinfo.h>
5878 char* cs = nl_langinfo(CODESET);
5883 if ac_fn_c_try_link
"$LINENO"; then :
5884 am_cv_langinfo_codeset
=yes
5886 am_cv_langinfo_codeset
=no
5888 rm -f core conftest.err conftest.
$ac_objext \
5889 conftest
$ac_exeext conftest.
$ac_ext
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5893 $as_echo "$am_cv_langinfo_codeset" >&6; }
5894 if test $am_cv_langinfo_codeset = yes; then
5896 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5901 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/syscall.h sys
/un.h sys
/wait.h thread_db.h
wait.h
5903 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5904 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5905 eval as_val
=\$
$as_ac_Header
5906 if test "x$as_val" = x
""yes; then :
5907 cat >>confdefs.h
<<_ACEOF
5908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5916 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
5918 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5919 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5920 eval as_val
=\$
$as_ac_var
5921 if test "x$as_val" = x
""yes; then :
5922 cat >>confdefs.h
<<_ACEOF
5923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5930 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5931 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
5937 cat >>confdefs.h
<<_ACEOF
5938 #define HAVE_DECL_STRERROR $ac_have_decl
5940 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5941 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
5947 cat >>confdefs.h
<<_ACEOF
5948 #define HAVE_DECL_STRSTR $ac_have_decl
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
5953 $as_echo_n "checking for sigsetjmp... " >&6; }
5954 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5965 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
5970 if ac_fn_c_try_compile
"$LINENO"; then :
5971 gdb_cv_func_sigsetjmp
=yes
5973 gdb_cv_func_sigsetjmp
=no
5975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
5978 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
5979 if test $gdb_cv_func_sigsetjmp = yes; then
5981 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
5986 # Check the return and argument types of ptrace.
5989 for ac_header
in sys
/ptrace.h ptrace.h
5991 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5992 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5993 eval as_val
=\$
$as_ac_Header
5994 if test "x$as_val" = x
""yes; then :
5995 cat >>confdefs.h
<<_ACEOF
5996 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6004 gdb_ptrace_headers
='
6005 #include <sys/types.h>
6006 #if HAVE_SYS_PTRACE_H
6007 # include <sys/ptrace.h>
6010 # include <unistd.h>
6013 # There is no point in checking if we don't have a prototype.
6014 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
6016 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
6022 cat >>confdefs.h
<<_ACEOF
6023 #define HAVE_DECL_PTRACE $ac_have_decl
6025 if test $ac_have_decl = 1; then :
6029 : ${gdb_cv_func_ptrace_ret='int'}
6030 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6034 # Check return type. Varargs (used on GNU/Linux) conflict with the
6035 # empty argument list, so check for that explicitly.
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
6037 $as_echo_n "checking return type of ptrace... " >&6; }
6038 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6047 extern long ptrace (enum __ptrace_request, ...);
6052 if ac_fn_c_try_compile
"$LINENO"; then :
6053 gdb_cv_func_ptrace_ret
='long'
6055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6061 extern int ptrace ();
6066 if ac_fn_c_try_compile
"$LINENO"; then :
6067 gdb_cv_func_ptrace_ret
='int'
6069 gdb_cv_func_ptrace_ret
='long'
6071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
6076 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
6078 cat >>confdefs.h
<<_ACEOF
6079 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
6082 # Check argument types.
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
6084 $as_echo_n "checking types of arguments for ptrace... " >&6; }
6085 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
6086 $as_echo_n "(cached) " >&6
6089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6095 extern long ptrace (enum __ptrace_request, ...);
6100 if ac_fn_c_try_compile
"$LINENO"; then :
6101 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
6104 for gdb_arg1
in 'int' 'long'; do
6105 for gdb_arg2
in 'pid_t' 'int' 'long'; do
6106 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
6107 for gdb_arg4
in 'int' 'long' 'void *'; do
6108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6115 extern $gdb_cv_func_ptrace_ret
6116 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
6122 if ac_fn_c_try_compile
"$LINENO"; then :
6123 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
6126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6127 for gdb_arg5
in 'int *' 'int' 'long'; do
6128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6135 extern $gdb_cv_func_ptrace_ret
6136 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
6142 if ac_fn_c_try_compile
"$LINENO"; then :
6144 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
6147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6153 # Provide a safe default value.
6154 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
6160 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
6161 ac_save_IFS
=$IFS; IFS
=','
6162 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
6166 cat >>confdefs.h
<<_ACEOF
6167 #define PTRACE_TYPE_ARG1 $1
6171 cat >>confdefs.h
<<_ACEOF
6172 #define PTRACE_TYPE_ARG3 $3
6176 cat >>confdefs.h
<<_ACEOF
6177 #define PTRACE_TYPE_ARG4 $4
6180 if test -n "$5"; then
6182 cat >>confdefs.h
<<_ACEOF
6183 #define PTRACE_TYPE_ARG5 $5
6194 # Check whether --with-ust was given.
6195 if test "${with_ust+set}" = set; then :
6200 # Check whether --with-ust_include was given.
6201 if test "${with_ust_include+set}" = set; then :
6202 withval
=$with_ust_include;
6206 # Check whether --with-ust_lib was given.
6207 if test "${with_ust_lib+set}" = set; then :
6208 withval
=$with_ust_lib;
6222 ustlibs
="-L$with_ust/lib -lust"
6223 ustinc
="-I$with_ust/include "
6226 if test "x$with_ust_include" != x
; then
6227 ustinc
="-I$with_ust_include "
6229 if test "x$with_ust_lib" != x
; then
6230 ustlibs
="-L$with_ust_lib -lust"
6233 if test "x$with_ust" != "xno"; then
6234 saved_CFLAGS
="$CFLAGS"
6235 CFLAGS
="$CFLAGS $ustinc"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
6237 $as_echo_n "checking for ust... " >&6; }
6238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6241 #define CONFIG_UST_GDB_INTEGRATION
6242 #include <ust/ust.h>
6252 if ac_fn_c_try_compile
"$LINENO"; then :
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6254 $as_echo "yes" >&6; };
6255 $as_echo "#define HAVE_UST 1" >>confdefs.h
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
6261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6262 CFLAGS
="$saved_CFLAGS"
6265 # Flags needed for UST
6271 # Check whether --enable-werror was given.
6272 if test "${enable_werror+set}" = set; then :
6273 enableval
=$enable_werror; case "${enableval}" in
6274 yes | y
) ERROR_ON_WARNING
="yes" ;;
6275 no | n
) ERROR_ON_WARNING
="no" ;;
6276 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
6281 # Enable -Werror by default when using gcc. Turn it off for releases.
6282 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
6283 ERROR_ON_WARNING
=yes
6287 if test "${ERROR_ON_WARNING}" = yes ; then
6288 WERROR_CFLAGS
="-Werror"
6291 # These options work in either C or C++ modes.
6292 build_warnings
="-Wall -Wpointer-arith \
6293 -Wno-unused -Wunused-value -Wunused-function \
6294 -Wno-switch -Wno-char-subscripts \
6295 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable"
6297 # Now add in C and C++ specific options, depending on mode.
6298 if test "$enable_build_with_cxx" = "yes"; then
6299 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
6302 build_warnings
="$build_warnings -Wpointer-sign -Wmissing-prototypes \
6303 -Wdeclaration-after-statement -Wmissing-parameter-type \
6304 -Wold-style-declaration -Wold-style-definition"
6307 # Enable -Wno-format by default when using gcc on mingw since many
6308 # GCC versions complain about %I64.
6310 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
6311 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
6314 # Check whether --enable-build-warnings was given.
6315 if test "${enable_build_warnings+set}" = set; then :
6316 enableval
=$enable_build_warnings; case "${enableval}" in
6318 no
) build_warnings
="-w";;
6319 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6320 build_warnings
="${build_warnings} ${t}";;
6321 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6322 build_warnings
="${t} ${build_warnings}";;
6323 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6325 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6326 echo "Setting compiler warning flags = $build_warnings" 6>&1
6329 # Check whether --enable-gdb-build-warnings was given.
6330 if test "${enable_gdb_build_warnings+set}" = set; then :
6331 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
6333 no
) build_warnings
="-w";;
6334 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6335 build_warnings
="${build_warnings} ${t}";;
6336 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6337 build_warnings
="${t} ${build_warnings}";;
6338 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6340 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6341 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6345 # The set of warnings supported by a C++ compiler is not the same as
6346 # of the C compiler.
6347 if test "$enable_build_with_cxx" = "yes"; then
6349 ac_cpp
='$CXXCPP $CPPFLAGS'
6350 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6351 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6352 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6357 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
6360 $as_echo_n "checking compiler warning flags... " >&6; }
6361 # Separate out the -Werror flag as some files just cannot be
6362 # compiled with it enabled.
6363 for w
in ${build_warnings}; do
6364 # GCC does not complain about -Wno-unknown-warning. Invert
6365 # and test -Wunknown-warning instead.
6368 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
6374 -Werr*) WERROR_CFLAGS
=-Werror ;;
6376 # Check whether GCC accepts it.
6377 saved_CFLAGS
="$CFLAGS"
6378 CFLAGS
="$CFLAGS $wtest"
6379 saved_CXXFLAGS
="$CXXFLAGS"
6380 CXXFLAGS
="$CXXFLAGS $wtest"
6381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6392 if ac_fn_cxx_try_compile
"$LINENO"; then :
6393 WARN_CFLAGS
="${WARN_CFLAGS} $w"
6395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6396 CFLAGS
="$saved_CFLAGS"
6397 CXXFLAGS
="$saved_CXXFLAGS"
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
6401 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
6406 if test "$enable_build_with_cxx" = "yes"; then
6408 ac_cpp='$CPP $CPPFLAGS'
6409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6415 case " $WARN_CFLAGS " in
6416 *" -Wmissing-prototypes "*)
6417 WARN_CFLAGS="$WARN_CFLAGS -Wno-missing-prototypes"
6423 for ac_func in dladdr
6425 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
6426 if test "x
$ac_cv_func_dladdr" = x""yes; then :
6427 cat >>confdefs.h <<_ACEOF
6428 #define HAVE_DLADDR 1
6437 # Check for presence and size of long long.
6438 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
6439 if test "x
$ac_cv_type_long_long" = x""yes; then :
6441 cat >>confdefs.h <<_ACEOF
6442 #define HAVE_LONG_LONG 1
6445 # The cast to long int works around a bug in the HP C Compiler
6446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6448 # This bug is HP SR number 8606223364.
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
6450 $as_echo_n "checking size of long long...
" >&6; }
6451 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6452 $as_echo_n "(cached
) " >&6
6454 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
6457 if test "$ac_cv_type_long_long" = yes; then
6458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
6459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6460 { as_fn_set_status 77
6461 as_fn_error "cannot compute sizeof (long long)
6462 See \`config.log' for more details.
" "$LINENO" 5; }; }
6464 ac_cv_sizeof_long_long=0
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
6470 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6474 cat >>confdefs.h <<_ACEOF
6475 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6482 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "ac_cv_have_decl_basename_char_p_
" "$ac_includes_default"
6483 if test "x
$ac_cv_have_decl_basename_char_p_" = x""yes; then :
6489 cat >>confdefs.h <<_ACEOF
6490 #define HAVE_DECL_BASENAME $ac_have_decl
6492 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
6493 if test "x
$ac_cv_have_decl_ffs" = x""yes; then :
6499 cat >>confdefs.h <<_ACEOF
6500 #define HAVE_DECL_FFS $ac_have_decl
6502 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
6503 if test "x
$ac_cv_have_decl_asprintf" = x""yes; then :
6509 cat >>confdefs.h <<_ACEOF
6510 #define HAVE_DECL_ASPRINTF $ac_have_decl
6512 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
6513 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
6519 cat >>confdefs.h <<_ACEOF
6520 #define HAVE_DECL_VASPRINTF $ac_have_decl
6522 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
6523 if test "x
$ac_cv_have_decl_snprintf" = x""yes; then :
6529 cat >>confdefs.h <<_ACEOF
6530 #define HAVE_DECL_SNPRINTF $ac_have_decl
6532 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
6533 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
6539 cat >>confdefs.h <<_ACEOF
6540 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6543 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
6544 if test "x
$ac_cv_have_decl_strtol" = x""yes; then :
6550 cat >>confdefs.h <<_ACEOF
6551 #define HAVE_DECL_STRTOL $ac_have_decl
6553 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
6554 if test "x
$ac_cv_have_decl_strtoul" = x""yes; then :
6560 cat >>confdefs.h <<_ACEOF
6561 #define HAVE_DECL_STRTOUL $ac_have_decl
6563 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
6564 if test "x
$ac_cv_have_decl_strtoll" = x""yes; then :
6570 cat >>confdefs.h <<_ACEOF
6571 #define HAVE_DECL_STRTOLL $ac_have_decl
6573 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
6574 if test "x
$ac_cv_have_decl_strtoull" = x""yes; then :
6580 cat >>confdefs.h <<_ACEOF
6581 #define HAVE_DECL_STRTOULL $ac_have_decl
6584 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
6585 if test "x
$ac_cv_have_decl_strverscmp" = x""yes; then :
6591 cat >>confdefs.h <<_ACEOF
6592 #define HAVE_DECL_STRVERSCMP $ac_have_decl
6597 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
6598 if test "x
$ac_cv_have_decl_strerror" = x""yes; then :
6604 cat >>confdefs.h <<_ACEOF
6605 #define HAVE_DECL_STRERROR $ac_have_decl
6607 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
6608 if test "x
$ac_cv_have_decl_perror" = x""yes; then :
6614 cat >>confdefs.h <<_ACEOF
6615 #define HAVE_DECL_PERROR $ac_have_decl
6617 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
6618 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
6624 cat >>confdefs.h <<_ACEOF
6625 #define HAVE_DECL_VASPRINTF $ac_have_decl
6627 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
6628 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
6634 cat >>confdefs.h <<_ACEOF
6635 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6639 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
6640 if test "x
$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6642 cat >>confdefs.h <<_ACEOF
6643 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6648 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
6649 if test "x
$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6651 cat >>confdefs.h <<_ACEOF
6652 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6659 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
6660 #include <sys/socket.h>
6663 if test "x
$ac_cv_type_socklen_t" = x""yes; then :
6665 cat >>confdefs.h <<_ACEOF
6666 #define HAVE_SOCKLEN_T 1
6675 # Starting with NDK version 9, <elf.h> actually includes definitions
6676 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
6677 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
6678 # leading to conflicts with the defintions from <linux/elf.h>.
6679 # This makes it impossible for us to include both <elf.h> and
6680 # <linux/elf.h>, which means that, in practice, we do not have
6681 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
6682 # Therefore, do not try to auto-detect availability, as it would
6683 # get it wrong on this platform.
6686 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
6689 if test "x
$ac_cv_type_Elf32_auxv_t" = x""yes; then :
6691 cat >>confdefs.h <<_ACEOF
6692 #define HAVE_ELF32_AUXV_T 1
6697 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
6700 if test "x
$ac_cv_type_Elf64_auxv_t" = x""yes; then :
6702 cat >>confdefs.h <<_ACEOF
6703 #define HAVE_ELF64_AUXV_T 1
6713 # Check whether --with-pkgversion was given.
6714 if test "${with_pkgversion+set}" = set; then :
6715 withval=$with_pkgversion; case "$withval" in
6716 yes) as_fn_error "package version not specified
" "$LINENO" 5 ;;
6718 *) PKGVERSION="($withval) " ;;
6729 # Check whether --with-bugurl was given.
6730 if test "${with_bugurl+set}" = set; then :
6731 withval=$with_bugurl; case "$withval" in
6732 yes) as_fn_error "bug URL not specified
" "$LINENO" 5 ;;
6735 *) BUGURL="$withval"
6739 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
6749 REPORT_BUGS_TO="<$BUGURL>"
6750 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6757 cat >>confdefs.h <<_ACEOF
6758 #define PKGVERSION "$PKGVERSION"
6762 cat >>confdefs.h <<_ACEOF
6763 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6767 # Check for various supplementary target information (beyond the
6768 # triplet) which might affect the choices in configure.srv.
6770 i[34567]86-*-linux*)
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
6772 $as_echo_n "checking
if building
for x86-64...
" >&6; }
6773 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
6774 $as_echo_n "(cached
) " >&6
6776 save_CPPFLAGS="$CPPFLAGS"
6777 CPPFLAGS="$CPPFLAGS $CFLAGS"
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6786 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6787 $EGREP "got it
" >/dev/null 2>&1; then :
6788 gdb_cv_i386_is_x86_64=yes
6790 gdb_cv_i386_is_x86_64=no
6794 CPPFLAGS="$save_CPPFLAGS"
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
6797 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
6802 $as_echo_n "checking
if building
for x32...
" >&6; }
6803 if test "${gdb_cv_x86_is_x32+set}" = set; then :
6804 $as_echo_n "(cached
) " >&6
6806 save_CPPFLAGS="$CPPFLAGS"
6807 CPPFLAGS="$CPPFLAGS $CFLAGS"
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6811 #if __x86_64__ && __ILP32__
6816 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6817 $EGREP "got it
" >/dev/null 2>&1; then :
6818 gdb_cv_x86_is_x32=yes
6820 gdb_cv_x86_is_x32=no
6824 CPPFLAGS="$save_CPPFLAGS"
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
6827 $as_echo "$gdb_cv_x86_is_x32" >&6; }
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
6832 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
6833 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
6834 $as_echo_n "(cached
) " >&6
6836 save_CPPFLAGS="$CPPFLAGS"
6837 CPPFLAGS="$CPPFLAGS $CFLAGS"
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6841 #ifdef __mcoldfire__
6846 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6847 $EGREP "got it
" >/dev/null 2>&1; then :
6848 gdb_cv_m68k_is_coldfire=yes
6850 gdb_cv_m68k_is_coldfire=no
6854 CPPFLAGS="$save_CPPFLAGS"
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
6857 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
6861 . ${srcdir}/configure.srv
6863 # Add in the common host objects.
6864 . ${srcdir}/../common/common.host
6865 srv_host_obs="$common_host_obs"
6867 if test "${srv_mingwce}" = "yes"; then
6869 elif test "${srv_mingw}" = "yes"; then
6870 LIBS="$LIBS -lws2_32"
6871 elif test "${srv_qnx}" = "yes"; then
6872 LIBS="$LIBS -lsocket"
6873 elif test "${srv_lynxos}" = "yes"; then
6874 LIBS="$LIBS -lnetinet"
6877 if test "${srv_mingw}" = "yes"; then
6879 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6883 if test "${srv_linux_usrregs}" = "yes"; then
6885 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
6889 if test "${srv_linux_regsets}" = "yes"; then
6891 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
6895 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
6896 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
6897 $as_echo_n "(cached) " >&6
6899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6901 #include <sys/ptrace.h>
6910 if ac_fn_c_try_compile
"$LINENO"; then :
6911 gdbsrv_cv_have_ptrace_getregs
=yes
6913 gdbsrv_cv_have_ptrace_getregs
=no
6915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
6919 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
6920 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
6922 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
6927 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
6928 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
6931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 #include <sys/ptrace.h>
6942 if ac_fn_c_try_compile
"$LINENO"; then :
6943 gdbsrv_cv_have_ptrace_getfpxregs
=yes
6945 gdbsrv_cv_have_ptrace_getfpxregs
=no
6947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
6951 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
6952 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
6954 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
6959 if test "${srv_linux_btrace}" = "yes"; then
6961 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
6965 if test "$ac_cv_header_sys_procfs_h" = yes; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
6967 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
6968 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6975 /* Needed for new procfs interface on sparc-solaris. */
6976 #define _STRUCTURED_PROC 1
6977 #include <sys/procfs.h>
6986 if ac_fn_c_try_compile
"$LINENO"; then :
6987 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
6989 bfd_cv_have_sys_procfs_type_lwpid_t
=no
6992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6995 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
6997 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
7001 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
7004 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
7005 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
7006 $as_echo_n "(cached) " >&6
7008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7012 /* Needed for new procfs interface on sparc-solaris. */
7013 #define _STRUCTURED_PROC 1
7014 #include <sys/procfs.h>
7023 if ac_fn_c_try_compile
"$LINENO"; then :
7024 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
7026 bfd_cv_have_sys_procfs_type_psaddr_t
=no
7029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7032 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7034 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
7038 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
7041 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
7042 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
7043 $as_echo_n "(cached) " >&6
7045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7049 /* Needed for new procfs interface on sparc-solaris. */
7050 #define _STRUCTURED_PROC 1
7051 #include <sys/procfs.h>
7060 if ac_fn_c_try_compile
"$LINENO"; then :
7061 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
7063 bfd_cv_have_sys_procfs_type_prgregset_t
=no
7066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7069 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7071 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
7075 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
7078 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
7079 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
7080 $as_echo_n "(cached) " >&6
7082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7086 /* Needed for new procfs interface on sparc-solaris. */
7087 #define _STRUCTURED_PROC 1
7088 #include <sys/procfs.h>
7097 if ac_fn_c_try_compile
"$LINENO"; then :
7098 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
7100 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
7103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7106 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7108 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
7112 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
7115 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
7116 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
7117 $as_echo_n "(cached) " >&6
7119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7123 /* Needed for new procfs interface on sparc-solaris. */
7124 #define _STRUCTURED_PROC 1
7125 #include <sys/procfs.h>
7134 if ac_fn_c_try_compile
"$LINENO"; then :
7135 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
7137 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
7140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7143 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
7145 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
7149 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
7153 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
7155 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
7156 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7162 #include <thread_db.h>
7171 if ac_fn_c_try_compile
"$LINENO"; then :
7172 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
7174 gdbserver_cv_have_thread_db_type_lwpid_t
=no
7177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7180 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
7182 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
7186 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
7190 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
7192 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
7193 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
7194 $as_echo_n "(cached) " >&6
7196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7199 #include <thread_db.h>
7208 if ac_fn_c_try_compile
"$LINENO"; then :
7209 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
7211 gdbserver_cv_have_thread_db_type_psaddr_t
=no
7214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7217 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
7219 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
7223 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7229 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7230 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7233 ac_check_lib_save_LIBS
=$LIBS
7235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7238 /* Override any GCC internal prototype to avoid an error.
7239 Use char because int might match the return type of a GCC
7240 builtin and then its argument prototype would still apply. */
7253 if ac_fn_c_try_link
"$LINENO"; then :
7254 ac_cv_lib_dl_dlopen
=yes
7256 ac_cv_lib_dl_dlopen
=no
7258 rm -f core conftest.err conftest.
$ac_objext \
7259 conftest
$ac_exeext conftest.
$ac_ext
7260 LIBS
=$ac_check_lib_save_LIBS
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7263 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7264 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
7265 cat >>confdefs.h
<<_ACEOF
7266 #define HAVE_LIBDL 1
7275 srv_thread_depfiles
=
7278 if test "$srv_linux_thread_db" = "yes"; then
7279 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
7282 $as_echo_n "checking for the dynamic export flag... " >&6; }
7283 old_LDFLAGS
="$LDFLAGS"
7284 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
7286 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
7287 LDFLAGS
="$LDFLAGS $RDYNAMIC"
7288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7299 if ac_fn_c_try_link
"$LINENO"; then :
7300 found
="-Wl,--dynamic-list"
7301 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
7303 RDYNAMIC
="-rdynamic"
7304 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
7305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7316 if ac_fn_c_try_link
"$LINENO"; then :
7322 rm -f core conftest.err conftest.
$ac_objext \
7323 conftest
$ac_exeext conftest.
$ac_ext
7325 rm -f core conftest.err conftest.
$ac_objext \
7326 conftest
$ac_exeext conftest.
$ac_ext
7328 LDFLAGS
="$old_LDFLAGS"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
7330 $as_echo "$found" >&6; }
7332 srv_libs
="-lthread_db"
7335 srv_thread_depfiles
="thread-db.o proc-service.o"
7337 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
7340 $as_echo_n "checking for TD_VERSION... " >&6; }
7341 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
7342 $as_echo_n "(cached) " >&6
7344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7346 #include <thread_db.h>
7355 if ac_fn_c_try_compile
"$LINENO"; then :
7356 gdbsrv_cv_have_td_version
=yes
7358 gdbsrv_cv_have_td_version
=no
7360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
7363 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
7364 if test $gdbsrv_cv_have_td_version = yes; then
7366 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
7372 # Check whether --with-libthread-db was given.
7373 if test "${with_libthread_db+set}" = set; then :
7374 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
7375 srv_libs
="$srv_libthread_db_path"
7380 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
7382 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
7386 if test "$srv_xmlfiles" != ""; then
7387 srv_xmlbuiltin
="xml-builtin.o"
7389 $as_echo "#define USE_XML 1" >>confdefs.h
7392 tmp_xmlfiles
=$srv_xmlfiles
7394 for f
in $tmp_xmlfiles; do
7395 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
7399 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs"
7400 GDBSERVER_LIBS
="$srv_libs"
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
7403 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
7404 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
7408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7414 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
7419 if ac_fn_c_try_link
"$LINENO"; then :
7420 gdbsrv_cv_have_sync_builtins
=yes
7422 gdbsrv_cv_have_sync_builtins
=no
7424 rm -f core conftest.err conftest.
$ac_objext \
7425 conftest
$ac_exeext conftest.
$ac_ext
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
7428 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
7429 if test $gdbsrv_cv_have_sync_builtins = yes; then
7431 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
7435 saved_cflags
="$CFLAGS"
7436 CFLAGS
="$CFLAGS -fvisibility=hidden"
7437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7448 if ac_fn_c_try_compile
"$LINENO"; then :
7449 gdbsrv_cv_have_visibility_hidden
=yes
7451 gdbsrv_cv_have_visibility_hidden
=no
7453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7454 CFLAGS
="$saved_cflags"
7456 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7458 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
7464 cat >>confdefs.h
<<_ACEOF
7465 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7469 if test "$cross_compiling" = yes; then :
7470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7472 #include <sys/personality.h>
7477 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7478 # define ADDR_NO_RANDOMIZE 0x0040000
7480 /* Test the flag could be set and stays set. */
7481 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7482 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7488 if ac_fn_c_try_link
"$LINENO"; then :
7489 gdbsrv_cv_have_personality
=true
7491 gdbsrv_cv_have_personality
=false
7493 rm -f core conftest.err conftest.
$ac_objext \
7494 conftest
$ac_exeext conftest.
$ac_ext
7496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7498 #include <sys/personality.h>
7503 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7504 # define ADDR_NO_RANDOMIZE 0x0040000
7506 /* Test the flag could be set and stays set. */
7507 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7508 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7514 if ac_fn_c_try_run
"$LINENO"; then :
7515 gdbsrv_cv_have_personality
=true
7517 gdbsrv_cv_have_personality
=false
7519 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7520 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7523 if $gdbsrv_cv_have_personality
7526 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
7534 # check whether to enable the inprocess agent
7535 if test "$ipa_obj" != "" \
7536 -a "$gdbsrv_cv_have_sync_builtins" = yes \
7537 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
7543 # Check whether --enable-inprocess-agent was given.
7544 if test "${enable_inprocess_agent+set}" = set; then :
7545 enableval
=$enable_inprocess_agent; case "$enableval" in
7546 yes) want_ipa
=true
;;
7547 no
) want_ipa
=false
;;
7548 *) as_fn_error
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
7557 IPA_DEPFILES
="$ipa_obj"
7558 extra_libraries
="$extra_libraries libinproctrace.so"
7560 as_fn_error
"inprocess agent not supported for this target" "$LINENO" 5
7571 GNULIB
=build-gnulib-gdbserver
/import
7574 if test x
"$STDINT_H" != x
; then
7575 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
7579 ac_config_files
="$ac_config_files Makefile"
7582 cat >confcache
<<\_ACEOF
7583 # This file is a shell script that caches the results of configure
7584 # tests run on this system so they can be shared between configure
7585 # scripts and configure runs, see configure's option --config-cache.
7586 # It is not useful on other systems. If it contains results you don't
7587 # want to keep, you may remove or edit it.
7589 # config.status only pays attention to the cache file if you give it
7590 # the --recheck option to rerun configure.
7592 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7593 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7598 # The following way of writing the cache mishandles newlines in values,
7599 # but we know of no workaround that is simple, portable, and efficient.
7600 # So, we kill variables containing newlines.
7601 # Ultrix sh set writes to stderr and can't be redirected directly,
7602 # and sets the high bit in the cache file unless we assign to the vars.
7604 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7605 eval ac_val
=\$
$ac_var
7609 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7610 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7613 _ | IFS | as_nl
) ;; #(
7614 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7615 *) { eval $ac_var=; unset $ac_var;} ;;
7621 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7622 *${as_nl}ac_space
=\
*)
7623 # `set' does not quote correctly, so add quotes: double-quote
7624 # substitution turns \\\\ into \\, and sed turns \\ into \.
7627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7630 # `set' quotes correctly as required by POSIX, so do not add quotes.
7631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7640 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7642 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7644 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7645 if test -w "$cache_file"; then
7646 test "x$cache_file" != "x/dev/null" &&
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7648 $as_echo "$as_me: updating cache $cache_file" >&6;}
7649 cat confcache
>$cache_file
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7652 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7657 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7658 # Let make expand exec_prefix.
7659 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7661 DEFS
=-DHAVE_CONFIG_H
7665 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7666 # 1. Remove the extension, and $U if already installed.
7667 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7668 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7669 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7670 # will be set to the directory where LIBOBJS objects are built.
7671 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7672 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7676 LTLIBOBJS
=$ac_ltlibobjs
7679 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7680 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
7681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7683 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
7684 as_fn_error
"conditional \"GMAKE\" was never defined.
7685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7688 : ${CONFIG_STATUS=./config.status}
7690 ac_clean_files_save
=$ac_clean_files
7691 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7693 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7695 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7697 # Generated by $as_me.
7698 # Run this file to recreate the current configuration.
7699 # Compiler output produced by configure, useful for debugging
7700 # configure, is in config.log if it exists.
7706 SHELL=\${CONFIG_SHELL-$SHELL}
7709 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7710 ## -------------------- ##
7711 ## M4sh Initialization. ##
7712 ## -------------------- ##
7714 # Be more Bourne compatible
7715 DUALCASE
=1; export DUALCASE
# for MKS sh
7716 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7719 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7720 # is contrary to our usage. Disable this feature.
7721 alias -g '${1+"$@"}'='"$@"'
7722 setopt NO_GLOB_SUBST
7724 case `(set -o) 2>/dev/null` in #(
7736 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7737 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7740 # Prefer a ksh shell builtin over an external printf program on Solaris,
7741 # but without wasting forks for bash or zsh.
7742 if test -z "$BASH_VERSION$ZSH_VERSION" \
7743 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7744 as_echo='print
-r --'
7745 as_echo_n='print
-rn --'
7746 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7747 as_echo='printf %s
\n'
7748 as_echo_n='printf %s
'
7750 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7751 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7752 as_echo_n='/usr
/ucb
/echo -n'
7754 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7755 as_echo_n_body='eval
7759 expr "X$arg" : "X\\(.*\\)$as_nl";
7760 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7762 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7764 export as_echo_n_body
7765 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7768 as_echo='sh
-c $as_echo_body as_echo
'
7771 # The user is always right.
7772 if test "${PATH_SEPARATOR+set}" != set; then
7774 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7775 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7782 # We need space, tab and new line, in precisely that order. Quoting is
7783 # there to prevent editors from complaining about space-tab.
7784 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7785 # splitting by setting IFS to empty value.)
7788 # Find who we are. Look in the path if we contain no directory separator.
7790 *[\\/]* ) as_myself=$0 ;;
7791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 test -z "$as_dir" && as_dir=.
7796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7802 # We did not find ourselves, most probably we were run as `sh COMMAND'
7803 # in which case we are not to be found in the path.
7804 if test "x$as_myself" = x
; then
7807 if test ! -f "$as_myself"; then
7808 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7812 # Unset variables that we do not need and which cause bugs (e.g. in
7813 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7814 # suppresses any "Segmentation fault" message there. '((' could
7815 # trigger a bug in pdksh 5.2.14.
7816 for as_var
in BASH_ENV ENV MAIL MAILPATH
7817 do eval test x\
${$as_var+set} = xset \
7818 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7831 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7834 # as_fn_error ERROR [LINENO LOG_FD]
7835 # ---------------------------------
7836 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7837 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7838 # script with status $?, using 1 if that was 0.
7841 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7843 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7844 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7846 $as_echo "$as_me: error: $1" >&2
7847 as_fn_exit
$as_status
7851 # as_fn_set_status STATUS
7852 # -----------------------
7853 # Set $? to STATUS, without forking.
7857 } # as_fn_set_status
7861 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7871 # Portably unset VAR.
7874 { eval $1=; unset $1;}
7876 as_unset
=as_fn_unset
7877 # as_fn_append VAR VALUE
7878 # ----------------------
7879 # Append the text in VALUE to the end of the definition contained in VAR. Take
7880 # advantage of any shell optimizations that allow amortized linear growth over
7881 # repeated appends, instead of the typical quadratic growth present in naive
7883 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7884 eval 'as_fn_append ()
7895 # as_fn_arith ARG...
7896 # ------------------
7897 # Perform arithmetic evaluation on the ARGs, and store the result in the
7898 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7899 # must be portable across $(()) and expr.
7900 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7901 eval 'as_fn_arith ()
7908 as_val
=`expr "$@" || test $? -eq 1`
7913 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7914 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7920 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7921 as_basename
=basename
7926 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7932 as_me
=`$as_basename -- "$0" ||
7933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7934 X"$0" : 'X\(//\)$' \| \
7935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7937 sed '/^.*\/\([^/][^/]*\)\/*$/{
7951 # Avoid depending upon Character Ranges.
7952 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7953 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7954 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7955 as_cr_digits
='0123456789'
7956 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7958 ECHO_C
= ECHO_N
= ECHO_T
=
7959 case `echo -n x` in #(((((
7961 case `echo 'xy\c'` in
7962 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7964 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7971 rm -f conf$$ conf$$.exe conf$$.
file
7972 if test -d conf$$.dir
; then
7973 rm -f conf$$.dir
/conf$$.
file
7976 mkdir conf$$.dir
2>/dev
/null
7978 if (echo >conf$$.
file) 2>/dev
/null
; then
7979 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7981 # ... but there are two gotchas:
7982 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7983 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7984 # In both cases, we have to default to `cp -p'.
7985 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7987 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7995 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7996 rmdir conf$$.dir
2>/dev
/null
8001 # Create "$as_dir" as a directory, including parents if necessary.
8006 -*) as_dir
=.
/$as_dir;;
8008 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8012 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8013 *) as_qdir
=$as_dir;;
8015 as_dirs
="'$as_qdir' $as_dirs"
8016 as_dir
=`$as_dirname -- "$as_dir" ||
8017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8018 X"$as_dir" : 'X\(//\)[^/]' \| \
8019 X"$as_dir" : 'X\(//\)$' \| \
8020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8021 $as_echo X"$as_dir" |
8022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8039 test -d "$as_dir" && break
8041 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8042 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
8046 if mkdir
-p .
2>/dev
/null
; then
8047 as_mkdir_p
='mkdir -p "$as_dir"'
8049 test -d .
/-p && rmdir .
/-p
8053 if test -x / >/dev
/null
2>&1; then
8056 if ls -dL / >/dev
/null
2>&1; then
8063 if test -d "$1"; then
8069 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8070 ???[sx]*):;;*)false;;esac;fi
8074 as_executable_p
=$as_test_x
8076 # Sed expression to map a string onto a valid CPP name.
8077 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8079 # Sed expression to map a string onto a valid variable name.
8080 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8084 ## ----------------------------------- ##
8085 ## Main body of $CONFIG_STATUS script. ##
8086 ## ----------------------------------- ##
8088 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8091 # Save the log message, to keep $0 and so on meaningful, and to
8092 # report actual input values of CONFIG_FILES etc. instead of their
8093 # values after options handling.
8095 This file was extended by $as_me, which was
8096 generated by GNU Autoconf 2.64. Invocation command line was
8098 CONFIG_FILES = $CONFIG_FILES
8099 CONFIG_HEADERS = $CONFIG_HEADERS
8100 CONFIG_LINKS = $CONFIG_LINKS
8101 CONFIG_COMMANDS = $CONFIG_COMMANDS
8104 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8109 case $ac_config_files in *"
8110 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8113 case $ac_config_headers in *"
8114 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8119 # Files that config.status was made for.
8120 config_files="$ac_config_files"
8121 config_headers="$ac_config_headers"
8122 config_commands="$ac_config_commands"
8126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8128 \`$as_me' instantiates files and other configuration actions
8129 from templates according to the current configuration. Unless the files
8130 and actions are specified as TAGs, all are instantiated by default.
8132 Usage: $0 [OPTION]... [TAG]...
8134 -h, --help print this help, then exit
8135 -V, --version print version number and configuration settings, then exit
8136 -q, --quiet, --silent
8137 do not print progress messages
8138 -d, --debug don't remove temporary files
8139 --recheck update $as_me by reconfiguring in the same conditions
8140 --file=FILE[:TEMPLATE]
8141 instantiate the configuration file FILE
8142 --header=FILE[:TEMPLATE]
8143 instantiate the configuration header FILE
8145 Configuration files:
8148 Configuration headers:
8151 Configuration commands:
8154 Report bugs to the package provider."
8157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8160 configured by $0, generated by GNU Autoconf 2.64,
8161 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8163 Copyright (C) 2009 Free Software Foundation, Inc.
8164 This config.status script is free software; the Free Software Foundation
8165 gives unlimited permission to copy, distribute and modify it."
8170 test -n "\$AWK" || AWK=awk
8173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8174 # The default lists apply if the user does not specify any file.
8180 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8181 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8192 # Handling of the options.
8193 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8195 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8196 $as_echo "$ac_cs_version"; exit ;;
8197 --debug |
--debu |
--deb |
--de |
--d |
-d )
8199 --file |
--fil |
--fi |
--f )
8202 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8204 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8205 ac_need_defaults
=false
;;
8206 --header |
--heade |
--head |
--hea )
8209 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8211 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8212 ac_need_defaults
=false
;;
8214 # Conflict between --help and --header
8215 as_fn_error
"ambiguous option: \`$1'
8216 Try \`$0 --help' for more information.";;
8217 --help |
--hel |
-h )
8218 $as_echo "$ac_cs_usage"; exit ;;
8219 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8220 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8224 -*) as_fn_error
"unrecognized option: \`$1'
8225 Try \`$0 --help' for more information." ;;
8227 *) as_fn_append ac_config_targets
" $1"
8228 ac_need_defaults
=false
;;
8234 ac_configure_extra_args
=
8236 if $ac_cs_silent; then
8238 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8243 if \$ac_cs_recheck; then
8244 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8246 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8247 CONFIG_SHELL='$SHELL'
8253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8257 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8258 ## Running $as_me. ##
8264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8268 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8274 # Handling of arguments.
8275 for ac_config_target
in $ac_config_targets
8277 case $ac_config_target in
8278 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8279 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
8280 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8282 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8287 # If the user did not use the arguments to specify the items to instantiate,
8288 # then the envvar interface is used. Set only those that are not.
8289 # We use the long form for the default assignment because of an extremely
8290 # bizarre bug on SunOS 4.1.3.
8291 if $ac_need_defaults; then
8292 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8293 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8294 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8297 # Have a temporary directory for convenience. Make it in the build tree
8298 # simply because there is no reason against having it here, and in addition,
8299 # creating and moving files from /tmp can sometimes cause problems.
8300 # Hook for its removal unless debugging.
8301 # Note that there is a small window in which the directory will not be cleaned:
8302 # after its creation but before its name has been assigned to `$tmp'.
8306 trap 'exit_status=$?
8307 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8309 trap 'as_fn_exit 1' 1 2 13 15
8311 # Create a (secure) tmp directory for tmp files.
8314 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8315 test -n "$tmp" && test -d "$tmp"
8318 tmp
=.
/conf$$
-$RANDOM
8319 (umask 077 && mkdir
"$tmp")
8320 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
8322 # Set up the scripts for CONFIG_FILES section.
8323 # No need to generate them if there are no CONFIG_FILES.
8324 # This happens for instance with `./config.status config.h'.
8325 if test -n "$CONFIG_FILES"; then
8328 ac_cr
=`echo X | tr X '\015'`
8329 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8330 # But we know of no other shell where ac_cr would be empty at this
8331 # point, so we can use a bashism as a fallback.
8332 if test "x$ac_cr" = x
; then
8333 eval ac_cr
=\$
\'\\r
\'
8335 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8336 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8342 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8347 echo "cat >conf$$subs.awk <<_ACEOF" &&
8348 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8351 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8352 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8354 for ac_last_try in false false false false false :; do
8355 . ./conf$$subs.sh ||
8356 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8358 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8359 if test $ac_delim_n = $ac_delim_num; then
8361 elif $ac_last_try; then
8362 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8364 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8370 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8374 s/^/S["/; s
/!.
*/"]=/
8384 s/\(.\{148\}\).*/\1/
8386 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8391 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8398 s/\(.\{148\}\).*/\1/
8400 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8404 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8409 ' <conf$$subs.awk | sed '
8414 ' >>$CONFIG_STATUS || ac_write_fail=1
8415 rm -f conf$$subs.awk
8416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8418 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8419 for (key in S) S_is_set[key] = 1
8425 nfields = split(line, field, "@
")
8427 len = length(field[1])
8428 for (i = 2; i < nfields; i++) {
8430 keylen = length(key)
8431 if (S_is_set[key]) {
8433 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8434 len += length(value) + length(field[++i])
8445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8446 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8447 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8450 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8451 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8454 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8455 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8456 # trailing colons and then remove the whole line if VPATH becomes empty
8457 # (actually we leave an empty line to preserve line numbers).
8458 if test "x
$srcdir" = x.; then
8459 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8463 s/^\([^=]*=[ ]*\):*/\1/
8469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8470 fi # test -n "$CONFIG_FILES"
8472 # Set up the scripts for CONFIG_HEADERS section.
8473 # No need to generate them if there are no CONFIG_HEADERS.
8474 # This happens for instance with `./config.status Makefile'.
8475 if test -n "$CONFIG_HEADERS"; then
8476 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8480 # Transform confdefs.h into an awk script `defines.awk', embedded as
8481 # here-document in config.status, that substitutes the proper values into
8482 # config.h.in to produce config.h.
8484 # Create a delimiter string that does not exist in confdefs.h, to ease
8485 # handling of long lines.
8487 for ac_last_try in false false :; do
8488 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8489 if test -z "$ac_t"; then
8491 elif $ac_last_try; then
8492 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8494 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8498 # For the awk script, D is an array of macro values keyed by name,
8499 # likewise P contains macro parameters if any. Preserve backslash
8500 # newline sequences.
8502 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8504 s/.\{148\}/&'"$ac_delim"'/g
8507 s/^[ ]*#[ ]*define[ ][ ]*/ /
8514 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8516 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8520 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8521 D["\
1"]=" \
3\\\\\\n
"\\/p
8523 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8528 s/.\{148\}/&'"$ac_delim"'/g
8533 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8536 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8538 ' <confdefs.h | sed '
8539 s/'"$ac_delim"'/"\\\
8540 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8543 for (key in D) D_is_set[key] = 1
8546 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8548 split(line, arg, " ")
8549 if (arg[1] == "#") {
8553 defundef
= substr
(arg
[1], 2)
8556 split(mac1
, mac2
, "(") #)
8558 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8559 if (D_is_set
[macro
]) {
8560 # Preserve the white space surrounding the "#".
8561 print prefix
"define", macro P
[macro
] D
[macro
]
8564 # Replace #undef with comments. This is necessary, for example,
8565 # in the case of _POSIX_SOURCE, which is predefined and required
8566 # on some systems where configure will not decide to define it.
8567 if (defundef
== "undef") {
8568 print
"/*", prefix defundef
, macro
, "*/"
8576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8577 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8578 fi # test -n "$CONFIG_HEADERS"
8581 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8586 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8588 case $ac_mode$ac_tag in
8590 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8591 :[FH
]-) ac_tag
=-:-;;
8592 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8609 -) ac_f
="$tmp/stdin";;
8610 *) # Look for the file first in the build tree, then in the source tree
8611 # (if the path is not absolute). The absolute path cannot be DOS-style,
8612 # because $ac_f cannot contain `:'.
8616 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8618 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8620 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8621 as_fn_append ac_file_inputs
" '$ac_f'"
8624 # Let's still pretend it is `configure' which instantiates (i.e., don't
8625 # use $as_me), people would be surprised to read:
8626 # /* config.h. Generated by config.status. */
8627 configure_input
='Generated from '`
8628 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8630 if test x
"$ac_file" != x-
; then
8631 configure_input
="$ac_file. $configure_input"
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8633 $as_echo "$as_me: creating $ac_file" >&6;}
8635 # Neutralize special characters interpreted by sed in replacement strings.
8636 case $configure_input in #(
8637 *\
&* |
*\|
* |
*\\* )
8638 ac_sed_conf_input
=`$as_echo "$configure_input" |
8639 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8640 *) ac_sed_conf_input
=$configure_input;;
8644 *:-:* |
*:-) cat >"$tmp/stdin" \
8645 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8650 ac_dir
=`$as_dirname -- "$ac_file" ||
8651 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8652 X"$ac_file" : 'X\(//\)[^/]' \| \
8653 X"$ac_file" : 'X\(//\)$' \| \
8654 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8655 $as_echo X"$ac_file" |
8656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8673 as_dir
="$ac_dir"; as_fn_mkdir_p
8677 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8679 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8680 # A ".." for each directory in $ac_dir_suffix.
8681 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8682 case $ac_top_builddir_sub in
8683 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8684 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8687 ac_abs_top_builddir
=$ac_pwd
8688 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8689 # for backward compatibility:
8690 ac_top_builddir
=$ac_top_build_prefix
8693 .
) # We are building in place.
8695 ac_top_srcdir
=$ac_top_builddir_sub
8696 ac_abs_top_srcdir
=$ac_pwd ;;
8697 [\\/]* | ?
:[\\/]* ) # Absolute name.
8698 ac_srcdir
=$srcdir$ac_dir_suffix;
8699 ac_top_srcdir
=$srcdir
8700 ac_abs_top_srcdir
=$srcdir ;;
8702 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8703 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8704 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8706 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8716 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8717 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8722 # If the template does not know about datarootdir, expand it.
8723 # FIXME: This hack should be removed a few years after 2.60.
8724 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8735 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8736 *datarootdir
*) ac_datarootdir_seen
=yes;;
8737 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8739 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8742 ac_datarootdir_hack='
8743 s&@datadir@&$datadir&g
8744 s&@docdir@&$docdir&g
8745 s&@infodir@&$infodir&g
8746 s&@localedir@&$localedir&g
8747 s&@mandir@&$mandir&g
8748 s&\\\${datarootdir}&$datarootdir&g' ;;
8752 # Neutralize VPATH when `$srcdir' = `.'.
8753 # Shell code in configure.ac might set extrasub.
8754 # FIXME: do we really want to maintain this feature?
8755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8756 ac_sed_extra="$ac_vpsub
8759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8761 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8762 s|@configure_input@|
$ac_sed_conf_input|
;t t
8763 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8764 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8765 s
&@srcdir@
&$ac_srcdir&;t t
8766 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8767 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8768 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8769 s
&@builddir@
&$ac_builddir&;t t
8770 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8771 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8772 s
&@INSTALL@
&$ac_INSTALL&;t t
8773 $ac_datarootdir_hack
8775 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8776 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8778 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8779 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8780 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8782 which seems to be undefined. Please make sure it is defined." >&5
8783 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8784 which seems to be undefined. Please make sure it is defined." >&2;}
8788 -) cat "$tmp/out" && rm -f "$tmp/out";;
8789 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8791 || as_fn_error "could not create $ac_file" "$LINENO" 5
8797 if test x"$ac_file" != x-; then
8799 $as_echo "/* $configure_input */" \
8800 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8801 } >"$tmp/config.h" \
8802 || as_fn_error "could not create $ac_file" "$LINENO" 5
8803 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8805 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8808 mv "$tmp/config.h" "$ac_file" \
8809 || as_fn_error "could not create $ac_file" "$LINENO" 5
8812 $as_echo "/* $configure_input */" \
8813 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8814 || as_fn_error "could not create -" "$LINENO" 5
8818 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8819 $as_echo "$as_me: executing $ac_file commands" >&6;}
8824 case $ac_file$ac_mode in
8825 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8826 "Makefile":F) case x$CONFIG_HEADERS in
8827 xconfig.h:config.in)
8838 ac_clean_files=$ac_clean_files_save
8840 test $ac_write_fail = 0 ||
8841 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8844 # configure is writing to config.log, and then calls config.status.
8845 # config.status does its own redirection, appending to config.log.
8846 # Unfortunately, on DOS this fails, as config.log is still kept open
8847 # by configure, so config.status won't be able to
write to it
; its
8848 # output is simply discarded. So we exec the FD to /dev/null,
8849 # effectively closing config.log, so it can be properly (re)opened and
8850 # appended to by config.status. When coming back to configure, we
8851 # need to make the FD available again.
8852 if test "$no_create" != yes; then
8854 ac_config_status_args
=
8855 test "$silent" = yes &&
8856 ac_config_status_args
="$ac_config_status_args --quiet"
8858 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8860 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8861 # would make configure fail if this is the last instruction.
8862 $ac_cs_success || as_fn_exit $?
8864 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8866 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}