2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="server.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='LTLIBOBJS
679 MAINTAINER_MODE_FALSE
708 program_transform_name
721 enable_option_checking
722 enable_maintainer_mode
729 enable_build_warnings
730 enable_gdb_build_warnings
734 enable_inprocess_agent
736 ac_precious_vars
='build_alias
750 # Initialize some variables set by options.
752 ac_init_version
=false
753 ac_unrecognized_opts
=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
764 program_transform_name
=s
,x
,x
,
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir
='${exec_prefix}/bin'
779 sbindir
='${exec_prefix}/sbin'
780 libexecdir
='${exec_prefix}/libexec'
781 datarootdir
='${prefix}/share'
782 datadir
='${datarootdir}'
783 sysconfdir
='${prefix}/etc'
784 sharedstatedir
='${prefix}/com'
785 localstatedir
='${prefix}/var'
786 includedir
='${prefix}/include'
787 oldincludedir
='/usr/include'
788 docdir
='${datarootdir}/doc/${PACKAGE}'
789 infodir
='${datarootdir}/info'
794 libdir
='${exec_prefix}/lib'
795 localedir
='${datarootdir}/locale'
796 mandir
='${datarootdir}/man'
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\
$ac_option
810 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815 # Accept the important Cygnus configure options, so we can diagnose typos.
817 case $ac_dashdash$ac_option in
821 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
823 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
826 -build |
--build |
--buil |
--bui |
--bu)
827 ac_prev
=build_alias
;;
828 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
829 build_alias
=$ac_optarg ;;
831 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
832 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
833 ac_prev
=cache_file
;;
834 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
835 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
836 cache_file
=$ac_optarg ;;
839 cache_file
=config.cache
;;
841 -datadir |
--datadir |
--datadi |
--datad)
843 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
844 datadir
=$ac_optarg ;;
846 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
847 |
--dataroo |
--dataro |
--datar)
848 ac_prev
=datarootdir
;;
849 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
850 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
851 datarootdir
=$ac_optarg ;;
853 -disable-* |
--disable-*)
854 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
857 as_fn_error $?
"invalid feature name: $ac_useropt"
858 ac_useropt_orig
=$ac_useropt
859 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
864 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep
=', ';;
867 eval enable_
$ac_useropt=no
;;
869 -docdir |
--docdir |
--docdi |
--doc |
--do)
871 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
874 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
876 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
879 -enable-* |
--enable-*)
880 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
883 as_fn_error $?
"invalid feature name: $ac_useropt"
884 ac_useropt_orig
=$ac_useropt
885 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
890 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep
=', ';;
893 eval enable_
$ac_useropt=\
$ac_optarg ;;
895 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
896 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
897 |
--exec |
--exe |
--ex)
898 ac_prev
=exec_prefix
;;
899 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
900 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
901 |
--exec=* |
--exe=* |
--ex=*)
902 exec_prefix
=$ac_optarg ;;
904 -gas |
--gas |
--ga |
--g)
905 # Obsolete; use --with-gas.
908 -help |
--help |
--hel |
--he |
-h)
910 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
911 ac_init_help
=recursive
;;
912 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
913 ac_init_help
=short
;;
915 -host |
--host |
--hos |
--ho)
916 ac_prev
=host_alias
;;
917 -host=* |
--host=* |
--hos=* |
--ho=*)
918 host_alias
=$ac_optarg ;;
920 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
922 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
924 htmldir
=$ac_optarg ;;
926 -includedir |
--includedir |
--includedi |
--included |
--include \
927 |
--includ |
--inclu |
--incl |
--inc)
928 ac_prev
=includedir
;;
929 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
930 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
931 includedir
=$ac_optarg ;;
933 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
935 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
936 infodir
=$ac_optarg ;;
938 -libdir |
--libdir |
--libdi |
--libd)
940 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
943 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
944 |
--libexe |
--libex |
--libe)
945 ac_prev
=libexecdir
;;
946 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
947 |
--libexe=* |
--libex=* |
--libe=*)
948 libexecdir
=$ac_optarg ;;
950 -localedir |
--localedir |
--localedi |
--localed |
--locale)
952 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
953 localedir
=$ac_optarg ;;
955 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
956 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
957 ac_prev
=localstatedir
;;
958 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
959 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
960 localstatedir
=$ac_optarg ;;
962 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
964 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
968 # Obsolete; use --without-fp.
971 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
972 |
--no-cr |
--no-c |
-n)
975 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
976 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
979 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
980 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
981 |
--oldin |
--oldi |
--old |
--ol |
--o)
982 ac_prev
=oldincludedir
;;
983 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
984 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
985 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
986 oldincludedir
=$ac_optarg ;;
988 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
990 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
993 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
994 |
--program-pre |
--program-pr |
--program-p)
995 ac_prev
=program_prefix
;;
996 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
997 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
998 program_prefix
=$ac_optarg ;;
1000 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1001 |
--program-suf |
--program-su |
--program-s)
1002 ac_prev
=program_suffix
;;
1003 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1004 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1005 program_suffix
=$ac_optarg ;;
1007 -program-transform-name |
--program-transform-name \
1008 |
--program-transform-nam |
--program-transform-na \
1009 |
--program-transform-n |
--program-transform- \
1010 |
--program-transform |
--program-transfor \
1011 |
--program-transfo |
--program-transf \
1012 |
--program-trans |
--program-tran \
1013 |
--progr-tra |
--program-tr |
--program-t)
1014 ac_prev
=program_transform_name
;;
1015 -program-transform-name=* |
--program-transform-name=* \
1016 |
--program-transform-nam=* |
--program-transform-na=* \
1017 |
--program-transform-n=* |
--program-transform-=* \
1018 |
--program-transform=* |
--program-transfor=* \
1019 |
--program-transfo=* |
--program-transf=* \
1020 |
--program-trans=* |
--program-tran=* \
1021 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1022 program_transform_name
=$ac_optarg ;;
1024 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1026 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1027 pdfdir
=$ac_optarg ;;
1029 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1031 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1034 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1035 |
-silent |
--silent |
--silen |
--sile |
--sil)
1038 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1040 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1042 sbindir
=$ac_optarg ;;
1044 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1045 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1046 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1048 ac_prev
=sharedstatedir
;;
1049 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1050 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1051 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1053 sharedstatedir
=$ac_optarg ;;
1055 -site |
--site |
--sit)
1057 -site=* |
--site=* |
--sit=*)
1060 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1062 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1063 srcdir
=$ac_optarg ;;
1065 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1066 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1067 ac_prev
=sysconfdir
;;
1068 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1069 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1070 sysconfdir
=$ac_optarg ;;
1072 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1073 ac_prev
=target_alias
;;
1074 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1075 target_alias
=$ac_optarg ;;
1077 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1080 -version |
--version |
--versio |
--versi |
--vers |
-V)
1081 ac_init_version
=: ;;
1084 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1087 as_fn_error $?
"invalid package name: $ac_useropt"
1088 ac_useropt_orig
=$ac_useropt
1089 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1094 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep
=', ';;
1097 eval with_
$ac_useropt=\
$ac_optarg ;;
1099 -without-* |
--without-*)
1100 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1103 as_fn_error $?
"invalid package name: $ac_useropt"
1104 ac_useropt_orig
=$ac_useropt
1105 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1110 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep
=', ';;
1113 eval with_
$ac_useropt=no
;;
1116 # Obsolete; use --with-x.
1119 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1120 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1121 ac_prev
=x_includes
;;
1122 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1123 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1124 x_includes
=$ac_optarg ;;
1126 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1127 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1128 ac_prev
=x_libraries
;;
1129 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1130 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1131 x_libraries
=$ac_optarg ;;
1133 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1134 Try \`$0 --help' for more information"
1138 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 case $ac_envvar in #(
1141 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1142 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1144 eval $ac_envvar=\
$ac_optarg
1145 export $ac_envvar ;;
1148 # FIXME: should be removed in autoconf 3.0.
1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1158 if test -n "$ac_prev"; then
1159 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1160 as_fn_error $?
"missing argument to $ac_option"
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1166 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1171 # Check all directory arguments for consistency.
1172 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1177 eval ac_val
=\$
$ac_var
1178 # Remove trailing slashes.
1181 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\
$ac_val;;
1184 # Be sure to have absolute directory names.
1186 [\\/$
]* | ?
:[\\/]* ) continue;;
1187 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1189 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1197 target
=$target_alias
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x
; then
1201 if test "x$build_alias" = x
; then
1202 cross_compiling
=maybe
1203 elif test "x$build_alias" != "x$host_alias"; then
1209 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1211 test "$silent" = yes && exec 6>/dev
/null
1214 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di
=`ls -di .` &&
1216 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1217 as_fn_error $?
"working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 as_fn_error $?
"pwd does not report name of working directory"
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted
=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir
=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$as_myself" : 'X\(//\)[^/]' \| \
1229 X"$as_myself" : 'X\(//\)$' \| \
1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 $as_echo X"$as_myself" |
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1254 ac_srcdir_defaulted
=no
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1258 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1260 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1272 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 for ac_var
in $ac_precious_vars; do
1275 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1277 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1282 # Report the --help message.
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1288 \`configure' configures this package to adapt to many kinds of systems.
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1295 Defaults for the options are specified in brackets.
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking ...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1319 For better control, use the options below.
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1346 --program-prefix=PREFIX prepend PREFIX to installed program names
1347 --program-suffix=SUFFIX append SUFFIX to installed program names
1348 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1351 --build=BUILD configure
for building on BUILD
[guessed
]
1352 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1353 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1357 if test -n "$ac_init_help"; then
1362 --disable-option-checking ignore unrecognized
--enable/--with options
1363 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1364 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1365 --enable-maintainer-mode
1366 enable make rules and dependencies not useful
(and
1367 sometimes confusing
) to the casual installer
1368 --disable-largefile omit support
for large files
1369 --enable-libmcheck Try linking with
-lmcheck if available
1370 --enable-werror treat compile warnings as errors
1371 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1372 --enable-gdb-build-warnings
1373 enable GDB specific build-time compiler warnings
if
1375 --enable-inprocess-agent
1379 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1380 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1381 --with-ust=PATH Specify prefix directory
for the installed UST package
1382 Equivalent to
--with-ust-include=PATH
/include
1383 plus
--with-ust-lib=PATH
/lib
1384 --with-ust-include=PATH Specify directory
for installed UST include files
1385 --with-ust-lib=PATH Specify the directory
for the installed UST library
1386 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1387 --with-bugurl=URL Direct users to URL to report a bug
1388 --with-libthread-db=PATH
1389 use given libthread_db directly
1391 Some influential environment variables
:
1392 CC C compiler
command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1395 nonstandard directory
<lib dir
>
1396 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1397 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1398 you have headers
in a nonstandard directory
<include dir
>
1399 CXX C
++ compiler
command
1400 CXXFLAGS C
++ compiler flags
1403 Use these variables to override the choices made by
`configure' or to help
1404 it to find libraries and programs with nonstandard names/locations.
1406 Report bugs to the package provider.
1411 if test "$ac_init_help" = "recursive"; then
1412 # If there are subdirs, report their specific --help.
1413 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414 test -d "$ac_dir" ||
1415 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1423 # A ".." for each directory in $ac_dir_suffix.
1424 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1425 case $ac_top_builddir_sub in
1426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1436 .) # We are building in place.
1438 ac_top_srcdir=$ac_top_builddir_sub
1439 ac_abs_top_srcdir=$ac_pwd ;;
1440 [\\/]* | ?:[\\/]* ) # Absolute name.
1441 ac_srcdir=$srcdir$ac_dir_suffix;
1442 ac_top_srcdir=$srcdir
1443 ac_abs_top_srcdir=$srcdir ;;
1445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446 ac_top_srcdir=$ac_top_build_prefix$srcdir
1447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451 cd "$ac_dir" || { ac_status=$?; continue; }
1452 # Check for guested configure.
1453 if test -f "$ac_srcdir/configure.gnu"; then
1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456 elif test -f "$ac_srcdir/configure"; then
1458 $SHELL "$ac_srcdir/configure" --help=recursive
1460 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462 cd "$ac_pwd" || { ac_status=$?; break; }
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1470 generated by GNU Autoconf 2.69
1472 Copyright (C) 2012 Free Software Foundation, Inc.
1473 This configure script is free software; the Free Software Foundation
1474 gives unlimited permission to copy, distribute and modify it.
1479 ## ------------------------ ##
1480 ## Autoconf initialization. ##
1481 ## ------------------------ ##
1483 # ac_fn_c_try_compile LINENO
1484 # --------------------------
1485 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1486 ac_fn_c_try_compile ()
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 rm -f conftest.$ac_objext
1490 if { { ac_try="$ac_compile"
1492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1493 *) ac_try_echo
=$ac_try;;
1495 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_compile") 2>conftest.err
1499 if test -s conftest.err
; then
1500 grep -v '^ *+' conftest.err
>conftest.er1
1501 cat conftest.er1
>&5
1502 mv -f conftest.er1 conftest.err
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } && {
1506 test -z "$ac_c_werror_flag" ||
1507 test ! -s conftest.err
1508 } && test -s conftest.
$ac_objext; then :
1511 $as_echo "$as_me: failed program was:" >&5
1512 sed 's/^/| /' conftest.
$ac_ext >&5
1516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1517 as_fn_set_status
$ac_retval
1519 } # ac_fn_c_try_compile
1521 # ac_fn_cxx_try_compile LINENO
1522 # ----------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_cxx_try_compile
()
1526 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1527 rm -f conftest.
$ac_objext
1528 if { { ac_try
="$ac_compile"
1530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_cxx_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1557 } # ac_fn_cxx_try_compile
1559 # ac_fn_c_try_cpp LINENO
1560 # ----------------------
1561 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1568 *) ac_try_echo
=$ac_try;;
1570 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 if test -s conftest.err
; then
1575 grep -v '^ *+' conftest.err
>conftest.er1
1576 cat conftest.er1
>&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } > conftest.i
&& {
1581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.
$ac_ext >&5
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status
$ac_retval
1596 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1599 # the include files in INCLUDES and setting the cache variable VAR
1601 ac_fn_c_check_header_mongrel
()
1603 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1604 if eval \
${$3+:} false
; then :
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 $as_echo_n "checking for $2... " >&6; }
1607 if eval \
${$3+:} false
; then :
1608 $as_echo_n "(cached) " >&6
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 $as_echo "$ac_res" >&6; }
1614 # Is the header compilable?
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1616 $as_echo_n "checking $2 usability... " >&6; }
1617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1622 if ac_fn_c_try_compile
"$LINENO"; then :
1623 ac_header_compiler
=yes
1625 ac_header_compiler
=no
1627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1629 $as_echo "$ac_header_compiler" >&6; }
1631 # Is the header present?
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1633 $as_echo_n "checking $2 presence... " >&6; }
1634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1638 if ac_fn_c_try_cpp
"$LINENO"; then :
1639 ac_header_preproc
=yes
1641 ac_header_preproc
=no
1643 rm -f conftest.err conftest.i conftest.
$ac_ext
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1645 $as_echo "$ac_header_preproc" >&6; }
1647 # So? What about this header?
1648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1651 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1657 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1659 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1661 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1663 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1665 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \
${$3+:} false
; then :
1671 $as_echo_n "(cached) " >&6
1673 eval "$3=\$ac_header_compiler"
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 } # ac_fn_c_check_header_mongrel
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1689 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1690 if { { ac_try
="$ac_link"
1692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>&5
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701 { { case "(($ac_try" in
1702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1703 *) ac_try_echo
=$ac_try;;
1705 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_try") 2>&5
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; }; }; then :
1713 $as_echo "$as_me: program exited with status $ac_status" >&5
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.
$ac_ext >&5
1717 ac_retval
=$ac_status
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status
$ac_retval
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile
()
1731 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \
${$3+:} false
; then :
1735 $as_echo_n "(cached) " >&6
1737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1742 if ac_fn_c_try_compile
"$LINENO"; then :
1747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 } # ac_fn_c_check_header_compile
1756 # ac_fn_c_try_link LINENO
1757 # -----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded.
1761 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1762 rm -f conftest.
$ac_objext conftest
$ac_exeext
1763 if { { ac_try
="$ac_link"
1765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 test -x conftest$ac_exeext
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1800 } # ac_fn_c_try_link
1802 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1803 # -------------------------------------------
1804 # Tests whether TYPE exists after having included INCLUDES, setting cache
1805 # variable VAR accordingly.
1806 ac_fn_c_check_type ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1840 if ac_fn_c_try_compile "$LINENO"; then :
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 } # ac_fn_c_check_type
1856 # ac_fn_c_check_func LINENO FUNC VAR
1857 # ----------------------------------
1858 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1859 ac_fn_c_check_func ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if eval \${$3+:} false; then :
1865 $as_echo_n "(cached) " >&6
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1871 #define $2 innocuous_$2
1873 /* System header to define __stub macros and hopefully few prototypes,
1874 which can conflict with char $2 (); below.
1875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1876 <limits.h> exists even on freestanding compilers. */
1879 # include <limits.h>
1881 # include <assert.h>
1886 /* Override any GCC internal prototype to avoid an error.
1887 Use char because int might match the return type of a GCC
1888 builtin and then its argument prototype would still apply. */
1893 /* The GNU C library defines this for functions which it implements
1894 to always fail with ENOSYS. Some functions are actually named
1895 something starting with __ and the normal name is an alias. */
1896 #if defined __stub_$2 || defined __stub___$2
1908 if ac_fn_c_try_link "$LINENO"; then :
1913 rm -f core conftest.err conftest.$ac_objext \
1914 conftest$ac_exeext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 } # ac_fn_c_check_func
1923 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1924 # ---------------------------------------------
1925 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1927 ac_fn_c_check_decl ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1931 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1933 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1943 #ifndef $as_decl_name
1945 (void) $as_decl_use;
1947 (void) $as_decl_name;
1955 if ac_fn_c_try_compile "$LINENO"; then :
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 } # ac_fn_c_check_decl
1969 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1970 # --------------------------------------------
1971 # Tries to find the compile-time value of EXPR in a program that includes
1972 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1974 ac_fn_c_compute_int ()
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 if test "$cross_compiling" = yes; then
1978 # Depending upon the size, compute the lo and hi bounds.
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1985 static int test_array [1 - 2 * !(($2) >= 0)];
1987 return test_array [0];
1993 if ac_fn_c_try_compile "$LINENO"; then :
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2002 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2004 return test_array [0];
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_hi=$ac_mid; break
2013 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2014 if test $ac_lo -le $ac_mid; then
2018 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2029 static int test_array [1 - 2 * !(($2) < 0)];
2031 return test_array [0];
2037 if ac_fn_c_try_compile "$LINENO"; then :
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2046 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2048 return test_array [0];
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_lo=$ac_mid; break
2057 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2058 if test $ac_mid -le $ac_hi; then
2062 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 # Binary search between lo and hi bounds.
2073 while test "x$ac_lo" != "x$ac_hi"; do
2074 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2083 return test_array [0];
2089 if ac_fn_c_try_compile "$LINENO"; then :
2092 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2104 static long int longval () { return $2; }
2105 static unsigned long int ulongval () { return $2; }
2112 FILE *f = fopen ("conftest.val", "w");
2117 long int i = longval ();
2120 fprintf (f, "%ld", i);
2124 unsigned long int i = ulongval ();
2127 fprintf (f, "%lu", i);
2129 /* Do not output a trailing newline, as this causes \r\n confusion
2130 on some platforms. */
2131 return ferror (f) || fclose (f) != 0;
2137 if ac_fn_c_try_run "$LINENO"; then :
2138 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2143 conftest.$ac_objext conftest.beam conftest.$ac_ext
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 as_fn_set_status $ac_retval
2150 } # ac_fn_c_compute_int
2152 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2153 # ----------------------------------------------------
2154 # Tries to find if the field MEMBER exists in type AGGR, after including
2155 # INCLUDES, setting cache variable VAR accordingly.
2156 ac_fn_c_check_member ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2160 $as_echo_n "checking for $2.$3... " >&6; }
2161 if eval \${$4+:} false; then :
2162 $as_echo_n "(cached) " >&6
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2177 if ac_fn_c_try_compile "$LINENO"; then :
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2187 if (sizeof ac_aggr.$3)
2193 if ac_fn_c_try_compile "$LINENO"; then :
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 } # ac_fn_c_check_member
2208 cat >config.log <<_ACEOF
2209 This file contains any messages produced by compilers while
2210 running configure, to aid debugging if configure makes a mistake.
2212 It was created by $as_me, which was
2213 generated by GNU Autoconf 2.69. Invocation command line was
2225 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2226 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2227 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2228 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2229 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2231 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2232 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2234 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2235 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2236 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2237 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2238 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2239 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2240 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 $as_echo "PATH: $as_dir"
2265 # Keep a trace of the command line.
2266 # Strip out --no-create and --no-recursion so they do not pile up.
2267 # Strip out --silent because we don't want to record it for future runs.
2268 # Also quote any args containing shell meta-characters.
2269 # Make two passes to allow for proper duplicate-argument suppression.
2273 ac_must_keep_next=false
2279 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2281 | -silent | --silent | --silen | --sile | --sil)
2284 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2287 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2289 as_fn_append ac_configure_args1 " '$ac_arg'"
2290 if test $ac_must_keep_next = true; then
2291 ac_must_keep_next=false # Got value, back to normal.
2294 *=* | --config-cache | -C | -disable-* | --disable-* \
2295 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2296 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2297 | -with-* | --with-* | -without-* | --without-* | --x)
2298 case "$ac_configure_args0 " in
2299 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2302 -* ) ac_must_keep_next=true ;;
2305 as_fn_append ac_configure_args " '$ac_arg'"
2310 { ac_configure_args0=; unset ac_configure_args0;}
2311 { ac_configure_args1=; unset ac_configure_args1;}
2313 # When interrupted or exit'd, cleanup temporary files, and complete
2314 # config.log. We remove comments because anyway the quotes in there
2315 # would cause problems or look ugly.
2316 # WARNING: Use '\'' to represent an apostrophe within the trap.
2317 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2318 trap 'exit_status=$?
2319 # Save into config.log some information that might help in debugging.
2323 $as_echo "## ---------------- ##
2324 ## Cache variables. ##
2325 ## ---------------- ##"
2327 # The following way of writing the cache mishandles newlines in values,
2329 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2330 eval ac_val=\$$ac_var
2334 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2338 _ | IFS | as_nl) ;; #(
2339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2340 *) { eval $ac_var=; unset $ac_var;} ;;
2345 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2346 *${as_nl}ac_space=\ *)
2348 "s/'\''/'\''\\\\'\'''\''/g;
2349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2359 $as_echo "## ----------------- ##
2360 ## Output variables. ##
2361 ## ----------------- ##"
2363 for ac_var in $ac_subst_vars
2365 eval ac_val=\$$ac_var
2367 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369 $as_echo "$ac_var='\''$ac_val'\''"
2373 if test -n "$ac_subst_files"; then
2374 $as_echo "## ------------------- ##
2375 ## File substitutions. ##
2376 ## ------------------- ##"
2378 for ac_var in $ac_subst_files
2380 eval ac_val=\$$ac_var
2382 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2384 $as_echo "$ac_var='\''$ac_val'\''"
2389 if test -s confdefs.h; then
2390 $as_echo "## ----------- ##
2397 test "$ac_signal" != 0 &&
2398 $as_echo "$as_me: caught signal $ac_signal"
2399 $as_echo "$as_me: exit $exit_status"
2401 rm -f core *.core core.conftest.* &&
2402 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2405 for ac_signal in 1 2 13 15; do
2406 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2411 rm -f -r conftest* confdefs.h
2413 $as_echo "/* confdefs.h */" > confdefs.h
2415 # Predefined preprocessor variables.
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_NAME "$PACKAGE_NAME"
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_STRING "$PACKAGE_STRING"
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_URL "$PACKAGE_URL"
2442 # Let the site file select an alternate cache file if it wants to.
2443 # Prefer an explicitly selected file to automatically selected ones.
2446 if test -n "$CONFIG_SITE"; then
2447 # We do not want a PATH search for config.site.
2448 case $CONFIG_SITE in #((
2449 -*) ac_site_file1=./$CONFIG_SITE;;
2450 */*) ac_site_file1=$CONFIG_SITE;;
2451 *) ac_site_file1=./$CONFIG_SITE;;
2453 elif test "x$prefix" != xNONE; then
2454 ac_site_file1=$prefix/share/config.site
2455 ac_site_file2=$prefix/etc/config.site
2457 ac_site_file1=$ac_default_prefix/share/config.site
2458 ac_site_file2=$ac_default_prefix/etc/config.site
2460 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2462 test "x$ac_site_file" = xNONE && continue
2463 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2465 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2466 sed 's/^/| /' "$ac_site_file" >&5
2468 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 as_fn_error $? "failed to load site
script $ac_site_file
2471 See \
`config.log' for more details" "$LINENO" 5; }
2475 if test -r "$cache_file"; then
2476 # Some versions of bash will fail to source /dev/null (special files
2477 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2478 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2480 $as_echo "$as_me: loading cache $cache_file" >&6;}
2482 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2483 *) . "./$cache_file";;
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2488 $as_echo "$as_me: creating cache $cache_file" >&6;}
2492 # Check that the precious variables saved in the cache have kept the same
2494 ac_cache_corrupted=false
2495 for ac_var in $ac_precious_vars; do
2496 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2497 eval ac_new_set=\$ac_env_${ac_var}_set
2498 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2499 eval ac_new_val=\$ac_env_${ac_var}_value
2500 case $ac_old_set,$ac_new_set in
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2503 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2504 ac_cache_corrupted=: ;;
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2507 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2508 ac_cache_corrupted=: ;;
2511 if test "x$ac_old_val" != "x$ac_new_val"; then
2512 # differences in whitespace do not lead to failure.
2513 ac_old_val_w=`echo x
$ac_old_val`
2514 ac_new_val_w=`echo x
$ac_new_val`
2515 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2517 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2518 ac_cache_corrupted=:
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2521 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2522 eval $ac_var=\$ac_old_val
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2525 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2527 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2530 # Pass precious variables to config.status.
2531 if test "$ac_new_set" = set; then
2533 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2534 *) ac_arg=$ac_var=$ac_new_val ;;
2536 case " $ac_configure_args " in
2537 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2538 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2542 if $ac_cache_corrupted; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2546 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2547 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2549 ## -------------------- ##
2550 ## Main body of script. ##
2551 ## -------------------- ##
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563 ac_config_headers="$ac_config_headers config.h:config.in"
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2568 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2569 # Check whether --enable-maintainer-mode was given.
2570 if test "${enable_maintainer_mode+set}" = set; then :
2571 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2573 USE_MAINTAINER_MODE=no
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2577 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2578 if test $USE_MAINTAINER_MODE = yes; then
2579 MAINTAINER_MODE_TRUE=
2580 MAINTAINER_MODE_FALSE='#'
2582 MAINTAINER_MODE_TRUE='#'
2583 MAINTAINER_MODE_FALSE=
2586 MAINT=$MAINTAINER_MODE_TRUE
2591 ac_cpp='$CPP $CPPFLAGS'
2592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 if test -n "$ac_tool_prefix"; then
2596 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2597 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if ${ac_cv_prog_CC+:} false; then :
2601 $as_echo_n "(cached) " >&6
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC="$CC" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 if test -n "$CC"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2626 $as_echo "$CC" >&6; }
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2634 if test -z "$ac_cv_prog_CC"; then
2636 # Extract the first word of "gcc", so it can be a program name with args.
2637 set dummy gcc; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2641 $as_echo_n "(cached) " >&6
2643 if test -n "$ac_ct_CC"; then
2644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_ac_ct_CC="gcc"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2664 if test -n "$ac_ct_CC"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2666 $as_echo "$ac_ct_CC" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2672 if test "x$ac_ct_CC" = x; then
2675 case $cross_compiling:$ac_tool_warned in
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2679 ac_tool_warned=yes ;;
2687 if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2690 set dummy ${ac_tool_prefix}cc; ac_word=$2
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if ${ac_cv_prog_CC+:} false; then :
2694 $as_echo_n "(cached) " >&6
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706 ac_cv_prog_CC="${ac_tool_prefix}cc"
2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 if test -n "$CC"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2719 $as_echo "$CC" >&6; }
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2728 if test -z "$CC"; then
2729 # Extract the first word of "cc", so it can be a program name with args.
2730 set dummy cc; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_CC+:} false; then :
2734 $as_echo_n "(cached) " >&6
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2748 ac_prog_rejected=yes
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 if test $ac_prog_rejected = yes; then
2760 # We found a bogon in the path, so make sure we never use it.
2761 set dummy $ac_cv_prog_CC
2763 if test $# != 0; then
2764 # We chose a different compiler from the bogus one.
2765 # However, it has the same basename, so the bogon will be chosen
2766 # first if we set CC to just the basename; use the full file name.
2768 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2774 if test -n "$CC"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2776 $as_echo "$CC" >&6; }
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2784 if test -z "$CC"; then
2785 if test -n "$ac_tool_prefix"; then
2786 for ac_prog in cl.exe
2788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_CC+:} false; then :
2793 $as_echo_n "(cached) " >&6
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2825 test -n "$CC" && break
2828 if test -z "$CC"; then
2830 for ac_prog in cl.exe
2832 # Extract the first word of "$ac_prog", so it can be a program name with args.
2833 set dummy $ac_prog; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2837 $as_echo_n "(cached) " >&6
2839 if test -n "$ac_ct_CC"; then
2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849 ac_cv_prog_ac_ct_CC="$ac_prog"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860 if test -n "$ac_ct_CC"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2862 $as_echo "$ac_ct_CC" >&6; }
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2869 test -n "$ac_ct_CC" && break
2872 if test "x$ac_ct_CC" = x; then
2875 case $cross_compiling:$ac_tool_warned in
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2879 ac_tool_warned=yes ;;
2888 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2890 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2891 See \
`config.log' for more details" "$LINENO" 5; }
2893 # Provide some information about the compiler.
2894 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2897 for ac_option in --version -v -V -qversion; do
2898 { { ac_try="$ac_compiler $ac_option >&5"
2900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2901 *) ac_try_echo
=$ac_try;;
2903 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2904 $as_echo "$ac_try_echo"; } >&5
2905 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2907 if test -s conftest.err
; then
2909 ... rest of stderr output deleted ...
2910 10q' conftest.err
>conftest.er1
2911 cat conftest.er1
>&5
2913 rm -f conftest.er1 conftest.err
2914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2915 test $ac_status = 0; }
2918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2919 /* end confdefs.h. */
2929 ac_clean_files_save
=$ac_clean_files
2930 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2931 # Try to create an executable without -o first, disregard a.out.
2932 # It will help us diagnose broken compilers, and finding out an intuition
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2935 $as_echo_n "checking whether the C compiler works... " >&6; }
2936 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2938 # The possible output files:
2939 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2942 for ac_file
in $ac_files
2945 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2946 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2951 if { { ac_try
="$ac_link_default"
2953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957 $as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_link_default") 2>&5
2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }; then :
2962 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2963 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2964 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2965 # so that the user can short-circuit this test for compilers unknown to
2967 for ac_file in $ac_files ''
2969 test -f "$ac_file" || continue
2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2974 # We found the default executable, but exeext='' is most
2978 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2980 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2982 # We set ac_cv_exeext here because the later test for it is not
2983 # safe: cross compilers may not add the suffix if given an `-o'
2984 # argument, so we may need to know it at that point already.
2985 # Even if this section looks crufty: it has the advantage of
2992 test "$ac_cv_exeext" = no && ac_cv_exeext=
2997 if test -z "$ac_file"; then :
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 $as_echo "$as_me: failed program was:" >&5
3001 sed 's
/^
/|
/' conftest.$ac_ext >&5
3003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3004 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3005 as_fn_error 77 "C compiler cannot create executables
3006 See \`config.log
' for more details" "$LINENO" 5; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3009 $as_echo "yes" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3012 $as_echo_n "checking for C compiler default output file name... " >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3014 $as_echo "$ac_file" >&6; }
3015 ac_exeext=$ac_cv_exeext
3017 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3018 ac_clean_files=$ac_clean_files_save
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3020 $as_echo_n "checking for suffix of executables... " >&6; }
3021 if { { ac_try="$ac_link"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027 $as_echo "$ac_try_echo"; } >&5
3028 (eval "$ac_link") 2>&5
3030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3031 test $ac_status = 0; }; then :
3032 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3033 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3034 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3036 for ac_file
in conftest.exe conftest conftest.
*; do
3037 test -f "$ac_file" ||
continue
3039 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3040 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3049 See \`config.log' for more details" "$LINENO" 5; }
3051 rm -f conftest conftest
$ac_cv_exeext
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3053 $as_echo "$ac_cv_exeext" >&6; }
3055 rm -f conftest.
$ac_ext
3056 EXEEXT
=$ac_cv_exeext
3058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3064 FILE *f = fopen ("conftest.out", "w");
3065 return ferror (f) || fclose (f) != 0;
3071 ac_clean_files
="$ac_clean_files conftest.out"
3072 # Check that the compiler produces executables we can run. If not, either
3073 # the compiler is broken, or we cross compile.
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3075 $as_echo_n "checking whether we are cross compiling... " >&6; }
3076 if test "$cross_compiling" != yes; then
3077 { { ac_try
="$ac_link"
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_link") 2>&5
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }
3088 if { ac_try='./conftest$ac_cv_exeext'
3089 { { case "(($ac_try" in
3090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3091 *) ac_try_echo
=$ac_try;;
3093 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_try") 2>&5
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }; }; then
3101 if test "$cross_compiling" = maybe
; then
3104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error $?
"cannot run C compiled programs.
3107 If you meant to cross compile, use \`--host'.
3108 See \`config.log' for more details" "$LINENO" 5; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3113 $as_echo "$cross_compiling" >&6; }
3115 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3116 ac_clean_files
=$ac_clean_files_save
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3118 $as_echo_n "checking for suffix of object files... " >&6; }
3119 if ${ac_cv_objext+:} false
; then :
3120 $as_echo_n "(cached) " >&6
3122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3123 /* end confdefs.h. */
3133 rm -f conftest.o conftest.obj
3134 if { { ac_try
="$ac_compile"
3136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3140 $as_echo "$ac_try_echo"; } >&5
3141 (eval "$ac_compile") 2>&5
3143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144 test $ac_status = 0; }; then :
3145 for ac_file in conftest.o conftest.obj conftest.*; do
3146 test -f "$ac_file" || continue;
3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3149 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3160 See \
`config.log' for more details" "$LINENO" 5; }
3162 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3165 $as_echo "$ac_cv_objext" >&6; }
3166 OBJEXT=$ac_cv_objext
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3169 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3170 if ${ac_cv_c_compiler_gnu+:} false; then :
3171 $as_echo_n "(cached) " >&6
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3187 if ac_fn_c_try_compile "$LINENO"; then :
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3197 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3198 if test $ac_compiler_gnu = yes; then
3203 ac_test_CFLAGS=${CFLAGS+set}
3204 ac_save_CFLAGS=$CFLAGS
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3206 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3207 if ${ac_cv_prog_cc_g+:} false; then :
3208 $as_echo_n "(cached) " >&6
3210 ac_save_c_werror_flag=$ac_c_werror_flag
3211 ac_c_werror_flag=yes
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3225 if ac_fn_c_try_compile "$LINENO"; then :
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3240 if ac_fn_c_try_compile "$LINENO"; then :
3243 ac_c_werror_flag=$ac_save_c_werror_flag
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3256 if ac_fn_c_try_compile "$LINENO"; then :
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 ac_c_werror_flag=$ac_save_c_werror_flag
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3267 $as_echo "$ac_cv_prog_cc_g" >&6; }
3268 if test "$ac_test_CFLAGS" = set; then
3269 CFLAGS=$ac_save_CFLAGS
3270 elif test $ac_cv_prog_cc_g = yes; then
3271 if test "$GCC" = yes; then
3277 if test "$GCC" = yes; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3284 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3285 if ${ac_cv_prog_cc_c89+:} false; then :
3286 $as_echo_n "(cached) " >&6
3288 ac_cv_prog_cc_c89=no
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296 struct buf { int x; };
3297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298 static char *e (p, i)
3304 static char *f (char * (*g) (char **, int), char **p, ...)
3309 s = g (p, va_arg (v,int));
3314 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3315 function prototypes and stuff, but not '\xHH' hex character constants.
3316 These don't provoke an error unfortunately, instead are silently treated
3317 as 'x'. The following induces an error, until -std is added to get
3318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3319 array size at least. It's necessary to write '\x00'==0 to get something
3320 that's true only with -std. */
3321 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3323 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3324 inside strings and character constants. */
3326 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3328 int test (int i, double x);
3329 struct s1 {int (*f) (int a);};
3330 struct s2 {int (*f) (double a);};
3331 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3337 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3342 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3343 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3345 CC="$ac_save_CC $ac_arg"
3346 if ac_fn_c_try_compile "$LINENO"; then :
3347 ac_cv_prog_cc_c89=$ac_arg
3349 rm -f core conftest.err conftest.$ac_objext
3350 test "x$ac_cv_prog_cc_c89" != "xno" && break
3352 rm -f conftest.$ac_ext
3357 case "x$ac_cv_prog_cc_c89" in
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3360 $as_echo "none needed" >&6; } ;;
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3363 $as_echo "unsupported" >&6; } ;;
3365 CC="$CC $ac_cv_prog_cc_c89"
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3367 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3369 if test "x$ac_cv_prog_cc_c89" != xno; then :
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 ac_cpp='$CXXCPP $CPPFLAGS'
3381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3384 if test -z "$CXX"; then
3385 if test -n "$CCC"; then
3388 if test -n "$ac_tool_prefix"; then
3389 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CXX+:} false; then :
3396 $as_echo_n "(cached) " >&6
3398 if test -n "$CXX"; then
3399 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 if test -n "$CXX"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3421 $as_echo "$CXX" >&6; }
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3428 test -n "$CXX" && break
3431 if test -z "$CXX"; then
3433 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3435 # Extract the first word of "$ac_prog", so it can be a program name with args.
3436 set dummy $ac_prog; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3440 $as_echo_n "(cached) " >&6
3442 if test -n "$ac_ct_CXX"; then
3443 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_ac_ct_CXX="$ac_prog"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3463 if test -n "$ac_ct_CXX"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3465 $as_echo "$ac_ct_CXX" >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3472 test -n "$ac_ct_CXX" && break
3475 if test "x$ac_ct_CXX" = x; then
3478 case $cross_compiling:$ac_tool_warned in
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3482 ac_tool_warned=yes ;;
3490 # Provide some information about the compiler.
3491 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3494 for ac_option in --version -v -V -qversion; do
3495 { { ac_try="$ac_compiler $ac_option >&5"
3497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3498 *) ac_try_echo
=$ac_try;;
3500 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3504 if test -s conftest.err
; then
3506 ... rest of stderr output deleted ...
3507 10q' conftest.err
>conftest.er1
3508 cat conftest.er1
>&5
3510 rm -f conftest.er1 conftest.err
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3516 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3517 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3518 $as_echo_n "(cached) " >&6
3520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3534 if ac_fn_cxx_try_compile
"$LINENO"; then :
3539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3540 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3544 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3545 if test $ac_compiler_gnu = yes; then
3550 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3551 ac_save_CXXFLAGS
=$CXXFLAGS
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3553 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3554 if ${ac_cv_prog_cxx_g+:} false
; then :
3555 $as_echo_n "(cached) " >&6
3557 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3558 ac_cxx_werror_flag
=yes
3561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3572 if ac_fn_cxx_try_compile
"$LINENO"; then :
3573 ac_cv_prog_cxx_g
=yes
3576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3587 if ac_fn_cxx_try_compile
"$LINENO"; then :
3590 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3603 if ac_fn_cxx_try_compile
"$LINENO"; then :
3604 ac_cv_prog_cxx_g
=yes
3606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3611 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3614 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3615 if test "$ac_test_CXXFLAGS" = set; then
3616 CXXFLAGS
=$ac_save_CXXFLAGS
3617 elif test $ac_cv_prog_cxx_g = yes; then
3618 if test "$GXX" = yes; then
3624 if test "$GXX" = yes; then
3631 ac_cpp
='$CPP $CPPFLAGS'
3632 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3638 ac_cpp
='$CPP $CPPFLAGS'
3639 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3643 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3644 # On Suns, sometimes $CPP names a directory.
3645 if test -n "$CPP" && test -d "$CPP"; then
3648 if test -z "$CPP"; then
3649 if ${ac_cv_prog_CPP+:} false
; then :
3650 $as_echo_n "(cached) " >&6
3652 # Double quotes because CPP needs to be expanded
3653 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3656 for ac_c_preproc_warn_flag
in '' yes
3658 # Use a header file that comes with gcc, so configuring glibc
3659 # with a fresh cross-compiler works.
3660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3661 # <limits.h> exists even on freestanding compilers.
3662 # On the NeXT, cc -E runs the code through the compiler's parser,
3663 # not just through cpp. "Syntax error" is here to catch this case.
3664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3667 # include <limits.h>
3669 # include <assert.h>
3673 if ac_fn_c_try_cpp
"$LINENO"; then :
3676 # Broken: fails on valid input.
3679 rm -f conftest.err conftest.i conftest.
$ac_ext
3681 # OK, works on sane cases. Now check whether nonexistent headers
3682 # can be detected and how.
3683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685 #include <ac_nonexistent.h>
3687 if ac_fn_c_try_cpp
"$LINENO"; then :
3688 # Broken: success on invalid input.
3691 # Passes both tests.
3695 rm -f conftest.err conftest.i conftest.
$ac_ext
3698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3699 rm -f conftest.i conftest.err conftest.
$ac_ext
3700 if $ac_preproc_ok; then :
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3713 $as_echo "$CPP" >&6; }
3715 for ac_c_preproc_warn_flag
in '' yes
3717 # Use a header file that comes with gcc, so configuring glibc
3718 # with a fresh cross-compiler works.
3719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3720 # <limits.h> exists even on freestanding compilers.
3721 # On the NeXT, cc -E runs the code through the compiler's parser,
3722 # not just through cpp. "Syntax error" is here to catch this case.
3723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3726 # include <limits.h>
3728 # include <assert.h>
3732 if ac_fn_c_try_cpp
"$LINENO"; then :
3735 # Broken: fails on valid input.
3738 rm -f conftest.err conftest.i conftest.
$ac_ext
3740 # OK, works on sane cases. Now check whether nonexistent headers
3741 # can be detected and how.
3742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744 #include <ac_nonexistent.h>
3746 if ac_fn_c_try_cpp
"$LINENO"; then :
3747 # Broken: success on invalid input.
3750 # Passes both tests.
3754 rm -f conftest.err conftest.i conftest.
$ac_ext
3757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3758 rm -f conftest.i conftest.err conftest.
$ac_ext
3759 if $ac_preproc_ok; then :
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3765 See \`config.log' for more details" "$LINENO" 5; }
3769 ac_cpp
='$CPP $CPPFLAGS'
3770 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3776 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3777 if ${ac_cv_path_GREP+:} false
; then :
3778 $as_echo_n "(cached) " >&6
3780 if test -z "$GREP"; then
3781 ac_path_GREP_found
=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3784 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3787 test -z "$as_dir" && as_dir
=.
3788 for ac_prog
in grep ggrep
; do
3789 for ac_exec_ext
in '' $ac_executable_extensions; do
3790 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3791 as_fn_executable_p
"$ac_path_GREP" ||
continue
3792 # Check for GNU ac_path_GREP and select it if it is found.
3793 # Check for GNU $ac_path_GREP
3794 case `"$ac_path_GREP" --version 2>&1` in
3796 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3799 $as_echo_n 0123456789 >"conftest.in"
3802 cat "conftest.in" "conftest.in" >"conftest.tmp"
3803 mv "conftest.tmp" "conftest.in"
3804 cp "conftest.in" "conftest.nl"
3805 $as_echo 'GREP' >> "conftest.nl"
3806 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3807 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3808 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3809 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_GREP
="$ac_path_GREP"
3812 ac_path_GREP_max
=$ac_count
3814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3817 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3820 $ac_path_GREP_found && break 3
3825 if test -z "$ac_cv_path_GREP"; then
3826 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3829 ac_cv_path_GREP
=$GREP
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3834 $as_echo "$ac_cv_path_GREP" >&6; }
3835 GREP
="$ac_cv_path_GREP"
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3839 $as_echo_n "checking for egrep... " >&6; }
3840 if ${ac_cv_path_EGREP+:} false
; then :
3841 $as_echo_n "(cached) " >&6
3843 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3844 then ac_cv_path_EGREP
="$GREP -E"
3846 if test -z "$EGREP"; then
3847 ac_path_EGREP_found
=false
3848 # Loop through the user's path and test for each of PROGNAME-LIST
3849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3850 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3853 test -z "$as_dir" && as_dir
=.
3854 for ac_prog
in egrep; do
3855 for ac_exec_ext
in '' $ac_executable_extensions; do
3856 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3857 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3858 # Check for GNU ac_path_EGREP and select it if it is found.
3859 # Check for GNU $ac_path_EGREP
3860 case `"$ac_path_EGREP" --version 2>&1` in
3862 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3865 $as_echo_n 0123456789 >"conftest.in"
3868 cat "conftest.in" "conftest.in" >"conftest.tmp"
3869 mv "conftest.tmp" "conftest.in"
3870 cp "conftest.in" "conftest.nl"
3871 $as_echo 'EGREP' >> "conftest.nl"
3872 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3873 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3874 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3875 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3876 # Best one so far, save it but keep looking for a better one
3877 ac_cv_path_EGREP
="$ac_path_EGREP"
3878 ac_path_EGREP_max
=$ac_count
3880 # 10*(2^10) chars as input seems more than enough
3881 test $ac_count -gt 10 && break
3883 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3886 $ac_path_EGREP_found && break 3
3891 if test -z "$ac_cv_path_EGREP"; then
3892 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3895 ac_cv_path_EGREP
=$EGREP
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3901 $as_echo "$ac_cv_path_EGREP" >&6; }
3902 EGREP
="$ac_cv_path_EGREP"
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3906 $as_echo_n "checking for ANSI C header files... " >&6; }
3907 if ${ac_cv_header_stdc+:} false
; then :
3908 $as_echo_n "(cached) " >&6
3910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3925 if ac_fn_c_try_compile
"$LINENO"; then :
3926 ac_cv_header_stdc
=yes
3928 ac_cv_header_stdc
=no
3930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3932 if test $ac_cv_header_stdc = yes; then
3933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 $EGREP "memchr" >/dev
/null
2>&1; then :
3943 ac_cv_header_stdc
=no
3949 if test $ac_cv_header_stdc = yes; then
3950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "free" >/dev
/null
2>&1; then :
3960 ac_cv_header_stdc
=no
3966 if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3968 if test "$cross_compiling" = yes; then :
3971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3975 #if ((' ' & 0x0FF) == 0x020)
3976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3979 # define ISLOWER(c) \
3980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
3983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
3993 || toupper (i) != TOUPPER (i))
3998 if ac_fn_c_try_run
"$LINENO"; then :
4001 ac_cv_header_stdc
=no
4003 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4004 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4010 $as_echo "$ac_cv_header_stdc" >&6; }
4011 if test $ac_cv_header_stdc = yes; then
4013 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4017 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4018 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4019 inttypes.h stdint.h unistd.h
4021 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4022 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4024 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4025 cat >>confdefs.h
<<_ACEOF
4026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4035 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4036 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4043 if test "$MINIX" = yes; then
4045 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4048 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4051 $as_echo "#define _MINIX 1" >>confdefs.h
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4057 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4058 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4059 $as_echo_n "(cached) " >&6
4061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4064 # define __EXTENSIONS__ 1
4065 $ac_includes_default
4074 if ac_fn_c_try_compile
"$LINENO"; then :
4075 ac_cv_safe_to_define___extensions__
=yes
4077 ac_cv_safe_to_define___extensions__
=no
4079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4082 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4083 test $ac_cv_safe_to_define___extensions__ = yes &&
4084 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4086 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4088 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4090 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4092 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4096 # Check whether --enable-largefile was given.
4097 if test "${enable_largefile+set}" = set; then :
4098 enableval
=$enable_largefile;
4101 if test "$enable_largefile" != no
; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4104 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4105 if ${ac_cv_sys_largefile_CC+:} false
; then :
4106 $as_echo_n "(cached) " >&6
4108 ac_cv_sys_largefile_CC
=no
4109 if test "$GCC" != yes; then
4112 # IRIX 6.2 and later do not support large files by default,
4113 # so use the C compiler's -n32 option if that helps.
4114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 #include <sys/types.h>
4117 /* Check that off_t can represent 2**63 - 1 correctly.
4118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4119 since some C++ compilers masquerading as C compilers
4120 incorrectly reject 9223372036854775807. */
4121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4123 && LARGE_OFF_T % 2147483647 == 1)
4133 if ac_fn_c_try_compile
"$LINENO"; then :
4136 rm -f core conftest.err conftest.
$ac_objext
4138 if ac_fn_c_try_compile
"$LINENO"; then :
4139 ac_cv_sys_largefile_CC
=' -n32'; break
4141 rm -f core conftest.err conftest.
$ac_objext
4145 rm -f conftest.
$ac_ext
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4149 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4150 if test "$ac_cv_sys_largefile_CC" != no
; then
4151 CC
=$CC$ac_cv_sys_largefile_CC
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4155 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4156 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4157 $as_echo_n "(cached) " >&6
4160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 #include <sys/types.h>
4163 /* Check that off_t can represent 2**63 - 1 correctly.
4164 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4165 since some C++ compilers masquerading as C compilers
4166 incorrectly reject 9223372036854775807. */
4167 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4168 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4169 && LARGE_OFF_T % 2147483647 == 1)
4179 if ac_fn_c_try_compile
"$LINENO"; then :
4180 ac_cv_sys_file_offset_bits
=no
; break
4182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #define _FILE_OFFSET_BITS 64
4186 #include <sys/types.h>
4187 /* Check that off_t can represent 2**63 - 1 correctly.
4188 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4189 since some C++ compilers masquerading as C compilers
4190 incorrectly reject 9223372036854775807. */
4191 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4192 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4193 && LARGE_OFF_T % 2147483647 == 1)
4203 if ac_fn_c_try_compile
"$LINENO"; then :
4204 ac_cv_sys_file_offset_bits
=64; break
4206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4207 ac_cv_sys_file_offset_bits
=unknown
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4212 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4213 case $ac_cv_sys_file_offset_bits in #(
4216 cat >>confdefs.h
<<_ACEOF
4217 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4222 if test $ac_cv_sys_file_offset_bits = unknown
; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4224 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4225 if ${ac_cv_sys_large_files+:} false
; then :
4226 $as_echo_n "(cached) " >&6
4229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 #include <sys/types.h>
4232 /* Check that off_t can represent 2**63 - 1 correctly.
4233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4234 since some C++ compilers masquerading as C compilers
4235 incorrectly reject 9223372036854775807. */
4236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4238 && LARGE_OFF_T % 2147483647 == 1)
4248 if ac_fn_c_try_compile
"$LINENO"; then :
4249 ac_cv_sys_large_files
=no
; break
4251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #define _LARGE_FILES 1
4255 #include <sys/types.h>
4256 /* Check that off_t can represent 2**63 - 1 correctly.
4257 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4258 since some C++ compilers masquerading as C compilers
4259 incorrectly reject 9223372036854775807. */
4260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4261 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4262 && LARGE_OFF_T % 2147483647 == 1)
4272 if ac_fn_c_try_compile
"$LINENO"; then :
4273 ac_cv_sys_large_files
=1; break
4275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4276 ac_cv_sys_large_files
=unknown
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4281 $as_echo "$ac_cv_sys_large_files" >&6; }
4282 case $ac_cv_sys_large_files in #(
4285 cat >>confdefs.h
<<_ACEOF
4286 #define _LARGE_FILES $ac_cv_sys_large_files
4298 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4299 if test -f "$ac_dir/install-sh"; then
4301 ac_install_sh
="$ac_aux_dir/install-sh -c"
4303 elif test -f "$ac_dir/install.sh"; then
4305 ac_install_sh
="$ac_aux_dir/install.sh -c"
4307 elif test -f "$ac_dir/shtool"; then
4309 ac_install_sh
="$ac_aux_dir/shtool install -c"
4313 if test -z "$ac_aux_dir"; then
4314 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4317 # These three variables are undocumented and unsupported,
4318 # and are intended to be withdrawn in a future Autoconf release.
4319 # They can cause serious problems if a builder's source tree is in a directory
4320 # whose full name contains unusual characters.
4321 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4322 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4323 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4326 # Make sure we can run config.sub.
4327 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4328 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4331 $as_echo_n "checking build system type... " >&6; }
4332 if ${ac_cv_build+:} false
; then :
4333 $as_echo_n "(cached) " >&6
4335 ac_build_alias
=$build_alias
4336 test "x$ac_build_alias" = x
&&
4337 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4338 test "x$ac_build_alias" = x
&&
4339 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4340 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4341 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4345 $as_echo "$ac_cv_build" >&6; }
4346 case $ac_cv_build in
4348 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4351 ac_save_IFS
=$IFS; IFS
='-'
4357 # Remember, the first character of IFS is used to create $*,
4358 # except with old shells:
4361 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4365 $as_echo_n "checking host system type... " >&6; }
4366 if ${ac_cv_host+:} false
; then :
4367 $as_echo_n "(cached) " >&6
4369 if test "x$host_alias" = x
; then
4370 ac_cv_host
=$ac_cv_build
4372 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4373 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4378 $as_echo "$ac_cv_host" >&6; }
4381 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4384 ac_save_IFS
=$IFS; IFS
='-'
4390 # Remember, the first character of IFS is used to create $*,
4391 # except with old shells:
4394 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4398 $as_echo_n "checking target system type... " >&6; }
4399 if ${ac_cv_target+:} false
; then :
4400 $as_echo_n "(cached) " >&6
4402 if test "x$target_alias" = x
; then
4403 ac_cv_target
=$ac_cv_host
4405 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4406 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4411 $as_echo "$ac_cv_target" >&6; }
4412 case $ac_cv_target in
4414 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4416 target
=$ac_cv_target
4417 ac_save_IFS
=$IFS; IFS
='-'
4423 # Remember, the first character of IFS is used to create $*,
4424 # except with old shells:
4427 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4430 # The aliases save the names the user supplied, while $host etc.
4431 # will get canonicalized.
4432 test -n "$target_alias" &&
4433 test "$program_prefix$program_suffix$program_transform_name" = \
4435 program_prefix
=${target_alias}-
4438 # Find a good install program. We prefer a C program (faster),
4439 # so one script is as good as another. But avoid the broken or
4440 # incompatible versions:
4441 # SysV /etc/install, /usr/sbin/install
4442 # SunOS /usr/etc/install
4443 # IRIX /sbin/install
4445 # AmigaOS /C/install, which installs bootblocks on floppy discs
4446 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4447 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4448 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4449 # OS/2's system install, which has a completely different semantic
4450 # ./install, which can be erroneously created by make from ./install.sh.
4451 # Reject install programs that cannot install multiple files.
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4453 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4454 if test -z "$INSTALL"; then
4455 if ${ac_cv_path_install+:} false
; then :
4456 $as_echo_n "(cached) " >&6
4458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4462 test -z "$as_dir" && as_dir
=.
4463 # Account for people who put trailing slashes in PATH elements.
4464 case $as_dir/ in #((
4465 .
/ | .
// |
/[cC
]/* | \
4466 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4467 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4470 # OSF1 and SCO ODT 3.0 have their own names for install.
4471 # Don't use installbsd from OSF since it installs stuff as root
4473 for ac_prog
in ginstall scoinst
install; do
4474 for ac_exec_ext
in '' $ac_executable_extensions; do
4475 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4476 if test $ac_prog = install &&
4477 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4478 # AIX install. It has an incompatible calling convention.
4480 elif test $ac_prog = install &&
4481 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4482 # program-specific install script used by HP pwplus--don't use.
4485 rm -rf conftest.one conftest.two conftest.dir
4486 echo one
> conftest.one
4487 echo two
> conftest.two
4489 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4490 test -s conftest.one
&& test -s conftest.two
&&
4491 test -s conftest.dir
/conftest.one
&&
4492 test -s conftest.dir
/conftest.two
4494 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4507 rm -rf conftest.one conftest.two conftest.dir
4510 if test "${ac_cv_path_install+set}" = set; then
4511 INSTALL
=$ac_cv_path_install
4513 # As a last resort, use the slow shell script. Don't cache a
4514 # value for INSTALL within a source directory, because that will
4515 # break other packages using the cache if that directory is
4516 # removed, or if the value is a relative name.
4517 INSTALL
=$ac_install_sh
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4521 $as_echo "$INSTALL" >&6; }
4523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4524 # It thinks the first close brace ends the variable substitution.
4525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4527 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4529 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4531 if test -n "$ac_tool_prefix"; then
4532 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4533 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_prog_AR+:} false
; then :
4537 $as_echo_n "(cached) " >&6
4539 if test -n "$AR"; then
4540 ac_cv_prog_AR
="$AR" # Let the user override the test.
4542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4546 test -z "$as_dir" && as_dir
=.
4547 for ac_exec_ext
in '' $ac_executable_extensions; do
4548 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 if test -n "$AR"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4562 $as_echo "$AR" >&6; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4570 if test -z "$ac_cv_prog_AR"; then
4572 # Extract the first word of "ar", so it can be a program name with args.
4573 set dummy
ar; ac_word
=$2
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575 $as_echo_n "checking for $ac_word... " >&6; }
4576 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4577 $as_echo_n "(cached) " >&6
4579 if test -n "$ac_ct_AR"; then
4580 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4586 test -z "$as_dir" && as_dir
=.
4587 for ac_exec_ext
in '' $ac_executable_extensions; do
4588 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4589 ac_cv_prog_ac_ct_AR
="ar"
4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4600 if test -n "$ac_ct_AR"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4602 $as_echo "$ac_ct_AR" >&6; }
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4608 if test "x$ac_ct_AR" = x
; then
4611 case $cross_compiling:$ac_tool_warned in
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4615 ac_tool_warned
=yes ;;
4623 if test -n "$ac_tool_prefix"; then
4624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4625 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if ${ac_cv_prog_RANLIB+:} false
; then :
4629 $as_echo_n "(cached) " >&6
4631 if test -n "$RANLIB"; then
4632 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4638 test -z "$as_dir" && as_dir
=.
4639 for ac_exec_ext
in '' $ac_executable_extensions; do
4640 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 RANLIB
=$ac_cv_prog_RANLIB
4652 if test -n "$RANLIB"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4654 $as_echo "$RANLIB" >&6; }
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4662 if test -z "$ac_cv_prog_RANLIB"; then
4663 ac_ct_RANLIB
=$RANLIB
4664 # Extract the first word of "ranlib", so it can be a program name with args.
4665 set dummy ranlib
; ac_word
=$2
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4669 $as_echo_n "(cached) " >&6
4671 if test -n "$ac_ct_RANLIB"; then
4672 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir
=.
4679 for ac_exec_ext
in '' $ac_executable_extensions; do
4680 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4692 if test -n "$ac_ct_RANLIB"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4694 $as_echo "$ac_ct_RANLIB" >&6; }
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4700 if test "x$ac_ct_RANLIB" = x
; then
4703 case $cross_compiling:$ac_tool_warned in
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4707 ac_tool_warned
=yes ;;
4709 RANLIB
=$ac_ct_RANLIB
4712 RANLIB
="$ac_cv_prog_RANLIB"
4716 test "$program_prefix" != NONE
&&
4717 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4718 # Use a double $ so make ignores it.
4719 test "$program_suffix" != NONE
&&
4720 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4721 # Double any \ or $.
4722 # By default was `s,x,x', remove it if useless.
4723 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4724 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4727 # We require a C++11 compiler. Check if one is available, and if
4728 # necessary, set CXX_DIALECT to some -std=xxx switch.
4730 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
4732 ac_cpp
='$CXXCPP $CPPFLAGS'
4733 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4739 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4740 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
4741 $as_echo_n "(cached) " >&6
4743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4747 // If the compiler admits that it is not ready for C++11, why torture it?
4748 // Hopefully, this will speed up the test.
4752 #error "This is not a C++ compiler"
4754 #elif __cplusplus < 201103L
4756 #error "This is not a C++11 compiler"
4763 namespace test_static_assert
4766 template <typename T>
4769 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4774 namespace test_final_override
4782 struct Derived : public Base
4784 virtual void f() override {}
4789 namespace test_double_right_angle_brackets
4792 template < typename T >
4795 typedef check<void> single_type;
4796 typedef check<check<void>> double_type;
4797 typedef check<check<check<void>>> triple_type;
4798 typedef check<check<check<check<void>>>> quadruple_type;
4802 namespace test_decltype
4815 namespace test_type_deduction
4818 template < typename T1, typename T2 >
4821 static const bool value = false;
4824 template < typename T >
4825 struct is_same<T, T>
4827 static const bool value = true;
4830 template < typename T1, typename T2 >
4832 add(T1 a1, T2 a2) -> decltype(a1 + a2)
4838 test(const int c, volatile int v)
4840 static_assert(is_same<int, decltype(0)>::value == true, "");
4841 static_assert(is_same<int, decltype(c)>::value == false, "");
4842 static_assert(is_same<int, decltype(v)>::value == false, "");
4845 auto sumi = ac + av + 'x';
4846 auto sumf = ac + av + 1.0;
4847 static_assert(is_same<int, decltype(ac)>::value == true, "");
4848 static_assert(is_same<int, decltype(av)>::value == true, "");
4849 static_assert(is_same<int, decltype(sumi)>::value == true, "");
4850 static_assert(is_same<int, decltype(sumf)>::value == false, "");
4851 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4852 return (sumf > 0.0) ? sumi : add(c, v);
4857 namespace test_noexcept
4860 int f() { return 0; }
4861 int g() noexcept { return 0; }
4863 static_assert(noexcept(f()) == false, "");
4864 static_assert(noexcept(g()) == true, "");
4868 namespace test_constexpr
4871 template < typename CharT >
4872 unsigned long constexpr
4873 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
4875 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
4878 template < typename CharT >
4879 unsigned long constexpr
4880 strlen_c(const CharT *const s) noexcept
4882 return strlen_c_r(s, 0UL);
4885 static_assert(strlen_c("") == 0UL, "");
4886 static_assert(strlen_c("1") == 1UL, "");
4887 static_assert(strlen_c("example") == 7UL, "");
4888 static_assert(strlen_c("another\0example") == 7UL, "");
4892 namespace test_rvalue_references
4898 static constexpr int value = N;
4901 answer<1> f(int&) { return answer<1>(); }
4902 answer<2> f(const int&) { return answer<2>(); }
4903 answer<3> f(int&&) { return answer<3>(); }
4910 static_assert(decltype(f(i))::value == 1, "");
4911 static_assert(decltype(f(c))::value == 2, "");
4912 static_assert(decltype(f(0))::value == 3, "");
4917 namespace test_uniform_initialization
4922 static const int zero {};
4923 static const int one {1};
4926 static_assert(test::zero == 0, "");
4927 static_assert(test::one == 1, "");
4931 namespace test_lambdas
4937 auto lambda1 = [](){};
4938 auto lambda2 = lambda1;
4946 auto a = [](int i, int j){ return i + j; }(1, 2);
4947 auto b = []() -> int { return '0'; }();
4948 auto c = [=](){ return a + b; }();
4949 auto d = [&](){ return c; }();
4950 auto e = [a, &b](int x) mutable {
4951 const auto identity = [](int y){ return y; };
4952 for (auto i = 0; i < a; ++i)
4954 return x + identity(a + b);
4956 return a + b + c + d + e;
4962 const auto nullary = [](){ return 0; };
4963 const auto unary = [](int x){ return x; };
4964 using nullary_t = decltype(nullary);
4965 using unary_t = decltype(unary);
4966 const auto higher1st = [](nullary_t f){ return f(); };
4967 const auto higher2nd = [unary](nullary_t f1){
4968 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
4970 return higher1st(nullary) + higher2nd(nullary)(unary);
4975 namespace test_variadic_templates
4981 template <int N0, int... N1toN>
4982 struct sum<N0, N1toN...>
4984 static constexpr auto value = N0 + sum<N1toN...>::value;
4990 static constexpr auto value = 0;
4993 static_assert(sum<>::value == 0, "");
4994 static_assert(sum<1>::value == 1, "");
4995 static_assert(sum<23>::value == 23, "");
4996 static_assert(sum<1, 2>::value == 3, "");
4997 static_assert(sum<5, 5, 11>::value == 21, "");
4998 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5002 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5003 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5005 namespace test_template_alias_sfinae
5010 template<typename T>
5011 using member = typename T::member_type;
5013 template<typename T>
5016 template<typename T>
5017 void func(member<T>*) {}
5021 void test() { func<foo>(0); }
5025 } // namespace cxx11
5027 #endif // __cplusplus >= 201103L
5032 if ac_fn_cxx_try_compile
"$LINENO"; then :
5033 ax_cv_cxx_compile_cxx11
=yes
5035 ax_cv_cxx_compile_cxx11
=no
5037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5040 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5041 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5045 if test x
$ac_success = xno
; then
5046 for alternative
in ${ax_cxx_compile_alternatives}; do
5047 switch
="-std=gnu++${alternative}"
5048 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5050 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5051 if eval \
${$cachevar+:} false
; then :
5052 $as_echo_n "(cached) " >&6
5056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5060 // If the compiler admits that it is not ready for C++11, why torture it?
5061 // Hopefully, this will speed up the test.
5065 #error "This is not a C++ compiler"
5067 #elif __cplusplus < 201103L
5069 #error "This is not a C++11 compiler"
5076 namespace test_static_assert
5079 template <typename T>
5082 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5087 namespace test_final_override
5095 struct Derived : public Base
5097 virtual void f() override {}
5102 namespace test_double_right_angle_brackets
5105 template < typename T >
5108 typedef check<void> single_type;
5109 typedef check<check<void>> double_type;
5110 typedef check<check<check<void>>> triple_type;
5111 typedef check<check<check<check<void>>>> quadruple_type;
5115 namespace test_decltype
5128 namespace test_type_deduction
5131 template < typename T1, typename T2 >
5134 static const bool value = false;
5137 template < typename T >
5138 struct is_same<T, T>
5140 static const bool value = true;
5143 template < typename T1, typename T2 >
5145 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5151 test(const int c, volatile int v)
5153 static_assert(is_same<int, decltype(0)>::value == true, "");
5154 static_assert(is_same<int, decltype(c)>::value == false, "");
5155 static_assert(is_same<int, decltype(v)>::value == false, "");
5158 auto sumi = ac + av + 'x';
5159 auto sumf = ac + av + 1.0;
5160 static_assert(is_same<int, decltype(ac)>::value == true, "");
5161 static_assert(is_same<int, decltype(av)>::value == true, "");
5162 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5163 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5164 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5165 return (sumf > 0.0) ? sumi : add(c, v);
5170 namespace test_noexcept
5173 int f() { return 0; }
5174 int g() noexcept { return 0; }
5176 static_assert(noexcept(f()) == false, "");
5177 static_assert(noexcept(g()) == true, "");
5181 namespace test_constexpr
5184 template < typename CharT >
5185 unsigned long constexpr
5186 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5188 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5191 template < typename CharT >
5192 unsigned long constexpr
5193 strlen_c(const CharT *const s) noexcept
5195 return strlen_c_r(s, 0UL);
5198 static_assert(strlen_c("") == 0UL, "");
5199 static_assert(strlen_c("1") == 1UL, "");
5200 static_assert(strlen_c("example") == 7UL, "");
5201 static_assert(strlen_c("another\0example") == 7UL, "");
5205 namespace test_rvalue_references
5211 static constexpr int value = N;
5214 answer<1> f(int&) { return answer<1>(); }
5215 answer<2> f(const int&) { return answer<2>(); }
5216 answer<3> f(int&&) { return answer<3>(); }
5223 static_assert(decltype(f(i))::value == 1, "");
5224 static_assert(decltype(f(c))::value == 2, "");
5225 static_assert(decltype(f(0))::value == 3, "");
5230 namespace test_uniform_initialization
5235 static const int zero {};
5236 static const int one {1};
5239 static_assert(test::zero == 0, "");
5240 static_assert(test::one == 1, "");
5244 namespace test_lambdas
5250 auto lambda1 = [](){};
5251 auto lambda2 = lambda1;
5259 auto a = [](int i, int j){ return i + j; }(1, 2);
5260 auto b = []() -> int { return '0'; }();
5261 auto c = [=](){ return a + b; }();
5262 auto d = [&](){ return c; }();
5263 auto e = [a, &b](int x) mutable {
5264 const auto identity = [](int y){ return y; };
5265 for (auto i = 0; i < a; ++i)
5267 return x + identity(a + b);
5269 return a + b + c + d + e;
5275 const auto nullary = [](){ return 0; };
5276 const auto unary = [](int x){ return x; };
5277 using nullary_t = decltype(nullary);
5278 using unary_t = decltype(unary);
5279 const auto higher1st = [](nullary_t f){ return f(); };
5280 const auto higher2nd = [unary](nullary_t f1){
5281 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5283 return higher1st(nullary) + higher2nd(nullary)(unary);
5288 namespace test_variadic_templates
5294 template <int N0, int... N1toN>
5295 struct sum<N0, N1toN...>
5297 static constexpr auto value = N0 + sum<N1toN...>::value;
5303 static constexpr auto value = 0;
5306 static_assert(sum<>::value == 0, "");
5307 static_assert(sum<1>::value == 1, "");
5308 static_assert(sum<23>::value == 23, "");
5309 static_assert(sum<1, 2>::value == 3, "");
5310 static_assert(sum<5, 5, 11>::value == 21, "");
5311 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5315 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5316 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5318 namespace test_template_alias_sfinae
5323 template<typename T>
5324 using member = typename T::member_type;
5326 template<typename T>
5329 template<typename T>
5330 void func(member<T>*) {}
5334 void test() { func<foo>(0); }
5338 } // namespace cxx11
5340 #endif // __cplusplus >= 201103L
5345 if ac_fn_cxx_try_compile
"$LINENO"; then :
5350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5353 eval ac_res
=\$
$cachevar
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5355 $as_echo "$ac_res" >&6; }
5356 if eval test x\$
$cachevar = xyes
; then
5357 CXX_DIALECT
="$switch"
5364 if test x
$ac_success = xno
; then
5365 for alternative
in ${ax_cxx_compile_alternatives}; do
5366 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5367 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5369 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5370 if eval \${$cachevar+:} false; then :
5371 $as_echo_n "(cached
) " >&6
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5379 // If the compiler admits that it is not ready for C++11, why torture it?
5380 // Hopefully, this will speed up the test.
5384 #error "This is not a C
++ compiler
"
5386 #elif __cplusplus < 201103L
5388 #error "This is not a C
++11 compiler
"
5395 namespace test_static_assert
5398 template <typename T>
5401 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5406 namespace test_final_override
5414 struct Derived : public Base
5416 virtual void f() override {}
5421 namespace test_double_right_angle_brackets
5424 template < typename T >
5427 typedef check<void> single_type;
5428 typedef check<check<void>> double_type;
5429 typedef check<check<check<void>>> triple_type;
5430 typedef check<check<check<check<void>>>> quadruple_type;
5434 namespace test_decltype
5447 namespace test_type_deduction
5450 template < typename T1, typename T2 >
5453 static const bool value = false;
5456 template < typename T >
5457 struct is_same<T, T>
5459 static const bool value = true;
5462 template < typename T1, typename T2 >
5464 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5470 test(const int c, volatile int v)
5472 static_assert(is_same<int, decltype(0)>::value == true, "");
5473 static_assert(is_same<int, decltype(c)>::value == false, "");
5474 static_assert(is_same<int, decltype(v)>::value == false, "");
5477 auto sumi = ac + av + 'x';
5478 auto sumf = ac + av + 1.0;
5479 static_assert(is_same<int, decltype(ac)>::value == true, "");
5480 static_assert(is_same<int, decltype(av)>::value == true, "");
5481 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5482 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5483 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5484 return (sumf > 0.0) ? sumi : add(c, v);
5489 namespace test_noexcept
5492 int f() { return 0; }
5493 int g() noexcept { return 0; }
5495 static_assert(noexcept(f()) == false, "");
5496 static_assert(noexcept(g()) == true, "");
5500 namespace test_constexpr
5503 template < typename CharT >
5504 unsigned long constexpr
5505 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5507 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5510 template < typename CharT >
5511 unsigned long constexpr
5512 strlen_c(const CharT *const s) noexcept
5514 return strlen_c_r(s, 0UL);
5517 static_assert(strlen_c("") == 0UL, "");
5518 static_assert(strlen_c("1") == 1UL, "");
5519 static_assert(strlen_c("example
") == 7UL, "");
5520 static_assert(strlen_c("another\
0example
") == 7UL, "");
5524 namespace test_rvalue_references
5530 static constexpr int value = N;
5533 answer<1> f(int&) { return answer<1>(); }
5534 answer<2> f(const int&) { return answer<2>(); }
5535 answer<3> f(int&&) { return answer<3>(); }
5542 static_assert(decltype(f(i))::value == 1, "");
5543 static_assert(decltype(f(c))::value == 2, "");
5544 static_assert(decltype(f(0))::value == 3, "");
5549 namespace test_uniform_initialization
5554 static const int zero {};
5555 static const int one {1};
5558 static_assert(test::zero == 0, "");
5559 static_assert(test::one == 1, "");
5563 namespace test_lambdas
5569 auto lambda1 = [](){};
5570 auto lambda2 = lambda1;
5578 auto a = [](int i, int j){ return i + j; }(1, 2);
5579 auto b = []() -> int { return '0'; }();
5580 auto c = [=](){ return a + b; }();
5581 auto d = [&](){ return c; }();
5582 auto e = [a, &b](int x) mutable {
5583 const auto identity = [](int y){ return y; };
5584 for (auto i = 0; i < a; ++i)
5586 return x + identity(a + b);
5588 return a + b + c + d + e;
5594 const auto nullary = [](){ return 0; };
5595 const auto unary = [](int x){ return x; };
5596 using nullary_t = decltype(nullary);
5597 using unary_t = decltype(unary);
5598 const auto higher1st = [](nullary_t f){ return f(); };
5599 const auto higher2nd = [unary](nullary_t f1){
5600 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5602 return higher1st(nullary) + higher2nd(nullary)(unary);
5607 namespace test_variadic_templates
5613 template <int N0, int... N1toN>
5614 struct sum<N0, N1toN...>
5616 static constexpr auto value = N0 + sum<N1toN...>::value;
5622 static constexpr auto value = 0;
5625 static_assert(sum<>::value == 0, "");
5626 static_assert(sum<1>::value == 1, "");
5627 static_assert(sum<23>::value == 23, "");
5628 static_assert(sum<1, 2>::value == 3, "");
5629 static_assert(sum<5, 5, 11>::value == 21, "");
5630 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5634 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5635 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5637 namespace test_template_alias_sfinae
5642 template<typename T>
5643 using member = typename T::member_type;
5645 template<typename T>
5648 template<typename T>
5649 void func(member<T>*) {}
5653 void test() { func<foo>(0); }
5657 } // namespace cxx11
5659 #endif // __cplusplus >= 201103L
5664 if ac_fn_cxx_try_compile "$LINENO"; then :
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 eval ac_res=\$$cachevar
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5674 $as_echo "$ac_res" >&6; }
5675 if eval test x\$$cachevar = xyes; then
5676 CXX_DIALECT="$switch"
5681 if test x$ac_success = xyes; then
5687 ac_cpp='$CPP $CPPFLAGS'
5688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5692 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5693 if test x$ac_success = xno; then
5694 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
5697 if test x$ac_success = xno; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
5700 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
5704 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5712 $as_echo_n "checking for ANSI C header files... " >&6; }
5713 if ${ac_cv_header_stdc+:} false
; then :
5714 $as_echo_n "(cached) " >&6
5716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5731 if ac_fn_c_try_compile
"$LINENO"; then :
5732 ac_cv_header_stdc
=yes
5734 ac_cv_header_stdc
=no
5736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5738 if test $ac_cv_header_stdc = yes; then
5739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5746 $EGREP "memchr" >/dev
/null
2>&1; then :
5749 ac_cv_header_stdc
=no
5755 if test $ac_cv_header_stdc = yes; then
5756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5763 $EGREP "free" >/dev
/null
2>&1; then :
5766 ac_cv_header_stdc
=no
5772 if test $ac_cv_header_stdc = yes; then
5773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5774 if test "$cross_compiling" = yes; then :
5777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5781 #if ((' ' & 0x0FF) == 0x020)
5782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5785 # define ISLOWER(c) \
5786 (('a' <= (c) && (c) <= 'i') \
5787 || ('j' <= (c) && (c) <= 'r') \
5788 || ('s' <= (c) && (c) <= 'z'))
5789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5797 for (i = 0; i < 256; i++)
5798 if (XOR (islower (i), ISLOWER (i))
5799 || toupper (i) != TOUPPER (i))
5804 if ac_fn_c_try_run
"$LINENO"; then :
5807 ac_cv_header_stdc
=no
5809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5810 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5816 $as_echo "$ac_cv_header_stdc" >&6; }
5817 if test $ac_cv_header_stdc = yes; then
5819 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5824 # Set the 'development' global.
5825 .
$srcdir/..
/..
/bfd
/development.sh
5827 # Enable -lmcheck by default (it provides cheap-enough memory
5828 # mangling), but turn it off for releases.
5829 if $development; then
5830 libmcheck_default
=yes
5832 libmcheck_default
=no
5835 # Check whether --enable-libmcheck was given.
5836 if test "${enable_libmcheck+set}" = set; then :
5837 enableval
=$enable_libmcheck; case "${enableval}" in
5838 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
5839 no | n
) ENABLE_LIBMCHECK
="no" ;;
5840 *) as_fn_error $?
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
5845 if test -z "${ENABLE_LIBMCHECK}"; then
5846 ENABLE_LIBMCHECK
=${libmcheck_default}
5849 if test "$ENABLE_LIBMCHECK" = "yes" ; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
5851 $as_echo_n "checking for main in -lmcheck... " >&6; }
5852 if ${ac_cv_lib_mcheck_main+:} false
; then :
5853 $as_echo_n "(cached) " >&6
5855 ac_check_lib_save_LIBS
=$LIBS
5856 LIBS
="-lmcheck $LIBS"
5857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5869 if ac_fn_c_try_link
"$LINENO"; then :
5870 ac_cv_lib_mcheck_main
=yes
5872 ac_cv_lib_mcheck_main
=no
5874 rm -f core conftest.err conftest.
$ac_objext \
5875 conftest
$ac_exeext conftest.
$ac_ext
5876 LIBS
=$ac_check_lib_save_LIBS
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
5879 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
5880 if test "x$ac_cv_lib_mcheck_main" = xyes
; then :
5881 cat >>confdefs.h
<<_ACEOF
5882 #define HAVE_LIBMCHECK 1
5885 LIBS
="-lmcheck $LIBS"
5892 if $development; then
5893 srv_selftest_objs
="common/selftest.o"
5895 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
5899 case ${build_alias} in
5900 "") build_noncanonical
=${build} ;;
5901 *) build_noncanonical
=${build_alias} ;;
5904 case ${host_alias} in
5905 "") host_noncanonical
=${build_noncanonical} ;;
5906 *) host_noncanonical
=${host_alias} ;;
5909 case ${target_alias} in
5910 "") target_noncanonical
=${host_noncanonical} ;;
5911 *) target_noncanonical
=${target_alias} ;;
5919 # Dependency checking.
5920 rm -rf .tst
2>/dev
/null
5921 mkdir .tst
2>/dev
/null
5922 if test -d .tst
; then
5927 rmdir .tst
2>/dev
/null
5929 DEPDIR
="${am__leading_dot}deps"
5931 ac_config_commands
="$ac_config_commands depdir"
5935 # Create sub-directories for objects and dependencies.
5936 CONFIG_SRC_SUBDIR
="arch common"
5939 ac_config_commands
="$ac_config_commands gdbdepdir"
5942 depcc
="$CC" am_compiler_list
=
5944 am_depcomp
=$ac_aux_dir/depcomp
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5946 $as_echo_n "checking dependency style of $depcc... " >&6; }
5947 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5948 $as_echo_n "(cached) " >&6
5950 if test -f "$am_depcomp"; then
5951 # We make a subdir and do the tests there. Otherwise we can end up
5952 # making bogus files that we don't know about and never remove. For
5953 # instance it was reported that on HP-UX the gcc test will end up
5954 # making a dummy file named `D' -- because `-MD' means `put the output
5957 # Copy depcomp to subdir because otherwise we won't find it if we're
5958 # using a relative directory.
5959 cp "$am_depcomp" conftest.dir
5961 # We will build objects and dependencies in a subdirectory because
5962 # it helps to detect inapplicable dependency modes. For instance
5963 # both Tru64's cc and ICC support -MD to output dependencies as a
5964 # side effect of compilation, but ICC will put the dependencies in
5965 # the current directory while Tru64 will put them in the object
5969 am_cv_CC_dependencies_compiler_type
=none
5970 if test "$am_compiler_list" = ""; then
5971 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5973 for depmode
in $am_compiler_list; do
5974 if test $depmode = none
; then break; fi
5976 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5977 # Setup a source with many dependencies, because some compilers
5978 # like to wrap large dependency lists on column 80 (with \), and
5979 # we should not choose a depcomp mode which is confused by this.
5981 # We need to recreate these files for each test, as the compiler may
5982 # overwrite some of them when testing with obscure command lines.
5983 # This happens at least with the AIX C compiler.
5985 for i
in 1 2 3 4 5 6; do
5986 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5988 # Solaris 8's {/usr,}/bin/sh.
5989 touch sub
/conftst
$i.h
5991 echo "include sub/conftest.Po" > confmf
5993 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5994 # mode. It turns out that the SunPro C++ compiler does not properly
5995 # handle `-M -o', and we need to detect this.
5996 depcmd
="depmode=$depmode \
5997 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5998 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5999 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6000 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6001 if env
$depcmd > conftest.err
2>&1 &&
6002 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6003 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6004 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6005 # icc doesn't choke on unknown options, it will just issue warnings
6006 # or remarks (even with -Werror). So we grep stderr for any message
6007 # that says an option was ignored or not supported.
6008 # When given -MP, icc 7.0 and 7.1 complain thusly:
6009 # icc: Command line warning: ignoring option '-M'; no argument required
6010 # The diagnosis changed in icc 8.0:
6011 # icc: Command line remark: option '-MP' not supported
6012 if (grep 'ignoring option' conftest.err ||
6013 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6014 am_cv_CC_dependencies_compiler_type
=$depmode
6015 $as_echo "$as_me:$LINENO: success" >&5
6019 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6020 sed -e 's/^/| /' < conftest.err
>&5
6026 am_cv_CC_dependencies_compiler_type
=none
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6031 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6032 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6033 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6034 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6039 gnulib_extra_configure_args
=
6040 # If large-file support is disabled, make sure gnulib does the same.
6041 if test "$enable_largefile" = no
; then
6042 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6045 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
6046 # to find the the source subdir to be configured directly under
6047 # gdbserver/. We need to build gnulib under some other directory not
6048 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
6049 # build it in the same directory, when building in the source dir.
6052 in_build
="build-gnulib-gdbserver"
6053 in_extra_args
="$gnulib_extra_configure_args"
6055 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6056 # so they do not pile up.
6057 ac_sub_configure_args
=
6059 eval "set x $ac_configure_args"
6063 if test -n "$ac_prev"; then
6068 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6069 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6070 ac_prev
=cache_file
;;
6071 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6072 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6075 --config-cache |
-C)
6077 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6079 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6081 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6083 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6085 --disable-option-checking)
6089 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6091 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6095 # Always prepend --prefix to ensure using the same prefix
6096 # in subdir configurations.
6097 ac_arg
="--prefix=$prefix"
6099 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6101 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6104 if test "$silent" = yes; then
6105 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6108 # Always prepend --disable-option-checking to silence warnings, since
6109 # different subdirs can have different --enable and --with options.
6110 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6115 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6117 $as_echo "$ac_msg" >&6
6118 as_dir
="$ac_dir"; as_fn_mkdir_p
6122 ac_srcdir
=$srcdir/$in_src ;;
6124 ac_srcdir
=..
/$srcdir/$in_src ;;
6129 ac_sub_configure
=$ac_srcdir/configure
6131 # Make the cache file name correct relative to the subdirectory.
6133 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6135 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6138 if test -n "$in_extra_args"; then
6139 # Add the extra args at the end.
6140 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6143 { $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
6144 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6145 # The eval makes quoting arguments work.
6146 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6147 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6148 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6154 in_src
="../../libiberty"
6155 in_build
="build-libiberty-gdbserver"
6158 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6159 # so they do not pile up.
6160 ac_sub_configure_args
=
6162 eval "set x $ac_configure_args"
6166 if test -n "$ac_prev"; then
6171 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6172 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6173 ac_prev
=cache_file
;;
6174 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6175 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6178 --config-cache |
-C)
6180 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6182 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6184 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6186 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6188 --disable-option-checking)
6192 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6194 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6198 # Always prepend --prefix to ensure using the same prefix
6199 # in subdir configurations.
6200 ac_arg
="--prefix=$prefix"
6202 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6204 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6207 if test "$silent" = yes; then
6208 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6211 # Always prepend --disable-option-checking to silence warnings, since
6212 # different subdirs can have different --enable and --with options.
6213 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6218 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6220 $as_echo "$ac_msg" >&6
6221 as_dir
="$ac_dir"; as_fn_mkdir_p
6225 ac_srcdir
=$srcdir/$in_src ;;
6227 ac_srcdir
=..
/$srcdir/$in_src ;;
6232 ac_sub_configure
=$ac_srcdir/configure
6234 # Make the cache file name correct relative to the subdirectory.
6236 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6238 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6241 if test -n "$in_extra_args"; then
6242 # Add the extra args at the end.
6243 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6246 { $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
6247 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6248 # The eval makes quoting arguments work.
6249 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6250 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6251 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6256 for ac_header
in 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
6258 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6259 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6260 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6261 cat >>confdefs.h
<<_ACEOF
6262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6269 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6270 if test "x$ac_cv_type_pid_t" = xyes
; then :
6274 cat >>confdefs.h
<<_ACEOF
6280 for ac_header
in vfork.h
6282 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6283 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6284 cat >>confdefs.h
<<_ACEOF
6285 #define HAVE_VFORK_H 1
6292 for ac_func
in fork vfork
6294 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6295 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6296 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6297 cat >>confdefs.h
<<_ACEOF
6298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6304 if test "x$ac_cv_func_fork" = xyes
; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6306 $as_echo_n "checking for working fork... " >&6; }
6307 if ${ac_cv_func_fork_works+:} false
; then :
6308 $as_echo_n "(cached) " >&6
6310 if test "$cross_compiling" = yes; then :
6311 ac_cv_func_fork_works
=cross
6313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 $ac_includes_default
6320 /* By Ruediger Kuhlmann. */
6327 if ac_fn_c_try_run
"$LINENO"; then :
6328 ac_cv_func_fork_works
=yes
6330 ac_cv_func_fork_works
=no
6332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6338 $as_echo "$ac_cv_func_fork_works" >&6; }
6341 ac_cv_func_fork_works
=$ac_cv_func_fork
6343 if test "x$ac_cv_func_fork_works" = xcross
; then
6345 *-*-amigaos* |
*-*-msdosdjgpp*)
6346 # Override, as these systems have only a dummy fork() stub
6347 ac_cv_func_fork_works
=no
6350 ac_cv_func_fork_works
=yes
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6354 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6356 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6357 if test "x$ac_cv_func_vfork" = xyes
; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6359 $as_echo_n "checking for working vfork... " >&6; }
6360 if ${ac_cv_func_vfork_works+:} false
; then :
6361 $as_echo_n "(cached) " >&6
6363 if test "$cross_compiling" = yes; then :
6364 ac_cv_func_vfork_works
=cross
6366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 /* Thanks to Paul Eggert for this test. */
6369 $ac_includes_default
6370 #include <sys/wait.h>
6374 /* On some sparc systems, changes by the child to local and incoming
6375 argument registers are propagated back to the parent. The compiler
6376 is told about this with #include <vfork.h>, but some compilers
6377 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6378 static variable whose address is put into a register that is
6379 clobbered by the vfork. */
6382 sparc_address_test (int arg)
6384 sparc_address_test (arg) int arg;
6405 pid_t parent = getpid ();
6408 sparc_address_test (0);
6413 /* Here is another test for sparc vfork register problems. This
6414 test uses lots of local variables, at least as many local
6415 variables as main has allocated so far including compiler
6416 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6417 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6418 reuse the register of parent for one of the local variables,
6419 since it will think that parent can't possibly be used any more
6420 in this routine. Assigning to the local variable will thus
6421 munge parent in the parent process. */
6423 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6424 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6425 /* Convince the compiler that p..p7 are live; otherwise, it might
6426 use the same hardware register for all 8 local variables. */
6427 if (p != p1 || p != p2 || p != p3 || p != p4
6428 || p != p5 || p != p6 || p != p7)
6431 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6432 from child file descriptors. If the child closes a descriptor
6433 before it execs or exits, this munges the parent's descriptor
6434 as well. Test for this by closing stdout in the child. */
6435 _exit(close(fileno(stdout)) != 0);
6440 while (wait(&status) != child)
6443 /* Was there some problem with vforking? */
6446 /* Did the child fail? (This shouldn't happen.) */
6449 /* Did the vfork/compiler bug occur? */
6450 || parent != getpid()
6452 /* Did the file descriptor bug occur? */
6453 || fstat(fileno(stdout), &st) != 0
6458 if ac_fn_c_try_run
"$LINENO"; then :
6459 ac_cv_func_vfork_works
=yes
6461 ac_cv_func_vfork_works
=no
6463 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6464 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6469 $as_echo "$ac_cv_func_vfork_works" >&6; }
6472 if test "x$ac_cv_func_fork_works" = xcross
; then
6473 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6475 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6478 if test "x$ac_cv_func_vfork_works" = xyes
; then
6480 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6484 $as_echo "#define vfork fork" >>confdefs.h
6487 if test "x$ac_cv_func_fork_works" = xyes
; then
6489 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6493 for ac_func
in getauxval pread pwrite pread64 setns
6495 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6496 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6497 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6498 cat >>confdefs.h
<<_ACEOF
6499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6506 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6507 if test "x$ac_cv_type_size_t" = xyes
; then :
6511 cat >>confdefs.h
<<_ACEOF
6512 #define size_t unsigned int
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6519 $as_echo_n "checking for ANSI C header files... " >&6; }
6520 if ${ac_cv_header_stdc+:} false
; then :
6521 $as_echo_n "(cached) " >&6
6523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6538 if ac_fn_c_try_compile
"$LINENO"; then :
6539 ac_cv_header_stdc
=yes
6541 ac_cv_header_stdc
=no
6543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6545 if test $ac_cv_header_stdc = yes; then
6546 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6553 $EGREP "memchr" >/dev
/null
2>&1; then :
6556 ac_cv_header_stdc
=no
6562 if test $ac_cv_header_stdc = yes; then
6563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6570 $EGREP "free" >/dev
/null
2>&1; then :
6573 ac_cv_header_stdc
=no
6579 if test $ac_cv_header_stdc = yes; then
6580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6581 if test "$cross_compiling" = yes; then :
6584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6588 #if ((' ' & 0x0FF) == 0x020)
6589 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6590 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6592 # define ISLOWER(c) \
6593 (('a' <= (c) && (c) <= 'i') \
6594 || ('j' <= (c) && (c) <= 'r') \
6595 || ('s' <= (c) && (c) <= 'z'))
6596 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6604 for (i = 0; i < 256; i++)
6605 if (XOR (islower (i), ISLOWER (i))
6606 || toupper (i) != TOUPPER (i))
6611 if ac_fn_c_try_run
"$LINENO"; then :
6614 ac_cv_header_stdc
=no
6616 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6617 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6623 $as_echo "$ac_cv_header_stdc" >&6; }
6624 if test $ac_cv_header_stdc = yes; then
6626 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6630 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6631 # for constant arguments. Useless!
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6633 $as_echo_n "checking for working alloca.h... " >&6; }
6634 if ${ac_cv_working_alloca_h+:} false
; then :
6635 $as_echo_n "(cached) " >&6
6637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6643 char *p = (char *) alloca (2 * sizeof (int));
6649 if ac_fn_c_try_link
"$LINENO"; then :
6650 ac_cv_working_alloca_h
=yes
6652 ac_cv_working_alloca_h
=no
6654 rm -f core conftest.err conftest.
$ac_objext \
6655 conftest
$ac_exeext conftest.
$ac_ext
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6658 $as_echo "$ac_cv_working_alloca_h" >&6; }
6659 if test $ac_cv_working_alloca_h = yes; then
6661 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6666 $as_echo_n "checking for alloca... " >&6; }
6667 if ${ac_cv_func_alloca_works+:} false
; then :
6668 $as_echo_n "(cached) " >&6
6670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6673 # define alloca __builtin_alloca
6676 # include <malloc.h>
6677 # define alloca _alloca
6679 # ifdef HAVE_ALLOCA_H
6680 # include <alloca.h>
6685 # ifndef alloca /* predefined by HP cc +Olibcalls */
6686 void *alloca (size_t);
6696 char *p = (char *) alloca (1);
6702 if ac_fn_c_try_link
"$LINENO"; then :
6703 ac_cv_func_alloca_works
=yes
6705 ac_cv_func_alloca_works
=no
6707 rm -f core conftest.err conftest.
$ac_objext \
6708 conftest
$ac_exeext conftest.
$ac_ext
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6711 $as_echo "$ac_cv_func_alloca_works" >&6; }
6713 if test $ac_cv_func_alloca_works = yes; then
6715 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6718 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6719 # that cause trouble. Some versions do not even contain alloca or
6720 # contain a buggy version. If you still want to use their alloca,
6721 # use ar to extract alloca.o from them instead of compiling alloca.c.
6723 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6725 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6729 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6730 if ${ac_cv_os_cray+:} false
; then :
6731 $as_echo_n "(cached) " >&6
6733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 #if defined CRAY && ! defined CRAY2
6742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6743 $EGREP "webecray" >/dev
/null
2>&1; then :
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6752 $as_echo "$ac_cv_os_cray" >&6; }
6753 if test $ac_cv_os_cray = yes; then
6754 for ac_func
in _getb67 GETB67 getb67
; do
6755 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6756 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6757 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6759 cat >>confdefs.h
<<_ACEOF
6760 #define CRAY_STACKSEG_END $ac_func
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6770 $as_echo_n "checking stack direction for C alloca... " >&6; }
6771 if ${ac_cv_c_stack_direction+:} false
; then :
6772 $as_echo_n "(cached) " >&6
6774 if test "$cross_compiling" = yes; then :
6775 ac_cv_c_stack_direction
=0
6777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 $ac_includes_default
6781 find_stack_direction (int *addr, int depth)
6786 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6787 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6792 main (int argc, char **argv)
6794 return find_stack_direction (0, argc + !argv + 20) < 0;
6797 if ac_fn_c_try_run
"$LINENO"; then :
6798 ac_cv_c_stack_direction
=1
6800 ac_cv_c_stack_direction
=-1
6802 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6803 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6808 $as_echo "$ac_cv_c_stack_direction" >&6; }
6809 cat >>confdefs.h
<<_ACEOF
6810 #define STACK_DIRECTION $ac_cv_c_stack_direction
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6819 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6820 if ${am_cv_langinfo_codeset+:} false
; then :
6821 $as_echo_n "(cached) " >&6
6823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <langinfo.h>
6829 char* cs = nl_langinfo(CODESET);
6834 if ac_fn_c_try_link
"$LINENO"; then :
6835 am_cv_langinfo_codeset
=yes
6837 am_cv_langinfo_codeset
=no
6839 rm -f core conftest.err conftest.
$ac_objext \
6840 conftest
$ac_exeext conftest.
$ac_ext
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6844 $as_echo "$am_cv_langinfo_codeset" >&6; }
6845 if test $am_cv_langinfo_codeset = yes; then
6847 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6852 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h
6854 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6855 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6856 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6857 cat >>confdefs.h
<<_ACEOF
6858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6866 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
6868 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6869 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6870 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6871 cat >>confdefs.h
<<_ACEOF
6872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6879 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
6880 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
6886 cat >>confdefs.h
<<_ACEOF
6887 #define HAVE_DECL_STRERROR $ac_have_decl
6889 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
6890 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
6896 cat >>confdefs.h
<<_ACEOF
6897 #define HAVE_DECL_STRSTR $ac_have_decl
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
6902 $as_echo_n "checking for sigsetjmp... " >&6; }
6903 if ${gdb_cv_func_sigsetjmp+:} false
; then :
6904 $as_echo_n "(cached) " >&6
6906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6914 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6919 if ac_fn_c_try_compile
"$LINENO"; then :
6920 gdb_cv_func_sigsetjmp
=yes
6922 gdb_cv_func_sigsetjmp
=no
6924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
6927 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
6928 if test $gdb_cv_func_sigsetjmp = yes; then
6930 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
6935 # Check the return and argument types of ptrace.
6938 for ac_header
in sys
/ptrace.h ptrace.h
6940 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6941 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6942 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6943 cat >>confdefs.h
<<_ACEOF
6944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6952 gdb_ptrace_headers
='
6953 #include <sys/types.h>
6954 #if HAVE_SYS_PTRACE_H
6955 # include <sys/ptrace.h>
6958 # include <unistd.h>
6961 # There is no point in checking if we don't have a prototype.
6962 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
6964 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
6970 cat >>confdefs.h
<<_ACEOF
6971 #define HAVE_DECL_PTRACE $ac_have_decl
6973 if test $ac_have_decl = 1; then :
6977 : ${gdb_cv_func_ptrace_ret='int'}
6978 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6982 # Check return type. Varargs (used on GNU/Linux) conflict with the
6983 # empty argument list, so check for that explicitly.
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
6985 $as_echo_n "checking return type of ptrace... " >&6; }
6986 if ${gdb_cv_func_ptrace_ret+:} false
; then :
6987 $as_echo_n "(cached) " >&6
6989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6995 extern long ptrace (enum __ptrace_request, ...);
7000 if ac_fn_c_try_compile
"$LINENO"; then :
7001 gdb_cv_func_ptrace_ret
='long'
7003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7009 extern int ptrace ();
7014 if ac_fn_c_try_compile
"$LINENO"; then :
7015 gdb_cv_func_ptrace_ret
='int'
7017 gdb_cv_func_ptrace_ret
='long'
7019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
7024 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
7026 cat >>confdefs.h
<<_ACEOF
7027 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
7030 # Check argument types.
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
7032 $as_echo_n "checking types of arguments for ptrace... " >&6; }
7033 if ${gdb_cv_func_ptrace_args+:} false
; then :
7034 $as_echo_n "(cached) " >&6
7037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7043 extern long ptrace (enum __ptrace_request, ...);
7048 if ac_fn_c_try_compile
"$LINENO"; then :
7049 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
7052 for gdb_arg1
in 'int' 'long'; do
7053 for gdb_arg2
in 'pid_t' 'int' 'long'; do
7054 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
7055 for gdb_arg4
in 'int' 'long' 'void *'; do
7056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7063 extern $gdb_cv_func_ptrace_ret
7064 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
7070 if ac_fn_c_try_compile
"$LINENO"; then :
7071 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
7074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7075 for gdb_arg5
in 'int *' 'int' 'long'; do
7076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7083 extern $gdb_cv_func_ptrace_ret
7084 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
7090 if ac_fn_c_try_compile
"$LINENO"; then :
7092 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
7095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7101 # Provide a safe default value.
7102 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
7108 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
7109 ac_save_IFS
=$IFS; IFS
=','
7110 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
7114 cat >>confdefs.h
<<_ACEOF
7115 #define PTRACE_TYPE_ARG1 $1
7119 cat >>confdefs.h
<<_ACEOF
7120 #define PTRACE_TYPE_ARG3 $3
7124 cat >>confdefs.h
<<_ACEOF
7125 #define PTRACE_TYPE_ARG4 $4
7128 if test -n "$5"; then
7130 cat >>confdefs.h
<<_ACEOF
7131 #define PTRACE_TYPE_ARG5 $5
7142 # Check whether --with-ust was given.
7143 if test "${with_ust+set}" = set; then :
7148 # Check whether --with-ust_include was given.
7149 if test "${with_ust_include+set}" = set; then :
7150 withval
=$with_ust_include;
7154 # Check whether --with-ust_lib was given.
7155 if test "${with_ust_lib+set}" = set; then :
7156 withval
=$with_ust_lib;
7170 ustlibs
="-L$with_ust/lib -lust"
7171 ustinc
="-I$with_ust/include "
7174 if test "x$with_ust_include" != x
; then
7175 ustinc
="-I$with_ust_include "
7177 if test "x$with_ust_lib" != x
; then
7178 ustlibs
="-L$with_ust_lib -lust"
7181 if test "x$with_ust" != "xno"; then
7182 saved_CFLAGS
="$CFLAGS"
7183 CFLAGS
="$CFLAGS $ustinc"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
7185 $as_echo_n "checking for ust... " >&6; }
7186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7189 #define CONFIG_UST_GDB_INTEGRATION
7190 #include <ust/ust.h>
7200 if ac_fn_c_try_compile
"$LINENO"; then :
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7202 $as_echo "yes" >&6; };
7203 $as_echo "#define HAVE_UST 1" >>confdefs.h
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
7209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7210 CFLAGS
="$saved_CFLAGS"
7213 # Flags needed for UST
7218 # Check whether --enable-werror was given.
7219 if test "${enable_werror+set}" = set; then :
7220 enableval
=$enable_werror; case "${enableval}" in
7221 yes | y
) ERROR_ON_WARNING
="yes" ;;
7222 no | n
) ERROR_ON_WARNING
="no" ;;
7223 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7228 # Enable -Werror by default when using gcc. Turn it off for releases.
7229 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
7230 ERROR_ON_WARNING
=yes
7234 if test "${ERROR_ON_WARNING}" = yes ; then
7235 WERROR_CFLAGS
="-Werror"
7238 # The options we'll try to enable.
7239 build_warnings
="-Wall -Wpointer-arith \
7240 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
7241 -Wno-switch -Wno-char-subscripts \
7242 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
7243 -Wno-sign-compare -Wno-error=maybe-uninitialized \
7244 -Wno-mismatched-tags \
7245 -Wno-error=deprecated-register \
7246 -Wsuggest-override \
7247 -Wimplicit-fallthrough=3 \
7252 # Enable -Wno-format by default when using gcc on mingw since many
7253 # GCC versions complain about %I64.
7254 build_warnings
="$build_warnings -Wno-format" ;;
7256 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
7257 # doesn't understand.
7258 build_warnings
="$build_warnings -Wno-unknown-pragmas"
7259 # Solaris 11 <unistd.h> marks vfork deprecated.
7260 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
7262 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
7263 # but there's a special case for this below.
7264 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
7267 # Check whether --enable-build-warnings was given.
7268 if test "${enable_build_warnings+set}" = set; then :
7269 enableval
=$enable_build_warnings; case "${enableval}" in
7271 no
) build_warnings
="-w";;
7272 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7273 build_warnings
="${build_warnings} ${t}";;
7274 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7275 build_warnings
="${t} ${build_warnings}";;
7276 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7278 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7279 echo "Setting compiler warning flags = $build_warnings" 6>&1
7282 # Check whether --enable-gdb-build-warnings was given.
7283 if test "${enable_gdb_build_warnings+set}" = set; then :
7284 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
7286 no
) build_warnings
="-w";;
7287 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7288 build_warnings
="${build_warnings} ${t}";;
7289 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7290 build_warnings
="${t} ${build_warnings}";;
7291 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7293 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7294 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7298 # The set of warnings supported by a C++ compiler is not the same as
7299 # of the C compiler.
7301 ac_cpp
='$CXXCPP $CPPFLAGS'
7302 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7303 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7304 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7308 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
7311 $as_echo_n "checking compiler warning flags... " >&6; }
7312 # Separate out the -Werror flag as some files just cannot be
7313 # compiled with it enabled.
7314 for w
in ${build_warnings}; do
7315 # GCC does not complain about -Wno-unknown-warning. Invert
7316 # and test -Wunknown-warning instead.
7319 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
7320 -Wformat-nonliteral)
7321 # gcc requires -Wformat before -Wformat-nonliteral
7322 # will work, so stick them together.
7331 -Werr*) WERROR_CFLAGS
=-Werror ;;
7333 # Check whether GCC accepts it.
7334 saved_CFLAGS
="$CFLAGS"
7335 CFLAGS
="$CFLAGS -Werror $wtest"
7336 saved_CXXFLAGS
="$CXXFLAGS"
7337 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
7338 if test "x$w" = "x-Wunused-variable"; then
7339 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
7340 # fixed in GCC 4.9. This test is derived from the gdb
7341 # source code that triggered this bug in GCC.
7342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344 struct scoped_restore_base {};
7345 struct scoped_restore_tmpl : public scoped_restore_base {
7346 ~scoped_restore_tmpl() {}
7351 const scoped_restore_base &b = scoped_restore_tmpl();
7356 if ac_fn_cxx_try_compile
"$LINENO"; then :
7357 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7372 if ac_fn_cxx_try_compile
"$LINENO"; then :
7373 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7377 CFLAGS
="$saved_CFLAGS"
7378 CXXFLAGS
="$saved_CXXFLAGS"
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
7382 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
7388 ac_cpp='$CPP $CPPFLAGS'
7389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7394 case " $WARN_CFLAGS " in
7395 *" -Wmissing-prototypes "*)
7396 WARN_CFLAGS="$WARN_CFLAGS -Wno-missing-prototypes"
7402 for ac_func in dladdr
7404 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
7405 if test "x
$ac_cv_func_dladdr" = xyes; then :
7406 cat >>confdefs.h <<_ACEOF
7407 #define HAVE_DLADDR 1
7416 # Check for presence and size of long long.
7417 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
7418 if test "x
$ac_cv_type_long_long" = xyes; then :
7420 cat >>confdefs.h <<_ACEOF
7421 #define HAVE_LONG_LONG 1
7424 # The cast to long int works around a bug in the HP C Compiler
7425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7427 # This bug is HP SR number 8606223364.
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
7429 $as_echo_n "checking size of long long...
" >&6; }
7430 if ${ac_cv_sizeof_long_long+:} false; then :
7431 $as_echo_n "(cached
) " >&6
7433 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
7436 if test "$ac_cv_type_long_long" = yes; then
7437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7439 as_fn_error 77 "cannot compute sizeof (long long)
7440 See \`config.log' for more details
" "$LINENO" 5; }
7442 ac_cv_sizeof_long_long=0
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
7448 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7452 cat >>confdefs.h <<_ACEOF
7453 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7460 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
7461 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
7462 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7468 cat >>confdefs.h <<_ACEOF
7469 #define HAVE_DECL_BASENAME $ac_have_decl
7471 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
7472 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
7478 cat >>confdefs.h <<_ACEOF
7479 #define HAVE_DECL_FFS $ac_have_decl
7481 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
7482 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
7488 cat >>confdefs.h <<_ACEOF
7489 #define HAVE_DECL_ASPRINTF $ac_have_decl
7491 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
7492 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
7498 cat >>confdefs.h <<_ACEOF
7499 #define HAVE_DECL_VASPRINTF $ac_have_decl
7501 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
7502 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
7508 cat >>confdefs.h <<_ACEOF
7509 #define HAVE_DECL_SNPRINTF $ac_have_decl
7511 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
7512 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
7518 cat >>confdefs.h <<_ACEOF
7519 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7522 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
7523 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
7529 cat >>confdefs.h <<_ACEOF
7530 #define HAVE_DECL_STRTOL $ac_have_decl
7532 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
7533 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
7539 cat >>confdefs.h <<_ACEOF
7540 #define HAVE_DECL_STRTOUL $ac_have_decl
7542 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
7543 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
7549 cat >>confdefs.h <<_ACEOF
7550 #define HAVE_DECL_STRTOLL $ac_have_decl
7552 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
7553 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
7559 cat >>confdefs.h <<_ACEOF
7560 #define HAVE_DECL_STRTOULL $ac_have_decl
7563 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
7564 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
7570 cat >>confdefs.h <<_ACEOF
7571 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7576 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
7577 if test "x
$ac_cv_have_decl_strerror" = xyes; then :
7583 cat >>confdefs.h <<_ACEOF
7584 #define HAVE_DECL_STRERROR $ac_have_decl
7586 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
7587 if test "x
$ac_cv_have_decl_perror" = xyes; then :
7593 cat >>confdefs.h <<_ACEOF
7594 #define HAVE_DECL_PERROR $ac_have_decl
7596 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
7597 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
7603 cat >>confdefs.h <<_ACEOF
7604 #define HAVE_DECL_VASPRINTF $ac_have_decl
7606 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
7607 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
7613 cat >>confdefs.h <<_ACEOF
7614 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7618 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
7619 if test "x
$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7621 cat >>confdefs.h <<_ACEOF
7622 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7627 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
7628 if test "x
$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7630 cat >>confdefs.h <<_ACEOF
7631 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7638 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
7639 # Older amd64 Linux's don't have the fs_base and gs_base members of
7640 # `struct user_regs_struct'.
7641 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "fs_base
" "ac_cv_member_struct_user_regs_struct_fs_base
" "#include <sys/types.h>
7642 #include <sys/user.h>
7644 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
7646 cat >>confdefs.h <<_ACEOF
7647 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
7652 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "gs_base
" "ac_cv_member_struct_user_regs_struct_gs_base
" "#include <sys/types.h>
7653 #include <sys/user.h>
7655 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
7657 cat >>confdefs.h <<_ACEOF
7658 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
7666 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
7667 #include <sys/socket.h>
7670 if test "x
$ac_cv_type_socklen_t" = xyes; then :
7672 cat >>confdefs.h <<_ACEOF
7673 #define HAVE_SOCKLEN_T 1
7682 # Starting with NDK version 9, <elf.h> actually includes definitions
7683 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
7684 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
7685 # leading to conflicts with the defintions from <linux/elf.h>.
7686 # This makes it impossible for us to include both <elf.h> and
7687 # <linux/elf.h>, which means that, in practice, we do not have
7688 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
7689 # Therefore, do not try to auto-detect availability, as it would
7690 # get it wrong on this platform.
7693 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
7696 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
7698 cat >>confdefs.h <<_ACEOF
7699 #define HAVE_ELF32_AUXV_T 1
7704 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
7707 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
7709 cat >>confdefs.h <<_ACEOF
7710 #define HAVE_ELF64_AUXV_T 1
7720 # Check whether --with-pkgversion was given.
7721 if test "${with_pkgversion+set}" = set; then :
7722 withval=$with_pkgversion; case "$withval" in
7723 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
7725 *) PKGVERSION="($withval) " ;;
7736 # Check whether --with-bugurl was given.
7737 if test "${with_bugurl+set}" = set; then :
7738 withval=$with_bugurl; case "$withval" in
7739 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
7742 *) BUGURL="$withval"
7746 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
7756 REPORT_BUGS_TO="<$BUGURL>"
7757 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7764 cat >>confdefs.h <<_ACEOF
7765 #define PKGVERSION "$PKGVERSION"
7769 cat >>confdefs.h <<_ACEOF
7770 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7774 # Check for various supplementary target information (beyond the
7775 # triplet) which might affect the choices in configure.srv.
7777 i[34567]86-*-linux*)
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
7779 $as_echo_n "checking
if building
for x86-64...
" >&6; }
7780 if ${gdb_cv_i386_is_x86_64+:} false; then :
7781 $as_echo_n "(cached
) " >&6
7783 save_CPPFLAGS="$CPPFLAGS"
7784 CPPFLAGS="$CPPFLAGS $CFLAGS"
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7793 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7794 $EGREP "got it
" >/dev/null 2>&1; then :
7795 gdb_cv_i386_is_x86_64=yes
7797 gdb_cv_i386_is_x86_64=no
7801 CPPFLAGS="$save_CPPFLAGS"
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
7804 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
7809 $as_echo_n "checking
if building
for x32...
" >&6; }
7810 if ${gdb_cv_x86_is_x32+:} false; then :
7811 $as_echo_n "(cached
) " >&6
7813 save_CPPFLAGS="$CPPFLAGS"
7814 CPPFLAGS="$CPPFLAGS $CFLAGS"
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7818 #if __x86_64__ && __ILP32__
7823 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7824 $EGREP "got it
" >/dev/null 2>&1; then :
7825 gdb_cv_x86_is_x32=yes
7827 gdb_cv_x86_is_x32=no
7831 CPPFLAGS="$save_CPPFLAGS"
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
7834 $as_echo "$gdb_cv_x86_is_x32" >&6; }
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
7839 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
7840 if ${gdb_cv_m68k_is_coldfire+:} false; then :
7841 $as_echo_n "(cached
) " >&6
7843 save_CPPFLAGS="$CPPFLAGS"
7844 CPPFLAGS="$CPPFLAGS $CFLAGS"
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7848 #ifdef __mcoldfire__
7853 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7854 $EGREP "got it
" >/dev/null 2>&1; then :
7855 gdb_cv_m68k_is_coldfire=yes
7857 gdb_cv_m68k_is_coldfire=no
7861 CPPFLAGS="$save_CPPFLAGS"
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
7864 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
7868 . ${srcdir}/configure.srv
7870 # Add in the common host objects.
7871 . ${srcdir}/../common/common.host
7872 srv_host_obs="$common_host_obs"
7874 if test "${srv_mingwce}" = "yes"; then
7876 elif test "${srv_mingw}" = "yes"; then
7877 LIBS="$LIBS -lws2_32"
7878 elif test "${srv_qnx}" = "yes"; then
7879 LIBS="$LIBS -lsocket"
7880 elif test "${srv_lynxos}" = "yes"; then
7881 LIBS="$LIBS -lnetinet"
7884 if test "${srv_mingw}" = "yes"; then
7886 $as_echo "#define USE_WIN32API 1" >>confdefs.h
7890 if test "${srv_linux_usrregs}" = "yes"; then
7892 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
7896 if test "${srv_linux_regsets}" = "yes"; then
7898 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
7902 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
7903 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
7904 $as_echo_n "(cached) " >&6
7906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908 #include <sys/ptrace.h>
7917 if ac_fn_c_try_compile
"$LINENO"; then :
7918 gdbsrv_cv_have_ptrace_getregs
=yes
7920 gdbsrv_cv_have_ptrace_getregs
=no
7922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
7926 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
7927 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
7929 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
7934 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
7935 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
7936 $as_echo_n "(cached) " >&6
7938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 #include <sys/ptrace.h>
7949 if ac_fn_c_try_compile
"$LINENO"; then :
7950 gdbsrv_cv_have_ptrace_getfpxregs
=yes
7952 gdbsrv_cv_have_ptrace_getfpxregs
=no
7954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
7958 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
7959 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
7961 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
7966 if test "${srv_linux_btrace}" = "yes"; then
7968 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
7972 if test "$ac_cv_header_sys_procfs_h" = yes; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
7974 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
7975 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
7976 $as_echo_n "(cached) " >&6
7978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7982 /* Needed for new procfs interface on sparc-solaris. */
7983 #define _STRUCTURED_PROC 1
7984 #include <sys/procfs.h>
7993 if ac_fn_c_try_compile
"$LINENO"; then :
7994 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
7996 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8002 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8004 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
8008 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
8011 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
8012 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
8013 $as_echo_n "(cached) " >&6
8015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8019 /* Needed for new procfs interface on sparc-solaris. */
8020 #define _STRUCTURED_PROC 1
8021 #include <sys/procfs.h>
8030 if ac_fn_c_try_compile
"$LINENO"; then :
8031 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8033 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8039 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8041 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
8045 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
8048 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
8049 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
8050 $as_echo_n "(cached) " >&6
8052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8056 /* Needed for new procfs interface on sparc-solaris. */
8057 #define _STRUCTURED_PROC 1
8058 #include <sys/procfs.h>
8067 if ac_fn_c_try_compile
"$LINENO"; then :
8068 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8070 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8076 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8078 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
8082 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
8085 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
8086 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
8087 $as_echo_n "(cached) " >&6
8089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8093 /* Needed for new procfs interface on sparc-solaris. */
8094 #define _STRUCTURED_PROC 1
8095 #include <sys/procfs.h>
8104 if ac_fn_c_try_compile
"$LINENO"; then :
8105 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8107 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8113 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8115 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8119 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8122 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8123 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
8124 $as_echo_n "(cached) " >&6
8126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8130 /* Needed for new procfs interface on sparc-solaris. */
8131 #define _STRUCTURED_PROC 1
8132 #include <sys/procfs.h>
8141 if ac_fn_c_try_compile
"$LINENO"; then :
8142 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
8144 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
8147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8150 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8152 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8156 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8160 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
8162 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
8163 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
8164 $as_echo_n "(cached) " >&6
8166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8169 #include <thread_db.h>
8178 if ac_fn_c_try_compile
"$LINENO"; then :
8179 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
8181 gdbserver_cv_have_thread_db_type_lwpid_t
=no
8184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8187 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
8189 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
8193 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
8197 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
8199 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
8200 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
8201 $as_echo_n "(cached) " >&6
8203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8206 #include <thread_db.h>
8215 if ac_fn_c_try_compile
"$LINENO"; then :
8216 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
8218 gdbserver_cv_have_thread_db_type_psaddr_t
=no
8221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8224 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
8226 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
8230 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8236 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8237 if ${ac_cv_lib_dl_dlopen+:} false
; then :
8238 $as_echo_n "(cached) " >&6
8240 ac_check_lib_save_LIBS
=$LIBS
8242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8245 /* Override any GCC internal prototype to avoid an error.
8246 Use char because int might match the return type of a GCC
8247 builtin and then its argument prototype would still apply. */
8260 if ac_fn_c_try_link
"$LINENO"; then :
8261 ac_cv_lib_dl_dlopen
=yes
8263 ac_cv_lib_dl_dlopen
=no
8265 rm -f core conftest.err conftest.
$ac_objext \
8266 conftest
$ac_exeext conftest.
$ac_ext
8267 LIBS
=$ac_check_lib_save_LIBS
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8270 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8271 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
8272 cat >>confdefs.h
<<_ACEOF
8273 #define HAVE_LIBDL 1
8282 srv_thread_depfiles
=
8285 if test "$srv_linux_thread_db" = "yes"; then
8286 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
8289 $as_echo_n "checking for the dynamic export flag... " >&6; }
8290 old_LDFLAGS
="$LDFLAGS"
8291 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
8293 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
8294 LDFLAGS
="$LDFLAGS $RDYNAMIC"
8295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h. */
8306 if ac_fn_c_try_link
"$LINENO"; then :
8307 found
="-Wl,--dynamic-list"
8308 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
8310 RDYNAMIC
="-rdynamic"
8311 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
8312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8323 if ac_fn_c_try_link
"$LINENO"; then :
8329 rm -f core conftest.err conftest.
$ac_objext \
8330 conftest
$ac_exeext conftest.
$ac_ext
8332 rm -f core conftest.err conftest.
$ac_objext \
8333 conftest
$ac_exeext conftest.
$ac_ext
8335 LDFLAGS
="$old_LDFLAGS"
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8337 $as_echo "$found" >&6; }
8339 srv_libs
="-lthread_db"
8342 srv_thread_depfiles
="thread-db.o proc-service.o"
8344 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
8347 $as_echo_n "checking for TD_VERSION... " >&6; }
8348 if ${gdbsrv_cv_have_td_version+:} false
; then :
8349 $as_echo_n "(cached) " >&6
8351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 #include <thread_db.h>
8362 if ac_fn_c_try_compile
"$LINENO"; then :
8363 gdbsrv_cv_have_td_version
=yes
8365 gdbsrv_cv_have_td_version
=no
8367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
8370 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
8371 if test $gdbsrv_cv_have_td_version = yes; then
8373 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
8379 # Check whether --with-libthread-db was given.
8380 if test "${with_libthread_db+set}" = set; then :
8381 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
8382 srv_libs
="$srv_libthread_db_path"
8387 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
8389 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
8393 if test "$srv_xmlfiles" != ""; then
8394 srv_xmlbuiltin
="xml-builtin.o"
8396 $as_echo "#define USE_XML 1" >>confdefs.h
8399 tmp_xmlfiles
=$srv_xmlfiles
8401 for f
in $tmp_xmlfiles; do
8402 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
8406 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs $srv_selftest_objs"
8407 GDBSERVER_LIBS
="$srv_libs"
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
8410 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
8411 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
8412 $as_echo_n "(cached) " >&6
8415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h. */
8421 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
8426 if ac_fn_c_try_link
"$LINENO"; then :
8427 gdbsrv_cv_have_sync_builtins
=yes
8429 gdbsrv_cv_have_sync_builtins
=no
8431 rm -f core conftest.err conftest.
$ac_objext \
8432 conftest
$ac_exeext conftest.
$ac_ext
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
8435 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
8436 if test $gdbsrv_cv_have_sync_builtins = yes; then
8438 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
8442 saved_cflags
="$CFLAGS"
8443 CFLAGS
="$CFLAGS -fvisibility=hidden"
8444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8455 if ac_fn_c_try_compile
"$LINENO"; then :
8456 gdbsrv_cv_have_visibility_hidden
=yes
8458 gdbsrv_cv_have_visibility_hidden
=no
8460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8461 CFLAGS
="$saved_cflags"
8463 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8465 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
8471 cat >>confdefs.h
<<_ACEOF
8472 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8476 if test "$cross_compiling" = yes; then :
8477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479 #include <sys/personality.h>
8484 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8485 # define ADDR_NO_RANDOMIZE 0x0040000
8487 /* Test the flag could be set and stays set. */
8488 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8489 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8495 if ac_fn_c_try_link
"$LINENO"; then :
8496 gdbsrv_cv_have_personality
=true
8498 gdbsrv_cv_have_personality
=false
8500 rm -f core conftest.err conftest.
$ac_objext \
8501 conftest
$ac_exeext conftest.
$ac_ext
8503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #include <sys/personality.h>
8510 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8511 # define ADDR_NO_RANDOMIZE 0x0040000
8513 /* Test the flag could be set and stays set. */
8514 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8515 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8521 if ac_fn_c_try_run
"$LINENO"; then :
8522 gdbsrv_cv_have_personality
=true
8524 gdbsrv_cv_have_personality
=false
8526 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8527 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8530 if $gdbsrv_cv_have_personality
8533 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8541 # check whether to enable the inprocess agent
8542 if test "$ipa_obj" != "" \
8543 -a "$gdbsrv_cv_have_sync_builtins" = yes \
8544 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
8550 # Check whether --enable-inprocess-agent was given.
8551 if test "${enable_inprocess_agent+set}" = set; then :
8552 enableval
=$enable_inprocess_agent; case "$enableval" in
8553 yes) want_ipa
=true
;;
8554 no
) want_ipa
=false
;;
8555 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
8564 IPA_DEPFILES
="$ipa_obj"
8565 extra_libraries
="$extra_libraries libinproctrace.so"
8567 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
8578 GNULIB
=build-gnulib-gdbserver
/import
8581 if test x
"$STDINT_H" != x
; then
8582 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
8586 ac_config_files
="$ac_config_files Makefile"
8589 cat >confcache
<<\_ACEOF
8590 # This file is a shell script that caches the results of configure
8591 # tests run on this system so they can be shared between configure
8592 # scripts and configure runs, see configure's option --config-cache.
8593 # It is not useful on other systems. If it contains results you don't
8594 # want to keep, you may remove or edit it.
8596 # config.status only pays attention to the cache file if you give it
8597 # the --recheck option to rerun configure.
8599 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8600 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8605 # The following way of writing the cache mishandles newlines in values,
8606 # but we know of no workaround that is simple, portable, and efficient.
8607 # So, we kill variables containing newlines.
8608 # Ultrix sh set writes to stderr and can't be redirected directly,
8609 # and sets the high bit in the cache file unless we assign to the vars.
8611 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8612 eval ac_val
=\$
$ac_var
8616 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8617 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8620 _ | IFS | as_nl
) ;; #(
8621 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8622 *) { eval $ac_var=; unset $ac_var;} ;;
8628 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8629 *${as_nl}ac_space
=\
*)
8630 # `set' does not quote correctly, so add quotes: double-quote
8631 # substitution turns \\\\ into \\, and sed turns \\ into \.
8634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8637 # `set' quotes correctly as required by POSIX, so do not add quotes.
8638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8647 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8649 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8651 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8652 if test -w "$cache_file"; then
8653 if test "x$cache_file" != "x/dev/null"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8655 $as_echo "$as_me: updating cache $cache_file" >&6;}
8656 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
8657 cat confcache
>"$cache_file"
8659 case $cache_file in #(
8661 mv -f confcache
"$cache_file"$$
&&
8662 mv -f "$cache_file"$$
"$cache_file" ;; #(
8664 mv -f confcache
"$cache_file" ;;
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8670 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8675 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8676 # Let make expand exec_prefix.
8677 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8679 DEFS
=-DHAVE_CONFIG_H
8684 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8685 # 1. Remove the extension, and $U if already installed.
8686 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8687 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
8688 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8689 # will be set to the directory where LIBOBJS objects are built.
8690 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8691 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8695 LTLIBOBJS
=$ac_ltlibobjs
8698 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8699 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
8700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8703 : "${CONFIG_STATUS=./config.status}"
8705 ac_clean_files_save
=$ac_clean_files
8706 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8710 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8712 # Generated by $as_me.
8713 # Run this file to recreate the current configuration.
8714 # Compiler output produced by configure, useful for debugging
8715 # configure, is in config.log if it exists.
8721 SHELL=\${CONFIG_SHELL-$SHELL}
8724 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8725 ## -------------------- ##
8726 ## M4sh Initialization. ##
8727 ## -------------------- ##
8729 # Be more Bourne compatible
8730 DUALCASE
=1; export DUALCASE
# for MKS sh
8731 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
8734 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8735 # is contrary to our usage. Disable this feature.
8736 alias -g '${1+"$@"}'='"$@"'
8737 setopt NO_GLOB_SUBST
8739 case `(set -o) 2>/dev/null` in #(
8751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8752 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8755 # Prefer a ksh shell builtin over an external printf program on Solaris,
8756 # but without wasting forks for bash or zsh.
8757 if test -z "$BASH_VERSION$ZSH_VERSION" \
8758 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8759 as_echo='print
-r --'
8760 as_echo_n='print
-rn --'
8761 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8762 as_echo='printf %s
\n'
8763 as_echo_n='printf %s
'
8765 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8766 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8767 as_echo_n='/usr
/ucb
/echo -n'
8769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8770 as_echo_n_body='eval
8774 expr "X$arg" : "X\\(.*\\)$as_nl";
8775 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8777 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8779 export as_echo_n_body
8780 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8783 as_echo='sh
-c $as_echo_body as_echo
'
8786 # The user is always right.
8787 if test "${PATH_SEPARATOR+set}" != set; then
8789 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8790 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8797 # We need space, tab and new line, in precisely that order. Quoting is
8798 # there to prevent editors from complaining about space-tab.
8799 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8800 # splitting by setting IFS to empty value.)
8803 # Find who we are. Look in the path if we contain no directory separator.
8806 *[\\/]* ) as_myself=$0 ;;
8807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811 test -z "$as_dir" && as_dir=.
8812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8818 # We did not find ourselves, most probably we were run as `sh COMMAND'
8819 # in which case we are not to be found in the path.
8820 if test "x$as_myself" = x
; then
8823 if test ! -f "$as_myself"; then
8824 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8828 # Unset variables that we do not need and which cause bugs (e.g. in
8829 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8830 # suppresses any "Segmentation fault" message there. '((' could
8831 # trigger a bug in pdksh 5.2.14.
8832 for as_var
in BASH_ENV ENV MAIL MAILPATH
8833 do eval test x\
${$as_var+set} = xset \
8834 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8847 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8850 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8851 # ----------------------------------------
8852 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8853 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8854 # script with STATUS, using 1 if that was 0.
8857 as_status
=$1; test $as_status -eq 0 && as_status
=1
8859 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8860 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8862 $as_echo "$as_me: error: $2" >&2
8863 as_fn_exit
$as_status
8867 # as_fn_set_status STATUS
8868 # -----------------------
8869 # Set $? to STATUS, without forking.
8873 } # as_fn_set_status
8877 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8887 # Portably unset VAR.
8890 { eval $1=; unset $1;}
8892 as_unset
=as_fn_unset
8893 # as_fn_append VAR VALUE
8894 # ----------------------
8895 # Append the text in VALUE to the end of the definition contained in VAR. Take
8896 # advantage of any shell optimizations that allow amortized linear growth over
8897 # repeated appends, instead of the typical quadratic growth present in naive
8899 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8900 eval 'as_fn_append ()
8911 # as_fn_arith ARG...
8912 # ------------------
8913 # Perform arithmetic evaluation on the ARGs, and store the result in the
8914 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8915 # must be portable across $(()) and expr.
8916 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8917 eval 'as_fn_arith ()
8924 as_val
=`expr "$@" || test $? -eq 1`
8929 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8930 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8936 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8937 as_basename
=basename
8942 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8948 as_me
=`$as_basename -- "$0" ||
8949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8950 X"$0" : 'X\(//\)$' \| \
8951 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8953 sed '/^.*\/\([^/][^/]*\)\/*$/{
8967 # Avoid depending upon Character Ranges.
8968 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8969 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8970 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8971 as_cr_digits
='0123456789'
8972 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8974 ECHO_C
= ECHO_N
= ECHO_T
=
8975 case `echo -n x` in #(((((
8977 case `echo 'xy\c'` in
8978 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8980 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8987 rm -f conf$$ conf$$.exe conf$$.
file
8988 if test -d conf$$.dir
; then
8989 rm -f conf$$.dir
/conf$$.
file
8992 mkdir conf$$.dir
2>/dev
/null
8994 if (echo >conf$$.
file) 2>/dev
/null
; then
8995 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8997 # ... but there are two gotchas:
8998 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8999 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9000 # In both cases, we have to default to `cp -pR'.
9001 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9003 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9011 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9012 rmdir conf$$.dir
2>/dev
/null
9017 # Create "$as_dir" as a directory, including parents if necessary.
9022 -*) as_dir
=.
/$as_dir;;
9024 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9028 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9029 *) as_qdir
=$as_dir;;
9031 as_dirs
="'$as_qdir' $as_dirs"
9032 as_dir
=`$as_dirname -- "$as_dir" ||
9033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9034 X"$as_dir" : 'X\(//\)[^/]' \| \
9035 X"$as_dir" : 'X\(//\)$' \| \
9036 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9037 $as_echo X"$as_dir" |
9038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9055 test -d "$as_dir" && break
9057 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9058 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9062 if mkdir
-p .
2>/dev
/null
; then
9063 as_mkdir_p
='mkdir -p "$as_dir"'
9065 test -d .
/-p && rmdir .
/-p
9070 # as_fn_executable_p FILE
9071 # -----------------------
9072 # Test if FILE is an executable regular file.
9073 as_fn_executable_p
()
9075 test -f "$1" && test -x "$1"
9076 } # as_fn_executable_p
9078 as_executable_p
=as_fn_executable_p
9080 # Sed expression to map a string onto a valid CPP name.
9081 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9083 # Sed expression to map a string onto a valid variable name.
9084 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9088 ## ----------------------------------- ##
9089 ## Main body of $CONFIG_STATUS script. ##
9090 ## ----------------------------------- ##
9092 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9095 # Save the log message, to keep $0 and so on meaningful, and to
9096 # report actual input values of CONFIG_FILES etc. instead of their
9097 # values after options handling.
9099 This file was extended by $as_me, which was
9100 generated by GNU Autoconf 2.69. Invocation command line was
9102 CONFIG_FILES = $CONFIG_FILES
9103 CONFIG_HEADERS = $CONFIG_HEADERS
9104 CONFIG_LINKS = $CONFIG_LINKS
9105 CONFIG_COMMANDS = $CONFIG_COMMANDS
9108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9113 case $ac_config_files in *"
9114 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9117 case $ac_config_headers in *"
9118 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9123 # Files that config.status was made for.
9124 config_files="$ac_config_files"
9125 config_headers="$ac_config_headers"
9126 config_commands="$ac_config_commands"
9130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9132 \`$as_me' instantiates files and other configuration actions
9133 from templates according to the current configuration. Unless the files
9134 and actions are specified as TAGs, all are instantiated by default.
9136 Usage: $0 [OPTION]... [TAG]...
9138 -h, --help print this help, then exit
9139 -V, --version print version number and configuration settings, then exit
9140 --config print configuration, then exit
9141 -q, --quiet, --silent
9142 do not print progress messages
9143 -d, --debug don't remove temporary files
9144 --recheck update $as_me by reconfiguring in the same conditions
9145 --file=FILE[:TEMPLATE]
9146 instantiate the configuration file FILE
9147 --header=FILE[:TEMPLATE]
9148 instantiate the configuration header FILE
9150 Configuration files:
9153 Configuration headers:
9156 Configuration commands:
9159 Report bugs to the package provider."
9162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9163 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9166 configured by $0, generated by GNU Autoconf 2.69,
9167 with options \\"\$ac_cs_config\\"
9169 Copyright (C) 2012 Free Software Foundation, Inc.
9170 This config.status script is free software; the Free Software Foundation
9171 gives unlimited permission to copy, distribute and modify it."
9176 test -n "\$AWK" || AWK=awk
9179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9180 # The default lists apply if the user does not specify any file.
9186 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9187 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9191 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9203 # Handling of the options.
9204 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9206 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9207 $as_echo "$ac_cs_version"; exit ;;
9208 --config |
--confi |
--conf |
--con |
--co |
--c )
9209 $as_echo "$ac_cs_config"; exit ;;
9210 --debug |
--debu |
--deb |
--de |
--d |
-d )
9212 --file |
--fil |
--fi |
--f )
9215 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9216 '') as_fn_error $?
"missing file argument" ;;
9218 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9219 ac_need_defaults
=false
;;
9220 --header |
--heade |
--head |
--hea )
9223 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9225 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9226 ac_need_defaults
=false
;;
9228 # Conflict between --help and --header
9229 as_fn_error $?
"ambiguous option: \`$1'
9230 Try \`$0 --help' for more information.";;
9231 --help |
--hel |
-h )
9232 $as_echo "$ac_cs_usage"; exit ;;
9233 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9234 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9238 -*) as_fn_error $?
"unrecognized option: \`$1'
9239 Try \`$0 --help' for more information." ;;
9241 *) as_fn_append ac_config_targets
" $1"
9242 ac_need_defaults
=false
;;
9248 ac_configure_extra_args
=
9250 if $ac_cs_silent; then
9252 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9257 if \$ac_cs_recheck; then
9258 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9260 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9261 CONFIG_SHELL='$SHELL'
9267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9272 ## Running $as_me. ##
9278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9282 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
9283 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
9287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9289 # Handling of arguments.
9290 for ac_config_target
in $ac_config_targets
9292 case $ac_config_target in
9293 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9294 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
9295 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
9296 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9298 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9303 # If the user did not use the arguments to specify the items to instantiate,
9304 # then the envvar interface is used. Set only those that are not.
9305 # We use the long form for the default assignment because of an extremely
9306 # bizarre bug on SunOS 4.1.3.
9307 if $ac_need_defaults; then
9308 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9309 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9310 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9313 # Have a temporary directory for convenience. Make it in the build tree
9314 # simply because there is no reason against having it here, and in addition,
9315 # creating and moving files from /tmp can sometimes cause problems.
9316 # Hook for its removal unless debugging.
9317 # Note that there is a small window in which the directory will not be cleaned:
9318 # after its creation but before its name has been assigned to `$tmp'.
9322 trap 'exit_status=$?
9324 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9326 trap 'as_fn_exit 1' 1 2 13 15
9328 # Create a (secure) tmp directory for tmp files.
9331 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9335 tmp
=.
/conf$$
-$RANDOM
9336 (umask 077 && mkdir
"$tmp")
9337 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
9340 # Set up the scripts for CONFIG_FILES section.
9341 # No need to generate them if there are no CONFIG_FILES.
9342 # This happens for instance with `./config.status config.h'.
9343 if test -n "$CONFIG_FILES"; then
9346 ac_cr
=`echo X | tr X '\015'`
9347 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9348 # But we know of no other shell where ac_cr would be empty at this
9349 # point, so we can use a bashism as a fallback.
9350 if test "x$ac_cr" = x
; then
9351 eval ac_cr
=\$
\'\\r
\'
9353 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9354 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9360 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9365 echo "cat >conf$$subs.awk <<_ACEOF" &&
9366 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9369 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9370 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9372 for ac_last_try in false false false false false :; do
9373 . ./conf$$subs.sh ||
9374 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9376 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9377 if test $ac_delim_n = $ac_delim_num; then
9379 elif $ac_last_try; then
9380 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9382 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9388 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
9392 s/^/S["/; s
/!.
*/"]=/
9402 s/\(.\{148\}\)..*/\1/
9404 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9409 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9416 s/\(.\{148\}\)..*/\1/
9418 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9422 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9427 ' <conf$$subs.awk | sed '
9432 ' >>$CONFIG_STATUS || ac_write_fail=1
9433 rm -f conf$$subs.awk
9434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9436 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
9437 for (key in S) S_is_set[key] = 1
9443 nfields = split(line, field, "@
")
9445 len = length(field[1])
9446 for (i = 2; i < nfields; i++) {
9448 keylen = length(key)
9449 if (S_is_set[key]) {
9451 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9452 len += length(value) + length(field[++i])
9463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9464 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9465 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9468 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9469 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9472 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9473 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9474 # trailing colons and then remove the whole line if VPATH becomes empty
9475 # (actually we leave an empty line to preserve line numbers).
9476 if test "x
$srcdir" = x.; then
9477 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9496 fi # test -n "$CONFIG_FILES"
9498 # Set up the scripts for CONFIG_HEADERS section.
9499 # No need to generate them if there are no CONFIG_HEADERS.
9500 # This happens for instance with `./config.status Makefile'.
9501 if test -n "$CONFIG_HEADERS"; then
9502 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
9506 # Transform confdefs.h into an awk script `defines.awk', embedded as
9507 # here-document in config.status, that substitutes the proper values into
9508 # config.h.in to produce config.h.
9510 # Create a delimiter string that does not exist in confdefs.h, to ease
9511 # handling of long lines.
9513 for ac_last_try in false false :; do
9514 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
9515 if test -z "$ac_tt"; then
9517 elif $ac_last_try; then
9518 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
9520 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9524 # For the awk script, D is an array of macro values keyed by name,
9525 # likewise P contains macro parameters if any. Preserve backslash
9526 # newline sequences.
9528 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9530 s/.\{148\}/&'"$ac_delim"'/g
9533 s/^[ ]*#[ ]*define[ ][ ]*/ /
9540 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
9542 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
9546 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
9547 D["\
1"]=" \
3\\\\\\n
"\\/p
9549 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
9554 s/.\{148\}/&'"$ac_delim"'/g
9559 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
9562 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
9564 ' <confdefs.h | sed '
9565 s/'"$ac_delim"'/"\\\
9566 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9569 for (key in D) D_is_set[key] = 1
9572 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9574 split(line, arg, " ")
9575 if (arg[1] == "#") {
9579 defundef
= substr
(arg
[1], 2)
9582 split(mac1
, mac2
, "(") #)
9584 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9585 if (D_is_set
[macro
]) {
9586 # Preserve the white space surrounding the "#".
9587 print prefix
"define", macro P
[macro
] D
[macro
]
9590 # Replace #undef with comments. This is necessary, for example,
9591 # in the case of _POSIX_SOURCE, which is predefined and required
9592 # on some systems where configure will not decide to define it.
9593 if (defundef
== "undef") {
9594 print
"/*", prefix defundef
, macro
, "*/"
9602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9603 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
9604 fi # test -n "$CONFIG_HEADERS"
9607 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9612 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9614 case $ac_mode$ac_tag in
9616 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
9617 :[FH
]-) ac_tag
=-:-;;
9618 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9635 -) ac_f
="$ac_tmp/stdin";;
9636 *) # Look for the file first in the build tree, then in the source tree
9637 # (if the path is not absolute). The absolute path cannot be DOS-style,
9638 # because $ac_f cannot contain `:'.
9642 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9644 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9646 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9647 as_fn_append ac_file_inputs
" '$ac_f'"
9650 # Let's still pretend it is `configure' which instantiates (i.e., don't
9651 # use $as_me), people would be surprised to read:
9652 # /* config.h. Generated by config.status. */
9653 configure_input
='Generated from '`
9654 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9656 if test x
"$ac_file" != x-
; then
9657 configure_input
="$ac_file. $configure_input"
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9659 $as_echo "$as_me: creating $ac_file" >&6;}
9661 # Neutralize special characters interpreted by sed in replacement strings.
9662 case $configure_input in #(
9663 *\
&* |
*\|
* |
*\\* )
9664 ac_sed_conf_input
=`$as_echo "$configure_input" |
9665 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9666 *) ac_sed_conf_input
=$configure_input;;
9670 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
9671 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
9676 ac_dir
=`$as_dirname -- "$ac_file" ||
9677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9678 X"$ac_file" : 'X\(//\)[^/]' \| \
9679 X"$ac_file" : 'X\(//\)$' \| \
9680 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9681 $as_echo X"$ac_file" |
9682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9699 as_dir
="$ac_dir"; as_fn_mkdir_p
9703 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9705 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9706 # A ".." for each directory in $ac_dir_suffix.
9707 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9708 case $ac_top_builddir_sub in
9709 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9710 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9713 ac_abs_top_builddir
=$ac_pwd
9714 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9715 # for backward compatibility:
9716 ac_top_builddir
=$ac_top_build_prefix
9719 .
) # We are building in place.
9721 ac_top_srcdir
=$ac_top_builddir_sub
9722 ac_abs_top_srcdir
=$ac_pwd ;;
9723 [\\/]* | ?
:[\\/]* ) # Absolute name.
9724 ac_srcdir
=$srcdir$ac_dir_suffix;
9725 ac_top_srcdir
=$srcdir
9726 ac_abs_top_srcdir
=$srcdir ;;
9728 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9729 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9730 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9732 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9742 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9743 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9748 # If the template does not know about datarootdir, expand it.
9749 # FIXME: This hack should be removed a few years after 2.60.
9750 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9761 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9762 *datarootdir
*) ac_datarootdir_seen
=yes;;
9763 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9765 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9768 ac_datarootdir_hack='
9769 s&@datadir@&$datadir&g
9770 s&@docdir@&$docdir&g
9771 s&@infodir@&$infodir&g
9772 s&@localedir@&$localedir&g
9773 s&@mandir@&$mandir&g
9774 s&\\\${datarootdir}&$datarootdir&g' ;;
9778 # Neutralize VPATH when `$srcdir' = `.'.
9779 # Shell code in configure.ac might set extrasub.
9780 # FIXME: do we really want to maintain this feature?
9781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9782 ac_sed_extra="$ac_vpsub
9785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9787 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9788 s|@configure_input@|
$ac_sed_conf_input|
;t t
9789 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9790 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9791 s
&@srcdir@
&$ac_srcdir&;t t
9792 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9793 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9794 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9795 s
&@builddir@
&$ac_builddir&;t t
9796 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9797 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9798 s
&@INSTALL@
&$ac_INSTALL&;t t
9799 $ac_datarootdir_hack
9801 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
9802 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9804 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9805 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
9806 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9807 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9809 which seems to be undefined. Please make sure it is defined" >&5
9810 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9811 which seems to be undefined. Please make sure it is defined" >&2;}
9813 rm -f "$ac_tmp/stdin"
9815 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9816 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9824 if test x"$ac_file" != x-; then
9826 $as_echo "/* $configure_input */" \
9827 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9828 } >"$ac_tmp/config.h" \
9829 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9830 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9832 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9835 mv "$ac_tmp/config.h" "$ac_file" \
9836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9839 $as_echo "/* $configure_input */" \
9840 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9841 || as_fn_error $? "could not create -" "$LINENO" 5
9845 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9846 $as_echo "$as_me: executing $ac_file commands" >&6;}
9851 case $ac_file$ac_mode in
9852 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9854 for subdir in ${CONFIG_SRC_SUBDIR}
9856 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
9858 "Makefile":F) case x$CONFIG_HEADERS in
9859 xconfig.h:config.in)
9870 ac_clean_files=$ac_clean_files_save
9872 test $ac_write_fail = 0 ||
9873 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9876 # configure is writing to config.log, and then calls config.status.
9877 # config.status does its own redirection, appending to config.log.
9878 # Unfortunately, on DOS this fails, as config.log is still kept open
9879 # by configure, so config.status won't be able to
write to it
; its
9880 # output is simply discarded. So we exec the FD to /dev/null,
9881 # effectively closing config.log, so it can be properly (re)opened and
9882 # appended to by config.status. When coming back to configure, we
9883 # need to make the FD available again.
9884 if test "$no_create" != yes; then
9886 ac_config_status_args
=
9887 test "$silent" = yes &&
9888 ac_config_status_args
="$ac_config_status_args --quiet"
9890 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9892 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9893 # would make configure fail if this is the last instruction.
9894 $ac_cs_success || as_fn_exit
1
9896 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9898 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}