2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="server.cc"
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
='LTLIBOBJS
690 INSTALL_STRIP_PROGRAM
707 MAINTAINER_MODE_FALSE
736 program_transform_name
749 enable_option_checking
750 enable_maintainer_mode
759 with_libxxhash_prefix
766 enable_build_warnings
767 enable_gdb_build_warnings
771 enable_inprocess_agent
773 ac_precious_vars
='build_alias
787 # Initialize some variables set by options.
789 ac_init_version
=false
790 ac_unrecognized_opts
=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
801 program_transform_name
=s
,x
,x
,
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir
='${exec_prefix}/bin'
816 sbindir
='${exec_prefix}/sbin'
817 libexecdir
='${exec_prefix}/libexec'
818 datarootdir
='${prefix}/share'
819 datadir
='${datarootdir}'
820 sysconfdir
='${prefix}/etc'
821 sharedstatedir
='${prefix}/com'
822 localstatedir
='${prefix}/var'
823 includedir
='${prefix}/include'
824 oldincludedir
='/usr/include'
825 docdir
='${datarootdir}/doc/${PACKAGE}'
826 infodir
='${datarootdir}/info'
831 libdir
='${exec_prefix}/lib'
832 localedir
='${datarootdir}/locale'
833 mandir
='${datarootdir}/man'
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\
$ac_option
847 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 # Accept the important Cygnus configure options, so we can diagnose typos.
854 case $ac_dashdash$ac_option in
858 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
860 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
863 -build |
--build |
--buil |
--bui |
--bu)
864 ac_prev
=build_alias
;;
865 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
866 build_alias
=$ac_optarg ;;
868 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
869 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
870 ac_prev
=cache_file
;;
871 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
872 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
873 cache_file
=$ac_optarg ;;
876 cache_file
=config.cache
;;
878 -datadir |
--datadir |
--datadi |
--datad)
880 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
881 datadir
=$ac_optarg ;;
883 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
884 |
--dataroo |
--dataro |
--datar)
885 ac_prev
=datarootdir
;;
886 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
887 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
888 datarootdir
=$ac_optarg ;;
890 -disable-* |
--disable-*)
891 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
894 as_fn_error $?
"invalid feature name: $ac_useropt"
895 ac_useropt_orig
=$ac_useropt
896 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
901 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep
=', ';;
904 eval enable_
$ac_useropt=no
;;
906 -docdir |
--docdir |
--docdi |
--doc |
--do)
908 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
911 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
913 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
916 -enable-* |
--enable-*)
917 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
920 as_fn_error $?
"invalid feature name: $ac_useropt"
921 ac_useropt_orig
=$ac_useropt
922 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
927 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep
=', ';;
930 eval enable_
$ac_useropt=\
$ac_optarg ;;
932 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
933 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
934 |
--exec |
--exe |
--ex)
935 ac_prev
=exec_prefix
;;
936 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
937 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
938 |
--exec=* |
--exe=* |
--ex=*)
939 exec_prefix
=$ac_optarg ;;
941 -gas |
--gas |
--ga |
--g)
942 # Obsolete; use --with-gas.
945 -help |
--help |
--hel |
--he |
-h)
947 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
948 ac_init_help
=recursive
;;
949 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
950 ac_init_help
=short
;;
952 -host |
--host |
--hos |
--ho)
953 ac_prev
=host_alias
;;
954 -host=* |
--host=* |
--hos=* |
--ho=*)
955 host_alias
=$ac_optarg ;;
957 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
959 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
961 htmldir
=$ac_optarg ;;
963 -includedir |
--includedir |
--includedi |
--included |
--include \
964 |
--includ |
--inclu |
--incl |
--inc)
965 ac_prev
=includedir
;;
966 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
967 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
968 includedir
=$ac_optarg ;;
970 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
972 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
973 infodir
=$ac_optarg ;;
975 -libdir |
--libdir |
--libdi |
--libd)
977 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
980 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
981 |
--libexe |
--libex |
--libe)
982 ac_prev
=libexecdir
;;
983 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
984 |
--libexe=* |
--libex=* |
--libe=*)
985 libexecdir
=$ac_optarg ;;
987 -localedir |
--localedir |
--localedi |
--localed |
--locale)
989 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
990 localedir
=$ac_optarg ;;
992 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
993 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
994 ac_prev
=localstatedir
;;
995 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
996 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
997 localstatedir
=$ac_optarg ;;
999 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1001 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1002 mandir
=$ac_optarg ;;
1004 -nfp |
--nfp |
--nf)
1005 # Obsolete; use --without-fp.
1008 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1009 |
--no-cr |
--no-c |
-n)
1012 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1013 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1016 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1017 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1018 |
--oldin |
--oldi |
--old |
--ol |
--o)
1019 ac_prev
=oldincludedir
;;
1020 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1021 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1022 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1023 oldincludedir
=$ac_optarg ;;
1025 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1027 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1028 prefix
=$ac_optarg ;;
1030 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1031 |
--program-pre |
--program-pr |
--program-p)
1032 ac_prev
=program_prefix
;;
1033 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1034 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1035 program_prefix
=$ac_optarg ;;
1037 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1038 |
--program-suf |
--program-su |
--program-s)
1039 ac_prev
=program_suffix
;;
1040 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1041 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1042 program_suffix
=$ac_optarg ;;
1044 -program-transform-name |
--program-transform-name \
1045 |
--program-transform-nam |
--program-transform-na \
1046 |
--program-transform-n |
--program-transform- \
1047 |
--program-transform |
--program-transfor \
1048 |
--program-transfo |
--program-transf \
1049 |
--program-trans |
--program-tran \
1050 |
--progr-tra |
--program-tr |
--program-t)
1051 ac_prev
=program_transform_name
;;
1052 -program-transform-name=* |
--program-transform-name=* \
1053 |
--program-transform-nam=* |
--program-transform-na=* \
1054 |
--program-transform-n=* |
--program-transform-=* \
1055 |
--program-transform=* |
--program-transfor=* \
1056 |
--program-transfo=* |
--program-transf=* \
1057 |
--program-trans=* |
--program-tran=* \
1058 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1059 program_transform_name
=$ac_optarg ;;
1061 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1063 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1064 pdfdir
=$ac_optarg ;;
1066 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1068 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1071 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1072 |
-silent |
--silent |
--silen |
--sile |
--sil)
1075 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1077 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1079 sbindir
=$ac_optarg ;;
1081 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1082 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1083 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1085 ac_prev
=sharedstatedir
;;
1086 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1087 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1088 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1090 sharedstatedir
=$ac_optarg ;;
1092 -site |
--site |
--sit)
1094 -site=* |
--site=* |
--sit=*)
1097 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1099 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1100 srcdir
=$ac_optarg ;;
1102 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1103 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1104 ac_prev
=sysconfdir
;;
1105 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1106 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1107 sysconfdir
=$ac_optarg ;;
1109 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1110 ac_prev
=target_alias
;;
1111 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1112 target_alias
=$ac_optarg ;;
1114 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1117 -version |
--version |
--versio |
--versi |
--vers |
-V)
1118 ac_init_version
=: ;;
1121 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1124 as_fn_error $?
"invalid package name: $ac_useropt"
1125 ac_useropt_orig
=$ac_useropt
1126 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1131 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep
=', ';;
1134 eval with_
$ac_useropt=\
$ac_optarg ;;
1136 -without-* |
--without-*)
1137 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1140 as_fn_error $?
"invalid package name: $ac_useropt"
1141 ac_useropt_orig
=$ac_useropt
1142 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1147 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep
=', ';;
1150 eval with_
$ac_useropt=no
;;
1153 # Obsolete; use --with-x.
1156 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1157 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1158 ac_prev
=x_includes
;;
1159 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1160 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1161 x_includes
=$ac_optarg ;;
1163 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1164 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1165 ac_prev
=x_libraries
;;
1166 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1167 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1168 x_libraries
=$ac_optarg ;;
1170 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information"
1175 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1179 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1181 eval $ac_envvar=\
$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 if test -n "$ac_prev"; then
1196 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error $?
"missing argument to $ac_option"
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1203 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 # Check all directory arguments for consistency.
1209 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1214 eval ac_val
=\$
$ac_var
1215 # Remove trailing slashes.
1218 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\
$ac_val;;
1221 # Be sure to have absolute directory names.
1223 [\\/$
]* | ?
:[\\/]* ) continue;;
1224 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1226 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1234 target
=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x
; then
1238 if test "x$build_alias" = x
; then
1239 cross_compiling
=maybe
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1248 test "$silent" = yes && exec 6>/dev
/null
1251 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di
=`ls -di .` &&
1253 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $?
"working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $?
"pwd does not report name of working directory"
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted
=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir
=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1291 ac_srcdir_defaulted
=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1295 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1297 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1309 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 for ac_var
in $ac_precious_vars; do
1312 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1314 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1325 \`configure' configures this package to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1388 --build=BUILD configure
for building on BUILD
[guessed
]
1389 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1390 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1394 if test -n "$ac_init_help"; then
1399 --disable-option-checking ignore unrecognized
--enable/--with options
1400 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1401 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1402 --enable-maintainer-mode
1403 enable make rules and dependencies not useful
(and
1404 sometimes confusing
) to the casual installer
1405 --disable-largefile omit support
for large files
1406 --enable-threading include support
for parallel processing of data
1408 --disable-rpath do not hardcode runtime library paths
1409 --enable-unit-tests Enable the inclusion of unit tests when compiling
1411 --enable-werror treat compile warnings as errors
1412 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1413 --enable-gdb-build-warnings
1414 enable GDB specific build-time compiler warnings
if
1416 --enable-inprocess-agent
1420 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1421 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1422 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1423 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1424 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1425 --without-libipt-prefix don
't search for libipt in includedir and libdir
1426 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1427 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1428 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1429 --without-libxxhash-prefix don't search
for libxxhash
in includedir and libdir
1430 --with-libxxhash-type=TYPE
type of library to search
for (auto
/static
/shared
)
1431 --with-ust=PATH Specify prefix directory
for the installed UST package
1432 Equivalent to
--with-ust-include=PATH
/include
1433 plus
--with-ust-lib=PATH
/lib
1434 --with-ust-include=PATH Specify directory
for installed UST include files
1435 --with-ust-lib=PATH Specify the directory
for the installed UST library
1436 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1437 --with-bugurl=URL Direct users to URL to report a bug
1438 --with-libthread-db=PATH
1439 use given libthread_db directly
1441 Some influential environment variables
:
1442 CC C compiler
command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1445 nonstandard directory
<lib dir
>
1446 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1447 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1448 you have headers
in a nonstandard directory
<include dir
>
1449 CXX C
++ compiler
command
1450 CXXFLAGS C
++ compiler flags
1453 Use these variables to override the choices made by
`configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1456 Report bugs to the package provider.
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1486 .) # We are building in place.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1520 generated by GNU Autoconf 2.69
1522 Copyright (C) 2012 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1543 *) ac_try_echo
=$ac_try;;
1545 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1549 if test -s conftest.err
; then
1550 grep -v '^ *+' conftest.err
>conftest.er1
1551 cat conftest.er1
>&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.
$ac_objext; then :
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.
$ac_ext >&5
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status
$ac_retval
1569 } # ac_fn_c_try_compile
1571 # ac_fn_cxx_try_compile LINENO
1572 # ----------------------------
1573 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_cxx_try_compile
()
1576 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1577 rm -f conftest.
$ac_objext
1578 if { { ac_try
="$ac_compile"
1580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_compile") 2>conftest.err
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_cxx_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest.$ac_objext; then :
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1607 } # ac_fn_cxx_try_compile
1609 # ac_fn_c_try_cpp LINENO
1610 # ----------------------
1611 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1618 *) ac_try_echo
=$ac_try;;
1620 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 if test -s conftest.err
; then
1625 grep -v '^ *+' conftest.err
>conftest.er1
1626 cat conftest.er1
>&5
1627 mv -f conftest.er1 conftest.err
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } > conftest.i
&& {
1631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.
$ac_ext >&5
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status
$ac_retval
1646 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1647 # -------------------------------------------------------
1648 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1649 # the include files in INCLUDES and setting the cache variable VAR
1651 ac_fn_c_check_header_mongrel
()
1653 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1654 if eval \
${$3+:} false
; then :
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if eval \
${$3+:} false
; then :
1658 $as_echo_n "(cached) " >&6
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1664 # Is the header compilable?
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1666 $as_echo_n "checking $2 usability... " >&6; }
1667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1672 if ac_fn_c_try_compile
"$LINENO"; then :
1673 ac_header_compiler
=yes
1675 ac_header_compiler
=no
1677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1679 $as_echo "$ac_header_compiler" >&6; }
1681 # Is the header present?
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1683 $as_echo_n "checking $2 presence... " >&6; }
1684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1688 if ac_fn_c_try_cpp
"$LINENO"; then :
1689 ac_header_preproc
=yes
1691 ac_header_preproc
=no
1693 rm -f conftest.err conftest.i conftest.
$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1695 $as_echo "$ac_header_preproc" >&6; }
1697 # So? What about this header?
1698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1701 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1707 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1709 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1711 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1713 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if eval \
${$3+:} false
; then :
1721 $as_echo_n "(cached) " >&6
1723 eval "$3=\$ac_header_compiler"
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 } # ac_fn_c_check_header_mongrel
1733 # ac_fn_c_try_run LINENO
1734 # ----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1736 # that executables *can* be run.
1739 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1740 if { { ac_try
="$ac_link"
1742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>&5
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1751 { { case "(($ac_try" in
1752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1753 *) ac_try_echo
=$ac_try;;
1755 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_try") 2>&5
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; }; }; then :
1763 $as_echo "$as_me: program exited with status $ac_status" >&5
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.
$ac_ext >&5
1767 ac_retval
=$ac_status
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status
$ac_retval
1775 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists and can be compiled using the include files in
1778 # INCLUDES, setting the cache variable VAR accordingly.
1779 ac_fn_c_check_header_compile
()
1781 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \
${$3+:} false
; then :
1785 $as_echo_n "(cached) " >&6
1787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1792 if ac_fn_c_try_compile
"$LINENO"; then :
1797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 } # ac_fn_c_check_header_compile
1806 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1807 # -------------------------------------------
1808 # Tests whether TYPE exists after having included INCLUDES, setting cache
1809 # variable VAR accordingly.
1810 ac_fn_c_check_type
()
1812 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \
${$3+:} false
; then :
1816 $as_echo_n "(cached) " >&6
1819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1831 if ac_fn_c_try_compile
"$LINENO"; then :
1832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1844 if ac_fn_c_try_compile
"$LINENO"; then :
1849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 } # ac_fn_c_check_type
1860 # ac_fn_c_try_link LINENO
1861 # -----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1865 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1866 rm -f conftest.
$ac_objext conftest
$ac_exeext
1867 if { { ac_try
="$ac_link"
1869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_c_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 test -x conftest$ac_exeext
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_link
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915 $as_echo_n "(cached) " >&6
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921 #define $2 innocuous_$2
1923 /* System header to define __stub macros and hopefully few prototypes,
1924 which can conflict with char $2 (); below.
1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926 <limits.h> exists even on freestanding compilers. */
1929 # include <limits.h>
1931 # include <assert.h>
1936 /* Override any GCC internal prototype to avoid an error.
1937 Use char because int might match the return type of a GCC
1938 builtin and then its argument prototype would still apply. */
1943 /* The GNU C library defines this for functions which it implements
1944 to always fail with ENOSYS. Some functions are actually named
1945 something starting with __ and the normal name is an alias. */
1946 #if defined __stub_$2 || defined __stub___$2
1958 if ac_fn_c_try_link "$LINENO"; then :
1963 rm -f core conftest.err conftest.$ac_objext \
1964 conftest$ac_exeext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 } # ac_fn_c_check_func
1973 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1974 # ---------------------------------------------
1975 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1977 ac_fn_c_check_decl ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1981 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1983 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1984 if eval \${$3+:} false; then :
1985 $as_echo_n "(cached) " >&6
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1993 #ifndef $as_decl_name
1995 (void) $as_decl_use;
1997 (void) $as_decl_name;
2005 if ac_fn_c_try_compile "$LINENO"; then :
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 } # ac_fn_c_check_decl
2019 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2020 # ----------------------------------------------------
2021 # Tries to find if the field MEMBER exists in type AGGR, after including
2022 # INCLUDES, setting cache variable VAR accordingly.
2023 ac_fn_c_check_member ()
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2027 $as_echo_n "checking for $2.$3... " >&6; }
2028 if eval \${$4+:} false; then :
2029 $as_echo_n "(cached) " >&6
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2044 if ac_fn_c_try_compile "$LINENO"; then :
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2054 if (sizeof ac_aggr.$3)
2060 if ac_fn_c_try_compile "$LINENO"; then :
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 } # ac_fn_c_check_member
2076 # ac_fn_cxx_try_link LINENO
2077 # -------------------------
2078 # Try to link conftest.$ac_ext, and return whether this succeeded.
2079 ac_fn_cxx_try_link ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 rm -f conftest.$ac_objext conftest$ac_exeext
2083 if { { ac_try="$ac_link"
2085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2086 *) ac_try_echo
=$ac_try;;
2088 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_link") 2>conftest.err
2092 if test -s conftest.err
; then
2093 grep -v '^ *+' conftest.err
>conftest.er1
2094 cat conftest.er1
>&5
2095 mv -f conftest.er1 conftest.err
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; } && {
2099 test -z "$ac_cxx_werror_flag" ||
2100 test ! -s conftest.err
2101 } && test -s conftest
$ac_exeext && {
2102 test "$cross_compiling" = yes ||
2103 test -x conftest
$ac_exeext
2107 $as_echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.
$ac_ext >&5
2112 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2113 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2114 # interfere with the next link command; also delete a directory that is
2115 # left behind by Apple's compiler. We do this before executing the actions.
2116 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 as_fn_set_status
$ac_retval
2120 } # ac_fn_cxx_try_link
2122 # ac_fn_cxx_check_func LINENO FUNC VAR
2123 # ------------------------------------
2124 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2125 ac_fn_cxx_check_func
()
2127 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \
${$3+:} false
; then :
2131 $as_echo_n "(cached) " >&6
2133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2135 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2137 #define $2 innocuous_$2
2139 /* System header to define __stub macros and hopefully few prototypes,
2140 which can conflict with char $2 (); below.
2141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2142 <limits.h> exists even on freestanding compilers. */
2145 # include <limits.h>
2147 # include <assert.h>
2152 /* Override any GCC internal prototype to avoid an error.
2153 Use char because int might match the return type of a GCC
2154 builtin and then its argument prototype would still apply. */
2159 /* The GNU C library defines this for functions which it implements
2160 to always fail with ENOSYS. Some functions are actually named
2161 something starting with __ and the normal name is an alias. */
2162 #if defined __stub_$2 || defined __stub___$2
2174 if ac_fn_cxx_try_link
"$LINENO"; then :
2179 rm -f core conftest.err conftest.
$ac_objext \
2180 conftest
$ac_exeext conftest.
$ac_ext
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187 } # ac_fn_cxx_check_func
2189 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2190 # --------------------------------------------
2191 # Tries to find the compile-time value of EXPR in a program that includes
2192 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2194 ac_fn_c_compute_int
()
2196 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2197 if test "$cross_compiling" = yes; then
2198 # Depending upon the size, compute the lo and hi bounds.
2199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2205 static int test_array [1 - 2 * !(($2) >= 0)];
2207 return test_array [0];
2213 if ac_fn_c_try_compile
"$LINENO"; then :
2216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2222 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2224 return test_array [0];
2230 if ac_fn_c_try_compile
"$LINENO"; then :
2231 ac_hi
=$ac_mid; break
2233 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2234 if test $ac_lo -le $ac_mid; then
2238 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) < 0)];
2251 return test_array [0];
2257 if ac_fn_c_try_compile
"$LINENO"; then :
2260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2266 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2268 return test_array [0];
2274 if ac_fn_c_try_compile
"$LINENO"; then :
2275 ac_lo
=$ac_mid; break
2277 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2278 if test $ac_mid -le $ac_hi; then
2282 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2292 # Binary search between lo and hi bounds.
2293 while test "x$ac_lo" != "x$ac_hi"; do
2294 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2301 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2303 return test_array [0];
2309 if ac_fn_c_try_compile
"$LINENO"; then :
2312 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2317 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2324 static long int longval () { return $2; }
2325 static unsigned long int ulongval () { return $2; }
2332 FILE *f = fopen ("conftest.val", "w");
2337 long int i = longval ();
2340 fprintf (f, "%ld", i);
2344 unsigned long int i = ulongval ();
2347 fprintf (f, "%lu", i);
2349 /* Do not output a trailing newline, as this causes \r\n confusion
2350 on some platforms. */
2351 return ferror (f) || fclose (f) != 0;
2357 if ac_fn_c_try_run
"$LINENO"; then :
2358 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2362 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2363 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 as_fn_set_status
$ac_retval
2370 } # ac_fn_c_compute_int
2371 cat >config.log
<<_ACEOF
2372 This file contains any messages produced by compilers while
2373 running configure, to aid debugging if configure makes a mistake.
2375 It was created by $as_me, which was
2376 generated by GNU Autoconf 2.69. Invocation command line was
2388 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2389 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2390 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2391 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2392 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2394 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2395 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2397 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2398 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2399 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2400 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2401 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2402 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2403 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir
=.
2412 $as_echo "PATH: $as_dir"
2428 # Keep a trace of the command line.
2429 # Strip out --no-create and --no-recursion so they do not pile up.
2430 # Strip out --silent because we don't want to record it for future runs.
2431 # Also quote any args containing shell meta-characters.
2432 # Make two passes to allow for proper duplicate-argument suppression.
2436 ac_must_keep_next
=false
2442 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2443 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2444 |
-silent |
--silent |
--silen |
--sile |
--sil)
2447 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2450 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2452 as_fn_append ac_configure_args1
" '$ac_arg'"
2453 if test $ac_must_keep_next = true
; then
2454 ac_must_keep_next
=false
# Got value, back to normal.
2457 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2458 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2459 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2460 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2461 case "$ac_configure_args0 " in
2462 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2465 -* ) ac_must_keep_next
=true
;;
2468 as_fn_append ac_configure_args
" '$ac_arg'"
2473 { ac_configure_args0
=; unset ac_configure_args0
;}
2474 { ac_configure_args1
=; unset ac_configure_args1
;}
2476 # When interrupted or exit'd, cleanup temporary files, and complete
2477 # config.log. We remove comments because anyway the quotes in there
2478 # would cause problems or look ugly.
2479 # WARNING: Use '\'' to represent an apostrophe within the trap.
2480 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2481 trap 'exit_status=$?
2482 # Save into config.log some information that might help in debugging.
2486 $as_echo "## ---------------- ##
2487 ## Cache variables. ##
2488 ## ---------------- ##"
2490 # The following way of writing the cache mishandles newlines in values,
2492 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2493 eval ac_val=\$$ac_var
2497 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2498 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2501 _ | IFS | as_nl) ;; #(
2502 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2503 *) { eval $ac_var=; unset $ac_var;} ;;
2508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2509 *${as_nl}ac_space=\ *)
2511 "s/'\''/'\''\\\\'\'''\''/g;
2512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2522 $as_echo "## ----------------- ##
2523 ## Output variables. ##
2524 ## ----------------- ##"
2526 for ac_var in $ac_subst_vars
2528 eval ac_val=\$$ac_var
2530 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2532 $as_echo "$ac_var='\''$ac_val'\''"
2536 if test -n "$ac_subst_files"; then
2537 $as_echo "## ------------------- ##
2538 ## File substitutions. ##
2539 ## ------------------- ##"
2541 for ac_var
in $ac_subst_files
2543 eval ac_val
=\$
$ac_var
2545 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2547 $as_echo "$ac_var='\''$ac_val'\''"
2552 if test -s confdefs.h; then
2553 $as_echo "## ----------- ##
2560 test "$ac_signal" != 0 &&
2561 $as_echo "$as_me: caught signal $ac_signal"
2562 $as_echo "$as_me: exit $exit_status"
2564 rm -f core *.core core.conftest.* &&
2565 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2568 for ac_signal
in 1 2 13 15; do
2569 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2573 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2574 rm -f -r conftest
* confdefs.h
2576 $as_echo "/* confdefs.h */" > confdefs.h
2578 # Predefined preprocessor variables.
2580 cat >>confdefs.h
<<_ACEOF
2581 #define PACKAGE_NAME "$PACKAGE_NAME"
2584 cat >>confdefs.h
<<_ACEOF
2585 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2588 cat >>confdefs.h
<<_ACEOF
2589 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2592 cat >>confdefs.h
<<_ACEOF
2593 #define PACKAGE_STRING "$PACKAGE_STRING"
2596 cat >>confdefs.h
<<_ACEOF
2597 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2600 cat >>confdefs.h
<<_ACEOF
2601 #define PACKAGE_URL "$PACKAGE_URL"
2605 # Let the site file select an alternate cache file if it wants to.
2606 # Prefer an explicitly selected file to automatically selected ones.
2609 if test -n "$CONFIG_SITE"; then
2610 # We do not want a PATH search for config.site.
2611 case $CONFIG_SITE in #((
2612 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2613 */*) ac_site_file1
=$CONFIG_SITE;;
2614 *) ac_site_file1
=.
/$CONFIG_SITE;;
2616 elif test "x$prefix" != xNONE
; then
2617 ac_site_file1
=$prefix/share
/config.site
2618 ac_site_file2
=$prefix/etc
/config.site
2620 ac_site_file1
=$ac_default_prefix/share
/config.site
2621 ac_site_file2
=$ac_default_prefix/etc
/config.site
2623 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2625 test "x$ac_site_file" = xNONE
&& continue
2626 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2628 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2629 sed 's/^/| /' "$ac_site_file" >&5
2631 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2633 as_fn_error $?
"failed to load site script $ac_site_file
2634 See \`config.log' for more details" "$LINENO" 5; }
2638 if test -r "$cache_file"; then
2639 # Some versions of bash will fail to source /dev/null (special files
2640 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2641 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2643 $as_echo "$as_me: loading cache $cache_file" >&6;}
2645 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2646 *) .
"./$cache_file";;
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2651 $as_echo "$as_me: creating cache $cache_file" >&6;}
2655 as_fn_append ac_header_list
" stdlib.h"
2656 as_fn_append ac_header_list
" unistd.h"
2657 as_fn_append ac_header_list
" sys/param.h"
2658 # Check that the precious variables saved in the cache have kept the same
2660 ac_cache_corrupted
=false
2661 for ac_var
in $ac_precious_vars; do
2662 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2663 eval ac_new_set
=\
$ac_env_${ac_var}_set
2664 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2665 eval ac_new_val
=\
$ac_env_${ac_var}_value
2666 case $ac_old_set,$ac_new_set in
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2669 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2670 ac_cache_corrupted
=: ;;
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2673 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2674 ac_cache_corrupted
=: ;;
2677 if test "x$ac_old_val" != "x$ac_new_val"; then
2678 # differences in whitespace do not lead to failure.
2679 ac_old_val_w
=`echo x $ac_old_val`
2680 ac_new_val_w
=`echo x $ac_new_val`
2681 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2683 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2684 ac_cache_corrupted
=:
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2687 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2688 eval $ac_var=\
$ac_old_val
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2691 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2693 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2696 # Pass precious variables to config.status.
2697 if test "$ac_new_set" = set; then
2699 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2700 *) ac_arg
=$ac_var=$ac_new_val ;;
2702 case " $ac_configure_args " in
2703 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2704 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2708 if $ac_cache_corrupted; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2712 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2713 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2715 ## -------------------- ##
2716 ## Main body of script. ##
2717 ## -------------------- ##
2720 ac_cpp
='$CPP $CPPFLAGS'
2721 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2731 ac_config_headers
="$ac_config_headers config.h:config.in"
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2736 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2737 # Check whether --enable-maintainer-mode was given.
2738 if test "${enable_maintainer_mode+set}" = set; then :
2739 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2741 USE_MAINTAINER_MODE
=no
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2745 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2746 if test $USE_MAINTAINER_MODE = yes; then
2747 MAINTAINER_MODE_TRUE
=
2748 MAINTAINER_MODE_FALSE
='#'
2750 MAINTAINER_MODE_TRUE
='#'
2751 MAINTAINER_MODE_FALSE
=
2754 MAINT
=$MAINTAINER_MODE_TRUE
2759 ac_cpp
='$CPP $CPPFLAGS'
2760 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2765 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_CC+:} false
; then :
2769 $as_echo_n "(cached) " >&6
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC
="$CC" # Let the user override the test.
2774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir
=.
2779 for ac_exec_ext
in '' $ac_executable_extensions; do
2780 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 if test -n "$CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2802 if test -z "$ac_cv_prog_CC"; then
2804 # Extract the first word of "gcc", so it can be a program name with args.
2805 set dummy gcc
; ac_word
=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2809 $as_echo_n "(cached) " >&6
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir
=.
2819 for ac_exec_ext
in '' $ac_executable_extensions; do
2820 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_CC
="gcc"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2832 if test -n "$ac_ct_CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2834 $as_echo "$ac_ct_CC" >&6; }
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2840 if test "x$ac_ct_CC" = x
; then
2843 case $cross_compiling:$ac_tool_warned in
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned
=yes ;;
2855 if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2858 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if ${ac_cv_prog_CC+:} false
; then :
2862 $as_echo_n "(cached) " >&6
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC
="$CC" # Let the user override the test.
2867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir
=.
2872 for ac_exec_ext
in '' $ac_executable_extensions; do
2873 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2874 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 if test -n "$CC"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2896 if test -z "$CC"; then
2897 # Extract the first word of "cc", so it can be a program name with args.
2898 set dummy cc
; ac_word
=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_CC+:} false
; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC
="$CC" # Let the user override the test.
2908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2912 test -z "$as_dir" && as_dir
=.
2913 for ac_exec_ext
in '' $ac_executable_extensions; do
2914 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2916 ac_prog_rejected
=yes
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 if test $ac_prog_rejected = yes; then
2928 # We found a bogon in the path, so make sure we never use it.
2929 set dummy
$ac_cv_prog_CC
2931 if test $# != 0; then
2932 # We chose a different compiler from the bogus one.
2933 # However, it has the same basename, so the bogon will be chosen
2934 # first if we set CC to just the basename; use the full file name.
2936 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2942 if test -n "$CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2952 if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
2954 for ac_prog
in cl.exe
2956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2957 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false
; then :
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC
="$CC" # Let the user override the test.
2966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir
=.
2971 for ac_exec_ext
in '' $ac_executable_extensions; do
2972 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2993 test -n "$CC" && break
2996 if test -z "$CC"; then
2998 for ac_prog
in cl.exe
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy
$ac_prog; ac_word
=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3005 $as_echo_n "(cached) " >&6
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir
=.
3015 for ac_exec_ext
in '' $ac_executable_extensions; do
3016 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_ac_ct_CC
="$ac_prog"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3030 $as_echo "$ac_ct_CC" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3037 test -n "$ac_ct_CC" && break
3040 if test "x$ac_ct_CC" = x
; then
3043 case $cross_compiling:$ac_tool_warned in
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned
=yes ;;
3056 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 as_fn_error $?
"no acceptable C compiler found in \$PATH
3059 See \`config.log' for more details" "$LINENO" 5; }
3061 # Provide some information about the compiler.
3062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3065 for ac_option
in --version -v -V -qversion; do
3066 { { ac_try
="$ac_compiler $ac_option >&5"
3068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 $as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3075 if test -s conftest.err; then
3077 ... rest of stderr output deleted ...
3078 10q' conftest.err >conftest.er1
3079 cat conftest.er1 >&5
3081 rm -f conftest.er1 conftest.err
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }
3086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087 /* end confdefs.h. */
3097 ac_clean_files_save=$ac_clean_files
3098 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3099 # Try to create an executable without -o first, disregard a.out.
3100 # It will help us diagnose broken compilers, and finding out an intuition
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3103 $as_echo_n "checking whether the C compiler works... " >&6; }
3104 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3106 # The possible output files:
3107 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3110 for ac_file in $ac_files
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3114 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3119 if { { ac_try="$ac_link_default"
3121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3122 *) ac_try_echo
=$ac_try;;
3124 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_link_default") 2>&5
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; then :
3130 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3131 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3132 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3133 # so that the user can short-circuit this test for compilers unknown to
3135 for ac_file
in $ac_files ''
3137 test -f "$ac_file" ||
continue
3139 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3142 # We found the default executable, but exeext='' is most
3146 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3148 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 # We set ac_cv_exeext here because the later test for it is not
3151 # safe: cross compilers may not add the suffix if given an `-o'
3152 # argument, so we may need to know it at that point already.
3153 # Even if this section looks crufty: it has the advantage of
3160 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3165 if test -z "$ac_file"; then :
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 $as_echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.
$ac_ext >&5
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error
77 "C compiler cannot create executables
3174 See \`config.log' for more details" "$LINENO" 5; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3177 $as_echo "yes" >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3180 $as_echo_n "checking for C compiler default output file name... " >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3182 $as_echo "$ac_file" >&6; }
3183 ac_exeext
=$ac_cv_exeext
3185 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3186 ac_clean_files
=$ac_clean_files_save
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3188 $as_echo_n "checking for suffix of executables... " >&6; }
3189 if { { ac_try
="$ac_link"
3191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_link") 2>&5
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3201 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3202 # work properly (i.e., refer to `conftest.exe'), while it won't with
3204 for ac_file
in conftest.exe conftest conftest.
*; do
3205 test -f "$ac_file" ||
continue
3207 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3208 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3217 See \`config.log' for more details" "$LINENO" 5; }
3219 rm -f conftest conftest
$ac_cv_exeext
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3221 $as_echo "$ac_cv_exeext" >&6; }
3223 rm -f conftest.
$ac_ext
3224 EXEEXT
=$ac_cv_exeext
3226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3232 FILE *f = fopen ("conftest.out", "w");
3233 return ferror (f) || fclose (f) != 0;
3239 ac_clean_files
="$ac_clean_files conftest.out"
3240 # Check that the compiler produces executables we can run. If not, either
3241 # the compiler is broken, or we cross compile.
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3243 $as_echo_n "checking whether we are cross compiling... " >&6; }
3244 if test "$cross_compiling" != yes; then
3245 { { ac_try
="$ac_link"
3247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_link") 2>&5
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }
3256 if { ac_try='./conftest$ac_cv_exeext'
3257 { { case "(($ac_try" in
3258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3259 *) ac_try_echo
=$ac_try;;
3261 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_try") 2>&5
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; }; then
3269 if test "$cross_compiling" = maybe
; then
3272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 as_fn_error $?
"cannot run C compiled programs.
3275 If you meant to cross compile, use \`--host'.
3276 See \`config.log' for more details" "$LINENO" 5; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3281 $as_echo "$cross_compiling" >&6; }
3283 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3284 ac_clean_files
=$ac_clean_files_save
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3286 $as_echo_n "checking for suffix of object files... " >&6; }
3287 if ${ac_cv_objext+:} false
; then :
3288 $as_echo_n "(cached) " >&6
3290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3301 rm -f conftest.o conftest.obj
3302 if { { ac_try
="$ac_compile"
3304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_compile") 2>&5
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
3313 for ac_file in conftest.o conftest.obj conftest.*; do
3314 test -f "$ac_file" || continue;
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3317 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3328 See \
`config.log' for more details" "$LINENO" 5; }
3330 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3333 $as_echo "$ac_cv_objext" >&6; }
3334 OBJEXT=$ac_cv_objext
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3337 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3338 if ${ac_cv_c_compiler_gnu+:} false; then :
3339 $as_echo_n "(cached) " >&6
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3355 if ac_fn_c_try_compile "$LINENO"; then :
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3365 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3366 if test $ac_compiler_gnu = yes; then
3371 ac_test_CFLAGS=${CFLAGS+set}
3372 ac_save_CFLAGS=$CFLAGS
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3374 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3375 if ${ac_cv_prog_cc_g+:} false; then :
3376 $as_echo_n "(cached) " >&6
3378 ac_save_c_werror_flag=$ac_c_werror_flag
3379 ac_c_werror_flag=yes
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3393 if ac_fn_c_try_compile "$LINENO"; then :
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3408 if ac_fn_c_try_compile "$LINENO"; then :
3411 ac_c_werror_flag=$ac_save_c_werror_flag
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3424 if ac_fn_c_try_compile "$LINENO"; then :
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 ac_c_werror_flag=$ac_save_c_werror_flag
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3435 $as_echo "$ac_cv_prog_cc_g" >&6; }
3436 if test "$ac_test_CFLAGS" = set; then
3437 CFLAGS=$ac_save_CFLAGS
3438 elif test $ac_cv_prog_cc_g = yes; then
3439 if test "$GCC" = yes; then
3445 if test "$GCC" = yes; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3452 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3453 if ${ac_cv_prog_cc_c89+:} false; then :
3454 $as_echo_n "(cached) " >&6
3456 ac_cv_prog_cc_c89=no
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3464 struct buf { int x; };
3465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3466 static char *e (p, i)
3472 static char *f (char * (*g) (char **, int), char **p, ...)
3477 s = g (p, va_arg (v,int));
3482 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3483 function prototypes and stuff, but not '\xHH' hex character constants.
3484 These don't provoke an error unfortunately, instead are silently treated
3485 as 'x'. The following induces an error, until -std is added to get
3486 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3487 array size at least. It's necessary to write '\x00'==0 to get something
3488 that's true only with -std. */
3489 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3491 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3492 inside strings and character constants. */
3494 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3496 int test (int i, double x);
3497 struct s1 {int (*f) (int a);};
3498 struct s2 {int (*f) (double a);};
3499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3505 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3510 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3511 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3513 CC="$ac_save_CC $ac_arg"
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515 ac_cv_prog_cc_c89=$ac_arg
3517 rm -f core conftest.err conftest.$ac_objext
3518 test "x$ac_cv_prog_cc_c89" != "xno" && break
3520 rm -f conftest.$ac_ext
3525 case "x$ac_cv_prog_cc_c89" in
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3528 $as_echo "none needed" >&6; } ;;
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3531 $as_echo "unsupported" >&6; } ;;
3533 CC="$CC $ac_cv_prog_cc_c89"
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3535 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3537 if test "x$ac_cv_prog_cc_c89" != xno; then :
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548 ac_cpp='$CXXCPP $CPPFLAGS'
3549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3552 if test -z "$CXX"; then
3553 if test -n "$CCC"; then
3556 if test -n "$ac_tool_prefix"; then
3557 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if ${ac_cv_prog_CXX+:} false; then :
3564 $as_echo_n "(cached) " >&6
3566 if test -n "$CXX"; then
3567 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 if test -n "$CXX"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3589 $as_echo "$CXX" >&6; }
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3596 test -n "$CXX" && break
3599 if test -z "$CXX"; then
3601 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3603 # Extract the first word of "$ac_prog", so it can be a program name with args.
3604 set dummy $ac_prog; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3608 $as_echo_n "(cached) " >&6
3610 if test -n "$ac_ct_CXX"; then
3611 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_ac_ct_CXX="$ac_prog"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3631 if test -n "$ac_ct_CXX"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3633 $as_echo "$ac_ct_CXX" >&6; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3640 test -n "$ac_ct_CXX" && break
3643 if test "x$ac_ct_CXX" = x; then
3646 case $cross_compiling:$ac_tool_warned in
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3650 ac_tool_warned=yes ;;
3658 # Provide some information about the compiler.
3659 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3662 for ac_option in --version -v -V -qversion; do
3663 { { ac_try="$ac_compiler $ac_option >&5"
3665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3666 *) ac_try_echo
=$ac_try;;
3668 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3672 if test -s conftest.err
; then
3674 ... rest of stderr output deleted ...
3675 10q' conftest.err
>conftest.er1
3676 cat conftest.er1
>&5
3678 rm -f conftest.er1 conftest.err
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3684 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3685 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3686 $as_echo_n "(cached) " >&6
3688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3702 if ac_fn_cxx_try_compile
"$LINENO"; then :
3707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3708 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3712 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3713 if test $ac_compiler_gnu = yes; then
3718 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3719 ac_save_CXXFLAGS
=$CXXFLAGS
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3721 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3722 if ${ac_cv_prog_cxx_g+:} false
; then :
3723 $as_echo_n "(cached) " >&6
3725 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3726 ac_cxx_werror_flag
=yes
3729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3740 if ac_fn_cxx_try_compile
"$LINENO"; then :
3741 ac_cv_prog_cxx_g
=yes
3744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3755 if ac_fn_cxx_try_compile
"$LINENO"; then :
3758 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3771 if ac_fn_cxx_try_compile
"$LINENO"; then :
3772 ac_cv_prog_cxx_g
=yes
3774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3779 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3782 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3783 if test "$ac_test_CXXFLAGS" = set; then
3784 CXXFLAGS
=$ac_save_CXXFLAGS
3785 elif test $ac_cv_prog_cxx_g = yes; then
3786 if test "$GXX" = yes; then
3792 if test "$GXX" = yes; then
3799 ac_cpp
='$CPP $CPPFLAGS'
3800 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3806 ac_cpp
='$CPP $CPPFLAGS'
3807 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3811 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3812 # On Suns, sometimes $CPP names a directory.
3813 if test -n "$CPP" && test -d "$CPP"; then
3816 if test -z "$CPP"; then
3817 if ${ac_cv_prog_CPP+:} false
; then :
3818 $as_echo_n "(cached) " >&6
3820 # Double quotes because CPP needs to be expanded
3821 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3824 for ac_c_preproc_warn_flag
in '' yes
3826 # Use a header file that comes with gcc, so configuring glibc
3827 # with a fresh cross-compiler works.
3828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829 # <limits.h> exists even on freestanding compilers.
3830 # On the NeXT, cc -E runs the code through the compiler's parser,
3831 # not just through cpp. "Syntax error" is here to catch this case.
3832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3835 # include <limits.h>
3837 # include <assert.h>
3841 if ac_fn_c_try_cpp
"$LINENO"; then :
3844 # Broken: fails on valid input.
3847 rm -f conftest.err conftest.i conftest.
$ac_ext
3849 # OK, works on sane cases. Now check whether nonexistent headers
3850 # can be detected and how.
3851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3855 if ac_fn_c_try_cpp
"$LINENO"; then :
3856 # Broken: success on invalid input.
3859 # Passes both tests.
3863 rm -f conftest.err conftest.i conftest.
$ac_ext
3866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867 rm -f conftest.i conftest.err conftest.
$ac_ext
3868 if $ac_preproc_ok; then :
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3881 $as_echo "$CPP" >&6; }
3883 for ac_c_preproc_warn_flag
in '' yes
3885 # Use a header file that comes with gcc, so configuring glibc
3886 # with a fresh cross-compiler works.
3887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888 # <limits.h> exists even on freestanding compilers.
3889 # On the NeXT, cc -E runs the code through the compiler's parser,
3890 # not just through cpp. "Syntax error" is here to catch this case.
3891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3894 # include <limits.h>
3896 # include <assert.h>
3900 if ac_fn_c_try_cpp
"$LINENO"; then :
3903 # Broken: fails on valid input.
3906 rm -f conftest.err conftest.i conftest.
$ac_ext
3908 # OK, works on sane cases. Now check whether nonexistent headers
3909 # can be detected and how.
3910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912 #include <ac_nonexistent.h>
3914 if ac_fn_c_try_cpp
"$LINENO"; then :
3915 # Broken: success on invalid input.
3918 # Passes both tests.
3922 rm -f conftest.err conftest.i conftest.
$ac_ext
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.i conftest.err conftest.
$ac_ext
3927 if $ac_preproc_ok; then :
3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3933 See \`config.log' for more details" "$LINENO" 5; }
3937 ac_cpp
='$CPP $CPPFLAGS'
3938 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3944 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3945 if ${ac_cv_path_GREP+:} false
; then :
3946 $as_echo_n "(cached) " >&6
3948 if test -z "$GREP"; then
3949 ac_path_GREP_found
=false
3950 # Loop through the user's path and test for each of PROGNAME-LIST
3951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3952 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3955 test -z "$as_dir" && as_dir
=.
3956 for ac_prog
in grep ggrep
; do
3957 for ac_exec_ext
in '' $ac_executable_extensions; do
3958 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3959 as_fn_executable_p
"$ac_path_GREP" ||
continue
3960 # Check for GNU ac_path_GREP and select it if it is found.
3961 # Check for GNU $ac_path_GREP
3962 case `"$ac_path_GREP" --version 2>&1` in
3964 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3967 $as_echo_n 0123456789 >"conftest.in"
3970 cat "conftest.in" "conftest.in" >"conftest.tmp"
3971 mv "conftest.tmp" "conftest.in"
3972 cp "conftest.in" "conftest.nl"
3973 $as_echo 'GREP' >> "conftest.nl"
3974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3975 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3976 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3977 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3978 # Best one so far, save it but keep looking for a better one
3979 ac_cv_path_GREP
="$ac_path_GREP"
3980 ac_path_GREP_max
=$ac_count
3982 # 10*(2^10) chars as input seems more than enough
3983 test $ac_count -gt 10 && break
3985 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3988 $ac_path_GREP_found && break 3
3993 if test -z "$ac_cv_path_GREP"; then
3994 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3997 ac_cv_path_GREP
=$GREP
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4002 $as_echo "$ac_cv_path_GREP" >&6; }
4003 GREP
="$ac_cv_path_GREP"
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4007 $as_echo_n "checking for egrep... " >&6; }
4008 if ${ac_cv_path_EGREP+:} false
; then :
4009 $as_echo_n "(cached) " >&6
4011 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4012 then ac_cv_path_EGREP
="$GREP -E"
4014 if test -z "$EGREP"; then
4015 ac_path_EGREP_found
=false
4016 # Loop through the user's path and test for each of PROGNAME-LIST
4017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4018 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4021 test -z "$as_dir" && as_dir
=.
4022 for ac_prog
in egrep; do
4023 for ac_exec_ext
in '' $ac_executable_extensions; do
4024 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4025 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4026 # Check for GNU ac_path_EGREP and select it if it is found.
4027 # Check for GNU $ac_path_EGREP
4028 case `"$ac_path_EGREP" --version 2>&1` in
4030 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4033 $as_echo_n 0123456789 >"conftest.in"
4036 cat "conftest.in" "conftest.in" >"conftest.tmp"
4037 mv "conftest.tmp" "conftest.in"
4038 cp "conftest.in" "conftest.nl"
4039 $as_echo 'EGREP' >> "conftest.nl"
4040 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4041 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4042 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4043 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4044 # Best one so far, save it but keep looking for a better one
4045 ac_cv_path_EGREP
="$ac_path_EGREP"
4046 ac_path_EGREP_max
=$ac_count
4048 # 10*(2^10) chars as input seems more than enough
4049 test $ac_count -gt 10 && break
4051 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4054 $ac_path_EGREP_found && break 3
4059 if test -z "$ac_cv_path_EGREP"; then
4060 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4063 ac_cv_path_EGREP
=$EGREP
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4069 $as_echo "$ac_cv_path_EGREP" >&6; }
4070 EGREP
="$ac_cv_path_EGREP"
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4074 $as_echo_n "checking for ANSI C header files... " >&6; }
4075 if ${ac_cv_header_stdc+:} false
; then :
4076 $as_echo_n "(cached) " >&6
4078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4093 if ac_fn_c_try_compile
"$LINENO"; then :
4094 ac_cv_header_stdc
=yes
4096 ac_cv_header_stdc
=no
4098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4100 if test $ac_cv_header_stdc = yes; then
4101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108 $EGREP "memchr" >/dev
/null
2>&1; then :
4111 ac_cv_header_stdc
=no
4117 if test $ac_cv_header_stdc = yes; then
4118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 $EGREP "free" >/dev
/null
2>&1; then :
4128 ac_cv_header_stdc
=no
4134 if test $ac_cv_header_stdc = yes; then
4135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4136 if test "$cross_compiling" = yes; then :
4139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4143 #if ((' ' & 0x0FF) == 0x020)
4144 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4145 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4147 # define ISLOWER(c) \
4148 (('a' <= (c) && (c) <= 'i') \
4149 || ('j' <= (c) && (c) <= 'r') \
4150 || ('s' <= (c) && (c) <= 'z'))
4151 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4154 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4159 for (i = 0; i < 256; i++)
4160 if (XOR (islower (i), ISLOWER (i))
4161 || toupper (i) != TOUPPER (i))
4166 if ac_fn_c_try_run
"$LINENO"; then :
4169 ac_cv_header_stdc
=no
4171 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4172 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4178 $as_echo "$ac_cv_header_stdc" >&6; }
4179 if test $ac_cv_header_stdc = yes; then
4181 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4185 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4186 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4187 inttypes.h stdint.h unistd.h
4189 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4190 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4192 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4193 cat >>confdefs.h
<<_ACEOF
4194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4203 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4204 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4211 if test "$MINIX" = yes; then
4213 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4216 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4219 $as_echo "#define _MINIX 1" >>confdefs.h
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4225 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4226 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4227 $as_echo_n "(cached) " >&6
4229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4232 # define __EXTENSIONS__ 1
4233 $ac_includes_default
4242 if ac_fn_c_try_compile
"$LINENO"; then :
4243 ac_cv_safe_to_define___extensions__
=yes
4245 ac_cv_safe_to_define___extensions__
=no
4247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4250 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4251 test $ac_cv_safe_to_define___extensions__ = yes &&
4252 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4254 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4256 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4258 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4260 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4263 # Check whether --enable-largefile was given.
4264 if test "${enable_largefile+set}" = set; then :
4265 enableval
=$enable_largefile;
4268 if test "$enable_largefile" != no
; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4271 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4272 if ${ac_cv_sys_largefile_CC+:} false
; then :
4273 $as_echo_n "(cached) " >&6
4275 ac_cv_sys_largefile_CC
=no
4276 if test "$GCC" != yes; then
4279 # IRIX 6.2 and later do not support large files by default,
4280 # so use the C compiler's -n32 option if that helps.
4281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #include <sys/types.h>
4284 /* Check that off_t can represent 2**63 - 1 correctly.
4285 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4286 since some C++ compilers masquerading as C compilers
4287 incorrectly reject 9223372036854775807. */
4288 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4289 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4290 && LARGE_OFF_T % 2147483647 == 1)
4300 if ac_fn_c_try_compile
"$LINENO"; then :
4303 rm -f core conftest.err conftest.
$ac_objext
4305 if ac_fn_c_try_compile
"$LINENO"; then :
4306 ac_cv_sys_largefile_CC
=' -n32'; break
4308 rm -f core conftest.err conftest.
$ac_objext
4312 rm -f conftest.
$ac_ext
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4316 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4317 if test "$ac_cv_sys_largefile_CC" != no
; then
4318 CC
=$CC$ac_cv_sys_largefile_CC
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4322 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4323 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4324 $as_echo_n "(cached) " >&6
4327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 #include <sys/types.h>
4330 /* Check that off_t can represent 2**63 - 1 correctly.
4331 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4332 since some C++ compilers masquerading as C compilers
4333 incorrectly reject 9223372036854775807. */
4334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4336 && LARGE_OFF_T % 2147483647 == 1)
4346 if ac_fn_c_try_compile
"$LINENO"; then :
4347 ac_cv_sys_file_offset_bits
=no
; break
4349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #define _FILE_OFFSET_BITS 64
4353 #include <sys/types.h>
4354 /* Check that off_t can represent 2**63 - 1 correctly.
4355 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4356 since some C++ compilers masquerading as C compilers
4357 incorrectly reject 9223372036854775807. */
4358 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4360 && LARGE_OFF_T % 2147483647 == 1)
4370 if ac_fn_c_try_compile
"$LINENO"; then :
4371 ac_cv_sys_file_offset_bits
=64; break
4373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4374 ac_cv_sys_file_offset_bits
=unknown
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4379 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4380 case $ac_cv_sys_file_offset_bits in #(
4383 cat >>confdefs.h
<<_ACEOF
4384 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4389 if test $ac_cv_sys_file_offset_bits = unknown
; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4391 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4392 if ${ac_cv_sys_large_files+:} false
; then :
4393 $as_echo_n "(cached) " >&6
4396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #include <sys/types.h>
4399 /* Check that off_t can represent 2**63 - 1 correctly.
4400 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4401 since some C++ compilers masquerading as C compilers
4402 incorrectly reject 9223372036854775807. */
4403 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4405 && LARGE_OFF_T % 2147483647 == 1)
4415 if ac_fn_c_try_compile
"$LINENO"; then :
4416 ac_cv_sys_large_files
=no
; break
4418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 #define _LARGE_FILES 1
4422 #include <sys/types.h>
4423 /* Check that off_t can represent 2**63 - 1 correctly.
4424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4425 since some C++ compilers masquerading as C compilers
4426 incorrectly reject 9223372036854775807. */
4427 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4429 && LARGE_OFF_T % 2147483647 == 1)
4439 if ac_fn_c_try_compile
"$LINENO"; then :
4440 ac_cv_sys_large_files
=1; break
4442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4443 ac_cv_sys_large_files
=unknown
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4448 $as_echo "$ac_cv_sys_large_files" >&6; }
4449 case $ac_cv_sys_large_files in #(
4452 cat >>confdefs.h
<<_ACEOF
4453 #define _LARGE_FILES $ac_cv_sys_large_files
4464 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4465 if test -f "$ac_dir/install-sh"; then
4467 ac_install_sh
="$ac_aux_dir/install-sh -c"
4469 elif test -f "$ac_dir/install.sh"; then
4471 ac_install_sh
="$ac_aux_dir/install.sh -c"
4473 elif test -f "$ac_dir/shtool"; then
4475 ac_install_sh
="$ac_aux_dir/shtool install -c"
4479 if test -z "$ac_aux_dir"; then
4480 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4483 # These three variables are undocumented and unsupported,
4484 # and are intended to be withdrawn in a future Autoconf release.
4485 # They can cause serious problems if a builder's source tree is in a directory
4486 # whose full name contains unusual characters.
4487 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4488 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4489 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4492 # Expand $ac_aux_dir to an absolute path.
4493 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4495 if test x
"${install_sh+set}" != xset
; then
4498 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4500 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4504 # Installed binaries are usually stripped using 'strip' when the user
4505 # run "make install-strip". However 'strip' might not be the right
4506 # tool to use in cross-compilation environments, therefore Automake
4507 # will honor the 'STRIP' environment variable to overrule this program.
4508 if test "$cross_compiling" != no
; then
4509 if test -n "$ac_tool_prefix"; then
4510 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4511 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if ${ac_cv_prog_STRIP+:} false
; then :
4515 $as_echo_n "(cached) " >&6
4517 if test -n "$STRIP"; then
4518 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir
=.
4525 for ac_exec_ext
in '' $ac_executable_extensions; do
4526 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 STRIP
=$ac_cv_prog_STRIP
4538 if test -n "$STRIP"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4540 $as_echo "$STRIP" >&6; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4548 if test -z "$ac_cv_prog_STRIP"; then
4550 # Extract the first word of "strip", so it can be a program name with args.
4551 set dummy strip
; ac_word
=$2
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553 $as_echo_n "checking for $ac_word... " >&6; }
4554 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4555 $as_echo_n "(cached) " >&6
4557 if test -n "$ac_ct_STRIP"; then
4558 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir
=.
4565 for ac_exec_ext
in '' $ac_executable_extensions; do
4566 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4567 ac_cv_prog_ac_ct_STRIP
="strip"
4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4578 if test -n "$ac_ct_STRIP"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4580 $as_echo "$ac_ct_STRIP" >&6; }
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo "no" >&6; }
4586 if test "x$ac_ct_STRIP" = x
; then
4589 case $cross_compiling:$ac_tool_warned in
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4593 ac_tool_warned
=yes ;;
4598 STRIP
="$ac_cv_prog_STRIP"
4602 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4605 # Set build, build_cpu, build_vendor and build_os.
4606 # Make sure we can run config.sub.
4607 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4608 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4611 $as_echo_n "checking build system type... " >&6; }
4612 if ${ac_cv_build+:} false
; then :
4613 $as_echo_n "(cached) " >&6
4615 ac_build_alias
=$build_alias
4616 test "x$ac_build_alias" = x
&&
4617 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4618 test "x$ac_build_alias" = x
&&
4619 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4620 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4621 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4625 $as_echo "$ac_cv_build" >&6; }
4626 case $ac_cv_build in
4628 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4631 ac_save_IFS
=$IFS; IFS
='-'
4637 # Remember, the first character of IFS is used to create $*,
4638 # except with old shells:
4641 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4645 # Set host, host_cpu, host_vendor, and host_os.
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4647 $as_echo_n "checking host system type... " >&6; }
4648 if ${ac_cv_host+:} false
; then :
4649 $as_echo_n "(cached) " >&6
4651 if test "x$host_alias" = x
; then
4652 ac_cv_host
=$ac_cv_build
4654 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4655 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4660 $as_echo "$ac_cv_host" >&6; }
4663 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4666 ac_save_IFS
=$IFS; IFS
='-'
4672 # Remember, the first character of IFS is used to create $*,
4673 # except with old shells:
4676 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4680 # Set target, target_cpu, target_vendor, and target_os.
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4682 $as_echo_n "checking target system type... " >&6; }
4683 if ${ac_cv_target+:} false
; then :
4684 $as_echo_n "(cached) " >&6
4686 if test "x$target_alias" = x
; then
4687 ac_cv_target
=$ac_cv_host
4689 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4690 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4695 $as_echo "$ac_cv_target" >&6; }
4696 case $ac_cv_target in
4698 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4700 target
=$ac_cv_target
4701 ac_save_IFS
=$IFS; IFS
='-'
4707 # Remember, the first character of IFS is used to create $*,
4708 # except with old shells:
4711 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4714 # The aliases save the names the user supplied, while $host etc.
4715 # will get canonicalized.
4716 test -n "$target_alias" &&
4717 test "$program_prefix$program_suffix$program_transform_name" = \
4719 program_prefix
=${target_alias}-
4721 # Find a good install program. We prefer a C program (faster),
4722 # so one script is as good as another. But avoid the broken or
4723 # incompatible versions:
4724 # SysV /etc/install, /usr/sbin/install
4725 # SunOS /usr/etc/install
4726 # IRIX /sbin/install
4728 # AmigaOS /C/install, which installs bootblocks on floppy discs
4729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4732 # OS/2's system install, which has a completely different semantic
4733 # ./install, which can be erroneously created by make from ./install.sh.
4734 # Reject install programs that cannot install multiple files.
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4736 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4737 if test -z "$INSTALL"; then
4738 if ${ac_cv_path_install+:} false
; then :
4739 $as_echo_n "(cached) " >&6
4741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir
=.
4746 # Account for people who put trailing slashes in PATH elements.
4747 case $as_dir/ in #((
4748 .
/ | .
// |
/[cC
]/* | \
4749 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4750 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4753 # OSF1 and SCO ODT 3.0 have their own names for install.
4754 # Don't use installbsd from OSF since it installs stuff as root
4756 for ac_prog
in ginstall scoinst
install; do
4757 for ac_exec_ext
in '' $ac_executable_extensions; do
4758 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4759 if test $ac_prog = install &&
4760 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4761 # AIX install. It has an incompatible calling convention.
4763 elif test $ac_prog = install &&
4764 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4765 # program-specific install script used by HP pwplus--don't use.
4768 rm -rf conftest.one conftest.two conftest.dir
4769 echo one
> conftest.one
4770 echo two
> conftest.two
4772 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4773 test -s conftest.one
&& test -s conftest.two
&&
4774 test -s conftest.dir
/conftest.one
&&
4775 test -s conftest.dir
/conftest.two
4777 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4790 rm -rf conftest.one conftest.two conftest.dir
4793 if test "${ac_cv_path_install+set}" = set; then
4794 INSTALL
=$ac_cv_path_install
4796 # As a last resort, use the slow shell script. Don't cache a
4797 # value for INSTALL within a source directory, because that will
4798 # break other packages using the cache if that directory is
4799 # removed, or if the value is a relative name.
4800 INSTALL
=$ac_install_sh
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4804 $as_echo "$INSTALL" >&6; }
4806 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4807 # It thinks the first close brace ends the variable substitution.
4808 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4810 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4812 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4814 if test -n "$ac_tool_prefix"; then
4815 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4816 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if ${ac_cv_prog_AR+:} false
; then :
4820 $as_echo_n "(cached) " >&6
4822 if test -n "$AR"; then
4823 ac_cv_prog_AR
="$AR" # Let the user override the test.
4825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir
=.
4830 for ac_exec_ext
in '' $ac_executable_extensions; do
4831 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 if test -n "$AR"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4845 $as_echo "$AR" >&6; }
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4853 if test -z "$ac_cv_prog_AR"; then
4855 # Extract the first word of "ar", so it can be a program name with args.
4856 set dummy
ar; ac_word
=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4860 $as_echo_n "(cached) " >&6
4862 if test -n "$ac_ct_AR"; then
4863 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir
=.
4870 for ac_exec_ext
in '' $ac_executable_extensions; do
4871 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4872 ac_cv_prog_ac_ct_AR
="ar"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4883 if test -n "$ac_ct_AR"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4885 $as_echo "$ac_ct_AR" >&6; }
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4891 if test "x$ac_ct_AR" = x
; then
4894 case $cross_compiling:$ac_tool_warned in
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4898 ac_tool_warned
=yes ;;
4906 if test -n "$ac_tool_prefix"; then
4907 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4908 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_RANLIB+:} false
; then :
4912 $as_echo_n "(cached) " >&6
4914 if test -n "$RANLIB"; then
4915 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir
=.
4922 for ac_exec_ext
in '' $ac_executable_extensions; do
4923 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 RANLIB
=$ac_cv_prog_RANLIB
4935 if test -n "$RANLIB"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4937 $as_echo "$RANLIB" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4945 if test -z "$ac_cv_prog_RANLIB"; then
4946 ac_ct_RANLIB
=$RANLIB
4947 # Extract the first word of "ranlib", so it can be a program name with args.
4948 set dummy ranlib
; ac_word
=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4952 $as_echo_n "(cached) " >&6
4954 if test -n "$ac_ct_RANLIB"; then
4955 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4961 test -z "$as_dir" && as_dir
=.
4962 for ac_exec_ext
in '' $ac_executable_extensions; do
4963 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4975 if test -n "$ac_ct_RANLIB"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4977 $as_echo "$ac_ct_RANLIB" >&6; }
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4983 if test "x$ac_ct_RANLIB" = x
; then
4986 case $cross_compiling:$ac_tool_warned in
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990 ac_tool_warned
=yes ;;
4992 RANLIB
=$ac_ct_RANLIB
4995 RANLIB
="$ac_cv_prog_RANLIB"
4999 test "$program_prefix" != NONE
&&
5000 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5001 # Use a double $ so make ignores it.
5002 test "$program_suffix" != NONE
&&
5003 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5004 # Double any \ or $.
5005 # By default was `s,x,x', remove it if useless.
5006 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5007 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5010 # We require a C++11 compiler. Check if one is available, and if
5011 # necessary, set CXX_DIALECT to some -std=xxx switch.
5013 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5015 ac_cpp
='$CXXCPP $CPPFLAGS'
5016 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5022 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5023 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5024 $as_echo_n "(cached) " >&6
5026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5030 // If the compiler admits that it is not ready for C++11, why torture it?
5031 // Hopefully, this will speed up the test.
5035 #error "This is not a C++ compiler"
5037 #elif __cplusplus < 201103L
5039 #error "This is not a C++11 compiler"
5046 namespace test_static_assert
5049 template <typename T>
5052 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5057 namespace test_final_override
5065 struct Derived : public Base
5067 virtual void f() override {}
5072 namespace test_double_right_angle_brackets
5075 template < typename T >
5078 typedef check<void> single_type;
5079 typedef check<check<void>> double_type;
5080 typedef check<check<check<void>>> triple_type;
5081 typedef check<check<check<check<void>>>> quadruple_type;
5085 namespace test_decltype
5098 namespace test_type_deduction
5101 template < typename T1, typename T2 >
5104 static const bool value = false;
5107 template < typename T >
5108 struct is_same<T, T>
5110 static const bool value = true;
5113 template < typename T1, typename T2 >
5115 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5121 test(const int c, volatile int v)
5123 static_assert(is_same<int, decltype(0)>::value == true, "");
5124 static_assert(is_same<int, decltype(c)>::value == false, "");
5125 static_assert(is_same<int, decltype(v)>::value == false, "");
5128 auto sumi = ac + av + 'x';
5129 auto sumf = ac + av + 1.0;
5130 static_assert(is_same<int, decltype(ac)>::value == true, "");
5131 static_assert(is_same<int, decltype(av)>::value == true, "");
5132 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5133 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5134 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5135 return (sumf > 0.0) ? sumi : add(c, v);
5140 namespace test_noexcept
5143 int f() { return 0; }
5144 int g() noexcept { return 0; }
5146 static_assert(noexcept(f()) == false, "");
5147 static_assert(noexcept(g()) == true, "");
5151 namespace test_constexpr
5154 template < typename CharT >
5155 unsigned long constexpr
5156 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5158 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5161 template < typename CharT >
5162 unsigned long constexpr
5163 strlen_c(const CharT *const s) noexcept
5165 return strlen_c_r(s, 0UL);
5168 static_assert(strlen_c("") == 0UL, "");
5169 static_assert(strlen_c("1") == 1UL, "");
5170 static_assert(strlen_c("example") == 7UL, "");
5171 static_assert(strlen_c("another\0example") == 7UL, "");
5175 namespace test_rvalue_references
5181 static constexpr int value = N;
5184 answer<1> f(int&) { return answer<1>(); }
5185 answer<2> f(const int&) { return answer<2>(); }
5186 answer<3> f(int&&) { return answer<3>(); }
5193 static_assert(decltype(f(i))::value == 1, "");
5194 static_assert(decltype(f(c))::value == 2, "");
5195 static_assert(decltype(f(0))::value == 3, "");
5200 namespace test_uniform_initialization
5205 static const int zero {};
5206 static const int one {1};
5209 static_assert(test::zero == 0, "");
5210 static_assert(test::one == 1, "");
5214 namespace test_lambdas
5220 auto lambda1 = [](){};
5221 auto lambda2 = lambda1;
5229 auto a = [](int i, int j){ return i + j; }(1, 2);
5230 auto b = []() -> int { return '0'; }();
5231 auto c = [=](){ return a + b; }();
5232 auto d = [&](){ return c; }();
5233 auto e = [a, &b](int x) mutable {
5234 const auto identity = [](int y){ return y; };
5235 for (auto i = 0; i < a; ++i)
5237 return x + identity(a + b);
5239 return a + b + c + d + e;
5245 const auto nullary = [](){ return 0; };
5246 const auto unary = [](int x){ return x; };
5247 using nullary_t = decltype(nullary);
5248 using unary_t = decltype(unary);
5249 const auto higher1st = [](nullary_t f){ return f(); };
5250 const auto higher2nd = [unary](nullary_t f1){
5251 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5253 return higher1st(nullary) + higher2nd(nullary)(unary);
5258 namespace test_variadic_templates
5264 template <int N0, int... N1toN>
5265 struct sum<N0, N1toN...>
5267 static constexpr auto value = N0 + sum<N1toN...>::value;
5273 static constexpr auto value = 0;
5276 static_assert(sum<>::value == 0, "");
5277 static_assert(sum<1>::value == 1, "");
5278 static_assert(sum<23>::value == 23, "");
5279 static_assert(sum<1, 2>::value == 3, "");
5280 static_assert(sum<5, 5, 11>::value == 21, "");
5281 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5285 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5286 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5288 namespace test_template_alias_sfinae
5293 template<typename T>
5294 using member = typename T::member_type;
5296 template<typename T>
5299 template<typename T>
5300 void func(member<T>*) {}
5304 void test() { func<foo>(0); }
5308 } // namespace cxx11
5310 #endif // __cplusplus >= 201103L
5315 if ac_fn_cxx_try_compile
"$LINENO"; then :
5316 ax_cv_cxx_compile_cxx11
=yes
5318 ax_cv_cxx_compile_cxx11
=no
5320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5323 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5324 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5328 if test x
$ac_success = xno
; then
5329 for alternative
in ${ax_cxx_compile_alternatives}; do
5330 switch
="-std=gnu++${alternative}"
5331 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5333 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5334 if eval \
${$cachevar+:} false
; then :
5335 $as_echo_n "(cached) " >&6
5339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5343 // If the compiler admits that it is not ready for C++11, why torture it?
5344 // Hopefully, this will speed up the test.
5348 #error "This is not a C++ compiler"
5350 #elif __cplusplus < 201103L
5352 #error "This is not a C++11 compiler"
5359 namespace test_static_assert
5362 template <typename T>
5365 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5370 namespace test_final_override
5378 struct Derived : public Base
5380 virtual void f() override {}
5385 namespace test_double_right_angle_brackets
5388 template < typename T >
5391 typedef check<void> single_type;
5392 typedef check<check<void>> double_type;
5393 typedef check<check<check<void>>> triple_type;
5394 typedef check<check<check<check<void>>>> quadruple_type;
5398 namespace test_decltype
5411 namespace test_type_deduction
5414 template < typename T1, typename T2 >
5417 static const bool value = false;
5420 template < typename T >
5421 struct is_same<T, T>
5423 static const bool value = true;
5426 template < typename T1, typename T2 >
5428 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5434 test(const int c, volatile int v)
5436 static_assert(is_same<int, decltype(0)>::value == true, "");
5437 static_assert(is_same<int, decltype(c)>::value == false, "");
5438 static_assert(is_same<int, decltype(v)>::value == false, "");
5441 auto sumi = ac + av + 'x';
5442 auto sumf = ac + av + 1.0;
5443 static_assert(is_same<int, decltype(ac)>::value == true, "");
5444 static_assert(is_same<int, decltype(av)>::value == true, "");
5445 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5446 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5447 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5448 return (sumf > 0.0) ? sumi : add(c, v);
5453 namespace test_noexcept
5456 int f() { return 0; }
5457 int g() noexcept { return 0; }
5459 static_assert(noexcept(f()) == false, "");
5460 static_assert(noexcept(g()) == true, "");
5464 namespace test_constexpr
5467 template < typename CharT >
5468 unsigned long constexpr
5469 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5471 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5474 template < typename CharT >
5475 unsigned long constexpr
5476 strlen_c(const CharT *const s) noexcept
5478 return strlen_c_r(s, 0UL);
5481 static_assert(strlen_c("") == 0UL, "");
5482 static_assert(strlen_c("1") == 1UL, "");
5483 static_assert(strlen_c("example") == 7UL, "");
5484 static_assert(strlen_c("another\0example") == 7UL, "");
5488 namespace test_rvalue_references
5494 static constexpr int value = N;
5497 answer<1> f(int&) { return answer<1>(); }
5498 answer<2> f(const int&) { return answer<2>(); }
5499 answer<3> f(int&&) { return answer<3>(); }
5506 static_assert(decltype(f(i))::value == 1, "");
5507 static_assert(decltype(f(c))::value == 2, "");
5508 static_assert(decltype(f(0))::value == 3, "");
5513 namespace test_uniform_initialization
5518 static const int zero {};
5519 static const int one {1};
5522 static_assert(test::zero == 0, "");
5523 static_assert(test::one == 1, "");
5527 namespace test_lambdas
5533 auto lambda1 = [](){};
5534 auto lambda2 = lambda1;
5542 auto a = [](int i, int j){ return i + j; }(1, 2);
5543 auto b = []() -> int { return '0'; }();
5544 auto c = [=](){ return a + b; }();
5545 auto d = [&](){ return c; }();
5546 auto e = [a, &b](int x) mutable {
5547 const auto identity = [](int y){ return y; };
5548 for (auto i = 0; i < a; ++i)
5550 return x + identity(a + b);
5552 return a + b + c + d + e;
5558 const auto nullary = [](){ return 0; };
5559 const auto unary = [](int x){ return x; };
5560 using nullary_t = decltype(nullary);
5561 using unary_t = decltype(unary);
5562 const auto higher1st = [](nullary_t f){ return f(); };
5563 const auto higher2nd = [unary](nullary_t f1){
5564 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5566 return higher1st(nullary) + higher2nd(nullary)(unary);
5571 namespace test_variadic_templates
5577 template <int N0, int... N1toN>
5578 struct sum<N0, N1toN...>
5580 static constexpr auto value = N0 + sum<N1toN...>::value;
5586 static constexpr auto value = 0;
5589 static_assert(sum<>::value == 0, "");
5590 static_assert(sum<1>::value == 1, "");
5591 static_assert(sum<23>::value == 23, "");
5592 static_assert(sum<1, 2>::value == 3, "");
5593 static_assert(sum<5, 5, 11>::value == 21, "");
5594 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5598 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5599 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5601 namespace test_template_alias_sfinae
5606 template<typename T>
5607 using member = typename T::member_type;
5609 template<typename T>
5612 template<typename T>
5613 void func(member<T>*) {}
5617 void test() { func<foo>(0); }
5621 } // namespace cxx11
5623 #endif // __cplusplus >= 201103L
5628 if ac_fn_cxx_try_compile
"$LINENO"; then :
5633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5636 eval ac_res
=\$
$cachevar
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5638 $as_echo "$ac_res" >&6; }
5639 if eval test x\$
$cachevar = xyes
; then
5640 CXX_DIALECT
="$switch"
5642 if test -n "$CXXCPP" ; then
5643 CXXCPP
="$CXXCPP $switch"
5651 if test x
$ac_success = xno
; then
5652 for alternative
in ${ax_cxx_compile_alternatives}; do
5653 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5654 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5656 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5657 if eval \${$cachevar+:} false; then :
5658 $as_echo_n "(cached
) " >&6
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5666 // If the compiler admits that it is not ready for C++11, why torture it?
5667 // Hopefully, this will speed up the test.
5671 #error "This is not a C
++ compiler
"
5673 #elif __cplusplus < 201103L
5675 #error "This is not a C
++11 compiler
"
5682 namespace test_static_assert
5685 template <typename T>
5688 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5693 namespace test_final_override
5701 struct Derived : public Base
5703 virtual void f() override {}
5708 namespace test_double_right_angle_brackets
5711 template < typename T >
5714 typedef check<void> single_type;
5715 typedef check<check<void>> double_type;
5716 typedef check<check<check<void>>> triple_type;
5717 typedef check<check<check<check<void>>>> quadruple_type;
5721 namespace test_decltype
5734 namespace test_type_deduction
5737 template < typename T1, typename T2 >
5740 static const bool value = false;
5743 template < typename T >
5744 struct is_same<T, T>
5746 static const bool value = true;
5749 template < typename T1, typename T2 >
5751 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5757 test(const int c, volatile int v)
5759 static_assert(is_same<int, decltype(0)>::value == true, "");
5760 static_assert(is_same<int, decltype(c)>::value == false, "");
5761 static_assert(is_same<int, decltype(v)>::value == false, "");
5764 auto sumi = ac + av + 'x';
5765 auto sumf = ac + av + 1.0;
5766 static_assert(is_same<int, decltype(ac)>::value == true, "");
5767 static_assert(is_same<int, decltype(av)>::value == true, "");
5768 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5769 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5770 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5771 return (sumf > 0.0) ? sumi : add(c, v);
5776 namespace test_noexcept
5779 int f() { return 0; }
5780 int g() noexcept { return 0; }
5782 static_assert(noexcept(f()) == false, "");
5783 static_assert(noexcept(g()) == true, "");
5787 namespace test_constexpr
5790 template < typename CharT >
5791 unsigned long constexpr
5792 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5794 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5797 template < typename CharT >
5798 unsigned long constexpr
5799 strlen_c(const CharT *const s) noexcept
5801 return strlen_c_r(s, 0UL);
5804 static_assert(strlen_c("") == 0UL, "");
5805 static_assert(strlen_c("1") == 1UL, "");
5806 static_assert(strlen_c("example
") == 7UL, "");
5807 static_assert(strlen_c("another\
0example
") == 7UL, "");
5811 namespace test_rvalue_references
5817 static constexpr int value = N;
5820 answer<1> f(int&) { return answer<1>(); }
5821 answer<2> f(const int&) { return answer<2>(); }
5822 answer<3> f(int&&) { return answer<3>(); }
5829 static_assert(decltype(f(i))::value == 1, "");
5830 static_assert(decltype(f(c))::value == 2, "");
5831 static_assert(decltype(f(0))::value == 3, "");
5836 namespace test_uniform_initialization
5841 static const int zero {};
5842 static const int one {1};
5845 static_assert(test::zero == 0, "");
5846 static_assert(test::one == 1, "");
5850 namespace test_lambdas
5856 auto lambda1 = [](){};
5857 auto lambda2 = lambda1;
5865 auto a = [](int i, int j){ return i + j; }(1, 2);
5866 auto b = []() -> int { return '0'; }();
5867 auto c = [=](){ return a + b; }();
5868 auto d = [&](){ return c; }();
5869 auto e = [a, &b](int x) mutable {
5870 const auto identity = [](int y){ return y; };
5871 for (auto i = 0; i < a; ++i)
5873 return x + identity(a + b);
5875 return a + b + c + d + e;
5881 const auto nullary = [](){ return 0; };
5882 const auto unary = [](int x){ return x; };
5883 using nullary_t = decltype(nullary);
5884 using unary_t = decltype(unary);
5885 const auto higher1st = [](nullary_t f){ return f(); };
5886 const auto higher2nd = [unary](nullary_t f1){
5887 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5889 return higher1st(nullary) + higher2nd(nullary)(unary);
5894 namespace test_variadic_templates
5900 template <int N0, int... N1toN>
5901 struct sum<N0, N1toN...>
5903 static constexpr auto value = N0 + sum<N1toN...>::value;
5909 static constexpr auto value = 0;
5912 static_assert(sum<>::value == 0, "");
5913 static_assert(sum<1>::value == 1, "");
5914 static_assert(sum<23>::value == 23, "");
5915 static_assert(sum<1, 2>::value == 3, "");
5916 static_assert(sum<5, 5, 11>::value == 21, "");
5917 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5921 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5922 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5924 namespace test_template_alias_sfinae
5929 template<typename T>
5930 using member = typename T::member_type;
5932 template<typename T>
5935 template<typename T>
5936 void func(member<T>*) {}
5940 void test() { func<foo>(0); }
5944 } // namespace cxx11
5946 #endif // __cplusplus >= 201103L
5951 if ac_fn_cxx_try_compile "$LINENO"; then :
5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 eval ac_res=\$$cachevar
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5961 $as_echo "$ac_res" >&6; }
5962 if eval test x\$$cachevar = xyes; then
5963 CXX_DIALECT="$switch"
5965 if test -n "$CXXCPP" ; then
5966 CXXCPP="$CXXCPP $switch"
5972 if test x$ac_success = xyes; then
5978 ac_cpp='$CPP $CPPFLAGS'
5979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5984 if test x$ac_success = xno; then
5985 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
5988 if test x$ac_success = xno; then
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
5991 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
5995 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6003 $as_echo_n "checking for ANSI C header files... " >&6; }
6004 if ${ac_cv_header_stdc+:} false
; then :
6005 $as_echo_n "(cached) " >&6
6007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6022 if ac_fn_c_try_compile
"$LINENO"; then :
6023 ac_cv_header_stdc
=yes
6025 ac_cv_header_stdc
=no
6027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6029 if test $ac_cv_header_stdc = yes; then
6030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037 $EGREP "memchr" >/dev
/null
2>&1; then :
6040 ac_cv_header_stdc
=no
6046 if test $ac_cv_header_stdc = yes; then
6047 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054 $EGREP "free" >/dev
/null
2>&1; then :
6057 ac_cv_header_stdc
=no
6063 if test $ac_cv_header_stdc = yes; then
6064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6065 if test "$cross_compiling" = yes; then :
6068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6072 #if ((' ' & 0x0FF) == 0x020)
6073 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6074 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6076 # define ISLOWER(c) \
6077 (('a' <= (c) && (c) <= 'i') \
6078 || ('j' <= (c) && (c) <= 'r') \
6079 || ('s' <= (c) && (c) <= 'z'))
6080 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6083 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6088 for (i = 0; i < 256; i++)
6089 if (XOR (islower (i), ISLOWER (i))
6090 || toupper (i) != TOUPPER (i))
6095 if ac_fn_c_try_run
"$LINENO"; then :
6098 ac_cv_header_stdc
=no
6100 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6101 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6107 $as_echo "$ac_cv_header_stdc" >&6; }
6108 if test $ac_cv_header_stdc = yes; then
6110 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6115 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6116 if test "x$ac_cv_type_size_t" = xyes
; then :
6120 cat >>confdefs.h
<<_ACEOF
6121 #define size_t unsigned int
6129 for ac_header
in $ac_header_list
6131 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6132 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6134 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6135 cat >>confdefs.h
<<_ACEOF
6136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6149 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6150 if test "x$ac_cv_type_pid_t" = xyes
; then :
6154 cat >>confdefs.h
<<_ACEOF
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6161 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6162 if ${ac_cv_path_SED+:} false
; then :
6163 $as_echo_n "(cached) " >&6
6165 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6166 for ac_i
in 1 2 3 4 5 6 7; do
6167 ac_script
="$ac_script$as_nl$ac_script"
6169 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
6170 { ac_script
=; unset ac_script
;}
6171 if test -z "$SED"; then
6172 ac_path_SED_found
=false
6173 # Loop through the user's path and test for each of PROGNAME-LIST
6174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6178 test -z "$as_dir" && as_dir
=.
6179 for ac_prog
in sed gsed
; do
6180 for ac_exec_ext
in '' $ac_executable_extensions; do
6181 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6182 as_fn_executable_p
"$ac_path_SED" ||
continue
6183 # Check for GNU ac_path_SED and select it if it is found.
6184 # Check for GNU $ac_path_SED
6185 case `"$ac_path_SED" --version 2>&1` in
6187 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6190 $as_echo_n 0123456789 >"conftest.in"
6193 cat "conftest.in" "conftest.in" >"conftest.tmp"
6194 mv "conftest.tmp" "conftest.in"
6195 cp "conftest.in" "conftest.nl"
6196 $as_echo '' >> "conftest.nl"
6197 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6198 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6199 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6200 if test $ac_count -gt ${ac_path_SED_max-0}; then
6201 # Best one so far, save it but keep looking for a better one
6202 ac_cv_path_SED
="$ac_path_SED"
6203 ac_path_SED_max
=$ac_count
6205 # 10*(2^10) chars as input seems more than enough
6206 test $ac_count -gt 10 && break
6208 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6211 $ac_path_SED_found && break 3
6216 if test -z "$ac_cv_path_SED"; then
6217 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6225 $as_echo "$ac_cv_path_SED" >&6; }
6226 SED
="$ac_cv_path_SED"
6230 if test "X$prefix" = "XNONE"; then
6231 acl_final_prefix
="$ac_default_prefix"
6233 acl_final_prefix
="$prefix"
6235 if test "X$exec_prefix" = "XNONE"; then
6236 acl_final_exec_prefix
='${prefix}'
6238 acl_final_exec_prefix
="$exec_prefix"
6240 acl_save_prefix
="$prefix"
6241 prefix
="$acl_final_prefix"
6242 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6243 prefix
="$acl_save_prefix"
6246 # Check whether --with-gnu-ld was given.
6247 if test "${with_gnu_ld+set}" = set; then :
6248 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6253 # Prepare PATH_SEPARATOR.
6254 # The user is always right.
6255 if test "${PATH_SEPARATOR+set}" != set; then
6256 echo "#! /bin/sh" >conf$$.sh
6257 echo "exit 0" >>conf$$.sh
6259 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6267 if test "$GCC" = yes; then
6268 # Check if gcc -print-prog-name=ld gives a path.
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6270 $as_echo_n "checking for ld used by GCC... " >&6; }
6273 # gcc leaves a trailing carriage return which upsets mingw
6274 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6276 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6279 # Accept absolute paths.
6280 [\\/]* |
[A-Za-z
]:[\\/]*)
6281 re_direlt
='/[^/][^/]*/\.\./'
6282 # Canonicalize the path of ld
6283 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6284 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6285 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6287 test -z "$LD" && LD
="$ac_prog"
6290 # If it fails, then pretend we aren't using GCC.
6294 # If it is relative, then search for the first ld in PATH.
6298 elif test "$with_gnu_ld" = yes; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6300 $as_echo_n "checking for GNU ld... " >&6; }
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6303 $as_echo_n "checking for non-GNU ld... " >&6; }
6305 if ${acl_cv_path_LD+:} false
; then :
6306 $as_echo_n "(cached) " >&6
6308 if test -z "$LD"; then
6309 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6310 for ac_dir
in $PATH; do
6311 test -z "$ac_dir" && ac_dir
=.
6312 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6313 acl_cv_path_LD
="$ac_dir/$ac_prog"
6314 # Check to see if the program is GNU ld. I'd rather use --version,
6315 # but apparently some GNU ld's only accept -v.
6316 # Break only if it was the GNU/non-GNU ld that we prefer.
6317 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
6318 test "$with_gnu_ld" != no
&& break
6320 test "$with_gnu_ld" != yes && break
6326 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6330 LD
="$acl_cv_path_LD"
6331 if test -n "$LD"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6333 $as_echo "$LD" >&6; }
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6338 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6340 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6341 if ${acl_cv_prog_gnu_ld+:} false
; then :
6342 $as_echo_n "(cached) " >&6
6344 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6345 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
6346 acl_cv_prog_gnu_ld
=yes
6348 acl_cv_prog_gnu_ld
=no
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6352 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6353 with_gnu_ld
=$acl_cv_prog_gnu_ld
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6358 $as_echo_n "checking for shared library run path origin... " >&6; }
6359 if ${acl_cv_rpath+:} false
; then :
6360 $as_echo_n "(cached) " >&6
6363 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6364 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6371 $as_echo "$acl_cv_rpath" >&6; }
6373 libext
="$acl_cv_libext"
6374 shlibext
="$acl_cv_shlibext"
6375 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6376 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6377 hardcode_direct
="$acl_cv_hardcode_direct"
6378 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6379 # Check whether --enable-rpath was given.
6380 if test "${enable_rpath+set}" = set; then :
6381 enableval
=$enable_rpath; :
6388 # Set the 'development' global.
6389 .
$srcdir/..
/bfd
/development.sh
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6392 $as_echo_n "checking for ANSI C header files... " >&6; }
6393 if ${ac_cv_header_stdc+:} false
; then :
6394 $as_echo_n "(cached) " >&6
6396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6411 if ac_fn_c_try_compile
"$LINENO"; then :
6412 ac_cv_header_stdc
=yes
6414 ac_cv_header_stdc
=no
6416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6418 if test $ac_cv_header_stdc = yes; then
6419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6426 $EGREP "memchr" >/dev
/null
2>&1; then :
6429 ac_cv_header_stdc
=no
6435 if test $ac_cv_header_stdc = yes; then
6436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6443 $EGREP "free" >/dev
/null
2>&1; then :
6446 ac_cv_header_stdc
=no
6452 if test $ac_cv_header_stdc = yes; then
6453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6454 if test "$cross_compiling" = yes; then :
6457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6461 #if ((' ' & 0x0FF) == 0x020)
6462 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6463 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6465 # define ISLOWER(c) \
6466 (('a' <= (c) && (c) <= 'i') \
6467 || ('j' <= (c) && (c) <= 'r') \
6468 || ('s' <= (c) && (c) <= 'z'))
6469 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6472 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6477 for (i = 0; i < 256; i++)
6478 if (XOR (islower (i), ISLOWER (i))
6479 || toupper (i) != TOUPPER (i))
6484 if ac_fn_c_try_run
"$LINENO"; then :
6487 ac_cv_header_stdc
=no
6489 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6490 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6496 $as_echo "$ac_cv_header_stdc" >&6; }
6497 if test $ac_cv_header_stdc = yes; then
6499 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6503 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6504 # for constant arguments. Useless!
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6506 $as_echo_n "checking for working alloca.h... " >&6; }
6507 if ${ac_cv_working_alloca_h+:} false
; then :
6508 $as_echo_n "(cached) " >&6
6510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6516 char *p = (char *) alloca (2 * sizeof (int));
6522 if ac_fn_c_try_link
"$LINENO"; then :
6523 ac_cv_working_alloca_h
=yes
6525 ac_cv_working_alloca_h
=no
6527 rm -f core conftest.err conftest.
$ac_objext \
6528 conftest
$ac_exeext conftest.
$ac_ext
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6531 $as_echo "$ac_cv_working_alloca_h" >&6; }
6532 if test $ac_cv_working_alloca_h = yes; then
6534 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6539 $as_echo_n "checking for alloca... " >&6; }
6540 if ${ac_cv_func_alloca_works+:} false
; then :
6541 $as_echo_n "(cached) " >&6
6543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6546 # define alloca __builtin_alloca
6549 # include <malloc.h>
6550 # define alloca _alloca
6552 # ifdef HAVE_ALLOCA_H
6553 # include <alloca.h>
6558 # ifndef alloca /* predefined by HP cc +Olibcalls */
6559 void *alloca (size_t);
6569 char *p = (char *) alloca (1);
6575 if ac_fn_c_try_link
"$LINENO"; then :
6576 ac_cv_func_alloca_works
=yes
6578 ac_cv_func_alloca_works
=no
6580 rm -f core conftest.err conftest.
$ac_objext \
6581 conftest
$ac_exeext conftest.
$ac_ext
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6584 $as_echo "$ac_cv_func_alloca_works" >&6; }
6586 if test $ac_cv_func_alloca_works = yes; then
6588 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6591 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6592 # that cause trouble. Some versions do not even contain alloca or
6593 # contain a buggy version. If you still want to use their alloca,
6594 # use ar to extract alloca.o from them instead of compiling alloca.c.
6596 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6598 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6602 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6603 if ${ac_cv_os_cray+:} false
; then :
6604 $as_echo_n "(cached) " >&6
6606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608 #if defined CRAY && ! defined CRAY2
6615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6616 $EGREP "webecray" >/dev
/null
2>&1; then :
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6625 $as_echo "$ac_cv_os_cray" >&6; }
6626 if test $ac_cv_os_cray = yes; then
6627 for ac_func
in _getb67 GETB67 getb67
; do
6628 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6629 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6630 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6632 cat >>confdefs.h
<<_ACEOF
6633 #define CRAY_STACKSEG_END $ac_func
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6643 $as_echo_n "checking stack direction for C alloca... " >&6; }
6644 if ${ac_cv_c_stack_direction+:} false
; then :
6645 $as_echo_n "(cached) " >&6
6647 if test "$cross_compiling" = yes; then :
6648 ac_cv_c_stack_direction
=0
6650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6652 $ac_includes_default
6654 find_stack_direction (int *addr, int depth)
6659 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6660 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6665 main (int argc, char **argv)
6667 return find_stack_direction (0, argc + !argv + 20) < 0;
6670 if ac_fn_c_try_run
"$LINENO"; then :
6671 ac_cv_c_stack_direction
=1
6673 ac_cv_c_stack_direction
=-1
6675 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6676 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6681 $as_echo "$ac_cv_c_stack_direction" >&6; }
6682 cat >>confdefs.h
<<_ACEOF
6683 #define STACK_DIRECTION $ac_cv_c_stack_direction
6694 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6696 WIN32APILIBS
="-lws2_32"
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6702 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6703 if ${am_cv_langinfo_codeset+:} false
; then :
6704 $as_echo_n "(cached) " >&6
6706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708 #include <langinfo.h>
6712 char* cs = nl_langinfo(CODESET);
6717 if ac_fn_c_try_link
"$LINENO"; then :
6718 am_cv_langinfo_codeset
=yes
6720 am_cv_langinfo_codeset
=no
6722 rm -f core conftest.err conftest.
$ac_objext \
6723 conftest
$ac_exeext conftest.
$ac_ext
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6727 $as_echo "$am_cv_langinfo_codeset" >&6; }
6728 if test $am_cv_langinfo_codeset = yes; then
6730 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6735 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
6737 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6738 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6739 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6740 cat >>confdefs.h
<<_ACEOF
6741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6750 for ac_func
in getpagesize
6752 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6753 if test "x$ac_cv_func_getpagesize" = xyes
; then :
6754 cat >>confdefs.h
<<_ACEOF
6755 #define HAVE_GETPAGESIZE 1
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6762 $as_echo_n "checking for working mmap... " >&6; }
6763 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
6764 $as_echo_n "(cached) " >&6
6766 if test "$cross_compiling" = yes; then :
6767 ac_cv_func_mmap_fixed_mapped
=no
6769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 $ac_includes_default
6772 /* malloc might have been renamed as rpl_malloc. */
6775 /* Thanks to Mike Haertel and Jim Avera for this test.
6776 Here is a matrix of mmap possibilities:
6777 mmap private not fixed
6778 mmap private fixed at somewhere currently unmapped
6779 mmap private fixed at somewhere already mapped
6780 mmap shared not fixed
6781 mmap shared fixed at somewhere currently unmapped
6782 mmap shared fixed at somewhere already mapped
6783 For private mappings, we should verify that changes cannot be read()
6784 back from the file, nor mmap's back from the file at a different
6785 address. (There have been systems where private was not correctly
6786 implemented like the infamous i386 svr4.0, and systems where the
6787 VM page cache was not coherent with the file system buffer cache
6788 like early versions of FreeBSD and possibly contemporary NetBSD.)
6789 For shared mappings, we should conversely verify that changes get
6790 propagated back to all the places they're supposed to be.
6792 Grep wants private fixed already mapped.
6793 The main things grep needs to know about mmap are:
6794 * does it exist and is it safe to write into the mmap'd area
6795 * how to use it (BSD variants) */
6798 #include <sys/mman.h>
6800 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6804 /* This mess was copied from the GNU getpagesize.h. */
6805 #ifndef HAVE_GETPAGESIZE
6806 # ifdef _SC_PAGESIZE
6807 # define getpagesize() sysconf(_SC_PAGESIZE)
6808 # else /* no _SC_PAGESIZE */
6809 # ifdef HAVE_SYS_PARAM_H
6810 # include <sys/param.h>
6811 # ifdef EXEC_PAGESIZE
6812 # define getpagesize() EXEC_PAGESIZE
6813 # else /* no EXEC_PAGESIZE */
6815 # define getpagesize() NBPG * CLSIZE
6818 # endif /* no CLSIZE */
6819 # else /* no NBPG */
6821 # define getpagesize() NBPC
6822 # else /* no NBPC */
6824 # define getpagesize() PAGESIZE
6825 # endif /* PAGESIZE */
6826 # endif /* no NBPC */
6827 # endif /* no NBPG */
6828 # endif /* no EXEC_PAGESIZE */
6829 # else /* no HAVE_SYS_PARAM_H */
6830 # define getpagesize() 8192 /* punt totally */
6831 # endif /* no HAVE_SYS_PARAM_H */
6832 # endif /* no _SC_PAGESIZE */
6834 #endif /* no HAVE_GETPAGESIZE */
6839 char *data, *data2, *data3;
6844 pagesize = getpagesize ();
6846 /* First, make a file with some known garbage in it. */
6847 data = (char *) malloc (pagesize);
6850 for (i = 0; i < pagesize; ++i)
6851 *(data + i) = rand ();
6853 fd = creat ("conftest.mmap", 0600);
6856 if (write (fd, data, pagesize) != pagesize)
6860 /* Next, check that the tail of a page is zero-filled. File must have
6861 non-zero length, otherwise we risk SIGBUS for entire page. */
6862 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6866 if (write (fd2, cdata2, 1) != 1)
6868 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6869 if (data2 == MAP_FAILED)
6871 for (i = 0; i < pagesize; ++i)
6875 if (munmap (data2, pagesize))
6878 /* Next, try to mmap the file at a fixed address which already has
6879 something else allocated at it. If we can, also make sure that
6880 we see the same garbage. */
6881 fd = open ("conftest.mmap", O_RDWR);
6884 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6885 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6887 for (i = 0; i < pagesize; ++i)
6888 if (*(data + i) != *(data2 + i))
6891 /* Finally, make sure that changes to the mapped area do not
6892 percolate back to the file as seen by read(). (This is a bug on
6893 some variants of i386 svr4.0.) */
6894 for (i = 0; i < pagesize; ++i)
6895 *(data2 + i) = *(data2 + i) + 1;
6896 data3 = (char *) malloc (pagesize);
6899 if (read (fd, data3, pagesize) != pagesize)
6901 for (i = 0; i < pagesize; ++i)
6902 if (*(data + i) != *(data3 + i))
6908 if ac_fn_c_try_run
"$LINENO"; then :
6909 ac_cv_func_mmap_fixed_mapped
=yes
6911 ac_cv_func_mmap_fixed_mapped
=no
6913 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6914 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6919 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6920 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6922 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6925 rm -f conftest.mmap conftest.txt
6927 for ac_header
in vfork.h
6929 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6930 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6931 cat >>confdefs.h
<<_ACEOF
6932 #define HAVE_VFORK_H 1
6939 for ac_func
in fork vfork
6941 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6942 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6943 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6944 cat >>confdefs.h
<<_ACEOF
6945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6951 if test "x$ac_cv_func_fork" = xyes
; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6953 $as_echo_n "checking for working fork... " >&6; }
6954 if ${ac_cv_func_fork_works+:} false
; then :
6955 $as_echo_n "(cached) " >&6
6957 if test "$cross_compiling" = yes; then :
6958 ac_cv_func_fork_works
=cross
6960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962 $ac_includes_default
6967 /* By Ruediger Kuhlmann. */
6974 if ac_fn_c_try_run
"$LINENO"; then :
6975 ac_cv_func_fork_works
=yes
6977 ac_cv_func_fork_works
=no
6979 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6980 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6985 $as_echo "$ac_cv_func_fork_works" >&6; }
6988 ac_cv_func_fork_works
=$ac_cv_func_fork
6990 if test "x$ac_cv_func_fork_works" = xcross
; then
6992 *-*-amigaos* |
*-*-msdosdjgpp*)
6993 # Override, as these systems have only a dummy fork() stub
6994 ac_cv_func_fork_works
=no
6997 ac_cv_func_fork_works
=yes
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7001 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7003 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7004 if test "x$ac_cv_func_vfork" = xyes
; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7006 $as_echo_n "checking for working vfork... " >&6; }
7007 if ${ac_cv_func_vfork_works+:} false
; then :
7008 $as_echo_n "(cached) " >&6
7010 if test "$cross_compiling" = yes; then :
7011 ac_cv_func_vfork_works
=cross
7013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7015 /* Thanks to Paul Eggert for this test. */
7016 $ac_includes_default
7017 #include <sys/wait.h>
7021 /* On some sparc systems, changes by the child to local and incoming
7022 argument registers are propagated back to the parent. The compiler
7023 is told about this with #include <vfork.h>, but some compilers
7024 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7025 static variable whose address is put into a register that is
7026 clobbered by the vfork. */
7029 sparc_address_test (int arg)
7031 sparc_address_test (arg) int arg;
7052 pid_t parent = getpid ();
7055 sparc_address_test (0);
7060 /* Here is another test for sparc vfork register problems. This
7061 test uses lots of local variables, at least as many local
7062 variables as main has allocated so far including compiler
7063 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7064 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7065 reuse the register of parent for one of the local variables,
7066 since it will think that parent can't possibly be used any more
7067 in this routine. Assigning to the local variable will thus
7068 munge parent in the parent process. */
7070 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7071 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7072 /* Convince the compiler that p..p7 are live; otherwise, it might
7073 use the same hardware register for all 8 local variables. */
7074 if (p != p1 || p != p2 || p != p3 || p != p4
7075 || p != p5 || p != p6 || p != p7)
7078 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7079 from child file descriptors. If the child closes a descriptor
7080 before it execs or exits, this munges the parent's descriptor
7081 as well. Test for this by closing stdout in the child. */
7082 _exit(close(fileno(stdout)) != 0);
7087 while (wait(&status) != child)
7090 /* Was there some problem with vforking? */
7093 /* Did the child fail? (This shouldn't happen.) */
7096 /* Did the vfork/compiler bug occur? */
7097 || parent != getpid()
7099 /* Did the file descriptor bug occur? */
7100 || fstat(fileno(stdout), &st) != 0
7105 if ac_fn_c_try_run
"$LINENO"; then :
7106 ac_cv_func_vfork_works
=yes
7108 ac_cv_func_vfork_works
=no
7110 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7111 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7116 $as_echo "$ac_cv_func_vfork_works" >&6; }
7119 if test "x$ac_cv_func_fork_works" = xcross
; then
7120 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7122 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7125 if test "x$ac_cv_func_vfork_works" = xyes
; then
7127 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7131 $as_echo "#define vfork fork" >>confdefs.h
7134 if test "x$ac_cv_func_fork_works" = xyes
; then
7136 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7140 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
7141 ptrace64 sbrk setns sigaltstack sigprocmask \
7142 setpgid setpgrp getrusage getauxval sigtimedwait
7144 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7145 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7146 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7147 cat >>confdefs.h
<<_ACEOF
7148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7155 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
7156 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
7157 # only in linux/personality.h.
7158 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7160 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
7166 cat >>confdefs.h
<<_ACEOF
7167 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7171 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
7172 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
7178 cat >>confdefs.h
<<_ACEOF
7179 #define HAVE_DECL_STRSTR $ac_have_decl
7183 # ----------------------- #
7184 # Checks for structures. #
7185 # ----------------------- #
7187 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7188 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
7190 cat >>confdefs.h
<<_ACEOF
7191 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7196 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7197 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
7199 cat >>confdefs.h
<<_ACEOF
7200 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7207 # On FreeBSD we need libutil for the kinfo_get* functions. On
7208 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7209 # Figure out which one to use.
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7211 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
7212 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7213 $as_echo_n "(cached) " >&6
7215 ac_func_search_save_LIBS
=$LIBS
7216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7219 /* Override any GCC internal prototype to avoid an error.
7220 Use char because int might match the return type of a GCC
7221 builtin and then its argument prototype would still apply. */
7225 char kinfo_getfile ();
7229 return kinfo_getfile ();
7234 for ac_lib
in '' util util-freebsd
; do
7235 if test -z "$ac_lib"; then
7236 ac_res
="none required"
7239 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7241 if ac_fn_c_try_link
"$LINENO"; then :
7242 ac_cv_search_kinfo_getfile
=$ac_res
7244 rm -f core conftest.err conftest.
$ac_objext \
7246 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7250 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7253 ac_cv_search_kinfo_getfile
=no
7256 LIBS
=$ac_func_search_save_LIBS
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
7259 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
7260 ac_res
=$ac_cv_search_kinfo_getfile
7261 if test "$ac_res" != no
; then :
7262 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7267 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
7268 for ac_func
in kinfo_getfile
7270 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
7271 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
7272 cat >>confdefs.h
<<_ACEOF
7273 #define HAVE_KINFO_GETFILE 1
7280 # ----------------------- #
7281 # Check for threading. #
7282 # ----------------------- #
7284 # Check whether --enable-threading was given.
7285 if test "${enable_threading+set}" = set; then :
7286 enableval
=$enable_threading; case "$enableval" in
7287 yes) want_threading
=yes ;;
7288 no
) want_threading
=no
;;
7289 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
7296 # Check for std::thread. This does not work on some platforms, like
7299 ac_cpp
='$CXXCPP $CPPFLAGS'
7300 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7309 ac_cpp
='$CPP $CPPFLAGS'
7310 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7316 # We used to check for pthread.h first, but this fails if pthread.h
7317 # requires special compiler flags (e.g. on Tru64 or Sequent).
7318 # It gets checked for in the link test anyway.
7320 # First of all, check if the user has set any of the PTHREAD_LIBS,
7321 # etcetera environment variables, and if threads linking works using
7323 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7324 ax_pthread_save_CC
="$CC"
7325 ax_pthread_save_CFLAGS
="$CFLAGS"
7326 ax_pthread_save_LIBS
="$LIBS"
7327 if test "x$PTHREAD_CC" != "x"; then :
7330 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7331 LIBS
="$PTHREAD_LIBS $LIBS"
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7333 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7337 /* Override any GCC internal prototype to avoid an error.
7338 Use char because int might match the return type of a GCC
7339 builtin and then its argument prototype would still apply. */
7343 char pthread_join ();
7347 return pthread_join ();
7352 if ac_fn_c_try_link
"$LINENO"; then :
7355 rm -f core conftest.err conftest.
$ac_objext \
7356 conftest
$ac_exeext conftest.
$ac_ext
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7358 $as_echo "$ax_pthread_ok" >&6; }
7359 if test "x$ax_pthread_ok" = "xno"; then
7363 CC
="$ax_pthread_save_CC"
7364 CFLAGS
="$ax_pthread_save_CFLAGS"
7365 LIBS
="$ax_pthread_save_LIBS"
7368 # We must check for the threads library under a number of different
7369 # names; the ordering is very important because some systems
7370 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7371 # libraries is broken (non-POSIX).
7373 # Create a list of thread flags to try. Items starting with a "-" are
7374 # C compiler flags, and other items are library names, except for "none"
7375 # which indicates that we try without any flags at all, and "pthread-config"
7376 # which is a program returning the flags for the Pth emulation library.
7378 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7380 # The ordering *is* (sometimes) important. Some notes on the
7381 # individual items follow:
7383 # pthreads: AIX (must check this before -lpthread)
7384 # none: in case threads are in libc; should be tried before -Kthread and
7385 # other compiler flags to prevent continual compiler warnings
7386 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7387 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7388 # (Note: HP C rejects this with "bad form for `-t' option")
7389 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7390 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7391 # doesn't hurt to check since this sometimes defines pthreads and
7392 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7393 # is present but should not be used directly; and before -mthreads,
7394 # because the compiler interprets this as "-mt" + "-hreads")
7395 # -mthreads: Mingw32/gcc, Lynx/gcc
7396 # pthread: Linux, etcetera
7397 # --thread-safe: KAI C++
7398 # pthread-config: use pthread-config program (for GNU Pth library)
7404 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7405 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7407 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
7412 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7413 # multi-threading and also sets -lpthread."
7415 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
7420 # IBM z/OS requires a feature-test macro to be defined in order to
7421 # enable POSIX threads at all, so give the user a hint if this is
7422 # not set. (We don't define these ourselves, as they can affect
7423 # other portions of the system API in unpredictable ways.)
7425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7428 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7429 AX_PTHREAD_ZOS_MISSING
7433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7434 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7436 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7444 # On Solaris (at least, for some versions), libc contains stubbed
7445 # (non-functional) versions of the pthreads routines, so link-based
7446 # tests will erroneously succeed. (N.B.: The stubs are missing
7447 # pthread_cleanup_push, or rather a function called by this macro,
7448 # so we could check for that, but who knows whether they'll stub
7449 # that too in a future libc.) So we'll check first for the
7450 # standard Solaris way of linking pthreads (-mt -lpthread).
7452 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
7456 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7458 if test "x$GCC" = "xyes"; then :
7459 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
7462 # The presence of a feature test macro requesting re-entrant function
7463 # definitions is, on some systems, a strong hint that pthreads support is
7467 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
7468 ax_pthread_check_macro
="_REENTRANT"
7472 ax_pthread_check_macro
="_THREAD_SAFE"
7476 ax_pthread_check_macro
="--"
7479 if test "x$ax_pthread_check_macro" = "x--"; then :
7480 ax_pthread_check_cond
=0
7482 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
7485 # Are we compiling with Clang?
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7488 $as_echo_n "checking whether $CC is Clang... " >&6; }
7489 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
7490 $as_echo_n "(cached) " >&6
7492 ax_cv_PTHREAD_CLANG
=no
7493 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7494 if test "x$GCC" = "xyes"; then
7495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7498 # if defined(__clang__) && defined(__llvm__)
7499 AX_PTHREAD_CC_IS_CLANG
7503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7504 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
7505 ax_cv_PTHREAD_CLANG
=yes
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7513 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
7514 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
7516 ax_pthread_clang_warning
=no
7518 # Clang needs special handling, because older versions handle the -pthread
7519 # option in a rather... idiosyncratic way
7521 if test "x$ax_pthread_clang" = "xyes"; then
7523 # Clang takes -pthread; it has never supported any other flag
7525 # (Note 1: This will need to be revisited if a system that Clang
7526 # supports has POSIX threads in a separate library. This tends not
7527 # to be the way of modern systems, but it's conceivable.)
7529 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7530 # to get POSIX threads support; the API is always present and
7531 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7532 # -pthread does define _REENTRANT, and while the Darwin headers
7533 # ignore this macro, third-party headers might not.)
7535 PTHREAD_CFLAGS
="-pthread"
7540 # However, older versions of Clang make a point of warning the user
7541 # that, in an invocation where only linking and no compilation is
7542 # taking place, the -pthread option has no effect ("argument unused
7543 # during compilation"). They expect -pthread to be passed in only
7544 # when source code is being compiled.
7546 # Problem is, this is at odds with the way Automake and most other
7547 # C build frameworks function, which is that the same flags used in
7548 # compilation (CFLAGS) are also used in linking. Many systems
7549 # supported by AX_PTHREAD require exactly this for POSIX threads
7550 # support, and in fact it is often not straightforward to specify a
7551 # flag that is used only in the compilation phase and not in
7552 # linking. Such a scenario is extremely rare in practice.
7554 # Even though use of the -pthread flag in linking would only print
7555 # a warning, this can be a nuisance for well-run software projects
7556 # that build with -Werror. So if the active version of Clang has
7557 # this misfeature, we search for an option to squash it.
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7560 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7561 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
7562 $as_echo_n "(cached) " >&6
7564 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
7565 # Create an alternate version of $ac_link that compiles and
7566 # links in two steps (.c -> .o, .o -> exe) instead of one
7567 # (.c -> exe), because the warning occurs only in the second
7569 ax_pthread_save_ac_link
="$ac_link"
7570 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7571 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
7572 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7573 ax_pthread_save_CFLAGS
="$CFLAGS"
7574 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
7575 if test "x$ax_pthread_try" = "xunknown"; then :
7578 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7579 ac_link
="$ax_pthread_save_ac_link"
7580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7582 int main(void){return 0;}
7584 if ac_fn_c_try_link
"$LINENO"; then :
7585 ac_link
="$ax_pthread_2step_ac_link"
7586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7588 int main(void){return 0;}
7590 if ac_fn_c_try_link
"$LINENO"; then :
7593 rm -f core conftest.err conftest.
$ac_objext \
7594 conftest
$ac_exeext conftest.
$ac_ext
7597 rm -f core conftest.err conftest.
$ac_objext \
7598 conftest
$ac_exeext conftest.
$ac_ext
7600 ac_link
="$ax_pthread_save_ac_link"
7601 CFLAGS
="$ax_pthread_save_CFLAGS"
7602 if test "x$ax_pthread_try" = "x"; then :
7605 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7609 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7611 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7613 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7616 fi # $ax_pthread_clang = yes
7618 if test "x$ax_pthread_ok" = "xno"; then
7619 for ax_pthread_try_flag
in $ax_pthread_flags; do
7621 case $ax_pthread_try_flag in
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7624 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
7629 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
7630 PTHREAD_CFLAGS
="-mt"
7631 PTHREAD_LIBS
="-lpthread"
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7636 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7637 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
7641 # Extract the first word of "pthread-config", so it can be a program name with args.
7642 set dummy pthread-config
; ac_word
=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
7646 $as_echo_n "(cached) " >&6
7648 if test -n "$ax_pthread_config"; then
7649 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
7651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7655 test -z "$as_dir" && as_dir
=.
7656 for ac_exec_ext
in '' $ac_executable_extensions; do
7657 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7658 ac_cv_prog_ax_pthread_config
="yes"
7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
7669 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
7670 if test -n "$ax_pthread_config"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7672 $as_echo "$ax_pthread_config" >&6; }
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7679 if test "x$ax_pthread_config" = "xno"; then :
7682 PTHREAD_CFLAGS
="`pthread-config --cflags`"
7683 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7688 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7689 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
7693 ax_pthread_save_CFLAGS
="$CFLAGS"
7694 ax_pthread_save_LIBS
="$LIBS"
7695 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7696 LIBS
="$PTHREAD_LIBS $LIBS"
7698 # Check for various functions. We must include pthread.h,
7699 # since some functions may be macros. (On the Sequent, we
7700 # need a special flag -Kthread to make this header compile.)
7701 # We check for pthread_join because it is in -lpthread on IRIX
7702 # while pthread_create is in libc. We check for pthread_attr_init
7703 # due to DEC craziness with -lpthreads. We check for
7704 # pthread_cleanup_push because it is one of the few pthread
7705 # functions on Solaris that doesn't have a non-functional libc stub.
7706 # We try pthread_create on general principles.
7708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710 #include <pthread.h>
7711 # if $ax_pthread_check_cond
7712 # error "$ax_pthread_check_macro must be defined"
7714 static void routine(void *a) { a = 0; }
7715 static void *start_routine(void *a) { return a; }
7719 pthread_t th; pthread_attr_t attr;
7720 pthread_create(&th, 0, start_routine, 0);
7721 pthread_join(th, 0);
7722 pthread_attr_init(&attr);
7723 pthread_cleanup_push(routine, 0);
7724 pthread_cleanup_pop(0) /* ; */
7729 if ac_fn_c_try_link
"$LINENO"; then :
7732 rm -f core conftest.err conftest.
$ac_objext \
7733 conftest
$ac_exeext conftest.
$ac_ext
7735 CFLAGS
="$ax_pthread_save_CFLAGS"
7736 LIBS
="$ax_pthread_save_LIBS"
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7739 $as_echo "$ax_pthread_ok" >&6; }
7740 if test "x$ax_pthread_ok" = "xyes"; then :
7749 # Various other checks:
7750 if test "x$ax_pthread_ok" = "xyes"; then
7751 ax_pthread_save_CFLAGS
="$CFLAGS"
7752 ax_pthread_save_LIBS
="$LIBS"
7753 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7754 LIBS
="$PTHREAD_LIBS $LIBS"
7756 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7758 $as_echo_n "checking for joinable pthread attribute... " >&6; }
7759 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
7760 $as_echo_n "(cached) " >&6
7762 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
7763 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766 #include <pthread.h>
7770 int attr = $ax_pthread_attr; return attr /* ; */
7775 if ac_fn_c_try_link
"$LINENO"; then :
7776 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
7778 rm -f core conftest.err conftest.
$ac_objext \
7779 conftest
$ac_exeext conftest.
$ac_ext
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7784 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7785 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7786 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7787 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
7789 cat >>confdefs.h
<<_ACEOF
7790 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
7793 ax_pthread_joinable_attr_defined
=yes
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7798 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
7799 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
7800 $as_echo_n "(cached) " >&6
7802 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
7805 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7811 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7812 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7813 test "x$ax_pthread_special_flags_added" != "xyes"; then :
7814 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7815 ax_pthread_special_flags_added
=yes
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7819 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7820 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
7821 $as_echo_n "(cached) " >&6
7823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 #include <pthread.h>
7829 int i = PTHREAD_PRIO_INHERIT;
7834 if ac_fn_c_try_link
"$LINENO"; then :
7835 ax_cv_PTHREAD_PRIO_INHERIT
=yes
7837 ax_cv_PTHREAD_PRIO_INHERIT
=no
7839 rm -f core conftest.err conftest.
$ac_objext \
7840 conftest
$ac_exeext conftest.
$ac_ext
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7844 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7845 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7846 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
7848 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7850 ax_pthread_prio_inherit_defined
=yes
7854 CFLAGS
="$ax_pthread_save_CFLAGS"
7855 LIBS
="$ax_pthread_save_LIBS"
7857 # More AIX lossage: compile with *_r variant
7858 if test "x$GCC" != "xyes"; then
7862 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
7863 #handle absolute path differently from PATH based program lookup
7866 if as_fn_executable_p
${CC}_r
; then :
7867 PTHREAD_CC
="${CC}_r"
7870 for ac_prog
in ${CC}_r
7872 # Extract the first word of "$ac_prog", so it can be a program name with args.
7873 set dummy
$ac_prog; ac_word
=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
7877 $as_echo_n "(cached) " >&6
7879 if test -n "$PTHREAD_CC"; then
7880 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
7882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7886 test -z "$as_dir" && as_dir
=.
7887 for ac_exec_ext
in '' $ac_executable_extensions; do
7888 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_PTHREAD_CC
="$ac_prog"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
7900 if test -n "$PTHREAD_CC"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7902 $as_echo "$PTHREAD_CC" >&6; }
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7909 test -n "$PTHREAD_CC" && break
7911 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
7922 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
7928 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7929 if test "x$ax_pthread_ok" = "xyes"; then
7937 ac_cpp
='$CXXCPP $CPPFLAGS'
7938 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7944 LIBS
="$PTHREAD_LIBS $LIBS"
7945 save_CXXFLAGS
="$CXXFLAGS"
7946 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
7948 $as_echo_n "checking for std::thread... " >&6; }
7949 if ${gdb_cv_cxx_std_thread+:} false
; then :
7950 $as_echo_n "(cached) " >&6
7952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7954 #if defined (__MINGW32__) || defined (__CYGWIN__)
7955 # ifdef _WIN32_WINNT
7956 # if _WIN32_WINNT < 0x0501
7957 # undef _WIN32_WINNT
7958 # define _WIN32_WINNT 0x0501
7961 # define _WIN32_WINNT 0x0501
7963 #endif /* __MINGW32__ || __CYGWIN__ */
7969 std::thread t(callback);
7974 if ac_fn_cxx_try_compile
"$LINENO"; then :
7975 gdb_cv_cxx_std_thread
=yes
7977 gdb_cv_cxx_std_thread
=no
7979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
7982 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
7984 if test "$threads" = "yes"; then
7985 # This check must be here, while LIBS includes any necessary
7986 # threading library.
7987 for ac_func
in pthread_sigmask pthread_setname_np
7989 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7990 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7991 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7992 cat >>confdefs.h
<<_ACEOF
7993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8001 CXXFLAGS
="$save_CXXFLAGS"
8003 if test "$want_threading" = "yes"; then
8004 if test "$gdb_cv_cxx_std_thread" = "yes"; then
8006 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
8011 ac_cpp
='$CPP $CPPFLAGS'
8012 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8013 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8014 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
8018 $as_echo_n "checking for sigsetjmp... " >&6; }
8019 if ${gdb_cv_func_sigsetjmp+:} false
; then :
8020 $as_echo_n "(cached) " >&6
8022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8029 while (! sigsetjmp (env, 1))
8030 siglongjmp (env, 1);
8036 if ac_fn_c_try_compile
"$LINENO"; then :
8037 gdb_cv_func_sigsetjmp
=yes
8039 gdb_cv_func_sigsetjmp
=no
8042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
8046 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
8047 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
8049 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
8054 # Check whether --with-intel_pt was given.
8055 if test "${with_intel_pt+set}" = set; then :
8056 withval
=$with_intel_pt;
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
8062 $as_echo_n "checking whether to use intel pt... " >&6; }
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
8064 $as_echo "$with_intel_pt" >&6; }
8066 if test "${with_intel_pt}" = no
; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
8068 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
8071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8074 #include <linux/perf_event.h>
8075 #ifndef PERF_ATTR_SIZE_VER5
8080 if ac_fn_c_try_cpp
"$LINENO"; then :
8085 rm -f conftest.err conftest.i conftest.
$ac_ext
8086 if test "$perf_event" != yes; then
8087 if test "$with_intel_pt" = yes; then
8088 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
8091 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
8105 acl_save_prefix
="$prefix"
8106 prefix
="$acl_final_prefix"
8107 acl_save_exec_prefix
="$exec_prefix"
8108 exec_prefix
="$acl_final_exec_prefix"
8110 eval additional_includedir
=\"$includedir\"
8111 eval additional_libdir
=\"$libdir\"
8113 exec_prefix
="$acl_save_exec_prefix"
8114 prefix
="$acl_save_prefix"
8117 # Check whether --with-libipt-prefix was given.
8118 if test "${with_libipt_prefix+set}" = set; then :
8119 withval
=$with_libipt_prefix;
8120 if test "X$withval" = "Xno"; then
8123 if test "X$withval" = "X"; then
8125 acl_save_prefix
="$prefix"
8126 prefix
="$acl_final_prefix"
8127 acl_save_exec_prefix
="$exec_prefix"
8128 exec_prefix
="$acl_final_exec_prefix"
8130 eval additional_includedir
=\"$includedir\"
8131 eval additional_libdir
=\"$libdir\"
8133 exec_prefix
="$acl_save_exec_prefix"
8134 prefix
="$acl_save_prefix"
8137 additional_includedir
="$withval/include"
8138 additional_libdir
="$withval/lib"
8145 # Check whether --with-libipt-type was given.
8146 if test "${with_libipt_type+set}" = set; then :
8147 withval
=$with_libipt_type; with_libipt_type
=$withval
8149 with_libipt_type
=auto
8152 lib_type
=`eval echo \$with_libipt_type`
8159 names_already_handled
=
8160 names_next_round
='ipt '
8161 while test -n "$names_next_round"; do
8162 names_this_round
="$names_next_round"
8164 for name
in $names_this_round; do
8166 for n
in $names_already_handled; do
8167 if test "$n" = "$name"; then
8172 if test -z "$already_handled"; then
8173 names_already_handled
="$names_already_handled $name"
8174 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8175 eval value
=\"\
$HAVE_LIB$uppername\"
8176 if test -n "$value"; then
8177 if test "$value" = yes; then
8178 eval value
=\"\
$LIB$uppername\"
8179 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
8180 eval value
=\"\
$LTLIB$uppername\"
8181 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
8190 if test $use_additional = yes; then
8191 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8192 found_dir
="$additional_libdir"
8193 found_so
="$additional_libdir/lib$name.$shlibext"
8194 if test -f "$additional_libdir/lib$name.la"; then
8195 found_la
="$additional_libdir/lib$name.la"
8197 elif test x
$lib_type != xshared
; then
8198 if test -f "$additional_libdir/lib$name.$libext"; then
8199 found_dir
="$additional_libdir"
8200 found_a
="$additional_libdir/lib$name.$libext"
8201 if test -f "$additional_libdir/lib$name.la"; then
8202 found_la
="$additional_libdir/lib$name.la"
8207 if test "X$found_dir" = "X"; then
8208 for x
in $LDFLAGS $LTLIBIPT; do
8210 acl_save_prefix
="$prefix"
8211 prefix
="$acl_final_prefix"
8212 acl_save_exec_prefix
="$exec_prefix"
8213 exec_prefix
="$acl_final_exec_prefix"
8215 exec_prefix
="$acl_save_exec_prefix"
8216 prefix
="$acl_save_prefix"
8220 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8221 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8223 found_so
="$dir/lib$name.$shlibext"
8224 if test -f "$dir/lib$name.la"; then
8225 found_la
="$dir/lib$name.la"
8227 elif test x
$lib_type != xshared
; then
8228 if test -f "$dir/lib$name.$libext"; then
8230 found_a
="$dir/lib$name.$libext"
8231 if test -f "$dir/lib$name.la"; then
8232 found_la
="$dir/lib$name.la"
8238 if test "X$found_dir" != "X"; then
8243 if test "X$found_dir" != "X"; then
8244 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
8245 if test "X$found_so" != "X"; then
8246 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8247 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8250 for x
in $ltrpathdirs; do
8251 if test "X$x" = "X$found_dir"; then
8256 if test -z "$haveit"; then
8257 ltrpathdirs
="$ltrpathdirs $found_dir"
8259 if test "$hardcode_direct" = yes; then
8260 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8262 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8263 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8265 for x
in $rpathdirs; do
8266 if test "X$x" = "X$found_dir"; then
8271 if test -z "$haveit"; then
8272 rpathdirs
="$rpathdirs $found_dir"
8276 for x
in $LDFLAGS $LIBIPT; do
8278 acl_save_prefix
="$prefix"
8279 prefix
="$acl_final_prefix"
8280 acl_save_exec_prefix
="$exec_prefix"
8281 exec_prefix
="$acl_final_exec_prefix"
8283 exec_prefix
="$acl_save_exec_prefix"
8284 prefix
="$acl_save_prefix"
8286 if test "X$x" = "X-L$found_dir"; then
8291 if test -z "$haveit"; then
8292 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
8294 if test "$hardcode_minus_L" != no
; then
8295 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8297 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
8303 if test "X$found_a" != "X"; then
8304 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
8306 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
8309 additional_includedir
=
8310 case "$found_dir" in
8312 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8313 additional_includedir
="$basedir/include"
8316 if test "X$additional_includedir" != "X"; then
8317 if test "X$additional_includedir" != "X/usr/include"; then
8319 if test "X$additional_includedir" = "X/usr/local/include"; then
8320 if test -n "$GCC"; then
8322 linux
*) haveit
=yes;;
8326 if test -z "$haveit"; then
8327 for x
in $CPPFLAGS $INCIPT; do
8329 acl_save_prefix
="$prefix"
8330 prefix
="$acl_final_prefix"
8331 acl_save_exec_prefix
="$exec_prefix"
8332 exec_prefix
="$acl_final_exec_prefix"
8334 exec_prefix
="$acl_save_exec_prefix"
8335 prefix
="$acl_save_prefix"
8337 if test "X$x" = "X-I$additional_includedir"; then
8342 if test -z "$haveit"; then
8343 if test -d "$additional_includedir"; then
8344 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
8350 if test -n "$found_la"; then
8351 save_libdir
="$libdir"
8353 */* |
*\\*) .
"$found_la" ;;
8354 *) .
"./$found_la" ;;
8356 libdir
="$save_libdir"
8357 for dep
in $dependency_libs; do
8360 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8361 if test "X$additional_libdir" != "X/usr/lib"; then
8363 if test "X$additional_libdir" = "X/usr/local/lib"; then
8364 if test -n "$GCC"; then
8366 linux
*) haveit
=yes;;
8370 if test -z "$haveit"; then
8372 for x
in $LDFLAGS $LIBIPT; do
8374 acl_save_prefix
="$prefix"
8375 prefix
="$acl_final_prefix"
8376 acl_save_exec_prefix
="$exec_prefix"
8377 exec_prefix
="$acl_final_exec_prefix"
8379 exec_prefix
="$acl_save_exec_prefix"
8380 prefix
="$acl_save_prefix"
8382 if test "X$x" = "X-L$additional_libdir"; then
8387 if test -z "$haveit"; then
8388 if test -d "$additional_libdir"; then
8389 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
8393 for x
in $LDFLAGS $LTLIBIPT; do
8395 acl_save_prefix
="$prefix"
8396 prefix
="$acl_final_prefix"
8397 acl_save_exec_prefix
="$exec_prefix"
8398 exec_prefix
="$acl_final_exec_prefix"
8400 exec_prefix
="$acl_save_exec_prefix"
8401 prefix
="$acl_save_prefix"
8403 if test "X$x" = "X-L$additional_libdir"; then
8408 if test -z "$haveit"; then
8409 if test -d "$additional_libdir"; then
8410 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
8417 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8418 if test "$enable_rpath" != no
; then
8420 for x
in $rpathdirs; do
8421 if test "X$x" = "X$dir"; then
8426 if test -z "$haveit"; then
8427 rpathdirs
="$rpathdirs $dir"
8430 for x
in $ltrpathdirs; do
8431 if test "X$x" = "X$dir"; then
8436 if test -z "$haveit"; then
8437 ltrpathdirs
="$ltrpathdirs $dir"
8442 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8445 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8448 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
8449 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
8455 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8456 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
8457 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
8459 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
8460 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
8467 if test "X$rpathdirs" != "X"; then
8468 if test -n "$hardcode_libdir_separator"; then
8470 for found_dir
in $rpathdirs; do
8471 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8473 acl_save_libdir
="$libdir"
8475 eval flag
=\"$hardcode_libdir_flag_spec\"
8476 libdir
="$acl_save_libdir"
8477 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
8479 for found_dir
in $rpathdirs; do
8480 acl_save_libdir
="$libdir"
8482 eval flag
=\"$hardcode_libdir_flag_spec\"
8483 libdir
="$acl_save_libdir"
8484 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
8488 if test "X$ltrpathdirs" != "X"; then
8489 for found_dir
in $ltrpathdirs; do
8490 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
8495 ac_save_CPPFLAGS
="$CPPFLAGS"
8497 for element
in $INCIPT; do
8499 for x
in $CPPFLAGS; do
8501 acl_save_prefix
="$prefix"
8502 prefix
="$acl_final_prefix"
8503 acl_save_exec_prefix
="$exec_prefix"
8504 exec_prefix
="$acl_final_exec_prefix"
8506 exec_prefix
="$acl_save_exec_prefix"
8507 prefix
="$acl_save_prefix"
8509 if test "X$x" = "X$element"; then
8514 if test -z "$haveit"; then
8515 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
8521 $as_echo_n "checking for libipt... " >&6; }
8522 if ${ac_cv_libipt+:} false
; then :
8523 $as_echo_n "(cached) " >&6
8526 ac_save_LIBS
="$LIBS"
8527 LIBS
="$LIBS $LIBIPT"
8528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 #include "intel-pt.h"
8534 pt_insn_alloc_decoder (0);
8539 if ac_fn_c_try_link
"$LINENO"; then :
8544 rm -f core conftest.err conftest.
$ac_objext \
8545 conftest
$ac_exeext conftest.
$ac_ext
8546 LIBS
="$ac_save_LIBS"
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
8550 $as_echo "$ac_cv_libipt" >&6; }
8551 if test "$ac_cv_libipt" = yes; then
8554 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
8557 $as_echo_n "checking how to link with libipt... " >&6; }
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
8559 $as_echo "$LIBIPT" >&6; }
8562 CPPFLAGS
="$ac_save_CPPFLAGS"
8572 if test "$HAVE_LIBIPT" != yes; then
8573 if test "$with_intel_pt" = yes; then
8574 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
8577 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
8581 LIBS
="$LIBS $LIBIPT"
8582 for ac_func
in pt_insn_event
8584 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
8585 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
8586 cat >>confdefs.h
<<_ACEOF
8587 #define HAVE_PT_INSN_EVENT 1
8593 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
8595 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
8597 cat >>confdefs.h
<<_ACEOF
8598 #define HAVE_STRUCT_PT_INSN_ENABLED 1
8603 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
8605 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
8607 cat >>confdefs.h
<<_ACEOF
8608 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
8618 # Check if the compiler and runtime support printing long longs.
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
8621 $as_echo_n "checking for long long support in printf... " >&6; }
8622 if ${gdb_cv_printf_has_long_long+:} false
; then :
8623 $as_echo_n "(cached) " >&6
8625 if test "$cross_compiling" = yes; then :
8626 gdb_cv_printf_has_long_long
=no
8628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h. */
8630 $ac_includes_default
8636 l = (l << 16) + 0x0123;
8637 l = (l << 16) + 0x4567;
8638 l = (l << 16) + 0x89ab;
8639 l = (l << 16) + 0xcdef;
8640 sprintf (buf, "0x%016llx", l);
8641 return (strcmp ("0x0123456789abcdef", buf));
8646 if ac_fn_c_try_run
"$LINENO"; then :
8647 gdb_cv_printf_has_long_long
=yes
8649 gdb_cv_printf_has_long_long
=no
8651 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8652 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
8657 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
8658 if test "$gdb_cv_printf_has_long_long" = yes; then
8660 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
8665 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
8667 for ac_header
in sys
/procfs.h
8669 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
8670 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
8671 cat >>confdefs.h
<<_ACEOF
8672 #define HAVE_SYS_PROCFS_H 1
8679 if test "$ac_cv_header_sys_procfs_h" = yes; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
8682 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
8683 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
8684 $as_echo_n "(cached) " >&6
8686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8690 #include <sys/procfs.h>
8699 if ac_fn_c_try_compile
"$LINENO"; then :
8700 bfd_cv_have_sys_procfs_type_gregset_t
=yes
8702 bfd_cv_have_sys_procfs_type_gregset_t
=no
8705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8708 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
8710 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
8714 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
8718 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
8719 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
8720 $as_echo_n "(cached) " >&6
8722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8726 #include <sys/procfs.h>
8735 if ac_fn_c_try_compile
"$LINENO"; then :
8736 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
8738 bfd_cv_have_sys_procfs_type_fpregset_t
=no
8741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8744 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
8746 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
8750 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
8754 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
8755 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
8756 $as_echo_n "(cached) " >&6
8758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8762 #include <sys/procfs.h>
8771 if ac_fn_c_try_compile
"$LINENO"; then :
8772 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8774 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8780 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8782 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
8786 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
8790 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
8791 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
8792 $as_echo_n "(cached) " >&6
8794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8798 #include <sys/procfs.h>
8807 if ac_fn_c_try_compile
"$LINENO"; then :
8808 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8810 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8816 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8818 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8822 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
8826 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
8827 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
8828 $as_echo_n "(cached) " >&6
8830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8834 #include <sys/procfs.h>
8843 if ac_fn_c_try_compile
"$LINENO"; then :
8844 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
8846 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
8849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8852 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
8854 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
8858 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
8862 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
8863 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
8864 $as_echo_n "(cached) " >&6
8866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8870 #include <sys/procfs.h>
8879 if ac_fn_c_try_compile
"$LINENO"; then :
8880 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
8882 bfd_cv_have_sys_procfs_type_lwpid_t
=no
8885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8888 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8890 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
8894 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
8898 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
8899 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
8900 $as_echo_n "(cached) " >&6
8902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8906 #include <sys/procfs.h>
8915 if ac_fn_c_try_compile
"$LINENO"; then :
8916 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8918 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8924 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8926 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
8930 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8934 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8935 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
8936 $as_echo_n "(cached) " >&6
8938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8942 #include <sys/procfs.h>
8951 if ac_fn_c_try_compile
"$LINENO"; then :
8952 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
8954 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
8957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8960 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8962 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8966 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8972 # Check whether --with-xxhash was given.
8973 if test "${with_xxhash+set}" = set; then :
8974 withval
=$with_xxhash;
8980 if test "x$with_xxhash" != "xno"; then
8991 acl_save_prefix
="$prefix"
8992 prefix
="$acl_final_prefix"
8993 acl_save_exec_prefix
="$exec_prefix"
8994 exec_prefix
="$acl_final_exec_prefix"
8996 eval additional_includedir
=\"$includedir\"
8997 eval additional_libdir
=\"$libdir\"
8999 exec_prefix
="$acl_save_exec_prefix"
9000 prefix
="$acl_save_prefix"
9003 # Check whether --with-libxxhash-prefix was given.
9004 if test "${with_libxxhash_prefix+set}" = set; then :
9005 withval
=$with_libxxhash_prefix;
9006 if test "X$withval" = "Xno"; then
9009 if test "X$withval" = "X"; then
9011 acl_save_prefix
="$prefix"
9012 prefix
="$acl_final_prefix"
9013 acl_save_exec_prefix
="$exec_prefix"
9014 exec_prefix
="$acl_final_exec_prefix"
9016 eval additional_includedir
=\"$includedir\"
9017 eval additional_libdir
=\"$libdir\"
9019 exec_prefix
="$acl_save_exec_prefix"
9020 prefix
="$acl_save_prefix"
9023 additional_includedir
="$withval/include"
9024 additional_libdir
="$withval/lib"
9031 # Check whether --with-libxxhash-type was given.
9032 if test "${with_libxxhash_type+set}" = set; then :
9033 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
9035 with_libxxhash_type
=auto
9038 lib_type
=`eval echo \$with_libxxhash_type`
9045 names_already_handled
=
9046 names_next_round
='xxhash '
9047 while test -n "$names_next_round"; do
9048 names_this_round
="$names_next_round"
9050 for name
in $names_this_round; do
9052 for n
in $names_already_handled; do
9053 if test "$n" = "$name"; then
9058 if test -z "$already_handled"; then
9059 names_already_handled
="$names_already_handled $name"
9060 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9061 eval value
=\"\
$HAVE_LIB$uppername\"
9062 if test -n "$value"; then
9063 if test "$value" = yes; then
9064 eval value
=\"\
$LIB$uppername\"
9065 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
9066 eval value
=\"\
$LTLIB$uppername\"
9067 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
9076 if test $use_additional = yes; then
9077 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9078 found_dir
="$additional_libdir"
9079 found_so
="$additional_libdir/lib$name.$shlibext"
9080 if test -f "$additional_libdir/lib$name.la"; then
9081 found_la
="$additional_libdir/lib$name.la"
9083 elif test x
$lib_type != xshared
; then
9084 if test -f "$additional_libdir/lib$name.$libext"; then
9085 found_dir
="$additional_libdir"
9086 found_a
="$additional_libdir/lib$name.$libext"
9087 if test -f "$additional_libdir/lib$name.la"; then
9088 found_la
="$additional_libdir/lib$name.la"
9093 if test "X$found_dir" = "X"; then
9094 for x
in $LDFLAGS $LTLIBXXHASH; do
9096 acl_save_prefix
="$prefix"
9097 prefix
="$acl_final_prefix"
9098 acl_save_exec_prefix
="$exec_prefix"
9099 exec_prefix
="$acl_final_exec_prefix"
9101 exec_prefix
="$acl_save_exec_prefix"
9102 prefix
="$acl_save_prefix"
9106 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9107 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9109 found_so
="$dir/lib$name.$shlibext"
9110 if test -f "$dir/lib$name.la"; then
9111 found_la
="$dir/lib$name.la"
9113 elif test x
$lib_type != xshared
; then
9114 if test -f "$dir/lib$name.$libext"; then
9116 found_a
="$dir/lib$name.$libext"
9117 if test -f "$dir/lib$name.la"; then
9118 found_la
="$dir/lib$name.la"
9124 if test "X$found_dir" != "X"; then
9129 if test "X$found_dir" != "X"; then
9130 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
9131 if test "X$found_so" != "X"; then
9132 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9133 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
9136 for x
in $ltrpathdirs; do
9137 if test "X$x" = "X$found_dir"; then
9142 if test -z "$haveit"; then
9143 ltrpathdirs
="$ltrpathdirs $found_dir"
9145 if test "$hardcode_direct" = yes; then
9146 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
9148 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9149 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
9151 for x
in $rpathdirs; do
9152 if test "X$x" = "X$found_dir"; then
9157 if test -z "$haveit"; then
9158 rpathdirs
="$rpathdirs $found_dir"
9162 for x
in $LDFLAGS $LIBXXHASH; do
9164 acl_save_prefix
="$prefix"
9165 prefix
="$acl_final_prefix"
9166 acl_save_exec_prefix
="$exec_prefix"
9167 exec_prefix
="$acl_final_exec_prefix"
9169 exec_prefix
="$acl_save_exec_prefix"
9170 prefix
="$acl_save_prefix"
9172 if test "X$x" = "X-L$found_dir"; then
9177 if test -z "$haveit"; then
9178 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
9180 if test "$hardcode_minus_L" != no
; then
9181 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
9183 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
9189 if test "X$found_a" != "X"; then
9190 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
9192 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
9195 additional_includedir
=
9196 case "$found_dir" in
9198 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9199 additional_includedir
="$basedir/include"
9202 if test "X$additional_includedir" != "X"; then
9203 if test "X$additional_includedir" != "X/usr/include"; then
9205 if test "X$additional_includedir" = "X/usr/local/include"; then
9206 if test -n "$GCC"; then
9208 linux
*) haveit
=yes;;
9212 if test -z "$haveit"; then
9213 for x
in $CPPFLAGS $INCXXHASH; do
9215 acl_save_prefix
="$prefix"
9216 prefix
="$acl_final_prefix"
9217 acl_save_exec_prefix
="$exec_prefix"
9218 exec_prefix
="$acl_final_exec_prefix"
9220 exec_prefix
="$acl_save_exec_prefix"
9221 prefix
="$acl_save_prefix"
9223 if test "X$x" = "X-I$additional_includedir"; then
9228 if test -z "$haveit"; then
9229 if test -d "$additional_includedir"; then
9230 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
9236 if test -n "$found_la"; then
9237 save_libdir
="$libdir"
9239 */* |
*\\*) .
"$found_la" ;;
9240 *) .
"./$found_la" ;;
9242 libdir
="$save_libdir"
9243 for dep
in $dependency_libs; do
9246 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9247 if test "X$additional_libdir" != "X/usr/lib"; then
9249 if test "X$additional_libdir" = "X/usr/local/lib"; then
9250 if test -n "$GCC"; then
9252 linux
*) haveit
=yes;;
9256 if test -z "$haveit"; then
9258 for x
in $LDFLAGS $LIBXXHASH; do
9260 acl_save_prefix
="$prefix"
9261 prefix
="$acl_final_prefix"
9262 acl_save_exec_prefix
="$exec_prefix"
9263 exec_prefix
="$acl_final_exec_prefix"
9265 exec_prefix
="$acl_save_exec_prefix"
9266 prefix
="$acl_save_prefix"
9268 if test "X$x" = "X-L$additional_libdir"; then
9273 if test -z "$haveit"; then
9274 if test -d "$additional_libdir"; then
9275 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
9279 for x
in $LDFLAGS $LTLIBXXHASH; do
9281 acl_save_prefix
="$prefix"
9282 prefix
="$acl_final_prefix"
9283 acl_save_exec_prefix
="$exec_prefix"
9284 exec_prefix
="$acl_final_exec_prefix"
9286 exec_prefix
="$acl_save_exec_prefix"
9287 prefix
="$acl_save_prefix"
9289 if test "X$x" = "X-L$additional_libdir"; then
9294 if test -z "$haveit"; then
9295 if test -d "$additional_libdir"; then
9296 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
9303 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9304 if test "$enable_rpath" != no
; then
9306 for x
in $rpathdirs; do
9307 if test "X$x" = "X$dir"; then
9312 if test -z "$haveit"; then
9313 rpathdirs
="$rpathdirs $dir"
9316 for x
in $ltrpathdirs; do
9317 if test "X$x" = "X$dir"; then
9322 if test -z "$haveit"; then
9323 ltrpathdirs
="$ltrpathdirs $dir"
9328 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9331 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9334 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
9335 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
9341 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9342 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
9343 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
9345 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
9346 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
9353 if test "X$rpathdirs" != "X"; then
9354 if test -n "$hardcode_libdir_separator"; then
9356 for found_dir
in $rpathdirs; do
9357 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9359 acl_save_libdir
="$libdir"
9361 eval flag
=\"$hardcode_libdir_flag_spec\"
9362 libdir
="$acl_save_libdir"
9363 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
9365 for found_dir
in $rpathdirs; do
9366 acl_save_libdir
="$libdir"
9368 eval flag
=\"$hardcode_libdir_flag_spec\"
9369 libdir
="$acl_save_libdir"
9370 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
9374 if test "X$ltrpathdirs" != "X"; then
9375 for found_dir
in $ltrpathdirs; do
9376 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
9381 ac_save_CPPFLAGS
="$CPPFLAGS"
9383 for element
in $INCXXHASH; do
9385 for x
in $CPPFLAGS; do
9387 acl_save_prefix
="$prefix"
9388 prefix
="$acl_final_prefix"
9389 acl_save_exec_prefix
="$exec_prefix"
9390 exec_prefix
="$acl_final_exec_prefix"
9392 exec_prefix
="$acl_save_exec_prefix"
9393 prefix
="$acl_save_prefix"
9395 if test "X$x" = "X$element"; then
9400 if test -z "$haveit"; then
9401 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
9407 $as_echo_n "checking for libxxhash... " >&6; }
9408 if ${ac_cv_libxxhash+:} false
; then :
9409 $as_echo_n "(cached) " >&6
9412 ac_save_LIBS
="$LIBS"
9413 LIBS
="$LIBS $LIBXXHASH"
9414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9426 if ac_fn_c_try_link
"$LINENO"; then :
9431 rm -f core conftest.err conftest.
$ac_objext \
9432 conftest
$ac_exeext conftest.
$ac_ext
9433 LIBS
="$ac_save_LIBS"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
9437 $as_echo "$ac_cv_libxxhash" >&6; }
9438 if test "$ac_cv_libxxhash" = yes; then
9441 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
9444 $as_echo_n "checking how to link with libxxhash... " >&6; }
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
9446 $as_echo "$LIBXXHASH" >&6; }
9449 CPPFLAGS
="$ac_save_CPPFLAGS"
9459 if test "$HAVE_LIBXXHASH" != yes; then
9460 if test "$with_xxhash" = yes; then
9461 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
9464 if test "x$with_xxhash" = "xauto"; then
9465 with_xxhash
="$HAVE_LIBXXHASH"
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
9470 $as_echo_n "checking whether to use xxhash... " >&6; }
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
9472 $as_echo "$with_xxhash" >&6; }
9474 # This is set by GDB_AC_COMMON.
9478 # Check whether we will enable the inclusion of unit tests when
9481 # The default value of this option changes depending whether we're on
9482 # development mode (in which case it's "true") or not (in which case
9483 # it's "false"). The $development variable is set by the GDB_AC_COMMON
9484 # macro, which must therefore be used before GDB_AC_SELFTEST.
9486 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
9487 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
9490 # Check whether --enable-unit-tests was given.
9491 if test "${enable_unit_tests+set}" = set; then :
9492 enableval
=$enable_unit_tests; case "${enableval}" in
9493 yes) enable_unittests
=true
;;
9494 no
) enable_unittests
=false
;;
9495 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
9498 enable_unittests
=$development
9502 if $enable_unittests; then
9504 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
9510 case ${build_alias} in
9511 "") build_noncanonical
=${build} ;;
9512 *) build_noncanonical
=${build_alias} ;;
9515 case ${host_alias} in
9516 "") host_noncanonical
=${build_noncanonical} ;;
9517 *) host_noncanonical
=${host_alias} ;;
9520 case ${target_alias} in
9521 "") target_noncanonical
=${host_noncanonical} ;;
9522 *) target_noncanonical
=${target_alias} ;;
9530 # Dependency checking.
9531 rm -rf .tst
2>/dev
/null
9532 mkdir .tst
2>/dev
/null
9533 if test -d .tst
; then
9538 rmdir .tst
2>/dev
/null
9540 DEPDIR
="${am__leading_dot}deps"
9542 ac_config_commands
="$ac_config_commands depdir"
9546 # If we haven't got the data from the intl directory,
9547 # assume NLS is disabled.
9556 if test -f ..
/intl
/config.intl
; then
9557 . ..
/intl
/config.intl
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9560 $as_echo_n "checking whether NLS is requested... " >&6; }
9561 if test x
"$USE_NLS" != xyes
; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9566 $as_echo "yes" >&6; }
9568 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
9572 $as_echo_n "checking for catalogs to be installed... " >&6; }
9573 # Look for .po and .gmo files in the source directory.
9576 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
9577 # If there aren't any .gmo files the shell will give us the
9578 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9580 case "$cat" in *\
**)
9583 # The quadruple backslash is collapsed to a double backslash
9584 # by the backticks, then collapsed again by the double quotes,
9585 # leaving us with one backslash in the sed expression (right
9586 # before the dot that mustn't act as a wildcard).
9587 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
9588 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
9589 # The user is allowed to set LINGUAS to a list of languages to
9590 # install catalogs for. If it's empty that means "all of them."
9591 if test "x$LINGUAS" = x
; then
9592 CATALOGS
="$CATALOGS $cat"
9593 XLINGUAS
="$XLINGUAS $lang"
9595 case "$LINGUAS" in *$lang*)
9596 CATALOGS
="$CATALOGS $cat"
9597 XLINGUAS
="$XLINGUAS $lang"
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
9604 $as_echo "$LINGUAS" >&6; }
9617 # Create sub-directories for objects and dependencies.
9618 CONFIG_SRC_SUBDIR
="arch gdbsupport nat target"
9621 ac_config_commands
="$ac_config_commands gdbdepdir"
9624 depcc
="$CC" am_compiler_list
=
9626 am_depcomp
=$ac_aux_dir/depcomp
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9628 $as_echo_n "checking dependency style of $depcc... " >&6; }
9629 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
9630 $as_echo_n "(cached) " >&6
9632 if test -f "$am_depcomp"; then
9633 # We make a subdir and do the tests there. Otherwise we can end up
9634 # making bogus files that we don't know about and never remove. For
9635 # instance it was reported that on HP-UX the gcc test will end up
9636 # making a dummy file named `D' -- because `-MD' means `put the output
9639 # Copy depcomp to subdir because otherwise we won't find it if we're
9640 # using a relative directory.
9641 cp "$am_depcomp" conftest.dir
9643 # We will build objects and dependencies in a subdirectory because
9644 # it helps to detect inapplicable dependency modes. For instance
9645 # both Tru64's cc and ICC support -MD to output dependencies as a
9646 # side effect of compilation, but ICC will put the dependencies in
9647 # the current directory while Tru64 will put them in the object
9651 am_cv_CC_dependencies_compiler_type
=none
9652 if test "$am_compiler_list" = ""; then
9653 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9655 for depmode
in $am_compiler_list; do
9656 if test $depmode = none
; then break; fi
9658 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9659 # Setup a source with many dependencies, because some compilers
9660 # like to wrap large dependency lists on column 80 (with \), and
9661 # we should not choose a depcomp mode which is confused by this.
9663 # We need to recreate these files for each test, as the compiler may
9664 # overwrite some of them when testing with obscure command lines.
9665 # This happens at least with the AIX C compiler.
9667 for i
in 1 2 3 4 5 6; do
9668 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9669 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9670 # Solaris 8's {/usr,}/bin/sh.
9671 touch sub
/conftst
$i.h
9673 echo "include sub/conftest.Po" > confmf
9675 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9676 # mode. It turns out that the SunPro C++ compiler does not properly
9677 # handle `-M -o', and we need to detect this.
9678 depcmd
="depmode=$depmode \
9679 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9680 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9681 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9682 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9683 if env
$depcmd > conftest.err
2>&1 &&
9684 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9685 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9686 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9687 # icc doesn't choke on unknown options, it will just issue warnings
9688 # or remarks (even with -Werror). So we grep stderr for any message
9689 # that says an option was ignored or not supported.
9690 # When given -MP, icc 7.0 and 7.1 complain thusly:
9691 # icc: Command line warning: ignoring option '-M'; no argument required
9692 # The diagnosis changed in icc 8.0:
9693 # icc: Command line remark: option '-MP' not supported
9694 if (grep 'ignoring option' conftest.err ||
9695 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9696 am_cv_CC_dependencies_compiler_type
=$depmode
9697 $as_echo "$as_me:$LINENO: success" >&5
9701 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9702 sed -e 's/^/| /' < conftest.err
>&5
9708 am_cv_CC_dependencies_compiler_type
=none
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9713 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9714 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
9715 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9716 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
9721 for ac_header
in termios.h sys
/reg.h string.h sys
/procfs.h linux
/elf.h fcntl.h signal.h sys
/file.h sys
/ioctl.h netinet
/in.h sys
/socket.h netdb.h netinet
/tcp.h arpa
/inet.h ws2tcpip.h
9723 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9724 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9725 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9726 cat >>confdefs.h
<<_ACEOF
9727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9734 for ac_header
in vfork.h
9736 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9737 if test "x$ac_cv_header_vfork_h" = xyes
; then :
9738 cat >>confdefs.h
<<_ACEOF
9739 #define HAVE_VFORK_H 1
9746 for ac_func
in fork vfork
9748 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9749 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9750 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9751 cat >>confdefs.h
<<_ACEOF
9752 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9758 if test "x$ac_cv_func_fork" = xyes
; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9760 $as_echo_n "checking for working fork... " >&6; }
9761 if ${ac_cv_func_fork_works+:} false
; then :
9762 $as_echo_n "(cached) " >&6
9764 if test "$cross_compiling" = yes; then :
9765 ac_cv_func_fork_works
=cross
9767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 $ac_includes_default
9774 /* By Ruediger Kuhlmann. */
9781 if ac_fn_c_try_run
"$LINENO"; then :
9782 ac_cv_func_fork_works
=yes
9784 ac_cv_func_fork_works
=no
9786 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9787 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9792 $as_echo "$ac_cv_func_fork_works" >&6; }
9795 ac_cv_func_fork_works
=$ac_cv_func_fork
9797 if test "x$ac_cv_func_fork_works" = xcross
; then
9799 *-*-amigaos* |
*-*-msdosdjgpp*)
9800 # Override, as these systems have only a dummy fork() stub
9801 ac_cv_func_fork_works
=no
9804 ac_cv_func_fork_works
=yes
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9808 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9810 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9811 if test "x$ac_cv_func_vfork" = xyes
; then
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9813 $as_echo_n "checking for working vfork... " >&6; }
9814 if ${ac_cv_func_vfork_works+:} false
; then :
9815 $as_echo_n "(cached) " >&6
9817 if test "$cross_compiling" = yes; then :
9818 ac_cv_func_vfork_works
=cross
9820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822 /* Thanks to Paul Eggert for this test. */
9823 $ac_includes_default
9824 #include <sys/wait.h>
9828 /* On some sparc systems, changes by the child to local and incoming
9829 argument registers are propagated back to the parent. The compiler
9830 is told about this with #include <vfork.h>, but some compilers
9831 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9832 static variable whose address is put into a register that is
9833 clobbered by the vfork. */
9836 sparc_address_test (int arg)
9838 sparc_address_test (arg) int arg;
9859 pid_t parent = getpid ();
9862 sparc_address_test (0);
9867 /* Here is another test for sparc vfork register problems. This
9868 test uses lots of local variables, at least as many local
9869 variables as main has allocated so far including compiler
9870 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9871 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9872 reuse the register of parent for one of the local variables,
9873 since it will think that parent can't possibly be used any more
9874 in this routine. Assigning to the local variable will thus
9875 munge parent in the parent process. */
9877 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9878 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9879 /* Convince the compiler that p..p7 are live; otherwise, it might
9880 use the same hardware register for all 8 local variables. */
9881 if (p != p1 || p != p2 || p != p3 || p != p4
9882 || p != p5 || p != p6 || p != p7)
9885 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9886 from child file descriptors. If the child closes a descriptor
9887 before it execs or exits, this munges the parent's descriptor
9888 as well. Test for this by closing stdout in the child. */
9889 _exit(close(fileno(stdout)) != 0);
9894 while (wait(&status) != child)
9897 /* Was there some problem with vforking? */
9900 /* Did the child fail? (This shouldn't happen.) */
9903 /* Did the vfork/compiler bug occur? */
9904 || parent != getpid()
9906 /* Did the file descriptor bug occur? */
9907 || fstat(fileno(stdout), &st) != 0
9912 if ac_fn_c_try_run
"$LINENO"; then :
9913 ac_cv_func_vfork_works
=yes
9915 ac_cv_func_vfork_works
=no
9917 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9918 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9923 $as_echo "$ac_cv_func_vfork_works" >&6; }
9926 if test "x$ac_cv_func_fork_works" = xcross
; then
9927 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9929 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9932 if test "x$ac_cv_func_vfork_works" = xyes
; then
9934 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9938 $as_echo "#define vfork fork" >>confdefs.h
9941 if test "x$ac_cv_func_fork_works" = xyes
; then
9943 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9947 for ac_func
in pread pwrite pread64
9949 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9950 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9951 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9952 cat >>confdefs.h
<<_ACEOF
9953 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9960 # Check the return and argument types of ptrace.
9963 for ac_header
in sys
/ptrace.h ptrace.h
9965 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9966 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9967 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9968 cat >>confdefs.h
<<_ACEOF
9969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9977 gdb_ptrace_headers
='
9978 #include <sys/types.h>
9979 #if HAVE_SYS_PTRACE_H
9980 # include <sys/ptrace.h>
9983 # include <unistd.h>
9987 # Check return type. Varargs (used on GNU/Linux) conflict with the
9988 # empty argument list, so check for that explicitly.
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
9990 $as_echo_n "checking return type of ptrace... " >&6; }
9991 if ${gdb_cv_func_ptrace_ret+:} false
; then :
9992 $as_echo_n "(cached) " >&6
9994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h. */
9996 Â $gdb_ptrace_headers
10000 extern long ptrace (enum __ptrace_request, ...);
10006 if ac_fn_c_try_compile
"$LINENO"; then :
10007 gdb_cv_func_ptrace_ret
='long'
10009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10011 $gdb_ptrace_headers
10015 extern int ptrace ();
10021 if ac_fn_c_try_compile
"$LINENO"; then :
10022 gdb_cv_func_ptrace_ret
='int'
10024 gdb_cv_func_ptrace_ret
='long'
10027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10034 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10037 cat >>confdefs.h
<<_ACEOF
10038 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10042 # Check argument types.
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10044 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10045 if ${gdb_cv_func_ptrace_args+:} false
; then :
10046 $as_echo_n "(cached) " >&6
10048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10050 $gdb_ptrace_headers
10054 extern long ptrace (enum __ptrace_request, ...);
10060 if ac_fn_c_try_compile
"$LINENO"; then :
10061 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
10063 for gdb_arg1
in 'int' 'long'; do
10064 for gdb_arg2
in 'pid_t' 'int' 'long'; do
10065 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10066 for gdb_arg4
in 'int' 'long' 'void *'; do
10067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10069 $gdb_ptrace_headers
10073 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10079 if ac_fn_c_try_compile
"$LINENO"; then :
10080 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10086 for gdb_arg5
in 'int *' 'int' 'long'; do
10087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10088 /* end confdefs.h. */
10089 $gdb_ptrace_headers
10093 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10099 if ac_fn_c_try_compile
"$LINENO"; then :
10100 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10110 # Provide a safe default value.
10111 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10118 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10120 ac_save_IFS
=$IFS; IFS
=','
10121 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10125 cat >>confdefs.h
<<_ACEOF
10126 #define PTRACE_TYPE_ARG1 $1
10130 cat >>confdefs.h
<<_ACEOF
10131 #define PTRACE_TYPE_ARG3 $3
10135 cat >>confdefs.h
<<_ACEOF
10136 #define PTRACE_TYPE_ARG4 $4
10139 if test -n "$5"; then
10141 cat >>confdefs.h
<<_ACEOF
10142 #define PTRACE_TYPE_ARG5 $5
10153 # Check whether --with-ust was given.
10154 if test "${with_ust+set}" = set; then :
10159 # Check whether --with-ust_include was given.
10160 if test "${with_ust_include+set}" = set; then :
10161 withval
=$with_ust_include;
10165 # Check whether --with-ust_lib was given.
10166 if test "${with_ust_lib+set}" = set; then :
10167 withval
=$with_ust_lib;
10181 ustlibs
="-L$with_ust/lib -lust"
10182 ustinc
="-I$with_ust/include "
10185 if test "x$with_ust_include" != x
; then
10186 ustinc
="-I$with_ust_include "
10188 if test "x$with_ust_lib" != x
; then
10189 ustlibs
="-L$with_ust_lib -lust"
10192 if test "x$with_ust" != "xno"; then
10193 saved_CFLAGS
="$CFLAGS"
10194 CFLAGS
="$CFLAGS $ustinc"
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
10196 $as_echo_n "checking for ust... " >&6; }
10197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10200 #define CONFIG_UST_GDB_INTEGRATION
10201 #include <ust/ust.h>
10212 if ac_fn_c_try_compile
"$LINENO"; then :
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10214 $as_echo "yes" >&6; };
10216 $as_echo "#define HAVE_UST 1" >>confdefs.h
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10225 CFLAGS
="$saved_CFLAGS"
10228 # Flags needed for UST
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
10235 $as_echo_n "checking the compiler type... " >&6; }
10236 if ${gdb_cv_compiler_type+:} false
; then :
10237 $as_echo_n "(cached) " >&6
10239 gdb_cv_compiler_type
=unknown
10240 if test "$gdb_cv_compiler_type" = unknown
; then
10241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10248 #if !defined __GNUC__ || defined __clang__
10256 if ac_fn_c_try_compile
"$LINENO"; then :
10257 gdb_cv_compiler_type
=gcc
10259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10262 if test "$gdb_cv_compiler_type" = unknown
; then
10263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10278 if ac_fn_c_try_compile
"$LINENO"; then :
10279 gdb_cv_compiler_type
=clang
10281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
10286 $as_echo "$gdb_cv_compiler_type" >&6; }
10288 GDB_COMPILER_TYPE
="$gdb_cv_compiler_type"
10291 # Check whether --enable-werror was given.
10292 if test "${enable_werror+set}" = set; then :
10293 enableval
=$enable_werror; case "${enableval}" in
10294 yes | y
) ERROR_ON_WARNING
="yes" ;;
10295 no | n
) ERROR_ON_WARNING
="no" ;;
10296 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10301 # Enable -Werror by default when using gcc. Turn it off for releases.
10302 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10303 ERROR_ON_WARNING
=yes
10307 if test "${ERROR_ON_WARNING}" = yes ; then
10308 WERROR_CFLAGS
="-Werror"
10311 # The options we'll try to enable.
10312 build_warnings
="-Wall -Wpointer-arith \
10313 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10314 -Wno-switch -Wno-char-subscripts \
10315 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10316 -Wno-sign-compare -Wno-error=maybe-uninitialized \
10317 -Wno-mismatched-tags \
10318 -Wno-error=deprecated-register \
10319 -Wsuggest-override \
10320 -Wimplicit-fallthrough=3 \
10321 -Wduplicated-cond \
10323 -Wdeprecated-copy \
10324 -Wdeprecated-copy-dtor \
10326 -Wmissing-declarations \
10327 -Wstrict-null-sentinel \
10330 # The -Wmissing-prototypes flag will be accepted by GCC, but results
10331 # in a warning being printed about the flag not being valid for C++,
10332 # this is something to do with using ccache, and argument ordering.
10333 if test "$GDB_COMPILER_TYPE" != gcc
; then
10334 build_warnings
="$build_warnings -Wmissing-prototypes"
10339 # Enable -Wno-format by default when using gcc on mingw since many
10340 # GCC versions complain about %I64.
10341 build_warnings
="$build_warnings -Wno-format" ;;
10343 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10344 # doesn't understand.
10345 build_warnings
="$build_warnings -Wno-unknown-pragmas"
10346 # Solaris 11 <unistd.h> marks vfork deprecated.
10347 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
10349 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10350 # but there's a special case for this below.
10351 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
10354 # Check whether --enable-build-warnings was given.
10355 if test "${enable_build_warnings+set}" = set; then :
10356 enableval
=$enable_build_warnings; case "${enableval}" in
10358 no
) build_warnings
="-w";;
10359 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10360 build_warnings
="${build_warnings} ${t}";;
10361 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10362 build_warnings
="${t} ${build_warnings}";;
10363 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10365 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
10366 echo "Setting compiler warning flags = $build_warnings" 6>&1
10369 # Check whether --enable-gdb-build-warnings was given.
10370 if test "${enable_gdb_build_warnings+set}" = set; then :
10371 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
10373 no
) build_warnings
="-w";;
10374 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10375 build_warnings
="${build_warnings} ${t}";;
10376 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10377 build_warnings
="${t} ${build_warnings}";;
10378 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10380 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
10381 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10385 # The set of warnings supported by a C++ compiler is not the same as
10386 # of the C compiler.
10388 ac_cpp
='$CXXCPP $CPPFLAGS'
10389 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10390 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10391 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10395 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
10398 $as_echo_n "checking compiler warning flags... " >&6; }
10399 # Separate out the -Werror flag as some files just cannot be
10400 # compiled with it enabled.
10401 for w
in ${build_warnings}; do
10402 # GCC does not complain about -Wno-unknown-warning. Invert
10403 # and test -Wunknown-warning instead.
10406 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
10407 -Wformat-nonliteral)
10408 # gcc requires -Wformat before -Wformat-nonliteral
10409 # will work, so stick them together.
10418 -Werr*) WERROR_CFLAGS
=-Werror ;;
10420 # Check whether GCC accepts it.
10421 saved_CFLAGS
="$CFLAGS"
10422 CFLAGS
="$CFLAGS -Werror $wtest"
10423 saved_CXXFLAGS
="$CXXFLAGS"
10424 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
10425 if test "x$w" = "x-Wunused-variable"; then
10426 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
10427 # fixed in GCC 4.9. This test is derived from the gdb
10428 # source code that triggered this bug in GCC.
10429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 struct scoped_restore_base {};
10432 struct scoped_restore_tmpl : public scoped_restore_base {
10433 ~scoped_restore_tmpl() {}
10438 const scoped_restore_base &b = scoped_restore_tmpl();
10444 if ac_fn_cxx_try_compile
"$LINENO"; then :
10445 WARN_CFLAGS
="${WARN_CFLAGS} $w"
10447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10460 if ac_fn_cxx_try_compile
"$LINENO"; then :
10461 WARN_CFLAGS
="${WARN_CFLAGS} $w"
10463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10465 CFLAGS
="$saved_CFLAGS"
10466 CXXFLAGS
="$saved_CXXFLAGS"
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
10470 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
10476 ac_cpp='$CPP $CPPFLAGS'
10477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10485 for ac_func in dladdr
10487 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
10488 if test "x
$ac_cv_func_dladdr" = xyes; then :
10489 cat >>confdefs.h <<_ACEOF
10490 #define HAVE_DLADDR 1
10499 # Check for presence and size of long long.
10500 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
10501 if test "x
$ac_cv_type_long_long" = xyes; then :
10503 cat >>confdefs.h <<_ACEOF
10504 #define HAVE_LONG_LONG 1
10507 # The cast to long int works around a bug in the HP C Compiler
10508 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10509 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10510 # This bug is HP SR number 8606223364.
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
10512 $as_echo_n "checking size of long long...
" >&6; }
10513 if ${ac_cv_sizeof_long_long+:} false; then :
10514 $as_echo_n "(cached
) " >&6
10516 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
10519 if test "$ac_cv_type_long_long" = yes; then
10520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
10521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10522 as_fn_error 77 "cannot compute sizeof (long long)
10523 See \`config.log' for more details
" "$LINENO" 5; }
10525 ac_cv_sizeof_long_long=0
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
10531 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10535 cat >>confdefs.h <<_ACEOF
10536 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10543 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
10544 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
10545 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
10551 cat >>confdefs.h <<_ACEOF
10552 #define HAVE_DECL_BASENAME $ac_have_decl
10554 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
10555 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
10561 cat >>confdefs.h <<_ACEOF
10562 #define HAVE_DECL_FFS $ac_have_decl
10564 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
10565 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
10571 cat >>confdefs.h <<_ACEOF
10572 #define HAVE_DECL_ASPRINTF $ac_have_decl
10574 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
10575 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
10581 cat >>confdefs.h <<_ACEOF
10582 #define HAVE_DECL_VASPRINTF $ac_have_decl
10584 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
10585 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
10591 cat >>confdefs.h <<_ACEOF
10592 #define HAVE_DECL_SNPRINTF $ac_have_decl
10594 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
10595 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
10601 cat >>confdefs.h <<_ACEOF
10602 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10605 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
10606 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
10612 cat >>confdefs.h <<_ACEOF
10613 #define HAVE_DECL_STRTOL $ac_have_decl
10615 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
10616 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
10622 cat >>confdefs.h <<_ACEOF
10623 #define HAVE_DECL_STRTOUL $ac_have_decl
10625 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
10626 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
10632 cat >>confdefs.h <<_ACEOF
10633 #define HAVE_DECL_STRTOLL $ac_have_decl
10635 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
10636 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
10642 cat >>confdefs.h <<_ACEOF
10643 #define HAVE_DECL_STRTOULL $ac_have_decl
10646 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
10647 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
10653 cat >>confdefs.h <<_ACEOF
10654 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10659 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
10660 if test "x
$ac_cv_have_decl_perror" = xyes; then :
10666 cat >>confdefs.h <<_ACEOF
10667 #define HAVE_DECL_PERROR $ac_have_decl
10669 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
10670 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
10676 cat >>confdefs.h <<_ACEOF
10677 #define HAVE_DECL_VASPRINTF $ac_have_decl
10679 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
10680 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
10686 cat >>confdefs.h <<_ACEOF
10687 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10691 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
10692 #if HAVE_SYS_SOCKET_H
10693 # include <sys/socket.h>
10694 #elif HAVE_WS2TCPIP_H
10695 # include <ws2tcpip.h>
10699 if test "x
$ac_cv_type_socklen_t" = xyes; then :
10701 cat >>confdefs.h <<_ACEOF
10702 #define HAVE_SOCKLEN_T 1
10709 case "${target}" in
10711 # Starting with NDK version 9, <elf.h> actually includes definitions
10712 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
10713 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
10714 # leading to conflicts with the defintions from <linux/elf.h>.
10715 # This makes it impossible for us to include both <elf.h> and
10716 # <linux/elf.h>, which means that, in practice, we do not have
10717 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
10718 # Therefore, do not try to auto-detect availability, as it would
10719 # get it wrong on this platform.
10722 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
10725 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
10727 cat >>confdefs.h <<_ACEOF
10728 #define HAVE_ELF32_AUXV_T 1
10733 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
10736 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
10738 cat >>confdefs.h <<_ACEOF
10739 #define HAVE_ELF64_AUXV_T 1
10749 # Check whether --with-pkgversion was given.
10750 if test "${with_pkgversion+set}" = set; then :
10751 withval=$with_pkgversion; case "$withval" in
10752 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
10754 *) PKGVERSION="($withval) " ;;
10757 PKGVERSION="(GDB
) "
10765 # Check whether --with-bugurl was given.
10766 if test "${with_bugurl+set}" = set; then :
10767 withval=$with_bugurl; case "$withval" in
10768 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
10771 *) BUGURL="$withval"
10775 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
10785 REPORT_BUGS_TO="<$BUGURL>"
10786 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10793 cat >>confdefs.h <<_ACEOF
10794 #define PKGVERSION "$PKGVERSION"
10798 cat >>confdefs.h <<_ACEOF
10799 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
10803 # Check for various supplementary target information (beyond the
10804 # triplet) which might affect the choices in configure.srv.
10805 case "${target}" in
10806 i[34567]86-*-linux*)
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
10808 $as_echo_n "checking
if building
for x86-64...
" >&6; }
10809 if ${gdb_cv_i386_is_x86_64+:} false; then :
10810 $as_echo_n "(cached
) " >&6
10812 save_CPPFLAGS="$CPPFLAGS"
10813 CPPFLAGS="$CPPFLAGS $CFLAGS"
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10822 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10823 $EGREP "got it
" >/dev/null 2>&1; then :
10824 gdb_cv_i386_is_x86_64=yes
10826 gdb_cv_i386_is_x86_64=no
10830 CPPFLAGS="$save_CPPFLAGS"
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
10833 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
10838 $as_echo_n "checking
if building
for x32...
" >&6; }
10839 if ${gdb_cv_x86_is_x32+:} false; then :
10840 $as_echo_n "(cached
) " >&6
10842 save_CPPFLAGS="$CPPFLAGS"
10843 CPPFLAGS="$CPPFLAGS $CFLAGS"
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10847 #if __x86_64__ && __ILP32__
10852 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10853 $EGREP "got it
" >/dev/null 2>&1; then :
10854 gdb_cv_x86_is_x32=yes
10856 gdb_cv_x86_is_x32=no
10860 CPPFLAGS="$save_CPPFLAGS"
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
10863 $as_echo "$gdb_cv_x86_is_x32" >&6; }
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
10868 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
10869 if ${gdb_cv_m68k_is_coldfire+:} false; then :
10870 $as_echo_n "(cached
) " >&6
10872 save_CPPFLAGS="$CPPFLAGS"
10873 CPPFLAGS="$CPPFLAGS $CFLAGS"
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10877 #ifdef __mcoldfire__
10882 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10883 $EGREP "got it
" >/dev/null 2>&1; then :
10884 gdb_cv_m68k_is_coldfire=yes
10886 gdb_cv_m68k_is_coldfire=no
10890 CPPFLAGS="$save_CPPFLAGS"
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
10893 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
10897 . ${srcdir}/configure.srv
10899 if test "${srv_mingwce}" = "yes"; then
10901 elif test "${srv_mingw}" = "yes"; then
10902 # WIN32APILIBS is set by GDB_AC_COMMON.
10903 LIBS="$LIBS $WIN32APILIBS"
10906 if test "${srv_linux_usrregs}" = "yes"; then
10908 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
10912 if test "${srv_linux_regsets}" = "yes"; then
10914 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10918 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10919 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
10920 $as_echo_n "(cached) " >&6
10922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924 #include <sys/ptrace.h>
10933 if ac_fn_c_try_compile
"$LINENO"; then :
10934 gdbsrv_cv_have_ptrace_getregs
=yes
10936 gdbsrv_cv_have_ptrace_getregs
=no
10939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
10944 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
10945 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
10947 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10952 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10953 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
10954 $as_echo_n "(cached) " >&6
10956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10958 #include <sys/ptrace.h>
10967 if ac_fn_c_try_compile
"$LINENO"; then :
10968 gdbsrv_cv_have_ptrace_getfpxregs
=yes
10970 gdbsrv_cv_have_ptrace_getfpxregs
=no
10973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
10978 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
10979 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
10981 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10986 if test "${srv_linux_btrace}" = "yes"; then
10988 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
10992 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
10994 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
10995 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
10996 $as_echo_n "(cached) " >&6
10998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11000 #include <thread_db.h>
11009 if ac_fn_c_try_compile
"$LINENO"; then :
11010 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
11012 gdbserver_cv_have_thread_db_type_lwpid_t
=no
11015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11019 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
11021 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
11025 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
11029 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
11031 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
11032 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
11033 $as_echo_n "(cached) " >&6
11035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11037 #include <thread_db.h>
11046 if ac_fn_c_try_compile
"$LINENO"; then :
11047 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
11049 gdbserver_cv_have_thread_db_type_psaddr_t
=no
11052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11056 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
11058 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
11062 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11068 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11069 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11070 $as_echo_n "(cached) " >&6
11072 ac_check_lib_save_LIBS
=$LIBS
11074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11077 /* Override any GCC internal prototype to avoid an error.
11078 Use char because int might match the return type of a GCC
11079 builtin and then its argument prototype would still apply. */
11092 if ac_fn_c_try_link
"$LINENO"; then :
11093 ac_cv_lib_dl_dlopen
=yes
11095 ac_cv_lib_dl_dlopen
=no
11097 rm -f core conftest.err conftest.
$ac_objext \
11098 conftest
$ac_exeext conftest.
$ac_ext
11099 LIBS
=$ac_check_lib_save_LIBS
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11102 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11103 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11104 cat >>confdefs.h
<<_ACEOF
11105 #define HAVE_LIBDL 1
11114 srv_thread_depfiles
=
11117 if test "$srv_linux_thread_db" = "yes"; then
11118 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
11121 $as_echo_n "checking for the dynamic export flag... " >&6; }
11122 old_LDFLAGS
="$LDFLAGS"
11123 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
11125 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
11126 LDFLAGS
="$LDFLAGS $RDYNAMIC"
11127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h. */
11138 if ac_fn_c_try_link
"$LINENO"; then :
11139 found
="-Wl,--dynamic-list"
11140 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
11142 RDYNAMIC
="-rdynamic"
11143 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11155 if ac_fn_c_try_link
"$LINENO"; then :
11162 rm -f core conftest.err conftest.
$ac_objext \
11163 conftest
$ac_exeext conftest.
$ac_ext
11166 rm -f core conftest.err conftest.
$ac_objext \
11167 conftest
$ac_exeext conftest.
$ac_ext
11169 LDFLAGS
="$old_LDFLAGS"
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
11171 $as_echo "$found" >&6; }
11173 srv_libs
="-lthread_db"
11176 srv_thread_depfiles
="thread-db.o proc-service.o"
11178 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
11181 $as_echo_n "checking for TD_VERSION... " >&6; }
11182 if ${gdbsrv_cv_have_td_version+:} false
; then :
11183 $as_echo_n "(cached) " >&6
11185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11186 /* end confdefs.h. */
11187 #include <thread_db.h>
11196 if ac_fn_c_try_compile
"$LINENO"; then :
11197 gdbsrv_cv_have_td_version
=yes
11199 gdbsrv_cv_have_td_version
=no
11202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
11206 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
11207 if test "$gdbsrv_cv_have_td_version" = yes; then
11209 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
11215 # Check whether --with-libthread-db was given.
11216 if test "${with_libthread_db+set}" = set; then :
11217 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
11218 srv_libs
="$srv_libthread_db_path"
11223 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
11225 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
11229 if test "$srv_xmlfiles" != ""; then
11230 srv_xmlbuiltin
="xml-builtin.o"
11232 $as_echo "#define USE_XML 1" >>confdefs.h
11235 tmp_xmlfiles
=$srv_xmlfiles
11237 for f
in $tmp_xmlfiles; do
11238 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
11242 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_thread_depfiles"
11243 GDBSERVER_LIBS
="$srv_libs"
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
11246 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
11247 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
11248 $as_echo_n "(cached) " >&6
11250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11257 bar = __sync_val_compare_and_swap(&foo, 0, 1);
11263 if ac_fn_c_try_link
"$LINENO"; then :
11264 gdbsrv_cv_have_sync_builtins
=yes
11266 gdbsrv_cv_have_sync_builtins
=no
11269 rm -f core conftest.err conftest.
$ac_objext \
11270 conftest
$ac_exeext conftest.
$ac_ext
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
11274 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
11275 if test "$gdbsrv_cv_have_sync_builtins" = yes; then
11277 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
11281 saved_cflags
="$CFLAGS"
11282 CFLAGS
="$CFLAGS -fvisibility=hidden"
11283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11294 if ac_fn_c_try_compile
"$LINENO"; then :
11295 gdbsrv_cv_have_visibility_hidden
=yes
11297 gdbsrv_cv_have_visibility_hidden
=no
11299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11300 CFLAGS
="$saved_cflags"
11305 # check whether to enable the inprocess agent
11306 if test "$ipa_obj" != "" \
11307 -a "$gdbsrv_cv_have_sync_builtins" = yes \
11308 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
11314 # Check whether --enable-inprocess-agent was given.
11315 if test "${enable_inprocess_agent+set}" = set; then :
11316 enableval
=$enable_inprocess_agent; case "$enableval" in
11317 yes) want_ipa
=true
;;
11318 no
) want_ipa
=false
;;
11319 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
11326 if $want_ipa ; then
11327 if $have_ipa ; then
11328 IPA_DEPFILES
="$ipa_obj"
11329 extra_libraries
="$extra_libraries libinproctrace.so"
11331 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
11342 GNULIB
=..
/gnulib
/import
11345 if test x
"$STDINT_H" != x
; then
11346 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
11350 ac_config_files
="$ac_config_files Makefile"
11353 cat >confcache
<<\_ACEOF
11354 # This file is a shell script that caches the results of configure
11355 # tests run on this system so they can be shared between configure
11356 # scripts and configure runs, see configure's option --config-cache.
11357 # It is not useful on other systems. If it contains results you don't
11358 # want to keep, you may remove or edit it.
11360 # config.status only pays attention to the cache file if you give it
11361 # the --recheck option to rerun configure.
11363 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11364 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11365 # following values.
11369 # The following way of writing the cache mishandles newlines in values,
11370 # but we know of no workaround that is simple, portable, and efficient.
11371 # So, we kill variables containing newlines.
11372 # Ultrix sh set writes to stderr and can't be redirected directly,
11373 # and sets the high bit in the cache file unless we assign to the vars.
11375 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11376 eval ac_val
=\$
$ac_var
11380 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11381 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11384 _ | IFS | as_nl
) ;; #(
11385 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11386 *) { eval $ac_var=; unset $ac_var;} ;;
11392 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11393 *${as_nl}ac_space
=\
*)
11394 # `set' does not quote correctly, so add quotes: double-quote
11395 # substitution turns \\\\ into \\, and sed turns \\ into \.
11398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11401 # `set' quotes correctly as required by POSIX, so do not add quotes.
11402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11411 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11413 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11415 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11416 if test -w "$cache_file"; then
11417 if test "x$cache_file" != "x/dev/null"; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11419 $as_echo "$as_me: updating cache $cache_file" >&6;}
11420 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
11421 cat confcache
>"$cache_file"
11423 case $cache_file in #(
11425 mv -f confcache
"$cache_file"$$
&&
11426 mv -f "$cache_file"$$
"$cache_file" ;; #(
11428 mv -f confcache
"$cache_file" ;;
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11434 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11439 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11440 # Let make expand exec_prefix.
11441 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11443 DEFS
=-DHAVE_CONFIG_H
11448 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11449 # 1. Remove the extension, and $U if already installed.
11450 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11451 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
11452 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11453 # will be set to the directory where LIBOBJS objects are built.
11454 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11455 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
11457 LIBOBJS
=$ac_libobjs
11459 LTLIBOBJS
=$ac_ltlibobjs
11462 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11463 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
11464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11467 : "${CONFIG_STATUS=./config.status}"
11469 ac_clean_files_save
=$ac_clean_files
11470 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11472 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11474 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11476 # Generated by $as_me.
11477 # Run this file to recreate the current configuration.
11478 # Compiler output produced by configure, useful for debugging
11479 # configure, is in config.log if it exists.
11482 ac_cs_recheck=false
11485 SHELL=\${CONFIG_SHELL-$SHELL}
11488 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
11489 ## -------------------- ##
11490 ## M4sh Initialization. ##
11491 ## -------------------- ##
11493 # Be more Bourne compatible
11494 DUALCASE
=1; export DUALCASE
# for MKS sh
11495 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
11498 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11499 # is contrary to our usage. Disable this feature.
11500 alias -g '${1+"$@"}'='"$@"'
11501 setopt NO_GLOB_SUBST
11503 case `(set -o) 2>/dev/null` in #(
11515 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11516 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11517 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11518 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11519 # Prefer a ksh shell builtin over an external printf program on Solaris,
11520 # but without wasting forks for bash or zsh.
11521 if test -z "$BASH_VERSION$ZSH_VERSION" \
11522 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11523 as_echo='print
-r --'
11524 as_echo_n='print
-rn --'
11525 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11526 as_echo='printf %s
\n'
11527 as_echo_n='printf %s
'
11529 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11530 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11531 as_echo_n='/usr
/ucb
/echo -n'
11533 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11534 as_echo_n_body='eval
11538 expr "X$arg" : "X\\(.*\\)$as_nl";
11539 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11541 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11543 export as_echo_n_body
11544 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11546 export as_echo_body
11547 as_echo='sh
-c $as_echo_body as_echo
'
11550 # The user is always right.
11551 if test "${PATH_SEPARATOR+set}" != set; then
11553 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11554 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11561 # We need space, tab and new line, in precisely that order. Quoting is
11562 # there to prevent editors from complaining about space-tab.
11563 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11564 # splitting by setting IFS to empty value.)
11567 # Find who we are. Look in the path if we contain no directory separator.
11570 *[\\/]* ) as_myself=$0 ;;
11571 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $PATH
11575 test -z "$as_dir" && as_dir=.
11576 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11582 # We did not find ourselves, most probably we were run as `sh COMMAND'
11583 # in which case we are not to be found in the path.
11584 if test "x$as_myself" = x
; then
11587 if test ! -f "$as_myself"; then
11588 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11592 # Unset variables that we do not need and which cause bugs (e.g. in
11593 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11594 # suppresses any "Segmentation fault" message there. '((' could
11595 # trigger a bug in pdksh 5.2.14.
11596 for as_var
in BASH_ENV ENV MAIL MAILPATH
11597 do eval test x\
${$as_var+set} = xset \
11598 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11611 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11614 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11615 # ----------------------------------------
11616 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11617 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11618 # script with STATUS, using 1 if that was 0.
11621 as_status
=$1; test $as_status -eq 0 && as_status
=1
11623 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11624 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11626 $as_echo "$as_me: error: $2" >&2
11627 as_fn_exit
$as_status
11631 # as_fn_set_status STATUS
11632 # -----------------------
11633 # Set $? to STATUS, without forking.
11634 as_fn_set_status
()
11637 } # as_fn_set_status
11639 # as_fn_exit STATUS
11640 # -----------------
11641 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11645 as_fn_set_status
$1
11651 # Portably unset VAR.
11654 { eval $1=; unset $1;}
11656 as_unset
=as_fn_unset
11657 # as_fn_append VAR VALUE
11658 # ----------------------
11659 # Append the text in VALUE to the end of the definition contained in VAR. Take
11660 # advantage of any shell optimizations that allow amortized linear growth over
11661 # repeated appends, instead of the typical quadratic growth present in naive
11663 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11664 eval 'as_fn_append ()
11675 # as_fn_arith ARG...
11676 # ------------------
11677 # Perform arithmetic evaluation on the ARGs, and store the result in the
11678 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11679 # must be portable across $(()) and expr.
11680 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11681 eval 'as_fn_arith ()
11688 as_val
=`expr "$@" || test $? -eq 1`
11693 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11694 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11700 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11701 as_basename
=basename
11706 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11712 as_me
=`$as_basename -- "$0" ||
11713 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11714 X"$0" : 'X\(//\)$' \| \
11715 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11717 sed '/^.*\/\([^/][^/]*\)\/*$/{
11731 # Avoid depending upon Character Ranges.
11732 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11733 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11734 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11735 as_cr_digits
='0123456789'
11736 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11738 ECHO_C
= ECHO_N
= ECHO_T
=
11739 case `echo -n x` in #(((((
11741 case `echo 'xy\c'` in
11742 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11744 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11751 rm -f conf$$ conf$$.exe conf$$.
file
11752 if test -d conf$$.dir
; then
11753 rm -f conf$$.dir
/conf$$.
file
11756 mkdir conf$$.dir
2>/dev
/null
11758 if (echo >conf$$.
file) 2>/dev
/null
; then
11759 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11761 # ... but there are two gotchas:
11762 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11763 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11764 # In both cases, we have to default to `cp -pR'.
11765 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11767 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11775 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11776 rmdir conf$$.dir
2>/dev
/null
11781 # Create "$as_dir" as a directory, including parents if necessary.
11786 -*) as_dir
=.
/$as_dir;;
11788 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11792 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11793 *) as_qdir
=$as_dir;;
11795 as_dirs
="'$as_qdir' $as_dirs"
11796 as_dir
=`$as_dirname -- "$as_dir" ||
11797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11798 X"$as_dir" : 'X\(//\)[^/]' \| \
11799 X"$as_dir" : 'X\(//\)$' \| \
11800 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11801 $as_echo X"$as_dir" |
11802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11806 /^X\(\/\/\)[^/].*/{
11819 test -d "$as_dir" && break
11821 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11822 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11826 if mkdir
-p .
2>/dev
/null
; then
11827 as_mkdir_p
='mkdir -p "$as_dir"'
11829 test -d .
/-p && rmdir .
/-p
11834 # as_fn_executable_p FILE
11835 # -----------------------
11836 # Test if FILE is an executable regular file.
11837 as_fn_executable_p
()
11839 test -f "$1" && test -x "$1"
11840 } # as_fn_executable_p
11841 as_test_x
='test -x'
11842 as_executable_p
=as_fn_executable_p
11844 # Sed expression to map a string onto a valid CPP name.
11845 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11847 # Sed expression to map a string onto a valid variable name.
11848 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11852 ## ----------------------------------- ##
11853 ## Main body of $CONFIG_STATUS script. ##
11854 ## ----------------------------------- ##
11856 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11859 # Save the log message, to keep $0 and so on meaningful, and to
11860 # report actual input values of CONFIG_FILES etc. instead of their
11861 # values after options handling.
11863 This file was extended by $as_me, which was
11864 generated by GNU Autoconf 2.69. Invocation command line was
11866 CONFIG_FILES = $CONFIG_FILES
11867 CONFIG_HEADERS = $CONFIG_HEADERS
11868 CONFIG_LINKS = $CONFIG_LINKS
11869 CONFIG_COMMANDS = $CONFIG_COMMANDS
11872 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11877 case $ac_config_files in *"
11878 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11881 case $ac_config_headers in *"
11882 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11887 # Files that config.status was made for.
11888 config_files="$ac_config_files"
11889 config_headers="$ac_config_headers"
11890 config_commands="$ac_config_commands"
11894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11896 \`$as_me' instantiates files and other configuration actions
11897 from templates according to the current configuration. Unless the files
11898 and actions are specified as TAGs, all are instantiated by default.
11900 Usage: $0 [OPTION]... [TAG]...
11902 -h, --help print this help, then exit
11903 -V, --version print version number and configuration settings, then exit
11904 --config print configuration, then exit
11905 -q, --quiet, --silent
11906 do not print progress messages
11907 -d, --debug don't remove temporary files
11908 --recheck update $as_me by reconfiguring in the same conditions
11909 --file=FILE[:TEMPLATE]
11910 instantiate the configuration file FILE
11911 --header=FILE[:TEMPLATE]
11912 instantiate the configuration header FILE
11914 Configuration files:
11917 Configuration headers:
11920 Configuration commands:
11923 Report bugs to the package provider."
11926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11927 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11930 configured by $0, generated by GNU Autoconf 2.69,
11931 with options \\"\$ac_cs_config\\"
11933 Copyright (C) 2012 Free Software Foundation, Inc.
11934 This config.status script is free software; the Free Software Foundation
11935 gives unlimited permission to copy, distribute and modify it."
11940 test -n "\$AWK" || AWK=awk
11943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11944 # The default lists apply if the user does not specify any file.
11950 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11951 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11955 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11967 # Handling of the options.
11968 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11970 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11971 $as_echo "$ac_cs_version"; exit ;;
11972 --config |
--confi |
--conf |
--con |
--co |
--c )
11973 $as_echo "$ac_cs_config"; exit ;;
11974 --debug |
--debu |
--deb |
--de |
--d |
-d )
11976 --file |
--fil |
--fi |
--f )
11979 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11980 '') as_fn_error $?
"missing file argument" ;;
11982 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11983 ac_need_defaults
=false
;;
11984 --header |
--heade |
--head |
--hea )
11987 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11989 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11990 ac_need_defaults
=false
;;
11992 # Conflict between --help and --header
11993 as_fn_error $?
"ambiguous option: \`$1'
11994 Try \`$0 --help' for more information.";;
11995 --help |
--hel |
-h )
11996 $as_echo "$ac_cs_usage"; exit ;;
11997 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11998 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12001 # This is an error.
12002 -*) as_fn_error $?
"unrecognized option: \`$1'
12003 Try \`$0 --help' for more information." ;;
12005 *) as_fn_append ac_config_targets
" $1"
12006 ac_need_defaults
=false
;;
12012 ac_configure_extra_args
=
12014 if $ac_cs_silent; then
12016 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12021 if \$ac_cs_recheck; then
12022 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12024 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12025 CONFIG_SHELL='$SHELL'
12026 export CONFIG_SHELL
12031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12035 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12036 ## Running $as_me. ##
12042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12046 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
12047 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
12051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12053 # Handling of arguments.
12054 for ac_config_target
in $ac_config_targets
12056 case $ac_config_target in
12057 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
12058 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
12059 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
12060 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12062 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12067 # If the user did not use the arguments to specify the items to instantiate,
12068 # then the envvar interface is used. Set only those that are not.
12069 # We use the long form for the default assignment because of an extremely
12070 # bizarre bug on SunOS 4.1.3.
12071 if $ac_need_defaults; then
12072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12073 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12074 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12077 # Have a temporary directory for convenience. Make it in the build tree
12078 # simply because there is no reason against having it here, and in addition,
12079 # creating and moving files from /tmp can sometimes cause problems.
12080 # Hook for its removal unless debugging.
12081 # Note that there is a small window in which the directory will not be cleaned:
12082 # after its creation but before its name has been assigned to `$tmp'.
12086 trap 'exit_status=$?
12087 : "${ac_tmp:=$tmp}"
12088 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12090 trap 'as_fn_exit 1' 1 2 13 15
12092 # Create a (secure) tmp directory for tmp files.
12095 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12099 tmp
=.
/conf$$
-$RANDOM
12100 (umask 077 && mkdir
"$tmp")
12101 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
12104 # Set up the scripts for CONFIG_FILES section.
12105 # No need to generate them if there are no CONFIG_FILES.
12106 # This happens for instance with `./config.status config.h'.
12107 if test -n "$CONFIG_FILES"; then
12110 ac_cr
=`echo X | tr X '\015'`
12111 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12112 # But we know of no other shell where ac_cr would be empty at this
12113 # point, so we can use a bashism as a fallback.
12114 if test "x$ac_cr" = x
; then
12115 eval ac_cr
=\$
\'\\r
\'
12117 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12118 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12121 ac_cs_awk_cr
=$ac_cr
12124 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12129 echo "cat >conf$$subs.awk <<_ACEOF" &&
12130 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12132 } >conf$$subs.sh ||
12133 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12134 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12136 for ac_last_try in false false false false false :; do
12137 . ./conf$$subs.sh ||
12138 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12140 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
12141 if test $ac_delim_n = $ac_delim_num; then
12143 elif $ac_last_try; then
12144 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12146 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12149 rm -f conf$$subs.sh
12151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12152 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
12156 s/^/S["/; s
/!.
*/"]=/
12166 s/\(.\{148\}\)..*/\1/
12168 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
12173 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12180 s/\(.\{148\}\)..*/\1/
12182 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
12186 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12191 ' <conf$$subs.awk | sed '
12196 ' >>$CONFIG_STATUS || ac_write_fail=1
12197 rm -f conf$$subs.awk
12198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12200 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
12201 for (key in S) S_is_set[key] = 1
12207 nfields = split(line, field, "@
")
12209 len = length(field[1])
12210 for (i = 2; i < nfields; i++) {
12212 keylen = length(key)
12213 if (S_is_set[key]) {
12215 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12216 len += length(value) + length(field[++i])
12227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12228 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12229 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
12232 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
12233 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
12236 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12237 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
12238 # trailing colons and then remove the whole line if VPATH becomes empty
12239 # (actually we leave an empty line to preserve line numbers).
12240 if test "x
$srcdir" = x.; then
12241 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12260 fi # test -n "$CONFIG_FILES"
12262 # Set up the scripts for CONFIG_HEADERS section.
12263 # No need to generate them if there are no CONFIG_HEADERS.
12264 # This happens for instance with `./config.status Makefile'.
12265 if test -n "$CONFIG_HEADERS"; then
12266 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
12270 # Transform confdefs.h into an awk script `defines.awk', embedded as
12271 # here-document in config.status, that substitutes the proper values into
12272 # config.h.in to produce config.h.
12274 # Create a delimiter string that does not exist in confdefs.h, to ease
12275 # handling of long lines.
12277 for ac_last_try in false false :; do
12278 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
12279 if test -z "$ac_tt"; then
12281 elif $ac_last_try; then
12282 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
12284 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12288 # For the awk script, D is an array of macro values keyed by name,
12289 # likewise P contains macro parameters if any. Preserve backslash
12290 # newline sequences.
12292 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12294 s/.\{148\}/&'"$ac_delim"'/g
12297 s/^[ ]*#[ ]*define[ ][ ]*/ /
12304 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12306 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12310 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12311 D["\
1"]=" \
3\\\\\\n
"\\/p
12313 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12318 s/.\{148\}/&'"$ac_delim"'/g
12323 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12326 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12328 ' <confdefs.h | sed '
12329 s/'"$ac_delim"'/"\\\
12330 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12333 for (key in D) D_is_set[key] = 1
12336 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12338 split(line, arg, " ")
12339 if (arg[1] == "#") {
12343 defundef
= substr
(arg
[1], 2)
12346 split(mac1
, mac2
, "(") #)
12348 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
12349 if (D_is_set
[macro
]) {
12350 # Preserve the white space surrounding the "#".
12351 print prefix
"define", macro P
[macro
] D
[macro
]
12354 # Replace #undef with comments. This is necessary, for example,
12355 # in the case of _POSIX_SOURCE, which is predefined and required
12356 # on some systems where configure will not decide to define it.
12357 if (defundef
== "undef") {
12358 print
"/*", prefix defundef
, macro
, "*/"
12366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12367 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
12368 fi # test -n "$CONFIG_HEADERS"
12371 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12376 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12378 case $ac_mode$ac_tag in
12380 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
12381 :[FH
]-) ac_tag
=-:-;;
12382 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12399 -) ac_f
="$ac_tmp/stdin";;
12400 *) # Look for the file first in the build tree, then in the source tree
12401 # (if the path is not absolute). The absolute path cannot be DOS-style,
12402 # because $ac_f cannot contain `:'.
12406 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12408 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12410 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12411 as_fn_append ac_file_inputs
" '$ac_f'"
12414 # Let's still pretend it is `configure' which instantiates (i.e., don't
12415 # use $as_me), people would be surprised to read:
12416 # /* config.h. Generated by config.status. */
12417 configure_input
='Generated from '`
12418 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12420 if test x
"$ac_file" != x-
; then
12421 configure_input
="$ac_file. $configure_input"
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12423 $as_echo "$as_me: creating $ac_file" >&6;}
12425 # Neutralize special characters interpreted by sed in replacement strings.
12426 case $configure_input in #(
12427 *\
&* |
*\|
* |
*\\* )
12428 ac_sed_conf_input
=`$as_echo "$configure_input" |
12429 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12430 *) ac_sed_conf_input
=$configure_input;;
12434 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
12435 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
12440 ac_dir
=`$as_dirname -- "$ac_file" ||
12441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12442 X"$ac_file" : 'X\(//\)[^/]' \| \
12443 X"$ac_file" : 'X\(//\)$' \| \
12444 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12445 $as_echo X"$ac_file" |
12446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12450 /^X\(\/\/\)[^/].*/{
12463 as_dir
="$ac_dir"; as_fn_mkdir_p
12467 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12469 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12470 # A ".." for each directory in $ac_dir_suffix.
12471 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12472 case $ac_top_builddir_sub in
12473 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12474 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12477 ac_abs_top_builddir
=$ac_pwd
12478 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12479 # for backward compatibility:
12480 ac_top_builddir
=$ac_top_build_prefix
12483 .
) # We are building in place.
12485 ac_top_srcdir
=$ac_top_builddir_sub
12486 ac_abs_top_srcdir
=$ac_pwd ;;
12487 [\\/]* | ?
:[\\/]* ) # Absolute name.
12488 ac_srcdir
=$srcdir$ac_dir_suffix;
12489 ac_top_srcdir
=$srcdir
12490 ac_abs_top_srcdir
=$srcdir ;;
12491 *) # Relative name.
12492 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12493 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12494 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12496 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12506 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12507 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12512 # If the template does not know about datarootdir, expand it.
12513 # FIXME: This hack should be removed a few years after 2.60.
12514 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12525 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12526 *datarootdir
*) ac_datarootdir_seen
=yes;;
12527 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12529 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12532 ac_datarootdir_hack='
12533 s&@datadir@&$datadir&g
12534 s&@docdir@&$docdir&g
12535 s&@infodir@&$infodir&g
12536 s&@localedir@&$localedir&g
12537 s&@mandir@&$mandir&g
12538 s&\\\${datarootdir}&$datarootdir&g' ;;
12542 # Neutralize VPATH when `$srcdir' = `.'.
12543 # Shell code in configure.ac might set extrasub.
12544 # FIXME: do we really want to maintain this feature?
12545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12546 ac_sed_extra="$ac_vpsub
12549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12551 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12552 s|@configure_input@|
$ac_sed_conf_input|
;t t
12553 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12554 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12555 s
&@srcdir@
&$ac_srcdir&;t t
12556 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12557 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12558 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12559 s
&@builddir@
&$ac_builddir&;t t
12560 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12561 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12562 s
&@INSTALL@
&$ac_INSTALL&;t t
12563 $ac_datarootdir_hack
12565 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
12566 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12568 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12569 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
12570 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12571 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12573 which seems to be undefined. Please make sure it is defined" >&5
12574 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12575 which seems to be undefined. Please make sure it is defined" >&2;}
12577 rm -f "$ac_tmp/stdin"
12579 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12580 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12588 if test x"$ac_file" != x-; then
12590 $as_echo "/* $configure_input */" \
12591 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12592 } >"$ac_tmp/config.h" \
12593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12594 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12596 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12599 mv "$ac_tmp/config.h" "$ac_file" \
12600 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12603 $as_echo "/* $configure_input */" \
12604 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12605 || as_fn_error $? "could not create -" "$LINENO" 5
12609 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12610 $as_echo "$as_me: executing $ac_file commands" >&6;}
12615 case $ac_file$ac_mode in
12616 "config.h":H) echo > stamp-h ;;
12617 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
12619 for subdir in ${CONFIG_SRC_SUBDIR}
12621 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
12630 ac_clean_files=$ac_clean_files_save
12632 test $ac_write_fail = 0 ||
12633 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12636 # configure is writing to config.log, and then calls config.status.
12637 # config.status does its own redirection, appending to config.log.
12638 # Unfortunately, on DOS this fails, as config.log is still kept open
12639 # by configure, so config.status won't be able to
write to it
; its
12640 # output is simply discarded. So we exec the FD to /dev/null,
12641 # effectively closing config.log, so it can be properly (re)opened and
12642 # appended to by config.status. When coming back to configure, we
12643 # need to make the FD available again.
12644 if test "$no_create" != yes; then
12646 ac_config_status_args
=
12647 test "$silent" = yes &&
12648 ac_config_status_args
="$ac_config_status_args --quiet"
12650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12653 # would make configure fail if this is the last instruction.
12654 $ac_cs_success || as_fn_exit
1
12656 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12658 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}