2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gdbsupport 1.0.
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.
578 PACKAGE_NAME
='gdbsupport'
579 PACKAGE_TARNAME
='gdbsupport'
580 PACKAGE_VERSION
='1.0'
581 PACKAGE_STRING
='gdbsupport 1.0'
585 ac_unique_file
="common-defs.h"
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>
623 ac_subst_vars
='am__EXEEXT_FALSE
694 INSTALL_STRIP_PROGRAM
710 MAINTAINER_MODE_FALSE
751 program_transform_name
764 enable_option_checking
765 enable_maintainer_mode
767 enable_dependency_tracking
778 enable_build_warnings
779 enable_gdb_build_warnings
781 ac_precious_vars
='build_alias
795 # Initialize some variables set by options.
797 ac_init_version
=false
798 ac_unrecognized_opts
=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
809 program_transform_name
=s
,x
,x
,
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir
='${exec_prefix}/bin'
824 sbindir
='${exec_prefix}/sbin'
825 libexecdir
='${exec_prefix}/libexec'
826 datarootdir
='${prefix}/share'
827 datadir
='${datarootdir}'
828 sysconfdir
='${prefix}/etc'
829 sharedstatedir
='${prefix}/com'
830 localstatedir
='${prefix}/var'
831 includedir
='${prefix}/include'
832 oldincludedir
='/usr/include'
833 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir
='${datarootdir}/info'
839 libdir
='${exec_prefix}/lib'
840 localedir
='${datarootdir}/locale'
841 mandir
='${datarootdir}/man'
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\
$ac_option
855 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 # Accept the important Cygnus configure options, so we can diagnose typos.
862 case $ac_dashdash$ac_option in
866 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
868 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
871 -build |
--build |
--buil |
--bui |
--bu)
872 ac_prev
=build_alias
;;
873 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
874 build_alias
=$ac_optarg ;;
876 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
877 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
878 ac_prev
=cache_file
;;
879 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
880 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
881 cache_file
=$ac_optarg ;;
884 cache_file
=config.cache
;;
886 -datadir |
--datadir |
--datadi |
--datad)
888 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
889 datadir
=$ac_optarg ;;
891 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
892 |
--dataroo |
--dataro |
--datar)
893 ac_prev
=datarootdir
;;
894 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
895 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
896 datarootdir
=$ac_optarg ;;
898 -disable-* |
--disable-*)
899 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
902 as_fn_error $?
"invalid feature name: $ac_useropt"
903 ac_useropt_orig
=$ac_useropt
904 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
909 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep
=', ';;
912 eval enable_
$ac_useropt=no
;;
914 -docdir |
--docdir |
--docdi |
--doc |
--do)
916 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
919 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
921 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
924 -enable-* |
--enable-*)
925 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
928 as_fn_error $?
"invalid feature name: $ac_useropt"
929 ac_useropt_orig
=$ac_useropt
930 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
935 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep
=', ';;
938 eval enable_
$ac_useropt=\
$ac_optarg ;;
940 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
941 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
942 |
--exec |
--exe |
--ex)
943 ac_prev
=exec_prefix
;;
944 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
945 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
946 |
--exec=* |
--exe=* |
--ex=*)
947 exec_prefix
=$ac_optarg ;;
949 -gas |
--gas |
--ga |
--g)
950 # Obsolete; use --with-gas.
953 -help |
--help |
--hel |
--he |
-h)
955 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
956 ac_init_help
=recursive
;;
957 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
958 ac_init_help
=short
;;
960 -host |
--host |
--hos |
--ho)
961 ac_prev
=host_alias
;;
962 -host=* |
--host=* |
--hos=* |
--ho=*)
963 host_alias
=$ac_optarg ;;
965 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
967 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
969 htmldir
=$ac_optarg ;;
971 -includedir |
--includedir |
--includedi |
--included |
--include \
972 |
--includ |
--inclu |
--incl |
--inc)
973 ac_prev
=includedir
;;
974 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
975 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
976 includedir
=$ac_optarg ;;
978 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
980 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
981 infodir
=$ac_optarg ;;
983 -libdir |
--libdir |
--libdi |
--libd)
985 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
988 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
989 |
--libexe |
--libex |
--libe)
990 ac_prev
=libexecdir
;;
991 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
992 |
--libexe=* |
--libex=* |
--libe=*)
993 libexecdir
=$ac_optarg ;;
995 -localedir |
--localedir |
--localedi |
--localed |
--locale)
997 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
998 localedir
=$ac_optarg ;;
1000 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1001 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1002 ac_prev
=localstatedir
;;
1003 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1004 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1005 localstatedir
=$ac_optarg ;;
1007 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1009 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1010 mandir
=$ac_optarg ;;
1012 -nfp |
--nfp |
--nf)
1013 # Obsolete; use --without-fp.
1016 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1017 |
--no-cr |
--no-c |
-n)
1020 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1021 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1024 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1025 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1026 |
--oldin |
--oldi |
--old |
--ol |
--o)
1027 ac_prev
=oldincludedir
;;
1028 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1029 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1030 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1031 oldincludedir
=$ac_optarg ;;
1033 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1035 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1036 prefix
=$ac_optarg ;;
1038 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1039 |
--program-pre |
--program-pr |
--program-p)
1040 ac_prev
=program_prefix
;;
1041 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1042 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1043 program_prefix
=$ac_optarg ;;
1045 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1046 |
--program-suf |
--program-su |
--program-s)
1047 ac_prev
=program_suffix
;;
1048 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1049 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1050 program_suffix
=$ac_optarg ;;
1052 -program-transform-name |
--program-transform-name \
1053 |
--program-transform-nam |
--program-transform-na \
1054 |
--program-transform-n |
--program-transform- \
1055 |
--program-transform |
--program-transfor \
1056 |
--program-transfo |
--program-transf \
1057 |
--program-trans |
--program-tran \
1058 |
--progr-tra |
--program-tr |
--program-t)
1059 ac_prev
=program_transform_name
;;
1060 -program-transform-name=* |
--program-transform-name=* \
1061 |
--program-transform-nam=* |
--program-transform-na=* \
1062 |
--program-transform-n=* |
--program-transform-=* \
1063 |
--program-transform=* |
--program-transfor=* \
1064 |
--program-transfo=* |
--program-transf=* \
1065 |
--program-trans=* |
--program-tran=* \
1066 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1067 program_transform_name
=$ac_optarg ;;
1069 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1071 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1072 pdfdir
=$ac_optarg ;;
1074 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1076 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1079 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1080 |
-silent |
--silent |
--silen |
--sile |
--sil)
1083 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1085 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1087 sbindir
=$ac_optarg ;;
1089 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1090 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1091 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1093 ac_prev
=sharedstatedir
;;
1094 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1095 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1096 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1098 sharedstatedir
=$ac_optarg ;;
1100 -site |
--site |
--sit)
1102 -site=* |
--site=* |
--sit=*)
1105 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1107 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1108 srcdir
=$ac_optarg ;;
1110 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1111 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1112 ac_prev
=sysconfdir
;;
1113 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1114 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1115 sysconfdir
=$ac_optarg ;;
1117 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1118 ac_prev
=target_alias
;;
1119 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1120 target_alias
=$ac_optarg ;;
1122 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1125 -version |
--version |
--versio |
--versi |
--vers |
-V)
1126 ac_init_version
=: ;;
1129 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1132 as_fn_error $?
"invalid package name: $ac_useropt"
1133 ac_useropt_orig
=$ac_useropt
1134 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1139 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep
=', ';;
1142 eval with_
$ac_useropt=\
$ac_optarg ;;
1144 -without-* |
--without-*)
1145 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1148 as_fn_error $?
"invalid package name: $ac_useropt"
1149 ac_useropt_orig
=$ac_useropt
1150 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1155 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep
=', ';;
1158 eval with_
$ac_useropt=no
;;
1161 # Obsolete; use --with-x.
1164 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1165 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1166 ac_prev
=x_includes
;;
1167 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1168 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1169 x_includes
=$ac_optarg ;;
1171 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1172 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1173 ac_prev
=x_libraries
;;
1174 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1175 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1176 x_libraries
=$ac_optarg ;;
1178 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1183 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1187 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1189 eval $ac_envvar=\
$ac_optarg
1190 export $ac_envvar ;;
1193 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 if test -n "$ac_prev"; then
1204 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1205 as_fn_error $?
"missing argument to $ac_option"
1208 if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1211 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 # Check all directory arguments for consistency.
1217 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1222 eval ac_val
=\$
$ac_var
1223 # Remove trailing slashes.
1226 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\
$ac_val;;
1229 # Be sure to have absolute directory names.
1231 [\\/$
]* | ?
:[\\/]* ) continue;;
1232 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1234 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1242 target
=$target_alias
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x
; then
1246 if test "x$build_alias" = x
; then
1247 cross_compiling
=maybe
1248 elif test "x$build_alias" != "x$host_alias"; then
1254 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1256 test "$silent" = yes && exec 6>/dev
/null
1259 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di
=`ls -di .` &&
1261 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1262 as_fn_error $?
"working directory cannot be determined"
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 as_fn_error $?
"pwd does not report name of working directory"
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted
=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir
=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1299 ac_srcdir_defaulted
=no
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1303 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1305 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1317 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 for ac_var
in $ac_precious_vars; do
1320 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1322 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1327 # Report the --help message.
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1333 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1340 Defaults for the options are specified in brackets.
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking ...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1364 For better control, use the options below.
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1396 --build=BUILD configure
for building on BUILD
[guessed
]
1397 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1398 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive
) echo "Configuration of gdbsupport 1.0:";;
1409 --disable-option-checking ignore unrecognized
--enable/--with options
1410 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1411 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1412 --enable-maintainer-mode
1413 enable make rules and dependencies not useful
(and
1414 sometimes confusing
) to the casual installer
1415 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1416 --disable-silent-rules verbose build output
(undo
: "make V=0")
1417 --enable-dependency-tracking
1418 do not reject slow dependency extractors
1419 --disable-dependency-tracking
1420 speeds up one-time build
1421 --enable-plugins Enable support
for plugins
1422 --disable-largefile omit support
for large files
1423 --enable-threading include support
for parallel processing of data
1425 --disable-rpath do not hardcode runtime library paths
1426 --enable-unit-tests Enable the inclusion of unit tests when compiling
1428 --enable-werror treat compile warnings as errors
1429 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1430 --enable-gdb-build-warnings
1431 enable GDB specific build-time compiler warnings
if
1435 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1436 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1437 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1438 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1439 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1440 --without-libipt-prefix don
't search for libipt in includedir and libdir
1441 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CXX C++ compiler command
1452 CXXFLAGS C++ compiler flags
1455 Use these variables to override the choices made by `configure' or to
help
1456 it to
find libraries and programs with nonstandard names
/locations.
1458 Report bugs to the package provider.
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1472 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1474 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1479 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1482 ac_abs_top_builddir
=$ac_pwd
1483 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir
=$ac_top_build_prefix
1488 .
) # We are building in place.
1490 ac_top_srcdir
=$ac_top_builddir_sub
1491 ac_abs_top_srcdir
=$ac_pwd ;;
1492 [\\/]* | ?
:[\\/]* ) # Absolute name.
1493 ac_srcdir
=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir
=$srcdir
1495 ac_abs_top_srcdir
=$srcdir ;;
1497 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1501 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1503 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1521 gdbsupport configure
1.0
1522 generated by GNU Autoconf
2.69
1524 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1525 This configure
script is free software
; the Free Software Foundation
1526 gives unlimited permission to copy
, distribute and modify it.
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile
()
1540 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1541 rm -f conftest.
$ac_objext
1542 if { { ac_try
="$ac_compile"
1544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext; then :
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569 as_fn_set_status $ac_retval
1571 } # ac_fn_c_try_compile
1573 # ac_fn_cxx_try_compile LINENO
1574 # ----------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_cxx_try_compile ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1583 *) ac_try_echo
=$ac_try;;
1585 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1589 if test -s conftest.err
; then
1590 grep -v '^ *+' conftest.err
>conftest.er1
1591 cat conftest.er1
>&5
1592 mv -f conftest.er1 conftest.err
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_cxx_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.
$ac_objext; then :
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.
$ac_ext >&5
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status
$ac_retval
1609 } # ac_fn_cxx_try_compile
1611 # ac_fn_c_try_cpp LINENO
1612 # ----------------------
1613 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1616 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1617 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } > conftest.i && {
1633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1648 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1651 # the include files in INCLUDES and setting the cache variable VAR
1653 ac_fn_c_check_header_mongrel ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if eval \${$3+:} false; then :
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658 $as_echo_n "checking for $2... " >&6; }
1659 if eval \${$3+:} false; then :
1660 $as_echo_n "(cached) " >&6
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1666 # Is the header compilable?
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1668 $as_echo_n "checking $2 usability... " >&6; }
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675 ac_header_compiler=yes
1677 ac_header_compiler=no
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1681 $as_echo "$ac_header_compiler" >&6; }
1683 # Is the header present?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1685 $as_echo_n "checking $2 presence... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1690 if ac_fn_c_try_cpp "$LINENO"; then :
1691 ac_header_preproc=yes
1693 ac_header_preproc=no
1695 rm -f conftest.err conftest.i conftest.$ac_ext
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1697 $as_echo "$ac_header_preproc" >&6; }
1699 # So? What about this header?
1700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1703 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1709 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1711 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1713 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1715 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1717 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1725 eval "$3=\$ac_header_compiler"
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 } # ac_fn_c_check_header_mongrel
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1745 *) ac_try_echo
=$ac_try;;
1747 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1769 ac_retval=$ac_status
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1777 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists and can be compiled using the include files in
1780 # INCLUDES, setting the cache variable VAR accordingly.
1781 ac_fn_c_check_header_compile ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1794 if ac_fn_c_try_compile "$LINENO"; then :
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 } # ac_fn_c_check_header_compile
1808 # ac_fn_c_try_link LINENO
1809 # -----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext conftest$ac_exeext
1815 if { { ac_try="$ac_link"
1817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1818 *) ac_try_echo
=$ac_try;;
1820 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1824 if test -s conftest.err
; then
1825 grep -v '^ *+' conftest.err
>conftest.er1
1826 cat conftest.er1
>&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest
$ac_exeext && {
1834 test "$cross_compiling" = yes ||
1835 test -x conftest
$ac_exeext
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.
$ac_ext >&5
1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846 # interfere with the next link command; also delete a directory that is
1847 # left behind by Apple's compiler. We do this before executing the actions.
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status
$ac_retval
1852 } # ac_fn_c_try_link
1854 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1855 # -------------------------------------------
1856 # Tests whether TYPE exists after having included INCLUDES, setting cache
1857 # variable VAR accordingly.
1858 ac_fn_c_check_type
()
1860 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \
${$3+:} false
; then :
1864 $as_echo_n "(cached) " >&6
1867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1879 if ac_fn_c_try_compile
"$LINENO"; then :
1880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1892 if ac_fn_c_try_compile
"$LINENO"; then :
1897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 } # ac_fn_c_check_type
1908 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1909 # --------------------------------------------
1910 # Tries to find the compile-time value of EXPR in a program that includes
1911 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1913 ac_fn_c_compute_int
()
1915 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1916 if test "$cross_compiling" = yes; then
1917 # Depending upon the size, compute the lo and hi bounds.
1918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1924 static int test_array [1 - 2 * !(($2) >= 0)];
1926 return test_array [0];
1932 if ac_fn_c_try_compile
"$LINENO"; then :
1935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1941 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1943 return test_array [0];
1949 if ac_fn_c_try_compile
"$LINENO"; then :
1950 ac_hi
=$ac_mid; break
1952 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1953 if test $ac_lo -le $ac_mid; then
1957 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1968 static int test_array [1 - 2 * !(($2) < 0)];
1970 return test_array [0];
1976 if ac_fn_c_try_compile
"$LINENO"; then :
1979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1985 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1987 return test_array [0];
1993 if ac_fn_c_try_compile
"$LINENO"; then :
1994 ac_lo
=$ac_mid; break
1996 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1997 if test $ac_mid -le $ac_hi; then
2001 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2011 # Binary search between lo and hi bounds.
2012 while test "x$ac_lo" != "x$ac_hi"; do
2013 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2020 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2022 return test_array [0];
2028 if ac_fn_c_try_compile
"$LINENO"; then :
2031 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2036 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2043 static long int longval () { return $2; }
2044 static unsigned long int ulongval () { return $2; }
2051 FILE *f = fopen ("conftest.val", "w");
2056 long int i = longval ();
2059 fprintf (f, "%ld", i);
2063 unsigned long int i = ulongval ();
2066 fprintf (f, "%lu", i);
2068 /* Do not output a trailing newline, as this causes \r\n confusion
2069 on some platforms. */
2070 return ferror (f) || fclose (f) != 0;
2076 if ac_fn_c_try_run
"$LINENO"; then :
2077 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status
$ac_retval
2089 } # ac_fn_c_compute_int
2091 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2092 # ---------------------------------------------
2093 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2095 ac_fn_c_check_decl
()
2097 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2098 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2099 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2101 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2102 if eval \
${$3+:} false
; then :
2103 $as_echo_n "(cached) " >&6
2105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2111 #ifndef $as_decl_name
2113 (void) $as_decl_use;
2115 (void) $as_decl_name;
2123 if ac_fn_c_try_compile
"$LINENO"; then :
2128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 } # ac_fn_c_check_decl
2137 # ac_fn_c_check_func LINENO FUNC VAR
2138 # ----------------------------------
2139 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2140 ac_fn_c_check_func
()
2142 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \
${$3+:} false
; then :
2146 $as_echo_n "(cached) " >&6
2148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2152 #define $2 innocuous_$2
2154 /* System header to define __stub macros and hopefully few prototypes,
2155 which can conflict with char $2 (); below.
2156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2157 <limits.h> exists even on freestanding compilers. */
2160 # include <limits.h>
2162 # include <assert.h>
2167 /* Override any GCC internal prototype to avoid an error.
2168 Use char because int might match the return type of a GCC
2169 builtin and then its argument prototype would still apply. */
2174 /* The GNU C library defines this for functions which it implements
2175 to always fail with ENOSYS. Some functions are actually named
2176 something starting with __ and the normal name is an alias. */
2177 #if defined __stub_$2 || defined __stub___$2
2189 if ac_fn_c_try_link
"$LINENO"; then :
2194 rm -f core conftest.err conftest.
$ac_objext \
2195 conftest
$ac_exeext conftest.
$ac_ext
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 } # ac_fn_c_check_func
2204 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2205 # ----------------------------------------------------
2206 # Tries to find if the field MEMBER exists in type AGGR, after including
2207 # INCLUDES, setting cache variable VAR accordingly.
2208 ac_fn_c_check_member
()
2210 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2212 $as_echo_n "checking for $2.$3... " >&6; }
2213 if eval \
${$4+:} false
; then :
2214 $as_echo_n "(cached) " >&6
2216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2229 if ac_fn_c_try_compile
"$LINENO"; then :
2232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2239 if (sizeof ac_aggr.$3)
2245 if ac_fn_c_try_compile
"$LINENO"; then :
2250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 } # ac_fn_c_check_member
2261 # ac_fn_cxx_try_link LINENO
2262 # -------------------------
2263 # Try to link conftest.$ac_ext, and return whether this succeeded.
2264 ac_fn_cxx_try_link
()
2266 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2267 rm -f conftest.
$ac_objext conftest
$ac_exeext
2268 if { { ac_try
="$ac_link"
2270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 $as_echo "$ac_try_echo"; } >&5
2275 (eval "$ac_link") 2>conftest.err
2277 if test -s conftest.err; then
2278 grep -v '^ *+' conftest.err >conftest.er1
2279 cat conftest.er1 >&5
2280 mv -f conftest.er1 conftest.err
2282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2283 test $ac_status = 0; } && {
2284 test -z "$ac_cxx_werror_flag" ||
2285 test ! -s conftest.err
2286 } && test -s conftest$ac_exeext && {
2287 test "$cross_compiling" = yes ||
2288 test -x conftest$ac_exeext
2292 $as_echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2297 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2298 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2299 # interfere with the next link command; also delete a directory that is
2300 # left behind by Apple's compiler. We do this before executing the actions.
2301 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2302 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303 as_fn_set_status $ac_retval
2305 } # ac_fn_cxx_try_link
2307 # ac_fn_cxx_check_func LINENO FUNC VAR
2308 # ------------------------------------
2309 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2310 ac_fn_cxx_check_func ()
2312 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2314 $as_echo_n "checking for $2... " >&6; }
2315 if eval \${$3+:} false; then :
2316 $as_echo_n "(cached) " >&6
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2320 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2322 #define $2 innocuous_$2
2324 /* System header to define __stub macros and hopefully few prototypes,
2325 which can conflict with char $2 (); below.
2326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2327 <limits.h> exists even on freestanding compilers. */
2330 # include <limits.h>
2332 # include <assert.h>
2337 /* Override any GCC internal prototype to avoid an error.
2338 Use char because int might match the return type of a GCC
2339 builtin and then its argument prototype would still apply. */
2344 /* The GNU C library defines this for functions which it implements
2345 to always fail with ENOSYS. Some functions are actually named
2346 something starting with __ and the normal name is an alias. */
2347 #if defined __stub_$2 || defined __stub___$2
2359 if ac_fn_cxx_try_link "$LINENO"; then :
2364 rm -f core conftest.err conftest.$ac_objext \
2365 conftest$ac_exeext conftest.$ac_ext
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2372 } # ac_fn_cxx_check_func
2373 cat >config.log <<_ACEOF
2374 This file contains any messages produced by compilers while
2375 running configure, to aid debugging if configure makes a mistake.
2377 It was created by gdbsupport $as_me 1.0, which was
2378 generated by GNU Autoconf 2.69. Invocation command line was
2390 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2391 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2392 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2393 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2394 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2396 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2397 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2399 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2400 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2401 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2402 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2403 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2404 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2405 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 $as_echo "PATH: $as_dir"
2430 # Keep a trace of the command line.
2431 # Strip out --no-create and --no-recursion so they do not pile up.
2432 # Strip out --silent because we don't want to record it for future runs.
2433 # Also quote any args containing shell meta-characters.
2434 # Make two passes to allow for proper duplicate-argument suppression.
2438 ac_must_keep_next=false
2444 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2445 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2446 | -silent | --silent | --silen | --sile | --sil)
2449 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2452 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2454 as_fn_append ac_configure_args1 " '$ac_arg'"
2455 if test $ac_must_keep_next = true; then
2456 ac_must_keep_next=false # Got value, back to normal.
2459 *=* | --config-cache | -C | -disable-* | --disable-* \
2460 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2461 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2462 | -with-* | --with-* | -without-* | --without-* | --x)
2463 case "$ac_configure_args0 " in
2464 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2467 -* ) ac_must_keep_next=true ;;
2470 as_fn_append ac_configure_args " '$ac_arg'"
2475 { ac_configure_args0=; unset ac_configure_args0;}
2476 { ac_configure_args1=; unset ac_configure_args1;}
2478 # When interrupted or exit'd, cleanup temporary files, and complete
2479 # config.log. We remove comments because anyway the quotes in there
2480 # would cause problems or look ugly.
2481 # WARNING: Use '\'' to represent an apostrophe within the trap.
2482 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2483 trap 'exit_status=$?
2484 # Save into config.log some information that might help in debugging.
2488 $as_echo "## ---------------- ##
2489 ## Cache variables. ##
2490 ## ---------------- ##"
2492 # The following way of writing the cache mishandles newlines in values,
2494 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2495 eval ac_val=\$$ac_var
2499 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2500 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2503 _ | IFS | as_nl) ;; #(
2504 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2505 *) { eval $ac_var=; unset $ac_var;} ;;
2510 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2511 *${as_nl}ac_space=\ *)
2513 "s/'\''/'\''\\\\'\'''\''/g;
2514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2517 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2524 $as_echo "## ----------------- ##
2525 ## Output variables. ##
2526 ## ----------------- ##"
2528 for ac_var in $ac_subst_vars
2530 eval ac_val=\$$ac_var
2532 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2534 $as_echo "$ac_var='\''$ac_val'\''"
2538 if test -n "$ac_subst_files"; then
2539 $as_echo "## ------------------- ##
2540 ## File substitutions. ##
2541 ## ------------------- ##"
2543 for ac_var in $ac_subst_files
2545 eval ac_val=\$$ac_var
2547 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2549 $as_echo "$ac_var='\''$ac_val'\''"
2554 if test -s confdefs.h; then
2555 $as_echo "## ----------- ##
2562 test "$ac_signal" != 0 &&
2563 $as_echo "$as_me: caught signal $ac_signal"
2564 $as_echo "$as_me: exit $exit_status"
2566 rm -f core *.core core.conftest.* &&
2567 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2570 for ac_signal in 1 2 13 15; do
2571 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2575 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2576 rm -f -r conftest* confdefs.h
2578 $as_echo "/* confdefs.h */" > confdefs.h
2580 # Predefined preprocessor variables.
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_NAME "$PACKAGE_NAME"
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_STRING "$PACKAGE_STRING"
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_URL "$PACKAGE_URL"
2607 # Let the site file select an alternate cache file if it wants to.
2608 # Prefer an explicitly selected file to automatically selected ones.
2611 if test -n "$CONFIG_SITE"; then
2612 # We do not want a PATH search for config.site.
2613 case $CONFIG_SITE in #((
2614 -*) ac_site_file1=./$CONFIG_SITE;;
2615 */*) ac_site_file1=$CONFIG_SITE;;
2616 *) ac_site_file1=./$CONFIG_SITE;;
2618 elif test "x$prefix" != xNONE; then
2619 ac_site_file1=$prefix/share/config.site
2620 ac_site_file2=$prefix/etc/config.site
2622 ac_site_file1=$ac_default_prefix/share/config.site
2623 ac_site_file2=$ac_default_prefix/etc/config.site
2625 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2627 test "x$ac_site_file" = xNONE && continue
2628 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2630 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2631 sed 's/^/| /' "$ac_site_file" >&5
2633 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2635 as_fn_error $? "failed to load site
script $ac_site_file
2636 See \
`config.log' for more details" "$LINENO" 5; }
2640 if test -r "$cache_file"; then
2641 # Some versions of bash will fail to source /dev/null (special files
2642 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2643 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2645 $as_echo "$as_me: loading cache $cache_file" >&6;}
2647 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2648 *) . "./$cache_file";;
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2653 $as_echo "$as_me: creating cache $cache_file" >&6;}
2657 as_fn_append ac_header_list " stdlib.h"
2658 as_fn_append ac_header_list " unistd.h"
2659 as_fn_append ac_header_list " sys/param.h"
2660 # Check that the precious variables saved in the cache have kept the same
2662 ac_cache_corrupted=false
2663 for ac_var in $ac_precious_vars; do
2664 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2665 eval ac_new_set=\$ac_env_${ac_var}_set
2666 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2667 eval ac_new_val=\$ac_env_${ac_var}_value
2668 case $ac_old_set,$ac_new_set in
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2671 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2672 ac_cache_corrupted=: ;;
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2675 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2676 ac_cache_corrupted=: ;;
2679 if test "x$ac_old_val" != "x$ac_new_val"; then
2680 # differences in whitespace do not lead to failure.
2681 ac_old_val_w=`echo x
$ac_old_val`
2682 ac_new_val_w=`echo x
$ac_new_val`
2683 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2685 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2686 ac_cache_corrupted=:
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2689 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2690 eval $ac_var=\$ac_old_val
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2693 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2695 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2698 # Pass precious variables to config.status.
2699 if test "$ac_new_set" = set; then
2701 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2702 *) ac_arg=$ac_var=$ac_new_val ;;
2704 case " $ac_configure_args " in
2705 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2706 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2710 if $ac_cache_corrupted; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2714 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2715 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2717 ## -------------------- ##
2718 ## Main body of script. ##
2719 ## -------------------- ##
2722 ac_cpp='$CPP $CPPFLAGS'
2723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732 ac_config_headers="$ac_config_headers config.h:config.in"
2735 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2736 if test -f "$ac_dir/install-sh"; then
2738 ac_install_sh="$ac_aux_dir/install-sh -c"
2740 elif test -f "$ac_dir/install.sh"; then
2742 ac_install_sh="$ac_aux_dir/install.sh -c"
2744 elif test -f "$ac_dir/shtool"; then
2746 ac_install_sh="$ac_aux_dir/shtool install -c"
2750 if test -z "$ac_aux_dir"; then
2751 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2754 # These three variables are undocumented and unsupported,
2755 # and are intended to be withdrawn in a future Autoconf release.
2756 # They can cause serious problems if a builder's source tree is in a directory
2757 # whose full name contains unusual characters.
2758 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2759 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2760 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2763 # Make sure we can run config.sub.
2764 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2765 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2768 $as_echo_n "checking build system type... " >&6; }
2769 if ${ac_cv_build+:} false; then :
2770 $as_echo_n "(cached) " >&6
2772 ac_build_alias=$build_alias
2773 test "x$ac_build_alias" = x &&
2774 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2775 test "x$ac_build_alias" = x &&
2776 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2777 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2782 $as_echo "$ac_cv_build" >&6; }
2783 case $ac_cv_build in
2785 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2788 ac_save_IFS=$IFS; IFS='-'
2794 # Remember, the first character of IFS is used to create $*,
2795 # except with old shells:
2798 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2802 $as_echo_n "checking host system type... " >&6; }
2803 if ${ac_cv_host+:} false; then :
2804 $as_echo_n "(cached) " >&6
2806 if test "x$host_alias" = x; then
2807 ac_cv_host=$ac_cv_build
2809 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2815 $as_echo "$ac_cv_host" >&6; }
2818 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2821 ac_save_IFS=$IFS; IFS='-'
2827 # Remember, the first character of IFS is used to create $*,
2828 # except with old shells:
2831 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2835 $as_echo_n "checking target system type... " >&6; }
2836 if ${ac_cv_target+:} false; then :
2837 $as_echo_n "(cached) " >&6
2839 if test "x$target_alias" = x; then
2840 ac_cv_target=$ac_cv_host
2842 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2843 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2848 $as_echo "$ac_cv_target" >&6; }
2849 case $ac_cv_target in
2851 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2853 target=$ac_cv_target
2854 ac_save_IFS=$IFS; IFS='-'
2860 # Remember, the first character of IFS is used to create $*,
2861 # except with old shells:
2864 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2867 # The aliases save the names the user supplied, while $host etc.
2868 # will get canonicalized.
2869 test -n "$target_alias" &&
2870 test "$program_prefix$program_suffix$program_transform_name" = \
2872 program_prefix=${target_alias}-
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2876 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2877 # Check whether --enable-maintainer-mode was given.
2878 if test "${enable_maintainer_mode+set}" = set; then :
2879 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2881 USE_MAINTAINER_MODE=no
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2885 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2886 if test $USE_MAINTAINER_MODE = yes; then
2887 MAINTAINER_MODE_TRUE=
2888 MAINTAINER_MODE_FALSE='#'
2890 MAINTAINER_MODE_TRUE='#'
2891 MAINTAINER_MODE_FALSE=
2894 MAINT=$MAINTAINER_MODE_TRUE
2898 for ac_dir in .. "$srcdir"/..; do
2899 if test -f "$ac_dir/install-sh"; then
2901 ac_install_sh="$ac_aux_dir/install-sh -c"
2903 elif test -f "$ac_dir/install.sh"; then
2905 ac_install_sh="$ac_aux_dir/install.sh -c"
2907 elif test -f "$ac_dir/shtool"; then
2909 ac_install_sh="$ac_aux_dir/shtool install -c"
2913 if test -z "$ac_aux_dir"; then
2914 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2917 # These three variables are undocumented and unsupported,
2918 # and are intended to be withdrawn in a future Autoconf release.
2919 # They can cause serious problems if a builder's source tree is in a directory
2920 # whose full name contains unusual characters.
2921 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2922 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2923 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2926 am__api_version='1.15'
2928 # Find a good install program. We prefer a C program (faster),
2929 # so one script is as good as another. But avoid the broken or
2930 # incompatible versions:
2931 # SysV /etc/install, /usr/sbin/install
2932 # SunOS /usr/etc/install
2933 # IRIX /sbin/install
2935 # AmigaOS /C/install, which installs bootblocks on floppy discs
2936 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2937 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2938 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2939 # OS/2's system install, which has a completely different semantic
2940 # ./install, which can be erroneously created by make from ./install.sh.
2941 # Reject install programs that cannot install multiple files.
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2943 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2944 if test -z "$INSTALL"; then
2945 if ${ac_cv_path_install+:} false; then :
2946 $as_echo_n "(cached) " >&6
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 # Account for people who put trailing slashes in PATH elements.
2954 case $as_dir/ in #((
2955 ./ | .// | /[cC]/* | \
2956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2957 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2960 # OSF1 and SCO ODT 3.0 have their own names for install.
2961 # Don't use installbsd from OSF since it installs stuff as root
2963 for ac_prog in ginstall scoinst install; do
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2966 if test $ac_prog = install &&
2967 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2968 # AIX install. It has an incompatible calling convention.
2970 elif test $ac_prog = install &&
2971 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972 # program-specific install script used by HP pwplus--don't use.
2975 rm -rf conftest.one conftest.two conftest.dir
2976 echo one > conftest.one
2977 echo two > conftest.two
2979 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2980 test -s conftest.one && test -s conftest.two &&
2981 test -s conftest.dir/conftest.one &&
2982 test -s conftest.dir/conftest.two
2984 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2997 rm -rf conftest.one conftest.two conftest.dir
3000 if test "${ac_cv_path_install+set}" = set; then
3001 INSTALL=$ac_cv_path_install
3003 # As a last resort, use the slow shell script. Don't cache a
3004 # value for INSTALL within a source directory, because that will
3005 # break other packages using the cache if that directory is
3006 # removed, or if the value is a relative name.
3007 INSTALL=$ac_install_sh
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3011 $as_echo "$INSTALL" >&6; }
3013 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3014 # It thinks the first close brace ends the variable substitution.
3015 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3017 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3019 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3022 $as_echo_n "checking whether build environment is sane... " >&6; }
3023 # Reject unsafe characters in $srcdir or the absolute working directory
3024 # name. Accept space and tab only in the latter.
3028 *[\\\"\#\$\&\'\`$am_lf]*)
3029 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3032 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3033 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3036 # Do 'set' in a subshell so we don't clobber the current shell's
3037 # arguments. Must try -L first in case configure is actually a
3038 # symlink; some systems play weird games with the mod time of symlinks
3039 # (eg FreeBSD returns the mod time of the symlink's containing
3043 for am_try
in 1 2; do
3044 echo "timestamp, slept: $am_has_slept" > conftest.
file
3045 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3046 if test "$*" = "X"; then
3048 set X
`ls -t "$srcdir/configure" conftest.file`
3050 if test "$*" != "X $srcdir/configure conftest.file" \
3051 && test "$*" != "X conftest.file $srcdir/configure"; then
3053 # If neither matched, then we have a broken ls. This can happen
3054 # if, for instance, CONFIG_SHELL is bash and it inherits a
3055 # broken ls alias from the environment. This has actually
3056 # happened. Such a system could not be considered "sane".
3057 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3058 alias in your environment" "$LINENO" 5
3060 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3067 test "$2" = conftest.
file
3073 as_fn_error $?
"newly created file is older than distributed files!
3074 Check your system clock" "$LINENO" 5
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3077 $as_echo "yes" >&6; }
3078 # If we didn't sleep, we still need to ensure time stamps of config.status and
3079 # generated files are strictly newer.
3081 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3088 test "$program_prefix" != NONE
&&
3089 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3090 # Use a double $ so make ignores it.
3091 test "$program_suffix" != NONE
&&
3092 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3093 # Double any \ or $.
3094 # By default was `s,x,x', remove it if useless.
3095 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3096 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3098 # Expand $ac_aux_dir to an absolute path.
3099 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3101 if test x
"${MISSING+set}" != xset
; then
3104 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3106 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3109 # Use eval to expand $SHELL
3110 if eval "$MISSING --is-lightweight"; then
3111 am_missing_run
="$MISSING "
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3115 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3118 if test x
"${install_sh+set}" != xset
; then
3121 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3123 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3127 # Installed binaries are usually stripped using 'strip' when the user
3128 # run "make install-strip". However 'strip' might not be the right
3129 # tool to use in cross-compilation environments, therefore Automake
3130 # will honor the 'STRIP' environment variable to overrule this program.
3131 if test "$cross_compiling" != no
; then
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3134 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_STRIP+:} false
; then :
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$STRIP"; then
3141 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir
=.
3148 for ac_exec_ext
in '' $ac_executable_extensions; do
3149 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 STRIP
=$ac_cv_prog_STRIP
3161 if test -n "$STRIP"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3163 $as_echo "$STRIP" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3171 if test -z "$ac_cv_prog_STRIP"; then
3173 # Extract the first word of "strip", so it can be a program name with args.
3174 set dummy strip
; ac_word
=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3178 $as_echo_n "(cached) " >&6
3180 if test -n "$ac_ct_STRIP"; then
3181 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir
=.
3188 for ac_exec_ext
in '' $ac_executable_extensions; do
3189 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_ac_ct_STRIP
="strip"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3201 if test -n "$ac_ct_STRIP"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3203 $as_echo "$ac_ct_STRIP" >&6; }
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3209 if test "x$ac_ct_STRIP" = x
; then
3212 case $cross_compiling:$ac_tool_warned in
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3216 ac_tool_warned
=yes ;;
3221 STRIP
="$ac_cv_prog_STRIP"
3225 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3228 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3229 if test -z "$MKDIR_P"; then
3230 if ${ac_cv_path_mkdir+:} false
; then :
3231 $as_echo_n "(cached) " >&6
3233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3234 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3237 test -z "$as_dir" && as_dir
=.
3238 for ac_prog
in mkdir gmkdir
; do
3239 for ac_exec_ext
in '' $ac_executable_extensions; do
3240 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3241 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3242 'mkdir (GNU coreutils) '* | \
3243 'mkdir (coreutils) '* | \
3244 'mkdir (fileutils) '4.1*)
3245 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3255 test -d .
/--version && rmdir .
/--version
3256 if test "${ac_cv_path_mkdir+set}" = set; then
3257 MKDIR_P
="$ac_cv_path_mkdir -p"
3259 # As a last resort, use the slow shell script. Don't cache a
3260 # value for MKDIR_P within a source directory, because that will
3261 # break other packages using the cache if that directory is
3262 # removed, or if the value is a relative name.
3263 MKDIR_P
="$ac_install_sh -d"
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3267 $as_echo "$MKDIR_P" >&6; }
3269 for ac_prog
in gawk mawk nawk
awk
3271 # Extract the first word of "$ac_prog", so it can be a program name with args.
3272 set dummy
$ac_prog; ac_word
=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_AWK+:} false
; then :
3276 $as_echo_n "(cached) " >&6
3278 if test -n "$AWK"; then
3279 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir
=.
3286 for ac_exec_ext
in '' $ac_executable_extensions; do
3287 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_AWK
="$ac_prog"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 if test -n "$AWK"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3301 $as_echo "$AWK" >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3308 test -n "$AWK" && break
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3312 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3314 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3315 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3316 $as_echo_n "(cached) " >&6
3318 cat >conftest.
make <<\_ACEOF
3321 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3323 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3324 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3326 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3328 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3332 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3334 $as_echo "yes" >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3339 SET_MAKE
="MAKE=${MAKE-make}"
3342 rm -rf .tst
2>/dev
/null
3343 mkdir .tst
2>/dev
/null
3344 if test -d .tst
; then
3349 rmdir .tst
2>/dev
/null
3351 # Check whether --enable-silent-rules was given.
3352 if test "${enable_silent_rules+set}" = set; then :
3353 enableval
=$enable_silent_rules;
3356 case $enable_silent_rules in # (((
3357 yes) AM_DEFAULT_VERBOSITY
=0;;
3358 no
) AM_DEFAULT_VERBOSITY
=1;;
3359 *) AM_DEFAULT_VERBOSITY
=1;;
3361 am_make
=${MAKE-make}
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3363 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3364 if ${am_cv_make_support_nested_variables+:} false
; then :
3365 $as_echo_n "(cached) " >&6
3367 if $as_echo 'TRUE=$(BAR$(V))
3373 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3374 am_cv_make_support_nested_variables
=yes
3376 am_cv_make_support_nested_variables
=no
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3380 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3381 if test $am_cv_make_support_nested_variables = yes; then
3383 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3385 AM_V
=$AM_DEFAULT_VERBOSITY
3386 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3390 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3391 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3392 # is not polluted with repeated "-I."
3393 am__isrc
=' -I$(srcdir)'
3394 # test to see if srcdir already configured
3395 if test -f $srcdir/config.status
; then
3396 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3400 # test whether we have cygpath
3401 if test -z "$CYGPATH_W"; then
3402 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3403 CYGPATH_W
='cygpath -w'
3410 # Define the identity of the package.
3411 PACKAGE
='gdbsupport'
3415 cat >>confdefs.h
<<_ACEOF
3416 #define PACKAGE "$PACKAGE"
3420 cat >>confdefs.h
<<_ACEOF
3421 #define VERSION "$VERSION"
3424 # Some tools Automake needs.
3426 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3429 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3432 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3435 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3438 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3440 # For better backward compatibility. To be removed once Automake 1.9.x
3441 # dies out for good. For more background, see:
3442 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3443 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3444 mkdir_p
='$(MKDIR_P)'
3446 # We need awk for the "check" target (and possibly the TAP driver). The
3447 # system "awk" is bad on some platforms.
3448 # Always define AMTAR for backward compatibility. Yes, it's still used
3449 # in the wild :-( We should find a proper way to deprecate it ...
3453 # We'll loop over all known methods to create a tar archive until one works.
3454 _am_tools
='gnutar pax cpio none'
3456 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3463 # POSIX will say in a future version that running "rm -f" with no argument
3464 # is OK; and we want to be able to make that assumption in our Makefile
3465 # recipes. So use an aggressive probe to check that the usage we want is
3466 # actually supported "in the wild" to an acceptable degree.
3467 # See automake bug#10828.
3468 # To make any issue more visible, cause the running configure to be aborted
3469 # by default if the 'rm' program in use doesn't match our expectations; the
3470 # user can still override this though.
3471 if rm -f && rm -fr && rm -rf; then : OK
; else
3475 Your 'rm' program seems unable to run without file operands specified
3476 on the command line, even when the '-f' option is present. This is contrary
3477 to the behaviour of most rm programs out there, and not conforming with
3478 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3480 Please tell bug-automake@gnu.org about your system, including the value
3481 of your $PATH and any error possibly output before this message. This
3482 can help us improve future automake versions.
3485 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3486 echo 'Configuration will proceed anyway, since you have set the' >&2
3487 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3491 Aborting the configuration process, to ensure you take notice of the issue.
3493 You can download and install GNU coreutils to get an 'rm' implementation
3494 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3496 If you want to complete the configuration process using your problematic
3497 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3498 to "yes", and re-run configure.
3501 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3505 # Check whether --enable-silent-rules was given.
3506 if test "${enable_silent_rules+set}" = set; then :
3507 enableval
=$enable_silent_rules;
3510 case $enable_silent_rules in # (((
3511 yes) AM_DEFAULT_VERBOSITY
=0;;
3512 no
) AM_DEFAULT_VERBOSITY
=1;;
3513 *) AM_DEFAULT_VERBOSITY
=0;;
3515 am_make
=${MAKE-make}
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3517 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3518 if ${am_cv_make_support_nested_variables+:} false
; then :
3519 $as_echo_n "(cached) " >&6
3521 if $as_echo 'TRUE=$(BAR$(V))
3527 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3528 am_cv_make_support_nested_variables
=yes
3530 am_cv_make_support_nested_variables
=no
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3534 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3535 if test $am_cv_make_support_nested_variables = yes; then
3537 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3539 AM_V
=$AM_DEFAULT_VERBOSITY
3540 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3548 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if ${ac_cv_prog_CC+:} false; then :
3556 $as_echo_n "(cached) " >&6
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3589 if test -z "$ac_cv_prog_CC"; then
3591 # Extract the first word of "gcc", so it can be a program name with args.
3592 set dummy gcc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="gcc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3621 $as_echo "$ac_ct_CC" >&6; }
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3627 if test "x$ac_ct_CC" = x; then
3630 case $cross_compiling:$ac_tool_warned in
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634 ac_tool_warned=yes ;;
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}cc; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if ${ac_cv_prog_CC+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_CC="${ac_tool_prefix}cc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 # Extract the first word of "cc", so it can be a program name with args.
3685 set dummy cc; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if ${ac_cv_prog_CC+:} false; then :
3689 $as_echo_n "(cached) " >&6
3691 if test -n "$CC"; then
3692 ac_cv_prog_CC="$CC" # Let the user override the test.
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3703 ac_prog_rejected=yes
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 if test $ac_prog_rejected = yes; then
3715 # We found a bogon in the path, so make sure we never use it.
3716 set dummy $ac_cv_prog_CC
3718 if test $# != 0; then
3719 # We chose a different compiler from the bogus one.
3720 # However, it has the same basename, so the bogon will be chosen
3721 # first if we set CC to just the basename; use the full file name.
3723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3739 if test -z "$CC"; then
3740 if test -n "$ac_tool_prefix"; then
3741 for ac_prog in cl.exe
3743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_CC+:} false; then :
3748 $as_echo_n "(cached) " >&6
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$CC" && break
3783 if test -z "$CC"; then
3785 for ac_prog in cl.exe
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788 set dummy $ac_prog; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3792 $as_echo_n "(cached) " >&6
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_ac_ct_CC="$ac_prog"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3824 test -n "$ac_ct_CC" && break
3827 if test "x$ac_ct_CC" = x; then
3830 case $cross_compiling:$ac_tool_warned in
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834 ac_tool_warned=yes ;;
3843 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3845 as_fn_error $? "no acceptable C compiler found in \$PATH
3846 See \`config.log
' for more details" "$LINENO" 5; }
3848 # Provide some information about the compiler.
3849 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3852 for ac_option in --version -v -V -qversion; do
3853 { { ac_try="$ac_compiler $ac_option >&5"
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3862 if test -s conftest.err; then
3864 ... rest of stderr output deleted ...
3865 10q
' conftest.err >conftest.er1
3866 cat conftest.er1 >&5
3868 rm -f conftest.er1 conftest.err
3869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870 test $ac_status = 0; }
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3884 ac_clean_files_save=$ac_clean_files
3885 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3886 # Try to create an executable without -o first, disregard a.out.
3887 # It will help us diagnose broken compilers, and finding out an intuition
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3890 $as_echo_n "checking whether the C compiler works... " >&6; }
3891 ac_link_default=`$as_echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
3893 # The possible output files:
3894 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3897 for ac_file in $ac_files
3900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3901 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3906 if { { ac_try="$ac_link_default"
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912 $as_echo "$ac_try_echo"; } >&5
3913 (eval "$ac_link_default") 2>&5
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }; then :
3917 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3918 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3919 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3920 # so that the user can short-circuit this test for compilers unknown to
3922 for ac_file
in $ac_files ''
3924 test -f "$ac_file" ||
continue
3926 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3929 # We found the default executable, but exeext='' is most
3933 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3935 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3937 # We set ac_cv_exeext here because the later test for it is not
3938 # safe: cross compilers may not add the suffix if given an `-o'
3939 # argument, so we may need to know it at that point already.
3940 # Even if this section looks crufty: it has the advantage of
3947 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3952 if test -z "$ac_file"; then :
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955 $as_echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.
$ac_ext >&5
3958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960 as_fn_error
77 "C compiler cannot create executables
3961 See \`config.log' for more details" "$LINENO" 5; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 $as_echo "yes" >&6; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3967 $as_echo_n "checking for C compiler default output file name... " >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3969 $as_echo "$ac_file" >&6; }
3970 ac_exeext
=$ac_cv_exeext
3972 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3973 ac_clean_files
=$ac_clean_files_save
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3975 $as_echo_n "checking for suffix of executables... " >&6; }
3976 if { { ac_try
="$ac_link"
3978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 $as_echo "$ac_try_echo"; } >&5
3983 (eval "$ac_link") 2>&5
3985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986 test $ac_status = 0; }; then :
3987 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3988 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3989 # work properly (i.e., refer to `conftest.exe'), while it won't with
3991 for ac_file
in conftest.exe conftest conftest.
*; do
3992 test -f "$ac_file" ||
continue
3994 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3995 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4003 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4004 See \`config.log' for more details" "$LINENO" 5; }
4006 rm -f conftest conftest
$ac_cv_exeext
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4008 $as_echo "$ac_cv_exeext" >&6; }
4010 rm -f conftest.
$ac_ext
4011 EXEEXT
=$ac_cv_exeext
4013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4019 FILE *f = fopen ("conftest.out", "w");
4020 return ferror (f) || fclose (f) != 0;
4026 ac_clean_files
="$ac_clean_files conftest.out"
4027 # Check that the compiler produces executables we can run. If not, either
4028 # the compiler is broken, or we cross compile.
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4030 $as_echo_n "checking whether we are cross compiling... " >&6; }
4031 if test "$cross_compiling" != yes; then
4032 { { ac_try
="$ac_link"
4034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039 (eval "$ac_link") 2>&5
4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042 test $ac_status = 0; }
4043 if { ac_try='./conftest$ac_cv_exeext'
4044 { { case "(($ac_try" in
4045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4046 *) ac_try_echo
=$ac_try;;
4048 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049 $as_echo "$ac_try_echo"; } >&5
4050 (eval "$ac_try") 2>&5
4052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }; }; then
4056 if test "$cross_compiling" = maybe
; then
4059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061 as_fn_error $?
"cannot run C compiled programs.
4062 If you meant to cross compile, use \`--host'.
4063 See \`config.log' for more details" "$LINENO" 5; }
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4068 $as_echo "$cross_compiling" >&6; }
4070 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4071 ac_clean_files
=$ac_clean_files_save
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4073 $as_echo_n "checking for suffix of object files... " >&6; }
4074 if ${ac_cv_objext+:} false
; then :
4075 $as_echo_n "(cached) " >&6
4077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 rm -f conftest.o conftest.obj
4089 if { { ac_try
="$ac_compile"
4091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095 $as_echo "$ac_try_echo"; } >&5
4096 (eval "$ac_compile") 2>&5
4098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099 test $ac_status = 0; }; then :
4100 for ac_file in conftest.o conftest.obj conftest.*; do
4101 test -f "$ac_file" || continue;
4103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4104 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4109 $as_echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4114 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4115 See \
`config.log' for more details" "$LINENO" 5; }
4117 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4120 $as_echo "$ac_cv_objext" >&6; }
4121 OBJEXT=$ac_cv_objext
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4124 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4125 if ${ac_cv_c_compiler_gnu+:} false; then :
4126 $as_echo_n "(cached) " >&6
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4142 if ac_fn_c_try_compile "$LINENO"; then :
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4152 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4153 if test $ac_compiler_gnu = yes; then
4158 ac_test_CFLAGS=${CFLAGS+set}
4159 ac_save_CFLAGS=$CFLAGS
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4161 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4162 if ${ac_cv_prog_cc_g+:} false; then :
4163 $as_echo_n "(cached) " >&6
4165 ac_save_c_werror_flag=$ac_c_werror_flag
4166 ac_c_werror_flag=yes
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4180 if ac_fn_c_try_compile "$LINENO"; then :
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4195 if ac_fn_c_try_compile "$LINENO"; then :
4198 ac_c_werror_flag=$ac_save_c_werror_flag
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4211 if ac_fn_c_try_compile "$LINENO"; then :
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 ac_c_werror_flag=$ac_save_c_werror_flag
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4222 $as_echo "$ac_cv_prog_cc_g" >&6; }
4223 if test "$ac_test_CFLAGS" = set; then
4224 CFLAGS=$ac_save_CFLAGS
4225 elif test $ac_cv_prog_cc_g = yes; then
4226 if test "$GCC" = yes; then
4232 if test "$GCC" = yes; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4239 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4240 if ${ac_cv_prog_cc_c89+:} false; then :
4241 $as_echo_n "(cached) " >&6
4243 ac_cv_prog_cc_c89=no
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4251 struct buf { int x; };
4252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4253 static char *e (p, i)
4259 static char *f (char * (*g) (char **, int), char **p, ...)
4264 s = g (p, va_arg (v,int));
4269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4270 function prototypes and stuff, but not '\xHH' hex character constants.
4271 These don't provoke an error unfortunately, instead are silently treated
4272 as 'x'. The following induces an error, until -std is added to get
4273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4274 array size at least. It's necessary to write '\x00'==0 to get something
4275 that's true only with -std. */
4276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4279 inside strings and character constants. */
4281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4283 int test (int i, double x);
4284 struct s1 {int (*f) (int a);};
4285 struct s2 {int (*f) (double a);};
4286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4292 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4300 CC="$ac_save_CC $ac_arg"
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_prog_cc_c89=$ac_arg
4304 rm -f core conftest.err conftest.$ac_objext
4305 test "x$ac_cv_prog_cc_c89" != "xno" && break
4307 rm -f conftest.$ac_ext
4312 case "x$ac_cv_prog_cc_c89" in
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315 $as_echo "none needed" >&6; } ;;
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318 $as_echo "unsupported" >&6; } ;;
4320 CC="$CC $ac_cv_prog_cc_c89"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4324 if test "x$ac_cv_prog_cc_c89" != xno; then :
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4340 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4341 if ${am_cv_prog_cc_c_o+:} false; then :
4342 $as_echo_n "(cached) " >&6
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4355 # Make sure it works both with $CC and with simple cc.
4356 # Following AC_PROG_CC_C_O, we do the test twice because some
4357 # compilers refuse to overwrite an existing .o file with -o,
4358 # though they will create one.
4359 am_cv_prog_cc_c_o=yes
4361 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4362 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } \
4366 && test -f conftest2.$ac_objext; then
4369 am_cv_prog_cc_c_o=no
4373 rm -f core conftest*
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4377 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4378 if test "$am_cv_prog_cc_c_o" != yes; then
4379 # Losing compiler, so override with the script.
4380 # FIXME: It is wrong to rewrite CC.
4381 # But if we don't then we get into trouble of one sort or another.
4382 # A longer-term fix would be to have automake use am__CC in this case,
4383 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4384 CC="$am_aux_dir/compile $CC"
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 DEPDIR="${am__leading_dot}deps"
4394 ac_config_commands="$ac_config_commands depfiles"
4397 am_make=${MAKE-make}
4398 cat > confinc << 'END'
4400 @echo this is the am__doit target
4403 # If we don't find an include directive, just comment out the code.
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4405 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4409 # First try GNU make style include.
4410 echo "include confinc" > confmf
4411 # Ignore all kinds of additional output from 'make'.
4412 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4413 *the\ am__doit\ target*)
4419 # Now try BSD make style include.
4420 if test "$am__include" = "#"; then
4421 echo '.include "confinc"' > confmf
4422 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4423 *the\ am__doit\ target*)
4424 am__include=.include
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4433 $as_echo "$_am_result" >&6; }
4434 rm -f confinc confmf
4436 # Check whether --enable-dependency-tracking was given.
4437 if test "${enable_dependency_tracking+set}" = set; then :
4438 enableval=$enable_dependency_tracking;
4441 if test "x$enable_dependency_tracking" != xno; then
4442 am_depcomp="$ac_aux_dir/depcomp"
4446 if test "x$enable_dependency_tracking" != xno; then
4456 depcc="$CC" am_compiler_list=
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4459 $as_echo_n "checking dependency style of $depcc... " >&6; }
4460 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4461 $as_echo_n "(cached) " >&6
4463 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4464 # We make a subdir and do the tests there. Otherwise we can end up
4465 # making bogus files that we don't know about and never remove. For
4466 # instance it was reported that on HP-UX the gcc test will end up
4467 # making a dummy file named 'D' -- because '-MD' means "put the output
4471 # Copy depcomp to subdir because otherwise we won't find it if we're
4472 # using a relative directory.
4473 cp "$am_depcomp" conftest.dir
4475 # We will build objects and dependencies in a subdirectory because
4476 # it helps to detect inapplicable dependency modes. For instance
4477 # both Tru64's cc and ICC support -MD to output dependencies as a
4478 # side effect of compilation, but ICC will put the dependencies in
4479 # the current directory while Tru64 will put them in the object
4483 am_cv_CC_dependencies_compiler_type=none
4484 if test "$am_compiler_list" = ""; then
4485 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4488 case " $depcc " in #(
4489 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4492 for depmode in $am_compiler_list; do
4493 # Setup a source with many dependencies, because some compilers
4494 # like to wrap large dependency lists on column 80 (with \), and
4495 # we should not choose a depcomp mode which is confused by this.
4497 # We need to recreate these files for each test, as the compiler may
4498 # overwrite some of them when testing with obscure command lines.
4499 # This happens at least with the AIX C compiler.
4501 for i in 1 2 3 4 5 6; do
4502 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4503 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4504 # Solaris 10 /bin/sh.
4505 echo '/* dummy */' > sub/conftst$i.h
4507 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4509 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4510 # mode. It turns out that the SunPro C++ compiler does not properly
4511 # handle '-M -o', and we need to detect this. Also, some Intel
4512 # versions had trouble with output in subdirs.
4513 am__obj=sub/conftest.${OBJEXT-o}
4514 am__minus_obj="-o $am__obj"
4517 # This depmode causes a compiler race in universal mode.
4518 test "$am__universal" = false || continue
4521 # After this tag, mechanisms are not by side-effect, so they'll
4522 # only be used when explicitly requested.
4523 if test "x$enable_dependency_tracking" = xyes; then
4529 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4530 # This compiler won't grok '-c -o', but also, the minuso test has
4531 # not run yet. These depmodes are late enough in the game, and
4532 # so weak that their functioning should not be impacted.
4533 am__obj=conftest.${OBJEXT-o}
4538 if depmode=$depmode \
4539 source=sub/conftest.c object=$am__obj \
4540 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4541 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4542 >/dev/null 2>conftest.err &&
4543 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4544 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4545 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4546 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4547 # icc doesn't choke on unknown options, it will just issue warnings
4548 # or remarks (even with -Werror). So we grep stderr for any message
4549 # that says an option was ignored or not supported.
4550 # When given -MP, icc 7.0 and 7.1 complain thusly:
4551 # icc: Command line warning: ignoring option '-M'; no argument required
4552 # The diagnosis changed in icc 8.0:
4553 # icc: Command line remark: option '-MP' not supported
4554 if (grep 'ignoring option' conftest.err ||
4555 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4556 am_cv_CC_dependencies_compiler_type=$depmode
4565 am_cv_CC_dependencies_compiler_type=none
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4570 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4571 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4574 test "x$enable_dependency_tracking" != xno \
4575 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4577 am__fastdepCC_FALSE='#'
4579 am__fastdepCC_TRUE='#'
4580 am__fastdepCC_FALSE=
4585 ac_cpp='$CXXCPP $CPPFLAGS'
4586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4589 if test -z "$CXX"; then
4590 if test -n "$CCC"; then
4593 if test -n "$ac_tool_prefix"; then
4594 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_CXX+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 if test -n "$CXX"; then
4604 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 if test -n "$CXX"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4626 $as_echo "$CXX" >&6; }
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4633 test -n "$CXX" && break
4636 if test -z "$CXX"; then
4638 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy $ac_prog; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4645 $as_echo_n "(cached) " >&6
4647 if test -n "$ac_ct_CXX"; then
4648 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_ac_ct_CXX="$ac_prog"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4668 if test -n "$ac_ct_CXX"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4670 $as_echo "$ac_ct_CXX" >&6; }
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4677 test -n "$ac_ct_CXX" && break
4680 if test "x$ac_ct_CXX" = x; then
4683 case $cross_compiling:$ac_tool_warned in
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687 ac_tool_warned=yes ;;
4695 # Provide some information about the compiler.
4696 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4699 for ac_option in --version -v -V -qversion; do
4700 { { ac_try="$ac_compiler $ac_option >&5"
4702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4703 *) ac_try_echo
=$ac_try;;
4705 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4706 $as_echo "$ac_try_echo"; } >&5
4707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4709 if test -s conftest.err
; then
4711 ... rest of stderr output deleted ...
4712 10q' conftest.err
>conftest.er1
4713 cat conftest.er1
>&5
4715 rm -f conftest.er1 conftest.err
4716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717 test $ac_status = 0; }
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4721 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4722 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4723 $as_echo_n "(cached) " >&6
4725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4739 if ac_fn_cxx_try_compile
"$LINENO"; then :
4744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4745 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4749 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4750 if test $ac_compiler_gnu = yes; then
4755 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4756 ac_save_CXXFLAGS
=$CXXFLAGS
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4758 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4759 if ${ac_cv_prog_cxx_g+:} false
; then :
4760 $as_echo_n "(cached) " >&6
4762 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4763 ac_cxx_werror_flag
=yes
4766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4777 if ac_fn_cxx_try_compile
"$LINENO"; then :
4778 ac_cv_prog_cxx_g
=yes
4781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4792 if ac_fn_cxx_try_compile
"$LINENO"; then :
4795 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4808 if ac_fn_cxx_try_compile
"$LINENO"; then :
4809 ac_cv_prog_cxx_g
=yes
4811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4816 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4819 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4820 if test "$ac_test_CXXFLAGS" = set; then
4821 CXXFLAGS
=$ac_save_CXXFLAGS
4822 elif test $ac_cv_prog_cxx_g = yes; then
4823 if test "$GXX" = yes; then
4829 if test "$GXX" = yes; then
4836 ac_cpp
='$CPP $CPPFLAGS'
4837 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4841 depcc
="$CXX" am_compiler_list
=
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4844 $as_echo_n "checking dependency style of $depcc... " >&6; }
4845 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4849 # We make a subdir and do the tests there. Otherwise we can end up
4850 # making bogus files that we don't know about and never remove. For
4851 # instance it was reported that on HP-UX the gcc test will end up
4852 # making a dummy file named 'D' -- because '-MD' means "put the output
4856 # Copy depcomp to subdir because otherwise we won't find it if we're
4857 # using a relative directory.
4858 cp "$am_depcomp" conftest.dir
4860 # We will build objects and dependencies in a subdirectory because
4861 # it helps to detect inapplicable dependency modes. For instance
4862 # both Tru64's cc and ICC support -MD to output dependencies as a
4863 # side effect of compilation, but ICC will put the dependencies in
4864 # the current directory while Tru64 will put them in the object
4868 am_cv_CXX_dependencies_compiler_type
=none
4869 if test "$am_compiler_list" = ""; then
4870 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4873 case " $depcc " in #(
4874 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4877 for depmode
in $am_compiler_list; do
4878 # Setup a source with many dependencies, because some compilers
4879 # like to wrap large dependency lists on column 80 (with \), and
4880 # we should not choose a depcomp mode which is confused by this.
4882 # We need to recreate these files for each test, as the compiler may
4883 # overwrite some of them when testing with obscure command lines.
4884 # This happens at least with the AIX C compiler.
4886 for i
in 1 2 3 4 5 6; do
4887 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4888 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4889 # Solaris 10 /bin/sh.
4890 echo '/* dummy */' > sub
/conftst
$i.h
4892 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4894 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4895 # mode. It turns out that the SunPro C++ compiler does not properly
4896 # handle '-M -o', and we need to detect this. Also, some Intel
4897 # versions had trouble with output in subdirs.
4898 am__obj
=sub
/conftest.
${OBJEXT-o}
4899 am__minus_obj
="-o $am__obj"
4902 # This depmode causes a compiler race in universal mode.
4903 test "$am__universal" = false ||
continue
4906 # After this tag, mechanisms are not by side-effect, so they'll
4907 # only be used when explicitly requested.
4908 if test "x$enable_dependency_tracking" = xyes
; then
4914 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4915 # This compiler won't grok '-c -o', but also, the minuso test has
4916 # not run yet. These depmodes are late enough in the game, and
4917 # so weak that their functioning should not be impacted.
4918 am__obj
=conftest.
${OBJEXT-o}
4923 if depmode
=$depmode \
4924 source=sub
/conftest.c object
=$am__obj \
4925 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4926 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4927 >/dev
/null
2>conftest.err
&&
4928 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4929 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4930 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4931 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4932 # icc doesn't choke on unknown options, it will just issue warnings
4933 # or remarks (even with -Werror). So we grep stderr for any message
4934 # that says an option was ignored or not supported.
4935 # When given -MP, icc 7.0 and 7.1 complain thusly:
4936 # icc: Command line warning: ignoring option '-M'; no argument required
4937 # The diagnosis changed in icc 8.0:
4938 # icc: Command line remark: option '-MP' not supported
4939 if (grep 'ignoring option' conftest.err ||
4940 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4941 am_cv_CXX_dependencies_compiler_type
=$depmode
4950 am_cv_CXX_dependencies_compiler_type
=none
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4955 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4956 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4959 test "x$enable_dependency_tracking" != xno \
4960 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4961 am__fastdepCXX_TRUE
=
4962 am__fastdepCXX_FALSE
='#'
4964 am__fastdepCXX_TRUE
='#'
4965 am__fastdepCXX_FALSE
=
4969 if test -n "$ac_tool_prefix"; then
4970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4971 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973 $as_echo_n "checking for $ac_word... " >&6; }
4974 if ${ac_cv_prog_RANLIB+:} false
; then :
4975 $as_echo_n "(cached) " >&6
4977 if test -n "$RANLIB"; then
4978 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4984 test -z "$as_dir" && as_dir
=.
4985 for ac_exec_ext
in '' $ac_executable_extensions; do
4986 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 RANLIB
=$ac_cv_prog_RANLIB
4998 if test -n "$RANLIB"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5000 $as_echo "$RANLIB" >&6; }
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5008 if test -z "$ac_cv_prog_RANLIB"; then
5009 ac_ct_RANLIB
=$RANLIB
5010 # Extract the first word of "ranlib", so it can be a program name with args.
5011 set dummy ranlib
; ac_word
=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5015 $as_echo_n "(cached) " >&6
5017 if test -n "$ac_ct_RANLIB"; then
5018 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5024 test -z "$as_dir" && as_dir
=.
5025 for ac_exec_ext
in '' $ac_executable_extensions; do
5026 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5038 if test -n "$ac_ct_RANLIB"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5040 $as_echo "$ac_ct_RANLIB" >&6; }
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5046 if test "x$ac_ct_RANLIB" = x
; then
5049 case $cross_compiling:$ac_tool_warned in
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5053 ac_tool_warned
=yes ;;
5055 RANLIB
=$ac_ct_RANLIB
5058 RANLIB
="$ac_cv_prog_RANLIB"
5064 ac_cpp
='$CPP $CPPFLAGS'
5065 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5069 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5070 # On Suns, sometimes $CPP names a directory.
5071 if test -n "$CPP" && test -d "$CPP"; then
5074 if test -z "$CPP"; then
5075 if ${ac_cv_prog_CPP+:} false
; then :
5076 $as_echo_n "(cached) " >&6
5078 # Double quotes because CPP needs to be expanded
5079 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5082 for ac_c_preproc_warn_flag
in '' yes
5084 # Use a header file that comes with gcc, so configuring glibc
5085 # with a fresh cross-compiler works.
5086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5087 # <limits.h> exists even on freestanding compilers.
5088 # On the NeXT, cc -E runs the code through the compiler's parser,
5089 # not just through cpp. "Syntax error" is here to catch this case.
5090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5093 # include <limits.h>
5095 # include <assert.h>
5099 if ac_fn_c_try_cpp
"$LINENO"; then :
5102 # Broken: fails on valid input.
5105 rm -f conftest.err conftest.i conftest.
$ac_ext
5107 # OK, works on sane cases. Now check whether nonexistent headers
5108 # can be detected and how.
5109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 #include <ac_nonexistent.h>
5113 if ac_fn_c_try_cpp
"$LINENO"; then :
5114 # Broken: success on invalid input.
5117 # Passes both tests.
5121 rm -f conftest.err conftest.i conftest.
$ac_ext
5124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5125 rm -f conftest.i conftest.err conftest.
$ac_ext
5126 if $ac_preproc_ok; then :
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5139 $as_echo "$CPP" >&6; }
5141 for ac_c_preproc_warn_flag
in '' yes
5143 # Use a header file that comes with gcc, so configuring glibc
5144 # with a fresh cross-compiler works.
5145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5146 # <limits.h> exists even on freestanding compilers.
5147 # On the NeXT, cc -E runs the code through the compiler's parser,
5148 # not just through cpp. "Syntax error" is here to catch this case.
5149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5152 # include <limits.h>
5154 # include <assert.h>
5158 if ac_fn_c_try_cpp
"$LINENO"; then :
5161 # Broken: fails on valid input.
5164 rm -f conftest.err conftest.i conftest.
$ac_ext
5166 # OK, works on sane cases. Now check whether nonexistent headers
5167 # can be detected and how.
5168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170 #include <ac_nonexistent.h>
5172 if ac_fn_c_try_cpp
"$LINENO"; then :
5173 # Broken: success on invalid input.
5176 # Passes both tests.
5180 rm -f conftest.err conftest.i conftest.
$ac_ext
5183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5184 rm -f conftest.i conftest.err conftest.
$ac_ext
5185 if $ac_preproc_ok; then :
5188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5190 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5191 See \`config.log' for more details" "$LINENO" 5; }
5195 ac_cpp
='$CPP $CPPFLAGS'
5196 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5202 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5203 if ${ac_cv_path_GREP+:} false
; then :
5204 $as_echo_n "(cached) " >&6
5206 if test -z "$GREP"; then
5207 ac_path_GREP_found
=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5210 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5213 test -z "$as_dir" && as_dir
=.
5214 for ac_prog
in grep ggrep
; do
5215 for ac_exec_ext
in '' $ac_executable_extensions; do
5216 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5217 as_fn_executable_p
"$ac_path_GREP" ||
continue
5218 # Check for GNU ac_path_GREP and select it if it is found.
5219 # Check for GNU $ac_path_GREP
5220 case `"$ac_path_GREP" --version 2>&1` in
5222 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5225 $as_echo_n 0123456789 >"conftest.in"
5228 cat "conftest.in" "conftest.in" >"conftest.tmp"
5229 mv "conftest.tmp" "conftest.in"
5230 cp "conftest.in" "conftest.nl"
5231 $as_echo 'GREP' >> "conftest.nl"
5232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5233 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5234 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5235 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5236 # Best one so far, save it but keep looking for a better one
5237 ac_cv_path_GREP
="$ac_path_GREP"
5238 ac_path_GREP_max
=$ac_count
5240 # 10*(2^10) chars as input seems more than enough
5241 test $ac_count -gt 10 && break
5243 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5246 $ac_path_GREP_found && break 3
5251 if test -z "$ac_cv_path_GREP"; then
5252 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5255 ac_cv_path_GREP
=$GREP
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5260 $as_echo "$ac_cv_path_GREP" >&6; }
5261 GREP
="$ac_cv_path_GREP"
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5265 $as_echo_n "checking for egrep... " >&6; }
5266 if ${ac_cv_path_EGREP+:} false
; then :
5267 $as_echo_n "(cached) " >&6
5269 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5270 then ac_cv_path_EGREP
="$GREP -E"
5272 if test -z "$EGREP"; then
5273 ac_path_EGREP_found
=false
5274 # Loop through the user's path and test for each of PROGNAME-LIST
5275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5276 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5279 test -z "$as_dir" && as_dir
=.
5280 for ac_prog
in egrep; do
5281 for ac_exec_ext
in '' $ac_executable_extensions; do
5282 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5283 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5284 # Check for GNU ac_path_EGREP and select it if it is found.
5285 # Check for GNU $ac_path_EGREP
5286 case `"$ac_path_EGREP" --version 2>&1` in
5288 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5291 $as_echo_n 0123456789 >"conftest.in"
5294 cat "conftest.in" "conftest.in" >"conftest.tmp"
5295 mv "conftest.tmp" "conftest.in"
5296 cp "conftest.in" "conftest.nl"
5297 $as_echo 'EGREP' >> "conftest.nl"
5298 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5299 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5300 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5302 # Best one so far, save it but keep looking for a better one
5303 ac_cv_path_EGREP
="$ac_path_EGREP"
5304 ac_path_EGREP_max
=$ac_count
5306 # 10*(2^10) chars as input seems more than enough
5307 test $ac_count -gt 10 && break
5309 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5312 $ac_path_EGREP_found && break 3
5317 if test -z "$ac_cv_path_EGREP"; then
5318 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5321 ac_cv_path_EGREP
=$EGREP
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5327 $as_echo "$ac_cv_path_EGREP" >&6; }
5328 EGREP
="$ac_cv_path_EGREP"
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5332 $as_echo_n "checking for ANSI C header files... " >&6; }
5333 if ${ac_cv_header_stdc+:} false
; then :
5334 $as_echo_n "(cached) " >&6
5336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5351 if ac_fn_c_try_compile
"$LINENO"; then :
5352 ac_cv_header_stdc
=yes
5354 ac_cv_header_stdc
=no
5356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5358 if test $ac_cv_header_stdc = yes; then
5359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5366 $EGREP "memchr" >/dev
/null
2>&1; then :
5369 ac_cv_header_stdc
=no
5375 if test $ac_cv_header_stdc = yes; then
5376 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5383 $EGREP "free" >/dev
/null
2>&1; then :
5386 ac_cv_header_stdc
=no
5392 if test $ac_cv_header_stdc = yes; then
5393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5394 if test "$cross_compiling" = yes; then :
5397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5401 #if ((' ' & 0x0FF) == 0x020)
5402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5405 # define ISLOWER(c) \
5406 (('a' <= (c) && (c) <= 'i') \
5407 || ('j' <= (c) && (c) <= 'r') \
5408 || ('s' <= (c) && (c) <= 'z'))
5409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5417 for (i = 0; i < 256; i++)
5418 if (XOR (islower (i), ISLOWER (i))
5419 || toupper (i) != TOUPPER (i))
5424 if ac_fn_c_try_run
"$LINENO"; then :
5427 ac_cv_header_stdc
=no
5429 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5430 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5436 $as_echo "$ac_cv_header_stdc" >&6; }
5437 if test $ac_cv_header_stdc = yes; then
5439 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5444 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5445 inttypes.h stdint.h unistd.h
5447 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5448 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5450 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5451 cat >>confdefs.h
<<_ACEOF
5452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5461 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5462 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5469 if test "$MINIX" = yes; then
5471 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5474 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5477 $as_echo "#define _MINIX 1" >>confdefs.h
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5483 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5484 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5485 $as_echo_n "(cached) " >&6
5487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5490 # define __EXTENSIONS__ 1
5491 $ac_includes_default
5500 if ac_fn_c_try_compile
"$LINENO"; then :
5501 ac_cv_safe_to_define___extensions__
=yes
5503 ac_cv_safe_to_define___extensions__
=no
5505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5508 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5509 test $ac_cv_safe_to_define___extensions__ = yes &&
5510 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5512 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5514 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5516 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5518 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5522 # The tests for host and target for $enable_largefile require
5527 # As the $enable_largefile decision depends on --enable-plugins we must set it
5528 # even in directories otherwise not depending on the $plugins option.
5532 for ac_header
in dlfcn.h
5534 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5536 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5537 cat >>confdefs.h
<<_ACEOF
5538 #define HAVE_DLFCN_H 1
5545 for ac_header
in windows.h
5547 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5549 if test "x$ac_cv_header_windows_h" = xyes
; then :
5550 cat >>confdefs.h
<<_ACEOF
5551 #define HAVE_WINDOWS_H 1
5559 # Check whether --enable-plugins was given.
5560 if test "${enable_plugins+set}" = set; then :
5561 enableval
=$enable_plugins; case "${enableval}" in
5564 if test "$maybe_plugins" != "yes" ; then
5565 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5569 plugins
=$maybe_plugins
5573 if test "$plugins" = "yes"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5575 $as_echo_n "checking for library containing dlsym... " >&6; }
5576 if ${ac_cv_search_dlsym+:} false
; then :
5577 $as_echo_n "(cached) " >&6
5579 ac_func_search_save_LIBS
=$LIBS
5580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5583 /* Override any GCC internal prototype to avoid an error.
5584 Use char because int might match the return type of a GCC
5585 builtin and then its argument prototype would still apply. */
5598 for ac_lib
in '' dl
; do
5599 if test -z "$ac_lib"; then
5600 ac_res
="none required"
5603 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5605 if ac_fn_c_try_link
"$LINENO"; then :
5606 ac_cv_search_dlsym
=$ac_res
5608 rm -f core conftest.err conftest.
$ac_objext \
5610 if ${ac_cv_search_dlsym+:} false
; then :
5614 if ${ac_cv_search_dlsym+:} false
; then :
5617 ac_cv_search_dlsym
=no
5620 LIBS
=$ac_func_search_save_LIBS
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5623 $as_echo "$ac_cv_search_dlsym" >&6; }
5624 ac_res
=$ac_cv_search_dlsym
5625 if test "$ac_res" != no
; then :
5626 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5634 sparc-
*-solaris*|i?
86-*-solaris*)
5635 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
5636 # were mutually exclusive until Solaris 11.3. Without procfs support,
5637 # the bfd/ elf module cannot provide certain routines such as
5638 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
5639 # explicitly requested large-file support through the
5640 # --enable-largefile switch, disable large-file support in favor of
5643 # Check if <sys/procfs.h> is incompatible with large-file support.
5644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 #define _FILE_OFFSET_BITS 64
5647 #define _STRUCTURED_PROC 1
5648 #include <sys/procfs.h>
5657 if ac_fn_c_try_compile
"$LINENO"; then :
5658 acx_cv_procfs_lfs
=yes
5660 acx_cv_procfs_lfs
=no
5662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5664 # Forcefully disable large-file support only if necessary, gdb is in
5666 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
5667 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
5668 : ${enable_largefile="no"}
5669 if test "$plugins" = yes; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5671 plugin support disabled; require large-file support which is incompatible with GDB." >&5
5672 $as_echo "$as_me: WARNING:
5673 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
5678 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
5679 # benefit of g++ 9+ which predefines it on Solaris.
5680 if test "$enable_largefile" = no
; then
5681 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
5687 # Check whether --enable-largefile was given.
5688 if test "${enable_largefile+set}" = set; then :
5689 enableval
=$enable_largefile;
5692 if test "$enable_largefile" != no
; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5695 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5696 if ${ac_cv_sys_largefile_CC+:} false
; then :
5697 $as_echo_n "(cached) " >&6
5699 ac_cv_sys_largefile_CC
=no
5700 if test "$GCC" != yes; then
5703 # IRIX 6.2 and later do not support large files by default,
5704 # so use the C compiler's -n32 option if that helps.
5705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 #include <sys/types.h>
5708 /* Check that off_t can represent 2**63 - 1 correctly.
5709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5710 since some C++ compilers masquerading as C compilers
5711 incorrectly reject 9223372036854775807. */
5712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5714 && LARGE_OFF_T % 2147483647 == 1)
5724 if ac_fn_c_try_compile
"$LINENO"; then :
5727 rm -f core conftest.err conftest.
$ac_objext
5729 if ac_fn_c_try_compile
"$LINENO"; then :
5730 ac_cv_sys_largefile_CC
=' -n32'; break
5732 rm -f core conftest.err conftest.
$ac_objext
5736 rm -f conftest.
$ac_ext
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5740 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5741 if test "$ac_cv_sys_largefile_CC" != no
; then
5742 CC
=$CC$ac_cv_sys_largefile_CC
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5746 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5747 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5748 $as_echo_n "(cached) " >&6
5751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 #include <sys/types.h>
5754 /* Check that off_t can represent 2**63 - 1 correctly.
5755 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5756 since some C++ compilers masquerading as C compilers
5757 incorrectly reject 9223372036854775807. */
5758 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5760 && LARGE_OFF_T % 2147483647 == 1)
5770 if ac_fn_c_try_compile
"$LINENO"; then :
5771 ac_cv_sys_file_offset_bits
=no
; break
5773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776 #define _FILE_OFFSET_BITS 64
5777 #include <sys/types.h>
5778 /* Check that off_t can represent 2**63 - 1 correctly.
5779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5780 since some C++ compilers masquerading as C compilers
5781 incorrectly reject 9223372036854775807. */
5782 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5784 && LARGE_OFF_T % 2147483647 == 1)
5794 if ac_fn_c_try_compile
"$LINENO"; then :
5795 ac_cv_sys_file_offset_bits
=64; break
5797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5798 ac_cv_sys_file_offset_bits
=unknown
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5803 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5804 case $ac_cv_sys_file_offset_bits in #(
5807 cat >>confdefs.h
<<_ACEOF
5808 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5813 if test $ac_cv_sys_file_offset_bits = unknown
; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5815 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5816 if ${ac_cv_sys_large_files+:} false
; then :
5817 $as_echo_n "(cached) " >&6
5820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #include <sys/types.h>
5823 /* Check that off_t can represent 2**63 - 1 correctly.
5824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5825 since some C++ compilers masquerading as C compilers
5826 incorrectly reject 9223372036854775807. */
5827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5829 && LARGE_OFF_T % 2147483647 == 1)
5839 if ac_fn_c_try_compile
"$LINENO"; then :
5840 ac_cv_sys_large_files
=no
; break
5842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 #define _LARGE_FILES 1
5846 #include <sys/types.h>
5847 /* Check that off_t can represent 2**63 - 1 correctly.
5848 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5849 since some C++ compilers masquerading as C compilers
5850 incorrectly reject 9223372036854775807. */
5851 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5853 && LARGE_OFF_T % 2147483647 == 1)
5863 if ac_fn_c_try_compile
"$LINENO"; then :
5864 ac_cv_sys_large_files
=1; break
5866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5867 ac_cv_sys_large_files
=unknown
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5872 $as_echo "$ac_cv_sys_large_files" >&6; }
5873 case $ac_cv_sys_large_files in #(
5876 cat >>confdefs.h
<<_ACEOF
5877 #define _LARGE_FILES $ac_cv_sys_large_files
5889 ac_cpp
='$CPP $CPPFLAGS'
5890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5893 if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5895 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if ${ac_cv_prog_CC+:} false
; then :
5899 $as_echo_n "(cached) " >&6
5901 if test -n "$CC"; then
5902 ac_cv_prog_CC
="$CC" # Let the user override the test.
5904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5908 test -z "$as_dir" && as_dir
=.
5909 for ac_exec_ext
in '' $ac_executable_extensions; do
5910 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5911 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 if test -n "$CC"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5924 $as_echo "$CC" >&6; }
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5932 if test -z "$ac_cv_prog_CC"; then
5934 # Extract the first word of "gcc", so it can be a program name with args.
5935 set dummy gcc
; ac_word
=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5939 $as_echo_n "(cached) " >&6
5941 if test -n "$ac_ct_CC"; then
5942 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir
=.
5949 for ac_exec_ext
in '' $ac_executable_extensions; do
5950 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_ac_ct_CC
="gcc"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5962 if test -n "$ac_ct_CC"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5964 $as_echo "$ac_ct_CC" >&6; }
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5970 if test "x$ac_ct_CC" = x
; then
5973 case $cross_compiling:$ac_tool_warned in
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977 ac_tool_warned
=yes ;;
5985 if test -z "$CC"; then
5986 if test -n "$ac_tool_prefix"; then
5987 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5988 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if ${ac_cv_prog_CC+:} false
; then :
5992 $as_echo_n "(cached) " >&6
5994 if test -n "$CC"; then
5995 ac_cv_prog_CC
="$CC" # Let the user override the test.
5997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6001 test -z "$as_dir" && as_dir
=.
6002 for ac_exec_ext
in '' $ac_executable_extensions; do
6003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6004 ac_cv_prog_CC
="${ac_tool_prefix}cc"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 if test -n "$CC"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6017 $as_echo "$CC" >&6; }
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6026 if test -z "$CC"; then
6027 # Extract the first word of "cc", so it can be a program name with args.
6028 set dummy cc
; ac_word
=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_prog_CC+:} false
; then :
6032 $as_echo_n "(cached) " >&6
6034 if test -n "$CC"; then
6035 ac_cv_prog_CC
="$CC" # Let the user override the test.
6038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir
=.
6043 for ac_exec_ext
in '' $ac_executable_extensions; do
6044 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6045 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6046 ac_prog_rejected
=yes
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 if test $ac_prog_rejected = yes; then
6058 # We found a bogon in the path, so make sure we never use it.
6059 set dummy
$ac_cv_prog_CC
6061 if test $# != 0; then
6062 # We chose a different compiler from the bogus one.
6063 # However, it has the same basename, so the bogon will be chosen
6064 # first if we set CC to just the basename; use the full file name.
6066 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6072 if test -n "$CC"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6074 $as_echo "$CC" >&6; }
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6082 if test -z "$CC"; then
6083 if test -n "$ac_tool_prefix"; then
6084 for ac_prog
in cl.exe
6086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6087 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if ${ac_cv_prog_CC+:} false
; then :
6091 $as_echo_n "(cached) " >&6
6093 if test -n "$CC"; then
6094 ac_cv_prog_CC
="$CC" # Let the user override the test.
6096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir
=.
6101 for ac_exec_ext
in '' $ac_executable_extensions; do
6102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6103 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 if test -n "$CC"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6116 $as_echo "$CC" >&6; }
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6123 test -n "$CC" && break
6126 if test -z "$CC"; then
6128 for ac_prog
in cl.exe
6130 # Extract the first word of "$ac_prog", so it can be a program name with args.
6131 set dummy
$ac_prog; ac_word
=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6135 $as_echo_n "(cached) " >&6
6137 if test -n "$ac_ct_CC"; then
6138 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6144 test -z "$as_dir" && as_dir
=.
6145 for ac_exec_ext
in '' $ac_executable_extensions; do
6146 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_ac_ct_CC
="$ac_prog"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6158 if test -n "$ac_ct_CC"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6160 $as_echo "$ac_ct_CC" >&6; }
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6167 test -n "$ac_ct_CC" && break
6170 if test "x$ac_ct_CC" = x
; then
6173 case $cross_compiling:$ac_tool_warned in
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177 ac_tool_warned
=yes ;;
6186 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6188 as_fn_error $?
"no acceptable C compiler found in \$PATH
6189 See \`config.log' for more details" "$LINENO" 5; }
6191 # Provide some information about the compiler.
6192 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6195 for ac_option
in --version -v -V -qversion; do
6196 { { ac_try
="$ac_compiler $ac_option >&5"
6198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6202 $as_echo "$ac_try_echo"; } >&5
6203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6205 if test -s conftest.err; then
6207 ... rest of stderr output deleted ...
6208 10q' conftest.err >conftest.er1
6209 cat conftest.er1 >&5
6211 rm -f conftest.er1 conftest.err
6212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213 test $ac_status = 0; }
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6217 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6218 if ${ac_cv_c_compiler_gnu+:} false; then :
6219 $as_echo_n "(cached) " >&6
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6235 if ac_fn_c_try_compile "$LINENO"; then :
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6245 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6246 if test $ac_compiler_gnu = yes; then
6251 ac_test_CFLAGS=${CFLAGS+set}
6252 ac_save_CFLAGS=$CFLAGS
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6254 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6255 if ${ac_cv_prog_cc_g+:} false; then :
6256 $as_echo_n "(cached) " >&6
6258 ac_save_c_werror_flag=$ac_c_werror_flag
6259 ac_c_werror_flag=yes
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6273 if ac_fn_c_try_compile "$LINENO"; then :
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6288 if ac_fn_c_try_compile "$LINENO"; then :
6291 ac_c_werror_flag=$ac_save_c_werror_flag
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6304 if ac_fn_c_try_compile "$LINENO"; then :
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 ac_c_werror_flag=$ac_save_c_werror_flag
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6315 $as_echo "$ac_cv_prog_cc_g" >&6; }
6316 if test "$ac_test_CFLAGS" = set; then
6317 CFLAGS=$ac_save_CFLAGS
6318 elif test $ac_cv_prog_cc_g = yes; then
6319 if test "$GCC" = yes; then
6325 if test "$GCC" = yes; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6332 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6333 if ${ac_cv_prog_cc_c89+:} false; then :
6334 $as_echo_n "(cached) " >&6
6336 ac_cv_prog_cc_c89=no
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6344 struct buf { int x; };
6345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6346 static char *e (p, i)
6352 static char *f (char * (*g) (char **, int), char **p, ...)
6357 s = g (p, va_arg (v,int));
6362 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6363 function prototypes and stuff, but not '\xHH' hex character constants.
6364 These don't provoke an error unfortunately, instead are silently treated
6365 as 'x'. The following induces an error, until -std is added to get
6366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6367 array size at least. It's necessary to write '\x00'==0 to get something
6368 that's true only with -std. */
6369 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6371 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6372 inside strings and character constants. */
6374 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6376 int test (int i, double x);
6377 struct s1 {int (*f) (int a);};
6378 struct s2 {int (*f) (double a);};
6379 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6385 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6390 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6393 CC="$ac_save_CC $ac_arg"
6394 if ac_fn_c_try_compile "$LINENO"; then :
6395 ac_cv_prog_cc_c89=$ac_arg
6397 rm -f core conftest.err conftest.$ac_objext
6398 test "x$ac_cv_prog_cc_c89" != "xno" && break
6400 rm -f conftest.$ac_ext
6405 case "x$ac_cv_prog_cc_c89" in
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6408 $as_echo "none needed" >&6; } ;;
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6411 $as_echo "unsupported" >&6; } ;;
6413 CC="$CC $ac_cv_prog_cc_c89"
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6415 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6417 if test "x$ac_cv_prog_cc_c89" != xno; then :
6422 ac_cpp='$CPP $CPPFLAGS'
6423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6428 ac_cpp='$CPP $CPPFLAGS'
6429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6433 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6434 if ${am_cv_prog_cc_c_o+:} false; then :
6435 $as_echo_n "(cached) " >&6
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6448 # Make sure it works both with $CC and with simple cc.
6449 # Following AC_PROG_CC_C_O, we do the test twice because some
6450 # compilers refuse to overwrite an existing .o file with -o,
6451 # though they will create one.
6452 am_cv_prog_cc_c_o=yes
6454 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6455 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } \
6459 && test -f conftest2.$ac_objext; then
6462 am_cv_prog_cc_c_o=no
6466 rm -f core conftest*
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6470 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6471 if test "$am_cv_prog_cc_c_o" != yes; then
6472 # Losing compiler, so override with the script.
6473 # FIXME: It is wrong to rewrite CC.
6474 # But if we don't then we get into trouble of one sort or another.
6475 # A longer-term fix would be to have automake use am__CC in this case,
6476 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6477 CC="$am_aux_dir/compile $CC"
6480 ac_cpp='$CPP $CPPFLAGS'
6481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6486 depcc="$CC" am_compiler_list=
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6489 $as_echo_n "checking dependency style of $depcc... " >&6; }
6490 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6491 $as_echo_n "(cached) " >&6
6493 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6494 # We make a subdir and do the tests there. Otherwise we can end up
6495 # making bogus files that we don't know about and never remove. For
6496 # instance it was reported that on HP-UX the gcc test will end up
6497 # making a dummy file named 'D' -- because '-MD' means "put the output
6501 # Copy depcomp to subdir because otherwise we won't find it if we're
6502 # using a relative directory.
6503 cp "$am_depcomp" conftest.dir
6505 # We will build objects and dependencies in a subdirectory because
6506 # it helps to detect inapplicable dependency modes. For instance
6507 # both Tru64's cc and ICC support -MD to output dependencies as a
6508 # side effect of compilation, but ICC will put the dependencies in
6509 # the current directory while Tru64 will put them in the object
6513 am_cv_CC_dependencies_compiler_type=none
6514 if test "$am_compiler_list" = ""; then
6515 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6518 case " $depcc " in #(
6519 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6522 for depmode in $am_compiler_list; do
6523 # Setup a source with many dependencies, because some compilers
6524 # like to wrap large dependency lists on column 80 (with \), and
6525 # we should not choose a depcomp mode which is confused by this.
6527 # We need to recreate these files for each test, as the compiler may
6528 # overwrite some of them when testing with obscure command lines.
6529 # This happens at least with the AIX C compiler.
6531 for i in 1 2 3 4 5 6; do
6532 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6533 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6534 # Solaris 10 /bin/sh.
6535 echo '/* dummy */' > sub/conftst$i.h
6537 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6539 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6540 # mode. It turns out that the SunPro C++ compiler does not properly
6541 # handle '-M -o', and we need to detect this. Also, some Intel
6542 # versions had trouble with output in subdirs.
6543 am__obj=sub/conftest.${OBJEXT-o}
6544 am__minus_obj="-o $am__obj"
6547 # This depmode causes a compiler race in universal mode.
6548 test "$am__universal" = false || continue
6551 # After this tag, mechanisms are not by side-effect, so they'll
6552 # only be used when explicitly requested.
6553 if test "x$enable_dependency_tracking" = xyes; then
6559 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6560 # This compiler won't grok '-c -o', but also, the minuso test has
6561 # not run yet. These depmodes are late enough in the game, and
6562 # so weak that their functioning should not be impacted.
6563 am__obj=conftest.${OBJEXT-o}
6568 if depmode=$depmode \
6569 source=sub/conftest.c object=$am__obj \
6570 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6571 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6572 >/dev/null 2>conftest.err &&
6573 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6574 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6575 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6576 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6577 # icc doesn't choke on unknown options, it will just issue warnings
6578 # or remarks (even with -Werror). So we grep stderr for any message
6579 # that says an option was ignored or not supported.
6580 # When given -MP, icc 7.0 and 7.1 complain thusly:
6581 # icc: Command line warning: ignoring option '-M'; no argument required
6582 # The diagnosis changed in icc 8.0:
6583 # icc: Command line remark: option '-MP' not supported
6584 if (grep 'ignoring option' conftest.err ||
6585 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6586 am_cv_CC_dependencies_compiler_type=$depmode
6595 am_cv_CC_dependencies_compiler_type=none
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6600 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6601 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6604 test "x$enable_dependency_tracking" != xno \
6605 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6607 am__fastdepCC_FALSE='#'
6609 am__fastdepCC_TRUE='#'
6610 am__fastdepCC_FALSE=
6614 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6617 # We require a C++11 compiler. Check if one is available, and if
6618 # necessary, set CXX_DIALECT to some -std=xxx switch.
6620 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6622 ac_cpp='$CXXCPP $CPPFLAGS'
6623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6629 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6630 if ${ax_cv_cxx_compile_cxx11+:} false; then :
6631 $as_echo_n "(cached) " >&6
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6637 // If the compiler admits that it is not ready for C++11, why torture it?
6638 // Hopefully, this will speed up the test.
6642 #error "This is not a C++ compiler"
6644 #elif __cplusplus < 201103L
6646 #error "This is not a C++11 compiler"
6653 namespace test_static_assert
6656 template <typename T>
6659 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6664 namespace test_final_override
6672 struct Derived : public Base
6674 virtual void f() override {}
6679 namespace test_double_right_angle_brackets
6682 template < typename T >
6685 typedef check<void> single_type;
6686 typedef check<check<void>> double_type;
6687 typedef check<check<check<void>>> triple_type;
6688 typedef check<check<check<check<void>>>> quadruple_type;
6692 namespace test_decltype
6705 namespace test_type_deduction
6708 template < typename T1, typename T2 >
6711 static const bool value = false;
6714 template < typename T >
6715 struct is_same<T, T>
6717 static const bool value = true;
6720 template < typename T1, typename T2 >
6722 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6728 test(const int c, volatile int v)
6730 static_assert(is_same<int, decltype(0)>::value == true, "");
6731 static_assert(is_same<int, decltype(c)>::value == false, "");
6732 static_assert(is_same<int, decltype(v)>::value == false, "");
6735 auto sumi = ac + av + 'x';
6736 auto sumf = ac + av + 1.0;
6737 static_assert(is_same<int, decltype(ac)>::value == true, "");
6738 static_assert(is_same<int, decltype(av)>::value == true, "");
6739 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6740 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6741 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6742 return (sumf > 0.0) ? sumi : add(c, v);
6747 namespace test_noexcept
6750 int f() { return 0; }
6751 int g() noexcept { return 0; }
6753 static_assert(noexcept(f()) == false, "");
6754 static_assert(noexcept(g()) == true, "");
6758 namespace test_constexpr
6761 template < typename CharT >
6762 unsigned long constexpr
6763 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6765 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6768 template < typename CharT >
6769 unsigned long constexpr
6770 strlen_c(const CharT *const s) noexcept
6772 return strlen_c_r(s, 0UL);
6775 static_assert(strlen_c("") == 0UL, "");
6776 static_assert(strlen_c("1") == 1UL, "");
6777 static_assert(strlen_c("example") == 7UL, "");
6778 static_assert(strlen_c("another\0example") == 7UL, "");
6782 namespace test_rvalue_references
6788 static constexpr int value = N;
6791 answer<1> f(int&) { return answer<1>(); }
6792 answer<2> f(const int&) { return answer<2>(); }
6793 answer<3> f(int&&) { return answer<3>(); }
6800 static_assert(decltype(f(i))::value == 1, "");
6801 static_assert(decltype(f(c))::value == 2, "");
6802 static_assert(decltype(f(0))::value == 3, "");
6807 namespace test_uniform_initialization
6812 static const int zero {};
6813 static const int one {1};
6816 static_assert(test::zero == 0, "");
6817 static_assert(test::one == 1, "");
6821 namespace test_lambdas
6827 auto lambda1 = [](){};
6828 auto lambda2 = lambda1;
6836 auto a = [](int i, int j){ return i + j; }(1, 2);
6837 auto b = []() -> int { return '0'; }();
6838 auto c = [=](){ return a + b; }();
6839 auto d = [&](){ return c; }();
6840 auto e = [a, &b](int x) mutable {
6841 const auto identity = [](int y){ return y; };
6842 for (auto i = 0; i < a; ++i)
6844 return x + identity(a + b);
6846 return a + b + c + d + e;
6852 const auto nullary = [](){ return 0; };
6853 const auto unary = [](int x){ return x; };
6854 using nullary_t = decltype(nullary);
6855 using unary_t = decltype(unary);
6856 const auto higher1st = [](nullary_t f){ return f(); };
6857 const auto higher2nd = [unary](nullary_t f1){
6858 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6860 return higher1st(nullary) + higher2nd(nullary)(unary);
6865 namespace test_variadic_templates
6871 template <int N0, int... N1toN>
6872 struct sum<N0, N1toN...>
6874 static constexpr auto value = N0 + sum<N1toN...>::value;
6880 static constexpr auto value = 0;
6883 static_assert(sum<>::value == 0, "");
6884 static_assert(sum<1>::value == 1, "");
6885 static_assert(sum<23>::value == 23, "");
6886 static_assert(sum<1, 2>::value == 3, "");
6887 static_assert(sum<5, 5, 11>::value == 21, "");
6888 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6892 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6893 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6895 namespace test_template_alias_sfinae
6900 template<typename T>
6901 using member = typename T::member_type;
6903 template<typename T>
6906 template<typename T>
6907 void func(member<T>*) {}
6911 void test() { func<foo>(0); }
6915 } // namespace cxx11
6917 #endif // __cplusplus >= 201103L
6922 if ac_fn_cxx_try_compile "$LINENO"; then :
6923 ax_cv_cxx_compile_cxx11=yes
6925 ax_cv_cxx_compile_cxx11=no
6927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6930 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6931 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6935 if test x$ac_success = xno; then
6936 for alternative in ${ax_cxx_compile_alternatives}; do
6937 switch="-std=gnu++${alternative}"
6938 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6940 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6941 if eval \${$cachevar+:} false; then :
6942 $as_echo_n "(cached) " >&6
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6950 // If the compiler admits that it is not ready for C++11, why torture it?
6951 // Hopefully, this will speed up the test.
6955 #error "This is not a C++ compiler"
6957 #elif __cplusplus < 201103L
6959 #error "This is not a C++11 compiler"
6966 namespace test_static_assert
6969 template <typename T>
6972 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6977 namespace test_final_override
6985 struct Derived : public Base
6987 virtual void f() override {}
6992 namespace test_double_right_angle_brackets
6995 template < typename T >
6998 typedef check<void> single_type;
6999 typedef check<check<void>> double_type;
7000 typedef check<check<check<void>>> triple_type;
7001 typedef check<check<check<check<void>>>> quadruple_type;
7005 namespace test_decltype
7018 namespace test_type_deduction
7021 template < typename T1, typename T2 >
7024 static const bool value = false;
7027 template < typename T >
7028 struct is_same<T, T>
7030 static const bool value = true;
7033 template < typename T1, typename T2 >
7035 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7041 test(const int c, volatile int v)
7043 static_assert(is_same<int, decltype(0)>::value == true, "");
7044 static_assert(is_same<int, decltype(c)>::value == false, "");
7045 static_assert(is_same<int, decltype(v)>::value == false, "");
7048 auto sumi = ac + av + 'x';
7049 auto sumf = ac + av + 1.0;
7050 static_assert(is_same<int, decltype(ac)>::value == true, "");
7051 static_assert(is_same<int, decltype(av)>::value == true, "");
7052 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7053 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7054 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7055 return (sumf > 0.0) ? sumi : add(c, v);
7060 namespace test_noexcept
7063 int f() { return 0; }
7064 int g() noexcept { return 0; }
7066 static_assert(noexcept(f()) == false, "");
7067 static_assert(noexcept(g()) == true, "");
7071 namespace test_constexpr
7074 template < typename CharT >
7075 unsigned long constexpr
7076 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7078 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7081 template < typename CharT >
7082 unsigned long constexpr
7083 strlen_c(const CharT *const s) noexcept
7085 return strlen_c_r(s, 0UL);
7088 static_assert(strlen_c("") == 0UL, "");
7089 static_assert(strlen_c("1") == 1UL, "");
7090 static_assert(strlen_c("example") == 7UL, "");
7091 static_assert(strlen_c("another\0example") == 7UL, "");
7095 namespace test_rvalue_references
7101 static constexpr int value = N;
7104 answer<1> f(int&) { return answer<1>(); }
7105 answer<2> f(const int&) { return answer<2>(); }
7106 answer<3> f(int&&) { return answer<3>(); }
7113 static_assert(decltype(f(i))::value == 1, "");
7114 static_assert(decltype(f(c))::value == 2, "");
7115 static_assert(decltype(f(0))::value == 3, "");
7120 namespace test_uniform_initialization
7125 static const int zero {};
7126 static const int one {1};
7129 static_assert(test::zero == 0, "");
7130 static_assert(test::one == 1, "");
7134 namespace test_lambdas
7140 auto lambda1 = [](){};
7141 auto lambda2 = lambda1;
7149 auto a = [](int i, int j){ return i + j; }(1, 2);
7150 auto b = []() -> int { return '0'; }();
7151 auto c = [=](){ return a + b; }();
7152 auto d = [&](){ return c; }();
7153 auto e = [a, &b](int x) mutable {
7154 const auto identity = [](int y){ return y; };
7155 for (auto i = 0; i < a; ++i)
7157 return x + identity(a + b);
7159 return a + b + c + d + e;
7165 const auto nullary = [](){ return 0; };
7166 const auto unary = [](int x){ return x; };
7167 using nullary_t = decltype(nullary);
7168 using unary_t = decltype(unary);
7169 const auto higher1st = [](nullary_t f){ return f(); };
7170 const auto higher2nd = [unary](nullary_t f1){
7171 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7173 return higher1st(nullary) + higher2nd(nullary)(unary);
7178 namespace test_variadic_templates
7184 template <int N0, int... N1toN>
7185 struct sum<N0, N1toN...>
7187 static constexpr auto value = N0 + sum<N1toN...>::value;
7193 static constexpr auto value = 0;
7196 static_assert(sum<>::value == 0, "");
7197 static_assert(sum<1>::value == 1, "");
7198 static_assert(sum<23>::value == 23, "");
7199 static_assert(sum<1, 2>::value == 3, "");
7200 static_assert(sum<5, 5, 11>::value == 21, "");
7201 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7205 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7206 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7208 namespace test_template_alias_sfinae
7213 template<typename T>
7214 using member = typename T::member_type;
7216 template<typename T>
7219 template<typename T>
7220 void func(member<T>*) {}
7224 void test() { func<foo>(0); }
7228 } // namespace cxx11
7230 #endif // __cplusplus >= 201103L
7235 if ac_fn_cxx_try_compile "$LINENO"; then :
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 eval ac_res=\$$cachevar
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7245 $as_echo "$ac_res" >&6; }
7246 if eval test x\$$cachevar = xyes; then
7247 CXX_DIALECT="$switch"
7254 if test x$ac_success = xno; then
7255 for alternative in ${ax_cxx_compile_alternatives}; do
7256 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7257 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7259 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7260 if eval \${$cachevar+:} false; then :
7261 $as_echo_n "(cached) " >&6
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7269 // If the compiler admits that it is not ready for C++11, why torture it?
7270 // Hopefully, this will speed up the test.
7274 #error "This is not a C++ compiler"
7276 #elif __cplusplus < 201103L
7278 #error "This is not a C++11 compiler"
7285 namespace test_static_assert
7288 template <typename T>
7291 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7296 namespace test_final_override
7304 struct Derived : public Base
7306 virtual void f() override {}
7311 namespace test_double_right_angle_brackets
7314 template < typename T >
7317 typedef check<void> single_type;
7318 typedef check<check<void>> double_type;
7319 typedef check<check<check<void>>> triple_type;
7320 typedef check<check<check<check<void>>>> quadruple_type;
7324 namespace test_decltype
7337 namespace test_type_deduction
7340 template < typename T1, typename T2 >
7343 static const bool value = false;
7346 template < typename T >
7347 struct is_same<T, T>
7349 static const bool value = true;
7352 template < typename T1, typename T2 >
7354 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7360 test(const int c, volatile int v)
7362 static_assert(is_same<int, decltype(0)>::value == true, "");
7363 static_assert(is_same<int, decltype(c)>::value == false, "");
7364 static_assert(is_same<int, decltype(v)>::value == false, "");
7367 auto sumi = ac + av + 'x';
7368 auto sumf = ac + av + 1.0;
7369 static_assert(is_same<int, decltype(ac)>::value == true, "");
7370 static_assert(is_same<int, decltype(av)>::value == true, "");
7371 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7372 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7373 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7374 return (sumf > 0.0) ? sumi : add(c, v);
7379 namespace test_noexcept
7382 int f() { return 0; }
7383 int g() noexcept { return 0; }
7385 static_assert(noexcept(f()) == false, "");
7386 static_assert(noexcept(g()) == true, "");
7390 namespace test_constexpr
7393 template < typename CharT >
7394 unsigned long constexpr
7395 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7397 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7400 template < typename CharT >
7401 unsigned long constexpr
7402 strlen_c(const CharT *const s) noexcept
7404 return strlen_c_r(s, 0UL);
7407 static_assert(strlen_c("") == 0UL, "");
7408 static_assert(strlen_c("1") == 1UL, "");
7409 static_assert(strlen_c("example") == 7UL, "");
7410 static_assert(strlen_c("another\0example") == 7UL, "");
7414 namespace test_rvalue_references
7420 static constexpr int value = N;
7423 answer<1> f(int&) { return answer<1>(); }
7424 answer<2> f(const int&) { return answer<2>(); }
7425 answer<3> f(int&&) { return answer<3>(); }
7432 static_assert(decltype(f(i))::value == 1, "");
7433 static_assert(decltype(f(c))::value == 2, "");
7434 static_assert(decltype(f(0))::value == 3, "");
7439 namespace test_uniform_initialization
7444 static const int zero {};
7445 static const int one {1};
7448 static_assert(test::zero == 0, "");
7449 static_assert(test::one == 1, "");
7453 namespace test_lambdas
7459 auto lambda1 = [](){};
7460 auto lambda2 = lambda1;
7468 auto a = [](int i, int j){ return i + j; }(1, 2);
7469 auto b = []() -> int { return '0'; }();
7470 auto c = [=](){ return a + b; }();
7471 auto d = [&](){ return c; }();
7472 auto e = [a, &b](int x) mutable {
7473 const auto identity = [](int y){ return y; };
7474 for (auto i = 0; i < a; ++i)
7476 return x + identity(a + b);
7478 return a + b + c + d + e;
7484 const auto nullary = [](){ return 0; };
7485 const auto unary = [](int x){ return x; };
7486 using nullary_t = decltype(nullary);
7487 using unary_t = decltype(unary);
7488 const auto higher1st = [](nullary_t f){ return f(); };
7489 const auto higher2nd = [unary](nullary_t f1){
7490 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7492 return higher1st(nullary) + higher2nd(nullary)(unary);
7497 namespace test_variadic_templates
7503 template <int N0, int... N1toN>
7504 struct sum<N0, N1toN...>
7506 static constexpr auto value = N0 + sum<N1toN...>::value;
7512 static constexpr auto value = 0;
7515 static_assert(sum<>::value == 0, "");
7516 static_assert(sum<1>::value == 1, "");
7517 static_assert(sum<23>::value == 23, "");
7518 static_assert(sum<1, 2>::value == 3, "");
7519 static_assert(sum<5, 5, 11>::value == 21, "");
7520 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7524 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7525 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7527 namespace test_template_alias_sfinae
7532 template<typename T>
7533 using member = typename T::member_type;
7535 template<typename T>
7538 template<typename T>
7539 void func(member<T>*) {}
7543 void test() { func<foo>(0); }
7547 } // namespace cxx11
7549 #endif // __cplusplus >= 201103L
7554 if ac_fn_cxx_try_compile "$LINENO"; then :
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 eval ac_res=\$$cachevar
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7564 $as_echo "$ac_res" >&6; }
7565 if eval test x\$$cachevar = xyes; then
7566 CXX_DIALECT="$switch"
7571 if test x$ac_success = xyes; then
7577 ac_cpp='$CPP $CPPFLAGS'
7578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7582 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7583 if test x$ac_success = xno; then
7584 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7587 if test x$ac_success = xno; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7590 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7594 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
7601 # If we haven't got the data from the intl directory,
7602 # assume NLS is disabled.
7611 if test -f ../intl/config.intl; then
7612 . ../intl/config.intl
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7615 $as_echo_n "checking whether NLS is requested... " >&6; }
7616 if test x"$USE_NLS" != xyes; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7621 $as_echo "yes" >&6; }
7623 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7627 $as_echo_n "checking for catalogs to be installed... " >&6; }
7628 # Look for .po and .gmo files in the source directory.
7631 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7632 # If there aren't any .gmo files the shell will give us the
7633 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7635 case "$cat" in *\**)
7638 # The quadruple backslash is collapsed to a double backslash
7639 # by the backticks, then collapsed again by the double quotes,
7640 # leaving us with one backslash in the sed expression (right
7641 # before the dot that mustn't act as a wildcard).
7642 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7643 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
7644 # The user is allowed to set LINGUAS to a list of languages to
7645 # install catalogs for. If it's empty that means "all of them."
7646 if test "x$LINGUAS" = x; then
7647 CATALOGS="$CATALOGS $cat"
7648 XLINGUAS="$XLINGUAS $lang"
7650 case "$LINGUAS" in *$lang*)
7651 CATALOGS="$CATALOGS $cat"
7652 XLINGUAS="$XLINGUAS $lang"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7659 $as_echo "$LINGUAS" >&6; }
7673 # Check for presence and size of long long.
7674 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7675 if test "x$ac_cv_type_long_long" = xyes; then :
7677 cat >>confdefs.h <<_ACEOF
7678 #define HAVE_LONG_LONG 1
7681 # The cast to long int works around a bug in the HP C Compiler
7682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7683 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7684 # This bug is HP SR number 8606223364.
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7686 $as_echo_n "checking size of long long... " >&6; }
7687 if ${ac_cv_sizeof_long_long+:} false; then :
7688 $as_echo_n "(cached) " >&6
7690 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7693 if test "$ac_cv_type_long_long" = yes; then
7694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7695 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
7696 as_fn_error 77 "cannot compute sizeof (long long)
7697 See \`config.log
' for more details" "$LINENO" 5; }
7699 ac_cv_sizeof_long_long=0
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7705 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7709 cat >>confdefs.h <<_ACEOF
7710 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7717 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7718 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7719 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7725 cat >>confdefs.h <<_ACEOF
7726 #define HAVE_DECL_BASENAME $ac_have_decl
7728 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7729 if test "x$ac_cv_have_decl_ffs" = xyes; then :
7735 cat >>confdefs.h <<_ACEOF
7736 #define HAVE_DECL_FFS $ac_have_decl
7738 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7739 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7745 cat >>confdefs.h <<_ACEOF
7746 #define HAVE_DECL_ASPRINTF $ac_have_decl
7748 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7749 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7755 cat >>confdefs.h <<_ACEOF
7756 #define HAVE_DECL_VASPRINTF $ac_have_decl
7758 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7759 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7765 cat >>confdefs.h <<_ACEOF
7766 #define HAVE_DECL_SNPRINTF $ac_have_decl
7768 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7769 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7775 cat >>confdefs.h <<_ACEOF
7776 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7779 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7780 if test "x$ac_cv_have_decl_strtol" = xyes; then :
7786 cat >>confdefs.h <<_ACEOF
7787 #define HAVE_DECL_STRTOL $ac_have_decl
7789 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7790 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7796 cat >>confdefs.h <<_ACEOF
7797 #define HAVE_DECL_STRTOUL $ac_have_decl
7799 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7800 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7806 cat >>confdefs.h <<_ACEOF
7807 #define HAVE_DECL_STRTOLL $ac_have_decl
7809 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7810 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7816 cat >>confdefs.h <<_ACEOF
7817 #define HAVE_DECL_STRTOULL $ac_have_decl
7820 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7821 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7827 cat >>confdefs.h <<_ACEOF
7828 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7832 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7833 if test "x$ac_cv_type_size_t" = xyes; then :
7837 cat >>confdefs.h <<_ACEOF
7838 #define size_t unsigned int
7846 for ac_header in $ac_header_list
7848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7849 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7851 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7852 cat >>confdefs.h <<_ACEOF
7853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7866 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7867 if test "x$ac_cv_type_pid_t" = xyes; then :
7871 cat >>confdefs.h <<_ACEOF
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7878 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7879 if ${ac_cv_path_SED+:} false; then :
7880 $as_echo_n "(cached) " >&6
7882 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7883 for ac_i in 1 2 3 4 5 6 7; do
7884 ac_script="$ac_script$as_nl$ac_script"
7886 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7887 { ac_script=; unset ac_script;}
7888 if test -z "$SED"; then
7889 ac_path_SED_found=false
7890 # Loop through the user's path and
test for each of PROGNAME-LIST
7891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7895 test -z "$as_dir" && as_dir
=.
7896 for ac_prog
in sed gsed
; do
7897 for ac_exec_ext
in '' $ac_executable_extensions; do
7898 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
7899 as_fn_executable_p
"$ac_path_SED" ||
continue
7900 # Check for GNU ac_path_SED and select it if it is found.
7901 # Check for GNU $ac_path_SED
7902 case `"$ac_path_SED" --version 2>&1` in
7904 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
7907 $as_echo_n 0123456789 >"conftest.in"
7910 cat "conftest.in" "conftest.in" >"conftest.tmp"
7911 mv "conftest.tmp" "conftest.in"
7912 cp "conftest.in" "conftest.nl"
7913 $as_echo '' >> "conftest.nl"
7914 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
7915 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
7916 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
7917 if test $ac_count -gt ${ac_path_SED_max-0}; then
7918 # Best one so far, save it but keep looking for a better one
7919 ac_cv_path_SED
="$ac_path_SED"
7920 ac_path_SED_max
=$ac_count
7922 # 10*(2^10) chars as input seems more than enough
7923 test $ac_count -gt 10 && break
7925 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
7928 $ac_path_SED_found && break 3
7933 if test -z "$ac_cv_path_SED"; then
7934 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7942 $as_echo "$ac_cv_path_SED" >&6; }
7943 SED
="$ac_cv_path_SED"
7947 if test "X$prefix" = "XNONE"; then
7948 acl_final_prefix
="$ac_default_prefix"
7950 acl_final_prefix
="$prefix"
7952 if test "X$exec_prefix" = "XNONE"; then
7953 acl_final_exec_prefix
='${prefix}'
7955 acl_final_exec_prefix
="$exec_prefix"
7957 acl_save_prefix
="$prefix"
7958 prefix
="$acl_final_prefix"
7959 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7960 prefix
="$acl_save_prefix"
7963 # Check whether --with-gnu-ld was given.
7964 if test "${with_gnu_ld+set}" = set; then :
7965 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7970 # Prepare PATH_SEPARATOR.
7971 # The user is always right.
7972 if test "${PATH_SEPARATOR+set}" != set; then
7973 echo "#! /bin/sh" >conf$$.sh
7974 echo "exit 0" >>conf$$.sh
7976 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7984 if test "$GCC" = yes; then
7985 # Check if gcc -print-prog-name=ld gives a path.
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7987 $as_echo_n "checking for ld used by GCC... " >&6; }
7990 # gcc leaves a trailing carriage return which upsets mingw
7991 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7993 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7996 # Accept absolute paths.
7997 [\\/]* |
[A-Za-z
]:[\\/]*)
7998 re_direlt
='/[^/][^/]*/\.\./'
7999 # Canonicalize the path of ld
8000 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8001 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8002 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8004 test -z "$LD" && LD
="$ac_prog"
8007 # If it fails, then pretend we aren't using GCC.
8011 # If it is relative, then search for the first ld in PATH.
8015 elif test "$with_gnu_ld" = yes; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8017 $as_echo_n "checking for GNU ld... " >&6; }
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8020 $as_echo_n "checking for non-GNU ld... " >&6; }
8022 if ${acl_cv_path_LD+:} false
; then :
8023 $as_echo_n "(cached) " >&6
8025 if test -z "$LD"; then
8026 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8027 for ac_dir
in $PATH; do
8028 test -z "$ac_dir" && ac_dir
=.
8029 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8030 acl_cv_path_LD
="$ac_dir/$ac_prog"
8031 # Check to see if the program is GNU ld. I'd rather use --version,
8032 # but apparently some GNU ld's only accept -v.
8033 # Break only if it was the GNU/non-GNU ld that we prefer.
8034 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8035 test "$with_gnu_ld" != no
&& break
8037 test "$with_gnu_ld" != yes && break
8043 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8047 LD
="$acl_cv_path_LD"
8048 if test -n "$LD"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8050 $as_echo "$LD" >&6; }
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8055 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8057 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8058 if ${acl_cv_prog_gnu_ld+:} false
; then :
8059 $as_echo_n "(cached) " >&6
8061 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8062 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8063 acl_cv_prog_gnu_ld
=yes
8065 acl_cv_prog_gnu_ld
=no
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8069 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8070 with_gnu_ld
=$acl_cv_prog_gnu_ld
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8075 $as_echo_n "checking for shared library run path origin... " >&6; }
8076 if ${acl_cv_rpath+:} false
; then :
8077 $as_echo_n "(cached) " >&6
8080 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8081 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8088 $as_echo "$acl_cv_rpath" >&6; }
8090 libext
="$acl_cv_libext"
8091 shlibext
="$acl_cv_shlibext"
8092 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8093 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8094 hardcode_direct
="$acl_cv_hardcode_direct"
8095 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8096 # Check whether --enable-rpath was given.
8097 if test "${enable_rpath+set}" = set; then :
8098 enableval
=$enable_rpath; :
8105 # Set the 'development' global.
8106 .
$srcdir/..
/bfd
/development.sh
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8109 $as_echo_n "checking for ANSI C header files... " >&6; }
8110 if ${ac_cv_header_stdc+:} false
; then :
8111 $as_echo_n "(cached) " >&6
8113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8128 if ac_fn_c_try_compile
"$LINENO"; then :
8129 ac_cv_header_stdc
=yes
8131 ac_cv_header_stdc
=no
8133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8135 if test $ac_cv_header_stdc = yes; then
8136 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8143 $EGREP "memchr" >/dev
/null
2>&1; then :
8146 ac_cv_header_stdc
=no
8152 if test $ac_cv_header_stdc = yes; then
8153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8160 $EGREP "free" >/dev
/null
2>&1; then :
8163 ac_cv_header_stdc
=no
8169 if test $ac_cv_header_stdc = yes; then
8170 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8171 if test "$cross_compiling" = yes; then :
8174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8178 #if ((' ' & 0x0FF) == 0x020)
8179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8182 # define ISLOWER(c) \
8183 (('a' <= (c) && (c) <= 'i') \
8184 || ('j' <= (c) && (c) <= 'r') \
8185 || ('s' <= (c) && (c) <= 'z'))
8186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8194 for (i = 0; i < 256; i++)
8195 if (XOR (islower (i), ISLOWER (i))
8196 || toupper (i) != TOUPPER (i))
8201 if ac_fn_c_try_run
"$LINENO"; then :
8204 ac_cv_header_stdc
=no
8206 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8207 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8213 $as_echo "$ac_cv_header_stdc" >&6; }
8214 if test $ac_cv_header_stdc = yes; then
8216 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8220 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8221 # for constant arguments. Useless!
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8223 $as_echo_n "checking for working alloca.h... " >&6; }
8224 if ${ac_cv_working_alloca_h+:} false
; then :
8225 $as_echo_n "(cached) " >&6
8227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8233 char *p = (char *) alloca (2 * sizeof (int));
8239 if ac_fn_c_try_link
"$LINENO"; then :
8240 ac_cv_working_alloca_h
=yes
8242 ac_cv_working_alloca_h
=no
8244 rm -f core conftest.err conftest.
$ac_objext \
8245 conftest
$ac_exeext conftest.
$ac_ext
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8248 $as_echo "$ac_cv_working_alloca_h" >&6; }
8249 if test $ac_cv_working_alloca_h = yes; then
8251 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8256 $as_echo_n "checking for alloca... " >&6; }
8257 if ${ac_cv_func_alloca_works+:} false
; then :
8258 $as_echo_n "(cached) " >&6
8260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8263 # define alloca __builtin_alloca
8266 # include <malloc.h>
8267 # define alloca _alloca
8269 # ifdef HAVE_ALLOCA_H
8270 # include <alloca.h>
8275 # ifndef alloca /* predefined by HP cc +Olibcalls */
8276 void *alloca (size_t);
8286 char *p = (char *) alloca (1);
8292 if ac_fn_c_try_link
"$LINENO"; then :
8293 ac_cv_func_alloca_works
=yes
8295 ac_cv_func_alloca_works
=no
8297 rm -f core conftest.err conftest.
$ac_objext \
8298 conftest
$ac_exeext conftest.
$ac_ext
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8301 $as_echo "$ac_cv_func_alloca_works" >&6; }
8303 if test $ac_cv_func_alloca_works = yes; then
8305 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8308 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8309 # that cause trouble. Some versions do not even contain alloca or
8310 # contain a buggy version. If you still want to use their alloca,
8311 # use ar to extract alloca.o from them instead of compiling alloca.c.
8313 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8315 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8319 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8320 if ${ac_cv_os_cray+:} false
; then :
8321 $as_echo_n "(cached) " >&6
8323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 #if defined CRAY && ! defined CRAY2
8332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8333 $EGREP "webecray" >/dev
/null
2>&1; then :
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8342 $as_echo "$ac_cv_os_cray" >&6; }
8343 if test $ac_cv_os_cray = yes; then
8344 for ac_func
in _getb67 GETB67 getb67
; do
8345 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8346 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8347 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8349 cat >>confdefs.h
<<_ACEOF
8350 #define CRAY_STACKSEG_END $ac_func
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8360 $as_echo_n "checking stack direction for C alloca... " >&6; }
8361 if ${ac_cv_c_stack_direction+:} false
; then :
8362 $as_echo_n "(cached) " >&6
8364 if test "$cross_compiling" = yes; then :
8365 ac_cv_c_stack_direction
=0
8367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369 $ac_includes_default
8371 find_stack_direction (int *addr, int depth)
8376 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8377 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8382 main (int argc, char **argv)
8384 return find_stack_direction (0, argc + !argv + 20) < 0;
8387 if ac_fn_c_try_run
"$LINENO"; then :
8388 ac_cv_c_stack_direction
=1
8390 ac_cv_c_stack_direction
=-1
8392 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8393 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8398 $as_echo "$ac_cv_c_stack_direction" >&6; }
8399 cat >>confdefs.h
<<_ACEOF
8400 #define STACK_DIRECTION $ac_cv_c_stack_direction
8411 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8413 WIN32APILIBS
="-lws2_32"
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8419 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8420 if ${am_cv_langinfo_codeset+:} false
; then :
8421 $as_echo_n "(cached) " >&6
8423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8425 #include <langinfo.h>
8429 char* cs = nl_langinfo(CODESET);
8434 if ac_fn_c_try_link
"$LINENO"; then :
8435 am_cv_langinfo_codeset
=yes
8437 am_cv_langinfo_codeset
=no
8439 rm -f core conftest.err conftest.
$ac_objext \
8440 conftest
$ac_exeext conftest.
$ac_ext
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8444 $as_echo "$am_cv_langinfo_codeset" >&6; }
8445 if test $am_cv_langinfo_codeset = yes; then
8447 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8452 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 dlfcn.h linux
/elf.h proc_service.h poll.h sys
/poll.h sys
/select.h
8454 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8455 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8456 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8457 cat >>confdefs.h
<<_ACEOF
8458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8467 for ac_func
in getpagesize
8469 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8470 if test "x$ac_cv_func_getpagesize" = xyes
; then :
8471 cat >>confdefs.h
<<_ACEOF
8472 #define HAVE_GETPAGESIZE 1
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8479 $as_echo_n "checking for working mmap... " >&6; }
8480 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
8481 $as_echo_n "(cached) " >&6
8483 if test "$cross_compiling" = yes; then :
8484 ac_cv_func_mmap_fixed_mapped
=no
8486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 $ac_includes_default
8489 /* malloc might have been renamed as rpl_malloc. */
8492 /* Thanks to Mike Haertel and Jim Avera for this test.
8493 Here is a matrix of mmap possibilities:
8494 mmap private not fixed
8495 mmap private fixed at somewhere currently unmapped
8496 mmap private fixed at somewhere already mapped
8497 mmap shared not fixed
8498 mmap shared fixed at somewhere currently unmapped
8499 mmap shared fixed at somewhere already mapped
8500 For private mappings, we should verify that changes cannot be read()
8501 back from the file, nor mmap's back from the file at a different
8502 address. (There have been systems where private was not correctly
8503 implemented like the infamous i386 svr4.0, and systems where the
8504 VM page cache was not coherent with the file system buffer cache
8505 like early versions of FreeBSD and possibly contemporary NetBSD.)
8506 For shared mappings, we should conversely verify that changes get
8507 propagated back to all the places they're supposed to be.
8509 Grep wants private fixed already mapped.
8510 The main things grep needs to know about mmap are:
8511 * does it exist and is it safe to write into the mmap'd area
8512 * how to use it (BSD variants) */
8515 #include <sys/mman.h>
8517 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8521 /* This mess was copied from the GNU getpagesize.h. */
8522 #ifndef HAVE_GETPAGESIZE
8523 # ifdef _SC_PAGESIZE
8524 # define getpagesize() sysconf(_SC_PAGESIZE)
8525 # else /* no _SC_PAGESIZE */
8526 # ifdef HAVE_SYS_PARAM_H
8527 # include <sys/param.h>
8528 # ifdef EXEC_PAGESIZE
8529 # define getpagesize() EXEC_PAGESIZE
8530 # else /* no EXEC_PAGESIZE */
8532 # define getpagesize() NBPG * CLSIZE
8535 # endif /* no CLSIZE */
8536 # else /* no NBPG */
8538 # define getpagesize() NBPC
8539 # else /* no NBPC */
8541 # define getpagesize() PAGESIZE
8542 # endif /* PAGESIZE */
8543 # endif /* no NBPC */
8544 # endif /* no NBPG */
8545 # endif /* no EXEC_PAGESIZE */
8546 # else /* no HAVE_SYS_PARAM_H */
8547 # define getpagesize() 8192 /* punt totally */
8548 # endif /* no HAVE_SYS_PARAM_H */
8549 # endif /* no _SC_PAGESIZE */
8551 #endif /* no HAVE_GETPAGESIZE */
8556 char *data, *data2, *data3;
8561 pagesize = getpagesize ();
8563 /* First, make a file with some known garbage in it. */
8564 data = (char *) malloc (pagesize);
8567 for (i = 0; i < pagesize; ++i)
8568 *(data + i) = rand ();
8570 fd = creat ("conftest.mmap", 0600);
8573 if (write (fd, data, pagesize) != pagesize)
8577 /* Next, check that the tail of a page is zero-filled. File must have
8578 non-zero length, otherwise we risk SIGBUS for entire page. */
8579 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8583 if (write (fd2, cdata2, 1) != 1)
8585 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8586 if (data2 == MAP_FAILED)
8588 for (i = 0; i < pagesize; ++i)
8592 if (munmap (data2, pagesize))
8595 /* Next, try to mmap the file at a fixed address which already has
8596 something else allocated at it. If we can, also make sure that
8597 we see the same garbage. */
8598 fd = open ("conftest.mmap", O_RDWR);
8601 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8602 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8604 for (i = 0; i < pagesize; ++i)
8605 if (*(data + i) != *(data2 + i))
8608 /* Finally, make sure that changes to the mapped area do not
8609 percolate back to the file as seen by read(). (This is a bug on
8610 some variants of i386 svr4.0.) */
8611 for (i = 0; i < pagesize; ++i)
8612 *(data2 + i) = *(data2 + i) + 1;
8613 data3 = (char *) malloc (pagesize);
8616 if (read (fd, data3, pagesize) != pagesize)
8618 for (i = 0; i < pagesize; ++i)
8619 if (*(data + i) != *(data3 + i))
8625 if ac_fn_c_try_run
"$LINENO"; then :
8626 ac_cv_func_mmap_fixed_mapped
=yes
8628 ac_cv_func_mmap_fixed_mapped
=no
8630 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8631 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8636 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8637 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8639 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8642 rm -f conftest.mmap conftest.txt
8644 for ac_header
in vfork.h
8646 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8647 if test "x$ac_cv_header_vfork_h" = xyes
; then :
8648 cat >>confdefs.h
<<_ACEOF
8649 #define HAVE_VFORK_H 1
8656 for ac_func
in fork vfork
8658 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8659 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8660 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8661 cat >>confdefs.h
<<_ACEOF
8662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8668 if test "x$ac_cv_func_fork" = xyes
; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8670 $as_echo_n "checking for working fork... " >&6; }
8671 if ${ac_cv_func_fork_works+:} false
; then :
8672 $as_echo_n "(cached) " >&6
8674 if test "$cross_compiling" = yes; then :
8675 ac_cv_func_fork_works
=cross
8677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 $ac_includes_default
8684 /* By Ruediger Kuhlmann. */
8691 if ac_fn_c_try_run
"$LINENO"; then :
8692 ac_cv_func_fork_works
=yes
8694 ac_cv_func_fork_works
=no
8696 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8697 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8702 $as_echo "$ac_cv_func_fork_works" >&6; }
8705 ac_cv_func_fork_works
=$ac_cv_func_fork
8707 if test "x$ac_cv_func_fork_works" = xcross
; then
8709 *-*-amigaos* |
*-*-msdosdjgpp*)
8710 # Override, as these systems have only a dummy fork() stub
8711 ac_cv_func_fork_works
=no
8714 ac_cv_func_fork_works
=yes
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8718 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8720 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8721 if test "x$ac_cv_func_vfork" = xyes
; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8723 $as_echo_n "checking for working vfork... " >&6; }
8724 if ${ac_cv_func_vfork_works+:} false
; then :
8725 $as_echo_n "(cached) " >&6
8727 if test "$cross_compiling" = yes; then :
8728 ac_cv_func_vfork_works
=cross
8730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 /* Thanks to Paul Eggert for this test. */
8733 $ac_includes_default
8734 #include <sys/wait.h>
8738 /* On some sparc systems, changes by the child to local and incoming
8739 argument registers are propagated back to the parent. The compiler
8740 is told about this with #include <vfork.h>, but some compilers
8741 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8742 static variable whose address is put into a register that is
8743 clobbered by the vfork. */
8746 sparc_address_test (int arg)
8748 sparc_address_test (arg) int arg;
8769 pid_t parent = getpid ();
8772 sparc_address_test (0);
8777 /* Here is another test for sparc vfork register problems. This
8778 test uses lots of local variables, at least as many local
8779 variables as main has allocated so far including compiler
8780 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8781 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8782 reuse the register of parent for one of the local variables,
8783 since it will think that parent can't possibly be used any more
8784 in this routine. Assigning to the local variable will thus
8785 munge parent in the parent process. */
8787 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8788 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8789 /* Convince the compiler that p..p7 are live; otherwise, it might
8790 use the same hardware register for all 8 local variables. */
8791 if (p != p1 || p != p2 || p != p3 || p != p4
8792 || p != p5 || p != p6 || p != p7)
8795 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8796 from child file descriptors. If the child closes a descriptor
8797 before it execs or exits, this munges the parent's descriptor
8798 as well. Test for this by closing stdout in the child. */
8799 _exit(close(fileno(stdout)) != 0);
8804 while (wait(&status) != child)
8807 /* Was there some problem with vforking? */
8810 /* Did the child fail? (This shouldn't happen.) */
8813 /* Did the vfork/compiler bug occur? */
8814 || parent != getpid()
8816 /* Did the file descriptor bug occur? */
8817 || fstat(fileno(stdout), &st) != 0
8822 if ac_fn_c_try_run
"$LINENO"; then :
8823 ac_cv_func_vfork_works
=yes
8825 ac_cv_func_vfork_works
=no
8827 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8828 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8833 $as_echo "$ac_cv_func_vfork_works" >&6; }
8836 if test "x$ac_cv_func_fork_works" = xcross
; then
8837 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8839 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8842 if test "x$ac_cv_func_vfork_works" = xyes
; then
8844 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8848 $as_echo "#define vfork fork" >>confdefs.h
8851 if test "x$ac_cv_func_fork_works" = xyes
; then
8853 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8857 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
8858 ptrace64 sbrk setns sigaltstack sigprocmask \
8859 setpgid setpgrp getrusage getauxval
8861 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8862 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8863 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8864 cat >>confdefs.h
<<_ACEOF
8865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8872 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8874 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
8880 cat >>confdefs.h
<<_ACEOF
8881 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8885 if test "$cross_compiling" = yes; then :
8886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888 #include <sys/personality.h>
8893 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8894 # define ADDR_NO_RANDOMIZE 0x0040000
8896 /* Test the flag could be set and stays set. */
8897 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8898 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8904 if ac_fn_c_try_link
"$LINENO"; then :
8905 have_personality
=true
8907 have_personality
=false
8909 rm -f core conftest.err conftest.
$ac_objext \
8910 conftest
$ac_exeext conftest.
$ac_ext
8912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #include <sys/personality.h>
8919 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8920 # define ADDR_NO_RANDOMIZE 0x0040000
8922 /* Test the flag could be set and stays set. */
8923 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8924 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8930 if ac_fn_c_try_run
"$LINENO"; then :
8931 have_personality
=true
8933 have_personality
=false
8935 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8936 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8939 if $have_personality
8942 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8946 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8947 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
8953 cat >>confdefs.h
<<_ACEOF
8954 #define HAVE_DECL_STRSTR $ac_have_decl
8958 # ----------------------- #
8959 # Checks for structures. #
8960 # ----------------------- #
8962 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8963 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
8965 cat >>confdefs.h
<<_ACEOF
8966 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8971 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8972 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
8974 cat >>confdefs.h
<<_ACEOF
8975 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8982 # On FreeBSD we need libutil for the kinfo_get* functions. On
8983 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8984 # Figure out which one to use.
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8986 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8987 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8988 $as_echo_n "(cached) " >&6
8990 ac_func_search_save_LIBS
=$LIBS
8991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8994 /* Override any GCC internal prototype to avoid an error.
8995 Use char because int might match the return type of a GCC
8996 builtin and then its argument prototype would still apply. */
9000 char kinfo_getfile ();
9004 return kinfo_getfile ();
9009 for ac_lib
in '' util util-freebsd
; do
9010 if test -z "$ac_lib"; then
9011 ac_res
="none required"
9014 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9016 if ac_fn_c_try_link
"$LINENO"; then :
9017 ac_cv_search_kinfo_getfile
=$ac_res
9019 rm -f core conftest.err conftest.
$ac_objext \
9021 if ${ac_cv_search_kinfo_getfile+:} false
; then :
9025 if ${ac_cv_search_kinfo_getfile+:} false
; then :
9028 ac_cv_search_kinfo_getfile
=no
9031 LIBS
=$ac_func_search_save_LIBS
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
9034 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
9035 ac_res
=$ac_cv_search_kinfo_getfile
9036 if test "$ac_res" != no
; then :
9037 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9042 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
9043 for ac_func
in kinfo_getfile
9045 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
9046 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
9047 cat >>confdefs.h
<<_ACEOF
9048 #define HAVE_KINFO_GETFILE 1
9055 # ----------------------- #
9056 # Check for threading. #
9057 # ----------------------- #
9059 # Check whether --enable-threading was given.
9060 if test "${enable_threading+set}" = set; then :
9061 enableval
=$enable_threading; case "$enableval" in
9062 yes) want_threading
=yes ;;
9063 no
) want_threading
=no
;;
9064 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
9071 # Check for std::thread. This does not work on some platforms, like
9074 ac_cpp
='$CXXCPP $CPPFLAGS'
9075 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9076 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9077 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9084 ac_cpp
='$CPP $CPPFLAGS'
9085 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9086 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9087 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9091 # We used to check for pthread.h first, but this fails if pthread.h
9092 # requires special compiler flags (e.g. on Tru64 or Sequent).
9093 # It gets checked for in the link test anyway.
9095 # First of all, check if the user has set any of the PTHREAD_LIBS,
9096 # etcetera environment variables, and if threads linking works using
9098 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9099 ax_pthread_save_CC
="$CC"
9100 ax_pthread_save_CFLAGS
="$CFLAGS"
9101 ax_pthread_save_LIBS
="$LIBS"
9102 if test "x$PTHREAD_CC" != "x"; then :
9105 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9106 LIBS
="$PTHREAD_LIBS $LIBS"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9108 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9112 /* Override any GCC internal prototype to avoid an error.
9113 Use char because int might match the return type of a GCC
9114 builtin and then its argument prototype would still apply. */
9118 char pthread_join ();
9122 return pthread_join ();
9127 if ac_fn_c_try_link
"$LINENO"; then :
9130 rm -f core conftest.err conftest.
$ac_objext \
9131 conftest
$ac_exeext conftest.
$ac_ext
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9133 $as_echo "$ax_pthread_ok" >&6; }
9134 if test "x$ax_pthread_ok" = "xno"; then
9138 CC
="$ax_pthread_save_CC"
9139 CFLAGS
="$ax_pthread_save_CFLAGS"
9140 LIBS
="$ax_pthread_save_LIBS"
9143 # We must check for the threads library under a number of different
9144 # names; the ordering is very important because some systems
9145 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9146 # libraries is broken (non-POSIX).
9148 # Create a list of thread flags to try. Items starting with a "-" are
9149 # C compiler flags, and other items are library names, except for "none"
9150 # which indicates that we try without any flags at all, and "pthread-config"
9151 # which is a program returning the flags for the Pth emulation library.
9153 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9155 # The ordering *is* (sometimes) important. Some notes on the
9156 # individual items follow:
9158 # pthreads: AIX (must check this before -lpthread)
9159 # none: in case threads are in libc; should be tried before -Kthread and
9160 # other compiler flags to prevent continual compiler warnings
9161 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9162 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9163 # (Note: HP C rejects this with "bad form for `-t' option")
9164 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9165 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9166 # doesn't hurt to check since this sometimes defines pthreads and
9167 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9168 # is present but should not be used directly; and before -mthreads,
9169 # because the compiler interprets this as "-mt" + "-hreads")
9170 # -mthreads: Mingw32/gcc, Lynx/gcc
9171 # pthread: Linux, etcetera
9172 # --thread-safe: KAI C++
9173 # pthread-config: use pthread-config program (for GNU Pth library)
9179 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9180 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9182 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
9187 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9188 # multi-threading and also sets -lpthread."
9190 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
9195 # IBM z/OS requires a feature-test macro to be defined in order to
9196 # enable POSIX threads at all, so give the user a hint if this is
9197 # not set. (We don't define these ourselves, as they can affect
9198 # other portions of the system API in unpredictable ways.)
9200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9203 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9204 AX_PTHREAD_ZOS_MISSING
9208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9209 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9211 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9219 # On Solaris (at least, for some versions), libc contains stubbed
9220 # (non-functional) versions of the pthreads routines, so link-based
9221 # tests will erroneously succeed. (N.B.: The stubs are missing
9222 # pthread_cleanup_push, or rather a function called by this macro,
9223 # so we could check for that, but who knows whether they'll stub
9224 # that too in a future libc.) So we'll check first for the
9225 # standard Solaris way of linking pthreads (-mt -lpthread).
9227 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
9231 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9233 if test "x$GCC" = "xyes"; then :
9234 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
9237 # The presence of a feature test macro requesting re-entrant function
9238 # definitions is, on some systems, a strong hint that pthreads support is
9242 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
9243 ax_pthread_check_macro
="_REENTRANT"
9247 ax_pthread_check_macro
="_THREAD_SAFE"
9251 ax_pthread_check_macro
="--"
9254 if test "x$ax_pthread_check_macro" = "x--"; then :
9255 ax_pthread_check_cond
=0
9257 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
9260 # Are we compiling with Clang?
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9263 $as_echo_n "checking whether $CC is Clang... " >&6; }
9264 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
9265 $as_echo_n "(cached) " >&6
9267 ax_cv_PTHREAD_CLANG
=no
9268 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9269 if test "x$GCC" = "xyes"; then
9270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9272 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9273 # if defined(__clang__) && defined(__llvm__)
9274 AX_PTHREAD_CC_IS_CLANG
9278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9279 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
9280 ax_cv_PTHREAD_CLANG
=yes
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9288 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9289 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
9291 ax_pthread_clang_warning
=no
9293 # Clang needs special handling, because older versions handle the -pthread
9294 # option in a rather... idiosyncratic way
9296 if test "x$ax_pthread_clang" = "xyes"; then
9298 # Clang takes -pthread; it has never supported any other flag
9300 # (Note 1: This will need to be revisited if a system that Clang
9301 # supports has POSIX threads in a separate library. This tends not
9302 # to be the way of modern systems, but it's conceivable.)
9304 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9305 # to get POSIX threads support; the API is always present and
9306 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9307 # -pthread does define _REENTRANT, and while the Darwin headers
9308 # ignore this macro, third-party headers might not.)
9310 PTHREAD_CFLAGS
="-pthread"
9315 # However, older versions of Clang make a point of warning the user
9316 # that, in an invocation where only linking and no compilation is
9317 # taking place, the -pthread option has no effect ("argument unused
9318 # during compilation"). They expect -pthread to be passed in only
9319 # when source code is being compiled.
9321 # Problem is, this is at odds with the way Automake and most other
9322 # C build frameworks function, which is that the same flags used in
9323 # compilation (CFLAGS) are also used in linking. Many systems
9324 # supported by AX_PTHREAD require exactly this for POSIX threads
9325 # support, and in fact it is often not straightforward to specify a
9326 # flag that is used only in the compilation phase and not in
9327 # linking. Such a scenario is extremely rare in practice.
9329 # Even though use of the -pthread flag in linking would only print
9330 # a warning, this can be a nuisance for well-run software projects
9331 # that build with -Werror. So if the active version of Clang has
9332 # this misfeature, we search for an option to squash it.
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9335 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9336 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
9337 $as_echo_n "(cached) " >&6
9339 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
9340 # Create an alternate version of $ac_link that compiles and
9341 # links in two steps (.c -> .o, .o -> exe) instead of one
9342 # (.c -> exe), because the warning occurs only in the second
9344 ax_pthread_save_ac_link
="$ac_link"
9345 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9346 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9347 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9348 ax_pthread_save_CFLAGS
="$CFLAGS"
9349 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
9350 if test "x$ax_pthread_try" = "xunknown"; then :
9353 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9354 ac_link
="$ax_pthread_save_ac_link"
9355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357 int main(void){return 0;}
9359 if ac_fn_c_try_link
"$LINENO"; then :
9360 ac_link
="$ax_pthread_2step_ac_link"
9361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 int main(void){return 0;}
9365 if ac_fn_c_try_link
"$LINENO"; then :
9368 rm -f core conftest.err conftest.
$ac_objext \
9369 conftest
$ac_exeext conftest.
$ac_ext
9372 rm -f core conftest.err conftest.
$ac_objext \
9373 conftest
$ac_exeext conftest.
$ac_ext
9375 ac_link
="$ax_pthread_save_ac_link"
9376 CFLAGS
="$ax_pthread_save_CFLAGS"
9377 if test "x$ax_pthread_try" = "x"; then :
9380 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9384 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9386 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9388 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9391 fi # $ax_pthread_clang = yes
9393 if test "x$ax_pthread_ok" = "xno"; then
9394 for ax_pthread_try_flag
in $ax_pthread_flags; do
9396 case $ax_pthread_try_flag in
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9399 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9404 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9405 PTHREAD_CFLAGS
="-mt"
9406 PTHREAD_LIBS
="-lpthread"
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9411 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9412 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
9416 # Extract the first word of "pthread-config", so it can be a program name with args.
9417 set dummy pthread-config
; ac_word
=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
9421 $as_echo_n "(cached) " >&6
9423 if test -n "$ax_pthread_config"; then
9424 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
9426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9430 test -z "$as_dir" && as_dir
=.
9431 for ac_exec_ext
in '' $ac_executable_extensions; do
9432 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9433 ac_cv_prog_ax_pthread_config
="yes"
9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
9444 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
9445 if test -n "$ax_pthread_config"; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9447 $as_echo "$ax_pthread_config" >&6; }
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9454 if test "x$ax_pthread_config" = "xno"; then :
9457 PTHREAD_CFLAGS
="`pthread-config --cflags`"
9458 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9463 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9464 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
9468 ax_pthread_save_CFLAGS
="$CFLAGS"
9469 ax_pthread_save_LIBS
="$LIBS"
9470 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9471 LIBS
="$PTHREAD_LIBS $LIBS"
9473 # Check for various functions. We must include pthread.h,
9474 # since some functions may be macros. (On the Sequent, we
9475 # need a special flag -Kthread to make this header compile.)
9476 # We check for pthread_join because it is in -lpthread on IRIX
9477 # while pthread_create is in libc. We check for pthread_attr_init
9478 # due to DEC craziness with -lpthreads. We check for
9479 # pthread_cleanup_push because it is one of the few pthread
9480 # functions on Solaris that doesn't have a non-functional libc stub.
9481 # We try pthread_create on general principles.
9483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485 #include <pthread.h>
9486 # if $ax_pthread_check_cond
9487 # error "$ax_pthread_check_macro must be defined"
9489 static void routine(void *a) { a = 0; }
9490 static void *start_routine(void *a) { return a; }
9494 pthread_t th; pthread_attr_t attr;
9495 pthread_create(&th, 0, start_routine, 0);
9496 pthread_join(th, 0);
9497 pthread_attr_init(&attr);
9498 pthread_cleanup_push(routine, 0);
9499 pthread_cleanup_pop(0) /* ; */
9504 if ac_fn_c_try_link
"$LINENO"; then :
9507 rm -f core conftest.err conftest.
$ac_objext \
9508 conftest
$ac_exeext conftest.
$ac_ext
9510 CFLAGS
="$ax_pthread_save_CFLAGS"
9511 LIBS
="$ax_pthread_save_LIBS"
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9514 $as_echo "$ax_pthread_ok" >&6; }
9515 if test "x$ax_pthread_ok" = "xyes"; then :
9524 # Various other checks:
9525 if test "x$ax_pthread_ok" = "xyes"; then
9526 ax_pthread_save_CFLAGS
="$CFLAGS"
9527 ax_pthread_save_LIBS
="$LIBS"
9528 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9529 LIBS
="$PTHREAD_LIBS $LIBS"
9531 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9533 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9534 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
9535 $as_echo_n "(cached) " >&6
9537 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
9538 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
9539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541 #include <pthread.h>
9545 int attr = $ax_pthread_attr; return attr /* ; */
9550 if ac_fn_c_try_link
"$LINENO"; then :
9551 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
9553 rm -f core conftest.err conftest.
$ac_objext \
9554 conftest
$ac_exeext conftest.
$ac_ext
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9559 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9560 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9561 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9562 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9564 cat >>confdefs.h
<<_ACEOF
9565 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9568 ax_pthread_joinable_attr_defined
=yes
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9573 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9574 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
9575 $as_echo_n "(cached) " >&6
9577 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
9580 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9586 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9587 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9588 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9589 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9590 ax_pthread_special_flags_added
=yes
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9594 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9595 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
9596 $as_echo_n "(cached) " >&6
9598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9600 #include <pthread.h>
9604 int i = PTHREAD_PRIO_INHERIT;
9609 if ac_fn_c_try_link
"$LINENO"; then :
9610 ax_cv_PTHREAD_PRIO_INHERIT
=yes
9612 ax_cv_PTHREAD_PRIO_INHERIT
=no
9614 rm -f core conftest.err conftest.
$ac_objext \
9615 conftest
$ac_exeext conftest.
$ac_ext
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9619 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9620 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9621 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9623 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9625 ax_pthread_prio_inherit_defined
=yes
9629 CFLAGS
="$ax_pthread_save_CFLAGS"
9630 LIBS
="$ax_pthread_save_LIBS"
9632 # More AIX lossage: compile with *_r variant
9633 if test "x$GCC" != "xyes"; then
9637 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
9638 #handle absolute path differently from PATH based program lookup
9641 if as_fn_executable_p
${CC}_r
; then :
9642 PTHREAD_CC
="${CC}_r"
9645 for ac_prog
in ${CC}_r
9647 # Extract the first word of "$ac_prog", so it can be a program name with args.
9648 set dummy
$ac_prog; ac_word
=$2
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650 $as_echo_n "checking for $ac_word... " >&6; }
9651 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
9652 $as_echo_n "(cached) " >&6
9654 if test -n "$PTHREAD_CC"; then
9655 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
9657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9661 test -z "$as_dir" && as_dir
=.
9662 for ac_exec_ext
in '' $ac_executable_extensions; do
9663 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9664 ac_cv_prog_PTHREAD_CC
="$ac_prog"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9674 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
9675 if test -n "$PTHREAD_CC"; then
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9677 $as_echo "$PTHREAD_CC" >&6; }
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 $as_echo "no" >&6; }
9684 test -n "$PTHREAD_CC" && break
9686 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9697 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9703 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9704 if test "x$ax_pthread_ok" = "xyes"; then
9712 ac_cpp
='$CXXCPP $CPPFLAGS'
9713 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9714 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9715 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9718 if test "$threads" = "yes"; then
9720 LIBS
="$PTHREAD_LIBS $LIBS"
9721 save_CXXFLAGS
="$CXXFLAGS"
9722 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9724 $as_echo_n "checking for std::thread... " >&6; }
9725 if ${gdb_cv_cxx_std_thread+:} false
; then :
9726 $as_echo_n "(cached) " >&6
9728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9735 std::thread t(callback);
9740 if ac_fn_cxx_try_compile
"$LINENO"; then :
9741 gdb_cv_cxx_std_thread
=yes
9743 gdb_cv_cxx_std_thread
=no
9745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9748 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
9750 # This check must be here, while LIBS includes any necessary
9751 # threading library.
9752 for ac_func
in pthread_sigmask pthread_setname_np
9754 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9755 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9756 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9757 cat >>confdefs.h
<<_ACEOF
9758 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9766 CXXFLAGS
="$save_CXXFLAGS"
9769 if test "$want_threading" = "yes"; then
9770 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9772 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9777 ac_cpp
='$CPP $CPPFLAGS'
9778 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9779 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9780 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9784 $as_echo_n "checking for sigsetjmp... " >&6; }
9785 if ${gdb_cv_func_sigsetjmp+:} false
; then :
9786 $as_echo_n "(cached) " >&6
9788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9796 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
9801 if ac_fn_c_try_compile
"$LINENO"; then :
9802 gdb_cv_func_sigsetjmp
=yes
9804 gdb_cv_func_sigsetjmp
=no
9806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9809 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
9810 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
9812 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9817 # Check whether --with-intel_pt was given.
9818 if test "${with_intel_pt+set}" = set; then :
9819 withval
=$with_intel_pt;
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9825 $as_echo_n "checking whether to use intel pt... " >&6; }
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9827 $as_echo "$with_intel_pt" >&6; }
9829 if test "${with_intel_pt}" = no
; then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
9831 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
9834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9837 #include <linux/perf_event.h>
9838 #ifndef PERF_ATTR_SIZE_VER5
9843 if ac_fn_c_try_cpp
"$LINENO"; then :
9848 rm -f conftest.err conftest.i conftest.
$ac_ext
9849 if test "$perf_event" != yes; then
9850 if test "$with_intel_pt" = yes; then
9851 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
9854 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
9868 acl_save_prefix
="$prefix"
9869 prefix
="$acl_final_prefix"
9870 acl_save_exec_prefix
="$exec_prefix"
9871 exec_prefix
="$acl_final_exec_prefix"
9873 eval additional_includedir
=\"$includedir\"
9874 eval additional_libdir
=\"$libdir\"
9876 exec_prefix
="$acl_save_exec_prefix"
9877 prefix
="$acl_save_prefix"
9880 # Check whether --with-libipt-prefix was given.
9881 if test "${with_libipt_prefix+set}" = set; then :
9882 withval
=$with_libipt_prefix;
9883 if test "X$withval" = "Xno"; then
9886 if test "X$withval" = "X"; then
9888 acl_save_prefix
="$prefix"
9889 prefix
="$acl_final_prefix"
9890 acl_save_exec_prefix
="$exec_prefix"
9891 exec_prefix
="$acl_final_exec_prefix"
9893 eval additional_includedir
=\"$includedir\"
9894 eval additional_libdir
=\"$libdir\"
9896 exec_prefix
="$acl_save_exec_prefix"
9897 prefix
="$acl_save_prefix"
9900 additional_includedir
="$withval/include"
9901 additional_libdir
="$withval/lib"
9908 # Check whether --with-libipt-type was given.
9909 if test "${with_libipt_type+set}" = set; then :
9910 withval
=$with_libipt_type; with_libipt_type
=$withval
9912 with_libipt_type
=auto
9915 lib_type
=`eval echo \$with_libipt_type`
9922 names_already_handled
=
9923 names_next_round
='ipt '
9924 while test -n "$names_next_round"; do
9925 names_this_round
="$names_next_round"
9927 for name
in $names_this_round; do
9929 for n
in $names_already_handled; do
9930 if test "$n" = "$name"; then
9935 if test -z "$already_handled"; then
9936 names_already_handled
="$names_already_handled $name"
9937 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9938 eval value
=\"\
$HAVE_LIB$uppername\"
9939 if test -n "$value"; then
9940 if test "$value" = yes; then
9941 eval value
=\"\
$LIB$uppername\"
9942 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
9943 eval value
=\"\
$LTLIB$uppername\"
9944 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
9953 if test $use_additional = yes; then
9954 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9955 found_dir
="$additional_libdir"
9956 found_so
="$additional_libdir/lib$name.$shlibext"
9957 if test -f "$additional_libdir/lib$name.la"; then
9958 found_la
="$additional_libdir/lib$name.la"
9960 elif test x
$lib_type != xshared
; then
9961 if test -f "$additional_libdir/lib$name.$libext"; then
9962 found_dir
="$additional_libdir"
9963 found_a
="$additional_libdir/lib$name.$libext"
9964 if test -f "$additional_libdir/lib$name.la"; then
9965 found_la
="$additional_libdir/lib$name.la"
9970 if test "X$found_dir" = "X"; then
9971 for x
in $LDFLAGS $LTLIBIPT; do
9973 acl_save_prefix
="$prefix"
9974 prefix
="$acl_final_prefix"
9975 acl_save_exec_prefix
="$exec_prefix"
9976 exec_prefix
="$acl_final_exec_prefix"
9978 exec_prefix
="$acl_save_exec_prefix"
9979 prefix
="$acl_save_prefix"
9983 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9984 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9986 found_so
="$dir/lib$name.$shlibext"
9987 if test -f "$dir/lib$name.la"; then
9988 found_la
="$dir/lib$name.la"
9990 elif test x
$lib_type != xshared
; then
9991 if test -f "$dir/lib$name.$libext"; then
9993 found_a
="$dir/lib$name.$libext"
9994 if test -f "$dir/lib$name.la"; then
9995 found_la
="$dir/lib$name.la"
10001 if test "X$found_dir" != "X"; then
10006 if test "X$found_dir" != "X"; then
10007 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
10008 if test "X$found_so" != "X"; then
10009 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10010 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10013 for x
in $ltrpathdirs; do
10014 if test "X$x" = "X$found_dir"; then
10019 if test -z "$haveit"; then
10020 ltrpathdirs
="$ltrpathdirs $found_dir"
10022 if test "$hardcode_direct" = yes; then
10023 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10025 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10026 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10028 for x
in $rpathdirs; do
10029 if test "X$x" = "X$found_dir"; then
10034 if test -z "$haveit"; then
10035 rpathdirs
="$rpathdirs $found_dir"
10039 for x
in $LDFLAGS $LIBIPT; do
10041 acl_save_prefix
="$prefix"
10042 prefix
="$acl_final_prefix"
10043 acl_save_exec_prefix
="$exec_prefix"
10044 exec_prefix
="$acl_final_exec_prefix"
10046 exec_prefix
="$acl_save_exec_prefix"
10047 prefix
="$acl_save_prefix"
10049 if test "X$x" = "X-L$found_dir"; then
10054 if test -z "$haveit"; then
10055 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10057 if test "$hardcode_minus_L" != no
; then
10058 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10060 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10066 if test "X$found_a" != "X"; then
10067 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
10069 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10072 additional_includedir
=
10073 case "$found_dir" in
10075 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10076 additional_includedir
="$basedir/include"
10079 if test "X$additional_includedir" != "X"; then
10080 if test "X$additional_includedir" != "X/usr/include"; then
10082 if test "X$additional_includedir" = "X/usr/local/include"; then
10083 if test -n "$GCC"; then
10085 linux
*) haveit
=yes;;
10089 if test -z "$haveit"; then
10090 for x
in $CPPFLAGS $INCIPT; do
10092 acl_save_prefix
="$prefix"
10093 prefix
="$acl_final_prefix"
10094 acl_save_exec_prefix
="$exec_prefix"
10095 exec_prefix
="$acl_final_exec_prefix"
10097 exec_prefix
="$acl_save_exec_prefix"
10098 prefix
="$acl_save_prefix"
10100 if test "X$x" = "X-I$additional_includedir"; then
10105 if test -z "$haveit"; then
10106 if test -d "$additional_includedir"; then
10107 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10113 if test -n "$found_la"; then
10114 save_libdir
="$libdir"
10115 case "$found_la" in
10116 */* |
*\\*) .
"$found_la" ;;
10117 *) .
"./$found_la" ;;
10119 libdir
="$save_libdir"
10120 for dep
in $dependency_libs; do
10123 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10124 if test "X$additional_libdir" != "X/usr/lib"; then
10126 if test "X$additional_libdir" = "X/usr/local/lib"; then
10127 if test -n "$GCC"; then
10129 linux
*) haveit
=yes;;
10133 if test -z "$haveit"; then
10135 for x
in $LDFLAGS $LIBIPT; do
10137 acl_save_prefix
="$prefix"
10138 prefix
="$acl_final_prefix"
10139 acl_save_exec_prefix
="$exec_prefix"
10140 exec_prefix
="$acl_final_exec_prefix"
10142 exec_prefix
="$acl_save_exec_prefix"
10143 prefix
="$acl_save_prefix"
10145 if test "X$x" = "X-L$additional_libdir"; then
10150 if test -z "$haveit"; then
10151 if test -d "$additional_libdir"; then
10152 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10156 for x
in $LDFLAGS $LTLIBIPT; do
10158 acl_save_prefix
="$prefix"
10159 prefix
="$acl_final_prefix"
10160 acl_save_exec_prefix
="$exec_prefix"
10161 exec_prefix
="$acl_final_exec_prefix"
10163 exec_prefix
="$acl_save_exec_prefix"
10164 prefix
="$acl_save_prefix"
10166 if test "X$x" = "X-L$additional_libdir"; then
10171 if test -z "$haveit"; then
10172 if test -d "$additional_libdir"; then
10173 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10180 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10181 if test "$enable_rpath" != no
; then
10183 for x
in $rpathdirs; do
10184 if test "X$x" = "X$dir"; then
10189 if test -z "$haveit"; then
10190 rpathdirs
="$rpathdirs $dir"
10193 for x
in $ltrpathdirs; do
10194 if test "X$x" = "X$dir"; then
10199 if test -z "$haveit"; then
10200 ltrpathdirs
="$ltrpathdirs $dir"
10205 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10208 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10211 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
10212 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10218 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10219 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10220 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10222 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
10223 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
10230 if test "X$rpathdirs" != "X"; then
10231 if test -n "$hardcode_libdir_separator"; then
10233 for found_dir
in $rpathdirs; do
10234 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10236 acl_save_libdir
="$libdir"
10238 eval flag
=\"$hardcode_libdir_flag_spec\"
10239 libdir
="$acl_save_libdir"
10240 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10242 for found_dir
in $rpathdirs; do
10243 acl_save_libdir
="$libdir"
10244 libdir
="$found_dir"
10245 eval flag
=\"$hardcode_libdir_flag_spec\"
10246 libdir
="$acl_save_libdir"
10247 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10251 if test "X$ltrpathdirs" != "X"; then
10252 for found_dir
in $ltrpathdirs; do
10253 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10258 ac_save_CPPFLAGS
="$CPPFLAGS"
10260 for element
in $INCIPT; do
10262 for x
in $CPPFLAGS; do
10264 acl_save_prefix
="$prefix"
10265 prefix
="$acl_final_prefix"
10266 acl_save_exec_prefix
="$exec_prefix"
10267 exec_prefix
="$acl_final_exec_prefix"
10269 exec_prefix
="$acl_save_exec_prefix"
10270 prefix
="$acl_save_prefix"
10272 if test "X$x" = "X$element"; then
10277 if test -z "$haveit"; then
10278 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10284 $as_echo_n "checking for libipt... " >&6; }
10285 if ${ac_cv_libipt+:} false
; then :
10286 $as_echo_n "(cached) " >&6
10289 ac_save_LIBS
="$LIBS"
10290 LIBS
="$LIBS $LIBIPT"
10291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 #include "intel-pt.h"
10297 pt_insn_alloc_decoder (0);
10302 if ac_fn_c_try_link
"$LINENO"; then :
10307 rm -f core conftest.err conftest.
$ac_objext \
10308 conftest
$ac_exeext conftest.
$ac_ext
10309 LIBS
="$ac_save_LIBS"
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10313 $as_echo "$ac_cv_libipt" >&6; }
10314 if test "$ac_cv_libipt" = yes; then
10317 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10320 $as_echo_n "checking how to link with libipt... " >&6; }
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10322 $as_echo "$LIBIPT" >&6; }
10325 CPPFLAGS
="$ac_save_CPPFLAGS"
10335 if test "$HAVE_LIBIPT" != yes; then
10336 if test "$with_intel_pt" = yes; then
10337 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10340 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10344 LIBS
="$LIBS $LIBIPT"
10345 for ac_func
in pt_insn_event
10347 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10348 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
10349 cat >>confdefs.h
<<_ACEOF
10350 #define HAVE_PT_INSN_EVENT 1
10356 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
10358 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
10360 cat >>confdefs.h
<<_ACEOF
10361 #define HAVE_STRUCT_PT_INSN_ENABLED 1
10366 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10368 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
10370 cat >>confdefs.h
<<_ACEOF
10371 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
10382 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
10384 for ac_header
in sys
/procfs.h
10386 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
10387 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
10388 cat >>confdefs.h
<<_ACEOF
10389 #define HAVE_SYS_PROCFS_H 1
10396 if test "$ac_cv_header_sys_procfs_h" = yes; then
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10399 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10400 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
10401 $as_echo_n "(cached) " >&6
10403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10407 #include <sys/procfs.h>
10416 if ac_fn_c_try_compile
"$LINENO"; then :
10417 bfd_cv_have_sys_procfs_type_gregset_t
=yes
10419 bfd_cv_have_sys_procfs_type_gregset_t
=no
10422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10425 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10427 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10431 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10435 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10436 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
10437 $as_echo_n "(cached) " >&6
10439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10443 #include <sys/procfs.h>
10452 if ac_fn_c_try_compile
"$LINENO"; then :
10453 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
10455 bfd_cv_have_sys_procfs_type_fpregset_t
=no
10458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10461 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10463 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10467 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10471 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10472 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
10473 $as_echo_n "(cached) " >&6
10475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10479 #include <sys/procfs.h>
10488 if ac_fn_c_try_compile
"$LINENO"; then :
10489 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
10491 bfd_cv_have_sys_procfs_type_prgregset_t
=no
10494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10497 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10499 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10503 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10507 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10508 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
10509 $as_echo_n "(cached) " >&6
10511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10512 /* end confdefs.h. */
10515 #include <sys/procfs.h>
10524 if ac_fn_c_try_compile
"$LINENO"; then :
10525 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
10527 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
10530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10533 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10535 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10539 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10543 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10544 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
10545 $as_echo_n "(cached) " >&6
10547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10551 #include <sys/procfs.h>
10560 if ac_fn_c_try_compile
"$LINENO"; then :
10561 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
10563 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
10566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10569 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10571 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10575 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10579 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10580 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
10581 $as_echo_n "(cached) " >&6
10583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10587 #include <sys/procfs.h>
10596 if ac_fn_c_try_compile
"$LINENO"; then :
10597 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
10599 bfd_cv_have_sys_procfs_type_lwpid_t
=no
10602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10605 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
10607 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10611 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
10615 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10616 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
10617 $as_echo_n "(cached) " >&6
10619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10623 #include <sys/procfs.h>
10632 if ac_fn_c_try_compile
"$LINENO"; then :
10633 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
10635 bfd_cv_have_sys_procfs_type_psaddr_t
=no
10638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10641 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
10643 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10647 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
10651 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10652 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
10653 $as_echo_n "(cached) " >&6
10655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10659 #include <sys/procfs.h>
10663 elf_fpregset_t avar
10668 if ac_fn_c_try_compile
"$LINENO"; then :
10669 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
10671 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
10674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10677 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10679 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10683 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
10688 # Check whether we will enable the inclusion of unit tests when
10691 # The default value of this option changes depending whether we're on
10692 # development mode (in which case it's "true") or not (in which case
10693 # it's "false"). The $development variable is set by the GDB_AC_COMMON
10694 # macro, which must therefore be used before GDB_AC_SELFTEST.
10696 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
10697 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
10700 # Check whether --enable-unit-tests was given.
10701 if test "${enable_unit_tests+set}" = set; then :
10702 enableval
=$enable_unit_tests; case "${enableval}" in
10703 yes) enable_unittests
=true
;;
10704 no
) enable_unittests
=false
;;
10705 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
10708 enable_unittests
=$development
10712 if $enable_unittests; then
10714 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
10719 if $enable_unittests; then
10728 # Check the return and argument types of ptrace.
10731 for ac_header
in sys
/ptrace.h ptrace.h
10733 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10734 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10735 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10736 cat >>confdefs.h
<<_ACEOF
10737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10745 gdb_ptrace_headers
='
10746 #include <sys/types.h>
10747 #if HAVE_SYS_PTRACE_H
10748 # include <sys/ptrace.h>
10751 # include <unistd.h>
10755 # Check return type. Varargs (used on GNU/Linux) conflict with the
10756 # empty argument list, so check for that explicitly.
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10758 $as_echo_n "checking return type of ptrace... " >&6; }
10759 if ${gdb_cv_func_ptrace_ret+:} false
; then :
10760 $as_echo_n "(cached) " >&6
10762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764 $gdb_ptrace_headers
10768 extern long ptrace (enum __ptrace_request, ...);
10773 if ac_fn_c_try_compile
"$LINENO"; then :
10774 gdb_cv_func_ptrace_ret
='long'
10776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778 $gdb_ptrace_headers
10782 extern int ptrace ();
10787 if ac_fn_c_try_compile
"$LINENO"; then :
10788 gdb_cv_func_ptrace_ret
='int'
10790 gdb_cv_func_ptrace_ret
='long'
10792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10797 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10799 cat >>confdefs.h
<<_ACEOF
10800 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10803 # Check argument types.
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10805 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10806 if ${gdb_cv_func_ptrace_args+:} false
; then :
10807 $as_echo_n "(cached) " >&6
10810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10812 $gdb_ptrace_headers
10816 extern long ptrace (enum __ptrace_request, ...);
10821 if ac_fn_c_try_compile
"$LINENO"; then :
10822 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
10825 for gdb_arg1
in 'int' 'long'; do
10826 for gdb_arg2
in 'pid_t' 'int' 'long'; do
10827 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10828 for gdb_arg4
in 'int' 'long' 'void *'; do
10829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831 $gdb_ptrace_headers
10836 extern $gdb_cv_func_ptrace_ret
10837 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10843 if ac_fn_c_try_compile
"$LINENO"; then :
10844 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10848 for gdb_arg5
in 'int *' 'int' 'long'; do
10849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10851 $gdb_ptrace_headers
10856 extern $gdb_cv_func_ptrace_ret
10857 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10863 if ac_fn_c_try_compile
"$LINENO"; then :
10865 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10874 # Provide a safe default value.
10875 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10881 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10882 ac_save_IFS
=$IFS; IFS
=','
10883 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10887 cat >>confdefs.h
<<_ACEOF
10888 #define PTRACE_TYPE_ARG1 $1
10892 cat >>confdefs.h
<<_ACEOF
10893 #define PTRACE_TYPE_ARG3 $3
10897 cat >>confdefs.h
<<_ACEOF
10898 #define PTRACE_TYPE_ARG4 $4
10901 if test -n "$5"; then
10903 cat >>confdefs.h
<<_ACEOF
10904 #define PTRACE_TYPE_ARG5 $5
10910 # Detect support warning flags.
10912 # Check whether --enable-werror was given.
10913 if test "${enable_werror+set}" = set; then :
10914 enableval
=$enable_werror; case "${enableval}" in
10915 yes | y
) ERROR_ON_WARNING
="yes" ;;
10916 no | n
) ERROR_ON_WARNING
="no" ;;
10917 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10922 # Enable -Werror by default when using gcc. Turn it off for releases.
10923 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10924 ERROR_ON_WARNING
=yes
10928 if test "${ERROR_ON_WARNING}" = yes ; then
10929 WERROR_CFLAGS
="-Werror"
10932 # The options we'll try to enable.
10933 build_warnings
="-Wall -Wpointer-arith \
10934 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10935 -Wno-switch -Wno-char-subscripts \
10936 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10937 -Wno-sign-compare -Wno-error=maybe-uninitialized \
10938 -Wno-mismatched-tags \
10939 -Wno-error=deprecated-register \
10940 -Wsuggest-override \
10941 -Wimplicit-fallthrough=3 \
10942 -Wduplicated-cond \
10944 -Wdeprecated-copy \
10945 -Wdeprecated-copy-dtor \
10947 -Wmissing-declarations \
10948 -Wmissing-prototypes \
10949 -Wstrict-null-sentinel \
10954 # Enable -Wno-format by default when using gcc on mingw since many
10955 # GCC versions complain about %I64.
10956 build_warnings
="$build_warnings -Wno-format" ;;
10958 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10959 # doesn't understand.
10960 build_warnings
="$build_warnings -Wno-unknown-pragmas"
10961 # Solaris 11 <unistd.h> marks vfork deprecated.
10962 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
10964 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10965 # but there's a special case for this below.
10966 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
10969 # Check whether --enable-build-warnings was given.
10970 if test "${enable_build_warnings+set}" = set; then :
10971 enableval
=$enable_build_warnings; case "${enableval}" in
10973 no
) build_warnings
="-w";;
10974 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10975 build_warnings
="${build_warnings} ${t}";;
10976 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10977 build_warnings
="${t} ${build_warnings}";;
10978 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10980 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
10981 echo "Setting compiler warning flags = $build_warnings" 6>&1
10984 # Check whether --enable-gdb-build-warnings was given.
10985 if test "${enable_gdb_build_warnings+set}" = set; then :
10986 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
10988 no
) build_warnings
="-w";;
10989 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10990 build_warnings
="${build_warnings} ${t}";;
10991 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10992 build_warnings
="${t} ${build_warnings}";;
10993 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10995 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
10996 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
11000 # The set of warnings supported by a C++ compiler is not the same as
11001 # of the C compiler.
11003 ac_cpp
='$CXXCPP $CPPFLAGS'
11004 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11005 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11006 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11010 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
11013 $as_echo_n "checking compiler warning flags... " >&6; }
11014 # Separate out the -Werror flag as some files just cannot be
11015 # compiled with it enabled.
11016 for w
in ${build_warnings}; do
11017 # GCC does not complain about -Wno-unknown-warning. Invert
11018 # and test -Wunknown-warning instead.
11021 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
11022 -Wformat-nonliteral)
11023 # gcc requires -Wformat before -Wformat-nonliteral
11024 # will work, so stick them together.
11033 -Werr*) WERROR_CFLAGS
=-Werror ;;
11035 # Check whether GCC accepts it.
11036 saved_CFLAGS
="$CFLAGS"
11037 CFLAGS
="$CFLAGS -Werror $wtest"
11038 saved_CXXFLAGS
="$CXXFLAGS"
11039 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
11040 if test "x$w" = "x-Wunused-variable"; then
11041 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
11042 # fixed in GCC 4.9. This test is derived from the gdb
11043 # source code that triggered this bug in GCC.
11044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11046 struct scoped_restore_base {};
11047 struct scoped_restore_tmpl : public scoped_restore_base {
11048 ~scoped_restore_tmpl() {}
11053 const scoped_restore_base &b = scoped_restore_tmpl();
11058 if ac_fn_cxx_try_compile
"$LINENO"; then :
11059 WARN_CFLAGS
="${WARN_CFLAGS} $w"
11061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h. */
11074 if ac_fn_cxx_try_compile
"$LINENO"; then :
11075 WARN_CFLAGS
="${WARN_CFLAGS} $w"
11077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11079 CFLAGS
="$saved_CFLAGS"
11080 CXXFLAGS
="$saved_CXXFLAGS"
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11084 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11090 ac_cpp='$CPP $CPPFLAGS'
11091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11097 TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
11099 cat >>confdefs.h <<_ACEOF
11100 #define TARGET_WORD_SIZE $TARGET_WORD_SIZE
11107 $as_echo "#define USE_WIN32API 1" >>confdefs.h
11112 ac_config_files
="$ac_config_files Makefile"
11114 cat >confcache
<<\_ACEOF
11115 # This file is a shell script that caches the results of configure
11116 # tests run on this system so they can be shared between configure
11117 # scripts and configure runs, see configure's option --config-cache.
11118 # It is not useful on other systems. If it contains results you don't
11119 # want to keep, you may remove or edit it.
11121 # config.status only pays attention to the cache file if you give it
11122 # the --recheck option to rerun configure.
11124 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11125 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11126 # following values.
11130 # The following way of writing the cache mishandles newlines in values,
11131 # but we know of no workaround that is simple, portable, and efficient.
11132 # So, we kill variables containing newlines.
11133 # Ultrix sh set writes to stderr and can't be redirected directly,
11134 # and sets the high bit in the cache file unless we assign to the vars.
11136 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11137 eval ac_val
=\$
$ac_var
11141 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11142 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11145 _ | IFS | as_nl
) ;; #(
11146 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11147 *) { eval $ac_var=; unset $ac_var;} ;;
11153 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11154 *${as_nl}ac_space
=\
*)
11155 # `set' does not quote correctly, so add quotes: double-quote
11156 # substitution turns \\\\ into \\, and sed turns \\ into \.
11159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11162 # `set' quotes correctly as required by POSIX, so do not add quotes.
11163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11172 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11174 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11176 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11177 if test -w "$cache_file"; then
11178 if test "x$cache_file" != "x/dev/null"; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11180 $as_echo "$as_me: updating cache $cache_file" >&6;}
11181 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
11182 cat confcache
>"$cache_file"
11184 case $cache_file in #(
11186 mv -f confcache
"$cache_file"$$
&&
11187 mv -f "$cache_file"$$
"$cache_file" ;; #(
11189 mv -f confcache
"$cache_file" ;;
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11195 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11200 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11201 # Let make expand exec_prefix.
11202 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11204 DEFS
=-DHAVE_CONFIG_H
11208 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11209 # 1. Remove the extension, and $U if already installed.
11210 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11211 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
11212 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11213 # will be set to the directory where LIBOBJS objects are built.
11214 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11215 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
11217 LIBOBJS
=$ac_libobjs
11219 LTLIBOBJS
=$ac_ltlibobjs
11222 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11223 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
11224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11227 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11228 if test -n "$am_sleep_pid"; then
11229 # Hide warnings about reused PIDs.
11230 wait $am_sleep_pid 2>/dev
/null
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11233 $as_echo "done" >&6; }
11234 if test -n "$EXEEXT"; then
11236 am__EXEEXT_FALSE
='#'
11238 am__EXEEXT_TRUE
='#'
11242 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11243 as_fn_error $?
"conditional \"AMDEP\" was never defined.
11244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11246 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11247 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
11248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11250 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11251 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
11252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11254 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11255 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
11256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11258 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
11259 as_fn_error $?
"conditional \"SELFTEST\" was never defined.
11260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11263 : "${CONFIG_STATUS=./config.status}"
11265 ac_clean_files_save
=$ac_clean_files
11266 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11268 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11270 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11272 # Generated by $as_me.
11273 # Run this file to recreate the current configuration.
11274 # Compiler output produced by configure, useful for debugging
11275 # configure, is in config.log if it exists.
11278 ac_cs_recheck=false
11281 SHELL=\${CONFIG_SHELL-$SHELL}
11284 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
11285 ## -------------------- ##
11286 ## M4sh Initialization. ##
11287 ## -------------------- ##
11289 # Be more Bourne compatible
11290 DUALCASE
=1; export DUALCASE
# for MKS sh
11291 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
11294 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11295 # is contrary to our usage. Disable this feature.
11296 alias -g '${1+"$@"}'='"$@"'
11297 setopt NO_GLOB_SUBST
11299 case `(set -o) 2>/dev/null` in #(
11311 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11312 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11313 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11314 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11315 # Prefer a ksh shell builtin over an external printf program on Solaris,
11316 # but without wasting forks for bash or zsh.
11317 if test -z "$BASH_VERSION$ZSH_VERSION" \
11318 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11319 as_echo='print
-r --'
11320 as_echo_n='print
-rn --'
11321 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11322 as_echo='printf %s
\n'
11323 as_echo_n='printf %s
'
11325 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11326 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11327 as_echo_n='/usr
/ucb
/echo -n'
11329 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11330 as_echo_n_body='eval
11334 expr "X$arg" : "X\\(.*\\)$as_nl";
11335 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11337 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11339 export as_echo_n_body
11340 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11342 export as_echo_body
11343 as_echo='sh
-c $as_echo_body as_echo
'
11346 # The user is always right.
11347 if test "${PATH_SEPARATOR+set}" != set; then
11349 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11350 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11357 # We need space, tab and new line, in precisely that order. Quoting is
11358 # there to prevent editors from complaining about space-tab.
11359 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11360 # splitting by setting IFS to empty value.)
11363 # Find who we are. Look in the path if we contain no directory separator.
11366 *[\\/]* ) as_myself=$0 ;;
11367 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368 for as_dir in $PATH
11371 test -z "$as_dir" && as_dir=.
11372 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11378 # We did not find ourselves, most probably we were run as `sh COMMAND'
11379 # in which case we are not to be found in the path.
11380 if test "x$as_myself" = x
; then
11383 if test ! -f "$as_myself"; then
11384 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11388 # Unset variables that we do not need and which cause bugs (e.g. in
11389 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11390 # suppresses any "Segmentation fault" message there. '((' could
11391 # trigger a bug in pdksh 5.2.14.
11392 for as_var
in BASH_ENV ENV MAIL MAILPATH
11393 do eval test x\
${$as_var+set} = xset \
11394 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11407 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11410 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11411 # ----------------------------------------
11412 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11413 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11414 # script with STATUS, using 1 if that was 0.
11417 as_status
=$1; test $as_status -eq 0 && as_status
=1
11419 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11420 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11422 $as_echo "$as_me: error: $2" >&2
11423 as_fn_exit
$as_status
11427 # as_fn_set_status STATUS
11428 # -----------------------
11429 # Set $? to STATUS, without forking.
11430 as_fn_set_status
()
11433 } # as_fn_set_status
11435 # as_fn_exit STATUS
11436 # -----------------
11437 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11441 as_fn_set_status
$1
11447 # Portably unset VAR.
11450 { eval $1=; unset $1;}
11452 as_unset
=as_fn_unset
11453 # as_fn_append VAR VALUE
11454 # ----------------------
11455 # Append the text in VALUE to the end of the definition contained in VAR. Take
11456 # advantage of any shell optimizations that allow amortized linear growth over
11457 # repeated appends, instead of the typical quadratic growth present in naive
11459 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11460 eval 'as_fn_append ()
11471 # as_fn_arith ARG...
11472 # ------------------
11473 # Perform arithmetic evaluation on the ARGs, and store the result in the
11474 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11475 # must be portable across $(()) and expr.
11476 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11477 eval 'as_fn_arith ()
11484 as_val
=`expr "$@" || test $? -eq 1`
11489 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11490 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11496 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11497 as_basename
=basename
11502 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11508 as_me
=`$as_basename -- "$0" ||
11509 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11510 X"$0" : 'X\(//\)$' \| \
11511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11513 sed '/^.*\/\([^/][^/]*\)\/*$/{
11527 # Avoid depending upon Character Ranges.
11528 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11529 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11530 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11531 as_cr_digits
='0123456789'
11532 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11534 ECHO_C
= ECHO_N
= ECHO_T
=
11535 case `echo -n x` in #(((((
11537 case `echo 'xy\c'` in
11538 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11540 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11547 rm -f conf$$ conf$$.exe conf$$.
file
11548 if test -d conf$$.dir
; then
11549 rm -f conf$$.dir
/conf$$.
file
11552 mkdir conf$$.dir
2>/dev
/null
11554 if (echo >conf$$.
file) 2>/dev
/null
; then
11555 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11557 # ... but there are two gotchas:
11558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11560 # In both cases, we have to default to `cp -pR'.
11561 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11563 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11571 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11572 rmdir conf$$.dir
2>/dev
/null
11577 # Create "$as_dir" as a directory, including parents if necessary.
11582 -*) as_dir
=.
/$as_dir;;
11584 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11588 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11589 *) as_qdir
=$as_dir;;
11591 as_dirs
="'$as_qdir' $as_dirs"
11592 as_dir
=`$as_dirname -- "$as_dir" ||
11593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11594 X"$as_dir" : 'X\(//\)[^/]' \| \
11595 X"$as_dir" : 'X\(//\)$' \| \
11596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11597 $as_echo X"$as_dir" |
11598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11602 /^X\(\/\/\)[^/].*/{
11615 test -d "$as_dir" && break
11617 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11618 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11622 if mkdir
-p .
2>/dev
/null
; then
11623 as_mkdir_p
='mkdir -p "$as_dir"'
11625 test -d .
/-p && rmdir .
/-p
11630 # as_fn_executable_p FILE
11631 # -----------------------
11632 # Test if FILE is an executable regular file.
11633 as_fn_executable_p
()
11635 test -f "$1" && test -x "$1"
11636 } # as_fn_executable_p
11637 as_test_x
='test -x'
11638 as_executable_p
=as_fn_executable_p
11640 # Sed expression to map a string onto a valid CPP name.
11641 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11643 # Sed expression to map a string onto a valid variable name.
11644 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11648 ## ----------------------------------- ##
11649 ## Main body of $CONFIG_STATUS script. ##
11650 ## ----------------------------------- ##
11652 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11655 # Save the log message, to keep $0 and so on meaningful, and to
11656 # report actual input values of CONFIG_FILES etc. instead of their
11657 # values after options handling.
11659 This file was extended by gdbsupport $as_me 1.0, which was
11660 generated by GNU Autoconf 2.69. Invocation command line was
11662 CONFIG_FILES = $CONFIG_FILES
11663 CONFIG_HEADERS = $CONFIG_HEADERS
11664 CONFIG_LINKS = $CONFIG_LINKS
11665 CONFIG_COMMANDS = $CONFIG_COMMANDS
11668 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11673 case $ac_config_files in *"
11674 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11677 case $ac_config_headers in *"
11678 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11683 # Files that config.status was made for.
11684 config_files="$ac_config_files"
11685 config_headers="$ac_config_headers"
11686 config_commands="$ac_config_commands"
11690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11692 \`$as_me' instantiates files and other configuration actions
11693 from templates according to the current configuration. Unless the files
11694 and actions are specified as TAGs, all are instantiated by default.
11696 Usage: $0 [OPTION]... [TAG]...
11698 -h, --help print this help, then exit
11699 -V, --version print version number and configuration settings, then exit
11700 --config print configuration, then exit
11701 -q, --quiet, --silent
11702 do not print progress messages
11703 -d, --debug don't remove temporary files
11704 --recheck update $as_me by reconfiguring in the same conditions
11705 --file=FILE[:TEMPLATE]
11706 instantiate the configuration file FILE
11707 --header=FILE[:TEMPLATE]
11708 instantiate the configuration header FILE
11710 Configuration files:
11713 Configuration headers:
11716 Configuration commands:
11719 Report bugs to the package provider."
11722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11723 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11725 gdbsupport config.status 1.0
11726 configured by $0, generated by GNU Autoconf 2.69,
11727 with options \\"\$ac_cs_config\\"
11729 Copyright (C) 2012 Free Software Foundation, Inc.
11730 This config.status script is free software; the Free Software Foundation
11731 gives unlimited permission to copy, distribute and modify it."
11738 test -n "\$AWK" || AWK=awk
11741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11742 # The default lists apply if the user does not specify any file.
11748 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11749 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11753 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11765 # Handling of the options.
11766 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11768 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11769 $as_echo "$ac_cs_version"; exit ;;
11770 --config |
--confi |
--conf |
--con |
--co |
--c )
11771 $as_echo "$ac_cs_config"; exit ;;
11772 --debug |
--debu |
--deb |
--de |
--d |
-d )
11774 --file |
--fil |
--fi |
--f )
11777 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11778 '') as_fn_error $?
"missing file argument" ;;
11780 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11781 ac_need_defaults
=false
;;
11782 --header |
--heade |
--head |
--hea )
11785 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11787 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11788 ac_need_defaults
=false
;;
11790 # Conflict between --help and --header
11791 as_fn_error $?
"ambiguous option: \`$1'
11792 Try \`$0 --help' for more information.";;
11793 --help |
--hel |
-h )
11794 $as_echo "$ac_cs_usage"; exit ;;
11795 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11796 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11799 # This is an error.
11800 -*) as_fn_error $?
"unrecognized option: \`$1'
11801 Try \`$0 --help' for more information." ;;
11803 *) as_fn_append ac_config_targets
" $1"
11804 ac_need_defaults
=false
;;
11810 ac_configure_extra_args
=
11812 if $ac_cs_silent; then
11814 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11819 if \$ac_cs_recheck; then
11820 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11822 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11823 CONFIG_SHELL='$SHELL'
11824 export CONFIG_SHELL
11829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11833 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11834 ## Running $as_me. ##
11840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11844 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11850 # Handling of arguments.
11851 for ac_config_target
in $ac_config_targets
11853 case $ac_config_target in
11854 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
11855 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
11856 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11858 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11863 # If the user did not use the arguments to specify the items to instantiate,
11864 # then the envvar interface is used. Set only those that are not.
11865 # We use the long form for the default assignment because of an extremely
11866 # bizarre bug on SunOS 4.1.3.
11867 if $ac_need_defaults; then
11868 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11869 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11870 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11873 # Have a temporary directory for convenience. Make it in the build tree
11874 # simply because there is no reason against having it here, and in addition,
11875 # creating and moving files from /tmp can sometimes cause problems.
11876 # Hook for its removal unless debugging.
11877 # Note that there is a small window in which the directory will not be cleaned:
11878 # after its creation but before its name has been assigned to `$tmp'.
11882 trap 'exit_status=$?
11883 : "${ac_tmp:=$tmp}"
11884 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11886 trap 'as_fn_exit 1' 1 2 13 15
11888 # Create a (secure) tmp directory for tmp files.
11891 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11895 tmp
=.
/conf$$
-$RANDOM
11896 (umask 077 && mkdir
"$tmp")
11897 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11900 # Set up the scripts for CONFIG_FILES section.
11901 # No need to generate them if there are no CONFIG_FILES.
11902 # This happens for instance with `./config.status config.h'.
11903 if test -n "$CONFIG_FILES"; then
11906 ac_cr
=`echo X | tr X '\015'`
11907 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11908 # But we know of no other shell where ac_cr would be empty at this
11909 # point, so we can use a bashism as a fallback.
11910 if test "x$ac_cr" = x
; then
11911 eval ac_cr
=\$
\'\\r
\'
11913 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11914 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11917 ac_cs_awk_cr
=$ac_cr
11920 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11925 echo "cat >conf$$subs.awk <<_ACEOF" &&
11926 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11928 } >conf$$subs.sh ||
11929 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11930 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11932 for ac_last_try in false false false false false :; do
11933 . ./conf$$subs.sh ||
11934 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11936 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11937 if test $ac_delim_n = $ac_delim_num; then
11939 elif $ac_last_try; then
11940 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11942 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11945 rm -f conf$$subs.sh
11947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11948 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11952 s/^/S["/; s
/!.
*/"]=/
11962 s/\(.\{148\}\)..*/\1/
11964 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11969 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11976 s/\(.\{148\}\)..*/\1/
11978 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11982 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11987 ' <conf$$subs.awk | sed '
11992 ' >>$CONFIG_STATUS || ac_write_fail=1
11993 rm -f conf$$subs.awk
11994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11996 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11997 for (key in S) S_is_set[key] = 1
12003 nfields = split(line, field, "@
")
12005 len = length(field[1])
12006 for (i = 2; i < nfields; i++) {
12008 keylen = length(key)
12009 if (S_is_set[key]) {
12011 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12012 len += length(value) + length(field[++i])
12023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12024 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12025 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
12028 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
12029 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
12032 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12033 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
12034 # trailing colons and then remove the whole line if VPATH becomes empty
12035 # (actually we leave an empty line to preserve line numbers).
12036 if test "x
$srcdir" = x.; then
12037 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12056 fi # test -n "$CONFIG_FILES"
12058 # Set up the scripts for CONFIG_HEADERS section.
12059 # No need to generate them if there are no CONFIG_HEADERS.
12060 # This happens for instance with `./config.status Makefile'.
12061 if test -n "$CONFIG_HEADERS"; then
12062 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
12066 # Transform confdefs.h into an awk script `defines.awk', embedded as
12067 # here-document in config.status, that substitutes the proper values into
12068 # config.h.in to produce config.h.
12070 # Create a delimiter string that does not exist in confdefs.h, to ease
12071 # handling of long lines.
12073 for ac_last_try in false false :; do
12074 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
12075 if test -z "$ac_tt"; then
12077 elif $ac_last_try; then
12078 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
12080 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12084 # For the awk script, D is an array of macro values keyed by name,
12085 # likewise P contains macro parameters if any. Preserve backslash
12086 # newline sequences.
12088 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12090 s/.\{148\}/&'"$ac_delim"'/g
12093 s/^[ ]*#[ ]*define[ ][ ]*/ /
12100 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12102 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12107 D["\
1"]=" \
3\\\\\\n
"\\/p
12109 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12114 s/.\{148\}/&'"$ac_delim"'/g
12119 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12122 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12124 ' <confdefs.h | sed '
12125 s/'"$ac_delim"'/"\\\
12126 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12129 for (key in D) D_is_set[key] = 1
12132 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12134 split(line, arg, " ")
12135 if (arg[1] == "#") {
12139 defundef
= substr
(arg
[1], 2)
12142 split(mac1
, mac2
, "(") #)
12144 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
12145 if (D_is_set
[macro
]) {
12146 # Preserve the white space surrounding the "#".
12147 print prefix
"define", macro P
[macro
] D
[macro
]
12150 # Replace #undef with comments. This is necessary, for example,
12151 # in the case of _POSIX_SOURCE, which is predefined and required
12152 # on some systems where configure will not decide to define it.
12153 if (defundef
== "undef") {
12154 print
"/*", prefix defundef
, macro
, "*/"
12162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12163 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
12164 fi # test -n "$CONFIG_HEADERS"
12167 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12172 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12174 case $ac_mode$ac_tag in
12176 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
12177 :[FH
]-) ac_tag
=-:-;;
12178 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12195 -) ac_f
="$ac_tmp/stdin";;
12196 *) # Look for the file first in the build tree, then in the source tree
12197 # (if the path is not absolute). The absolute path cannot be DOS-style,
12198 # because $ac_f cannot contain `:'.
12202 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12204 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12206 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12207 as_fn_append ac_file_inputs
" '$ac_f'"
12210 # Let's still pretend it is `configure' which instantiates (i.e., don't
12211 # use $as_me), people would be surprised to read:
12212 # /* config.h. Generated by config.status. */
12213 configure_input
='Generated from '`
12214 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12216 if test x
"$ac_file" != x-
; then
12217 configure_input
="$ac_file. $configure_input"
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12219 $as_echo "$as_me: creating $ac_file" >&6;}
12221 # Neutralize special characters interpreted by sed in replacement strings.
12222 case $configure_input in #(
12223 *\
&* |
*\|
* |
*\\* )
12224 ac_sed_conf_input
=`$as_echo "$configure_input" |
12225 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12226 *) ac_sed_conf_input
=$configure_input;;
12230 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
12231 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
12236 ac_dir
=`$as_dirname -- "$ac_file" ||
12237 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12238 X"$ac_file" : 'X\(//\)[^/]' \| \
12239 X"$ac_file" : 'X\(//\)$' \| \
12240 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12241 $as_echo X"$ac_file" |
12242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12246 /^X\(\/\/\)[^/].*/{
12259 as_dir
="$ac_dir"; as_fn_mkdir_p
12263 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12265 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12266 # A ".." for each directory in $ac_dir_suffix.
12267 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12268 case $ac_top_builddir_sub in
12269 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12270 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12273 ac_abs_top_builddir
=$ac_pwd
12274 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12275 # for backward compatibility:
12276 ac_top_builddir
=$ac_top_build_prefix
12279 .
) # We are building in place.
12281 ac_top_srcdir
=$ac_top_builddir_sub
12282 ac_abs_top_srcdir
=$ac_pwd ;;
12283 [\\/]* | ?
:[\\/]* ) # Absolute name.
12284 ac_srcdir
=$srcdir$ac_dir_suffix;
12285 ac_top_srcdir
=$srcdir
12286 ac_abs_top_srcdir
=$srcdir ;;
12287 *) # Relative name.
12288 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12289 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12290 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12292 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12302 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12303 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12305 ac_MKDIR_P
=$MKDIR_P
12307 [\\/$
]* | ?
:[\\/]* ) ;;
12308 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
12312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12313 # If the template does not know about datarootdir, expand it.
12314 # FIXME: This hack should be removed a few years after 2.60.
12315 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12326 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12327 *datarootdir
*) ac_datarootdir_seen
=yes;;
12328 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12330 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12333 ac_datarootdir_hack='
12334 s&@datadir@&$datadir&g
12335 s&@docdir@&$docdir&g
12336 s&@infodir@&$infodir&g
12337 s&@localedir@&$localedir&g
12338 s&@mandir@&$mandir&g
12339 s&\\\${datarootdir}&$datarootdir&g' ;;
12343 # Neutralize VPATH when `$srcdir' = `.'.
12344 # Shell code in configure.ac might set extrasub.
12345 # FIXME: do we really want to maintain this feature?
12346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12347 ac_sed_extra="$ac_vpsub
12350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12352 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12353 s|@configure_input@|
$ac_sed_conf_input|
;t t
12354 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12355 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12356 s
&@srcdir@
&$ac_srcdir&;t t
12357 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12358 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12359 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12360 s
&@builddir@
&$ac_builddir&;t t
12361 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12362 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12363 s
&@INSTALL@
&$ac_INSTALL&;t t
12364 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
12365 $ac_datarootdir_hack
12367 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
12368 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12370 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12371 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
12372 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12373 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12375 which seems to be undefined. Please make sure it is defined" >&5
12376 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12377 which seems to be undefined. Please make sure it is defined" >&2;}
12379 rm -f "$ac_tmp/stdin"
12381 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12382 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12384 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12390 if test x"$ac_file" != x-; then
12392 $as_echo "/* $configure_input */" \
12393 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12394 } >"$ac_tmp/config.h" \
12395 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12396 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12398 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12401 mv "$ac_tmp/config.h" "$ac_file" \
12402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12405 $as_echo "/* $configure_input */" \
12406 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12407 || as_fn_error $? "could not create -" "$LINENO" 5
12409 # Compute "$ac_file"'s index
in $config_headers.
12412 for _am_header
in $config_headers :; do
12413 case $_am_header in
12414 $_am_arg |
$_am_arg:* )
12417 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
12420 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12421 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12422 X"$_am_arg" : 'X\(//\)[^/]' \| \
12423 X"$_am_arg" : 'X\(//\)$' \| \
12424 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12425 $as_echo X"$_am_arg" |
12426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12430 /^X\(\/\/\)[^/].*/{
12442 s/.*/./; q'`/stamp-h
$_am_stamp_count
12445 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12446 $as_echo "$as_me: executing $ac_file commands" >&6;}
12451 case $ac_file$ac_mode in
12452 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
12453 # Older Autoconf quotes --file arguments for eval, but not when files
12454 # are listed without --file. Let's play safe and only enable the eval
12455 # if we detect the quoting.
12456 case $CONFIG_FILES in
12457 *\'*) eval set x
"$CONFIG_FILES" ;;
12458 *) set x
$CONFIG_FILES ;;
12463 # Strip MF so we end up with the name of the file.
12464 mf
=`echo "$mf" | sed -e 's/:.*$//'`
12465 # Check whether this is an Automake generated Makefile or not.
12466 # We used to match only the files named 'Makefile.in', but
12467 # some people rename them; so instead we look at the file content.
12468 # Grep'ing the first line is not enough: some people post-process
12469 # each Makefile.in and add a new line on top of each file to say so.
12470 # Grep'ing the whole file is not good either: AIX grep has a line
12471 # limit of 2048, but all sed's we know have understand at least 4000.
12472 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
12473 dirpart
=`$as_dirname -- "$mf" ||
12474 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12475 X"$mf" : 'X\(//\)[^/]' \| \
12476 X"$mf" : 'X\(//\)$' \| \
12477 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12483 /^X\(\/\/\)[^/].*/{
12499 # Extract the definition of DEPDIR, am__include, and am__quote
12500 # from the Makefile without running 'make'.
12501 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
12502 test -z "$DEPDIR" && continue
12503 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
12504 test -z "$am__include" && continue
12505 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
12506 # Find all dependency output files, they are included files with
12507 # $(DEPDIR) in their names. We invoke sed twice because it is the
12508 # simplest approach to changing $(DEPDIR) to its actual value in the
12510 for file in `sed -n "
12511 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12512 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12513 # Make sure the directory exists.
12514 test -f "$dirpart/$file" && continue
12515 fdir
=`$as_dirname -- "$file" ||
12516 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12517 X"$file" : 'X\(//\)[^/]' \| \
12518 X"$file" : 'X\(//\)$' \| \
12519 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12520 $as_echo X"$file" |
12521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12525 /^X\(\/\/\)[^/].*/{
12538 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
12539 # echo "creating $dirpart/$file"
12540 echo '# dummy' > "$dirpart/$file"
12552 ac_clean_files
=$ac_clean_files_save
12554 test $ac_write_fail = 0 ||
12555 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
12558 # configure is writing to config.log, and then calls config.status.
12559 # config.status does its own redirection, appending to config.log.
12560 # Unfortunately, on DOS this fails, as config.log is still kept open
12561 # by configure, so config.status won't be able to write to it; its
12562 # output is simply discarded. So we exec the FD to /dev/null,
12563 # effectively closing config.log, so it can be properly (re)opened and
12564 # appended to by config.status. When coming back to configure, we
12565 # need to make the FD available again.
12566 if test "$no_create" != yes; then
12568 ac_config_status_args
=
12569 test "$silent" = yes &&
12570 ac_config_status_args
="$ac_config_status_args --quiet"
12572 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12574 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12575 # would make configure fail if this is the last instruction.
12576 $ac_cs_success || as_fn_exit
1
12578 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12580 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}