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
777 enable_build_warnings
778 enable_gdb_build_warnings
780 ac_precious_vars
='build_alias
794 # Initialize some variables set by options.
796 ac_init_version
=false
797 ac_unrecognized_opts
=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
808 program_transform_name
=s
,x
,x
,
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir
='${exec_prefix}/bin'
823 sbindir
='${exec_prefix}/sbin'
824 libexecdir
='${exec_prefix}/libexec'
825 datarootdir
='${prefix}/share'
826 datadir
='${datarootdir}'
827 sysconfdir
='${prefix}/etc'
828 sharedstatedir
='${prefix}/com'
829 localstatedir
='${prefix}/var'
830 includedir
='${prefix}/include'
831 oldincludedir
='/usr/include'
832 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
833 infodir
='${datarootdir}/info'
838 libdir
='${exec_prefix}/lib'
839 localedir
='${datarootdir}/locale'
840 mandir
='${datarootdir}/man'
846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
848 eval $ac_prev=\
$ac_option
854 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 # Accept the important Cygnus configure options, so we can diagnose typos.
861 case $ac_dashdash$ac_option in
865 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
867 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
870 -build |
--build |
--buil |
--bui |
--bu)
871 ac_prev
=build_alias
;;
872 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
873 build_alias
=$ac_optarg ;;
875 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
876 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
877 ac_prev
=cache_file
;;
878 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
879 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
880 cache_file
=$ac_optarg ;;
883 cache_file
=config.cache
;;
885 -datadir |
--datadir |
--datadi |
--datad)
887 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
888 datadir
=$ac_optarg ;;
890 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
891 |
--dataroo |
--dataro |
--datar)
892 ac_prev
=datarootdir
;;
893 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
894 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
895 datarootdir
=$ac_optarg ;;
897 -disable-* |
--disable-*)
898 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
901 as_fn_error $?
"invalid feature name: $ac_useropt"
902 ac_useropt_orig
=$ac_useropt
903 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
908 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909 ac_unrecognized_sep
=', ';;
911 eval enable_
$ac_useropt=no
;;
913 -docdir |
--docdir |
--docdi |
--doc |
--do)
915 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
918 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
920 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
923 -enable-* |
--enable-*)
924 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
927 as_fn_error $?
"invalid feature name: $ac_useropt"
928 ac_useropt_orig
=$ac_useropt
929 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
934 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935 ac_unrecognized_sep
=', ';;
937 eval enable_
$ac_useropt=\
$ac_optarg ;;
939 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
940 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
941 |
--exec |
--exe |
--ex)
942 ac_prev
=exec_prefix
;;
943 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
944 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
945 |
--exec=* |
--exe=* |
--ex=*)
946 exec_prefix
=$ac_optarg ;;
948 -gas |
--gas |
--ga |
--g)
949 # Obsolete; use --with-gas.
952 -help |
--help |
--hel |
--he |
-h)
954 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
955 ac_init_help
=recursive
;;
956 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
957 ac_init_help
=short
;;
959 -host |
--host |
--hos |
--ho)
960 ac_prev
=host_alias
;;
961 -host=* |
--host=* |
--hos=* |
--ho=*)
962 host_alias
=$ac_optarg ;;
964 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
966 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
968 htmldir
=$ac_optarg ;;
970 -includedir |
--includedir |
--includedi |
--included |
--include \
971 |
--includ |
--inclu |
--incl |
--inc)
972 ac_prev
=includedir
;;
973 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
974 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
975 includedir
=$ac_optarg ;;
977 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
979 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
980 infodir
=$ac_optarg ;;
982 -libdir |
--libdir |
--libdi |
--libd)
984 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
987 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
988 |
--libexe |
--libex |
--libe)
989 ac_prev
=libexecdir
;;
990 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
991 |
--libexe=* |
--libex=* |
--libe=*)
992 libexecdir
=$ac_optarg ;;
994 -localedir |
--localedir |
--localedi |
--localed |
--locale)
996 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
997 localedir
=$ac_optarg ;;
999 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1000 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1001 ac_prev
=localstatedir
;;
1002 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1003 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1004 localstatedir
=$ac_optarg ;;
1006 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1008 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1009 mandir
=$ac_optarg ;;
1011 -nfp |
--nfp |
--nf)
1012 # Obsolete; use --without-fp.
1015 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1016 |
--no-cr |
--no-c |
-n)
1019 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1020 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1023 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1024 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1025 |
--oldin |
--oldi |
--old |
--ol |
--o)
1026 ac_prev
=oldincludedir
;;
1027 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1028 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1029 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1030 oldincludedir
=$ac_optarg ;;
1032 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1034 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1035 prefix
=$ac_optarg ;;
1037 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1038 |
--program-pre |
--program-pr |
--program-p)
1039 ac_prev
=program_prefix
;;
1040 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1041 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1042 program_prefix
=$ac_optarg ;;
1044 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1045 |
--program-suf |
--program-su |
--program-s)
1046 ac_prev
=program_suffix
;;
1047 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1048 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1049 program_suffix
=$ac_optarg ;;
1051 -program-transform-name |
--program-transform-name \
1052 |
--program-transform-nam |
--program-transform-na \
1053 |
--program-transform-n |
--program-transform- \
1054 |
--program-transform |
--program-transfor \
1055 |
--program-transfo |
--program-transf \
1056 |
--program-trans |
--program-tran \
1057 |
--progr-tra |
--program-tr |
--program-t)
1058 ac_prev
=program_transform_name
;;
1059 -program-transform-name=* |
--program-transform-name=* \
1060 |
--program-transform-nam=* |
--program-transform-na=* \
1061 |
--program-transform-n=* |
--program-transform-=* \
1062 |
--program-transform=* |
--program-transfor=* \
1063 |
--program-transfo=* |
--program-transf=* \
1064 |
--program-trans=* |
--program-tran=* \
1065 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1066 program_transform_name
=$ac_optarg ;;
1068 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1070 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1071 pdfdir
=$ac_optarg ;;
1073 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1075 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1078 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1079 |
-silent |
--silent |
--silen |
--sile |
--sil)
1082 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1084 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1086 sbindir
=$ac_optarg ;;
1088 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1089 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1090 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1092 ac_prev
=sharedstatedir
;;
1093 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1094 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1095 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1097 sharedstatedir
=$ac_optarg ;;
1099 -site |
--site |
--sit)
1101 -site=* |
--site=* |
--sit=*)
1104 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1106 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1107 srcdir
=$ac_optarg ;;
1109 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1110 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1111 ac_prev
=sysconfdir
;;
1112 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1113 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1114 sysconfdir
=$ac_optarg ;;
1116 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1117 ac_prev
=target_alias
;;
1118 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1119 target_alias
=$ac_optarg ;;
1121 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1124 -version |
--version |
--versio |
--versi |
--vers |
-V)
1125 ac_init_version
=: ;;
1128 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1131 as_fn_error $?
"invalid package name: $ac_useropt"
1132 ac_useropt_orig
=$ac_useropt
1133 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1138 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep
=', ';;
1141 eval with_
$ac_useropt=\
$ac_optarg ;;
1143 -without-* |
--without-*)
1144 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1147 as_fn_error $?
"invalid package name: $ac_useropt"
1148 ac_useropt_orig
=$ac_useropt
1149 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1154 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep
=', ';;
1157 eval with_
$ac_useropt=no
;;
1160 # Obsolete; use --with-x.
1163 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1164 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1165 ac_prev
=x_includes
;;
1166 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1167 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1168 x_includes
=$ac_optarg ;;
1170 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1171 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1172 ac_prev
=x_libraries
;;
1173 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1174 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1175 x_libraries
=$ac_optarg ;;
1177 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1182 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1186 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1188 eval $ac_envvar=\
$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202 if test -n "$ac_prev"; then
1203 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $?
"missing argument to $ac_option"
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1210 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 # Check all directory arguments for consistency.
1216 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val
=\$
$ac_var
1222 # Remove trailing slashes.
1225 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\
$ac_val;;
1228 # Be sure to have absolute directory names.
1230 [\\/$
]* | ?
:[\\/]* ) continue;;
1231 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1233 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1241 target
=$target_alias
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x
; then
1245 if test "x$build_alias" = x
; then
1246 cross_compiling
=maybe
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1255 test "$silent" = yes && exec 6>/dev
/null
1258 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di
=`ls -di .` &&
1260 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $?
"working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $?
"pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted
=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir
=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1298 ac_srcdir_defaulted
=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1302 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var
in $ac_precious_vars; do
1319 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1321 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1395 --build=BUILD configure
for building on BUILD
[guessed
]
1396 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1397 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive
) echo "Configuration of gdbsupport 1.0:";;
1408 --disable-option-checking ignore unrecognized
--enable/--with options
1409 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1410 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1411 --enable-maintainer-mode
1412 enable make rules and dependencies not useful
(and
1413 sometimes confusing
) to the casual installer
1414 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1415 --disable-silent-rules verbose build output
(undo
: "make V=0")
1416 --enable-dependency-tracking
1417 do not reject slow dependency extractors
1418 --disable-dependency-tracking
1419 speeds up one-time build
1420 --enable-plugins Enable support
for plugins
1421 --disable-largefile omit support
for large files
1422 --disable-rpath do not hardcode runtime library paths
1423 --enable-unit-tests Enable the inclusion of unit tests when compiling
1425 --enable-werror treat compile warnings as errors
1426 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1427 --enable-gdb-build-warnings
1428 enable GDB specific build-time compiler warnings
if
1432 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1433 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1434 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1435 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1436 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1437 --without-libipt-prefix don
't search for libipt in includedir and libdir
1438 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1440 Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 LIBS libraries to pass to the linker, e.g. -l<library>
1446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CXX C++ compiler command
1449 CXXFLAGS C++ compiler flags
1452 Use these variables to override the choices made by `configure' or to
help
1453 it to
find libraries and programs with nonstandard names
/locations.
1455 Report bugs to the package provider.
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1469 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1471 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1476 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1479 ac_abs_top_builddir
=$ac_pwd
1480 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir
=$ac_top_build_prefix
1485 .
) # We are building in place.
1487 ac_top_srcdir
=$ac_top_builddir_sub
1488 ac_abs_top_srcdir
=$ac_pwd ;;
1489 [\\/]* | ?
:[\\/]* ) # Absolute name.
1490 ac_srcdir
=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir
=$srcdir
1492 ac_abs_top_srcdir
=$srcdir ;;
1494 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1498 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1518 gdbsupport configure
1.0
1519 generated by GNU Autoconf
2.69
1521 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1522 This configure
script is free software
; the Free Software Foundation
1523 gives unlimited permission to copy
, distribute and modify it.
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile
()
1537 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1538 rm -f conftest.
$ac_objext
1539 if { { ac_try
="$ac_compile"
1541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1568 } # ac_fn_c_try_compile
1570 # ac_fn_cxx_try_compile LINENO
1571 # ----------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_cxx_try_compile ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1580 *) ac_try_echo
=$ac_try;;
1582 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1586 if test -s conftest.err
; then
1587 grep -v '^ *+' conftest.err
>conftest.er1
1588 cat conftest.er1
>&5
1589 mv -f conftest.er1 conftest.err
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_cxx_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.
$ac_objext; then :
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.
$ac_ext >&5
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status
$ac_retval
1606 } # ac_fn_cxx_try_compile
1608 # ac_fn_c_try_cpp LINENO
1609 # ----------------------
1610 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1614 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } > conftest.i && {
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1645 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1648 # the include files in INCLUDES and setting the cache variable VAR
1650 ac_fn_c_check_header_mongrel ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if eval \${$3+:} false; then :
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1663 # Is the header compilable?
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1665 $as_echo_n "checking $2 usability... " >&6; }
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 ac_header_compiler=yes
1674 ac_header_compiler=no
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1678 $as_echo "$ac_header_compiler" >&6; }
1680 # Is the header present?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1682 $as_echo_n "checking $2 presence... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1687 if ac_fn_c_try_cpp "$LINENO"; then :
1688 ac_header_preproc=yes
1690 ac_header_preproc=no
1692 rm -f conftest.err conftest.i conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1694 $as_echo "$ac_header_preproc" >&6; }
1696 # So? What about this header?
1697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1700 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1706 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1708 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1710 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1712 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if eval \${$3+:} false; then :
1720 $as_echo_n "(cached) " >&6
1722 eval "$3=\$ac_header_compiler"
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 } # ac_fn_c_check_header_mongrel
1732 # ac_fn_c_try_run LINENO
1733 # ----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735 # that executables *can* be run.
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_link"
1741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1742 *) ac_try_echo
=$ac_try;;
1744 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>&5
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1750 { { case "(($ac_try" in
1751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_try") 2>&5
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; }; then :
1762 $as_echo "$as_me: program exited with status $ac_status" >&5
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=$ac_status
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1774 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1775 # -------------------------------------------------------
1776 # Tests whether HEADER exists and can be compiled using the include files in
1777 # INCLUDES, setting the cache variable VAR accordingly.
1778 ac_fn_c_check_header_compile ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if eval \${$3+:} false; then :
1784 $as_echo_n "(cached) " >&6
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1791 if ac_fn_c_try_compile "$LINENO"; then :
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 } # ac_fn_c_check_header_compile
1805 # ac_fn_c_try_link LINENO
1806 # -----------------------
1807 # Try to link conftest.$ac_ext, and return whether this succeeded.
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext conftest$ac_exeext
1812 if { { ac_try="$ac_link"
1814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1815 *) ac_try_echo
=$ac_try;;
1817 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_link") 2>conftest.err
1821 if test -s conftest.err
; then
1822 grep -v '^ *+' conftest.err
>conftest.er1
1823 cat conftest.er1
>&5
1824 mv -f conftest.er1 conftest.err
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest
$ac_exeext && {
1831 test "$cross_compiling" = yes ||
1832 test -x conftest
$ac_exeext
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.
$ac_ext >&5
1841 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1842 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1843 # interfere with the next link command; also delete a directory that is
1844 # left behind by Apple's compiler. We do this before executing the actions.
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status
$ac_retval
1849 } # ac_fn_c_try_link
1851 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1852 # -------------------------------------------
1853 # Tests whether TYPE exists after having included INCLUDES, setting cache
1854 # variable VAR accordingly.
1855 ac_fn_c_check_type
()
1857 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \
${$3+:} false
; then :
1861 $as_echo_n "(cached) " >&6
1864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1876 if ac_fn_c_try_compile
"$LINENO"; then :
1877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1889 if ac_fn_c_try_compile
"$LINENO"; then :
1894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 } # ac_fn_c_check_type
1905 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1906 # --------------------------------------------
1907 # Tries to find the compile-time value of EXPR in a program that includes
1908 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1910 ac_fn_c_compute_int
()
1912 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1913 if test "$cross_compiling" = yes; then
1914 # Depending upon the size, compute the lo and hi bounds.
1915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1921 static int test_array [1 - 2 * !(($2) >= 0)];
1923 return test_array [0];
1929 if ac_fn_c_try_compile
"$LINENO"; then :
1932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1938 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1940 return test_array [0];
1946 if ac_fn_c_try_compile
"$LINENO"; then :
1947 ac_hi
=$ac_mid; break
1949 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1950 if test $ac_lo -le $ac_mid; then
1954 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1965 static int test_array [1 - 2 * !(($2) < 0)];
1967 return test_array [0];
1973 if ac_fn_c_try_compile
"$LINENO"; then :
1976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1982 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1984 return test_array [0];
1990 if ac_fn_c_try_compile
"$LINENO"; then :
1991 ac_lo
=$ac_mid; break
1993 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1994 if test $ac_mid -le $ac_hi; then
1998 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2008 # Binary search between lo and hi bounds.
2009 while test "x$ac_lo" != "x$ac_hi"; do
2010 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2017 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2019 return test_array [0];
2025 if ac_fn_c_try_compile
"$LINENO"; then :
2028 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2033 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2040 static long int longval () { return $2; }
2041 static unsigned long int ulongval () { return $2; }
2048 FILE *f = fopen ("conftest.val", "w");
2053 long int i = longval ();
2056 fprintf (f, "%ld", i);
2060 unsigned long int i = ulongval ();
2063 fprintf (f, "%lu", i);
2065 /* Do not output a trailing newline, as this causes \r\n confusion
2066 on some platforms. */
2067 return ferror (f) || fclose (f) != 0;
2073 if ac_fn_c_try_run
"$LINENO"; then :
2074 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2078 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2079 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084 as_fn_set_status
$ac_retval
2086 } # ac_fn_c_compute_int
2088 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2089 # ---------------------------------------------
2090 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2092 ac_fn_c_check_decl
()
2094 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2095 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2096 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2098 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2099 if eval \
${$3+:} false
; then :
2100 $as_echo_n "(cached) " >&6
2102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2108 #ifndef $as_decl_name
2110 (void) $as_decl_use;
2112 (void) $as_decl_name;
2120 if ac_fn_c_try_compile
"$LINENO"; then :
2125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 } # ac_fn_c_check_decl
2134 # ac_fn_c_check_func LINENO FUNC VAR
2135 # ----------------------------------
2136 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2137 ac_fn_c_check_func
()
2139 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2141 $as_echo_n "checking for $2... " >&6; }
2142 if eval \
${$3+:} false
; then :
2143 $as_echo_n "(cached) " >&6
2145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2149 #define $2 innocuous_$2
2151 /* System header to define __stub macros and hopefully few prototypes,
2152 which can conflict with char $2 (); below.
2153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2154 <limits.h> exists even on freestanding compilers. */
2157 # include <limits.h>
2159 # include <assert.h>
2164 /* Override any GCC internal prototype to avoid an error.
2165 Use char because int might match the return type of a GCC
2166 builtin and then its argument prototype would still apply. */
2171 /* The GNU C library defines this for functions which it implements
2172 to always fail with ENOSYS. Some functions are actually named
2173 something starting with __ and the normal name is an alias. */
2174 #if defined __stub_$2 || defined __stub___$2
2186 if ac_fn_c_try_link
"$LINENO"; then :
2191 rm -f core conftest.err conftest.
$ac_objext \
2192 conftest
$ac_exeext conftest.
$ac_ext
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199 } # ac_fn_c_check_func
2201 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2202 # ----------------------------------------------------
2203 # Tries to find if the field MEMBER exists in type AGGR, after including
2204 # INCLUDES, setting cache variable VAR accordingly.
2205 ac_fn_c_check_member
()
2207 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2209 $as_echo_n "checking for $2.$3... " >&6; }
2210 if eval \
${$4+:} false
; then :
2211 $as_echo_n "(cached) " >&6
2213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2226 if ac_fn_c_try_compile
"$LINENO"; then :
2229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2236 if (sizeof ac_aggr.$3)
2242 if ac_fn_c_try_compile
"$LINENO"; then :
2247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256 } # ac_fn_c_check_member
2258 # ac_fn_cxx_try_link LINENO
2259 # -------------------------
2260 # Try to link conftest.$ac_ext, and return whether this succeeded.
2261 ac_fn_cxx_try_link
()
2263 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2264 rm -f conftest.
$ac_objext conftest
$ac_exeext
2265 if { { ac_try
="$ac_link"
2267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271 $as_echo "$ac_try_echo"; } >&5
2272 (eval "$ac_link") 2>conftest.err
2274 if test -s conftest.err; then
2275 grep -v '^ *+' conftest.err >conftest.er1
2276 cat conftest.er1 >&5
2277 mv -f conftest.er1 conftest.err
2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280 test $ac_status = 0; } && {
2281 test -z "$ac_cxx_werror_flag" ||
2282 test ! -s conftest.err
2283 } && test -s conftest$ac_exeext && {
2284 test "$cross_compiling" = yes ||
2285 test -x conftest$ac_exeext
2289 $as_echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2294 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2295 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2296 # interfere with the next link command; also delete a directory that is
2297 # left behind by Apple's compiler. We do this before executing the actions.
2298 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2299 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2300 as_fn_set_status $ac_retval
2302 } # ac_fn_cxx_try_link
2304 # ac_fn_cxx_check_func LINENO FUNC VAR
2305 # ------------------------------------
2306 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2307 ac_fn_cxx_check_func ()
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2311 $as_echo_n "checking for $2... " >&6; }
2312 if eval \${$3+:} false; then :
2313 $as_echo_n "(cached) " >&6
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2317 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2319 #define $2 innocuous_$2
2321 /* System header to define __stub macros and hopefully few prototypes,
2322 which can conflict with char $2 (); below.
2323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2324 <limits.h> exists even on freestanding compilers. */
2327 # include <limits.h>
2329 # include <assert.h>
2334 /* Override any GCC internal prototype to avoid an error.
2335 Use char because int might match the return type of a GCC
2336 builtin and then its argument prototype would still apply. */
2341 /* The GNU C library defines this for functions which it implements
2342 to always fail with ENOSYS. Some functions are actually named
2343 something starting with __ and the normal name is an alias. */
2344 #if defined __stub_$2 || defined __stub___$2
2356 if ac_fn_cxx_try_link "$LINENO"; then :
2361 rm -f core conftest.err conftest.$ac_objext \
2362 conftest$ac_exeext conftest.$ac_ext
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2369 } # ac_fn_cxx_check_func
2370 cat >config.log <<_ACEOF
2371 This file contains any messages produced by compilers while
2372 running configure, to aid debugging if configure makes a mistake.
2374 It was created by gdbsupport $as_me 1.0, which was
2375 generated by GNU Autoconf 2.69. Invocation command line was
2387 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2388 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2389 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2390 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2391 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2393 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2394 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2396 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2397 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2398 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2399 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2400 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2401 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2402 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 $as_echo "PATH: $as_dir"
2427 # Keep a trace of the command line.
2428 # Strip out --no-create and --no-recursion so they do not pile up.
2429 # Strip out --silent because we don't want to record it for future runs.
2430 # Also quote any args containing shell meta-characters.
2431 # Make two passes to allow for proper duplicate-argument suppression.
2435 ac_must_keep_next=false
2441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2443 | -silent | --silent | --silen | --sile | --sil)
2446 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2449 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2451 as_fn_append ac_configure_args1 " '$ac_arg'"
2452 if test $ac_must_keep_next = true; then
2453 ac_must_keep_next=false # Got value, back to normal.
2456 *=* | --config-cache | -C | -disable-* | --disable-* \
2457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2459 | -with-* | --with-* | -without-* | --without-* | --x)
2460 case "$ac_configure_args0 " in
2461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2464 -* ) ac_must_keep_next=true ;;
2467 as_fn_append ac_configure_args " '$ac_arg'"
2472 { ac_configure_args0=; unset ac_configure_args0;}
2473 { ac_configure_args1=; unset ac_configure_args1;}
2475 # When interrupted or exit'd, cleanup temporary files, and complete
2476 # config.log. We remove comments because anyway the quotes in there
2477 # would cause problems or look ugly.
2478 # WARNING: Use '\'' to represent an apostrophe within the trap.
2479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2480 trap 'exit_status=$?
2481 # Save into config.log some information that might help in debugging.
2485 $as_echo "## ---------------- ##
2486 ## Cache variables. ##
2487 ## ---------------- ##"
2489 # The following way of writing the cache mishandles newlines in values,
2491 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2492 eval ac_val=\$$ac_var
2496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2497 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2500 _ | IFS | as_nl) ;; #(
2501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2502 *) { eval $ac_var=; unset $ac_var;} ;;
2507 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2508 *${as_nl}ac_space=\ *)
2510 "s/'\''/'\''\\\\'\'''\''/g;
2511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2521 $as_echo "## ----------------- ##
2522 ## Output variables. ##
2523 ## ----------------- ##"
2525 for ac_var in $ac_subst_vars
2527 eval ac_val=\$$ac_var
2529 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2531 $as_echo "$ac_var='\''$ac_val'\''"
2535 if test -n "$ac_subst_files"; then
2536 $as_echo "## ------------------- ##
2537 ## File substitutions. ##
2538 ## ------------------- ##"
2540 for ac_var in $ac_subst_files
2542 eval ac_val=\$$ac_var
2544 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2546 $as_echo "$ac_var='\''$ac_val'\''"
2551 if test -s confdefs.h; then
2552 $as_echo "## ----------- ##
2559 test "$ac_signal" != 0 &&
2560 $as_echo "$as_me: caught signal $ac_signal"
2561 $as_echo "$as_me: exit $exit_status"
2563 rm -f core *.core core.conftest.* &&
2564 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2567 for ac_signal in 1 2 13 15; do
2568 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2572 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2573 rm -f -r conftest* confdefs.h
2575 $as_echo "/* confdefs.h */" > confdefs.h
2577 # Predefined preprocessor variables.
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_NAME "$PACKAGE_NAME"
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2587 cat >>confdefs.h <<_ACEOF
2588 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2591 cat >>confdefs.h <<_ACEOF
2592 #define PACKAGE_STRING "$PACKAGE_STRING"
2595 cat >>confdefs.h <<_ACEOF
2596 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2599 cat >>confdefs.h <<_ACEOF
2600 #define PACKAGE_URL "$PACKAGE_URL"
2604 # Let the site file select an alternate cache file if it wants to.
2605 # Prefer an explicitly selected file to automatically selected ones.
2608 if test -n "$CONFIG_SITE"; then
2609 # We do not want a PATH search for config.site.
2610 case $CONFIG_SITE in #((
2611 -*) ac_site_file1=./$CONFIG_SITE;;
2612 */*) ac_site_file1=$CONFIG_SITE;;
2613 *) ac_site_file1=./$CONFIG_SITE;;
2615 elif test "x$prefix" != xNONE; then
2616 ac_site_file1=$prefix/share/config.site
2617 ac_site_file2=$prefix/etc/config.site
2619 ac_site_file1=$ac_default_prefix/share/config.site
2620 ac_site_file2=$ac_default_prefix/etc/config.site
2622 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2624 test "x$ac_site_file" = xNONE && continue
2625 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2627 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2628 sed 's/^/| /' "$ac_site_file" >&5
2630 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2632 as_fn_error $? "failed to load site
script $ac_site_file
2633 See \
`config.log' for more details" "$LINENO" 5; }
2637 if test -r "$cache_file"; then
2638 # Some versions of bash will fail to source /dev/null (special files
2639 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2640 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2642 $as_echo "$as_me: loading cache $cache_file" >&6;}
2644 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2645 *) . "./$cache_file";;
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2650 $as_echo "$as_me: creating cache $cache_file" >&6;}
2654 as_fn_append ac_header_list " stdlib.h"
2655 as_fn_append ac_header_list " unistd.h"
2656 as_fn_append ac_header_list " sys/param.h"
2657 # Check that the precious variables saved in the cache have kept the same
2659 ac_cache_corrupted=false
2660 for ac_var in $ac_precious_vars; do
2661 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2662 eval ac_new_set=\$ac_env_${ac_var}_set
2663 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2664 eval ac_new_val=\$ac_env_${ac_var}_value
2665 case $ac_old_set,$ac_new_set in
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2668 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2669 ac_cache_corrupted=: ;;
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2672 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2673 ac_cache_corrupted=: ;;
2676 if test "x$ac_old_val" != "x$ac_new_val"; then
2677 # differences in whitespace do not lead to failure.
2678 ac_old_val_w=`echo x
$ac_old_val`
2679 ac_new_val_w=`echo x
$ac_new_val`
2680 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2682 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2683 ac_cache_corrupted=:
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2686 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2687 eval $ac_var=\$ac_old_val
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2690 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2692 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2695 # Pass precious variables to config.status.
2696 if test "$ac_new_set" = set; then
2698 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2699 *) ac_arg=$ac_var=$ac_new_val ;;
2701 case " $ac_configure_args " in
2702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2703 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2707 if $ac_cache_corrupted; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2711 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2712 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2714 ## -------------------- ##
2715 ## Main body of script. ##
2716 ## -------------------- ##
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729 ac_config_headers="$ac_config_headers config.h:config.in"
2732 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2733 if test -f "$ac_dir/install-sh"; then
2735 ac_install_sh="$ac_aux_dir/install-sh -c"
2737 elif test -f "$ac_dir/install.sh"; then
2739 ac_install_sh="$ac_aux_dir/install.sh -c"
2741 elif test -f "$ac_dir/shtool"; then
2743 ac_install_sh="$ac_aux_dir/shtool install -c"
2747 if test -z "$ac_aux_dir"; then
2748 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2751 # These three variables are undocumented and unsupported,
2752 # and are intended to be withdrawn in a future Autoconf release.
2753 # They can cause serious problems if a builder's source tree is in a directory
2754 # whose full name contains unusual characters.
2755 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2756 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2757 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2760 # Make sure we can run config.sub.
2761 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2762 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2765 $as_echo_n "checking build system type... " >&6; }
2766 if ${ac_cv_build+:} false; then :
2767 $as_echo_n "(cached) " >&6
2769 ac_build_alias=$build_alias
2770 test "x$ac_build_alias" = x &&
2771 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2772 test "x$ac_build_alias" = x &&
2773 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2774 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2779 $as_echo "$ac_cv_build" >&6; }
2780 case $ac_cv_build in
2782 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2785 ac_save_IFS=$IFS; IFS='-'
2791 # Remember, the first character of IFS is used to create $*,
2792 # except with old shells:
2795 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2799 $as_echo_n "checking host system type... " >&6; }
2800 if ${ac_cv_host+:} false; then :
2801 $as_echo_n "(cached) " >&6
2803 if test "x$host_alias" = x; then
2804 ac_cv_host=$ac_cv_build
2806 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2812 $as_echo "$ac_cv_host" >&6; }
2815 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2818 ac_save_IFS=$IFS; IFS='-'
2824 # Remember, the first character of IFS is used to create $*,
2825 # except with old shells:
2828 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2832 $as_echo_n "checking target system type... " >&6; }
2833 if ${ac_cv_target+:} false; then :
2834 $as_echo_n "(cached) " >&6
2836 if test "x$target_alias" = x; then
2837 ac_cv_target=$ac_cv_host
2839 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2840 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2845 $as_echo "$ac_cv_target" >&6; }
2846 case $ac_cv_target in
2848 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2850 target=$ac_cv_target
2851 ac_save_IFS=$IFS; IFS='-'
2857 # Remember, the first character of IFS is used to create $*,
2858 # except with old shells:
2861 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2864 # The aliases save the names the user supplied, while $host etc.
2865 # will get canonicalized.
2866 test -n "$target_alias" &&
2867 test "$program_prefix$program_suffix$program_transform_name" = \
2869 program_prefix=${target_alias}-
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2873 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2874 # Check whether --enable-maintainer-mode was given.
2875 if test "${enable_maintainer_mode+set}" = set; then :
2876 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2878 USE_MAINTAINER_MODE=no
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2882 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2883 if test $USE_MAINTAINER_MODE = yes; then
2884 MAINTAINER_MODE_TRUE=
2885 MAINTAINER_MODE_FALSE='#'
2887 MAINTAINER_MODE_TRUE='#'
2888 MAINTAINER_MODE_FALSE=
2891 MAINT=$MAINTAINER_MODE_TRUE
2895 for ac_dir in .. "$srcdir"/..; do
2896 if test -f "$ac_dir/install-sh"; then
2898 ac_install_sh="$ac_aux_dir/install-sh -c"
2900 elif test -f "$ac_dir/install.sh"; then
2902 ac_install_sh="$ac_aux_dir/install.sh -c"
2904 elif test -f "$ac_dir/shtool"; then
2906 ac_install_sh="$ac_aux_dir/shtool install -c"
2910 if test -z "$ac_aux_dir"; then
2911 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2914 # These three variables are undocumented and unsupported,
2915 # and are intended to be withdrawn in a future Autoconf release.
2916 # They can cause serious problems if a builder's source tree is in a directory
2917 # whose full name contains unusual characters.
2918 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2919 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2920 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2923 am__api_version='1.15'
2925 # Find a good install program. We prefer a C program (faster),
2926 # so one script is as good as another. But avoid the broken or
2927 # incompatible versions:
2928 # SysV /etc/install, /usr/sbin/install
2929 # SunOS /usr/etc/install
2930 # IRIX /sbin/install
2932 # AmigaOS /C/install, which installs bootblocks on floppy discs
2933 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2934 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2935 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2936 # OS/2's system install, which has a completely different semantic
2937 # ./install, which can be erroneously created by make from ./install.sh.
2938 # Reject install programs that cannot install multiple files.
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2940 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2941 if test -z "$INSTALL"; then
2942 if ${ac_cv_path_install+:} false; then :
2943 $as_echo_n "(cached) " >&6
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 # Account for people who put trailing slashes in PATH elements.
2951 case $as_dir/ in #((
2952 ./ | .// | /[cC]/* | \
2953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2954 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2957 # OSF1 and SCO ODT 3.0 have their own names for install.
2958 # Don't use installbsd from OSF since it installs stuff as root
2960 for ac_prog in ginstall scoinst install; do
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2963 if test $ac_prog = install &&
2964 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2965 # AIX install. It has an incompatible calling convention.
2967 elif test $ac_prog = install &&
2968 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2969 # program-specific install script used by HP pwplus--don't use.
2972 rm -rf conftest.one conftest.two conftest.dir
2973 echo one > conftest.one
2974 echo two > conftest.two
2976 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2977 test -s conftest.one && test -s conftest.two &&
2978 test -s conftest.dir/conftest.one &&
2979 test -s conftest.dir/conftest.two
2981 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2994 rm -rf conftest.one conftest.two conftest.dir
2997 if test "${ac_cv_path_install+set}" = set; then
2998 INSTALL=$ac_cv_path_install
3000 # As a last resort, use the slow shell script. Don't cache a
3001 # value for INSTALL within a source directory, because that will
3002 # break other packages using the cache if that directory is
3003 # removed, or if the value is a relative name.
3004 INSTALL=$ac_install_sh
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3008 $as_echo "$INSTALL" >&6; }
3010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3011 # It thinks the first close brace ends the variable substitution.
3012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3019 $as_echo_n "checking whether build environment is sane... " >&6; }
3020 # Reject unsafe characters in $srcdir or the absolute working directory
3021 # name. Accept space and tab only in the latter.
3025 *[\\\"\#\$\&\'\`$am_lf]*)
3026 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3029 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3030 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3033 # Do 'set' in a subshell so we don't clobber the current shell's
3034 # arguments. Must try -L first in case configure is actually a
3035 # symlink; some systems play weird games with the mod time of symlinks
3036 # (eg FreeBSD returns the mod time of the symlink's containing
3040 for am_try
in 1 2; do
3041 echo "timestamp, slept: $am_has_slept" > conftest.
file
3042 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3043 if test "$*" = "X"; then
3045 set X
`ls -t "$srcdir/configure" conftest.file`
3047 if test "$*" != "X $srcdir/configure conftest.file" \
3048 && test "$*" != "X conftest.file $srcdir/configure"; then
3050 # If neither matched, then we have a broken ls. This can happen
3051 # if, for instance, CONFIG_SHELL is bash and it inherits a
3052 # broken ls alias from the environment. This has actually
3053 # happened. Such a system could not be considered "sane".
3054 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3055 alias in your environment" "$LINENO" 5
3057 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3064 test "$2" = conftest.
file
3070 as_fn_error $?
"newly created file is older than distributed files!
3071 Check your system clock" "$LINENO" 5
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074 $as_echo "yes" >&6; }
3075 # If we didn't sleep, we still need to ensure time stamps of config.status and
3076 # generated files are strictly newer.
3078 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3085 test "$program_prefix" != NONE
&&
3086 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3087 # Use a double $ so make ignores it.
3088 test "$program_suffix" != NONE
&&
3089 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3090 # Double any \ or $.
3091 # By default was `s,x,x', remove it if useless.
3092 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3093 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3095 # Expand $ac_aux_dir to an absolute path.
3096 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3098 if test x
"${MISSING+set}" != xset
; then
3101 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3103 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3106 # Use eval to expand $SHELL
3107 if eval "$MISSING --is-lightweight"; then
3108 am_missing_run
="$MISSING "
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3112 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3115 if test x
"${install_sh+set}" != xset
; then
3118 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3120 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3124 # Installed binaries are usually stripped using 'strip' when the user
3125 # run "make install-strip". However 'strip' might not be the right
3126 # tool to use in cross-compilation environments, therefore Automake
3127 # will honor the 'STRIP' environment variable to overrule this program.
3128 if test "$cross_compiling" != no
; then
3129 if test -n "$ac_tool_prefix"; then
3130 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3131 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_STRIP+:} false
; then :
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$STRIP"; then
3138 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir
=.
3145 for ac_exec_ext
in '' $ac_executable_extensions; do
3146 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 STRIP
=$ac_cv_prog_STRIP
3158 if test -n "$STRIP"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3160 $as_echo "$STRIP" >&6; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3168 if test -z "$ac_cv_prog_STRIP"; then
3170 # Extract the first word of "strip", so it can be a program name with args.
3171 set dummy strip
; ac_word
=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3175 $as_echo_n "(cached) " >&6
3177 if test -n "$ac_ct_STRIP"; then
3178 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3184 test -z "$as_dir" && as_dir
=.
3185 for ac_exec_ext
in '' $ac_executable_extensions; do
3186 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_ac_ct_STRIP
="strip"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3198 if test -n "$ac_ct_STRIP"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3200 $as_echo "$ac_ct_STRIP" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3206 if test "x$ac_ct_STRIP" = x
; then
3209 case $cross_compiling:$ac_tool_warned in
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3213 ac_tool_warned
=yes ;;
3218 STRIP
="$ac_cv_prog_STRIP"
3222 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3225 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3226 if test -z "$MKDIR_P"; then
3227 if ${ac_cv_path_mkdir+:} false
; then :
3228 $as_echo_n "(cached) " >&6
3230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3231 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3234 test -z "$as_dir" && as_dir
=.
3235 for ac_prog
in mkdir gmkdir
; do
3236 for ac_exec_ext
in '' $ac_executable_extensions; do
3237 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3238 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3239 'mkdir (GNU coreutils) '* | \
3240 'mkdir (coreutils) '* | \
3241 'mkdir (fileutils) '4.1*)
3242 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3252 test -d .
/--version && rmdir .
/--version
3253 if test "${ac_cv_path_mkdir+set}" = set; then
3254 MKDIR_P
="$ac_cv_path_mkdir -p"
3256 # As a last resort, use the slow shell script. Don't cache a
3257 # value for MKDIR_P within a source directory, because that will
3258 # break other packages using the cache if that directory is
3259 # removed, or if the value is a relative name.
3260 MKDIR_P
="$ac_install_sh -d"
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3264 $as_echo "$MKDIR_P" >&6; }
3266 for ac_prog
in gawk mawk nawk
awk
3268 # Extract the first word of "$ac_prog", so it can be a program name with args.
3269 set dummy
$ac_prog; ac_word
=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if ${ac_cv_prog_AWK+:} false
; then :
3273 $as_echo_n "(cached) " >&6
3275 if test -n "$AWK"; then
3276 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir
=.
3283 for ac_exec_ext
in '' $ac_executable_extensions; do
3284 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_AWK
="$ac_prog"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 if test -n "$AWK"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3298 $as_echo "$AWK" >&6; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3305 test -n "$AWK" && break
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3309 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3311 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3312 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3313 $as_echo_n "(cached) " >&6
3315 cat >conftest.
make <<\_ACEOF
3318 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3320 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3321 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3323 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3325 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3329 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 $as_echo "yes" >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 SET_MAKE
="MAKE=${MAKE-make}"
3339 rm -rf .tst
2>/dev
/null
3340 mkdir .tst
2>/dev
/null
3341 if test -d .tst
; then
3346 rmdir .tst
2>/dev
/null
3348 # Check whether --enable-silent-rules was given.
3349 if test "${enable_silent_rules+set}" = set; then :
3350 enableval
=$enable_silent_rules;
3353 case $enable_silent_rules in # (((
3354 yes) AM_DEFAULT_VERBOSITY
=0;;
3355 no
) AM_DEFAULT_VERBOSITY
=1;;
3356 *) AM_DEFAULT_VERBOSITY
=1;;
3358 am_make
=${MAKE-make}
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3360 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3361 if ${am_cv_make_support_nested_variables+:} false
; then :
3362 $as_echo_n "(cached) " >&6
3364 if $as_echo 'TRUE=$(BAR$(V))
3370 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3371 am_cv_make_support_nested_variables
=yes
3373 am_cv_make_support_nested_variables
=no
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3377 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3378 if test $am_cv_make_support_nested_variables = yes; then
3380 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3382 AM_V
=$AM_DEFAULT_VERBOSITY
3383 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3387 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3388 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3389 # is not polluted with repeated "-I."
3390 am__isrc
=' -I$(srcdir)'
3391 # test to see if srcdir already configured
3392 if test -f $srcdir/config.status
; then
3393 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3397 # test whether we have cygpath
3398 if test -z "$CYGPATH_W"; then
3399 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3400 CYGPATH_W
='cygpath -w'
3407 # Define the identity of the package.
3408 PACKAGE
='gdbsupport'
3412 cat >>confdefs.h
<<_ACEOF
3413 #define PACKAGE "$PACKAGE"
3417 cat >>confdefs.h
<<_ACEOF
3418 #define VERSION "$VERSION"
3421 # Some tools Automake needs.
3423 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3426 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3429 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3432 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3435 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3437 # For better backward compatibility. To be removed once Automake 1.9.x
3438 # dies out for good. For more background, see:
3439 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3440 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3441 mkdir_p
='$(MKDIR_P)'
3443 # We need awk for the "check" target (and possibly the TAP driver). The
3444 # system "awk" is bad on some platforms.
3445 # Always define AMTAR for backward compatibility. Yes, it's still used
3446 # in the wild :-( We should find a proper way to deprecate it ...
3450 # We'll loop over all known methods to create a tar archive until one works.
3451 _am_tools
='gnutar pax cpio none'
3453 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3460 # POSIX will say in a future version that running "rm -f" with no argument
3461 # is OK; and we want to be able to make that assumption in our Makefile
3462 # recipes. So use an aggressive probe to check that the usage we want is
3463 # actually supported "in the wild" to an acceptable degree.
3464 # See automake bug#10828.
3465 # To make any issue more visible, cause the running configure to be aborted
3466 # by default if the 'rm' program in use doesn't match our expectations; the
3467 # user can still override this though.
3468 if rm -f && rm -fr && rm -rf; then : OK
; else
3472 Your 'rm' program seems unable to run without file operands specified
3473 on the command line, even when the '-f' option is present. This is contrary
3474 to the behaviour of most rm programs out there, and not conforming with
3475 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3477 Please tell bug-automake@gnu.org about your system, including the value
3478 of your $PATH and any error possibly output before this message. This
3479 can help us improve future automake versions.
3482 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3483 echo 'Configuration will proceed anyway, since you have set the' >&2
3484 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3488 Aborting the configuration process, to ensure you take notice of the issue.
3490 You can download and install GNU coreutils to get an 'rm' implementation
3491 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3493 If you want to complete the configuration process using your problematic
3494 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3495 to "yes", and re-run configure.
3498 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3502 # Check whether --enable-silent-rules was given.
3503 if test "${enable_silent_rules+set}" = set; then :
3504 enableval
=$enable_silent_rules;
3507 case $enable_silent_rules in # (((
3508 yes) AM_DEFAULT_VERBOSITY
=0;;
3509 no
) AM_DEFAULT_VERBOSITY
=1;;
3510 *) AM_DEFAULT_VERBOSITY
=0;;
3512 am_make
=${MAKE-make}
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3514 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3515 if ${am_cv_make_support_nested_variables+:} false
; then :
3516 $as_echo_n "(cached) " >&6
3518 if $as_echo 'TRUE=$(BAR$(V))
3524 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3525 am_cv_make_support_nested_variables
=yes
3527 am_cv_make_support_nested_variables
=no
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3531 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3532 if test $am_cv_make_support_nested_variables = yes; then
3534 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3536 AM_V
=$AM_DEFAULT_VERBOSITY
3537 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3545 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 if test -n "$ac_tool_prefix"; then
3548 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3549 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if ${ac_cv_prog_CC+:} false; then :
3553 $as_echo_n "(cached) " >&6
3555 if test -n "$CC"; then
3556 ac_cv_prog_CC="$CC" # Let the user override the test.
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 if test -n "$CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 $as_echo "$CC" >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3586 if test -z "$ac_cv_prog_CC"; then
3588 # Extract the first word of "gcc", so it can be a program name with args.
3589 set dummy gcc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$ac_ct_CC"; then
3596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_ac_ct_CC="gcc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3616 if test -n "$ac_ct_CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3618 $as_echo "$ac_ct_CC" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3624 if test "x$ac_ct_CC" = x; then
3627 case $cross_compiling:$ac_tool_warned in
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3631 ac_tool_warned=yes ;;
3639 if test -z "$CC"; then
3640 if test -n "$ac_tool_prefix"; then
3641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3642 set dummy ${ac_tool_prefix}cc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_CC+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_CC="${ac_tool_prefix}cc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3680 if test -z "$CC"; then
3681 # Extract the first word of "cc", so it can be a program name with args.
3682 set dummy cc; ac_word=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if ${ac_cv_prog_CC+:} false; then :
3686 $as_echo_n "(cached) " >&6
3688 if test -n "$CC"; then
3689 ac_cv_prog_CC="$CC" # Let the user override the test.
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3700 ac_prog_rejected=yes
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 if test $ac_prog_rejected = yes; then
3712 # We found a bogon in the path, so make sure we never use it.
3713 set dummy $ac_cv_prog_CC
3715 if test $# != 0; then
3716 # We chose a different compiler from the bogus one.
3717 # However, it has the same basename, so the bogon will be chosen
3718 # first if we set CC to just the basename; use the full file name.
3720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3736 if test -z "$CC"; then
3737 if test -n "$ac_tool_prefix"; then
3738 for ac_prog in cl.exe
3740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CC+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3777 test -n "$CC" && break
3780 if test -z "$CC"; then
3782 for ac_prog in cl.exe
3784 # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3789 $as_echo_n "(cached) " >&6
3791 if test -n "$ac_ct_CC"; then
3792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_ac_ct_CC="$ac_prog"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3812 if test -n "$ac_ct_CC"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3814 $as_echo "$ac_ct_CC" >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3821 test -n "$ac_ct_CC" && break
3824 if test "x$ac_ct_CC" = x; then
3827 case $cross_compiling:$ac_tool_warned in
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3831 ac_tool_warned=yes ;;
3840 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3842 as_fn_error $? "no acceptable C compiler found in \$PATH
3843 See \`config.log
' for more details" "$LINENO" 5; }
3845 # Provide some information about the compiler.
3846 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3849 for ac_option in --version -v -V -qversion; do
3850 { { ac_try="$ac_compiler $ac_option >&5"
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3859 if test -s conftest.err; then
3861 ... rest of stderr output deleted ...
3862 10q
' conftest.err >conftest.er1
3863 cat conftest.er1 >&5
3865 rm -f conftest.er1 conftest.err
3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3881 ac_clean_files_save=$ac_clean_files
3882 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3883 # Try to create an executable without -o first, disregard a.out.
3884 # It will help us diagnose broken compilers, and finding out an intuition
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3887 $as_echo_n "checking whether the C compiler works... " >&6; }
3888 ac_link_default=`$as_echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
3890 # The possible output files:
3891 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3894 for ac_file in $ac_files
3897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3898 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3903 if { { ac_try="$ac_link_default"
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_link_default") 2>&5
3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }; then :
3914 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3915 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3916 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3917 # so that the user can short-circuit this test for compilers unknown to
3919 for ac_file
in $ac_files ''
3921 test -f "$ac_file" ||
continue
3923 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3926 # We found the default executable, but exeext='' is most
3930 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3932 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3934 # We set ac_cv_exeext here because the later test for it is not
3935 # safe: cross compilers may not add the suffix if given an `-o'
3936 # argument, so we may need to know it at that point already.
3937 # Even if this section looks crufty: it has the advantage of
3944 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3949 if test -z "$ac_file"; then :
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3952 $as_echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.
$ac_ext >&5
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error
77 "C compiler cannot create executables
3958 See \`config.log' for more details" "$LINENO" 5; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3964 $as_echo_n "checking for C compiler default output file name... " >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3966 $as_echo "$ac_file" >&6; }
3967 ac_exeext
=$ac_cv_exeext
3969 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3970 ac_clean_files
=$ac_clean_files_save
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3972 $as_echo_n "checking for suffix of executables... " >&6; }
3973 if { { ac_try
="$ac_link"
3975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_link") 2>&5
3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }; then :
3984 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3985 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3986 # work properly (i.e., refer to `conftest.exe'), while it won't with
3988 for ac_file
in conftest.exe conftest conftest.
*; do
3989 test -f "$ac_file" ||
continue
3991 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3992 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4001 See \`config.log' for more details" "$LINENO" 5; }
4003 rm -f conftest conftest
$ac_cv_exeext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4005 $as_echo "$ac_cv_exeext" >&6; }
4007 rm -f conftest.
$ac_ext
4008 EXEEXT
=$ac_cv_exeext
4010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4016 FILE *f = fopen ("conftest.out", "w");
4017 return ferror (f) || fclose (f) != 0;
4023 ac_clean_files
="$ac_clean_files conftest.out"
4024 # Check that the compiler produces executables we can run. If not, either
4025 # the compiler is broken, or we cross compile.
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4027 $as_echo_n "checking whether we are cross compiling... " >&6; }
4028 if test "$cross_compiling" != yes; then
4029 { { ac_try
="$ac_link"
4031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_link") 2>&5
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }
4040 if { ac_try='./conftest$ac_cv_exeext'
4041 { { case "(($ac_try" in
4042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4043 *) ac_try_echo
=$ac_try;;
4045 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_try") 2>&5
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }; }; then
4053 if test "$cross_compiling" = maybe
; then
4056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058 as_fn_error $?
"cannot run C compiled programs.
4059 If you meant to cross compile, use \`--host'.
4060 See \`config.log' for more details" "$LINENO" 5; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4065 $as_echo "$cross_compiling" >&6; }
4067 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4068 ac_clean_files
=$ac_clean_files_save
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4070 $as_echo_n "checking for suffix of object files... " >&6; }
4071 if ${ac_cv_objext+:} false
; then :
4072 $as_echo_n "(cached) " >&6
4074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4085 rm -f conftest.o conftest.obj
4086 if { { ac_try
="$ac_compile"
4088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092 $as_echo "$ac_try_echo"; } >&5
4093 (eval "$ac_compile") 2>&5
4095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096 test $ac_status = 0; }; then :
4097 for ac_file in conftest.o conftest.obj conftest.*; do
4098 test -f "$ac_file" || continue;
4100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4101 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4106 $as_echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4112 See \
`config.log' for more details" "$LINENO" 5; }
4114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4117 $as_echo "$ac_cv_objext" >&6; }
4118 OBJEXT=$ac_cv_objext
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4121 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4122 if ${ac_cv_c_compiler_gnu+:} false; then :
4123 $as_echo_n "(cached) " >&6
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4139 if ac_fn_c_try_compile "$LINENO"; then :
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4149 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4150 if test $ac_compiler_gnu = yes; then
4155 ac_test_CFLAGS=${CFLAGS+set}
4156 ac_save_CFLAGS=$CFLAGS
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4158 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4159 if ${ac_cv_prog_cc_g+:} false; then :
4160 $as_echo_n "(cached) " >&6
4162 ac_save_c_werror_flag=$ac_c_werror_flag
4163 ac_c_werror_flag=yes
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4177 if ac_fn_c_try_compile "$LINENO"; then :
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4192 if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_c_werror_flag=$ac_save_c_werror_flag
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4208 if ac_fn_c_try_compile "$LINENO"; then :
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 ac_c_werror_flag=$ac_save_c_werror_flag
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4219 $as_echo "$ac_cv_prog_cc_g" >&6; }
4220 if test "$ac_test_CFLAGS" = set; then
4221 CFLAGS=$ac_save_CFLAGS
4222 elif test $ac_cv_prog_cc_g = yes; then
4223 if test "$GCC" = yes; then
4229 if test "$GCC" = yes; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4236 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4237 if ${ac_cv_prog_cc_c89+:} false; then :
4238 $as_echo_n "(cached) " >&6
4240 ac_cv_prog_cc_c89=no
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4248 struct buf { int x; };
4249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4250 static char *e (p, i)
4256 static char *f (char * (*g) (char **, int), char **p, ...)
4261 s = g (p, va_arg (v,int));
4266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4267 function prototypes and stuff, but not '\xHH' hex character constants.
4268 These don't provoke an error unfortunately, instead are silently treated
4269 as 'x'. The following induces an error, until -std is added to get
4270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4271 array size at least. It's necessary to write '\x00'==0 to get something
4272 that's true only with -std. */
4273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4276 inside strings and character constants. */
4278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4280 int test (int i, double x);
4281 struct s1 {int (*f) (int a);};
4282 struct s2 {int (*f) (double a);};
4283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4297 CC="$ac_save_CC $ac_arg"
4298 if ac_fn_c_try_compile "$LINENO"; then :
4299 ac_cv_prog_cc_c89=$ac_arg
4301 rm -f core conftest.err conftest.$ac_objext
4302 test "x$ac_cv_prog_cc_c89" != "xno" && break
4304 rm -f conftest.$ac_ext
4309 case "x$ac_cv_prog_cc_c89" in
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4312 $as_echo "none needed" >&6; } ;;
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4315 $as_echo "unsupported" >&6; } ;;
4317 CC="$CC $ac_cv_prog_cc_c89"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4319 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4321 if test "x$ac_cv_prog_cc_c89" != xno; then :
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4337 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4338 if ${am_cv_prog_cc_c_o+:} false; then :
4339 $as_echo_n "(cached) " >&6
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4352 # Make sure it works both with $CC and with simple cc.
4353 # Following AC_PROG_CC_C_O, we do the test twice because some
4354 # compilers refuse to overwrite an existing .o file with -o,
4355 # though they will create one.
4356 am_cv_prog_cc_c_o=yes
4358 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4359 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } \
4363 && test -f conftest2.$ac_objext; then
4366 am_cv_prog_cc_c_o=no
4370 rm -f core conftest*
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4374 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4375 if test "$am_cv_prog_cc_c_o" != yes; then
4376 # Losing compiler, so override with the script.
4377 # FIXME: It is wrong to rewrite CC.
4378 # But if we don't then we get into trouble of one sort or another.
4379 # A longer-term fix would be to have automake use am__CC in this case,
4380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4381 CC="$am_aux_dir/compile $CC"
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 DEPDIR="${am__leading_dot}deps"
4391 ac_config_commands="$ac_config_commands depfiles"
4394 am_make=${MAKE-make}
4395 cat > confinc << 'END'
4397 @echo this is the am__doit target
4400 # If we don't find an include directive, just comment out the code.
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4402 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4406 # First try GNU make style include.
4407 echo "include confinc" > confmf
4408 # Ignore all kinds of additional output from 'make'.
4409 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4410 *the\ am__doit\ target*)
4416 # Now try BSD make style include.
4417 if test "$am__include" = "#"; then
4418 echo '.include "confinc"' > confmf
4419 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4420 *the\ am__doit\ target*)
4421 am__include=.include
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4430 $as_echo "$_am_result" >&6; }
4431 rm -f confinc confmf
4433 # Check whether --enable-dependency-tracking was given.
4434 if test "${enable_dependency_tracking+set}" = set; then :
4435 enableval=$enable_dependency_tracking;
4438 if test "x$enable_dependency_tracking" != xno; then
4439 am_depcomp="$ac_aux_dir/depcomp"
4443 if test "x$enable_dependency_tracking" != xno; then
4453 depcc="$CC" am_compiler_list=
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4456 $as_echo_n "checking dependency style of $depcc... " >&6; }
4457 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4458 $as_echo_n "(cached) " >&6
4460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4461 # We make a subdir and do the tests there. Otherwise we can end up
4462 # making bogus files that we don't know about and never remove. For
4463 # instance it was reported that on HP-UX the gcc test will end up
4464 # making a dummy file named 'D' -- because '-MD' means "put the output
4468 # Copy depcomp to subdir because otherwise we won't find it if we're
4469 # using a relative directory.
4470 cp "$am_depcomp" conftest.dir
4472 # We will build objects and dependencies in a subdirectory because
4473 # it helps to detect inapplicable dependency modes. For instance
4474 # both Tru64's cc and ICC support -MD to output dependencies as a
4475 # side effect of compilation, but ICC will put the dependencies in
4476 # the current directory while Tru64 will put them in the object
4480 am_cv_CC_dependencies_compiler_type=none
4481 if test "$am_compiler_list" = ""; then
4482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4485 case " $depcc " in #(
4486 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4489 for depmode in $am_compiler_list; do
4490 # Setup a source with many dependencies, because some compilers
4491 # like to wrap large dependency lists on column 80 (with \), and
4492 # we should not choose a depcomp mode which is confused by this.
4494 # We need to recreate these files for each test, as the compiler may
4495 # overwrite some of them when testing with obscure command lines.
4496 # This happens at least with the AIX C compiler.
4498 for i in 1 2 3 4 5 6; do
4499 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4500 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4501 # Solaris 10 /bin/sh.
4502 echo '/* dummy */' > sub/conftst$i.h
4504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4506 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4507 # mode. It turns out that the SunPro C++ compiler does not properly
4508 # handle '-M -o', and we need to detect this. Also, some Intel
4509 # versions had trouble with output in subdirs.
4510 am__obj=sub/conftest.${OBJEXT-o}
4511 am__minus_obj="-o $am__obj"
4514 # This depmode causes a compiler race in universal mode.
4515 test "$am__universal" = false || continue
4518 # After this tag, mechanisms are not by side-effect, so they'll
4519 # only be used when explicitly requested.
4520 if test "x$enable_dependency_tracking" = xyes; then
4526 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4527 # This compiler won't grok '-c -o', but also, the minuso test has
4528 # not run yet. These depmodes are late enough in the game, and
4529 # so weak that their functioning should not be impacted.
4530 am__obj=conftest.${OBJEXT-o}
4535 if depmode=$depmode \
4536 source=sub/conftest.c object=$am__obj \
4537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4539 >/dev/null 2>conftest.err &&
4540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4544 # icc doesn't choke on unknown options, it will just issue warnings
4545 # or remarks (even with -Werror). So we grep stderr for any message
4546 # that says an option was ignored or not supported.
4547 # When given -MP, icc 7.0 and 7.1 complain thusly:
4548 # icc: Command line warning: ignoring option '-M'; no argument required
4549 # The diagnosis changed in icc 8.0:
4550 # icc: Command line remark: option '-MP' not supported
4551 if (grep 'ignoring option' conftest.err ||
4552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4553 am_cv_CC_dependencies_compiler_type=$depmode
4562 am_cv_CC_dependencies_compiler_type=none
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4567 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4571 test "x$enable_dependency_tracking" != xno \
4572 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4574 am__fastdepCC_FALSE='#'
4576 am__fastdepCC_TRUE='#'
4577 am__fastdepCC_FALSE=
4582 ac_cpp='$CXXCPP $CPPFLAGS'
4583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4586 if test -z "$CXX"; then
4587 if test -n "$CCC"; then
4590 if test -n "$ac_tool_prefix"; then
4591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_CXX+:} false; then :
4598 $as_echo_n "(cached) " >&6
4600 if test -n "$CXX"; then
4601 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 if test -n "$CXX"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4623 $as_echo "$CXX" >&6; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4630 test -n "$CXX" && break
4633 if test -z "$CXX"; then
4635 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4637 # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4642 $as_echo_n "(cached) " >&6
4644 if test -n "$ac_ct_CXX"; then
4645 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_CXX="$ac_prog"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4665 if test -n "$ac_ct_CXX"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4667 $as_echo "$ac_ct_CXX" >&6; }
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4674 test -n "$ac_ct_CXX" && break
4677 if test "x$ac_ct_CXX" = x; then
4680 case $cross_compiling:$ac_tool_warned in
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684 ac_tool_warned=yes ;;
4692 # Provide some information about the compiler.
4693 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4696 for ac_option in --version -v -V -qversion; do
4697 { { ac_try="$ac_compiler $ac_option >&5"
4699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4700 *) ac_try_echo
=$ac_try;;
4702 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4703 $as_echo "$ac_try_echo"; } >&5
4704 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4706 if test -s conftest.err
; then
4708 ... rest of stderr output deleted ...
4709 10q' conftest.err
>conftest.er1
4710 cat conftest.er1
>&5
4712 rm -f conftest.er1 conftest.err
4713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714 test $ac_status = 0; }
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4718 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4719 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4720 $as_echo_n "(cached) " >&6
4722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4736 if ac_fn_cxx_try_compile
"$LINENO"; then :
4741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4742 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4746 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4747 if test $ac_compiler_gnu = yes; then
4752 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4753 ac_save_CXXFLAGS
=$CXXFLAGS
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4755 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4756 if ${ac_cv_prog_cxx_g+:} false
; then :
4757 $as_echo_n "(cached) " >&6
4759 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4760 ac_cxx_werror_flag
=yes
4763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4774 if ac_fn_cxx_try_compile
"$LINENO"; then :
4775 ac_cv_prog_cxx_g
=yes
4778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4789 if ac_fn_cxx_try_compile
"$LINENO"; then :
4792 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4805 if ac_fn_cxx_try_compile
"$LINENO"; then :
4806 ac_cv_prog_cxx_g
=yes
4808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4813 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4816 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4817 if test "$ac_test_CXXFLAGS" = set; then
4818 CXXFLAGS
=$ac_save_CXXFLAGS
4819 elif test $ac_cv_prog_cxx_g = yes; then
4820 if test "$GXX" = yes; then
4826 if test "$GXX" = yes; then
4833 ac_cpp
='$CPP $CPPFLAGS'
4834 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4838 depcc
="$CXX" am_compiler_list
=
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4841 $as_echo_n "checking dependency style of $depcc... " >&6; }
4842 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4843 $as_echo_n "(cached) " >&6
4845 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4846 # We make a subdir and do the tests there. Otherwise we can end up
4847 # making bogus files that we don't know about and never remove. For
4848 # instance it was reported that on HP-UX the gcc test will end up
4849 # making a dummy file named 'D' -- because '-MD' means "put the output
4853 # Copy depcomp to subdir because otherwise we won't find it if we're
4854 # using a relative directory.
4855 cp "$am_depcomp" conftest.dir
4857 # We will build objects and dependencies in a subdirectory because
4858 # it helps to detect inapplicable dependency modes. For instance
4859 # both Tru64's cc and ICC support -MD to output dependencies as a
4860 # side effect of compilation, but ICC will put the dependencies in
4861 # the current directory while Tru64 will put them in the object
4865 am_cv_CXX_dependencies_compiler_type
=none
4866 if test "$am_compiler_list" = ""; then
4867 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4870 case " $depcc " in #(
4871 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4874 for depmode
in $am_compiler_list; do
4875 # Setup a source with many dependencies, because some compilers
4876 # like to wrap large dependency lists on column 80 (with \), and
4877 # we should not choose a depcomp mode which is confused by this.
4879 # We need to recreate these files for each test, as the compiler may
4880 # overwrite some of them when testing with obscure command lines.
4881 # This happens at least with the AIX C compiler.
4883 for i
in 1 2 3 4 5 6; do
4884 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4885 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4886 # Solaris 10 /bin/sh.
4887 echo '/* dummy */' > sub
/conftst
$i.h
4889 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4891 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4892 # mode. It turns out that the SunPro C++ compiler does not properly
4893 # handle '-M -o', and we need to detect this. Also, some Intel
4894 # versions had trouble with output in subdirs.
4895 am__obj
=sub
/conftest.
${OBJEXT-o}
4896 am__minus_obj
="-o $am__obj"
4899 # This depmode causes a compiler race in universal mode.
4900 test "$am__universal" = false ||
continue
4903 # After this tag, mechanisms are not by side-effect, so they'll
4904 # only be used when explicitly requested.
4905 if test "x$enable_dependency_tracking" = xyes
; then
4911 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4912 # This compiler won't grok '-c -o', but also, the minuso test has
4913 # not run yet. These depmodes are late enough in the game, and
4914 # so weak that their functioning should not be impacted.
4915 am__obj
=conftest.
${OBJEXT-o}
4920 if depmode
=$depmode \
4921 source=sub
/conftest.c object
=$am__obj \
4922 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4923 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4924 >/dev
/null
2>conftest.err
&&
4925 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4926 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4927 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4928 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4929 # icc doesn't choke on unknown options, it will just issue warnings
4930 # or remarks (even with -Werror). So we grep stderr for any message
4931 # that says an option was ignored or not supported.
4932 # When given -MP, icc 7.0 and 7.1 complain thusly:
4933 # icc: Command line warning: ignoring option '-M'; no argument required
4934 # The diagnosis changed in icc 8.0:
4935 # icc: Command line remark: option '-MP' not supported
4936 if (grep 'ignoring option' conftest.err ||
4937 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4938 am_cv_CXX_dependencies_compiler_type
=$depmode
4947 am_cv_CXX_dependencies_compiler_type
=none
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4952 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4953 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4956 test "x$enable_dependency_tracking" != xno \
4957 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4958 am__fastdepCXX_TRUE
=
4959 am__fastdepCXX_FALSE
='#'
4961 am__fastdepCXX_TRUE
='#'
4962 am__fastdepCXX_FALSE
=
4966 if test -n "$ac_tool_prefix"; then
4967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4968 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if ${ac_cv_prog_RANLIB+:} false
; then :
4972 $as_echo_n "(cached) " >&6
4974 if test -n "$RANLIB"; then
4975 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4981 test -z "$as_dir" && as_dir
=.
4982 for ac_exec_ext
in '' $ac_executable_extensions; do
4983 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 RANLIB
=$ac_cv_prog_RANLIB
4995 if test -n "$RANLIB"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4997 $as_echo "$RANLIB" >&6; }
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5005 if test -z "$ac_cv_prog_RANLIB"; then
5006 ac_ct_RANLIB
=$RANLIB
5007 # Extract the first word of "ranlib", so it can be a program name with args.
5008 set dummy ranlib
; ac_word
=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5012 $as_echo_n "(cached) " >&6
5014 if test -n "$ac_ct_RANLIB"; then
5015 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5021 test -z "$as_dir" && as_dir
=.
5022 for ac_exec_ext
in '' $ac_executable_extensions; do
5023 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5024 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5035 if test -n "$ac_ct_RANLIB"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5037 $as_echo "$ac_ct_RANLIB" >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5043 if test "x$ac_ct_RANLIB" = x
; then
5046 case $cross_compiling:$ac_tool_warned in
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5050 ac_tool_warned
=yes ;;
5052 RANLIB
=$ac_ct_RANLIB
5055 RANLIB
="$ac_cv_prog_RANLIB"
5061 ac_cpp
='$CPP $CPPFLAGS'
5062 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5066 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5067 # On Suns, sometimes $CPP names a directory.
5068 if test -n "$CPP" && test -d "$CPP"; then
5071 if test -z "$CPP"; then
5072 if ${ac_cv_prog_CPP+:} false
; then :
5073 $as_echo_n "(cached) " >&6
5075 # Double quotes because CPP needs to be expanded
5076 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5079 for ac_c_preproc_warn_flag
in '' yes
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
5087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5090 # include <limits.h>
5092 # include <assert.h>
5096 if ac_fn_c_try_cpp
"$LINENO"; then :
5099 # Broken: fails on valid input.
5102 rm -f conftest.err conftest.i conftest.
$ac_ext
5104 # OK, works on sane cases. Now check whether nonexistent headers
5105 # can be detected and how.
5106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 #include <ac_nonexistent.h>
5110 if ac_fn_c_try_cpp
"$LINENO"; then :
5111 # Broken: success on invalid input.
5114 # Passes both tests.
5118 rm -f conftest.err conftest.i conftest.
$ac_ext
5121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5122 rm -f conftest.i conftest.err conftest.
$ac_ext
5123 if $ac_preproc_ok; then :
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5136 $as_echo "$CPP" >&6; }
5138 for ac_c_preproc_warn_flag
in '' yes
5140 # Use a header file that comes with gcc, so configuring glibc
5141 # with a fresh cross-compiler works.
5142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5143 # <limits.h> exists even on freestanding compilers.
5144 # On the NeXT, cc -E runs the code through the compiler's parser,
5145 # not just through cpp. "Syntax error" is here to catch this case.
5146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5149 # include <limits.h>
5151 # include <assert.h>
5155 if ac_fn_c_try_cpp
"$LINENO"; then :
5158 # Broken: fails on valid input.
5161 rm -f conftest.err conftest.i conftest.
$ac_ext
5163 # OK, works on sane cases. Now check whether nonexistent headers
5164 # can be detected and how.
5165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 #include <ac_nonexistent.h>
5169 if ac_fn_c_try_cpp
"$LINENO"; then :
5170 # Broken: success on invalid input.
5173 # Passes both tests.
5177 rm -f conftest.err conftest.i conftest.
$ac_ext
5180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5181 rm -f conftest.i conftest.err conftest.
$ac_ext
5182 if $ac_preproc_ok; then :
5185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5187 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5188 See \`config.log' for more details" "$LINENO" 5; }
5192 ac_cpp
='$CPP $CPPFLAGS'
5193 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5199 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5200 if ${ac_cv_path_GREP+:} false
; then :
5201 $as_echo_n "(cached) " >&6
5203 if test -z "$GREP"; then
5204 ac_path_GREP_found
=false
5205 # Loop through the user's path and test for each of PROGNAME-LIST
5206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5207 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5210 test -z "$as_dir" && as_dir
=.
5211 for ac_prog
in grep ggrep
; do
5212 for ac_exec_ext
in '' $ac_executable_extensions; do
5213 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5214 as_fn_executable_p
"$ac_path_GREP" ||
continue
5215 # Check for GNU ac_path_GREP and select it if it is found.
5216 # Check for GNU $ac_path_GREP
5217 case `"$ac_path_GREP" --version 2>&1` in
5219 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5222 $as_echo_n 0123456789 >"conftest.in"
5225 cat "conftest.in" "conftest.in" >"conftest.tmp"
5226 mv "conftest.tmp" "conftest.in"
5227 cp "conftest.in" "conftest.nl"
5228 $as_echo 'GREP' >> "conftest.nl"
5229 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5230 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5231 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5232 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5233 # Best one so far, save it but keep looking for a better one
5234 ac_cv_path_GREP
="$ac_path_GREP"
5235 ac_path_GREP_max
=$ac_count
5237 # 10*(2^10) chars as input seems more than enough
5238 test $ac_count -gt 10 && break
5240 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5243 $ac_path_GREP_found && break 3
5248 if test -z "$ac_cv_path_GREP"; then
5249 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5252 ac_cv_path_GREP
=$GREP
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5257 $as_echo "$ac_cv_path_GREP" >&6; }
5258 GREP
="$ac_cv_path_GREP"
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5262 $as_echo_n "checking for egrep... " >&6; }
5263 if ${ac_cv_path_EGREP+:} false
; then :
5264 $as_echo_n "(cached) " >&6
5266 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5267 then ac_cv_path_EGREP
="$GREP -E"
5269 if test -z "$EGREP"; then
5270 ac_path_EGREP_found
=false
5271 # Loop through the user's path and test for each of PROGNAME-LIST
5272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5273 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5276 test -z "$as_dir" && as_dir
=.
5277 for ac_prog
in egrep; do
5278 for ac_exec_ext
in '' $ac_executable_extensions; do
5279 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5280 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5281 # Check for GNU ac_path_EGREP and select it if it is found.
5282 # Check for GNU $ac_path_EGREP
5283 case `"$ac_path_EGREP" --version 2>&1` in
5285 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5288 $as_echo_n 0123456789 >"conftest.in"
5291 cat "conftest.in" "conftest.in" >"conftest.tmp"
5292 mv "conftest.tmp" "conftest.in"
5293 cp "conftest.in" "conftest.nl"
5294 $as_echo 'EGREP' >> "conftest.nl"
5295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5296 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5297 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5299 # Best one so far, save it but keep looking for a better one
5300 ac_cv_path_EGREP
="$ac_path_EGREP"
5301 ac_path_EGREP_max
=$ac_count
5303 # 10*(2^10) chars as input seems more than enough
5304 test $ac_count -gt 10 && break
5306 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5309 $ac_path_EGREP_found && break 3
5314 if test -z "$ac_cv_path_EGREP"; then
5315 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5318 ac_cv_path_EGREP
=$EGREP
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5324 $as_echo "$ac_cv_path_EGREP" >&6; }
5325 EGREP
="$ac_cv_path_EGREP"
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5329 $as_echo_n "checking for ANSI C header files... " >&6; }
5330 if ${ac_cv_header_stdc+:} false
; then :
5331 $as_echo_n "(cached) " >&6
5333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5348 if ac_fn_c_try_compile
"$LINENO"; then :
5349 ac_cv_header_stdc
=yes
5351 ac_cv_header_stdc
=no
5353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5355 if test $ac_cv_header_stdc = yes; then
5356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5363 $EGREP "memchr" >/dev
/null
2>&1; then :
5366 ac_cv_header_stdc
=no
5372 if test $ac_cv_header_stdc = yes; then
5373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380 $EGREP "free" >/dev
/null
2>&1; then :
5383 ac_cv_header_stdc
=no
5389 if test $ac_cv_header_stdc = yes; then
5390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5391 if test "$cross_compiling" = yes; then :
5394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5398 #if ((' ' & 0x0FF) == 0x020)
5399 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5400 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5402 # define ISLOWER(c) \
5403 (('a' <= (c) && (c) <= 'i') \
5404 || ('j' <= (c) && (c) <= 'r') \
5405 || ('s' <= (c) && (c) <= 'z'))
5406 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5409 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5414 for (i = 0; i < 256; i++)
5415 if (XOR (islower (i), ISLOWER (i))
5416 || toupper (i) != TOUPPER (i))
5421 if ac_fn_c_try_run
"$LINENO"; then :
5424 ac_cv_header_stdc
=no
5426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5433 $as_echo "$ac_cv_header_stdc" >&6; }
5434 if test $ac_cv_header_stdc = yes; then
5436 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5440 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5441 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5442 inttypes.h stdint.h unistd.h
5444 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5445 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5447 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5448 cat >>confdefs.h
<<_ACEOF
5449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5458 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5459 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5466 if test "$MINIX" = yes; then
5468 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5471 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5474 $as_echo "#define _MINIX 1" >>confdefs.h
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5480 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5481 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5482 $as_echo_n "(cached) " >&6
5484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5487 # define __EXTENSIONS__ 1
5488 $ac_includes_default
5497 if ac_fn_c_try_compile
"$LINENO"; then :
5498 ac_cv_safe_to_define___extensions__
=yes
5500 ac_cv_safe_to_define___extensions__
=no
5502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5505 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5506 test $ac_cv_safe_to_define___extensions__ = yes &&
5507 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5509 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5511 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5513 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5515 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5519 # The tests for host and target for $enable_largefile require
5524 # As the $enable_largefile decision depends on --enable-plugins we must set it
5525 # even in directories otherwise not depending on the $plugins option.
5529 for ac_header
in dlfcn.h
5531 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5533 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5534 cat >>confdefs.h
<<_ACEOF
5535 #define HAVE_DLFCN_H 1
5542 for ac_header
in windows.h
5544 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5546 if test "x$ac_cv_header_windows_h" = xyes
; then :
5547 cat >>confdefs.h
<<_ACEOF
5548 #define HAVE_WINDOWS_H 1
5556 # Check whether --enable-plugins was given.
5557 if test "${enable_plugins+set}" = set; then :
5558 enableval
=$enable_plugins; case "${enableval}" in
5561 if test "$maybe_plugins" != "yes" ; then
5562 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5566 plugins
=$maybe_plugins
5570 if test "$plugins" = "yes"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5572 $as_echo_n "checking for library containing dlsym... " >&6; }
5573 if ${ac_cv_search_dlsym+:} false
; then :
5574 $as_echo_n "(cached) " >&6
5576 ac_func_search_save_LIBS
=$LIBS
5577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5580 /* Override any GCC internal prototype to avoid an error.
5581 Use char because int might match the return type of a GCC
5582 builtin and then its argument prototype would still apply. */
5595 for ac_lib
in '' dl
; do
5596 if test -z "$ac_lib"; then
5597 ac_res
="none required"
5600 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5602 if ac_fn_c_try_link
"$LINENO"; then :
5603 ac_cv_search_dlsym
=$ac_res
5605 rm -f core conftest.err conftest.
$ac_objext \
5607 if ${ac_cv_search_dlsym+:} false
; then :
5611 if ${ac_cv_search_dlsym+:} false
; then :
5614 ac_cv_search_dlsym
=no
5617 LIBS
=$ac_func_search_save_LIBS
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5620 $as_echo "$ac_cv_search_dlsym" >&6; }
5621 ac_res
=$ac_cv_search_dlsym
5622 if test "$ac_res" != no
; then :
5623 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5631 sparc-
*-solaris*|i?
86-*-solaris*)
5632 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
5633 # were mutually exclusive until Solaris 11.3. Without procfs support,
5634 # the bfd/ elf module cannot provide certain routines such as
5635 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
5636 # explicitly requested large-file support through the
5637 # --enable-largefile switch, disable large-file support in favor of
5640 # Check if <sys/procfs.h> is incompatible with large-file support.
5641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 #define _FILE_OFFSET_BITS 64
5644 #define _STRUCTURED_PROC 1
5645 #include <sys/procfs.h>
5654 if ac_fn_c_try_compile
"$LINENO"; then :
5655 acx_cv_procfs_lfs
=yes
5657 acx_cv_procfs_lfs
=no
5659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5661 # Forcefully disable large-file support only if necessary, gdb is in
5663 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
5664 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
5665 : ${enable_largefile="no"}
5666 if test "$plugins" = yes; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5668 plugin support disabled; require large-file support which is incompatible with GDB." >&5
5669 $as_echo "$as_me: WARNING:
5670 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
5675 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
5676 # benefit of g++ 9+ which predefines it on Solaris.
5677 if test "$enable_largefile" = no
; then
5678 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
5684 # Check whether --enable-largefile was given.
5685 if test "${enable_largefile+set}" = set; then :
5686 enableval
=$enable_largefile;
5689 if test "$enable_largefile" != no
; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5692 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5693 if ${ac_cv_sys_largefile_CC+:} false
; then :
5694 $as_echo_n "(cached) " >&6
5696 ac_cv_sys_largefile_CC
=no
5697 if test "$GCC" != yes; then
5700 # IRIX 6.2 and later do not support large files by default,
5701 # so use the C compiler's -n32 option if that helps.
5702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <sys/types.h>
5705 /* Check that off_t can represent 2**63 - 1 correctly.
5706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5707 since some C++ compilers masquerading as C compilers
5708 incorrectly reject 9223372036854775807. */
5709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5711 && LARGE_OFF_T % 2147483647 == 1)
5721 if ac_fn_c_try_compile
"$LINENO"; then :
5724 rm -f core conftest.err conftest.
$ac_objext
5726 if ac_fn_c_try_compile
"$LINENO"; then :
5727 ac_cv_sys_largefile_CC
=' -n32'; break
5729 rm -f core conftest.err conftest.
$ac_objext
5733 rm -f conftest.
$ac_ext
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5737 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5738 if test "$ac_cv_sys_largefile_CC" != no
; then
5739 CC
=$CC$ac_cv_sys_largefile_CC
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5743 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5744 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5745 $as_echo_n "(cached) " >&6
5748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #include <sys/types.h>
5751 /* Check that off_t can represent 2**63 - 1 correctly.
5752 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5753 since some C++ compilers masquerading as C compilers
5754 incorrectly reject 9223372036854775807. */
5755 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5757 && LARGE_OFF_T % 2147483647 == 1)
5767 if ac_fn_c_try_compile
"$LINENO"; then :
5768 ac_cv_sys_file_offset_bits
=no
; break
5770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #define _FILE_OFFSET_BITS 64
5774 #include <sys/types.h>
5775 /* Check that off_t can represent 2**63 - 1 correctly.
5776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5777 since some C++ compilers masquerading as C compilers
5778 incorrectly reject 9223372036854775807. */
5779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5781 && LARGE_OFF_T % 2147483647 == 1)
5791 if ac_fn_c_try_compile
"$LINENO"; then :
5792 ac_cv_sys_file_offset_bits
=64; break
5794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5795 ac_cv_sys_file_offset_bits
=unknown
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5800 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5801 case $ac_cv_sys_file_offset_bits in #(
5804 cat >>confdefs.h
<<_ACEOF
5805 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5810 if test $ac_cv_sys_file_offset_bits = unknown
; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5812 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5813 if ${ac_cv_sys_large_files+:} false
; then :
5814 $as_echo_n "(cached) " >&6
5817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #include <sys/types.h>
5820 /* Check that off_t can represent 2**63 - 1 correctly.
5821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5822 since some C++ compilers masquerading as C compilers
5823 incorrectly reject 9223372036854775807. */
5824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5826 && LARGE_OFF_T % 2147483647 == 1)
5836 if ac_fn_c_try_compile
"$LINENO"; then :
5837 ac_cv_sys_large_files
=no
; break
5839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #define _LARGE_FILES 1
5843 #include <sys/types.h>
5844 /* Check that off_t can represent 2**63 - 1 correctly.
5845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5846 since some C++ compilers masquerading as C compilers
5847 incorrectly reject 9223372036854775807. */
5848 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5850 && LARGE_OFF_T % 2147483647 == 1)
5860 if ac_fn_c_try_compile
"$LINENO"; then :
5861 ac_cv_sys_large_files
=1; break
5863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5864 ac_cv_sys_large_files
=unknown
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5869 $as_echo "$ac_cv_sys_large_files" >&6; }
5870 case $ac_cv_sys_large_files in #(
5873 cat >>confdefs.h
<<_ACEOF
5874 #define _LARGE_FILES $ac_cv_sys_large_files
5886 ac_cpp
='$CPP $CPPFLAGS'
5887 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5890 if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5892 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_prog_CC+:} false
; then :
5896 $as_echo_n "(cached) " >&6
5898 if test -n "$CC"; then
5899 ac_cv_prog_CC
="$CC" # Let the user override the test.
5901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir
=.
5906 for ac_exec_ext
in '' $ac_executable_extensions; do
5907 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 if test -n "$CC"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5921 $as_echo "$CC" >&6; }
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5929 if test -z "$ac_cv_prog_CC"; then
5931 # Extract the first word of "gcc", so it can be a program name with args.
5932 set dummy gcc
; ac_word
=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5936 $as_echo_n "(cached) " >&6
5938 if test -n "$ac_ct_CC"; then
5939 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir
=.
5946 for ac_exec_ext
in '' $ac_executable_extensions; do
5947 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_prog_ac_ct_CC
="gcc"
5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5959 if test -n "$ac_ct_CC"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5961 $as_echo "$ac_ct_CC" >&6; }
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5967 if test "x$ac_ct_CC" = x
; then
5970 case $cross_compiling:$ac_tool_warned in
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974 ac_tool_warned
=yes ;;
5982 if test -z "$CC"; then
5983 if test -n "$ac_tool_prefix"; then
5984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5985 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if ${ac_cv_prog_CC+:} false
; then :
5989 $as_echo_n "(cached) " >&6
5991 if test -n "$CC"; then
5992 ac_cv_prog_CC
="$CC" # Let the user override the test.
5994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir
=.
5999 for ac_exec_ext
in '' $ac_executable_extensions; do
6000 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6001 ac_cv_prog_CC
="${ac_tool_prefix}cc"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 if test -n "$CC"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6014 $as_echo "$CC" >&6; }
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6023 if test -z "$CC"; then
6024 # Extract the first word of "cc", so it can be a program name with args.
6025 set dummy cc
; ac_word
=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if ${ac_cv_prog_CC+:} false
; then :
6029 $as_echo_n "(cached) " >&6
6031 if test -n "$CC"; then
6032 ac_cv_prog_CC
="$CC" # Let the user override the test.
6035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6039 test -z "$as_dir" && as_dir
=.
6040 for ac_exec_ext
in '' $ac_executable_extensions; do
6041 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6043 ac_prog_rejected
=yes
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 if test $ac_prog_rejected = yes; then
6055 # We found a bogon in the path, so make sure we never use it.
6056 set dummy
$ac_cv_prog_CC
6058 if test $# != 0; then
6059 # We chose a different compiler from the bogus one.
6060 # However, it has the same basename, so the bogon will be chosen
6061 # first if we set CC to just the basename; use the full file name.
6063 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6069 if test -n "$CC"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6071 $as_echo "$CC" >&6; }
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6079 if test -z "$CC"; then
6080 if test -n "$ac_tool_prefix"; then
6081 for ac_prog
in cl.exe
6083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6084 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if ${ac_cv_prog_CC+:} false
; then :
6088 $as_echo_n "(cached) " >&6
6090 if test -n "$CC"; then
6091 ac_cv_prog_CC
="$CC" # Let the user override the test.
6093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6097 test -z "$as_dir" && as_dir
=.
6098 for ac_exec_ext
in '' $ac_executable_extensions; do
6099 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6100 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 if test -n "$CC"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6113 $as_echo "$CC" >&6; }
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6120 test -n "$CC" && break
6123 if test -z "$CC"; then
6125 for ac_prog
in cl.exe
6127 # Extract the first word of "$ac_prog", so it can be a program name with args.
6128 set dummy
$ac_prog; ac_word
=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6132 $as_echo_n "(cached) " >&6
6134 if test -n "$ac_ct_CC"; then
6135 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir
=.
6142 for ac_exec_ext
in '' $ac_executable_extensions; do
6143 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6144 ac_cv_prog_ac_ct_CC
="$ac_prog"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6155 if test -n "$ac_ct_CC"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6157 $as_echo "$ac_ct_CC" >&6; }
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6164 test -n "$ac_ct_CC" && break
6167 if test "x$ac_ct_CC" = x
; then
6170 case $cross_compiling:$ac_tool_warned in
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned
=yes ;;
6183 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6185 as_fn_error $?
"no acceptable C compiler found in \$PATH
6186 See \`config.log' for more details" "$LINENO" 5; }
6188 # Provide some information about the compiler.
6189 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6192 for ac_option
in --version -v -V -qversion; do
6193 { { ac_try
="$ac_compiler $ac_option >&5"
6195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6199 $as_echo "$ac_try_echo"; } >&5
6200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6202 if test -s conftest.err; then
6204 ... rest of stderr output deleted ...
6205 10q' conftest.err >conftest.er1
6206 cat conftest.er1 >&5
6208 rm -f conftest.er1 conftest.err
6209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210 test $ac_status = 0; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6214 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6215 if ${ac_cv_c_compiler_gnu+:} false; then :
6216 $as_echo_n "(cached) " >&6
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6232 if ac_fn_c_try_compile "$LINENO"; then :
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6242 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6243 if test $ac_compiler_gnu = yes; then
6248 ac_test_CFLAGS=${CFLAGS+set}
6249 ac_save_CFLAGS=$CFLAGS
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6251 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6252 if ${ac_cv_prog_cc_g+:} false; then :
6253 $as_echo_n "(cached) " >&6
6255 ac_save_c_werror_flag=$ac_c_werror_flag
6256 ac_c_werror_flag=yes
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6270 if ac_fn_c_try_compile "$LINENO"; then :
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6285 if ac_fn_c_try_compile "$LINENO"; then :
6288 ac_c_werror_flag=$ac_save_c_werror_flag
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6301 if ac_fn_c_try_compile "$LINENO"; then :
6304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 ac_c_werror_flag=$ac_save_c_werror_flag
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6312 $as_echo "$ac_cv_prog_cc_g" >&6; }
6313 if test "$ac_test_CFLAGS" = set; then
6314 CFLAGS=$ac_save_CFLAGS
6315 elif test $ac_cv_prog_cc_g = yes; then
6316 if test "$GCC" = yes; then
6322 if test "$GCC" = yes; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6329 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6330 if ${ac_cv_prog_cc_c89+:} false; then :
6331 $as_echo_n "(cached) " >&6
6333 ac_cv_prog_cc_c89=no
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6340 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6341 struct buf { int x; };
6342 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6343 static char *e (p, i)
6349 static char *f (char * (*g) (char **, int), char **p, ...)
6354 s = g (p, va_arg (v,int));
6359 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6360 function prototypes and stuff, but not '\xHH' hex character constants.
6361 These don't provoke an error unfortunately, instead are silently treated
6362 as 'x'. The following induces an error, until -std is added to get
6363 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6364 array size at least. It's necessary to write '\x00'==0 to get something
6365 that's true only with -std. */
6366 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6368 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6369 inside strings and character constants. */
6371 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6373 int test (int i, double x);
6374 struct s1 {int (*f) (int a);};
6375 struct s2 {int (*f) (double a);};
6376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6382 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6387 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6388 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6390 CC="$ac_save_CC $ac_arg"
6391 if ac_fn_c_try_compile "$LINENO"; then :
6392 ac_cv_prog_cc_c89=$ac_arg
6394 rm -f core conftest.err conftest.$ac_objext
6395 test "x$ac_cv_prog_cc_c89" != "xno" && break
6397 rm -f conftest.$ac_ext
6402 case "x$ac_cv_prog_cc_c89" in
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6405 $as_echo "none needed" >&6; } ;;
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6408 $as_echo "unsupported" >&6; } ;;
6410 CC="$CC $ac_cv_prog_cc_c89"
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6412 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6414 if test "x$ac_cv_prog_cc_c89" != xno; then :
6419 ac_cpp='$CPP $CPPFLAGS'
6420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6425 ac_cpp='$CPP $CPPFLAGS'
6426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6430 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6431 if ${am_cv_prog_cc_c_o+:} false; then :
6432 $as_echo_n "(cached) " >&6
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6445 # Make sure it works both with $CC and with simple cc.
6446 # Following AC_PROG_CC_C_O, we do the test twice because some
6447 # compilers refuse to overwrite an existing .o file with -o,
6448 # though they will create one.
6449 am_cv_prog_cc_c_o=yes
6451 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6452 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } \
6456 && test -f conftest2.$ac_objext; then
6459 am_cv_prog_cc_c_o=no
6463 rm -f core conftest*
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6467 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6468 if test "$am_cv_prog_cc_c_o" != yes; then
6469 # Losing compiler, so override with the script.
6470 # FIXME: It is wrong to rewrite CC.
6471 # But if we don't then we get into trouble of one sort or another.
6472 # A longer-term fix would be to have automake use am__CC in this case,
6473 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6474 CC="$am_aux_dir/compile $CC"
6477 ac_cpp='$CPP $CPPFLAGS'
6478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6483 depcc="$CC" am_compiler_list=
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6486 $as_echo_n "checking dependency style of $depcc... " >&6; }
6487 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6488 $as_echo_n "(cached) " >&6
6490 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6491 # We make a subdir and do the tests there. Otherwise we can end up
6492 # making bogus files that we don't know about and never remove. For
6493 # instance it was reported that on HP-UX the gcc test will end up
6494 # making a dummy file named 'D' -- because '-MD' means "put the output
6498 # Copy depcomp to subdir because otherwise we won't find it if we're
6499 # using a relative directory.
6500 cp "$am_depcomp" conftest.dir
6502 # We will build objects and dependencies in a subdirectory because
6503 # it helps to detect inapplicable dependency modes. For instance
6504 # both Tru64's cc and ICC support -MD to output dependencies as a
6505 # side effect of compilation, but ICC will put the dependencies in
6506 # the current directory while Tru64 will put them in the object
6510 am_cv_CC_dependencies_compiler_type=none
6511 if test "$am_compiler_list" = ""; then
6512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6515 case " $depcc " in #(
6516 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6519 for depmode in $am_compiler_list; do
6520 # Setup a source with many dependencies, because some compilers
6521 # like to wrap large dependency lists on column 80 (with \), and
6522 # we should not choose a depcomp mode which is confused by this.
6524 # We need to recreate these files for each test, as the compiler may
6525 # overwrite some of them when testing with obscure command lines.
6526 # This happens at least with the AIX C compiler.
6528 for i in 1 2 3 4 5 6; do
6529 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6530 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6531 # Solaris 10 /bin/sh.
6532 echo '/* dummy */' > sub/conftst$i.h
6534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6536 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6537 # mode. It turns out that the SunPro C++ compiler does not properly
6538 # handle '-M -o', and we need to detect this. Also, some Intel
6539 # versions had trouble with output in subdirs.
6540 am__obj=sub/conftest.${OBJEXT-o}
6541 am__minus_obj="-o $am__obj"
6544 # This depmode causes a compiler race in universal mode.
6545 test "$am__universal" = false || continue
6548 # After this tag, mechanisms are not by side-effect, so they'll
6549 # only be used when explicitly requested.
6550 if test "x$enable_dependency_tracking" = xyes; then
6556 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6557 # This compiler won't grok '-c -o', but also, the minuso test has
6558 # not run yet. These depmodes are late enough in the game, and
6559 # so weak that their functioning should not be impacted.
6560 am__obj=conftest.${OBJEXT-o}
6565 if depmode=$depmode \
6566 source=sub/conftest.c object=$am__obj \
6567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6568 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6569 >/dev/null 2>conftest.err &&
6570 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6571 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6572 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6573 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6574 # icc doesn't choke on unknown options, it will just issue warnings
6575 # or remarks (even with -Werror). So we grep stderr for any message
6576 # that says an option was ignored or not supported.
6577 # When given -MP, icc 7.0 and 7.1 complain thusly:
6578 # icc: Command line warning: ignoring option '-M'; no argument required
6579 # The diagnosis changed in icc 8.0:
6580 # icc: Command line remark: option '-MP' not supported
6581 if (grep 'ignoring option' conftest.err ||
6582 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6583 am_cv_CC_dependencies_compiler_type=$depmode
6592 am_cv_CC_dependencies_compiler_type=none
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6597 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6598 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6601 test "x$enable_dependency_tracking" != xno \
6602 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6604 am__fastdepCC_FALSE='#'
6606 am__fastdepCC_TRUE='#'
6607 am__fastdepCC_FALSE=
6611 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6614 # We require a C++11 compiler. Check if one is available, and if
6615 # necessary, set CXX_DIALECT to some -std=xxx switch.
6617 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6619 ac_cpp='$CXXCPP $CPPFLAGS'
6620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6626 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6627 if ${ax_cv_cxx_compile_cxx11+:} false; then :
6628 $as_echo_n "(cached) " >&6
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6634 // If the compiler admits that it is not ready for C++11, why torture it?
6635 // Hopefully, this will speed up the test.
6639 #error "This is not a C++ compiler"
6641 #elif __cplusplus < 201103L
6643 #error "This is not a C++11 compiler"
6650 namespace test_static_assert
6653 template <typename T>
6656 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6661 namespace test_final_override
6669 struct Derived : public Base
6671 virtual void f() override {}
6676 namespace test_double_right_angle_brackets
6679 template < typename T >
6682 typedef check<void> single_type;
6683 typedef check<check<void>> double_type;
6684 typedef check<check<check<void>>> triple_type;
6685 typedef check<check<check<check<void>>>> quadruple_type;
6689 namespace test_decltype
6702 namespace test_type_deduction
6705 template < typename T1, typename T2 >
6708 static const bool value = false;
6711 template < typename T >
6712 struct is_same<T, T>
6714 static const bool value = true;
6717 template < typename T1, typename T2 >
6719 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6725 test(const int c, volatile int v)
6727 static_assert(is_same<int, decltype(0)>::value == true, "");
6728 static_assert(is_same<int, decltype(c)>::value == false, "");
6729 static_assert(is_same<int, decltype(v)>::value == false, "");
6732 auto sumi = ac + av + 'x';
6733 auto sumf = ac + av + 1.0;
6734 static_assert(is_same<int, decltype(ac)>::value == true, "");
6735 static_assert(is_same<int, decltype(av)>::value == true, "");
6736 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6737 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6738 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6739 return (sumf > 0.0) ? sumi : add(c, v);
6744 namespace test_noexcept
6747 int f() { return 0; }
6748 int g() noexcept { return 0; }
6750 static_assert(noexcept(f()) == false, "");
6751 static_assert(noexcept(g()) == true, "");
6755 namespace test_constexpr
6758 template < typename CharT >
6759 unsigned long constexpr
6760 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6762 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6765 template < typename CharT >
6766 unsigned long constexpr
6767 strlen_c(const CharT *const s) noexcept
6769 return strlen_c_r(s, 0UL);
6772 static_assert(strlen_c("") == 0UL, "");
6773 static_assert(strlen_c("1") == 1UL, "");
6774 static_assert(strlen_c("example") == 7UL, "");
6775 static_assert(strlen_c("another\0example") == 7UL, "");
6779 namespace test_rvalue_references
6785 static constexpr int value = N;
6788 answer<1> f(int&) { return answer<1>(); }
6789 answer<2> f(const int&) { return answer<2>(); }
6790 answer<3> f(int&&) { return answer<3>(); }
6797 static_assert(decltype(f(i))::value == 1, "");
6798 static_assert(decltype(f(c))::value == 2, "");
6799 static_assert(decltype(f(0))::value == 3, "");
6804 namespace test_uniform_initialization
6809 static const int zero {};
6810 static const int one {1};
6813 static_assert(test::zero == 0, "");
6814 static_assert(test::one == 1, "");
6818 namespace test_lambdas
6824 auto lambda1 = [](){};
6825 auto lambda2 = lambda1;
6833 auto a = [](int i, int j){ return i + j; }(1, 2);
6834 auto b = []() -> int { return '0'; }();
6835 auto c = [=](){ return a + b; }();
6836 auto d = [&](){ return c; }();
6837 auto e = [a, &b](int x) mutable {
6838 const auto identity = [](int y){ return y; };
6839 for (auto i = 0; i < a; ++i)
6841 return x + identity(a + b);
6843 return a + b + c + d + e;
6849 const auto nullary = [](){ return 0; };
6850 const auto unary = [](int x){ return x; };
6851 using nullary_t = decltype(nullary);
6852 using unary_t = decltype(unary);
6853 const auto higher1st = [](nullary_t f){ return f(); };
6854 const auto higher2nd = [unary](nullary_t f1){
6855 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6857 return higher1st(nullary) + higher2nd(nullary)(unary);
6862 namespace test_variadic_templates
6868 template <int N0, int... N1toN>
6869 struct sum<N0, N1toN...>
6871 static constexpr auto value = N0 + sum<N1toN...>::value;
6877 static constexpr auto value = 0;
6880 static_assert(sum<>::value == 0, "");
6881 static_assert(sum<1>::value == 1, "");
6882 static_assert(sum<23>::value == 23, "");
6883 static_assert(sum<1, 2>::value == 3, "");
6884 static_assert(sum<5, 5, 11>::value == 21, "");
6885 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6889 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6890 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6892 namespace test_template_alias_sfinae
6897 template<typename T>
6898 using member = typename T::member_type;
6900 template<typename T>
6903 template<typename T>
6904 void func(member<T>*) {}
6908 void test() { func<foo>(0); }
6912 } // namespace cxx11
6914 #endif // __cplusplus >= 201103L
6919 if ac_fn_cxx_try_compile "$LINENO"; then :
6920 ax_cv_cxx_compile_cxx11=yes
6922 ax_cv_cxx_compile_cxx11=no
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6927 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6928 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6932 if test x$ac_success = xno; then
6933 for alternative in ${ax_cxx_compile_alternatives}; do
6934 switch="-std=gnu++${alternative}"
6935 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6937 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6938 if eval \${$cachevar+:} false; then :
6939 $as_echo_n "(cached) " >&6
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6947 // If the compiler admits that it is not ready for C++11, why torture it?
6948 // Hopefully, this will speed up the test.
6952 #error "This is not a C++ compiler"
6954 #elif __cplusplus < 201103L
6956 #error "This is not a C++11 compiler"
6963 namespace test_static_assert
6966 template <typename T>
6969 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6974 namespace test_final_override
6982 struct Derived : public Base
6984 virtual void f() override {}
6989 namespace test_double_right_angle_brackets
6992 template < typename T >
6995 typedef check<void> single_type;
6996 typedef check<check<void>> double_type;
6997 typedef check<check<check<void>>> triple_type;
6998 typedef check<check<check<check<void>>>> quadruple_type;
7002 namespace test_decltype
7015 namespace test_type_deduction
7018 template < typename T1, typename T2 >
7021 static const bool value = false;
7024 template < typename T >
7025 struct is_same<T, T>
7027 static const bool value = true;
7030 template < typename T1, typename T2 >
7032 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7038 test(const int c, volatile int v)
7040 static_assert(is_same<int, decltype(0)>::value == true, "");
7041 static_assert(is_same<int, decltype(c)>::value == false, "");
7042 static_assert(is_same<int, decltype(v)>::value == false, "");
7045 auto sumi = ac + av + 'x';
7046 auto sumf = ac + av + 1.0;
7047 static_assert(is_same<int, decltype(ac)>::value == true, "");
7048 static_assert(is_same<int, decltype(av)>::value == true, "");
7049 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7050 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7051 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7052 return (sumf > 0.0) ? sumi : add(c, v);
7057 namespace test_noexcept
7060 int f() { return 0; }
7061 int g() noexcept { return 0; }
7063 static_assert(noexcept(f()) == false, "");
7064 static_assert(noexcept(g()) == true, "");
7068 namespace test_constexpr
7071 template < typename CharT >
7072 unsigned long constexpr
7073 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7075 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7078 template < typename CharT >
7079 unsigned long constexpr
7080 strlen_c(const CharT *const s) noexcept
7082 return strlen_c_r(s, 0UL);
7085 static_assert(strlen_c("") == 0UL, "");
7086 static_assert(strlen_c("1") == 1UL, "");
7087 static_assert(strlen_c("example") == 7UL, "");
7088 static_assert(strlen_c("another\0example") == 7UL, "");
7092 namespace test_rvalue_references
7098 static constexpr int value = N;
7101 answer<1> f(int&) { return answer<1>(); }
7102 answer<2> f(const int&) { return answer<2>(); }
7103 answer<3> f(int&&) { return answer<3>(); }
7110 static_assert(decltype(f(i))::value == 1, "");
7111 static_assert(decltype(f(c))::value == 2, "");
7112 static_assert(decltype(f(0))::value == 3, "");
7117 namespace test_uniform_initialization
7122 static const int zero {};
7123 static const int one {1};
7126 static_assert(test::zero == 0, "");
7127 static_assert(test::one == 1, "");
7131 namespace test_lambdas
7137 auto lambda1 = [](){};
7138 auto lambda2 = lambda1;
7146 auto a = [](int i, int j){ return i + j; }(1, 2);
7147 auto b = []() -> int { return '0'; }();
7148 auto c = [=](){ return a + b; }();
7149 auto d = [&](){ return c; }();
7150 auto e = [a, &b](int x) mutable {
7151 const auto identity = [](int y){ return y; };
7152 for (auto i = 0; i < a; ++i)
7154 return x + identity(a + b);
7156 return a + b + c + d + e;
7162 const auto nullary = [](){ return 0; };
7163 const auto unary = [](int x){ return x; };
7164 using nullary_t = decltype(nullary);
7165 using unary_t = decltype(unary);
7166 const auto higher1st = [](nullary_t f){ return f(); };
7167 const auto higher2nd = [unary](nullary_t f1){
7168 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7170 return higher1st(nullary) + higher2nd(nullary)(unary);
7175 namespace test_variadic_templates
7181 template <int N0, int... N1toN>
7182 struct sum<N0, N1toN...>
7184 static constexpr auto value = N0 + sum<N1toN...>::value;
7190 static constexpr auto value = 0;
7193 static_assert(sum<>::value == 0, "");
7194 static_assert(sum<1>::value == 1, "");
7195 static_assert(sum<23>::value == 23, "");
7196 static_assert(sum<1, 2>::value == 3, "");
7197 static_assert(sum<5, 5, 11>::value == 21, "");
7198 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7202 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7203 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7205 namespace test_template_alias_sfinae
7210 template<typename T>
7211 using member = typename T::member_type;
7213 template<typename T>
7216 template<typename T>
7217 void func(member<T>*) {}
7221 void test() { func<foo>(0); }
7225 } // namespace cxx11
7227 #endif // __cplusplus >= 201103L
7232 if ac_fn_cxx_try_compile "$LINENO"; then :
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240 eval ac_res=\$$cachevar
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7242 $as_echo "$ac_res" >&6; }
7243 if eval test x\$$cachevar = xyes; then
7244 CXX_DIALECT="$switch"
7251 if test x$ac_success = xno; then
7252 for alternative in ${ax_cxx_compile_alternatives}; do
7253 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7254 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7256 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7257 if eval \${$cachevar+:} false; then :
7258 $as_echo_n "(cached) " >&6
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7266 // If the compiler admits that it is not ready for C++11, why torture it?
7267 // Hopefully, this will speed up the test.
7271 #error "This is not a C++ compiler"
7273 #elif __cplusplus < 201103L
7275 #error "This is not a C++11 compiler"
7282 namespace test_static_assert
7285 template <typename T>
7288 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7293 namespace test_final_override
7301 struct Derived : public Base
7303 virtual void f() override {}
7308 namespace test_double_right_angle_brackets
7311 template < typename T >
7314 typedef check<void> single_type;
7315 typedef check<check<void>> double_type;
7316 typedef check<check<check<void>>> triple_type;
7317 typedef check<check<check<check<void>>>> quadruple_type;
7321 namespace test_decltype
7334 namespace test_type_deduction
7337 template < typename T1, typename T2 >
7340 static const bool value = false;
7343 template < typename T >
7344 struct is_same<T, T>
7346 static const bool value = true;
7349 template < typename T1, typename T2 >
7351 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7357 test(const int c, volatile int v)
7359 static_assert(is_same<int, decltype(0)>::value == true, "");
7360 static_assert(is_same<int, decltype(c)>::value == false, "");
7361 static_assert(is_same<int, decltype(v)>::value == false, "");
7364 auto sumi = ac + av + 'x';
7365 auto sumf = ac + av + 1.0;
7366 static_assert(is_same<int, decltype(ac)>::value == true, "");
7367 static_assert(is_same<int, decltype(av)>::value == true, "");
7368 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7369 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7370 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7371 return (sumf > 0.0) ? sumi : add(c, v);
7376 namespace test_noexcept
7379 int f() { return 0; }
7380 int g() noexcept { return 0; }
7382 static_assert(noexcept(f()) == false, "");
7383 static_assert(noexcept(g()) == true, "");
7387 namespace test_constexpr
7390 template < typename CharT >
7391 unsigned long constexpr
7392 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7394 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7397 template < typename CharT >
7398 unsigned long constexpr
7399 strlen_c(const CharT *const s) noexcept
7401 return strlen_c_r(s, 0UL);
7404 static_assert(strlen_c("") == 0UL, "");
7405 static_assert(strlen_c("1") == 1UL, "");
7406 static_assert(strlen_c("example") == 7UL, "");
7407 static_assert(strlen_c("another\0example") == 7UL, "");
7411 namespace test_rvalue_references
7417 static constexpr int value = N;
7420 answer<1> f(int&) { return answer<1>(); }
7421 answer<2> f(const int&) { return answer<2>(); }
7422 answer<3> f(int&&) { return answer<3>(); }
7429 static_assert(decltype(f(i))::value == 1, "");
7430 static_assert(decltype(f(c))::value == 2, "");
7431 static_assert(decltype(f(0))::value == 3, "");
7436 namespace test_uniform_initialization
7441 static const int zero {};
7442 static const int one {1};
7445 static_assert(test::zero == 0, "");
7446 static_assert(test::one == 1, "");
7450 namespace test_lambdas
7456 auto lambda1 = [](){};
7457 auto lambda2 = lambda1;
7465 auto a = [](int i, int j){ return i + j; }(1, 2);
7466 auto b = []() -> int { return '0'; }();
7467 auto c = [=](){ return a + b; }();
7468 auto d = [&](){ return c; }();
7469 auto e = [a, &b](int x) mutable {
7470 const auto identity = [](int y){ return y; };
7471 for (auto i = 0; i < a; ++i)
7473 return x + identity(a + b);
7475 return a + b + c + d + e;
7481 const auto nullary = [](){ return 0; };
7482 const auto unary = [](int x){ return x; };
7483 using nullary_t = decltype(nullary);
7484 using unary_t = decltype(unary);
7485 const auto higher1st = [](nullary_t f){ return f(); };
7486 const auto higher2nd = [unary](nullary_t f1){
7487 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7489 return higher1st(nullary) + higher2nd(nullary)(unary);
7494 namespace test_variadic_templates
7500 template <int N0, int... N1toN>
7501 struct sum<N0, N1toN...>
7503 static constexpr auto value = N0 + sum<N1toN...>::value;
7509 static constexpr auto value = 0;
7512 static_assert(sum<>::value == 0, "");
7513 static_assert(sum<1>::value == 1, "");
7514 static_assert(sum<23>::value == 23, "");
7515 static_assert(sum<1, 2>::value == 3, "");
7516 static_assert(sum<5, 5, 11>::value == 21, "");
7517 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7521 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7522 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7524 namespace test_template_alias_sfinae
7529 template<typename T>
7530 using member = typename T::member_type;
7532 template<typename T>
7535 template<typename T>
7536 void func(member<T>*) {}
7540 void test() { func<foo>(0); }
7544 } // namespace cxx11
7546 #endif // __cplusplus >= 201103L
7551 if ac_fn_cxx_try_compile "$LINENO"; then :
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 eval ac_res=\$$cachevar
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7561 $as_echo "$ac_res" >&6; }
7562 if eval test x\$$cachevar = xyes; then
7563 CXX_DIALECT="$switch"
7568 if test x$ac_success = xyes; then
7574 ac_cpp='$CPP $CPPFLAGS'
7575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7579 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7580 if test x$ac_success = xno; then
7581 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7584 if test x$ac_success = xno; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7587 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7591 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
7598 # If we haven't got the data from the intl directory,
7599 # assume NLS is disabled.
7608 if test -f ../intl/config.intl; then
7609 . ../intl/config.intl
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7612 $as_echo_n "checking whether NLS is requested... " >&6; }
7613 if test x"$USE_NLS" != xyes; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7618 $as_echo "yes" >&6; }
7620 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7624 $as_echo_n "checking for catalogs to be installed... " >&6; }
7625 # Look for .po and .gmo files in the source directory.
7628 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7629 # If there aren't any .gmo files the shell will give us the
7630 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7632 case "$cat" in *\**)
7635 # The quadruple backslash is collapsed to a double backslash
7636 # by the backticks, then collapsed again by the double quotes,
7637 # leaving us with one backslash in the sed expression (right
7638 # before the dot that mustn't act as a wildcard).
7639 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7640 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
7641 # The user is allowed to set LINGUAS to a list of languages to
7642 # install catalogs for. If it's empty that means "all of them."
7643 if test "x$LINGUAS" = x; then
7644 CATALOGS="$CATALOGS $cat"
7645 XLINGUAS="$XLINGUAS $lang"
7647 case "$LINGUAS" in *$lang*)
7648 CATALOGS="$CATALOGS $cat"
7649 XLINGUAS="$XLINGUAS $lang"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7656 $as_echo "$LINGUAS" >&6; }
7670 # Check for presence and size of long long.
7671 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7672 if test "x$ac_cv_type_long_long" = xyes; then :
7674 cat >>confdefs.h <<_ACEOF
7675 #define HAVE_LONG_LONG 1
7678 # The cast to long int works around a bug in the HP C Compiler
7679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7680 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7681 # This bug is HP SR number 8606223364.
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7683 $as_echo_n "checking size of long long... " >&6; }
7684 if ${ac_cv_sizeof_long_long+:} false; then :
7685 $as_echo_n "(cached) " >&6
7687 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7690 if test "$ac_cv_type_long_long" = yes; then
7691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7692 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
7693 as_fn_error 77 "cannot compute sizeof (long long)
7694 See \`config.log
' for more details" "$LINENO" 5; }
7696 ac_cv_sizeof_long_long=0
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7702 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7706 cat >>confdefs.h <<_ACEOF
7707 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7714 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7715 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7716 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7722 cat >>confdefs.h <<_ACEOF
7723 #define HAVE_DECL_BASENAME $ac_have_decl
7725 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7726 if test "x$ac_cv_have_decl_ffs" = xyes; then :
7732 cat >>confdefs.h <<_ACEOF
7733 #define HAVE_DECL_FFS $ac_have_decl
7735 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7736 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7742 cat >>confdefs.h <<_ACEOF
7743 #define HAVE_DECL_ASPRINTF $ac_have_decl
7745 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7746 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7752 cat >>confdefs.h <<_ACEOF
7753 #define HAVE_DECL_VASPRINTF $ac_have_decl
7755 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7756 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7762 cat >>confdefs.h <<_ACEOF
7763 #define HAVE_DECL_SNPRINTF $ac_have_decl
7765 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7766 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7772 cat >>confdefs.h <<_ACEOF
7773 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7776 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7777 if test "x$ac_cv_have_decl_strtol" = xyes; then :
7783 cat >>confdefs.h <<_ACEOF
7784 #define HAVE_DECL_STRTOL $ac_have_decl
7786 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7787 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7793 cat >>confdefs.h <<_ACEOF
7794 #define HAVE_DECL_STRTOUL $ac_have_decl
7796 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7797 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7803 cat >>confdefs.h <<_ACEOF
7804 #define HAVE_DECL_STRTOLL $ac_have_decl
7806 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7807 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7813 cat >>confdefs.h <<_ACEOF
7814 #define HAVE_DECL_STRTOULL $ac_have_decl
7817 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7818 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7824 cat >>confdefs.h <<_ACEOF
7825 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7829 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7830 if test "x$ac_cv_type_size_t" = xyes; then :
7834 cat >>confdefs.h <<_ACEOF
7835 #define size_t unsigned int
7843 for ac_header in $ac_header_list
7845 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7846 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7849 cat >>confdefs.h <<_ACEOF
7850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7863 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7864 if test "x$ac_cv_type_pid_t" = xyes; then :
7868 cat >>confdefs.h <<_ACEOF
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7875 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7876 if ${ac_cv_path_SED+:} false; then :
7877 $as_echo_n "(cached) " >&6
7879 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7880 for ac_i in 1 2 3 4 5 6 7; do
7881 ac_script="$ac_script$as_nl$ac_script"
7883 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7884 { ac_script=; unset ac_script;}
7885 if test -z "$SED"; then
7886 ac_path_SED_found=false
7887 # Loop through the user's path and
test for each of PROGNAME-LIST
7888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir
=.
7893 for ac_prog
in sed gsed
; do
7894 for ac_exec_ext
in '' $ac_executable_extensions; do
7895 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
7896 as_fn_executable_p
"$ac_path_SED" ||
continue
7897 # Check for GNU ac_path_SED and select it if it is found.
7898 # Check for GNU $ac_path_SED
7899 case `"$ac_path_SED" --version 2>&1` in
7901 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
7904 $as_echo_n 0123456789 >"conftest.in"
7907 cat "conftest.in" "conftest.in" >"conftest.tmp"
7908 mv "conftest.tmp" "conftest.in"
7909 cp "conftest.in" "conftest.nl"
7910 $as_echo '' >> "conftest.nl"
7911 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
7912 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
7913 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
7914 if test $ac_count -gt ${ac_path_SED_max-0}; then
7915 # Best one so far, save it but keep looking for a better one
7916 ac_cv_path_SED
="$ac_path_SED"
7917 ac_path_SED_max
=$ac_count
7919 # 10*(2^10) chars as input seems more than enough
7920 test $ac_count -gt 10 && break
7922 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
7925 $ac_path_SED_found && break 3
7930 if test -z "$ac_cv_path_SED"; then
7931 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7939 $as_echo "$ac_cv_path_SED" >&6; }
7940 SED
="$ac_cv_path_SED"
7944 if test "X$prefix" = "XNONE"; then
7945 acl_final_prefix
="$ac_default_prefix"
7947 acl_final_prefix
="$prefix"
7949 if test "X$exec_prefix" = "XNONE"; then
7950 acl_final_exec_prefix
='${prefix}'
7952 acl_final_exec_prefix
="$exec_prefix"
7954 acl_save_prefix
="$prefix"
7955 prefix
="$acl_final_prefix"
7956 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7957 prefix
="$acl_save_prefix"
7960 # Check whether --with-gnu-ld was given.
7961 if test "${with_gnu_ld+set}" = set; then :
7962 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7967 # Prepare PATH_SEPARATOR.
7968 # The user is always right.
7969 if test "${PATH_SEPARATOR+set}" != set; then
7970 echo "#! /bin/sh" >conf$$.sh
7971 echo "exit 0" >>conf$$.sh
7973 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7981 if test "$GCC" = yes; then
7982 # Check if gcc -print-prog-name=ld gives a path.
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7984 $as_echo_n "checking for ld used by GCC... " >&6; }
7987 # gcc leaves a trailing carriage return which upsets mingw
7988 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7990 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7993 # Accept absolute paths.
7994 [\\/]* |
[A-Za-z
]:[\\/]*)
7995 re_direlt
='/[^/][^/]*/\.\./'
7996 # Canonicalize the path of ld
7997 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7998 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7999 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8001 test -z "$LD" && LD
="$ac_prog"
8004 # If it fails, then pretend we aren't using GCC.
8008 # If it is relative, then search for the first ld in PATH.
8012 elif test "$with_gnu_ld" = yes; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8014 $as_echo_n "checking for GNU ld... " >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8017 $as_echo_n "checking for non-GNU ld... " >&6; }
8019 if ${acl_cv_path_LD+:} false
; then :
8020 $as_echo_n "(cached) " >&6
8022 if test -z "$LD"; then
8023 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8024 for ac_dir
in $PATH; do
8025 test -z "$ac_dir" && ac_dir
=.
8026 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8027 acl_cv_path_LD
="$ac_dir/$ac_prog"
8028 # Check to see if the program is GNU ld. I'd rather use --version,
8029 # but apparently some GNU ld's only accept -v.
8030 # Break only if it was the GNU/non-GNU ld that we prefer.
8031 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8032 test "$with_gnu_ld" != no
&& break
8034 test "$with_gnu_ld" != yes && break
8040 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8044 LD
="$acl_cv_path_LD"
8045 if test -n "$LD"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8047 $as_echo "$LD" >&6; }
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8052 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8054 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8055 if ${acl_cv_prog_gnu_ld+:} false
; then :
8056 $as_echo_n "(cached) " >&6
8058 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8059 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8060 acl_cv_prog_gnu_ld
=yes
8062 acl_cv_prog_gnu_ld
=no
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8066 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8067 with_gnu_ld
=$acl_cv_prog_gnu_ld
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8072 $as_echo_n "checking for shared library run path origin... " >&6; }
8073 if ${acl_cv_rpath+:} false
; then :
8074 $as_echo_n "(cached) " >&6
8077 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8078 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8085 $as_echo "$acl_cv_rpath" >&6; }
8087 libext
="$acl_cv_libext"
8088 shlibext
="$acl_cv_shlibext"
8089 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8090 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8091 hardcode_direct
="$acl_cv_hardcode_direct"
8092 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8093 # Check whether --enable-rpath was given.
8094 if test "${enable_rpath+set}" = set; then :
8095 enableval
=$enable_rpath; :
8102 # Set the 'development' global.
8103 .
$srcdir/..
/bfd
/development.sh
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8106 $as_echo_n "checking for ANSI C header files... " >&6; }
8107 if ${ac_cv_header_stdc+:} false
; then :
8108 $as_echo_n "(cached) " >&6
8110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8125 if ac_fn_c_try_compile
"$LINENO"; then :
8126 ac_cv_header_stdc
=yes
8128 ac_cv_header_stdc
=no
8130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8132 if test $ac_cv_header_stdc = yes; then
8133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8140 $EGREP "memchr" >/dev
/null
2>&1; then :
8143 ac_cv_header_stdc
=no
8149 if test $ac_cv_header_stdc = yes; then
8150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8157 $EGREP "free" >/dev
/null
2>&1; then :
8160 ac_cv_header_stdc
=no
8166 if test $ac_cv_header_stdc = yes; then
8167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8168 if test "$cross_compiling" = yes; then :
8171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8175 #if ((' ' & 0x0FF) == 0x020)
8176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8179 # define ISLOWER(c) \
8180 (('a' <= (c) && (c) <= 'i') \
8181 || ('j' <= (c) && (c) <= 'r') \
8182 || ('s' <= (c) && (c) <= 'z'))
8183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8191 for (i = 0; i < 256; i++)
8192 if (XOR (islower (i), ISLOWER (i))
8193 || toupper (i) != TOUPPER (i))
8198 if ac_fn_c_try_run
"$LINENO"; then :
8201 ac_cv_header_stdc
=no
8203 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8204 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8210 $as_echo "$ac_cv_header_stdc" >&6; }
8211 if test $ac_cv_header_stdc = yes; then
8213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8217 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8218 # for constant arguments. Useless!
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8220 $as_echo_n "checking for working alloca.h... " >&6; }
8221 if ${ac_cv_working_alloca_h+:} false
; then :
8222 $as_echo_n "(cached) " >&6
8224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8230 char *p = (char *) alloca (2 * sizeof (int));
8236 if ac_fn_c_try_link
"$LINENO"; then :
8237 ac_cv_working_alloca_h
=yes
8239 ac_cv_working_alloca_h
=no
8241 rm -f core conftest.err conftest.
$ac_objext \
8242 conftest
$ac_exeext conftest.
$ac_ext
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8245 $as_echo "$ac_cv_working_alloca_h" >&6; }
8246 if test $ac_cv_working_alloca_h = yes; then
8248 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8253 $as_echo_n "checking for alloca... " >&6; }
8254 if ${ac_cv_func_alloca_works+:} false
; then :
8255 $as_echo_n "(cached) " >&6
8257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8260 # define alloca __builtin_alloca
8263 # include <malloc.h>
8264 # define alloca _alloca
8266 # ifdef HAVE_ALLOCA_H
8267 # include <alloca.h>
8272 # ifndef alloca /* predefined by HP cc +Olibcalls */
8273 void *alloca (size_t);
8283 char *p = (char *) alloca (1);
8289 if ac_fn_c_try_link
"$LINENO"; then :
8290 ac_cv_func_alloca_works
=yes
8292 ac_cv_func_alloca_works
=no
8294 rm -f core conftest.err conftest.
$ac_objext \
8295 conftest
$ac_exeext conftest.
$ac_ext
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8298 $as_echo "$ac_cv_func_alloca_works" >&6; }
8300 if test $ac_cv_func_alloca_works = yes; then
8302 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8305 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8306 # that cause trouble. Some versions do not even contain alloca or
8307 # contain a buggy version. If you still want to use their alloca,
8308 # use ar to extract alloca.o from them instead of compiling alloca.c.
8310 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8312 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8316 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8317 if ${ac_cv_os_cray+:} false
; then :
8318 $as_echo_n "(cached) " >&6
8320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 #if defined CRAY && ! defined CRAY2
8329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8330 $EGREP "webecray" >/dev
/null
2>&1; then :
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8339 $as_echo "$ac_cv_os_cray" >&6; }
8340 if test $ac_cv_os_cray = yes; then
8341 for ac_func
in _getb67 GETB67 getb67
; do
8342 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8343 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8344 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8346 cat >>confdefs.h
<<_ACEOF
8347 #define CRAY_STACKSEG_END $ac_func
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8357 $as_echo_n "checking stack direction for C alloca... " >&6; }
8358 if ${ac_cv_c_stack_direction+:} false
; then :
8359 $as_echo_n "(cached) " >&6
8361 if test "$cross_compiling" = yes; then :
8362 ac_cv_c_stack_direction
=0
8364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 $ac_includes_default
8368 find_stack_direction (int *addr, int depth)
8373 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8374 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8379 main (int argc, char **argv)
8381 return find_stack_direction (0, argc + !argv + 20) < 0;
8384 if ac_fn_c_try_run
"$LINENO"; then :
8385 ac_cv_c_stack_direction
=1
8387 ac_cv_c_stack_direction
=-1
8389 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8390 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8395 $as_echo "$ac_cv_c_stack_direction" >&6; }
8396 cat >>confdefs.h
<<_ACEOF
8397 #define STACK_DIRECTION $ac_cv_c_stack_direction
8408 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8410 WIN32APILIBS
="-lws2_32"
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8416 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8417 if ${am_cv_langinfo_codeset+:} false
; then :
8418 $as_echo_n "(cached) " >&6
8420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 #include <langinfo.h>
8426 char* cs = nl_langinfo(CODESET);
8431 if ac_fn_c_try_link
"$LINENO"; then :
8432 am_cv_langinfo_codeset
=yes
8434 am_cv_langinfo_codeset
=no
8436 rm -f core conftest.err conftest.
$ac_objext \
8437 conftest
$ac_exeext conftest.
$ac_ext
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8441 $as_echo "$am_cv_langinfo_codeset" >&6; }
8442 if test $am_cv_langinfo_codeset = yes; then
8444 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8449 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
8451 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8452 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8453 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8454 cat >>confdefs.h
<<_ACEOF
8455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8464 for ac_func
in getpagesize
8466 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8467 if test "x$ac_cv_func_getpagesize" = xyes
; then :
8468 cat >>confdefs.h
<<_ACEOF
8469 #define HAVE_GETPAGESIZE 1
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8476 $as_echo_n "checking for working mmap... " >&6; }
8477 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
8478 $as_echo_n "(cached) " >&6
8480 if test "$cross_compiling" = yes; then :
8481 ac_cv_func_mmap_fixed_mapped
=no
8483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 $ac_includes_default
8486 /* malloc might have been renamed as rpl_malloc. */
8489 /* Thanks to Mike Haertel and Jim Avera for this test.
8490 Here is a matrix of mmap possibilities:
8491 mmap private not fixed
8492 mmap private fixed at somewhere currently unmapped
8493 mmap private fixed at somewhere already mapped
8494 mmap shared not fixed
8495 mmap shared fixed at somewhere currently unmapped
8496 mmap shared fixed at somewhere already mapped
8497 For private mappings, we should verify that changes cannot be read()
8498 back from the file, nor mmap's back from the file at a different
8499 address. (There have been systems where private was not correctly
8500 implemented like the infamous i386 svr4.0, and systems where the
8501 VM page cache was not coherent with the file system buffer cache
8502 like early versions of FreeBSD and possibly contemporary NetBSD.)
8503 For shared mappings, we should conversely verify that changes get
8504 propagated back to all the places they're supposed to be.
8506 Grep wants private fixed already mapped.
8507 The main things grep needs to know about mmap are:
8508 * does it exist and is it safe to write into the mmap'd area
8509 * how to use it (BSD variants) */
8512 #include <sys/mman.h>
8514 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8518 /* This mess was copied from the GNU getpagesize.h. */
8519 #ifndef HAVE_GETPAGESIZE
8520 # ifdef _SC_PAGESIZE
8521 # define getpagesize() sysconf(_SC_PAGESIZE)
8522 # else /* no _SC_PAGESIZE */
8523 # ifdef HAVE_SYS_PARAM_H
8524 # include <sys/param.h>
8525 # ifdef EXEC_PAGESIZE
8526 # define getpagesize() EXEC_PAGESIZE
8527 # else /* no EXEC_PAGESIZE */
8529 # define getpagesize() NBPG * CLSIZE
8532 # endif /* no CLSIZE */
8533 # else /* no NBPG */
8535 # define getpagesize() NBPC
8536 # else /* no NBPC */
8538 # define getpagesize() PAGESIZE
8539 # endif /* PAGESIZE */
8540 # endif /* no NBPC */
8541 # endif /* no NBPG */
8542 # endif /* no EXEC_PAGESIZE */
8543 # else /* no HAVE_SYS_PARAM_H */
8544 # define getpagesize() 8192 /* punt totally */
8545 # endif /* no HAVE_SYS_PARAM_H */
8546 # endif /* no _SC_PAGESIZE */
8548 #endif /* no HAVE_GETPAGESIZE */
8553 char *data, *data2, *data3;
8558 pagesize = getpagesize ();
8560 /* First, make a file with some known garbage in it. */
8561 data = (char *) malloc (pagesize);
8564 for (i = 0; i < pagesize; ++i)
8565 *(data + i) = rand ();
8567 fd = creat ("conftest.mmap", 0600);
8570 if (write (fd, data, pagesize) != pagesize)
8574 /* Next, check that the tail of a page is zero-filled. File must have
8575 non-zero length, otherwise we risk SIGBUS for entire page. */
8576 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8580 if (write (fd2, cdata2, 1) != 1)
8582 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8583 if (data2 == MAP_FAILED)
8585 for (i = 0; i < pagesize; ++i)
8589 if (munmap (data2, pagesize))
8592 /* Next, try to mmap the file at a fixed address which already has
8593 something else allocated at it. If we can, also make sure that
8594 we see the same garbage. */
8595 fd = open ("conftest.mmap", O_RDWR);
8598 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8599 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8601 for (i = 0; i < pagesize; ++i)
8602 if (*(data + i) != *(data2 + i))
8605 /* Finally, make sure that changes to the mapped area do not
8606 percolate back to the file as seen by read(). (This is a bug on
8607 some variants of i386 svr4.0.) */
8608 for (i = 0; i < pagesize; ++i)
8609 *(data2 + i) = *(data2 + i) + 1;
8610 data3 = (char *) malloc (pagesize);
8613 if (read (fd, data3, pagesize) != pagesize)
8615 for (i = 0; i < pagesize; ++i)
8616 if (*(data + i) != *(data3 + i))
8622 if ac_fn_c_try_run
"$LINENO"; then :
8623 ac_cv_func_mmap_fixed_mapped
=yes
8625 ac_cv_func_mmap_fixed_mapped
=no
8627 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8628 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8633 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8634 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8636 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8639 rm -f conftest.mmap conftest.txt
8641 for ac_header
in vfork.h
8643 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8644 if test "x$ac_cv_header_vfork_h" = xyes
; then :
8645 cat >>confdefs.h
<<_ACEOF
8646 #define HAVE_VFORK_H 1
8653 for ac_func
in fork vfork
8655 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8656 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8657 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8658 cat >>confdefs.h
<<_ACEOF
8659 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8665 if test "x$ac_cv_func_fork" = xyes
; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8667 $as_echo_n "checking for working fork... " >&6; }
8668 if ${ac_cv_func_fork_works+:} false
; then :
8669 $as_echo_n "(cached) " >&6
8671 if test "$cross_compiling" = yes; then :
8672 ac_cv_func_fork_works
=cross
8674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 $ac_includes_default
8681 /* By Ruediger Kuhlmann. */
8688 if ac_fn_c_try_run
"$LINENO"; then :
8689 ac_cv_func_fork_works
=yes
8691 ac_cv_func_fork_works
=no
8693 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8694 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8699 $as_echo "$ac_cv_func_fork_works" >&6; }
8702 ac_cv_func_fork_works
=$ac_cv_func_fork
8704 if test "x$ac_cv_func_fork_works" = xcross
; then
8706 *-*-amigaos* |
*-*-msdosdjgpp*)
8707 # Override, as these systems have only a dummy fork() stub
8708 ac_cv_func_fork_works
=no
8711 ac_cv_func_fork_works
=yes
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8715 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8717 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8718 if test "x$ac_cv_func_vfork" = xyes
; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8720 $as_echo_n "checking for working vfork... " >&6; }
8721 if ${ac_cv_func_vfork_works+:} false
; then :
8722 $as_echo_n "(cached) " >&6
8724 if test "$cross_compiling" = yes; then :
8725 ac_cv_func_vfork_works
=cross
8727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 /* Thanks to Paul Eggert for this test. */
8730 $ac_includes_default
8731 #include <sys/wait.h>
8735 /* On some sparc systems, changes by the child to local and incoming
8736 argument registers are propagated back to the parent. The compiler
8737 is told about this with #include <vfork.h>, but some compilers
8738 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8739 static variable whose address is put into a register that is
8740 clobbered by the vfork. */
8743 sparc_address_test (int arg)
8745 sparc_address_test (arg) int arg;
8766 pid_t parent = getpid ();
8769 sparc_address_test (0);
8774 /* Here is another test for sparc vfork register problems. This
8775 test uses lots of local variables, at least as many local
8776 variables as main has allocated so far including compiler
8777 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8778 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8779 reuse the register of parent for one of the local variables,
8780 since it will think that parent can't possibly be used any more
8781 in this routine. Assigning to the local variable will thus
8782 munge parent in the parent process. */
8784 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8785 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8786 /* Convince the compiler that p..p7 are live; otherwise, it might
8787 use the same hardware register for all 8 local variables. */
8788 if (p != p1 || p != p2 || p != p3 || p != p4
8789 || p != p5 || p != p6 || p != p7)
8792 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8793 from child file descriptors. If the child closes a descriptor
8794 before it execs or exits, this munges the parent's descriptor
8795 as well. Test for this by closing stdout in the child. */
8796 _exit(close(fileno(stdout)) != 0);
8801 while (wait(&status) != child)
8804 /* Was there some problem with vforking? */
8807 /* Did the child fail? (This shouldn't happen.) */
8810 /* Did the vfork/compiler bug occur? */
8811 || parent != getpid()
8813 /* Did the file descriptor bug occur? */
8814 || fstat(fileno(stdout), &st) != 0
8819 if ac_fn_c_try_run
"$LINENO"; then :
8820 ac_cv_func_vfork_works
=yes
8822 ac_cv_func_vfork_works
=no
8824 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8825 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8830 $as_echo "$ac_cv_func_vfork_works" >&6; }
8833 if test "x$ac_cv_func_fork_works" = xcross
; then
8834 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8836 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8839 if test "x$ac_cv_func_vfork_works" = xyes
; then
8841 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8845 $as_echo "#define vfork fork" >>confdefs.h
8848 if test "x$ac_cv_func_fork_works" = xyes
; then
8850 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8854 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
8855 ptrace64 sbrk setns sigaltstack sigprocmask \
8856 setpgid setpgrp getrusage getauxval
8858 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8859 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8860 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8861 cat >>confdefs.h
<<_ACEOF
8862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8869 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8871 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
8877 cat >>confdefs.h
<<_ACEOF
8878 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8882 if test "$cross_compiling" = yes; then :
8883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 #include <sys/personality.h>
8890 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8891 # define ADDR_NO_RANDOMIZE 0x0040000
8893 /* Test the flag could be set and stays set. */
8894 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8895 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8901 if ac_fn_c_try_link
"$LINENO"; then :
8902 have_personality
=true
8904 have_personality
=false
8906 rm -f core conftest.err conftest.
$ac_objext \
8907 conftest
$ac_exeext conftest.
$ac_ext
8909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 #include <sys/personality.h>
8916 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8917 # define ADDR_NO_RANDOMIZE 0x0040000
8919 /* Test the flag could be set and stays set. */
8920 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8921 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8927 if ac_fn_c_try_run
"$LINENO"; then :
8928 have_personality
=true
8930 have_personality
=false
8932 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8933 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8936 if $have_personality
8939 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8943 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8944 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
8950 cat >>confdefs.h
<<_ACEOF
8951 #define HAVE_DECL_STRSTR $ac_have_decl
8955 # ----------------------- #
8956 # Checks for structures. #
8957 # ----------------------- #
8959 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8960 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
8962 cat >>confdefs.h
<<_ACEOF
8963 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8968 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8969 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
8971 cat >>confdefs.h
<<_ACEOF
8972 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8979 # On FreeBSD we need libutil for the kinfo_get* functions. On
8980 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8981 # Figure out which one to use.
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8983 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8984 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8985 $as_echo_n "(cached) " >&6
8987 ac_func_search_save_LIBS
=$LIBS
8988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8991 /* Override any GCC internal prototype to avoid an error.
8992 Use char because int might match the return type of a GCC
8993 builtin and then its argument prototype would still apply. */
8997 char kinfo_getfile ();
9001 return kinfo_getfile ();
9006 for ac_lib
in '' util util-freebsd
; do
9007 if test -z "$ac_lib"; then
9008 ac_res
="none required"
9011 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9013 if ac_fn_c_try_link
"$LINENO"; then :
9014 ac_cv_search_kinfo_getfile
=$ac_res
9016 rm -f core conftest.err conftest.
$ac_objext \
9018 if ${ac_cv_search_kinfo_getfile+:} false
; then :
9022 if ${ac_cv_search_kinfo_getfile+:} false
; then :
9025 ac_cv_search_kinfo_getfile
=no
9028 LIBS
=$ac_func_search_save_LIBS
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
9031 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
9032 ac_res
=$ac_cv_search_kinfo_getfile
9033 if test "$ac_res" != no
; then :
9034 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9039 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
9040 for ac_func
in kinfo_getfile
9042 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
9043 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
9044 cat >>confdefs.h
<<_ACEOF
9045 #define HAVE_KINFO_GETFILE 1
9052 # Check for std::thread. This does not work on some platforms, like
9055 ac_cpp
='$CXXCPP $CPPFLAGS'
9056 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9057 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9058 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9065 ac_cpp
='$CPP $CPPFLAGS'
9066 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9067 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9068 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9072 # We used to check for pthread.h first, but this fails if pthread.h
9073 # requires special compiler flags (e.g. on Tru64 or Sequent).
9074 # It gets checked for in the link test anyway.
9076 # First of all, check if the user has set any of the PTHREAD_LIBS,
9077 # etcetera environment variables, and if threads linking works using
9079 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9080 ax_pthread_save_CC
="$CC"
9081 ax_pthread_save_CFLAGS
="$CFLAGS"
9082 ax_pthread_save_LIBS
="$LIBS"
9083 if test "x$PTHREAD_CC" != "x"; then :
9086 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9087 LIBS
="$PTHREAD_LIBS $LIBS"
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9089 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9093 /* Override any GCC internal prototype to avoid an error.
9094 Use char because int might match the return type of a GCC
9095 builtin and then its argument prototype would still apply. */
9099 char pthread_join ();
9103 return pthread_join ();
9108 if ac_fn_c_try_link
"$LINENO"; then :
9111 rm -f core conftest.err conftest.
$ac_objext \
9112 conftest
$ac_exeext conftest.
$ac_ext
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9114 $as_echo "$ax_pthread_ok" >&6; }
9115 if test "x$ax_pthread_ok" = "xno"; then
9119 CC
="$ax_pthread_save_CC"
9120 CFLAGS
="$ax_pthread_save_CFLAGS"
9121 LIBS
="$ax_pthread_save_LIBS"
9124 # We must check for the threads library under a number of different
9125 # names; the ordering is very important because some systems
9126 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9127 # libraries is broken (non-POSIX).
9129 # Create a list of thread flags to try. Items starting with a "-" are
9130 # C compiler flags, and other items are library names, except for "none"
9131 # which indicates that we try without any flags at all, and "pthread-config"
9132 # which is a program returning the flags for the Pth emulation library.
9134 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9136 # The ordering *is* (sometimes) important. Some notes on the
9137 # individual items follow:
9139 # pthreads: AIX (must check this before -lpthread)
9140 # none: in case threads are in libc; should be tried before -Kthread and
9141 # other compiler flags to prevent continual compiler warnings
9142 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9143 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9144 # (Note: HP C rejects this with "bad form for `-t' option")
9145 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9146 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9147 # doesn't hurt to check since this sometimes defines pthreads and
9148 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9149 # is present but should not be used directly; and before -mthreads,
9150 # because the compiler interprets this as "-mt" + "-hreads")
9151 # -mthreads: Mingw32/gcc, Lynx/gcc
9152 # pthread: Linux, etcetera
9153 # --thread-safe: KAI C++
9154 # pthread-config: use pthread-config program (for GNU Pth library)
9160 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9161 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9163 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
9168 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9169 # multi-threading and also sets -lpthread."
9171 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
9176 # IBM z/OS requires a feature-test macro to be defined in order to
9177 # enable POSIX threads at all, so give the user a hint if this is
9178 # not set. (We don't define these ourselves, as they can affect
9179 # other portions of the system API in unpredictable ways.)
9181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9184 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9185 AX_PTHREAD_ZOS_MISSING
9189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9190 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9192 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9200 # On Solaris (at least, for some versions), libc contains stubbed
9201 # (non-functional) versions of the pthreads routines, so link-based
9202 # tests will erroneously succeed. (N.B.: The stubs are missing
9203 # pthread_cleanup_push, or rather a function called by this macro,
9204 # so we could check for that, but who knows whether they'll stub
9205 # that too in a future libc.) So we'll check first for the
9206 # standard Solaris way of linking pthreads (-mt -lpthread).
9208 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
9212 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9214 if test "x$GCC" = "xyes"; then :
9215 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
9218 # The presence of a feature test macro requesting re-entrant function
9219 # definitions is, on some systems, a strong hint that pthreads support is
9223 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
9224 ax_pthread_check_macro
="_REENTRANT"
9228 ax_pthread_check_macro
="_THREAD_SAFE"
9232 ax_pthread_check_macro
="--"
9235 if test "x$ax_pthread_check_macro" = "x--"; then :
9236 ax_pthread_check_cond
=0
9238 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
9241 # Are we compiling with Clang?
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9244 $as_echo_n "checking whether $CC is Clang... " >&6; }
9245 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
9246 $as_echo_n "(cached) " >&6
9248 ax_cv_PTHREAD_CLANG
=no
9249 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9250 if test "x$GCC" = "xyes"; then
9251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9254 # if defined(__clang__) && defined(__llvm__)
9255 AX_PTHREAD_CC_IS_CLANG
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
9261 ax_cv_PTHREAD_CLANG
=yes
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9269 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9270 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
9272 ax_pthread_clang_warning
=no
9274 # Clang needs special handling, because older versions handle the -pthread
9275 # option in a rather... idiosyncratic way
9277 if test "x$ax_pthread_clang" = "xyes"; then
9279 # Clang takes -pthread; it has never supported any other flag
9281 # (Note 1: This will need to be revisited if a system that Clang
9282 # supports has POSIX threads in a separate library. This tends not
9283 # to be the way of modern systems, but it's conceivable.)
9285 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9286 # to get POSIX threads support; the API is always present and
9287 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9288 # -pthread does define _REENTRANT, and while the Darwin headers
9289 # ignore this macro, third-party headers might not.)
9291 PTHREAD_CFLAGS
="-pthread"
9296 # However, older versions of Clang make a point of warning the user
9297 # that, in an invocation where only linking and no compilation is
9298 # taking place, the -pthread option has no effect ("argument unused
9299 # during compilation"). They expect -pthread to be passed in only
9300 # when source code is being compiled.
9302 # Problem is, this is at odds with the way Automake and most other
9303 # C build frameworks function, which is that the same flags used in
9304 # compilation (CFLAGS) are also used in linking. Many systems
9305 # supported by AX_PTHREAD require exactly this for POSIX threads
9306 # support, and in fact it is often not straightforward to specify a
9307 # flag that is used only in the compilation phase and not in
9308 # linking. Such a scenario is extremely rare in practice.
9310 # Even though use of the -pthread flag in linking would only print
9311 # a warning, this can be a nuisance for well-run software projects
9312 # that build with -Werror. So if the active version of Clang has
9313 # this misfeature, we search for an option to squash it.
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9316 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9317 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
9318 $as_echo_n "(cached) " >&6
9320 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
9321 # Create an alternate version of $ac_link that compiles and
9322 # links in two steps (.c -> .o, .o -> exe) instead of one
9323 # (.c -> exe), because the warning occurs only in the second
9325 ax_pthread_save_ac_link
="$ac_link"
9326 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9327 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9328 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9329 ax_pthread_save_CFLAGS
="$CFLAGS"
9330 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
9331 if test "x$ax_pthread_try" = "xunknown"; then :
9334 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9335 ac_link
="$ax_pthread_save_ac_link"
9336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338 int main(void){return 0;}
9340 if ac_fn_c_try_link
"$LINENO"; then :
9341 ac_link
="$ax_pthread_2step_ac_link"
9342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 int main(void){return 0;}
9346 if ac_fn_c_try_link
"$LINENO"; then :
9349 rm -f core conftest.err conftest.
$ac_objext \
9350 conftest
$ac_exeext conftest.
$ac_ext
9353 rm -f core conftest.err conftest.
$ac_objext \
9354 conftest
$ac_exeext conftest.
$ac_ext
9356 ac_link
="$ax_pthread_save_ac_link"
9357 CFLAGS
="$ax_pthread_save_CFLAGS"
9358 if test "x$ax_pthread_try" = "x"; then :
9361 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9365 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9367 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9369 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9372 fi # $ax_pthread_clang = yes
9374 if test "x$ax_pthread_ok" = "xno"; then
9375 for ax_pthread_try_flag
in $ax_pthread_flags; do
9377 case $ax_pthread_try_flag in
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9380 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9385 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9386 PTHREAD_CFLAGS
="-mt"
9387 PTHREAD_LIBS
="-lpthread"
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9392 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9393 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
9397 # Extract the first word of "pthread-config", so it can be a program name with args.
9398 set dummy pthread-config
; ac_word
=$2
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9400 $as_echo_n "checking for $ac_word... " >&6; }
9401 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
9402 $as_echo_n "(cached) " >&6
9404 if test -n "$ax_pthread_config"; then
9405 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
9407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9411 test -z "$as_dir" && as_dir
=.
9412 for ac_exec_ext
in '' $ac_executable_extensions; do
9413 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9414 ac_cv_prog_ax_pthread_config
="yes"
9415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9422 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
9425 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
9426 if test -n "$ax_pthread_config"; then
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9428 $as_echo "$ax_pthread_config" >&6; }
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431 $as_echo "no" >&6; }
9435 if test "x$ax_pthread_config" = "xno"; then :
9438 PTHREAD_CFLAGS
="`pthread-config --cflags`"
9439 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9444 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9445 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
9449 ax_pthread_save_CFLAGS
="$CFLAGS"
9450 ax_pthread_save_LIBS
="$LIBS"
9451 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9452 LIBS
="$PTHREAD_LIBS $LIBS"
9454 # Check for various functions. We must include pthread.h,
9455 # since some functions may be macros. (On the Sequent, we
9456 # need a special flag -Kthread to make this header compile.)
9457 # We check for pthread_join because it is in -lpthread on IRIX
9458 # while pthread_create is in libc. We check for pthread_attr_init
9459 # due to DEC craziness with -lpthreads. We check for
9460 # pthread_cleanup_push because it is one of the few pthread
9461 # functions on Solaris that doesn't have a non-functional libc stub.
9462 # We try pthread_create on general principles.
9464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466 #include <pthread.h>
9467 # if $ax_pthread_check_cond
9468 # error "$ax_pthread_check_macro must be defined"
9470 static void routine(void *a) { a = 0; }
9471 static void *start_routine(void *a) { return a; }
9475 pthread_t th; pthread_attr_t attr;
9476 pthread_create(&th, 0, start_routine, 0);
9477 pthread_join(th, 0);
9478 pthread_attr_init(&attr);
9479 pthread_cleanup_push(routine, 0);
9480 pthread_cleanup_pop(0) /* ; */
9485 if ac_fn_c_try_link
"$LINENO"; then :
9488 rm -f core conftest.err conftest.
$ac_objext \
9489 conftest
$ac_exeext conftest.
$ac_ext
9491 CFLAGS
="$ax_pthread_save_CFLAGS"
9492 LIBS
="$ax_pthread_save_LIBS"
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9495 $as_echo "$ax_pthread_ok" >&6; }
9496 if test "x$ax_pthread_ok" = "xyes"; then :
9505 # Various other checks:
9506 if test "x$ax_pthread_ok" = "xyes"; then
9507 ax_pthread_save_CFLAGS
="$CFLAGS"
9508 ax_pthread_save_LIBS
="$LIBS"
9509 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9510 LIBS
="$PTHREAD_LIBS $LIBS"
9512 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9514 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9515 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
9516 $as_echo_n "(cached) " >&6
9518 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
9519 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
9520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9522 #include <pthread.h>
9526 int attr = $ax_pthread_attr; return attr /* ; */
9531 if ac_fn_c_try_link
"$LINENO"; then :
9532 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
9534 rm -f core conftest.err conftest.
$ac_objext \
9535 conftest
$ac_exeext conftest.
$ac_ext
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9540 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9541 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9542 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9543 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9545 cat >>confdefs.h
<<_ACEOF
9546 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9549 ax_pthread_joinable_attr_defined
=yes
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9554 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9555 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
9556 $as_echo_n "(cached) " >&6
9558 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
9561 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9567 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9568 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9569 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9570 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9571 ax_pthread_special_flags_added
=yes
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9575 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9576 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
9577 $as_echo_n "(cached) " >&6
9579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 #include <pthread.h>
9585 int i = PTHREAD_PRIO_INHERIT;
9590 if ac_fn_c_try_link
"$LINENO"; then :
9591 ax_cv_PTHREAD_PRIO_INHERIT
=yes
9593 ax_cv_PTHREAD_PRIO_INHERIT
=no
9595 rm -f core conftest.err conftest.
$ac_objext \
9596 conftest
$ac_exeext conftest.
$ac_ext
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9600 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9601 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9602 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9604 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9606 ax_pthread_prio_inherit_defined
=yes
9610 CFLAGS
="$ax_pthread_save_CFLAGS"
9611 LIBS
="$ax_pthread_save_LIBS"
9613 # More AIX lossage: compile with *_r variant
9614 if test "x$GCC" != "xyes"; then
9618 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
9619 #handle absolute path differently from PATH based program lookup
9622 if as_fn_executable_p
${CC}_r
; then :
9623 PTHREAD_CC
="${CC}_r"
9626 for ac_prog
in ${CC}_r
9628 # Extract the first word of "$ac_prog", so it can be a program name with args.
9629 set dummy
$ac_prog; ac_word
=$2
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9631 $as_echo_n "checking for $ac_word... " >&6; }
9632 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
9633 $as_echo_n "(cached) " >&6
9635 if test -n "$PTHREAD_CC"; then
9636 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
9638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9642 test -z "$as_dir" && as_dir
=.
9643 for ac_exec_ext
in '' $ac_executable_extensions; do
9644 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9645 ac_cv_prog_PTHREAD_CC
="$ac_prog"
9646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9655 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
9656 if test -n "$PTHREAD_CC"; then
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9658 $as_echo "$PTHREAD_CC" >&6; }
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9661 $as_echo "no" >&6; }
9665 test -n "$PTHREAD_CC" && break
9667 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9678 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9684 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9685 if test "x$ax_pthread_ok" = "xyes"; then
9693 ac_cpp
='$CXXCPP $CPPFLAGS'
9694 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9695 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9696 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9699 if test "$threads" = "yes"; then
9701 LIBS
="$PTHREAD_LIBS $LIBS"
9702 save_CXXFLAGS
="$CXXFLAGS"
9703 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9705 $as_echo_n "checking for std::thread... " >&6; }
9706 if ${gdb_cv_cxx_std_thread+:} false
; then :
9707 $as_echo_n "(cached) " >&6
9709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9716 std::thread t(callback);
9721 if ac_fn_cxx_try_compile
"$LINENO"; then :
9722 gdb_cv_cxx_std_thread
=yes
9724 gdb_cv_cxx_std_thread
=no
9726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9729 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
9731 # This check must be here, while LIBS includes any necessary
9732 # threading library.
9733 for ac_func
in pthread_sigmask pthread_setname_np
9735 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9736 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9737 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9738 cat >>confdefs.h
<<_ACEOF
9739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9747 CXXFLAGS
="$save_CXXFLAGS"
9749 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9751 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9755 ac_cpp
='$CPP $CPPFLAGS'
9756 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9757 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9758 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9762 $as_echo_n "checking for sigsetjmp... " >&6; }
9763 if ${gdb_cv_func_sigsetjmp+:} false
; then :
9764 $as_echo_n "(cached) " >&6
9766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9774 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
9779 if ac_fn_c_try_compile
"$LINENO"; then :
9780 gdb_cv_func_sigsetjmp
=yes
9782 gdb_cv_func_sigsetjmp
=no
9784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9787 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
9788 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
9790 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9795 # Check whether --with-intel_pt was given.
9796 if test "${with_intel_pt+set}" = set; then :
9797 withval
=$with_intel_pt;
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9803 $as_echo_n "checking whether to use intel pt... " >&6; }
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9805 $as_echo "$with_intel_pt" >&6; }
9807 if test "${with_intel_pt}" = no
; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
9809 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
9812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9815 #include <linux/perf_event.h>
9816 #ifndef PERF_ATTR_SIZE_VER5
9821 if ac_fn_c_try_cpp
"$LINENO"; then :
9826 rm -f conftest.err conftest.i conftest.
$ac_ext
9827 if test "$perf_event" != yes; then
9828 if test "$with_intel_pt" = yes; then
9829 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
9832 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
9846 acl_save_prefix
="$prefix"
9847 prefix
="$acl_final_prefix"
9848 acl_save_exec_prefix
="$exec_prefix"
9849 exec_prefix
="$acl_final_exec_prefix"
9851 eval additional_includedir
=\"$includedir\"
9852 eval additional_libdir
=\"$libdir\"
9854 exec_prefix
="$acl_save_exec_prefix"
9855 prefix
="$acl_save_prefix"
9858 # Check whether --with-libipt-prefix was given.
9859 if test "${with_libipt_prefix+set}" = set; then :
9860 withval
=$with_libipt_prefix;
9861 if test "X$withval" = "Xno"; then
9864 if test "X$withval" = "X"; then
9866 acl_save_prefix
="$prefix"
9867 prefix
="$acl_final_prefix"
9868 acl_save_exec_prefix
="$exec_prefix"
9869 exec_prefix
="$acl_final_exec_prefix"
9871 eval additional_includedir
=\"$includedir\"
9872 eval additional_libdir
=\"$libdir\"
9874 exec_prefix
="$acl_save_exec_prefix"
9875 prefix
="$acl_save_prefix"
9878 additional_includedir
="$withval/include"
9879 additional_libdir
="$withval/lib"
9886 # Check whether --with-libipt-type was given.
9887 if test "${with_libipt_type+set}" = set; then :
9888 withval
=$with_libipt_type; with_libipt_type
=$withval
9890 with_libipt_type
=auto
9893 lib_type
=`eval echo \$with_libipt_type`
9900 names_already_handled
=
9901 names_next_round
='ipt '
9902 while test -n "$names_next_round"; do
9903 names_this_round
="$names_next_round"
9905 for name
in $names_this_round; do
9907 for n
in $names_already_handled; do
9908 if test "$n" = "$name"; then
9913 if test -z "$already_handled"; then
9914 names_already_handled
="$names_already_handled $name"
9915 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9916 eval value
=\"\
$HAVE_LIB$uppername\"
9917 if test -n "$value"; then
9918 if test "$value" = yes; then
9919 eval value
=\"\
$LIB$uppername\"
9920 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
9921 eval value
=\"\
$LTLIB$uppername\"
9922 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
9931 if test $use_additional = yes; then
9932 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9933 found_dir
="$additional_libdir"
9934 found_so
="$additional_libdir/lib$name.$shlibext"
9935 if test -f "$additional_libdir/lib$name.la"; then
9936 found_la
="$additional_libdir/lib$name.la"
9938 elif test x
$lib_type != xshared
; then
9939 if test -f "$additional_libdir/lib$name.$libext"; then
9940 found_dir
="$additional_libdir"
9941 found_a
="$additional_libdir/lib$name.$libext"
9942 if test -f "$additional_libdir/lib$name.la"; then
9943 found_la
="$additional_libdir/lib$name.la"
9948 if test "X$found_dir" = "X"; then
9949 for x
in $LDFLAGS $LTLIBIPT; do
9951 acl_save_prefix
="$prefix"
9952 prefix
="$acl_final_prefix"
9953 acl_save_exec_prefix
="$exec_prefix"
9954 exec_prefix
="$acl_final_exec_prefix"
9956 exec_prefix
="$acl_save_exec_prefix"
9957 prefix
="$acl_save_prefix"
9961 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9962 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9964 found_so
="$dir/lib$name.$shlibext"
9965 if test -f "$dir/lib$name.la"; then
9966 found_la
="$dir/lib$name.la"
9968 elif test x
$lib_type != xshared
; then
9969 if test -f "$dir/lib$name.$libext"; then
9971 found_a
="$dir/lib$name.$libext"
9972 if test -f "$dir/lib$name.la"; then
9973 found_la
="$dir/lib$name.la"
9979 if test "X$found_dir" != "X"; then
9984 if test "X$found_dir" != "X"; then
9985 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9986 if test "X$found_so" != "X"; then
9987 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9988 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9991 for x
in $ltrpathdirs; do
9992 if test "X$x" = "X$found_dir"; then
9997 if test -z "$haveit"; then
9998 ltrpathdirs
="$ltrpathdirs $found_dir"
10000 if test "$hardcode_direct" = yes; then
10001 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10003 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10004 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10006 for x
in $rpathdirs; do
10007 if test "X$x" = "X$found_dir"; then
10012 if test -z "$haveit"; then
10013 rpathdirs
="$rpathdirs $found_dir"
10017 for x
in $LDFLAGS $LIBIPT; do
10019 acl_save_prefix
="$prefix"
10020 prefix
="$acl_final_prefix"
10021 acl_save_exec_prefix
="$exec_prefix"
10022 exec_prefix
="$acl_final_exec_prefix"
10024 exec_prefix
="$acl_save_exec_prefix"
10025 prefix
="$acl_save_prefix"
10027 if test "X$x" = "X-L$found_dir"; then
10032 if test -z "$haveit"; then
10033 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10035 if test "$hardcode_minus_L" != no
; then
10036 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10038 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10044 if test "X$found_a" != "X"; then
10045 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
10047 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10050 additional_includedir
=
10051 case "$found_dir" in
10053 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10054 additional_includedir
="$basedir/include"
10057 if test "X$additional_includedir" != "X"; then
10058 if test "X$additional_includedir" != "X/usr/include"; then
10060 if test "X$additional_includedir" = "X/usr/local/include"; then
10061 if test -n "$GCC"; then
10063 linux
*) haveit
=yes;;
10067 if test -z "$haveit"; then
10068 for x
in $CPPFLAGS $INCIPT; do
10070 acl_save_prefix
="$prefix"
10071 prefix
="$acl_final_prefix"
10072 acl_save_exec_prefix
="$exec_prefix"
10073 exec_prefix
="$acl_final_exec_prefix"
10075 exec_prefix
="$acl_save_exec_prefix"
10076 prefix
="$acl_save_prefix"
10078 if test "X$x" = "X-I$additional_includedir"; then
10083 if test -z "$haveit"; then
10084 if test -d "$additional_includedir"; then
10085 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10091 if test -n "$found_la"; then
10092 save_libdir
="$libdir"
10093 case "$found_la" in
10094 */* |
*\\*) .
"$found_la" ;;
10095 *) .
"./$found_la" ;;
10097 libdir
="$save_libdir"
10098 for dep
in $dependency_libs; do
10101 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10102 if test "X$additional_libdir" != "X/usr/lib"; then
10104 if test "X$additional_libdir" = "X/usr/local/lib"; then
10105 if test -n "$GCC"; then
10107 linux
*) haveit
=yes;;
10111 if test -z "$haveit"; then
10113 for x
in $LDFLAGS $LIBIPT; do
10115 acl_save_prefix
="$prefix"
10116 prefix
="$acl_final_prefix"
10117 acl_save_exec_prefix
="$exec_prefix"
10118 exec_prefix
="$acl_final_exec_prefix"
10120 exec_prefix
="$acl_save_exec_prefix"
10121 prefix
="$acl_save_prefix"
10123 if test "X$x" = "X-L$additional_libdir"; then
10128 if test -z "$haveit"; then
10129 if test -d "$additional_libdir"; then
10130 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10134 for x
in $LDFLAGS $LTLIBIPT; do
10136 acl_save_prefix
="$prefix"
10137 prefix
="$acl_final_prefix"
10138 acl_save_exec_prefix
="$exec_prefix"
10139 exec_prefix
="$acl_final_exec_prefix"
10141 exec_prefix
="$acl_save_exec_prefix"
10142 prefix
="$acl_save_prefix"
10144 if test "X$x" = "X-L$additional_libdir"; then
10149 if test -z "$haveit"; then
10150 if test -d "$additional_libdir"; then
10151 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10158 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10159 if test "$enable_rpath" != no
; then
10161 for x
in $rpathdirs; do
10162 if test "X$x" = "X$dir"; then
10167 if test -z "$haveit"; then
10168 rpathdirs
="$rpathdirs $dir"
10171 for x
in $ltrpathdirs; do
10172 if test "X$x" = "X$dir"; then
10177 if test -z "$haveit"; then
10178 ltrpathdirs
="$ltrpathdirs $dir"
10183 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10186 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10189 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
10190 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10196 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10197 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10198 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10200 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
10201 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
10208 if test "X$rpathdirs" != "X"; then
10209 if test -n "$hardcode_libdir_separator"; then
10211 for found_dir
in $rpathdirs; do
10212 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10214 acl_save_libdir
="$libdir"
10216 eval flag
=\"$hardcode_libdir_flag_spec\"
10217 libdir
="$acl_save_libdir"
10218 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10220 for found_dir
in $rpathdirs; do
10221 acl_save_libdir
="$libdir"
10222 libdir
="$found_dir"
10223 eval flag
=\"$hardcode_libdir_flag_spec\"
10224 libdir
="$acl_save_libdir"
10225 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10229 if test "X$ltrpathdirs" != "X"; then
10230 for found_dir
in $ltrpathdirs; do
10231 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10236 ac_save_CPPFLAGS
="$CPPFLAGS"
10238 for element
in $INCIPT; do
10240 for x
in $CPPFLAGS; do
10242 acl_save_prefix
="$prefix"
10243 prefix
="$acl_final_prefix"
10244 acl_save_exec_prefix
="$exec_prefix"
10245 exec_prefix
="$acl_final_exec_prefix"
10247 exec_prefix
="$acl_save_exec_prefix"
10248 prefix
="$acl_save_prefix"
10250 if test "X$x" = "X$element"; then
10255 if test -z "$haveit"; then
10256 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10262 $as_echo_n "checking for libipt... " >&6; }
10263 if ${ac_cv_libipt+:} false
; then :
10264 $as_echo_n "(cached) " >&6
10267 ac_save_LIBS
="$LIBS"
10268 LIBS
="$LIBS $LIBIPT"
10269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271 #include "intel-pt.h"
10275 pt_insn_alloc_decoder (0);
10280 if ac_fn_c_try_link
"$LINENO"; then :
10285 rm -f core conftest.err conftest.
$ac_objext \
10286 conftest
$ac_exeext conftest.
$ac_ext
10287 LIBS
="$ac_save_LIBS"
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10291 $as_echo "$ac_cv_libipt" >&6; }
10292 if test "$ac_cv_libipt" = yes; then
10295 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10298 $as_echo_n "checking how to link with libipt... " >&6; }
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10300 $as_echo "$LIBIPT" >&6; }
10303 CPPFLAGS
="$ac_save_CPPFLAGS"
10313 if test "$HAVE_LIBIPT" != yes; then
10314 if test "$with_intel_pt" = yes; then
10315 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10318 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10322 LIBS
="$LIBS $LIBIPT"
10323 for ac_func
in pt_insn_event
10325 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10326 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
10327 cat >>confdefs.h
<<_ACEOF
10328 #define HAVE_PT_INSN_EVENT 1
10334 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
10336 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
10338 cat >>confdefs.h
<<_ACEOF
10339 #define HAVE_STRUCT_PT_INSN_ENABLED 1
10344 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10346 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
10348 cat >>confdefs.h
<<_ACEOF
10349 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
10360 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
10362 for ac_header
in sys
/procfs.h
10364 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
10365 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
10366 cat >>confdefs.h
<<_ACEOF
10367 #define HAVE_SYS_PROCFS_H 1
10374 if test "$ac_cv_header_sys_procfs_h" = yes; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10377 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10378 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
10379 $as_echo_n "(cached) " >&6
10381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h. */
10385 #include <sys/procfs.h>
10394 if ac_fn_c_try_compile
"$LINENO"; then :
10395 bfd_cv_have_sys_procfs_type_gregset_t
=yes
10397 bfd_cv_have_sys_procfs_type_gregset_t
=no
10400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10403 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10405 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10409 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10413 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10414 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
10415 $as_echo_n "(cached) " >&6
10417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10421 #include <sys/procfs.h>
10430 if ac_fn_c_try_compile
"$LINENO"; then :
10431 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
10433 bfd_cv_have_sys_procfs_type_fpregset_t
=no
10436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10439 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10441 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10445 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10449 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10450 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
10451 $as_echo_n "(cached) " >&6
10453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10457 #include <sys/procfs.h>
10466 if ac_fn_c_try_compile
"$LINENO"; then :
10467 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
10469 bfd_cv_have_sys_procfs_type_prgregset_t
=no
10472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10475 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10477 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10481 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10485 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10486 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
10487 $as_echo_n "(cached) " >&6
10489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10493 #include <sys/procfs.h>
10502 if ac_fn_c_try_compile
"$LINENO"; then :
10503 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
10505 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
10508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10511 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10513 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10517 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10521 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10522 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
10523 $as_echo_n "(cached) " >&6
10525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10529 #include <sys/procfs.h>
10538 if ac_fn_c_try_compile
"$LINENO"; then :
10539 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
10541 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
10544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10547 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10549 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10553 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10557 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10558 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
10559 $as_echo_n "(cached) " >&6
10561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10565 #include <sys/procfs.h>
10574 if ac_fn_c_try_compile
"$LINENO"; then :
10575 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
10577 bfd_cv_have_sys_procfs_type_lwpid_t
=no
10580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10583 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
10585 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10589 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
10593 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10594 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
10595 $as_echo_n "(cached) " >&6
10597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10601 #include <sys/procfs.h>
10610 if ac_fn_c_try_compile
"$LINENO"; then :
10611 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
10613 bfd_cv_have_sys_procfs_type_psaddr_t
=no
10616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10619 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
10621 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10625 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
10629 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10630 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
10631 $as_echo_n "(cached) " >&6
10633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10637 #include <sys/procfs.h>
10641 elf_fpregset_t avar
10646 if ac_fn_c_try_compile
"$LINENO"; then :
10647 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
10649 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
10652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10655 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10657 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10661 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
10666 # Check whether we will enable the inclusion of unit tests when
10669 # The default value of this option changes depending whether we're on
10670 # development mode (in which case it's "true") or not (in which case
10671 # it's "false"). The $development variable is set by the GDB_AC_COMMON
10672 # macro, which must therefore be used before GDB_AC_SELFTEST.
10674 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
10675 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
10678 # Check whether --enable-unit-tests was given.
10679 if test "${enable_unit_tests+set}" = set; then :
10680 enableval
=$enable_unit_tests; case "${enableval}" in
10681 yes) enable_unittests
=true
;;
10682 no
) enable_unittests
=false
;;
10683 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
10686 enable_unittests
=$development
10690 if $enable_unittests; then
10692 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
10697 if $enable_unittests; then
10706 # Check the return and argument types of ptrace.
10709 for ac_header
in sys
/ptrace.h ptrace.h
10711 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10712 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10713 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10714 cat >>confdefs.h
<<_ACEOF
10715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10723 gdb_ptrace_headers
='
10724 #include <sys/types.h>
10725 #if HAVE_SYS_PTRACE_H
10726 # include <sys/ptrace.h>
10729 # include <unistd.h>
10733 # Check return type. Varargs (used on GNU/Linux) conflict with the
10734 # empty argument list, so check for that explicitly.
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10736 $as_echo_n "checking return type of ptrace... " >&6; }
10737 if ${gdb_cv_func_ptrace_ret+:} false
; then :
10738 $as_echo_n "(cached) " >&6
10740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 $gdb_ptrace_headers
10746 extern long ptrace (enum __ptrace_request, ...);
10751 if ac_fn_c_try_compile
"$LINENO"; then :
10752 gdb_cv_func_ptrace_ret
='long'
10754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 $gdb_ptrace_headers
10760 extern int ptrace ();
10765 if ac_fn_c_try_compile
"$LINENO"; then :
10766 gdb_cv_func_ptrace_ret
='int'
10768 gdb_cv_func_ptrace_ret
='long'
10770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10775 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10777 cat >>confdefs.h
<<_ACEOF
10778 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10781 # Check argument types.
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10783 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10784 if ${gdb_cv_func_ptrace_args+:} false
; then :
10785 $as_echo_n "(cached) " >&6
10788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10790 $gdb_ptrace_headers
10794 extern long ptrace (enum __ptrace_request, ...);
10799 if ac_fn_c_try_compile
"$LINENO"; then :
10800 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
10803 for gdb_arg1
in 'int' 'long'; do
10804 for gdb_arg2
in 'pid_t' 'int' 'long'; do
10805 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10806 for gdb_arg4
in 'int' 'long' 'void *'; do
10807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h. */
10809 $gdb_ptrace_headers
10814 extern $gdb_cv_func_ptrace_ret
10815 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10821 if ac_fn_c_try_compile
"$LINENO"; then :
10822 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10826 for gdb_arg5
in 'int *' 'int' 'long'; do
10827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829 $gdb_ptrace_headers
10834 extern $gdb_cv_func_ptrace_ret
10835 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10841 if ac_fn_c_try_compile
"$LINENO"; then :
10843 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10852 # Provide a safe default value.
10853 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10859 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10860 ac_save_IFS
=$IFS; IFS
=','
10861 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10865 cat >>confdefs.h
<<_ACEOF
10866 #define PTRACE_TYPE_ARG1 $1
10870 cat >>confdefs.h
<<_ACEOF
10871 #define PTRACE_TYPE_ARG3 $3
10875 cat >>confdefs.h
<<_ACEOF
10876 #define PTRACE_TYPE_ARG4 $4
10879 if test -n "$5"; then
10881 cat >>confdefs.h
<<_ACEOF
10882 #define PTRACE_TYPE_ARG5 $5
10888 # Detect support warning flags.
10890 # Check whether --enable-werror was given.
10891 if test "${enable_werror+set}" = set; then :
10892 enableval
=$enable_werror; case "${enableval}" in
10893 yes | y
) ERROR_ON_WARNING
="yes" ;;
10894 no | n
) ERROR_ON_WARNING
="no" ;;
10895 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10900 # Enable -Werror by default when using gcc. Turn it off for releases.
10901 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10902 ERROR_ON_WARNING
=yes
10906 if test "${ERROR_ON_WARNING}" = yes ; then
10907 WERROR_CFLAGS
="-Werror"
10910 # The options we'll try to enable.
10911 build_warnings
="-Wall -Wpointer-arith \
10912 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10913 -Wno-switch -Wno-char-subscripts \
10914 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10915 -Wno-sign-compare -Wno-error=maybe-uninitialized \
10916 -Wno-mismatched-tags \
10917 -Wno-error=deprecated-register \
10918 -Wsuggest-override \
10919 -Wimplicit-fallthrough=3 \
10920 -Wduplicated-cond \
10922 -Wdeprecated-copy \
10923 -Wdeprecated-copy-dtor \
10925 -Wmissing-declarations \
10926 -Wmissing-prototypes \
10927 -Wstrict-null-sentinel \
10932 # Enable -Wno-format by default when using gcc on mingw since many
10933 # GCC versions complain about %I64.
10934 build_warnings
="$build_warnings -Wno-format" ;;
10936 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10937 # doesn't understand.
10938 build_warnings
="$build_warnings -Wno-unknown-pragmas"
10939 # Solaris 11 <unistd.h> marks vfork deprecated.
10940 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
10942 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10943 # but there's a special case for this below.
10944 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
10947 # Check whether --enable-build-warnings was given.
10948 if test "${enable_build_warnings+set}" = set; then :
10949 enableval
=$enable_build_warnings; case "${enableval}" in
10951 no
) build_warnings
="-w";;
10952 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10953 build_warnings
="${build_warnings} ${t}";;
10954 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10955 build_warnings
="${t} ${build_warnings}";;
10956 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10958 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
10959 echo "Setting compiler warning flags = $build_warnings" 6>&1
10962 # Check whether --enable-gdb-build-warnings was given.
10963 if test "${enable_gdb_build_warnings+set}" = set; then :
10964 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
10966 no
) build_warnings
="-w";;
10967 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10968 build_warnings
="${build_warnings} ${t}";;
10969 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10970 build_warnings
="${t} ${build_warnings}";;
10971 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10973 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
10974 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10978 # The set of warnings supported by a C++ compiler is not the same as
10979 # of the C compiler.
10981 ac_cpp
='$CXXCPP $CPPFLAGS'
10982 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10983 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10984 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10988 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
10991 $as_echo_n "checking compiler warning flags... " >&6; }
10992 # Separate out the -Werror flag as some files just cannot be
10993 # compiled with it enabled.
10994 for w
in ${build_warnings}; do
10995 # GCC does not complain about -Wno-unknown-warning. Invert
10996 # and test -Wunknown-warning instead.
10999 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
11000 -Wformat-nonliteral)
11001 # gcc requires -Wformat before -Wformat-nonliteral
11002 # will work, so stick them together.
11011 -Werr*) WERROR_CFLAGS
=-Werror ;;
11013 # Check whether GCC accepts it.
11014 saved_CFLAGS
="$CFLAGS"
11015 CFLAGS
="$CFLAGS -Werror $wtest"
11016 saved_CXXFLAGS
="$CXXFLAGS"
11017 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
11018 if test "x$w" = "x-Wunused-variable"; then
11019 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
11020 # fixed in GCC 4.9. This test is derived from the gdb
11021 # source code that triggered this bug in GCC.
11022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h. */
11024 struct scoped_restore_base {};
11025 struct scoped_restore_tmpl : public scoped_restore_base {
11026 ~scoped_restore_tmpl() {}
11031 const scoped_restore_base &b = scoped_restore_tmpl();
11036 if ac_fn_cxx_try_compile
"$LINENO"; then :
11037 WARN_CFLAGS
="${WARN_CFLAGS} $w"
11039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11052 if ac_fn_cxx_try_compile
"$LINENO"; then :
11053 WARN_CFLAGS
="${WARN_CFLAGS} $w"
11055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11057 CFLAGS
="$saved_CFLAGS"
11058 CXXFLAGS
="$saved_CXXFLAGS"
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11062 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11068 ac_cpp='$CPP $CPPFLAGS'
11069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11075 TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
11077 cat >>confdefs.h <<_ACEOF
11078 #define TARGET_WORD_SIZE $TARGET_WORD_SIZE
11085 $as_echo "#define USE_WIN32API 1" >>confdefs.h
11090 ac_config_files
="$ac_config_files Makefile"
11092 cat >confcache
<<\_ACEOF
11093 # This file is a shell script that caches the results of configure
11094 # tests run on this system so they can be shared between configure
11095 # scripts and configure runs, see configure's option --config-cache.
11096 # It is not useful on other systems. If it contains results you don't
11097 # want to keep, you may remove or edit it.
11099 # config.status only pays attention to the cache file if you give it
11100 # the --recheck option to rerun configure.
11102 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11103 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11104 # following values.
11108 # The following way of writing the cache mishandles newlines in values,
11109 # but we know of no workaround that is simple, portable, and efficient.
11110 # So, we kill variables containing newlines.
11111 # Ultrix sh set writes to stderr and can't be redirected directly,
11112 # and sets the high bit in the cache file unless we assign to the vars.
11114 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11115 eval ac_val
=\$
$ac_var
11119 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11120 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11123 _ | IFS | as_nl
) ;; #(
11124 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11125 *) { eval $ac_var=; unset $ac_var;} ;;
11131 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11132 *${as_nl}ac_space
=\
*)
11133 # `set' does not quote correctly, so add quotes: double-quote
11134 # substitution turns \\\\ into \\, and sed turns \\ into \.
11137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11140 # `set' quotes correctly as required by POSIX, so do not add quotes.
11141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11152 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11154 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11155 if test -w "$cache_file"; then
11156 if test "x$cache_file" != "x/dev/null"; then
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11158 $as_echo "$as_me: updating cache $cache_file" >&6;}
11159 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
11160 cat confcache
>"$cache_file"
11162 case $cache_file in #(
11164 mv -f confcache
"$cache_file"$$
&&
11165 mv -f "$cache_file"$$
"$cache_file" ;; #(
11167 mv -f confcache
"$cache_file" ;;
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11173 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11178 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11179 # Let make expand exec_prefix.
11180 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11182 DEFS
=-DHAVE_CONFIG_H
11186 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11187 # 1. Remove the extension, and $U if already installed.
11188 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11189 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
11190 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11191 # will be set to the directory where LIBOBJS objects are built.
11192 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11193 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
11195 LIBOBJS
=$ac_libobjs
11197 LTLIBOBJS
=$ac_ltlibobjs
11200 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11201 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
11202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11205 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11206 if test -n "$am_sleep_pid"; then
11207 # Hide warnings about reused PIDs.
11208 wait $am_sleep_pid 2>/dev
/null
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11211 $as_echo "done" >&6; }
11212 if test -n "$EXEEXT"; then
11214 am__EXEEXT_FALSE
='#'
11216 am__EXEEXT_TRUE
='#'
11220 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11221 as_fn_error $?
"conditional \"AMDEP\" was never defined.
11222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11224 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11225 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
11226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11228 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11229 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
11230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11232 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11233 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
11234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11236 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
11237 as_fn_error $?
"conditional \"SELFTEST\" was never defined.
11238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11241 : "${CONFIG_STATUS=./config.status}"
11243 ac_clean_files_save
=$ac_clean_files
11244 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11246 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11248 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11250 # Generated by $as_me.
11251 # Run this file to recreate the current configuration.
11252 # Compiler output produced by configure, useful for debugging
11253 # configure, is in config.log if it exists.
11256 ac_cs_recheck=false
11259 SHELL=\${CONFIG_SHELL-$SHELL}
11262 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
11263 ## -------------------- ##
11264 ## M4sh Initialization. ##
11265 ## -------------------- ##
11267 # Be more Bourne compatible
11268 DUALCASE
=1; export DUALCASE
# for MKS sh
11269 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
11272 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11273 # is contrary to our usage. Disable this feature.
11274 alias -g '${1+"$@"}'='"$@"'
11275 setopt NO_GLOB_SUBST
11277 case `(set -o) 2>/dev/null` in #(
11289 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11290 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11291 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11292 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11293 # Prefer a ksh shell builtin over an external printf program on Solaris,
11294 # but without wasting forks for bash or zsh.
11295 if test -z "$BASH_VERSION$ZSH_VERSION" \
11296 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11297 as_echo='print
-r --'
11298 as_echo_n='print
-rn --'
11299 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11300 as_echo='printf %s
\n'
11301 as_echo_n='printf %s
'
11303 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11304 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11305 as_echo_n='/usr
/ucb
/echo -n'
11307 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11308 as_echo_n_body='eval
11312 expr "X$arg" : "X\\(.*\\)$as_nl";
11313 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11315 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11317 export as_echo_n_body
11318 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11320 export as_echo_body
11321 as_echo='sh
-c $as_echo_body as_echo
'
11324 # The user is always right.
11325 if test "${PATH_SEPARATOR+set}" != set; then
11327 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11328 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11335 # We need space, tab and new line, in precisely that order. Quoting is
11336 # there to prevent editors from complaining about space-tab.
11337 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11338 # splitting by setting IFS to empty value.)
11341 # Find who we are. Look in the path if we contain no directory separator.
11344 *[\\/]* ) as_myself=$0 ;;
11345 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11349 test -z "$as_dir" && as_dir=.
11350 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11356 # We did not find ourselves, most probably we were run as `sh COMMAND'
11357 # in which case we are not to be found in the path.
11358 if test "x$as_myself" = x
; then
11361 if test ! -f "$as_myself"; then
11362 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11366 # Unset variables that we do not need and which cause bugs (e.g. in
11367 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11368 # suppresses any "Segmentation fault" message there. '((' could
11369 # trigger a bug in pdksh 5.2.14.
11370 for as_var
in BASH_ENV ENV MAIL MAILPATH
11371 do eval test x\
${$as_var+set} = xset \
11372 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11385 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11388 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11389 # ----------------------------------------
11390 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11391 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11392 # script with STATUS, using 1 if that was 0.
11395 as_status
=$1; test $as_status -eq 0 && as_status
=1
11397 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11398 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11400 $as_echo "$as_me: error: $2" >&2
11401 as_fn_exit
$as_status
11405 # as_fn_set_status STATUS
11406 # -----------------------
11407 # Set $? to STATUS, without forking.
11408 as_fn_set_status
()
11411 } # as_fn_set_status
11413 # as_fn_exit STATUS
11414 # -----------------
11415 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11419 as_fn_set_status
$1
11425 # Portably unset VAR.
11428 { eval $1=; unset $1;}
11430 as_unset
=as_fn_unset
11431 # as_fn_append VAR VALUE
11432 # ----------------------
11433 # Append the text in VALUE to the end of the definition contained in VAR. Take
11434 # advantage of any shell optimizations that allow amortized linear growth over
11435 # repeated appends, instead of the typical quadratic growth present in naive
11437 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11438 eval 'as_fn_append ()
11449 # as_fn_arith ARG...
11450 # ------------------
11451 # Perform arithmetic evaluation on the ARGs, and store the result in the
11452 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11453 # must be portable across $(()) and expr.
11454 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11455 eval 'as_fn_arith ()
11462 as_val
=`expr "$@" || test $? -eq 1`
11467 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11468 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11474 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11475 as_basename
=basename
11480 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11486 as_me
=`$as_basename -- "$0" ||
11487 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11488 X"$0" : 'X\(//\)$' \| \
11489 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11491 sed '/^.*\/\([^/][^/]*\)\/*$/{
11505 # Avoid depending upon Character Ranges.
11506 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11507 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11508 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11509 as_cr_digits
='0123456789'
11510 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11512 ECHO_C
= ECHO_N
= ECHO_T
=
11513 case `echo -n x` in #(((((
11515 case `echo 'xy\c'` in
11516 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11518 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11525 rm -f conf$$ conf$$.exe conf$$.
file
11526 if test -d conf$$.dir
; then
11527 rm -f conf$$.dir
/conf$$.
file
11530 mkdir conf$$.dir
2>/dev
/null
11532 if (echo >conf$$.
file) 2>/dev
/null
; then
11533 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11535 # ... but there are two gotchas:
11536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11538 # In both cases, we have to default to `cp -pR'.
11539 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11541 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11549 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11550 rmdir conf$$.dir
2>/dev
/null
11555 # Create "$as_dir" as a directory, including parents if necessary.
11560 -*) as_dir
=.
/$as_dir;;
11562 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11566 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11567 *) as_qdir
=$as_dir;;
11569 as_dirs
="'$as_qdir' $as_dirs"
11570 as_dir
=`$as_dirname -- "$as_dir" ||
11571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11572 X"$as_dir" : 'X\(//\)[^/]' \| \
11573 X"$as_dir" : 'X\(//\)$' \| \
11574 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11575 $as_echo X"$as_dir" |
11576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11580 /^X\(\/\/\)[^/].*/{
11593 test -d "$as_dir" && break
11595 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11596 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11600 if mkdir
-p .
2>/dev
/null
; then
11601 as_mkdir_p
='mkdir -p "$as_dir"'
11603 test -d .
/-p && rmdir .
/-p
11608 # as_fn_executable_p FILE
11609 # -----------------------
11610 # Test if FILE is an executable regular file.
11611 as_fn_executable_p
()
11613 test -f "$1" && test -x "$1"
11614 } # as_fn_executable_p
11615 as_test_x
='test -x'
11616 as_executable_p
=as_fn_executable_p
11618 # Sed expression to map a string onto a valid CPP name.
11619 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11621 # Sed expression to map a string onto a valid variable name.
11622 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11626 ## ----------------------------------- ##
11627 ## Main body of $CONFIG_STATUS script. ##
11628 ## ----------------------------------- ##
11630 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11633 # Save the log message, to keep $0 and so on meaningful, and to
11634 # report actual input values of CONFIG_FILES etc. instead of their
11635 # values after options handling.
11637 This file was extended by gdbsupport $as_me 1.0, which was
11638 generated by GNU Autoconf 2.69. Invocation command line was
11640 CONFIG_FILES = $CONFIG_FILES
11641 CONFIG_HEADERS = $CONFIG_HEADERS
11642 CONFIG_LINKS = $CONFIG_LINKS
11643 CONFIG_COMMANDS = $CONFIG_COMMANDS
11646 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11651 case $ac_config_files in *"
11652 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11655 case $ac_config_headers in *"
11656 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11661 # Files that config.status was made for.
11662 config_files="$ac_config_files"
11663 config_headers="$ac_config_headers"
11664 config_commands="$ac_config_commands"
11668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11670 \`$as_me' instantiates files and other configuration actions
11671 from templates according to the current configuration. Unless the files
11672 and actions are specified as TAGs, all are instantiated by default.
11674 Usage: $0 [OPTION]... [TAG]...
11676 -h, --help print this help, then exit
11677 -V, --version print version number and configuration settings, then exit
11678 --config print configuration, then exit
11679 -q, --quiet, --silent
11680 do not print progress messages
11681 -d, --debug don't remove temporary files
11682 --recheck update $as_me by reconfiguring in the same conditions
11683 --file=FILE[:TEMPLATE]
11684 instantiate the configuration file FILE
11685 --header=FILE[:TEMPLATE]
11686 instantiate the configuration header FILE
11688 Configuration files:
11691 Configuration headers:
11694 Configuration commands:
11697 Report bugs to the package provider."
11700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11701 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11703 gdbsupport config.status 1.0
11704 configured by $0, generated by GNU Autoconf 2.69,
11705 with options \\"\$ac_cs_config\\"
11707 Copyright (C) 2012 Free Software Foundation, Inc.
11708 This config.status script is free software; the Free Software Foundation
11709 gives unlimited permission to copy, distribute and modify it."
11716 test -n "\$AWK" || AWK=awk
11719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11720 # The default lists apply if the user does not specify any file.
11726 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11727 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11731 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11743 # Handling of the options.
11744 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11746 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11747 $as_echo "$ac_cs_version"; exit ;;
11748 --config |
--confi |
--conf |
--con |
--co |
--c )
11749 $as_echo "$ac_cs_config"; exit ;;
11750 --debug |
--debu |
--deb |
--de |
--d |
-d )
11752 --file |
--fil |
--fi |
--f )
11755 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11756 '') as_fn_error $?
"missing file argument" ;;
11758 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11759 ac_need_defaults
=false
;;
11760 --header |
--heade |
--head |
--hea )
11763 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11765 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11766 ac_need_defaults
=false
;;
11768 # Conflict between --help and --header
11769 as_fn_error $?
"ambiguous option: \`$1'
11770 Try \`$0 --help' for more information.";;
11771 --help |
--hel |
-h )
11772 $as_echo "$ac_cs_usage"; exit ;;
11773 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11774 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11777 # This is an error.
11778 -*) as_fn_error $?
"unrecognized option: \`$1'
11779 Try \`$0 --help' for more information." ;;
11781 *) as_fn_append ac_config_targets
" $1"
11782 ac_need_defaults
=false
;;
11788 ac_configure_extra_args
=
11790 if $ac_cs_silent; then
11792 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11797 if \$ac_cs_recheck; then
11798 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11800 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11801 CONFIG_SHELL='$SHELL'
11802 export CONFIG_SHELL
11807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11811 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11812 ## Running $as_me. ##
11818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11822 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11828 # Handling of arguments.
11829 for ac_config_target
in $ac_config_targets
11831 case $ac_config_target in
11832 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
11833 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
11834 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11836 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11841 # If the user did not use the arguments to specify the items to instantiate,
11842 # then the envvar interface is used. Set only those that are not.
11843 # We use the long form for the default assignment because of an extremely
11844 # bizarre bug on SunOS 4.1.3.
11845 if $ac_need_defaults; then
11846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11851 # Have a temporary directory for convenience. Make it in the build tree
11852 # simply because there is no reason against having it here, and in addition,
11853 # creating and moving files from /tmp can sometimes cause problems.
11854 # Hook for its removal unless debugging.
11855 # Note that there is a small window in which the directory will not be cleaned:
11856 # after its creation but before its name has been assigned to `$tmp'.
11860 trap 'exit_status=$?
11861 : "${ac_tmp:=$tmp}"
11862 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11864 trap 'as_fn_exit 1' 1 2 13 15
11866 # Create a (secure) tmp directory for tmp files.
11869 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11873 tmp
=.
/conf$$
-$RANDOM
11874 (umask 077 && mkdir
"$tmp")
11875 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11878 # Set up the scripts for CONFIG_FILES section.
11879 # No need to generate them if there are no CONFIG_FILES.
11880 # This happens for instance with `./config.status config.h'.
11881 if test -n "$CONFIG_FILES"; then
11884 ac_cr
=`echo X | tr X '\015'`
11885 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11886 # But we know of no other shell where ac_cr would be empty at this
11887 # point, so we can use a bashism as a fallback.
11888 if test "x$ac_cr" = x
; then
11889 eval ac_cr
=\$
\'\\r
\'
11891 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11892 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11895 ac_cs_awk_cr
=$ac_cr
11898 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11903 echo "cat >conf$$subs.awk <<_ACEOF" &&
11904 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11906 } >conf$$subs.sh ||
11907 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11908 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11910 for ac_last_try in false false false false false :; do
11911 . ./conf$$subs.sh ||
11912 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11914 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11915 if test $ac_delim_n = $ac_delim_num; then
11917 elif $ac_last_try; then
11918 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11920 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11923 rm -f conf$$subs.sh
11925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11926 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11930 s/^/S["/; s
/!.
*/"]=/
11940 s/\(.\{148\}\)..*/\1/
11942 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11947 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11954 s/\(.\{148\}\)..*/\1/
11956 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11960 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11965 ' <conf$$subs.awk | sed '
11970 ' >>$CONFIG_STATUS || ac_write_fail=1
11971 rm -f conf$$subs.awk
11972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11974 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11975 for (key in S) S_is_set[key] = 1
11981 nfields = split(line, field, "@
")
11983 len = length(field[1])
11984 for (i = 2; i < nfields; i++) {
11986 keylen = length(key)
11987 if (S_is_set[key]) {
11989 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11990 len += length(value) + length(field[++i])
12001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12002 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12003 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
12006 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
12007 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
12010 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12011 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
12012 # trailing colons and then remove the whole line if VPATH becomes empty
12013 # (actually we leave an empty line to preserve line numbers).
12014 if test "x
$srcdir" = x.; then
12015 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12034 fi # test -n "$CONFIG_FILES"
12036 # Set up the scripts for CONFIG_HEADERS section.
12037 # No need to generate them if there are no CONFIG_HEADERS.
12038 # This happens for instance with `./config.status Makefile'.
12039 if test -n "$CONFIG_HEADERS"; then
12040 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
12044 # Transform confdefs.h into an awk script `defines.awk', embedded as
12045 # here-document in config.status, that substitutes the proper values into
12046 # config.h.in to produce config.h.
12048 # Create a delimiter string that does not exist in confdefs.h, to ease
12049 # handling of long lines.
12051 for ac_last_try in false false :; do
12052 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
12053 if test -z "$ac_tt"; then
12055 elif $ac_last_try; then
12056 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
12058 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12062 # For the awk script, D is an array of macro values keyed by name,
12063 # likewise P contains macro parameters if any. Preserve backslash
12064 # newline sequences.
12066 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12068 s/.\{148\}/&'"$ac_delim"'/g
12071 s/^[ ]*#[ ]*define[ ][ ]*/ /
12078 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12080 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12084 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12085 D["\
1"]=" \
3\\\\\\n
"\\/p
12087 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12092 s/.\{148\}/&'"$ac_delim"'/g
12097 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12100 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12102 ' <confdefs.h | sed '
12103 s/'"$ac_delim"'/"\\\
12104 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12107 for (key in D) D_is_set[key] = 1
12110 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12112 split(line, arg, " ")
12113 if (arg[1] == "#") {
12117 defundef
= substr
(arg
[1], 2)
12120 split(mac1
, mac2
, "(") #)
12122 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
12123 if (D_is_set
[macro
]) {
12124 # Preserve the white space surrounding the "#".
12125 print prefix
"define", macro P
[macro
] D
[macro
]
12128 # Replace #undef with comments. This is necessary, for example,
12129 # in the case of _POSIX_SOURCE, which is predefined and required
12130 # on some systems where configure will not decide to define it.
12131 if (defundef
== "undef") {
12132 print
"/*", prefix defundef
, macro
, "*/"
12140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12141 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
12142 fi # test -n "$CONFIG_HEADERS"
12145 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12150 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12152 case $ac_mode$ac_tag in
12154 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
12155 :[FH
]-) ac_tag
=-:-;;
12156 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12173 -) ac_f
="$ac_tmp/stdin";;
12174 *) # Look for the file first in the build tree, then in the source tree
12175 # (if the path is not absolute). The absolute path cannot be DOS-style,
12176 # because $ac_f cannot contain `:'.
12180 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12182 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12184 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12185 as_fn_append ac_file_inputs
" '$ac_f'"
12188 # Let's still pretend it is `configure' which instantiates (i.e., don't
12189 # use $as_me), people would be surprised to read:
12190 # /* config.h. Generated by config.status. */
12191 configure_input
='Generated from '`
12192 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12194 if test x
"$ac_file" != x-
; then
12195 configure_input
="$ac_file. $configure_input"
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12197 $as_echo "$as_me: creating $ac_file" >&6;}
12199 # Neutralize special characters interpreted by sed in replacement strings.
12200 case $configure_input in #(
12201 *\
&* |
*\|
* |
*\\* )
12202 ac_sed_conf_input
=`$as_echo "$configure_input" |
12203 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12204 *) ac_sed_conf_input
=$configure_input;;
12208 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
12209 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
12214 ac_dir
=`$as_dirname -- "$ac_file" ||
12215 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12216 X"$ac_file" : 'X\(//\)[^/]' \| \
12217 X"$ac_file" : 'X\(//\)$' \| \
12218 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12219 $as_echo X"$ac_file" |
12220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12224 /^X\(\/\/\)[^/].*/{
12237 as_dir
="$ac_dir"; as_fn_mkdir_p
12241 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12243 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12244 # A ".." for each directory in $ac_dir_suffix.
12245 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12246 case $ac_top_builddir_sub in
12247 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12248 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12251 ac_abs_top_builddir
=$ac_pwd
12252 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12253 # for backward compatibility:
12254 ac_top_builddir
=$ac_top_build_prefix
12257 .
) # We are building in place.
12259 ac_top_srcdir
=$ac_top_builddir_sub
12260 ac_abs_top_srcdir
=$ac_pwd ;;
12261 [\\/]* | ?
:[\\/]* ) # Absolute name.
12262 ac_srcdir
=$srcdir$ac_dir_suffix;
12263 ac_top_srcdir
=$srcdir
12264 ac_abs_top_srcdir
=$srcdir ;;
12265 *) # Relative name.
12266 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12267 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12268 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12270 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12280 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12281 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12283 ac_MKDIR_P
=$MKDIR_P
12285 [\\/$
]* | ?
:[\\/]* ) ;;
12286 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
12290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12291 # If the template does not know about datarootdir, expand it.
12292 # FIXME: This hack should be removed a few years after 2.60.
12293 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12304 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12305 *datarootdir
*) ac_datarootdir_seen
=yes;;
12306 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12308 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12311 ac_datarootdir_hack='
12312 s&@datadir@&$datadir&g
12313 s&@docdir@&$docdir&g
12314 s&@infodir@&$infodir&g
12315 s&@localedir@&$localedir&g
12316 s&@mandir@&$mandir&g
12317 s&\\\${datarootdir}&$datarootdir&g' ;;
12321 # Neutralize VPATH when `$srcdir' = `.'.
12322 # Shell code in configure.ac might set extrasub.
12323 # FIXME: do we really want to maintain this feature?
12324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12325 ac_sed_extra="$ac_vpsub
12328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12330 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12331 s|@configure_input@|
$ac_sed_conf_input|
;t t
12332 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12333 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12334 s
&@srcdir@
&$ac_srcdir&;t t
12335 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12336 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12337 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12338 s
&@builddir@
&$ac_builddir&;t t
12339 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12340 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12341 s
&@INSTALL@
&$ac_INSTALL&;t t
12342 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
12343 $ac_datarootdir_hack
12345 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
12346 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12348 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12349 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
12350 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12351 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12353 which seems to be undefined. Please make sure it is defined" >&5
12354 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12355 which seems to be undefined. Please make sure it is defined" >&2;}
12357 rm -f "$ac_tmp/stdin"
12359 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12360 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12368 if test x"$ac_file" != x-; then
12370 $as_echo "/* $configure_input */" \
12371 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12372 } >"$ac_tmp/config.h" \
12373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12374 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12376 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12379 mv "$ac_tmp/config.h" "$ac_file" \
12380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12383 $as_echo "/* $configure_input */" \
12384 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12385 || as_fn_error $? "could not create -" "$LINENO" 5
12387 # Compute "$ac_file"'s index
in $config_headers.
12390 for _am_header
in $config_headers :; do
12391 case $_am_header in
12392 $_am_arg |
$_am_arg:* )
12395 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
12398 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12399 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12400 X"$_am_arg" : 'X\(//\)[^/]' \| \
12401 X"$_am_arg" : 'X\(//\)$' \| \
12402 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12403 $as_echo X"$_am_arg" |
12404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12408 /^X\(\/\/\)[^/].*/{
12420 s/.*/./; q'`/stamp-h
$_am_stamp_count
12423 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12424 $as_echo "$as_me: executing $ac_file commands" >&6;}
12429 case $ac_file$ac_mode in
12430 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
12431 # Older Autoconf quotes --file arguments for eval, but not when files
12432 # are listed without --file. Let's play safe and only enable the eval
12433 # if we detect the quoting.
12434 case $CONFIG_FILES in
12435 *\'*) eval set x
"$CONFIG_FILES" ;;
12436 *) set x
$CONFIG_FILES ;;
12441 # Strip MF so we end up with the name of the file.
12442 mf
=`echo "$mf" | sed -e 's/:.*$//'`
12443 # Check whether this is an Automake generated Makefile or not.
12444 # We used to match only the files named 'Makefile.in', but
12445 # some people rename them; so instead we look at the file content.
12446 # Grep'ing the first line is not enough: some people post-process
12447 # each Makefile.in and add a new line on top of each file to say so.
12448 # Grep'ing the whole file is not good either: AIX grep has a line
12449 # limit of 2048, but all sed's we know have understand at least 4000.
12450 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
12451 dirpart
=`$as_dirname -- "$mf" ||
12452 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12453 X"$mf" : 'X\(//\)[^/]' \| \
12454 X"$mf" : 'X\(//\)$' \| \
12455 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12461 /^X\(\/\/\)[^/].*/{
12477 # Extract the definition of DEPDIR, am__include, and am__quote
12478 # from the Makefile without running 'make'.
12479 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
12480 test -z "$DEPDIR" && continue
12481 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
12482 test -z "$am__include" && continue
12483 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
12484 # Find all dependency output files, they are included files with
12485 # $(DEPDIR) in their names. We invoke sed twice because it is the
12486 # simplest approach to changing $(DEPDIR) to its actual value in the
12488 for file in `sed -n "
12489 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12490 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12491 # Make sure the directory exists.
12492 test -f "$dirpart/$file" && continue
12493 fdir
=`$as_dirname -- "$file" ||
12494 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12495 X"$file" : 'X\(//\)[^/]' \| \
12496 X"$file" : 'X\(//\)$' \| \
12497 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12498 $as_echo X"$file" |
12499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12503 /^X\(\/\/\)[^/].*/{
12516 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
12517 # echo "creating $dirpart/$file"
12518 echo '# dummy' > "$dirpart/$file"
12530 ac_clean_files
=$ac_clean_files_save
12532 test $ac_write_fail = 0 ||
12533 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
12536 # configure is writing to config.log, and then calls config.status.
12537 # config.status does its own redirection, appending to config.log.
12538 # Unfortunately, on DOS this fails, as config.log is still kept open
12539 # by configure, so config.status won't be able to write to it; its
12540 # output is simply discarded. So we exec the FD to /dev/null,
12541 # effectively closing config.log, so it can be properly (re)opened and
12542 # appended to by config.status. When coming back to configure, we
12543 # need to make the FD available again.
12544 if test "$no_create" != yes; then
12546 ac_config_status_args
=
12547 test "$silent" = yes &&
12548 ac_config_status_args
="$ac_config_status_args --quiet"
12550 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12552 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12553 # would make configure fail if this is the last instruction.
12554 $ac_cs_success || as_fn_exit
1
12556 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12558 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}