2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="server.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars
='LTLIBOBJS
674 INSTALL_STRIP_PROGRAM
691 MAINTAINER_MODE_FALSE
720 program_transform_name
733 enable_option_checking
734 enable_maintainer_mode
745 enable_build_warnings
746 enable_gdb_build_warnings
750 enable_inprocess_agent
752 ac_precious_vars
='build_alias
766 # Initialize some variables set by options.
768 ac_init_version
=false
769 ac_unrecognized_opts
=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
780 program_transform_name
=s
,x
,x
,
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir
='${exec_prefix}/bin'
795 sbindir
='${exec_prefix}/sbin'
796 libexecdir
='${exec_prefix}/libexec'
797 datarootdir
='${prefix}/share'
798 datadir
='${datarootdir}'
799 sysconfdir
='${prefix}/etc'
800 sharedstatedir
='${prefix}/com'
801 localstatedir
='${prefix}/var'
802 includedir
='${prefix}/include'
803 oldincludedir
='/usr/include'
804 docdir
='${datarootdir}/doc/${PACKAGE}'
805 infodir
='${datarootdir}/info'
810 libdir
='${exec_prefix}/lib'
811 localedir
='${datarootdir}/locale'
812 mandir
='${datarootdir}/man'
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\
$ac_option
826 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 # Accept the important Cygnus configure options, so we can diagnose typos.
833 case $ac_dashdash$ac_option in
837 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
839 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
842 -build |
--build |
--buil |
--bui |
--bu)
843 ac_prev
=build_alias
;;
844 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
845 build_alias
=$ac_optarg ;;
847 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
848 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
849 ac_prev
=cache_file
;;
850 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
851 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
852 cache_file
=$ac_optarg ;;
855 cache_file
=config.cache
;;
857 -datadir |
--datadir |
--datadi |
--datad)
859 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
860 datadir
=$ac_optarg ;;
862 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
863 |
--dataroo |
--dataro |
--datar)
864 ac_prev
=datarootdir
;;
865 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
866 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
867 datarootdir
=$ac_optarg ;;
869 -disable-* |
--disable-*)
870 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
873 as_fn_error $?
"invalid feature name: $ac_useropt"
874 ac_useropt_orig
=$ac_useropt
875 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
880 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep
=', ';;
883 eval enable_
$ac_useropt=no
;;
885 -docdir |
--docdir |
--docdi |
--doc |
--do)
887 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
890 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
892 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
895 -enable-* |
--enable-*)
896 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
899 as_fn_error $?
"invalid feature name: $ac_useropt"
900 ac_useropt_orig
=$ac_useropt
901 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
906 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep
=', ';;
909 eval enable_
$ac_useropt=\
$ac_optarg ;;
911 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
912 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
913 |
--exec |
--exe |
--ex)
914 ac_prev
=exec_prefix
;;
915 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
916 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
917 |
--exec=* |
--exe=* |
--ex=*)
918 exec_prefix
=$ac_optarg ;;
920 -gas |
--gas |
--ga |
--g)
921 # Obsolete; use --with-gas.
924 -help |
--help |
--hel |
--he |
-h)
926 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
927 ac_init_help
=recursive
;;
928 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
929 ac_init_help
=short
;;
931 -host |
--host |
--hos |
--ho)
932 ac_prev
=host_alias
;;
933 -host=* |
--host=* |
--hos=* |
--ho=*)
934 host_alias
=$ac_optarg ;;
936 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
938 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
940 htmldir
=$ac_optarg ;;
942 -includedir |
--includedir |
--includedi |
--included |
--include \
943 |
--includ |
--inclu |
--incl |
--inc)
944 ac_prev
=includedir
;;
945 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
946 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
947 includedir
=$ac_optarg ;;
949 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
951 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
952 infodir
=$ac_optarg ;;
954 -libdir |
--libdir |
--libdi |
--libd)
956 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
959 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
960 |
--libexe |
--libex |
--libe)
961 ac_prev
=libexecdir
;;
962 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
963 |
--libexe=* |
--libex=* |
--libe=*)
964 libexecdir
=$ac_optarg ;;
966 -localedir |
--localedir |
--localedi |
--localed |
--locale)
968 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
969 localedir
=$ac_optarg ;;
971 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
972 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
973 ac_prev
=localstatedir
;;
974 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
975 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
976 localstatedir
=$ac_optarg ;;
978 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
980 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
984 # Obsolete; use --without-fp.
987 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
988 |
--no-cr |
--no-c |
-n)
991 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
992 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
995 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
996 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
997 |
--oldin |
--oldi |
--old |
--ol |
--o)
998 ac_prev
=oldincludedir
;;
999 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1000 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1001 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1002 oldincludedir
=$ac_optarg ;;
1004 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1006 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1007 prefix
=$ac_optarg ;;
1009 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1010 |
--program-pre |
--program-pr |
--program-p)
1011 ac_prev
=program_prefix
;;
1012 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1013 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1014 program_prefix
=$ac_optarg ;;
1016 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1017 |
--program-suf |
--program-su |
--program-s)
1018 ac_prev
=program_suffix
;;
1019 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1020 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1021 program_suffix
=$ac_optarg ;;
1023 -program-transform-name |
--program-transform-name \
1024 |
--program-transform-nam |
--program-transform-na \
1025 |
--program-transform-n |
--program-transform- \
1026 |
--program-transform |
--program-transfor \
1027 |
--program-transfo |
--program-transf \
1028 |
--program-trans |
--program-tran \
1029 |
--progr-tra |
--program-tr |
--program-t)
1030 ac_prev
=program_transform_name
;;
1031 -program-transform-name=* |
--program-transform-name=* \
1032 |
--program-transform-nam=* |
--program-transform-na=* \
1033 |
--program-transform-n=* |
--program-transform-=* \
1034 |
--program-transform=* |
--program-transfor=* \
1035 |
--program-transfo=* |
--program-transf=* \
1036 |
--program-trans=* |
--program-tran=* \
1037 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1038 program_transform_name
=$ac_optarg ;;
1040 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1042 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1043 pdfdir
=$ac_optarg ;;
1045 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1047 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1050 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1051 |
-silent |
--silent |
--silen |
--sile |
--sil)
1054 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1056 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1058 sbindir
=$ac_optarg ;;
1060 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1061 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1062 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1064 ac_prev
=sharedstatedir
;;
1065 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1066 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1067 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1069 sharedstatedir
=$ac_optarg ;;
1071 -site |
--site |
--sit)
1073 -site=* |
--site=* |
--sit=*)
1076 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1078 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1079 srcdir
=$ac_optarg ;;
1081 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1082 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1083 ac_prev
=sysconfdir
;;
1084 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1085 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1086 sysconfdir
=$ac_optarg ;;
1088 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1089 ac_prev
=target_alias
;;
1090 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1091 target_alias
=$ac_optarg ;;
1093 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1096 -version |
--version |
--versio |
--versi |
--vers |
-V)
1097 ac_init_version
=: ;;
1100 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1103 as_fn_error $?
"invalid package name: $ac_useropt"
1104 ac_useropt_orig
=$ac_useropt
1105 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1110 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep
=', ';;
1113 eval with_
$ac_useropt=\
$ac_optarg ;;
1115 -without-* |
--without-*)
1116 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1119 as_fn_error $?
"invalid package name: $ac_useropt"
1120 ac_useropt_orig
=$ac_useropt
1121 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1126 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep
=', ';;
1129 eval with_
$ac_useropt=no
;;
1132 # Obsolete; use --with-x.
1135 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1136 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1137 ac_prev
=x_includes
;;
1138 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1139 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1140 x_includes
=$ac_optarg ;;
1142 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1143 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1144 ac_prev
=x_libraries
;;
1145 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1146 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1147 x_libraries
=$ac_optarg ;;
1149 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information"
1154 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1158 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1160 eval $ac_envvar=\
$ac_optarg
1161 export $ac_envvar ;;
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174 if test -n "$ac_prev"; then
1175 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error $?
"missing argument to $ac_option"
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1182 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187 # Check all directory arguments for consistency.
1188 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1193 eval ac_val
=\$
$ac_var
1194 # Remove trailing slashes.
1197 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\
$ac_val;;
1200 # Be sure to have absolute directory names.
1202 [\\/$
]* | ?
:[\\/]* ) continue;;
1203 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1205 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1213 target
=$target_alias
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x
; then
1217 if test "x$build_alias" = x
; then
1218 cross_compiling
=maybe
1219 elif test "x$build_alias" != "x$host_alias"; then
1225 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1227 test "$silent" = yes && exec 6>/dev
/null
1230 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di
=`ls -di .` &&
1232 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error $?
"working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error $?
"pwd does not report name of working directory"
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted
=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir
=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1270 ac_srcdir_defaulted
=no
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1274 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1276 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1288 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 for ac_var
in $ac_precious_vars; do
1291 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1293 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1304 \`configure' configures this package to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking ...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1367 --build=BUILD configure
for building on BUILD
[guessed
]
1368 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1369 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1373 if test -n "$ac_init_help"; then
1378 --disable-option-checking ignore unrecognized
--enable/--with options
1379 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1380 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1381 --enable-maintainer-mode
1382 enable make rules and dependencies not useful
(and
1383 sometimes confusing
) to the casual installer
1384 --disable-largefile omit support
for large files
1385 --enable-unit-tests Enable the inclusion of unit tests when compiling
1387 --disable-rpath do not hardcode runtime library paths
1388 --enable-werror treat compile warnings as errors
1389 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1390 --enable-gdb-build-warnings
1391 enable GDB specific build-time compiler warnings
if
1393 --enable-inprocess-agent
1397 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1398 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1399 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1400 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1401 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1402 --without-libipt-prefix don
't search for libipt in includedir and libdir
1403 --with-ust=PATH Specify prefix directory for the installed UST package
1404 Equivalent to --with-ust-include=PATH/include
1405 plus --with-ust-lib=PATH/lib
1406 --with-ust-include=PATH Specify directory for installed UST include files
1407 --with-ust-lib=PATH Specify the directory for the installed UST library
1408 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1409 --with-bugurl=URL Direct users to URL to report a bug
1410 --with-libthread-db=PATH
1411 use given libthread_db directly
1413 Some influential environment variables:
1414 CC C compiler command
1415 CFLAGS C compiler flags
1416 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1417 nonstandard directory <lib dir>
1418 LIBS libraries to pass to the linker, e.g. -l<library>
1419 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1420 you have headers in a nonstandard directory <include dir>
1421 CXX C++ compiler command
1422 CXXFLAGS C++ compiler flags
1425 Use these variables to override the choices made by `configure' or to
help
1426 it to
find libraries and programs with nonstandard names
/locations.
1428 Report bugs to the package provider.
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1442 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1444 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1449 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1452 ac_abs_top_builddir
=$ac_pwd
1453 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir
=$ac_top_build_prefix
1458 .
) # We are building in place.
1460 ac_top_srcdir
=$ac_top_builddir_sub
1461 ac_abs_top_srcdir
=$ac_pwd ;;
1462 [\\/]* | ?
:[\\/]* ) # Absolute name.
1463 ac_srcdir
=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir
=$srcdir
1465 ac_abs_top_srcdir
=$srcdir ;;
1467 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1471 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1473 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1492 generated by GNU Autoconf
2.69
1494 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1495 This configure
script is free software
; the Free Software Foundation
1496 gives unlimited permission to copy
, distribute and modify it.
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile
()
1510 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1511 rm -f conftest.
$ac_objext
1512 if { { ac_try
="$ac_compile"
1514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext; then :
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 as_fn_set_status $ac_retval
1541 } # ac_fn_c_try_compile
1543 # ac_fn_cxx_try_compile LINENO
1544 # ----------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_cxx_try_compile ()
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1553 *) ac_try_echo
=$ac_try;;
1555 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1559 if test -s conftest.err
; then
1560 grep -v '^ *+' conftest.err
>conftest.er1
1561 cat conftest.er1
>&5
1562 mv -f conftest.er1 conftest.err
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_cxx_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.
$ac_objext; then :
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.
$ac_ext >&5
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status
$ac_retval
1579 } # ac_fn_cxx_try_compile
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1586 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1587 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } > conftest.i && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1618 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1621 # the include files in INCLUDES and setting the cache variable VAR
1623 ac_fn_c_check_header_mongrel ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if eval \${$3+:} false; then :
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if eval \${$3+:} false; then :
1630 $as_echo_n "(cached) " >&6
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1636 # Is the header compilable?
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1638 $as_echo_n "checking $2 usability... " >&6; }
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 ac_header_compiler=yes
1647 ac_header_compiler=no
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1651 $as_echo "$ac_header_compiler" >&6; }
1653 # Is the header present?
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1655 $as_echo_n "checking $2 presence... " >&6; }
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1660 if ac_fn_c_try_cpp "$LINENO"; then :
1661 ac_header_preproc=yes
1663 ac_header_preproc=no
1665 rm -f conftest.err conftest.i conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1667 $as_echo "$ac_header_preproc" >&6; }
1669 # So? What about this header?
1670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1673 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1675 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1679 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1681 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1683 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1685 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1695 eval "$3=\$ac_header_compiler"
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 } # ac_fn_c_check_header_mongrel
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1715 *) ac_try_echo
=$ac_try;;
1717 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=$ac_status
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1747 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists and can be compiled using the include files in
1750 # INCLUDES, setting the cache variable VAR accordingly.
1751 ac_fn_c_check_header_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1764 if ac_fn_c_try_compile "$LINENO"; then :
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 } # ac_fn_c_check_header_compile
1778 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1779 # -------------------------------------------
1780 # Tests whether TYPE exists after having included INCLUDES, setting cache
1781 # variable VAR accordingly.
1782 ac_fn_c_check_type ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1816 if ac_fn_c_try_compile "$LINENO"; then :
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 } # ac_fn_c_check_type
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1842 *) ac_try_echo
=$ac_try;;
1844 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1848 if test -s conftest.err
; then
1849 grep -v '^ *+' conftest.err
>conftest.er1
1850 cat conftest.er1
>&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest
$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 test -x conftest
$ac_exeext
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.
$ac_ext >&5
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status
$ac_retval
1876 } # ac_fn_c_try_link
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func
()
1883 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \
${$3+:} false
; then :
1887 $as_echo_n "(cached) " >&6
1889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893 #define $2 innocuous_$2
1895 /* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1901 # include <limits.h>
1903 # include <assert.h>
1908 /* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined __stub_$2 || defined __stub___$2
1930 if ac_fn_c_try_link
"$LINENO"; then :
1935 rm -f core conftest.err conftest.
$ac_objext \
1936 conftest
$ac_exeext conftest.
$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_func
1945 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1946 # ---------------------------------------------
1947 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1949 ac_fn_c_check_decl
()
1951 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1952 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1953 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1955 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1956 if eval \
${$3+:} false
; then :
1957 $as_echo_n "(cached) " >&6
1959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1965 #ifndef $as_decl_name
1967 (void) $as_decl_use;
1969 (void) $as_decl_name;
1977 if ac_fn_c_try_compile
"$LINENO"; then :
1982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 } # ac_fn_c_check_decl
1991 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1992 # ----------------------------------------------------
1993 # Tries to find if the field MEMBER exists in type AGGR, after including
1994 # INCLUDES, setting cache variable VAR accordingly.
1995 ac_fn_c_check_member
()
1997 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1999 $as_echo_n "checking for $2.$3... " >&6; }
2000 if eval \
${$4+:} false
; then :
2001 $as_echo_n "(cached) " >&6
2003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2016 if ac_fn_c_try_compile
"$LINENO"; then :
2019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2026 if (sizeof ac_aggr.$3)
2032 if ac_fn_c_try_compile
"$LINENO"; then :
2037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 } # ac_fn_c_check_member
2048 # ac_fn_cxx_try_link LINENO
2049 # -------------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded.
2051 ac_fn_cxx_try_link
()
2053 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2054 rm -f conftest.
$ac_objext conftest
$ac_exeext
2055 if { { ac_try
="$ac_link"
2057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_link") 2>conftest.err
2064 if test -s conftest.err; then
2065 grep -v '^ *+' conftest.err >conftest.er1
2066 cat conftest.er1 >&5
2067 mv -f conftest.er1 conftest.err
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; } && {
2071 test -z "$ac_cxx_werror_flag" ||
2072 test ! -s conftest.err
2073 } && test -s conftest$ac_exeext && {
2074 test "$cross_compiling" = yes ||
2075 test -x conftest$ac_exeext
2079 $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2084 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086 # interfere with the next link command; also delete a directory that is
2087 # left behind by Apple's compiler. We do this before executing the actions.
2088 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 as_fn_set_status $ac_retval
2092 } # ac_fn_cxx_try_link
2094 # ac_fn_cxx_check_func LINENO FUNC VAR
2095 # ------------------------------------
2096 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2097 ac_fn_cxx_check_func ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101 $as_echo_n "checking for $2... " >&6; }
2102 if eval \${$3+:} false; then :
2103 $as_echo_n "(cached) " >&6
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2107 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2109 #define $2 innocuous_$2
2111 /* System header to define __stub macros and hopefully few prototypes,
2112 which can conflict with char $2 (); below.
2113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2114 <limits.h> exists even on freestanding compilers. */
2117 # include <limits.h>
2119 # include <assert.h>
2124 /* Override any GCC internal prototype to avoid an error.
2125 Use char because int might match the return type of a GCC
2126 builtin and then its argument prototype would still apply. */
2131 /* The GNU C library defines this for functions which it implements
2132 to always fail with ENOSYS. Some functions are actually named
2133 something starting with __ and the normal name is an alias. */
2134 #if defined __stub_$2 || defined __stub___$2
2146 if ac_fn_cxx_try_link "$LINENO"; then :
2151 rm -f core conftest.err conftest.$ac_objext \
2152 conftest$ac_exeext conftest.$ac_ext
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 } # ac_fn_cxx_check_func
2161 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2162 # --------------------------------------------
2163 # Tries to find the compile-time value of EXPR in a program that includes
2164 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2166 ac_fn_c_compute_int ()
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 if test "$cross_compiling" = yes; then
2170 # Depending upon the size, compute the lo and hi bounds.
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2177 static int test_array [1 - 2 * !(($2) >= 0)];
2179 return test_array [0];
2185 if ac_fn_c_try_compile "$LINENO"; then :
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2194 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2196 return test_array [0];
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203 ac_hi=$ac_mid; break
2205 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2206 if test $ac_lo -le $ac_mid; then
2210 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2221 static int test_array [1 - 2 * !(($2) < 0)];
2223 return test_array [0];
2229 if ac_fn_c_try_compile "$LINENO"; then :
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2238 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2240 return test_array [0];
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247 ac_lo=$ac_mid; break
2249 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2250 if test $ac_mid -le $ac_hi; then
2254 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 # Binary search between lo and hi bounds.
2265 while test "x$ac_lo" != "x$ac_hi"; do
2266 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2273 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2275 return test_array [0];
2281 if ac_fn_c_try_compile "$LINENO"; then :
2284 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2296 static long int longval () { return $2; }
2297 static unsigned long int ulongval () { return $2; }
2304 FILE *f = fopen ("conftest.val", "w");
2309 long int i = longval ();
2312 fprintf (f, "%ld", i);
2316 unsigned long int i = ulongval ();
2319 fprintf (f, "%lu", i);
2321 /* Do not output a trailing newline, as this causes \r\n confusion
2322 on some platforms. */
2323 return ferror (f) || fclose (f) != 0;
2329 if ac_fn_c_try_run "$LINENO"; then :
2330 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2335 conftest.$ac_objext conftest.beam conftest.$ac_ext
2339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340 as_fn_set_status $ac_retval
2342 } # ac_fn_c_compute_int
2343 cat >config.log <<_ACEOF
2344 This file contains any messages produced by compilers while
2345 running configure, to aid debugging if configure makes a mistake.
2347 It was created by $as_me, which was
2348 generated by GNU Autoconf 2.69. Invocation command line was
2360 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2361 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2362 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2363 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2364 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2366 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2367 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2369 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2370 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2371 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2372 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2373 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2374 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2375 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 test -z "$as_dir" && as_dir=.
2384 $as_echo "PATH: $as_dir"
2400 # Keep a trace of the command line.
2401 # Strip out --no-create and --no-recursion so they do not pile up.
2402 # Strip out --silent because we don't want to record it for future runs.
2403 # Also quote any args containing shell meta-characters.
2404 # Make two passes to allow for proper duplicate-argument suppression.
2408 ac_must_keep_next=false
2414 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2416 | -silent | --silent | --silen | --sile | --sil)
2419 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2422 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424 as_fn_append ac_configure_args1 " '$ac_arg'"
2425 if test $ac_must_keep_next = true; then
2426 ac_must_keep_next=false # Got value, back to normal.
2429 *=* | --config-cache | -C | -disable-* | --disable-* \
2430 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2431 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2432 | -with-* | --with-* | -without-* | --without-* | --x)
2433 case "$ac_configure_args0 " in
2434 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2437 -* ) ac_must_keep_next=true ;;
2440 as_fn_append ac_configure_args " '$ac_arg'"
2445 { ac_configure_args0=; unset ac_configure_args0;}
2446 { ac_configure_args1=; unset ac_configure_args1;}
2448 # When interrupted or exit'd, cleanup temporary files, and complete
2449 # config.log. We remove comments because anyway the quotes in there
2450 # would cause problems or look ugly.
2451 # WARNING: Use '\'' to represent an apostrophe within the trap.
2452 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2453 trap 'exit_status=$?
2454 # Save into config.log some information that might help in debugging.
2458 $as_echo "## ---------------- ##
2459 ## Cache variables. ##
2460 ## ---------------- ##"
2462 # The following way of writing the cache mishandles newlines in values,
2464 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2465 eval ac_val=\$$ac_var
2469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2473 _ | IFS | as_nl) ;; #(
2474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2475 *) { eval $ac_var=; unset $ac_var;} ;;
2480 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2481 *${as_nl}ac_space=\ *)
2483 "s/'\''/'\''\\\\'\'''\''/g;
2484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2494 $as_echo "## ----------------- ##
2495 ## Output variables. ##
2496 ## ----------------- ##"
2498 for ac_var in $ac_subst_vars
2500 eval ac_val=\$$ac_var
2502 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 $as_echo "$ac_var='\''$ac_val'\''"
2508 if test -n "$ac_subst_files"; then
2509 $as_echo "## ------------------- ##
2510 ## File substitutions. ##
2511 ## ------------------- ##"
2513 for ac_var in $ac_subst_files
2515 eval ac_val=\$$ac_var
2517 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 $as_echo "$ac_var='\''$ac_val'\''"
2524 if test -s confdefs.h; then
2525 $as_echo "## ----------- ##
2532 test "$ac_signal" != 0 &&
2533 $as_echo "$as_me: caught signal $ac_signal"
2534 $as_echo "$as_me: exit $exit_status"
2536 rm -f core *.core core.conftest.* &&
2537 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2540 for ac_signal in 1 2 13 15; do
2541 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2545 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2546 rm -f -r conftest* confdefs.h
2548 $as_echo "/* confdefs.h */" > confdefs.h
2550 # Predefined preprocessor variables.
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_NAME "$PACKAGE_NAME"
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_STRING "$PACKAGE_STRING"
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_URL "$PACKAGE_URL"
2577 # Let the site file select an alternate cache file if it wants to.
2578 # Prefer an explicitly selected file to automatically selected ones.
2581 if test -n "$CONFIG_SITE"; then
2582 # We do not want a PATH search for config.site.
2583 case $CONFIG_SITE in #((
2584 -*) ac_site_file1=./$CONFIG_SITE;;
2585 */*) ac_site_file1=$CONFIG_SITE;;
2586 *) ac_site_file1=./$CONFIG_SITE;;
2588 elif test "x$prefix" != xNONE; then
2589 ac_site_file1=$prefix/share/config.site
2590 ac_site_file2=$prefix/etc/config.site
2592 ac_site_file1=$ac_default_prefix/share/config.site
2593 ac_site_file2=$ac_default_prefix/etc/config.site
2595 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2597 test "x$ac_site_file" = xNONE && continue
2598 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2600 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2601 sed 's/^/| /' "$ac_site_file" >&5
2603 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 as_fn_error $? "failed to load site
script $ac_site_file
2606 See \
`config.log' for more details" "$LINENO" 5; }
2610 if test -r "$cache_file"; then
2611 # Some versions of bash will fail to source /dev/null (special files
2612 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2613 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2615 $as_echo "$as_me: loading cache $cache_file" >&6;}
2617 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2618 *) . "./$cache_file";;
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2623 $as_echo "$as_me: creating cache $cache_file" >&6;}
2627 as_fn_append ac_header_list " stdlib.h"
2628 as_fn_append ac_header_list " unistd.h"
2629 as_fn_append ac_header_list " sys/param.h"
2630 # Check that the precious variables saved in the cache have kept the same
2632 ac_cache_corrupted=false
2633 for ac_var in $ac_precious_vars; do
2634 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2635 eval ac_new_set=\$ac_env_${ac_var}_set
2636 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2637 eval ac_new_val=\$ac_env_${ac_var}_value
2638 case $ac_old_set,$ac_new_set in
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2641 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2642 ac_cache_corrupted=: ;;
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2645 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2646 ac_cache_corrupted=: ;;
2649 if test "x$ac_old_val" != "x$ac_new_val"; then
2650 # differences in whitespace do not lead to failure.
2651 ac_old_val_w=`echo x
$ac_old_val`
2652 ac_new_val_w=`echo x
$ac_new_val`
2653 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2655 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2656 ac_cache_corrupted=:
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2659 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2660 eval $ac_var=\$ac_old_val
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2663 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2665 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2668 # Pass precious variables to config.status.
2669 if test "$ac_new_set" = set; then
2671 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2672 *) ac_arg=$ac_var=$ac_new_val ;;
2674 case " $ac_configure_args " in
2675 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2676 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2680 if $ac_cache_corrupted; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2684 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2685 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2687 ## -------------------- ##
2688 ## Main body of script. ##
2689 ## -------------------- ##
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701 ac_config_headers="$ac_config_headers config.h:config.in"
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2706 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2707 # Check whether --enable-maintainer-mode was given.
2708 if test "${enable_maintainer_mode+set}" = set; then :
2709 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2711 USE_MAINTAINER_MODE=no
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2715 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2716 if test $USE_MAINTAINER_MODE = yes; then
2717 MAINTAINER_MODE_TRUE=
2718 MAINTAINER_MODE_FALSE='#'
2720 MAINTAINER_MODE_TRUE='#'
2721 MAINTAINER_MODE_FALSE=
2724 MAINT=$MAINTAINER_MODE_TRUE
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733 if test -n "$ac_tool_prefix"; then
2734 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2735 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_CC+:} false; then :
2739 $as_echo_n "(cached) " >&6
2741 if test -n "$CC"; then
2742 ac_cv_prog_CC="$CC" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 if test -n "$CC"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764 $as_echo "$CC" >&6; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2772 if test -z "$ac_cv_prog_CC"; then
2774 # Extract the first word of "gcc", so it can be a program name with args.
2775 set dummy gcc; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2779 $as_echo_n "(cached) " >&6
2781 if test -n "$ac_ct_CC"; then
2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_ac_ct_CC="gcc"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2802 if test -n "$ac_ct_CC"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2804 $as_echo "$ac_ct_CC" >&6; }
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2810 if test "x$ac_ct_CC" = x; then
2813 case $cross_compiling:$ac_tool_warned in
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2817 ac_tool_warned=yes ;;
2825 if test -z "$CC"; then
2826 if test -n "$ac_tool_prefix"; then
2827 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2828 set dummy ${ac_tool_prefix}cc; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_CC+:} false; then :
2832 $as_echo_n "(cached) " >&6
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CC="${ac_tool_prefix}cc"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 if test -n "$CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2866 if test -z "$CC"; then
2867 # Extract the first word of "cc", so it can be a program name with args.
2868 set dummy cc; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_prog_CC+:} false; then :
2872 $as_echo_n "(cached) " >&6
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2886 ac_prog_rejected=yes
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 if test $ac_prog_rejected = yes; then
2898 # We found a bogon in the path, so make sure we never use it.
2899 set dummy $ac_cv_prog_CC
2901 if test $# != 0; then
2902 # We chose a different compiler from the bogus one.
2903 # However, it has the same basename, so the bogon will be chosen
2904 # first if we set CC to just the basename; use the full file name.
2906 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2912 if test -n "$CC"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914 $as_echo "$CC" >&6; }
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2922 if test -z "$CC"; then
2923 if test -n "$ac_tool_prefix"; then
2924 for ac_prog in cl.exe
2926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2927 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2963 test -n "$CC" && break
2966 if test -z "$CC"; then
2968 for ac_prog in cl.exe
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy $ac_prog; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2975 $as_echo_n "(cached) " >&6
2977 if test -n "$ac_ct_CC"; then
2978 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_ac_ct_CC="$ac_prog"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2998 if test -n "$ac_ct_CC"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3000 $as_echo "$ac_ct_CC" >&6; }
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3007 test -n "$ac_ct_CC" && break
3010 if test "x$ac_ct_CC" = x; then
3013 case $cross_compiling:$ac_tool_warned in
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3017 ac_tool_warned=yes ;;
3026 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3029 See \
`config.log' for more details" "$LINENO" 5; }
3031 # Provide some information about the compiler.
3032 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3035 for ac_option in --version -v -V -qversion; do
3036 { { ac_try="$ac_compiler $ac_option >&5"
3038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3039 *) ac_try_echo
=$ac_try;;
3041 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3042 $as_echo "$ac_try_echo"; } >&5
3043 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3045 if test -s conftest.err
; then
3047 ... rest of stderr output deleted ...
3048 10q' conftest.err
>conftest.er1
3049 cat conftest.er1
>&5
3051 rm -f conftest.er1 conftest.err
3052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3053 test $ac_status = 0; }
3056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3067 ac_clean_files_save
=$ac_clean_files
3068 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3069 # Try to create an executable without -o first, disregard a.out.
3070 # It will help us diagnose broken compilers, and finding out an intuition
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3073 $as_echo_n "checking whether the C compiler works... " >&6; }
3074 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 # The possible output files:
3077 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3080 for ac_file
in $ac_files
3083 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3084 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3089 if { { ac_try
="$ac_link_default"
3091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_link_default") 2>&5
3098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3099 test $ac_status = 0; }; then :
3100 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3101 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3102 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3103 # so that the user can short-circuit this test for compilers unknown to
3105 for ac_file in $ac_files ''
3107 test -f "$ac_file" || continue
3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3112 # We found the default executable, but exeext='' is most
3116 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3118 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3120 # We set ac_cv_exeext here because the later test for it is not
3121 # safe: cross compilers may not add the suffix if given an `-o'
3122 # argument, so we may need to know it at that point already.
3123 # Even if this section looks crufty: it has the advantage of
3130 test "$ac_cv_exeext" = no && ac_cv_exeext=
3135 if test -z "$ac_file"; then :
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 $as_echo "$as_me: failed program was:" >&5
3139 sed 's
/^
/|
/' conftest.$ac_ext >&5
3141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3143 as_fn_error 77 "C compiler cannot create executables
3144 See \`config.log
' for more details" "$LINENO" 5; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3147 $as_echo "yes" >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3150 $as_echo_n "checking for C compiler default output file name... " >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3152 $as_echo "$ac_file" >&6; }
3153 ac_exeext=$ac_cv_exeext
3155 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3156 ac_clean_files=$ac_clean_files_save
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3158 $as_echo_n "checking for suffix of executables... " >&6; }
3159 if { { ac_try="$ac_link"
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165 $as_echo "$ac_try_echo"; } >&5
3166 (eval "$ac_link") 2>&5
3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169 test $ac_status = 0; }; then :
3170 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3171 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3172 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3174 for ac_file
in conftest.exe conftest conftest.
*; do
3175 test -f "$ac_file" ||
continue
3177 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3178 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3187 See \`config.log' for more details" "$LINENO" 5; }
3189 rm -f conftest conftest
$ac_cv_exeext
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3191 $as_echo "$ac_cv_exeext" >&6; }
3193 rm -f conftest.
$ac_ext
3194 EXEEXT
=$ac_cv_exeext
3196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3202 FILE *f = fopen ("conftest.out", "w");
3203 return ferror (f) || fclose (f) != 0;
3209 ac_clean_files
="$ac_clean_files conftest.out"
3210 # Check that the compiler produces executables we can run. If not, either
3211 # the compiler is broken, or we cross compile.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3213 $as_echo_n "checking whether we are cross compiling... " >&6; }
3214 if test "$cross_compiling" != yes; then
3215 { { ac_try
="$ac_link"
3217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3222 (eval "$ac_link") 2>&5
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }
3226 if { ac_try='./conftest$ac_cv_exeext'
3227 { { case "(($ac_try" in
3228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3229 *) ac_try_echo
=$ac_try;;
3231 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232 $as_echo "$ac_try_echo"; } >&5
3233 (eval "$ac_try") 2>&5
3235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236 test $ac_status = 0; }; }; then
3239 if test "$cross_compiling" = maybe
; then
3242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 as_fn_error $?
"cannot run C compiled programs.
3245 If you meant to cross compile, use \`--host'.
3246 See \`config.log' for more details" "$LINENO" 5; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3251 $as_echo "$cross_compiling" >&6; }
3253 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3254 ac_clean_files
=$ac_clean_files_save
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3256 $as_echo_n "checking for suffix of object files... " >&6; }
3257 if ${ac_cv_objext+:} false
; then :
3258 $as_echo_n "(cached) " >&6
3260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3261 /* end confdefs.h. */
3271 rm -f conftest.o conftest.obj
3272 if { { ac_try
="$ac_compile"
3274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278 $as_echo "$ac_try_echo"; } >&5
3279 (eval "$ac_compile") 2>&5
3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }; then :
3283 for ac_file in conftest.o conftest.obj conftest.*; do
3284 test -f "$ac_file" || continue;
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3287 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3292 $as_echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3298 See \
`config.log' for more details" "$LINENO" 5; }
3300 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3303 $as_echo "$ac_cv_objext" >&6; }
3304 OBJEXT=$ac_cv_objext
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3307 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3308 if ${ac_cv_c_compiler_gnu+:} false; then :
3309 $as_echo_n "(cached) " >&6
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3325 if ac_fn_c_try_compile "$LINENO"; then :
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3335 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3336 if test $ac_compiler_gnu = yes; then
3341 ac_test_CFLAGS=${CFLAGS+set}
3342 ac_save_CFLAGS=$CFLAGS
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3344 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3345 if ${ac_cv_prog_cc_g+:} false; then :
3346 $as_echo_n "(cached) " >&6
3348 ac_save_c_werror_flag=$ac_c_werror_flag
3349 ac_c_werror_flag=yes
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3363 if ac_fn_c_try_compile "$LINENO"; then :
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3378 if ac_fn_c_try_compile "$LINENO"; then :
3381 ac_c_werror_flag=$ac_save_c_werror_flag
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3394 if ac_fn_c_try_compile "$LINENO"; then :
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 ac_c_werror_flag=$ac_save_c_werror_flag
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3405 $as_echo "$ac_cv_prog_cc_g" >&6; }
3406 if test "$ac_test_CFLAGS" = set; then
3407 CFLAGS=$ac_save_CFLAGS
3408 elif test $ac_cv_prog_cc_g = yes; then
3409 if test "$GCC" = yes; then
3415 if test "$GCC" = yes; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3422 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3423 if ${ac_cv_prog_cc_c89+:} false; then :
3424 $as_echo_n "(cached) " >&6
3426 ac_cv_prog_cc_c89=no
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3433 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3434 struct buf { int x; };
3435 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3436 static char *e (p, i)
3442 static char *f (char * (*g) (char **, int), char **p, ...)
3447 s = g (p, va_arg (v,int));
3452 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3453 function prototypes and stuff, but not '\xHH' hex character constants.
3454 These don't provoke an error unfortunately, instead are silently treated
3455 as 'x'. The following induces an error, until -std is added to get
3456 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3457 array size at least. It's necessary to write '\x00'==0 to get something
3458 that's true only with -std. */
3459 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3461 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3462 inside strings and character constants. */
3464 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3466 int test (int i, double x);
3467 struct s1 {int (*f) (int a);};
3468 struct s2 {int (*f) (double a);};
3469 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3475 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3480 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3481 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3483 CC="$ac_save_CC $ac_arg"
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485 ac_cv_prog_cc_c89=$ac_arg
3487 rm -f core conftest.err conftest.$ac_objext
3488 test "x$ac_cv_prog_cc_c89" != "xno" && break
3490 rm -f conftest.$ac_ext
3495 case "x$ac_cv_prog_cc_c89" in
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3498 $as_echo "none needed" >&6; } ;;
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3501 $as_echo "unsupported" >&6; } ;;
3503 CC="$CC $ac_cv_prog_cc_c89"
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3505 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3507 if test "x$ac_cv_prog_cc_c89" != xno; then :
3512 ac_cpp='$CPP $CPPFLAGS'
3513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518 ac_cpp='$CXXCPP $CPPFLAGS'
3519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3522 if test -z "$CXX"; then
3523 if test -n "$CCC"; then
3526 if test -n "$ac_tool_prefix"; then
3527 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if ${ac_cv_prog_CXX+:} false; then :
3534 $as_echo_n "(cached) " >&6
3536 if test -n "$CXX"; then
3537 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 if test -n "$CXX"; then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3559 $as_echo "$CXX" >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3566 test -n "$CXX" && break
3569 if test -z "$CXX"; then
3571 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3573 # Extract the first word of "$ac_prog", so it can be a program name with args.
3574 set dummy $ac_prog; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3578 $as_echo_n "(cached) " >&6
3580 if test -n "$ac_ct_CXX"; then
3581 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3590 ac_cv_prog_ac_ct_CXX="$ac_prog"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3601 if test -n "$ac_ct_CXX"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3603 $as_echo "$ac_ct_CXX" >&6; }
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3610 test -n "$ac_ct_CXX" && break
3613 if test "x$ac_ct_CXX" = x; then
3616 case $cross_compiling:$ac_tool_warned in
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620 ac_tool_warned=yes ;;
3628 # Provide some information about the compiler.
3629 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3632 for ac_option in --version -v -V -qversion; do
3633 { { ac_try="$ac_compiler $ac_option >&5"
3635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3636 *) ac_try_echo
=$ac_try;;
3638 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3642 if test -s conftest.err
; then
3644 ... rest of stderr output deleted ...
3645 10q' conftest.err
>conftest.er1
3646 cat conftest.er1
>&5
3648 rm -f conftest.er1 conftest.err
3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650 test $ac_status = 0; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3654 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3655 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3656 $as_echo_n "(cached) " >&6
3658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3672 if ac_fn_cxx_try_compile
"$LINENO"; then :
3677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3678 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3682 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3683 if test $ac_compiler_gnu = yes; then
3688 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3689 ac_save_CXXFLAGS
=$CXXFLAGS
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3691 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3692 if ${ac_cv_prog_cxx_g+:} false
; then :
3693 $as_echo_n "(cached) " >&6
3695 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3696 ac_cxx_werror_flag
=yes
3699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3710 if ac_fn_cxx_try_compile
"$LINENO"; then :
3711 ac_cv_prog_cxx_g
=yes
3714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3725 if ac_fn_cxx_try_compile
"$LINENO"; then :
3728 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3741 if ac_fn_cxx_try_compile
"$LINENO"; then :
3742 ac_cv_prog_cxx_g
=yes
3744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3749 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3752 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3753 if test "$ac_test_CXXFLAGS" = set; then
3754 CXXFLAGS
=$ac_save_CXXFLAGS
3755 elif test $ac_cv_prog_cxx_g = yes; then
3756 if test "$GXX" = yes; then
3762 if test "$GXX" = yes; then
3769 ac_cpp
='$CPP $CPPFLAGS'
3770 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3776 ac_cpp
='$CPP $CPPFLAGS'
3777 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3778 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3779 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3781 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3782 # On Suns, sometimes $CPP names a directory.
3783 if test -n "$CPP" && test -d "$CPP"; then
3786 if test -z "$CPP"; then
3787 if ${ac_cv_prog_CPP+:} false
; then :
3788 $as_echo_n "(cached) " >&6
3790 # Double quotes because CPP needs to be expanded
3791 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3794 for ac_c_preproc_warn_flag
in '' yes
3796 # Use a header file that comes with gcc, so configuring glibc
3797 # with a fresh cross-compiler works.
3798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3799 # <limits.h> exists even on freestanding compilers.
3800 # On the NeXT, cc -E runs the code through the compiler's parser,
3801 # not just through cpp. "Syntax error" is here to catch this case.
3802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3805 # include <limits.h>
3807 # include <assert.h>
3811 if ac_fn_c_try_cpp
"$LINENO"; then :
3814 # Broken: fails on valid input.
3817 rm -f conftest.err conftest.i conftest.
$ac_ext
3819 # OK, works on sane cases. Now check whether nonexistent headers
3820 # can be detected and how.
3821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823 #include <ac_nonexistent.h>
3825 if ac_fn_c_try_cpp
"$LINENO"; then :
3826 # Broken: success on invalid input.
3829 # Passes both tests.
3833 rm -f conftest.err conftest.i conftest.
$ac_ext
3836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3837 rm -f conftest.i conftest.err conftest.
$ac_ext
3838 if $ac_preproc_ok; then :
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3851 $as_echo "$CPP" >&6; }
3853 for ac_c_preproc_warn_flag
in '' yes
3855 # Use a header file that comes with gcc, so configuring glibc
3856 # with a fresh cross-compiler works.
3857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3858 # <limits.h> exists even on freestanding compilers.
3859 # On the NeXT, cc -E runs the code through the compiler's parser,
3860 # not just through cpp. "Syntax error" is here to catch this case.
3861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3864 # include <limits.h>
3866 # include <assert.h>
3870 if ac_fn_c_try_cpp
"$LINENO"; then :
3873 # Broken: fails on valid input.
3876 rm -f conftest.err conftest.i conftest.
$ac_ext
3878 # OK, works on sane cases. Now check whether nonexistent headers
3879 # can be detected and how.
3880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882 #include <ac_nonexistent.h>
3884 if ac_fn_c_try_cpp
"$LINENO"; then :
3885 # Broken: success on invalid input.
3888 # Passes both tests.
3892 rm -f conftest.err conftest.i conftest.
$ac_ext
3895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3896 rm -f conftest.i conftest.err conftest.
$ac_ext
3897 if $ac_preproc_ok; then :
3900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3903 See \`config.log' for more details" "$LINENO" 5; }
3907 ac_cpp
='$CPP $CPPFLAGS'
3908 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3914 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3915 if ${ac_cv_path_GREP+:} false
; then :
3916 $as_echo_n "(cached) " >&6
3918 if test -z "$GREP"; then
3919 ac_path_GREP_found
=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3922 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3925 test -z "$as_dir" && as_dir
=.
3926 for ac_prog
in grep ggrep
; do
3927 for ac_exec_ext
in '' $ac_executable_extensions; do
3928 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3929 as_fn_executable_p
"$ac_path_GREP" ||
continue
3930 # Check for GNU ac_path_GREP and select it if it is found.
3931 # Check for GNU $ac_path_GREP
3932 case `"$ac_path_GREP" --version 2>&1` in
3934 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3937 $as_echo_n 0123456789 >"conftest.in"
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
3943 $as_echo 'GREP' >> "conftest.nl"
3944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3945 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3946 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_GREP
="$ac_path_GREP"
3950 ac_path_GREP_max
=$ac_count
3952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3955 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3958 $ac_path_GREP_found && break 3
3963 if test -z "$ac_cv_path_GREP"; then
3964 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3967 ac_cv_path_GREP
=$GREP
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3972 $as_echo "$ac_cv_path_GREP" >&6; }
3973 GREP
="$ac_cv_path_GREP"
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3977 $as_echo_n "checking for egrep... " >&6; }
3978 if ${ac_cv_path_EGREP+:} false
; then :
3979 $as_echo_n "(cached) " >&6
3981 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3982 then ac_cv_path_EGREP
="$GREP -E"
3984 if test -z "$EGREP"; then
3985 ac_path_EGREP_found
=false
3986 # Loop through the user's path and test for each of PROGNAME-LIST
3987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3988 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3991 test -z "$as_dir" && as_dir
=.
3992 for ac_prog
in egrep; do
3993 for ac_exec_ext
in '' $ac_executable_extensions; do
3994 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3995 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3996 # Check for GNU ac_path_EGREP and select it if it is found.
3997 # Check for GNU $ac_path_EGREP
3998 case `"$ac_path_EGREP" --version 2>&1` in
4000 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4003 $as_echo_n 0123456789 >"conftest.in"
4006 cat "conftest.in" "conftest.in" >"conftest.tmp"
4007 mv "conftest.tmp" "conftest.in"
4008 cp "conftest.in" "conftest.nl"
4009 $as_echo 'EGREP' >> "conftest.nl"
4010 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4011 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4012 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4013 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4014 # Best one so far, save it but keep looking for a better one
4015 ac_cv_path_EGREP
="$ac_path_EGREP"
4016 ac_path_EGREP_max
=$ac_count
4018 # 10*(2^10) chars as input seems more than enough
4019 test $ac_count -gt 10 && break
4021 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4024 $ac_path_EGREP_found && break 3
4029 if test -z "$ac_cv_path_EGREP"; then
4030 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4033 ac_cv_path_EGREP
=$EGREP
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4039 $as_echo "$ac_cv_path_EGREP" >&6; }
4040 EGREP
="$ac_cv_path_EGREP"
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4044 $as_echo_n "checking for ANSI C header files... " >&6; }
4045 if ${ac_cv_header_stdc+:} false
; then :
4046 $as_echo_n "(cached) " >&6
4048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4063 if ac_fn_c_try_compile
"$LINENO"; then :
4064 ac_cv_header_stdc
=yes
4066 ac_cv_header_stdc
=no
4068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4070 if test $ac_cv_header_stdc = yes; then
4071 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 $EGREP "memchr" >/dev
/null
2>&1; then :
4081 ac_cv_header_stdc
=no
4087 if test $ac_cv_header_stdc = yes; then
4088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095 $EGREP "free" >/dev
/null
2>&1; then :
4098 ac_cv_header_stdc
=no
4104 if test $ac_cv_header_stdc = yes; then
4105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4106 if test "$cross_compiling" = yes; then :
4109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4113 #if ((' ' & 0x0FF) == 0x020)
4114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4117 # define ISLOWER(c) \
4118 (('a' <= (c) && (c) <= 'i') \
4119 || ('j' <= (c) && (c) <= 'r') \
4120 || ('s' <= (c) && (c) <= 'z'))
4121 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4124 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4129 for (i = 0; i < 256; i++)
4130 if (XOR (islower (i), ISLOWER (i))
4131 || toupper (i) != TOUPPER (i))
4136 if ac_fn_c_try_run
"$LINENO"; then :
4139 ac_cv_header_stdc
=no
4141 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4142 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4148 $as_echo "$ac_cv_header_stdc" >&6; }
4149 if test $ac_cv_header_stdc = yes; then
4151 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4156 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4157 inttypes.h stdint.h unistd.h
4159 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4160 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4162 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4163 cat >>confdefs.h
<<_ACEOF
4164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4173 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4174 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4181 if test "$MINIX" = yes; then
4183 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4186 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4189 $as_echo "#define _MINIX 1" >>confdefs.h
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4195 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4196 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4197 $as_echo_n "(cached) " >&6
4199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4202 # define __EXTENSIONS__ 1
4203 $ac_includes_default
4212 if ac_fn_c_try_compile
"$LINENO"; then :
4213 ac_cv_safe_to_define___extensions__
=yes
4215 ac_cv_safe_to_define___extensions__
=no
4217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4220 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4221 test $ac_cv_safe_to_define___extensions__ = yes &&
4222 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4224 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4226 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4228 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4230 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4234 # Check whether --enable-largefile was given.
4235 if test "${enable_largefile+set}" = set; then :
4236 enableval
=$enable_largefile;
4239 if test "$enable_largefile" != no
; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4242 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4243 if ${ac_cv_sys_largefile_CC+:} false
; then :
4244 $as_echo_n "(cached) " >&6
4246 ac_cv_sys_largefile_CC
=no
4247 if test "$GCC" != yes; then
4250 # IRIX 6.2 and later do not support large files by default,
4251 # so use the C compiler's -n32 option if that helps.
4252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #include <sys/types.h>
4255 /* Check that off_t can represent 2**63 - 1 correctly.
4256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4257 since some C++ compilers masquerading as C compilers
4258 incorrectly reject 9223372036854775807. */
4259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4261 && LARGE_OFF_T % 2147483647 == 1)
4271 if ac_fn_c_try_compile
"$LINENO"; then :
4274 rm -f core conftest.err conftest.
$ac_objext
4276 if ac_fn_c_try_compile
"$LINENO"; then :
4277 ac_cv_sys_largefile_CC
=' -n32'; break
4279 rm -f core conftest.err conftest.
$ac_objext
4283 rm -f conftest.
$ac_ext
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4287 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4288 if test "$ac_cv_sys_largefile_CC" != no
; then
4289 CC
=$CC$ac_cv_sys_largefile_CC
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4293 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4294 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4295 $as_echo_n "(cached) " >&6
4298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #include <sys/types.h>
4301 /* Check that off_t can represent 2**63 - 1 correctly.
4302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4303 since some C++ compilers masquerading as C compilers
4304 incorrectly reject 9223372036854775807. */
4305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4307 && LARGE_OFF_T % 2147483647 == 1)
4317 if ac_fn_c_try_compile
"$LINENO"; then :
4318 ac_cv_sys_file_offset_bits
=no
; break
4320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4323 #define _FILE_OFFSET_BITS 64
4324 #include <sys/types.h>
4325 /* Check that off_t can represent 2**63 - 1 correctly.
4326 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4327 since some C++ compilers masquerading as C compilers
4328 incorrectly reject 9223372036854775807. */
4329 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4330 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4331 && LARGE_OFF_T % 2147483647 == 1)
4341 if ac_fn_c_try_compile
"$LINENO"; then :
4342 ac_cv_sys_file_offset_bits
=64; break
4344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4345 ac_cv_sys_file_offset_bits
=unknown
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4350 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4351 case $ac_cv_sys_file_offset_bits in #(
4354 cat >>confdefs.h
<<_ACEOF
4355 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4360 if test $ac_cv_sys_file_offset_bits = unknown
; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4362 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4363 if ${ac_cv_sys_large_files+:} false
; then :
4364 $as_echo_n "(cached) " >&6
4367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 #include <sys/types.h>
4370 /* Check that off_t can represent 2**63 - 1 correctly.
4371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4372 since some C++ compilers masquerading as C compilers
4373 incorrectly reject 9223372036854775807. */
4374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4376 && LARGE_OFF_T % 2147483647 == 1)
4386 if ac_fn_c_try_compile
"$LINENO"; then :
4387 ac_cv_sys_large_files
=no
; break
4389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392 #define _LARGE_FILES 1
4393 #include <sys/types.h>
4394 /* Check that off_t can represent 2**63 - 1 correctly.
4395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4396 since some C++ compilers masquerading as C compilers
4397 incorrectly reject 9223372036854775807. */
4398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4400 && LARGE_OFF_T % 2147483647 == 1)
4410 if ac_fn_c_try_compile
"$LINENO"; then :
4411 ac_cv_sys_large_files
=1; break
4413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4414 ac_cv_sys_large_files
=unknown
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4419 $as_echo "$ac_cv_sys_large_files" >&6; }
4420 case $ac_cv_sys_large_files in #(
4423 cat >>confdefs.h
<<_ACEOF
4424 #define _LARGE_FILES $ac_cv_sys_large_files
4435 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4436 if test -f "$ac_dir/install-sh"; then
4438 ac_install_sh
="$ac_aux_dir/install-sh -c"
4440 elif test -f "$ac_dir/install.sh"; then
4442 ac_install_sh
="$ac_aux_dir/install.sh -c"
4444 elif test -f "$ac_dir/shtool"; then
4446 ac_install_sh
="$ac_aux_dir/shtool install -c"
4450 if test -z "$ac_aux_dir"; then
4451 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4454 # These three variables are undocumented and unsupported,
4455 # and are intended to be withdrawn in a future Autoconf release.
4456 # They can cause serious problems if a builder's source tree is in a directory
4457 # whose full name contains unusual characters.
4458 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4459 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4460 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4463 # Expand $ac_aux_dir to an absolute path.
4464 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4466 if test x
"${install_sh+set}" != xset
; then
4469 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4471 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4475 # Installed binaries are usually stripped using 'strip' when the user
4476 # run "make install-strip". However 'strip' might not be the right
4477 # tool to use in cross-compilation environments, therefore Automake
4478 # will honor the 'STRIP' environment variable to overrule this program.
4479 if test "$cross_compiling" != no
; then
4480 if test -n "$ac_tool_prefix"; then
4481 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4482 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if ${ac_cv_prog_STRIP+:} false
; then :
4486 $as_echo_n "(cached) " >&6
4488 if test -n "$STRIP"; then
4489 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir
=.
4496 for ac_exec_ext
in '' $ac_executable_extensions; do
4497 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 STRIP
=$ac_cv_prog_STRIP
4509 if test -n "$STRIP"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4511 $as_echo "$STRIP" >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4519 if test -z "$ac_cv_prog_STRIP"; then
4521 # Extract the first word of "strip", so it can be a program name with args.
4522 set dummy strip
; ac_word
=$2
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4526 $as_echo_n "(cached) " >&6
4528 if test -n "$ac_ct_STRIP"; then
4529 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4535 test -z "$as_dir" && as_dir
=.
4536 for ac_exec_ext
in '' $ac_executable_extensions; do
4537 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4538 ac_cv_prog_ac_ct_STRIP
="strip"
4539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4549 if test -n "$ac_ct_STRIP"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4551 $as_echo "$ac_ct_STRIP" >&6; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554 $as_echo "no" >&6; }
4557 if test "x$ac_ct_STRIP" = x
; then
4560 case $cross_compiling:$ac_tool_warned in
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4564 ac_tool_warned
=yes ;;
4569 STRIP
="$ac_cv_prog_STRIP"
4573 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4576 # Make sure we can run config.sub.
4577 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4578 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4581 $as_echo_n "checking build system type... " >&6; }
4582 if ${ac_cv_build+:} false
; then :
4583 $as_echo_n "(cached) " >&6
4585 ac_build_alias
=$build_alias
4586 test "x$ac_build_alias" = x
&&
4587 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4588 test "x$ac_build_alias" = x
&&
4589 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4590 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4591 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4595 $as_echo "$ac_cv_build" >&6; }
4596 case $ac_cv_build in
4598 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4601 ac_save_IFS
=$IFS; IFS
='-'
4607 # Remember, the first character of IFS is used to create $*,
4608 # except with old shells:
4611 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4615 $as_echo_n "checking host system type... " >&6; }
4616 if ${ac_cv_host+:} false
; then :
4617 $as_echo_n "(cached) " >&6
4619 if test "x$host_alias" = x
; then
4620 ac_cv_host
=$ac_cv_build
4622 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4623 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4628 $as_echo "$ac_cv_host" >&6; }
4631 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4634 ac_save_IFS
=$IFS; IFS
='-'
4640 # Remember, the first character of IFS is used to create $*,
4641 # except with old shells:
4644 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4648 $as_echo_n "checking target system type... " >&6; }
4649 if ${ac_cv_target+:} false
; then :
4650 $as_echo_n "(cached) " >&6
4652 if test "x$target_alias" = x
; then
4653 ac_cv_target
=$ac_cv_host
4655 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4656 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4661 $as_echo "$ac_cv_target" >&6; }
4662 case $ac_cv_target in
4664 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4666 target
=$ac_cv_target
4667 ac_save_IFS
=$IFS; IFS
='-'
4673 # Remember, the first character of IFS is used to create $*,
4674 # except with old shells:
4677 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4680 # The aliases save the names the user supplied, while $host etc.
4681 # will get canonicalized.
4682 test -n "$target_alias" &&
4683 test "$program_prefix$program_suffix$program_transform_name" = \
4685 program_prefix
=${target_alias}-
4688 # Find a good install program. We prefer a C program (faster),
4689 # so one script is as good as another. But avoid the broken or
4690 # incompatible versions:
4691 # SysV /etc/install, /usr/sbin/install
4692 # SunOS /usr/etc/install
4693 # IRIX /sbin/install
4695 # AmigaOS /C/install, which installs bootblocks on floppy discs
4696 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4697 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4698 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4699 # OS/2's system install, which has a completely different semantic
4700 # ./install, which can be erroneously created by make from ./install.sh.
4701 # Reject install programs that cannot install multiple files.
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4703 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4704 if test -z "$INSTALL"; then
4705 if ${ac_cv_path_install+:} false
; then :
4706 $as_echo_n "(cached) " >&6
4708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir
=.
4713 # Account for people who put trailing slashes in PATH elements.
4714 case $as_dir/ in #((
4715 .
/ | .
// |
/[cC
]/* | \
4716 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4717 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4720 # OSF1 and SCO ODT 3.0 have their own names for install.
4721 # Don't use installbsd from OSF since it installs stuff as root
4723 for ac_prog
in ginstall scoinst
install; do
4724 for ac_exec_ext
in '' $ac_executable_extensions; do
4725 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4726 if test $ac_prog = install &&
4727 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4728 # AIX install. It has an incompatible calling convention.
4730 elif test $ac_prog = install &&
4731 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4732 # program-specific install script used by HP pwplus--don't use.
4735 rm -rf conftest.one conftest.two conftest.dir
4736 echo one
> conftest.one
4737 echo two
> conftest.two
4739 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4740 test -s conftest.one
&& test -s conftest.two
&&
4741 test -s conftest.dir
/conftest.one
&&
4742 test -s conftest.dir
/conftest.two
4744 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4757 rm -rf conftest.one conftest.two conftest.dir
4760 if test "${ac_cv_path_install+set}" = set; then
4761 INSTALL
=$ac_cv_path_install
4763 # As a last resort, use the slow shell script. Don't cache a
4764 # value for INSTALL within a source directory, because that will
4765 # break other packages using the cache if that directory is
4766 # removed, or if the value is a relative name.
4767 INSTALL
=$ac_install_sh
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4771 $as_echo "$INSTALL" >&6; }
4773 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4774 # It thinks the first close brace ends the variable substitution.
4775 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4777 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4779 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4781 if test -n "$ac_tool_prefix"; then
4782 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4783 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if ${ac_cv_prog_AR+:} false
; then :
4787 $as_echo_n "(cached) " >&6
4789 if test -n "$AR"; then
4790 ac_cv_prog_AR
="$AR" # Let the user override the test.
4792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir
=.
4797 for ac_exec_ext
in '' $ac_executable_extensions; do
4798 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 if test -n "$AR"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4812 $as_echo "$AR" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4820 if test -z "$ac_cv_prog_AR"; then
4822 # Extract the first word of "ar", so it can be a program name with args.
4823 set dummy
ar; ac_word
=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4827 $as_echo_n "(cached) " >&6
4829 if test -n "$ac_ct_AR"; then
4830 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir
=.
4837 for ac_exec_ext
in '' $ac_executable_extensions; do
4838 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4839 ac_cv_prog_ac_ct_AR
="ar"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4850 if test -n "$ac_ct_AR"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4852 $as_echo "$ac_ct_AR" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4858 if test "x$ac_ct_AR" = x
; then
4861 case $cross_compiling:$ac_tool_warned in
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4865 ac_tool_warned
=yes ;;
4873 if test -n "$ac_tool_prefix"; then
4874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4875 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if ${ac_cv_prog_RANLIB+:} false
; then :
4879 $as_echo_n "(cached) " >&6
4881 if test -n "$RANLIB"; then
4882 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4888 test -z "$as_dir" && as_dir
=.
4889 for ac_exec_ext
in '' $ac_executable_extensions; do
4890 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4891 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 RANLIB
=$ac_cv_prog_RANLIB
4902 if test -n "$RANLIB"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4904 $as_echo "$RANLIB" >&6; }
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4912 if test -z "$ac_cv_prog_RANLIB"; then
4913 ac_ct_RANLIB
=$RANLIB
4914 # Extract the first word of "ranlib", so it can be a program name with args.
4915 set dummy ranlib
; ac_word
=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4919 $as_echo_n "(cached) " >&6
4921 if test -n "$ac_ct_RANLIB"; then
4922 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4928 test -z "$as_dir" && as_dir
=.
4929 for ac_exec_ext
in '' $ac_executable_extensions; do
4930 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4942 if test -n "$ac_ct_RANLIB"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4944 $as_echo "$ac_ct_RANLIB" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4950 if test "x$ac_ct_RANLIB" = x
; then
4953 case $cross_compiling:$ac_tool_warned in
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957 ac_tool_warned
=yes ;;
4959 RANLIB
=$ac_ct_RANLIB
4962 RANLIB
="$ac_cv_prog_RANLIB"
4966 test "$program_prefix" != NONE
&&
4967 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4968 # Use a double $ so make ignores it.
4969 test "$program_suffix" != NONE
&&
4970 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4971 # Double any \ or $.
4972 # By default was `s,x,x', remove it if useless.
4973 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4974 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4977 # We require a C++11 compiler. Check if one is available, and if
4978 # necessary, set CXX_DIALECT to some -std=xxx switch.
4980 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
4982 ac_cpp
='$CXXCPP $CPPFLAGS'
4983 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4989 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4990 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
4991 $as_echo_n "(cached) " >&6
4993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4997 // If the compiler admits that it is not ready for C++11, why torture it?
4998 // Hopefully, this will speed up the test.
5002 #error "This is not a C++ compiler"
5004 #elif __cplusplus < 201103L
5006 #error "This is not a C++11 compiler"
5013 namespace test_static_assert
5016 template <typename T>
5019 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5024 namespace test_final_override
5032 struct Derived : public Base
5034 virtual void f() override {}
5039 namespace test_double_right_angle_brackets
5042 template < typename T >
5045 typedef check<void> single_type;
5046 typedef check<check<void>> double_type;
5047 typedef check<check<check<void>>> triple_type;
5048 typedef check<check<check<check<void>>>> quadruple_type;
5052 namespace test_decltype
5065 namespace test_type_deduction
5068 template < typename T1, typename T2 >
5071 static const bool value = false;
5074 template < typename T >
5075 struct is_same<T, T>
5077 static const bool value = true;
5080 template < typename T1, typename T2 >
5082 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5088 test(const int c, volatile int v)
5090 static_assert(is_same<int, decltype(0)>::value == true, "");
5091 static_assert(is_same<int, decltype(c)>::value == false, "");
5092 static_assert(is_same<int, decltype(v)>::value == false, "");
5095 auto sumi = ac + av + 'x';
5096 auto sumf = ac + av + 1.0;
5097 static_assert(is_same<int, decltype(ac)>::value == true, "");
5098 static_assert(is_same<int, decltype(av)>::value == true, "");
5099 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5100 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5101 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5102 return (sumf > 0.0) ? sumi : add(c, v);
5107 namespace test_noexcept
5110 int f() { return 0; }
5111 int g() noexcept { return 0; }
5113 static_assert(noexcept(f()) == false, "");
5114 static_assert(noexcept(g()) == true, "");
5118 namespace test_constexpr
5121 template < typename CharT >
5122 unsigned long constexpr
5123 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5125 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5128 template < typename CharT >
5129 unsigned long constexpr
5130 strlen_c(const CharT *const s) noexcept
5132 return strlen_c_r(s, 0UL);
5135 static_assert(strlen_c("") == 0UL, "");
5136 static_assert(strlen_c("1") == 1UL, "");
5137 static_assert(strlen_c("example") == 7UL, "");
5138 static_assert(strlen_c("another\0example") == 7UL, "");
5142 namespace test_rvalue_references
5148 static constexpr int value = N;
5151 answer<1> f(int&) { return answer<1>(); }
5152 answer<2> f(const int&) { return answer<2>(); }
5153 answer<3> f(int&&) { return answer<3>(); }
5160 static_assert(decltype(f(i))::value == 1, "");
5161 static_assert(decltype(f(c))::value == 2, "");
5162 static_assert(decltype(f(0))::value == 3, "");
5167 namespace test_uniform_initialization
5172 static const int zero {};
5173 static const int one {1};
5176 static_assert(test::zero == 0, "");
5177 static_assert(test::one == 1, "");
5181 namespace test_lambdas
5187 auto lambda1 = [](){};
5188 auto lambda2 = lambda1;
5196 auto a = [](int i, int j){ return i + j; }(1, 2);
5197 auto b = []() -> int { return '0'; }();
5198 auto c = [=](){ return a + b; }();
5199 auto d = [&](){ return c; }();
5200 auto e = [a, &b](int x) mutable {
5201 const auto identity = [](int y){ return y; };
5202 for (auto i = 0; i < a; ++i)
5204 return x + identity(a + b);
5206 return a + b + c + d + e;
5212 const auto nullary = [](){ return 0; };
5213 const auto unary = [](int x){ return x; };
5214 using nullary_t = decltype(nullary);
5215 using unary_t = decltype(unary);
5216 const auto higher1st = [](nullary_t f){ return f(); };
5217 const auto higher2nd = [unary](nullary_t f1){
5218 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5220 return higher1st(nullary) + higher2nd(nullary)(unary);
5225 namespace test_variadic_templates
5231 template <int N0, int... N1toN>
5232 struct sum<N0, N1toN...>
5234 static constexpr auto value = N0 + sum<N1toN...>::value;
5240 static constexpr auto value = 0;
5243 static_assert(sum<>::value == 0, "");
5244 static_assert(sum<1>::value == 1, "");
5245 static_assert(sum<23>::value == 23, "");
5246 static_assert(sum<1, 2>::value == 3, "");
5247 static_assert(sum<5, 5, 11>::value == 21, "");
5248 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5252 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5253 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5255 namespace test_template_alias_sfinae
5260 template<typename T>
5261 using member = typename T::member_type;
5263 template<typename T>
5266 template<typename T>
5267 void func(member<T>*) {}
5271 void test() { func<foo>(0); }
5275 } // namespace cxx11
5277 #endif // __cplusplus >= 201103L
5282 if ac_fn_cxx_try_compile
"$LINENO"; then :
5283 ax_cv_cxx_compile_cxx11
=yes
5285 ax_cv_cxx_compile_cxx11
=no
5287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5290 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5291 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5295 if test x
$ac_success = xno
; then
5296 for alternative
in ${ax_cxx_compile_alternatives}; do
5297 switch
="-std=gnu++${alternative}"
5298 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5300 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5301 if eval \
${$cachevar+:} false
; then :
5302 $as_echo_n "(cached) " >&6
5306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5310 // If the compiler admits that it is not ready for C++11, why torture it?
5311 // Hopefully, this will speed up the test.
5315 #error "This is not a C++ compiler"
5317 #elif __cplusplus < 201103L
5319 #error "This is not a C++11 compiler"
5326 namespace test_static_assert
5329 template <typename T>
5332 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5337 namespace test_final_override
5345 struct Derived : public Base
5347 virtual void f() override {}
5352 namespace test_double_right_angle_brackets
5355 template < typename T >
5358 typedef check<void> single_type;
5359 typedef check<check<void>> double_type;
5360 typedef check<check<check<void>>> triple_type;
5361 typedef check<check<check<check<void>>>> quadruple_type;
5365 namespace test_decltype
5378 namespace test_type_deduction
5381 template < typename T1, typename T2 >
5384 static const bool value = false;
5387 template < typename T >
5388 struct is_same<T, T>
5390 static const bool value = true;
5393 template < typename T1, typename T2 >
5395 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5401 test(const int c, volatile int v)
5403 static_assert(is_same<int, decltype(0)>::value == true, "");
5404 static_assert(is_same<int, decltype(c)>::value == false, "");
5405 static_assert(is_same<int, decltype(v)>::value == false, "");
5408 auto sumi = ac + av + 'x';
5409 auto sumf = ac + av + 1.0;
5410 static_assert(is_same<int, decltype(ac)>::value == true, "");
5411 static_assert(is_same<int, decltype(av)>::value == true, "");
5412 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5413 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5414 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5415 return (sumf > 0.0) ? sumi : add(c, v);
5420 namespace test_noexcept
5423 int f() { return 0; }
5424 int g() noexcept { return 0; }
5426 static_assert(noexcept(f()) == false, "");
5427 static_assert(noexcept(g()) == true, "");
5431 namespace test_constexpr
5434 template < typename CharT >
5435 unsigned long constexpr
5436 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5438 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5441 template < typename CharT >
5442 unsigned long constexpr
5443 strlen_c(const CharT *const s) noexcept
5445 return strlen_c_r(s, 0UL);
5448 static_assert(strlen_c("") == 0UL, "");
5449 static_assert(strlen_c("1") == 1UL, "");
5450 static_assert(strlen_c("example") == 7UL, "");
5451 static_assert(strlen_c("another\0example") == 7UL, "");
5455 namespace test_rvalue_references
5461 static constexpr int value = N;
5464 answer<1> f(int&) { return answer<1>(); }
5465 answer<2> f(const int&) { return answer<2>(); }
5466 answer<3> f(int&&) { return answer<3>(); }
5473 static_assert(decltype(f(i))::value == 1, "");
5474 static_assert(decltype(f(c))::value == 2, "");
5475 static_assert(decltype(f(0))::value == 3, "");
5480 namespace test_uniform_initialization
5485 static const int zero {};
5486 static const int one {1};
5489 static_assert(test::zero == 0, "");
5490 static_assert(test::one == 1, "");
5494 namespace test_lambdas
5500 auto lambda1 = [](){};
5501 auto lambda2 = lambda1;
5509 auto a = [](int i, int j){ return i + j; }(1, 2);
5510 auto b = []() -> int { return '0'; }();
5511 auto c = [=](){ return a + b; }();
5512 auto d = [&](){ return c; }();
5513 auto e = [a, &b](int x) mutable {
5514 const auto identity = [](int y){ return y; };
5515 for (auto i = 0; i < a; ++i)
5517 return x + identity(a + b);
5519 return a + b + c + d + e;
5525 const auto nullary = [](){ return 0; };
5526 const auto unary = [](int x){ return x; };
5527 using nullary_t = decltype(nullary);
5528 using unary_t = decltype(unary);
5529 const auto higher1st = [](nullary_t f){ return f(); };
5530 const auto higher2nd = [unary](nullary_t f1){
5531 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5533 return higher1st(nullary) + higher2nd(nullary)(unary);
5538 namespace test_variadic_templates
5544 template <int N0, int... N1toN>
5545 struct sum<N0, N1toN...>
5547 static constexpr auto value = N0 + sum<N1toN...>::value;
5553 static constexpr auto value = 0;
5556 static_assert(sum<>::value == 0, "");
5557 static_assert(sum<1>::value == 1, "");
5558 static_assert(sum<23>::value == 23, "");
5559 static_assert(sum<1, 2>::value == 3, "");
5560 static_assert(sum<5, 5, 11>::value == 21, "");
5561 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5565 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5566 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5568 namespace test_template_alias_sfinae
5573 template<typename T>
5574 using member = typename T::member_type;
5576 template<typename T>
5579 template<typename T>
5580 void func(member<T>*) {}
5584 void test() { func<foo>(0); }
5588 } // namespace cxx11
5590 #endif // __cplusplus >= 201103L
5595 if ac_fn_cxx_try_compile
"$LINENO"; then :
5600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5603 eval ac_res
=\$
$cachevar
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5605 $as_echo "$ac_res" >&6; }
5606 if eval test x\$
$cachevar = xyes
; then
5607 CXX_DIALECT
="$switch"
5614 if test x
$ac_success = xno
; then
5615 for alternative
in ${ax_cxx_compile_alternatives}; do
5616 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5617 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5619 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5620 if eval \${$cachevar+:} false; then :
5621 $as_echo_n "(cached
) " >&6
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5629 // If the compiler admits that it is not ready for C++11, why torture it?
5630 // Hopefully, this will speed up the test.
5634 #error "This is not a C
++ compiler
"
5636 #elif __cplusplus < 201103L
5638 #error "This is not a C
++11 compiler
"
5645 namespace test_static_assert
5648 template <typename T>
5651 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5656 namespace test_final_override
5664 struct Derived : public Base
5666 virtual void f() override {}
5671 namespace test_double_right_angle_brackets
5674 template < typename T >
5677 typedef check<void> single_type;
5678 typedef check<check<void>> double_type;
5679 typedef check<check<check<void>>> triple_type;
5680 typedef check<check<check<check<void>>>> quadruple_type;
5684 namespace test_decltype
5697 namespace test_type_deduction
5700 template < typename T1, typename T2 >
5703 static const bool value = false;
5706 template < typename T >
5707 struct is_same<T, T>
5709 static const bool value = true;
5712 template < typename T1, typename T2 >
5714 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5720 test(const int c, volatile int v)
5722 static_assert(is_same<int, decltype(0)>::value == true, "");
5723 static_assert(is_same<int, decltype(c)>::value == false, "");
5724 static_assert(is_same<int, decltype(v)>::value == false, "");
5727 auto sumi = ac + av + 'x';
5728 auto sumf = ac + av + 1.0;
5729 static_assert(is_same<int, decltype(ac)>::value == true, "");
5730 static_assert(is_same<int, decltype(av)>::value == true, "");
5731 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5732 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5733 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5734 return (sumf > 0.0) ? sumi : add(c, v);
5739 namespace test_noexcept
5742 int f() { return 0; }
5743 int g() noexcept { return 0; }
5745 static_assert(noexcept(f()) == false, "");
5746 static_assert(noexcept(g()) == true, "");
5750 namespace test_constexpr
5753 template < typename CharT >
5754 unsigned long constexpr
5755 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5757 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5760 template < typename CharT >
5761 unsigned long constexpr
5762 strlen_c(const CharT *const s) noexcept
5764 return strlen_c_r(s, 0UL);
5767 static_assert(strlen_c("") == 0UL, "");
5768 static_assert(strlen_c("1") == 1UL, "");
5769 static_assert(strlen_c("example
") == 7UL, "");
5770 static_assert(strlen_c("another\
0example
") == 7UL, "");
5774 namespace test_rvalue_references
5780 static constexpr int value = N;
5783 answer<1> f(int&) { return answer<1>(); }
5784 answer<2> f(const int&) { return answer<2>(); }
5785 answer<3> f(int&&) { return answer<3>(); }
5792 static_assert(decltype(f(i))::value == 1, "");
5793 static_assert(decltype(f(c))::value == 2, "");
5794 static_assert(decltype(f(0))::value == 3, "");
5799 namespace test_uniform_initialization
5804 static const int zero {};
5805 static const int one {1};
5808 static_assert(test::zero == 0, "");
5809 static_assert(test::one == 1, "");
5813 namespace test_lambdas
5819 auto lambda1 = [](){};
5820 auto lambda2 = lambda1;
5828 auto a = [](int i, int j){ return i + j; }(1, 2);
5829 auto b = []() -> int { return '0'; }();
5830 auto c = [=](){ return a + b; }();
5831 auto d = [&](){ return c; }();
5832 auto e = [a, &b](int x) mutable {
5833 const auto identity = [](int y){ return y; };
5834 for (auto i = 0; i < a; ++i)
5836 return x + identity(a + b);
5838 return a + b + c + d + e;
5844 const auto nullary = [](){ return 0; };
5845 const auto unary = [](int x){ return x; };
5846 using nullary_t = decltype(nullary);
5847 using unary_t = decltype(unary);
5848 const auto higher1st = [](nullary_t f){ return f(); };
5849 const auto higher2nd = [unary](nullary_t f1){
5850 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5852 return higher1st(nullary) + higher2nd(nullary)(unary);
5857 namespace test_variadic_templates
5863 template <int N0, int... N1toN>
5864 struct sum<N0, N1toN...>
5866 static constexpr auto value = N0 + sum<N1toN...>::value;
5872 static constexpr auto value = 0;
5875 static_assert(sum<>::value == 0, "");
5876 static_assert(sum<1>::value == 1, "");
5877 static_assert(sum<23>::value == 23, "");
5878 static_assert(sum<1, 2>::value == 3, "");
5879 static_assert(sum<5, 5, 11>::value == 21, "");
5880 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5884 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5885 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5887 namespace test_template_alias_sfinae
5892 template<typename T>
5893 using member = typename T::member_type;
5895 template<typename T>
5898 template<typename T>
5899 void func(member<T>*) {}
5903 void test() { func<foo>(0); }
5907 } // namespace cxx11
5909 #endif // __cplusplus >= 201103L
5914 if ac_fn_cxx_try_compile "$LINENO"; then :
5919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 eval ac_res=\$$cachevar
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5924 $as_echo "$ac_res" >&6; }
5925 if eval test x\$$cachevar = xyes; then
5926 CXX_DIALECT="$switch"
5931 if test x$ac_success = xyes; then
5937 ac_cpp='$CPP $CPPFLAGS'
5938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5942 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5943 if test x$ac_success = xno; then
5944 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
5947 if test x$ac_success = xno; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
5950 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
5954 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5962 $as_echo_n "checking for ANSI C header files... " >&6; }
5963 if ${ac_cv_header_stdc+:} false
; then :
5964 $as_echo_n "(cached) " >&6
5966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5981 if ac_fn_c_try_compile
"$LINENO"; then :
5982 ac_cv_header_stdc
=yes
5984 ac_cv_header_stdc
=no
5986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5988 if test $ac_cv_header_stdc = yes; then
5989 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5996 $EGREP "memchr" >/dev
/null
2>&1; then :
5999 ac_cv_header_stdc
=no
6005 if test $ac_cv_header_stdc = yes; then
6006 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 $EGREP "free" >/dev
/null
2>&1; then :
6016 ac_cv_header_stdc
=no
6022 if test $ac_cv_header_stdc = yes; then
6023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6024 if test "$cross_compiling" = yes; then :
6027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6031 #if ((' ' & 0x0FF) == 0x020)
6032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6035 # define ISLOWER(c) \
6036 (('a' <= (c) && (c) <= 'i') \
6037 || ('j' <= (c) && (c) <= 'r') \
6038 || ('s' <= (c) && (c) <= 'z'))
6039 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6047 for (i = 0; i < 256; i++)
6048 if (XOR (islower (i), ISLOWER (i))
6049 || toupper (i) != TOUPPER (i))
6054 if ac_fn_c_try_run
"$LINENO"; then :
6057 ac_cv_header_stdc
=no
6059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6066 $as_echo "$ac_cv_header_stdc" >&6; }
6067 if test $ac_cv_header_stdc = yes; then
6069 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6074 # Set the 'development' global.
6075 .
$srcdir/..
/..
/bfd
/development.sh
6078 # Check whether we will enable the inclusion of unit tests when
6081 # The default value of this option changes depending whether we're on
6082 # development mode (in which case it's "true") or not (in which case
6084 # Check whether --enable-unit-tests was given.
6085 if test "${enable_unit_tests+set}" = set; then :
6086 enableval
=$enable_unit_tests; case "${enableval}" in
6087 yes) enable_unittests
=true
;;
6088 no
) enable_unittests
=false
;;
6089 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
6092 enable_unittests
=$development
6096 if $enable_unittests; then
6098 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
6101 srv_selftest_objs
="gdbsupport/selftest.o"
6106 case ${build_alias} in
6107 "") build_noncanonical
=${build} ;;
6108 *) build_noncanonical
=${build_alias} ;;
6111 case ${host_alias} in
6112 "") host_noncanonical
=${build_noncanonical} ;;
6113 *) host_noncanonical
=${host_alias} ;;
6116 case ${target_alias} in
6117 "") target_noncanonical
=${host_noncanonical} ;;
6118 *) target_noncanonical
=${target_alias} ;;
6126 # Dependency checking.
6127 rm -rf .tst
2>/dev
/null
6128 mkdir .tst
2>/dev
/null
6129 if test -d .tst
; then
6134 rmdir .tst
2>/dev
/null
6136 DEPDIR
="${am__leading_dot}deps"
6138 ac_config_commands
="$ac_config_commands depdir"
6142 # Create sub-directories for objects and dependencies.
6143 CONFIG_SRC_SUBDIR
="arch gdbsupport nat target"
6146 ac_config_commands
="$ac_config_commands gdbdepdir"
6149 depcc
="$CC" am_compiler_list
=
6151 am_depcomp
=$ac_aux_dir/depcomp
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6153 $as_echo_n "checking dependency style of $depcc... " >&6; }
6154 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6155 $as_echo_n "(cached) " >&6
6157 if test -f "$am_depcomp"; then
6158 # We make a subdir and do the tests there. Otherwise we can end up
6159 # making bogus files that we don't know about and never remove. For
6160 # instance it was reported that on HP-UX the gcc test will end up
6161 # making a dummy file named `D' -- because `-MD' means `put the output
6164 # Copy depcomp to subdir because otherwise we won't find it if we're
6165 # using a relative directory.
6166 cp "$am_depcomp" conftest.dir
6168 # We will build objects and dependencies in a subdirectory because
6169 # it helps to detect inapplicable dependency modes. For instance
6170 # both Tru64's cc and ICC support -MD to output dependencies as a
6171 # side effect of compilation, but ICC will put the dependencies in
6172 # the current directory while Tru64 will put them in the object
6176 am_cv_CC_dependencies_compiler_type
=none
6177 if test "$am_compiler_list" = ""; then
6178 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6180 for depmode
in $am_compiler_list; do
6181 if test $depmode = none
; then break; fi
6183 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6184 # Setup a source with many dependencies, because some compilers
6185 # like to wrap large dependency lists on column 80 (with \), and
6186 # we should not choose a depcomp mode which is confused by this.
6188 # We need to recreate these files for each test, as the compiler may
6189 # overwrite some of them when testing with obscure command lines.
6190 # This happens at least with the AIX C compiler.
6192 for i
in 1 2 3 4 5 6; do
6193 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6195 # Solaris 8's {/usr,}/bin/sh.
6196 touch sub
/conftst
$i.h
6198 echo "include sub/conftest.Po" > confmf
6200 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6201 # mode. It turns out that the SunPro C++ compiler does not properly
6202 # handle `-M -o', and we need to detect this.
6203 depcmd
="depmode=$depmode \
6204 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6205 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6206 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6207 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6208 if env
$depcmd > conftest.err
2>&1 &&
6209 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6210 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6211 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6212 # icc doesn't choke on unknown options, it will just issue warnings
6213 # or remarks (even with -Werror). So we grep stderr for any message
6214 # that says an option was ignored or not supported.
6215 # When given -MP, icc 7.0 and 7.1 complain thusly:
6216 # icc: Command line warning: ignoring option '-M'; no argument required
6217 # The diagnosis changed in icc 8.0:
6218 # icc: Command line remark: option '-MP' not supported
6219 if (grep 'ignoring option' conftest.err ||
6220 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6221 am_cv_CC_dependencies_compiler_type
=$depmode
6222 $as_echo "$as_me:$LINENO: success" >&5
6226 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6227 sed -e 's/^/| /' < conftest.err
>&5
6233 am_cv_CC_dependencies_compiler_type
=none
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6238 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6239 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6240 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6241 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6246 gnulib_extra_configure_args
=
6247 # If large-file support is disabled, make sure gnulib does the same.
6248 if test "$enable_largefile" = no
; then
6249 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6252 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
6253 # to find the the source subdir to be configured directly under
6254 # gdbserver/. We need to build gnulib under some other directory not
6255 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
6256 # build it in the same directory, when building in the source dir.
6258 in_src
="../../gnulib"
6259 in_build
="build-gnulib-gdbserver"
6260 in_extra_args
="$gnulib_extra_configure_args"
6262 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6263 # so they do not pile up.
6264 ac_sub_configure_args
=
6266 eval "set x $ac_configure_args"
6270 if test -n "$ac_prev"; then
6275 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6276 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6277 ac_prev
=cache_file
;;
6278 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6279 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6282 --config-cache |
-C)
6284 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6286 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6288 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6290 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6292 --disable-option-checking)
6296 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6298 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6302 # Always prepend --prefix to ensure using the same prefix
6303 # in subdir configurations.
6304 ac_arg
="--prefix=$prefix"
6306 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6308 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6311 if test "$silent" = yes; then
6312 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6315 # Always prepend --disable-option-checking to silence warnings, since
6316 # different subdirs can have different --enable and --with options.
6317 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6322 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6324 $as_echo "$ac_msg" >&6
6325 as_dir
="$ac_dir"; as_fn_mkdir_p
6329 ac_srcdir
=$srcdir/$in_src ;;
6331 ac_srcdir
=..
/$srcdir/$in_src ;;
6336 ac_sub_configure
=$ac_srcdir/configure
6338 # Make the cache file name correct relative to the subdirectory.
6340 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6342 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6345 if test -n "$in_extra_args"; then
6346 # Add the extra args at the end.
6347 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6351 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6352 # The eval makes quoting arguments work.
6353 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6354 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6355 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6361 in_src
="../../libiberty"
6362 in_build
="build-libiberty-gdbserver"
6365 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6366 # so they do not pile up.
6367 ac_sub_configure_args
=
6369 eval "set x $ac_configure_args"
6373 if test -n "$ac_prev"; then
6378 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6379 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6380 ac_prev
=cache_file
;;
6381 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6382 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6385 --config-cache |
-C)
6387 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6389 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6391 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6393 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6395 --disable-option-checking)
6399 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6401 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6405 # Always prepend --prefix to ensure using the same prefix
6406 # in subdir configurations.
6407 ac_arg
="--prefix=$prefix"
6409 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6411 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6414 if test "$silent" = yes; then
6415 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6418 # Always prepend --disable-option-checking to silence warnings, since
6419 # different subdirs can have different --enable and --with options.
6420 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6425 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6427 $as_echo "$ac_msg" >&6
6428 as_dir
="$ac_dir"; as_fn_mkdir_p
6432 ac_srcdir
=$srcdir/$in_src ;;
6434 ac_srcdir
=..
/$srcdir/$in_src ;;
6439 ac_sub_configure
=$ac_srcdir/configure
6441 # Make the cache file name correct relative to the subdirectory.
6443 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6445 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6448 if test -n "$in_extra_args"; then
6449 # Add the extra args at the end.
6450 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6454 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6455 # The eval makes quoting arguments work.
6456 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6457 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6458 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6463 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
6465 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6466 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6467 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6468 cat >>confdefs.h
<<_ACEOF
6469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6476 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6477 if test "x$ac_cv_type_pid_t" = xyes
; then :
6481 cat >>confdefs.h
<<_ACEOF
6487 for ac_header
in vfork.h
6489 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6490 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6491 cat >>confdefs.h
<<_ACEOF
6492 #define HAVE_VFORK_H 1
6499 for ac_func
in fork vfork
6501 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6502 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6503 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6504 cat >>confdefs.h
<<_ACEOF
6505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6511 if test "x$ac_cv_func_fork" = xyes
; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6513 $as_echo_n "checking for working fork... " >&6; }
6514 if ${ac_cv_func_fork_works+:} false
; then :
6515 $as_echo_n "(cached) " >&6
6517 if test "$cross_compiling" = yes; then :
6518 ac_cv_func_fork_works
=cross
6520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 $ac_includes_default
6527 /* By Ruediger Kuhlmann. */
6534 if ac_fn_c_try_run
"$LINENO"; then :
6535 ac_cv_func_fork_works
=yes
6537 ac_cv_func_fork_works
=no
6539 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6540 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6545 $as_echo "$ac_cv_func_fork_works" >&6; }
6548 ac_cv_func_fork_works
=$ac_cv_func_fork
6550 if test "x$ac_cv_func_fork_works" = xcross
; then
6552 *-*-amigaos* |
*-*-msdosdjgpp*)
6553 # Override, as these systems have only a dummy fork() stub
6554 ac_cv_func_fork_works
=no
6557 ac_cv_func_fork_works
=yes
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6561 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6563 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6564 if test "x$ac_cv_func_vfork" = xyes
; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6566 $as_echo_n "checking for working vfork... " >&6; }
6567 if ${ac_cv_func_vfork_works+:} false
; then :
6568 $as_echo_n "(cached) " >&6
6570 if test "$cross_compiling" = yes; then :
6571 ac_cv_func_vfork_works
=cross
6573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 /* Thanks to Paul Eggert for this test. */
6576 $ac_includes_default
6577 #include <sys/wait.h>
6581 /* On some sparc systems, changes by the child to local and incoming
6582 argument registers are propagated back to the parent. The compiler
6583 is told about this with #include <vfork.h>, but some compilers
6584 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6585 static variable whose address is put into a register that is
6586 clobbered by the vfork. */
6589 sparc_address_test (int arg)
6591 sparc_address_test (arg) int arg;
6612 pid_t parent = getpid ();
6615 sparc_address_test (0);
6620 /* Here is another test for sparc vfork register problems. This
6621 test uses lots of local variables, at least as many local
6622 variables as main has allocated so far including compiler
6623 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6624 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6625 reuse the register of parent for one of the local variables,
6626 since it will think that parent can't possibly be used any more
6627 in this routine. Assigning to the local variable will thus
6628 munge parent in the parent process. */
6630 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6631 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6632 /* Convince the compiler that p..p7 are live; otherwise, it might
6633 use the same hardware register for all 8 local variables. */
6634 if (p != p1 || p != p2 || p != p3 || p != p4
6635 || p != p5 || p != p6 || p != p7)
6638 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6639 from child file descriptors. If the child closes a descriptor
6640 before it execs or exits, this munges the parent's descriptor
6641 as well. Test for this by closing stdout in the child. */
6642 _exit(close(fileno(stdout)) != 0);
6647 while (wait(&status) != child)
6650 /* Was there some problem with vforking? */
6653 /* Did the child fail? (This shouldn't happen.) */
6656 /* Did the vfork/compiler bug occur? */
6657 || parent != getpid()
6659 /* Did the file descriptor bug occur? */
6660 || fstat(fileno(stdout), &st) != 0
6665 if ac_fn_c_try_run
"$LINENO"; then :
6666 ac_cv_func_vfork_works
=yes
6668 ac_cv_func_vfork_works
=no
6670 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6671 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6676 $as_echo "$ac_cv_func_vfork_works" >&6; }
6679 if test "x$ac_cv_func_fork_works" = xcross
; then
6680 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6682 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6685 if test "x$ac_cv_func_vfork_works" = xyes
; then
6687 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6691 $as_echo "#define vfork fork" >>confdefs.h
6694 if test "x$ac_cv_func_fork_works" = xyes
; then
6696 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6700 for ac_func
in pread pwrite pread64
6702 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6703 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6704 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6705 cat >>confdefs.h
<<_ACEOF
6706 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6713 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6714 if test "x$ac_cv_type_size_t" = xyes
; then :
6718 cat >>confdefs.h
<<_ACEOF
6719 #define size_t unsigned int
6727 for ac_header
in $ac_header_list
6729 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6730 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6732 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6733 cat >>confdefs.h
<<_ACEOF
6734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6748 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6749 if ${ac_cv_path_SED+:} false
; then :
6750 $as_echo_n "(cached) " >&6
6752 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6753 for ac_i
in 1 2 3 4 5 6 7; do
6754 ac_script
="$ac_script$as_nl$ac_script"
6756 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
6757 { ac_script
=; unset ac_script
;}
6758 if test -z "$SED"; then
6759 ac_path_SED_found
=false
6760 # Loop through the user's path and test for each of PROGNAME-LIST
6761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6765 test -z "$as_dir" && as_dir
=.
6766 for ac_prog
in sed gsed
; do
6767 for ac_exec_ext
in '' $ac_executable_extensions; do
6768 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6769 as_fn_executable_p
"$ac_path_SED" ||
continue
6770 # Check for GNU ac_path_SED and select it if it is found.
6771 # Check for GNU $ac_path_SED
6772 case `"$ac_path_SED" --version 2>&1` in
6774 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6777 $as_echo_n 0123456789 >"conftest.in"
6780 cat "conftest.in" "conftest.in" >"conftest.tmp"
6781 mv "conftest.tmp" "conftest.in"
6782 cp "conftest.in" "conftest.nl"
6783 $as_echo '' >> "conftest.nl"
6784 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6785 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6786 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6787 if test $ac_count -gt ${ac_path_SED_max-0}; then
6788 # Best one so far, save it but keep looking for a better one
6789 ac_cv_path_SED
="$ac_path_SED"
6790 ac_path_SED_max
=$ac_count
6792 # 10*(2^10) chars as input seems more than enough
6793 test $ac_count -gt 10 && break
6795 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6798 $ac_path_SED_found && break 3
6803 if test -z "$ac_cv_path_SED"; then
6804 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6812 $as_echo "$ac_cv_path_SED" >&6; }
6813 SED
="$ac_cv_path_SED"
6817 if test "X$prefix" = "XNONE"; then
6818 acl_final_prefix
="$ac_default_prefix"
6820 acl_final_prefix
="$prefix"
6822 if test "X$exec_prefix" = "XNONE"; then
6823 acl_final_exec_prefix
='${prefix}'
6825 acl_final_exec_prefix
="$exec_prefix"
6827 acl_save_prefix
="$prefix"
6828 prefix
="$acl_final_prefix"
6829 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6830 prefix
="$acl_save_prefix"
6833 # Check whether --with-gnu-ld was given.
6834 if test "${with_gnu_ld+set}" = set; then :
6835 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6840 # Prepare PATH_SEPARATOR.
6841 # The user is always right.
6842 if test "${PATH_SEPARATOR+set}" != set; then
6843 echo "#! /bin/sh" >conf$$.sh
6844 echo "exit 0" >>conf$$.sh
6846 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6854 if test "$GCC" = yes; then
6855 # Check if gcc -print-prog-name=ld gives a path.
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6857 $as_echo_n "checking for ld used by GCC... " >&6; }
6860 # gcc leaves a trailing carriage return which upsets mingw
6861 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6863 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6866 # Accept absolute paths.
6867 [\\/]* |
[A-Za-z
]:[\\/]*)
6868 re_direlt
='/[^/][^/]*/\.\./'
6869 # Canonicalize the path of ld
6870 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6871 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6872 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6874 test -z "$LD" && LD
="$ac_prog"
6877 # If it fails, then pretend we aren't using GCC.
6881 # If it is relative, then search for the first ld in PATH.
6885 elif test "$with_gnu_ld" = yes; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6887 $as_echo_n "checking for GNU ld... " >&6; }
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6890 $as_echo_n "checking for non-GNU ld... " >&6; }
6892 if ${acl_cv_path_LD+:} false
; then :
6893 $as_echo_n "(cached) " >&6
6895 if test -z "$LD"; then
6896 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6897 for ac_dir
in $PATH; do
6898 test -z "$ac_dir" && ac_dir
=.
6899 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6900 acl_cv_path_LD
="$ac_dir/$ac_prog"
6901 # Check to see if the program is GNU ld. I'd rather use --version,
6902 # but apparently some GNU ld's only accept -v.
6903 # Break only if it was the GNU/non-GNU ld that we prefer.
6904 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6905 test "$with_gnu_ld" != no
&& break
6907 test "$with_gnu_ld" != yes && break
6913 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6917 LD
="$acl_cv_path_LD"
6918 if test -n "$LD"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6920 $as_echo "$LD" >&6; }
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6925 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6927 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6928 if ${acl_cv_prog_gnu_ld+:} false
; then :
6929 $as_echo_n "(cached) " >&6
6931 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6932 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6933 acl_cv_prog_gnu_ld
=yes
6935 acl_cv_prog_gnu_ld
=no
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6939 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6940 with_gnu_ld
=$acl_cv_prog_gnu_ld
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6945 $as_echo_n "checking for shared library run path origin... " >&6; }
6946 if ${acl_cv_rpath+:} false
; then :
6947 $as_echo_n "(cached) " >&6
6950 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6951 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6958 $as_echo "$acl_cv_rpath" >&6; }
6960 libext
="$acl_cv_libext"
6961 shlibext
="$acl_cv_shlibext"
6962 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6963 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6964 hardcode_direct
="$acl_cv_hardcode_direct"
6965 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6966 # Check whether --enable-rpath was given.
6967 if test "${enable_rpath+set}" = set; then :
6968 enableval
=$enable_rpath; :
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6976 $as_echo_n "checking for ANSI C header files... " >&6; }
6977 if ${ac_cv_header_stdc+:} false
; then :
6978 $as_echo_n "(cached) " >&6
6980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6995 if ac_fn_c_try_compile
"$LINENO"; then :
6996 ac_cv_header_stdc
=yes
6998 ac_cv_header_stdc
=no
7000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7002 if test $ac_cv_header_stdc = yes; then
7003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "memchr" >/dev
/null
2>&1; then :
7013 ac_cv_header_stdc
=no
7019 if test $ac_cv_header_stdc = yes; then
7020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7027 $EGREP "free" >/dev
/null
2>&1; then :
7030 ac_cv_header_stdc
=no
7036 if test $ac_cv_header_stdc = yes; then
7037 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7038 if test "$cross_compiling" = yes; then :
7041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7045 #if ((' ' & 0x0FF) == 0x020)
7046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7049 # define ISLOWER(c) \
7050 (('a' <= (c) && (c) <= 'i') \
7051 || ('j' <= (c) && (c) <= 'r') \
7052 || ('s' <= (c) && (c) <= 'z'))
7053 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7061 for (i = 0; i < 256; i++)
7062 if (XOR (islower (i), ISLOWER (i))
7063 || toupper (i) != TOUPPER (i))
7068 if ac_fn_c_try_run
"$LINENO"; then :
7071 ac_cv_header_stdc
=no
7073 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7074 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7080 $as_echo "$ac_cv_header_stdc" >&6; }
7081 if test $ac_cv_header_stdc = yes; then
7083 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7087 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7088 # for constant arguments. Useless!
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7090 $as_echo_n "checking for working alloca.h... " >&6; }
7091 if ${ac_cv_working_alloca_h+:} false
; then :
7092 $as_echo_n "(cached) " >&6
7094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7100 char *p = (char *) alloca (2 * sizeof (int));
7106 if ac_fn_c_try_link
"$LINENO"; then :
7107 ac_cv_working_alloca_h
=yes
7109 ac_cv_working_alloca_h
=no
7111 rm -f core conftest.err conftest.
$ac_objext \
7112 conftest
$ac_exeext conftest.
$ac_ext
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7115 $as_echo "$ac_cv_working_alloca_h" >&6; }
7116 if test $ac_cv_working_alloca_h = yes; then
7118 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7123 $as_echo_n "checking for alloca... " >&6; }
7124 if ${ac_cv_func_alloca_works+:} false
; then :
7125 $as_echo_n "(cached) " >&6
7127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7130 # define alloca __builtin_alloca
7133 # include <malloc.h>
7134 # define alloca _alloca
7136 # ifdef HAVE_ALLOCA_H
7137 # include <alloca.h>
7142 # ifndef alloca /* predefined by HP cc +Olibcalls */
7143 void *alloca (size_t);
7153 char *p = (char *) alloca (1);
7159 if ac_fn_c_try_link
"$LINENO"; then :
7160 ac_cv_func_alloca_works
=yes
7162 ac_cv_func_alloca_works
=no
7164 rm -f core conftest.err conftest.
$ac_objext \
7165 conftest
$ac_exeext conftest.
$ac_ext
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7168 $as_echo "$ac_cv_func_alloca_works" >&6; }
7170 if test $ac_cv_func_alloca_works = yes; then
7172 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7175 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7176 # that cause trouble. Some versions do not even contain alloca or
7177 # contain a buggy version. If you still want to use their alloca,
7178 # use ar to extract alloca.o from them instead of compiling alloca.c.
7180 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7182 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7186 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7187 if ${ac_cv_os_cray+:} false
; then :
7188 $as_echo_n "(cached) " >&6
7190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #if defined CRAY && ! defined CRAY2
7199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7200 $EGREP "webecray" >/dev
/null
2>&1; then :
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7209 $as_echo "$ac_cv_os_cray" >&6; }
7210 if test $ac_cv_os_cray = yes; then
7211 for ac_func
in _getb67 GETB67 getb67
; do
7212 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7213 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7214 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7216 cat >>confdefs.h
<<_ACEOF
7217 #define CRAY_STACKSEG_END $ac_func
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7227 $as_echo_n "checking stack direction for C alloca... " >&6; }
7228 if ${ac_cv_c_stack_direction+:} false
; then :
7229 $as_echo_n "(cached) " >&6
7231 if test "$cross_compiling" = yes; then :
7232 ac_cv_c_stack_direction
=0
7234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236 $ac_includes_default
7238 find_stack_direction (int *addr, int depth)
7243 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7244 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7249 main (int argc, char **argv)
7251 return find_stack_direction (0, argc + !argv + 20) < 0;
7254 if ac_fn_c_try_run
"$LINENO"; then :
7255 ac_cv_c_stack_direction
=1
7257 ac_cv_c_stack_direction
=-1
7259 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7260 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7265 $as_echo "$ac_cv_c_stack_direction" >&6; }
7266 cat >>confdefs.h
<<_ACEOF
7267 #define STACK_DIRECTION $ac_cv_c_stack_direction
7278 $as_echo "#define USE_WIN32API 1" >>confdefs.h
7280 WIN32APILIBS
="-lws2_32"
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7286 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7287 if ${am_cv_langinfo_codeset+:} false
; then :
7288 $as_echo_n "(cached) " >&6
7290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292 #include <langinfo.h>
7296 char* cs = nl_langinfo(CODESET);
7301 if ac_fn_c_try_link
"$LINENO"; then :
7302 am_cv_langinfo_codeset
=yes
7304 am_cv_langinfo_codeset
=no
7306 rm -f core conftest.err conftest.
$ac_objext \
7307 conftest
$ac_exeext conftest.
$ac_ext
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7311 $as_echo "$am_cv_langinfo_codeset" >&6; }
7312 if test $am_cv_langinfo_codeset = yes; then
7314 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7319 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 sys
/procfs.h proc_service.h
7321 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7322 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7323 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7324 cat >>confdefs.h
<<_ACEOF
7325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7334 for ac_func
in getpagesize
7336 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7337 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7338 cat >>confdefs.h
<<_ACEOF
7339 #define HAVE_GETPAGESIZE 1
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7346 $as_echo_n "checking for working mmap... " >&6; }
7347 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7348 $as_echo_n "(cached) " >&6
7350 if test "$cross_compiling" = yes; then :
7351 ac_cv_func_mmap_fixed_mapped
=no
7353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 $ac_includes_default
7356 /* malloc might have been renamed as rpl_malloc. */
7359 /* Thanks to Mike Haertel and Jim Avera for this test.
7360 Here is a matrix of mmap possibilities:
7361 mmap private not fixed
7362 mmap private fixed at somewhere currently unmapped
7363 mmap private fixed at somewhere already mapped
7364 mmap shared not fixed
7365 mmap shared fixed at somewhere currently unmapped
7366 mmap shared fixed at somewhere already mapped
7367 For private mappings, we should verify that changes cannot be read()
7368 back from the file, nor mmap's back from the file at a different
7369 address. (There have been systems where private was not correctly
7370 implemented like the infamous i386 svr4.0, and systems where the
7371 VM page cache was not coherent with the file system buffer cache
7372 like early versions of FreeBSD and possibly contemporary NetBSD.)
7373 For shared mappings, we should conversely verify that changes get
7374 propagated back to all the places they're supposed to be.
7376 Grep wants private fixed already mapped.
7377 The main things grep needs to know about mmap are:
7378 * does it exist and is it safe to write into the mmap'd area
7379 * how to use it (BSD variants) */
7382 #include <sys/mman.h>
7384 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7388 /* This mess was copied from the GNU getpagesize.h. */
7389 #ifndef HAVE_GETPAGESIZE
7390 # ifdef _SC_PAGESIZE
7391 # define getpagesize() sysconf(_SC_PAGESIZE)
7392 # else /* no _SC_PAGESIZE */
7393 # ifdef HAVE_SYS_PARAM_H
7394 # include <sys/param.h>
7395 # ifdef EXEC_PAGESIZE
7396 # define getpagesize() EXEC_PAGESIZE
7397 # else /* no EXEC_PAGESIZE */
7399 # define getpagesize() NBPG * CLSIZE
7402 # endif /* no CLSIZE */
7403 # else /* no NBPG */
7405 # define getpagesize() NBPC
7406 # else /* no NBPC */
7408 # define getpagesize() PAGESIZE
7409 # endif /* PAGESIZE */
7410 # endif /* no NBPC */
7411 # endif /* no NBPG */
7412 # endif /* no EXEC_PAGESIZE */
7413 # else /* no HAVE_SYS_PARAM_H */
7414 # define getpagesize() 8192 /* punt totally */
7415 # endif /* no HAVE_SYS_PARAM_H */
7416 # endif /* no _SC_PAGESIZE */
7418 #endif /* no HAVE_GETPAGESIZE */
7423 char *data, *data2, *data3;
7428 pagesize = getpagesize ();
7430 /* First, make a file with some known garbage in it. */
7431 data = (char *) malloc (pagesize);
7434 for (i = 0; i < pagesize; ++i)
7435 *(data + i) = rand ();
7437 fd = creat ("conftest.mmap", 0600);
7440 if (write (fd, data, pagesize) != pagesize)
7444 /* Next, check that the tail of a page is zero-filled. File must have
7445 non-zero length, otherwise we risk SIGBUS for entire page. */
7446 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7450 if (write (fd2, cdata2, 1) != 1)
7452 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7453 if (data2 == MAP_FAILED)
7455 for (i = 0; i < pagesize; ++i)
7459 if (munmap (data2, pagesize))
7462 /* Next, try to mmap the file at a fixed address which already has
7463 something else allocated at it. If we can, also make sure that
7464 we see the same garbage. */
7465 fd = open ("conftest.mmap", O_RDWR);
7468 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7469 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7471 for (i = 0; i < pagesize; ++i)
7472 if (*(data + i) != *(data2 + i))
7475 /* Finally, make sure that changes to the mapped area do not
7476 percolate back to the file as seen by read(). (This is a bug on
7477 some variants of i386 svr4.0.) */
7478 for (i = 0; i < pagesize; ++i)
7479 *(data2 + i) = *(data2 + i) + 1;
7480 data3 = (char *) malloc (pagesize);
7483 if (read (fd, data3, pagesize) != pagesize)
7485 for (i = 0; i < pagesize; ++i)
7486 if (*(data + i) != *(data3 + i))
7492 if ac_fn_c_try_run
"$LINENO"; then :
7493 ac_cv_func_mmap_fixed_mapped
=yes
7495 ac_cv_func_mmap_fixed_mapped
=no
7497 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7498 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7503 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7504 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7506 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7509 rm -f conftest.mmap conftest.txt
7511 for ac_header
in vfork.h
7513 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7514 if test "x$ac_cv_header_vfork_h" = xyes
; then :
7515 cat >>confdefs.h
<<_ACEOF
7516 #define HAVE_VFORK_H 1
7523 for ac_func
in fork vfork
7525 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7526 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7527 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7528 cat >>confdefs.h
<<_ACEOF
7529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7535 if test "x$ac_cv_func_fork" = xyes
; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7537 $as_echo_n "checking for working fork... " >&6; }
7538 if ${ac_cv_func_fork_works+:} false
; then :
7539 $as_echo_n "(cached) " >&6
7541 if test "$cross_compiling" = yes; then :
7542 ac_cv_func_fork_works
=cross
7544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 $ac_includes_default
7551 /* By Ruediger Kuhlmann. */
7558 if ac_fn_c_try_run
"$LINENO"; then :
7559 ac_cv_func_fork_works
=yes
7561 ac_cv_func_fork_works
=no
7563 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7564 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7569 $as_echo "$ac_cv_func_fork_works" >&6; }
7572 ac_cv_func_fork_works
=$ac_cv_func_fork
7574 if test "x$ac_cv_func_fork_works" = xcross
; then
7576 *-*-amigaos* |
*-*-msdosdjgpp*)
7577 # Override, as these systems have only a dummy fork() stub
7578 ac_cv_func_fork_works
=no
7581 ac_cv_func_fork_works
=yes
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7585 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7587 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7588 if test "x$ac_cv_func_vfork" = xyes
; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7590 $as_echo_n "checking for working vfork... " >&6; }
7591 if ${ac_cv_func_vfork_works+:} false
; then :
7592 $as_echo_n "(cached) " >&6
7594 if test "$cross_compiling" = yes; then :
7595 ac_cv_func_vfork_works
=cross
7597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7599 /* Thanks to Paul Eggert for this test. */
7600 $ac_includes_default
7601 #include <sys/wait.h>
7605 /* On some sparc systems, changes by the child to local and incoming
7606 argument registers are propagated back to the parent. The compiler
7607 is told about this with #include <vfork.h>, but some compilers
7608 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7609 static variable whose address is put into a register that is
7610 clobbered by the vfork. */
7613 sparc_address_test (int arg)
7615 sparc_address_test (arg) int arg;
7636 pid_t parent = getpid ();
7639 sparc_address_test (0);
7644 /* Here is another test for sparc vfork register problems. This
7645 test uses lots of local variables, at least as many local
7646 variables as main has allocated so far including compiler
7647 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7648 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7649 reuse the register of parent for one of the local variables,
7650 since it will think that parent can't possibly be used any more
7651 in this routine. Assigning to the local variable will thus
7652 munge parent in the parent process. */
7654 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7655 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7656 /* Convince the compiler that p..p7 are live; otherwise, it might
7657 use the same hardware register for all 8 local variables. */
7658 if (p != p1 || p != p2 || p != p3 || p != p4
7659 || p != p5 || p != p6 || p != p7)
7662 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7663 from child file descriptors. If the child closes a descriptor
7664 before it execs or exits, this munges the parent's descriptor
7665 as well. Test for this by closing stdout in the child. */
7666 _exit(close(fileno(stdout)) != 0);
7671 while (wait(&status) != child)
7674 /* Was there some problem with vforking? */
7677 /* Did the child fail? (This shouldn't happen.) */
7680 /* Did the vfork/compiler bug occur? */
7681 || parent != getpid()
7683 /* Did the file descriptor bug occur? */
7684 || fstat(fileno(stdout), &st) != 0
7689 if ac_fn_c_try_run
"$LINENO"; then :
7690 ac_cv_func_vfork_works
=yes
7692 ac_cv_func_vfork_works
=no
7694 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7695 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7700 $as_echo "$ac_cv_func_vfork_works" >&6; }
7703 if test "x$ac_cv_func_fork_works" = xcross
; then
7704 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7706 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7709 if test "x$ac_cv_func_vfork_works" = xyes
; then
7711 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7715 $as_echo "#define vfork fork" >>confdefs.h
7718 if test "x$ac_cv_func_fork_works" = xyes
; then
7720 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7724 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
7725 ptrace64 sbrk setns sigaltstack sigprocmask \
7726 setpgid setpgrp getrusage getauxval
7728 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7729 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7730 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7731 cat >>confdefs.h
<<_ACEOF
7732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7739 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7741 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
7747 cat >>confdefs.h
<<_ACEOF
7748 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7752 if test "$cross_compiling" = yes; then :
7753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755 #include <sys/personality.h>
7760 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7761 # define ADDR_NO_RANDOMIZE 0x0040000
7763 /* Test the flag could be set and stays set. */
7764 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7765 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7771 if ac_fn_c_try_link
"$LINENO"; then :
7772 have_personality
=true
7774 have_personality
=false
7776 rm -f core conftest.err conftest.
$ac_objext \
7777 conftest
$ac_exeext conftest.
$ac_ext
7779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 #include <sys/personality.h>
7786 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7787 # define ADDR_NO_RANDOMIZE 0x0040000
7789 /* Test the flag could be set and stays set. */
7790 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7791 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7797 if ac_fn_c_try_run
"$LINENO"; then :
7798 have_personality
=true
7800 have_personality
=false
7802 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7803 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7806 if $have_personality
7809 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
7813 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
7814 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
7820 cat >>confdefs.h
<<_ACEOF
7821 #define HAVE_DECL_STRSTR $ac_have_decl
7825 # ----------------------- #
7826 # Checks for structures. #
7827 # ----------------------- #
7829 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7830 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
7832 cat >>confdefs.h
<<_ACEOF
7833 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7838 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7839 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
7841 cat >>confdefs.h
<<_ACEOF
7842 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7850 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
7851 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7852 $as_echo_n "(cached) " >&6
7854 ac_func_search_save_LIBS
=$LIBS
7855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7858 /* Override any GCC internal prototype to avoid an error.
7859 Use char because int might match the return type of a GCC
7860 builtin and then its argument prototype would still apply. */
7864 char kinfo_getfile ();
7868 return kinfo_getfile ();
7873 for ac_lib
in '' util util-freebsd
; do
7874 if test -z "$ac_lib"; then
7875 ac_res
="none required"
7878 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7880 if ac_fn_c_try_link
"$LINENO"; then :
7881 ac_cv_search_kinfo_getfile
=$ac_res
7883 rm -f core conftest.err conftest.
$ac_objext \
7885 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7889 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7892 ac_cv_search_kinfo_getfile
=no
7895 LIBS
=$ac_func_search_save_LIBS
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
7898 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
7899 ac_res
=$ac_cv_search_kinfo_getfile
7900 if test "$ac_res" != no
; then :
7901 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7903 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
7908 # Check for std::thread. This does not work on some platforms, like
7911 ac_cpp
='$CXXCPP $CPPFLAGS'
7912 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7921 ac_cpp
='$CPP $CPPFLAGS'
7922 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7923 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7924 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7928 # We used to check for pthread.h first, but this fails if pthread.h
7929 # requires special compiler flags (e.g. on Tru64 or Sequent).
7930 # It gets checked for in the link test anyway.
7932 # First of all, check if the user has set any of the PTHREAD_LIBS,
7933 # etcetera environment variables, and if threads linking works using
7935 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7936 ax_pthread_save_CC
="$CC"
7937 ax_pthread_save_CFLAGS
="$CFLAGS"
7938 ax_pthread_save_LIBS
="$LIBS"
7939 if test "x$PTHREAD_CC" != "x"; then :
7942 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7943 LIBS
="$PTHREAD_LIBS $LIBS"
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7945 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7949 /* Override any GCC internal prototype to avoid an error.
7950 Use char because int might match the return type of a GCC
7951 builtin and then its argument prototype would still apply. */
7955 char pthread_join ();
7959 return pthread_join ();
7964 if ac_fn_c_try_link
"$LINENO"; then :
7967 rm -f core conftest.err conftest.
$ac_objext \
7968 conftest
$ac_exeext conftest.
$ac_ext
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7970 $as_echo "$ax_pthread_ok" >&6; }
7971 if test "x$ax_pthread_ok" = "xno"; then
7975 CC
="$ax_pthread_save_CC"
7976 CFLAGS
="$ax_pthread_save_CFLAGS"
7977 LIBS
="$ax_pthread_save_LIBS"
7980 # We must check for the threads library under a number of different
7981 # names; the ordering is very important because some systems
7982 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7983 # libraries is broken (non-POSIX).
7985 # Create a list of thread flags to try. Items starting with a "-" are
7986 # C compiler flags, and other items are library names, except for "none"
7987 # which indicates that we try without any flags at all, and "pthread-config"
7988 # which is a program returning the flags for the Pth emulation library.
7990 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7992 # The ordering *is* (sometimes) important. Some notes on the
7993 # individual items follow:
7995 # pthreads: AIX (must check this before -lpthread)
7996 # none: in case threads are in libc; should be tried before -Kthread and
7997 # other compiler flags to prevent continual compiler warnings
7998 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7999 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8000 # (Note: HP C rejects this with "bad form for `-t' option")
8001 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8002 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8003 # doesn't hurt to check since this sometimes defines pthreads and
8004 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8005 # is present but should not be used directly; and before -mthreads,
8006 # because the compiler interprets this as "-mt" + "-hreads")
8007 # -mthreads: Mingw32/gcc, Lynx/gcc
8008 # pthread: Linux, etcetera
8009 # --thread-safe: KAI C++
8010 # pthread-config: use pthread-config program (for GNU Pth library)
8016 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8017 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8019 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
8024 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8025 # multi-threading and also sets -lpthread."
8027 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
8032 # IBM z/OS requires a feature-test macro to be defined in order to
8033 # enable POSIX threads at all, so give the user a hint if this is
8034 # not set. (We don't define these ourselves, as they can affect
8035 # other portions of the system API in unpredictable ways.)
8037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8040 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8041 AX_PTHREAD_ZOS_MISSING
8045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8046 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8048 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8056 # On Solaris (at least, for some versions), libc contains stubbed
8057 # (non-functional) versions of the pthreads routines, so link-based
8058 # tests will erroneously succeed. (N.B.: The stubs are missing
8059 # pthread_cleanup_push, or rather a function called by this macro,
8060 # so we could check for that, but who knows whether they'll stub
8061 # that too in a future libc.) So we'll check first for the
8062 # standard Solaris way of linking pthreads (-mt -lpthread).
8064 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
8068 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8070 if test "x$GCC" = "xyes"; then :
8071 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
8074 # The presence of a feature test macro requesting re-entrant function
8075 # definitions is, on some systems, a strong hint that pthreads support is
8079 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
8080 ax_pthread_check_macro
="_REENTRANT"
8084 ax_pthread_check_macro
="_THREAD_SAFE"
8088 ax_pthread_check_macro
="--"
8091 if test "x$ax_pthread_check_macro" = "x--"; then :
8092 ax_pthread_check_cond
=0
8094 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
8097 # Are we compiling with Clang?
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8100 $as_echo_n "checking whether $CC is Clang... " >&6; }
8101 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
8102 $as_echo_n "(cached) " >&6
8104 ax_cv_PTHREAD_CLANG
=no
8105 # Note that Autoconf sets GCC=yes for Clang as well as GCC
8106 if test "x$GCC" = "xyes"; then
8107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8110 # if defined(__clang__) && defined(__llvm__)
8111 AX_PTHREAD_CC_IS_CLANG
8115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8116 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
8117 ax_cv_PTHREAD_CLANG
=yes
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8125 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8126 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
8128 ax_pthread_clang_warning
=no
8130 # Clang needs special handling, because older versions handle the -pthread
8131 # option in a rather... idiosyncratic way
8133 if test "x$ax_pthread_clang" = "xyes"; then
8135 # Clang takes -pthread; it has never supported any other flag
8137 # (Note 1: This will need to be revisited if a system that Clang
8138 # supports has POSIX threads in a separate library. This tends not
8139 # to be the way of modern systems, but it's conceivable.)
8141 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8142 # to get POSIX threads support; the API is always present and
8143 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8144 # -pthread does define _REENTRANT, and while the Darwin headers
8145 # ignore this macro, third-party headers might not.)
8147 PTHREAD_CFLAGS
="-pthread"
8152 # However, older versions of Clang make a point of warning the user
8153 # that, in an invocation where only linking and no compilation is
8154 # taking place, the -pthread option has no effect ("argument unused
8155 # during compilation"). They expect -pthread to be passed in only
8156 # when source code is being compiled.
8158 # Problem is, this is at odds with the way Automake and most other
8159 # C build frameworks function, which is that the same flags used in
8160 # compilation (CFLAGS) are also used in linking. Many systems
8161 # supported by AX_PTHREAD require exactly this for POSIX threads
8162 # support, and in fact it is often not straightforward to specify a
8163 # flag that is used only in the compilation phase and not in
8164 # linking. Such a scenario is extremely rare in practice.
8166 # Even though use of the -pthread flag in linking would only print
8167 # a warning, this can be a nuisance for well-run software projects
8168 # that build with -Werror. So if the active version of Clang has
8169 # this misfeature, we search for an option to squash it.
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8172 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8173 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
8174 $as_echo_n "(cached) " >&6
8176 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
8177 # Create an alternate version of $ac_link that compiles and
8178 # links in two steps (.c -> .o, .o -> exe) instead of one
8179 # (.c -> exe), because the warning occurs only in the second
8181 ax_pthread_save_ac_link
="$ac_link"
8182 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8183 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8184 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8185 ax_pthread_save_CFLAGS
="$CFLAGS"
8186 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
8187 if test "x$ax_pthread_try" = "xunknown"; then :
8190 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8191 ac_link
="$ax_pthread_save_ac_link"
8192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 int main(void){return 0;}
8196 if ac_fn_c_try_link
"$LINENO"; then :
8197 ac_link
="$ax_pthread_2step_ac_link"
8198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 int main(void){return 0;}
8202 if ac_fn_c_try_link
"$LINENO"; then :
8205 rm -f core conftest.err conftest.
$ac_objext \
8206 conftest
$ac_exeext conftest.
$ac_ext
8209 rm -f core conftest.err conftest.
$ac_objext \
8210 conftest
$ac_exeext conftest.
$ac_ext
8212 ac_link
="$ax_pthread_save_ac_link"
8213 CFLAGS
="$ax_pthread_save_CFLAGS"
8214 if test "x$ax_pthread_try" = "x"; then :
8217 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8221 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8223 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8225 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8228 fi # $ax_pthread_clang = yes
8230 if test "x$ax_pthread_ok" = "xno"; then
8231 for ax_pthread_try_flag
in $ax_pthread_flags; do
8233 case $ax_pthread_try_flag in
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8236 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8241 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8242 PTHREAD_CFLAGS
="-mt"
8243 PTHREAD_LIBS
="-lpthread"
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8248 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8249 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
8253 # Extract the first word of "pthread-config", so it can be a program name with args.
8254 set dummy pthread-config
; ac_word
=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
8258 $as_echo_n "(cached) " >&6
8260 if test -n "$ax_pthread_config"; then
8261 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
8263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8267 test -z "$as_dir" && as_dir
=.
8268 for ac_exec_ext
in '' $ac_executable_extensions; do
8269 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_ax_pthread_config
="yes"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
8281 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
8282 if test -n "$ax_pthread_config"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8284 $as_echo "$ax_pthread_config" >&6; }
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8291 if test "x$ax_pthread_config" = "xno"; then :
8294 PTHREAD_CFLAGS
="`pthread-config --cflags`"
8295 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8300 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8301 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
8305 ax_pthread_save_CFLAGS
="$CFLAGS"
8306 ax_pthread_save_LIBS
="$LIBS"
8307 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8308 LIBS
="$PTHREAD_LIBS $LIBS"
8310 # Check for various functions. We must include pthread.h,
8311 # since some functions may be macros. (On the Sequent, we
8312 # need a special flag -Kthread to make this header compile.)
8313 # We check for pthread_join because it is in -lpthread on IRIX
8314 # while pthread_create is in libc. We check for pthread_attr_init
8315 # due to DEC craziness with -lpthreads. We check for
8316 # pthread_cleanup_push because it is one of the few pthread
8317 # functions on Solaris that doesn't have a non-functional libc stub.
8318 # We try pthread_create on general principles.
8320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 #include <pthread.h>
8323 # if $ax_pthread_check_cond
8324 # error "$ax_pthread_check_macro must be defined"
8326 static void routine(void *a) { a = 0; }
8327 static void *start_routine(void *a) { return a; }
8331 pthread_t th; pthread_attr_t attr;
8332 pthread_create(&th, 0, start_routine, 0);
8333 pthread_join(th, 0);
8334 pthread_attr_init(&attr);
8335 pthread_cleanup_push(routine, 0);
8336 pthread_cleanup_pop(0) /* ; */
8341 if ac_fn_c_try_link
"$LINENO"; then :
8344 rm -f core conftest.err conftest.
$ac_objext \
8345 conftest
$ac_exeext conftest.
$ac_ext
8347 CFLAGS
="$ax_pthread_save_CFLAGS"
8348 LIBS
="$ax_pthread_save_LIBS"
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8351 $as_echo "$ax_pthread_ok" >&6; }
8352 if test "x$ax_pthread_ok" = "xyes"; then :
8361 # Various other checks:
8362 if test "x$ax_pthread_ok" = "xyes"; then
8363 ax_pthread_save_CFLAGS
="$CFLAGS"
8364 ax_pthread_save_LIBS
="$LIBS"
8365 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8366 LIBS
="$PTHREAD_LIBS $LIBS"
8368 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8370 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8371 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
8372 $as_echo_n "(cached) " >&6
8374 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
8375 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
8376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8378 #include <pthread.h>
8382 int attr = $ax_pthread_attr; return attr /* ; */
8387 if ac_fn_c_try_link
"$LINENO"; then :
8388 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
8390 rm -f core conftest.err conftest.
$ac_objext \
8391 conftest
$ac_exeext conftest.
$ac_ext
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8396 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8397 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8398 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8399 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8401 cat >>confdefs.h
<<_ACEOF
8402 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8405 ax_pthread_joinable_attr_defined
=yes
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8410 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8411 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
8412 $as_echo_n "(cached) " >&6
8414 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
8417 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8423 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8424 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8425 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8426 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8427 ax_pthread_special_flags_added
=yes
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8431 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8432 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
8433 $as_echo_n "(cached) " >&6
8435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <pthread.h>
8441 int i = PTHREAD_PRIO_INHERIT;
8446 if ac_fn_c_try_link
"$LINENO"; then :
8447 ax_cv_PTHREAD_PRIO_INHERIT
=yes
8449 ax_cv_PTHREAD_PRIO_INHERIT
=no
8451 rm -f core conftest.err conftest.
$ac_objext \
8452 conftest
$ac_exeext conftest.
$ac_ext
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8456 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8457 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8458 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8460 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8462 ax_pthread_prio_inherit_defined
=yes
8466 CFLAGS
="$ax_pthread_save_CFLAGS"
8467 LIBS
="$ax_pthread_save_LIBS"
8469 # More AIX lossage: compile with *_r variant
8470 if test "x$GCC" != "xyes"; then
8474 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
8475 #handle absolute path differently from PATH based program lookup
8478 if as_fn_executable_p
${CC}_r
; then :
8479 PTHREAD_CC
="${CC}_r"
8482 for ac_prog
in ${CC}_r
8484 # Extract the first word of "$ac_prog", so it can be a program name with args.
8485 set dummy
$ac_prog; ac_word
=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 $as_echo_n "checking for $ac_word... " >&6; }
8488 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
8489 $as_echo_n "(cached) " >&6
8491 if test -n "$PTHREAD_CC"; then
8492 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
8494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8498 test -z "$as_dir" && as_dir
=.
8499 for ac_exec_ext
in '' $ac_executable_extensions; do
8500 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8501 ac_cv_prog_PTHREAD_CC
="$ac_prog"
8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
8512 if test -n "$PTHREAD_CC"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8514 $as_echo "$PTHREAD_CC" >&6; }
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8521 test -n "$PTHREAD_CC" && break
8523 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8534 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8540 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8541 if test "x$ax_pthread_ok" = "xyes"; then
8549 ac_cpp
='$CXXCPP $CPPFLAGS'
8550 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8551 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8552 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8555 if test "$threads" = "yes"; then
8557 LIBS
="$PTHREAD_LIBS $LIBS"
8558 save_CXXFLAGS
="$CXXFLAGS"
8559 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
8561 $as_echo_n "checking for std::thread... " >&6; }
8562 if ${gdb_cv_cxx_std_thread+:} false
; then :
8563 $as_echo_n "(cached) " >&6
8565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8572 std::thread t(callback);
8577 if ac_fn_cxx_try_compile
"$LINENO"; then :
8578 gdb_cv_cxx_std_thread
=yes
8580 gdb_cv_cxx_std_thread
=no
8582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
8585 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
8587 # This check must be here, while LIBS includes any necessary
8588 # threading library.
8589 for ac_func
in pthread_sigmask pthread_setname_np
8591 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8592 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8593 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8594 cat >>confdefs.h
<<_ACEOF
8595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8603 CXXFLAGS
="$save_CXXFLAGS"
8605 if test "$gdb_cv_cxx_std_thread" = "yes"; then
8607 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
8611 ac_cpp
='$CPP $CPPFLAGS'
8612 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8613 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8614 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
8618 $as_echo_n "checking for sigsetjmp... " >&6; }
8619 if ${gdb_cv_func_sigsetjmp+:} false
; then :
8620 $as_echo_n "(cached) " >&6
8622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8630 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
8635 if ac_fn_c_try_compile
"$LINENO"; then :
8636 gdb_cv_func_sigsetjmp
=yes
8638 gdb_cv_func_sigsetjmp
=no
8640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
8643 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
8644 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
8646 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
8651 # Check whether --with-intel_pt was given.
8652 if test "${with_intel_pt+set}" = set; then :
8653 withval
=$with_intel_pt;
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
8659 $as_echo_n "checking whether to use intel pt... " >&6; }
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
8661 $as_echo "$with_intel_pt" >&6; }
8663 if test "${with_intel_pt}" = no
; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
8665 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
8668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8671 #include <linux/perf_event.h>
8672 #ifndef PERF_ATTR_SIZE_VER5
8677 if ac_fn_c_try_cpp
"$LINENO"; then :
8682 rm -f conftest.err conftest.i conftest.
$ac_ext
8683 if test "$perf_event" != yes; then
8684 if test "$with_intel_pt" = yes; then
8685 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
8688 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
8702 acl_save_prefix
="$prefix"
8703 prefix
="$acl_final_prefix"
8704 acl_save_exec_prefix
="$exec_prefix"
8705 exec_prefix
="$acl_final_exec_prefix"
8707 eval additional_includedir
=\"$includedir\"
8708 eval additional_libdir
=\"$libdir\"
8710 exec_prefix
="$acl_save_exec_prefix"
8711 prefix
="$acl_save_prefix"
8714 # Check whether --with-libipt-prefix was given.
8715 if test "${with_libipt_prefix+set}" = set; then :
8716 withval
=$with_libipt_prefix;
8717 if test "X$withval" = "Xno"; then
8720 if test "X$withval" = "X"; then
8722 acl_save_prefix
="$prefix"
8723 prefix
="$acl_final_prefix"
8724 acl_save_exec_prefix
="$exec_prefix"
8725 exec_prefix
="$acl_final_exec_prefix"
8727 eval additional_includedir
=\"$includedir\"
8728 eval additional_libdir
=\"$libdir\"
8730 exec_prefix
="$acl_save_exec_prefix"
8731 prefix
="$acl_save_prefix"
8734 additional_includedir
="$withval/include"
8735 additional_libdir
="$withval/lib"
8746 names_already_handled
=
8747 names_next_round
='ipt '
8748 while test -n "$names_next_round"; do
8749 names_this_round
="$names_next_round"
8751 for name
in $names_this_round; do
8753 for n
in $names_already_handled; do
8754 if test "$n" = "$name"; then
8759 if test -z "$already_handled"; then
8760 names_already_handled
="$names_already_handled $name"
8761 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8762 eval value
=\"\
$HAVE_LIB$uppername\"
8763 if test -n "$value"; then
8764 if test "$value" = yes; then
8765 eval value
=\"\
$LIB$uppername\"
8766 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
8767 eval value
=\"\
$LTLIB$uppername\"
8768 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
8777 if test $use_additional = yes; then
8778 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8779 found_dir
="$additional_libdir"
8780 found_so
="$additional_libdir/lib$name.$shlibext"
8781 if test -f "$additional_libdir/lib$name.la"; then
8782 found_la
="$additional_libdir/lib$name.la"
8785 if test -f "$additional_libdir/lib$name.$libext"; then
8786 found_dir
="$additional_libdir"
8787 found_a
="$additional_libdir/lib$name.$libext"
8788 if test -f "$additional_libdir/lib$name.la"; then
8789 found_la
="$additional_libdir/lib$name.la"
8794 if test "X$found_dir" = "X"; then
8795 for x
in $LDFLAGS $LTLIBIPT; do
8797 acl_save_prefix
="$prefix"
8798 prefix
="$acl_final_prefix"
8799 acl_save_exec_prefix
="$exec_prefix"
8800 exec_prefix
="$acl_final_exec_prefix"
8802 exec_prefix
="$acl_save_exec_prefix"
8803 prefix
="$acl_save_prefix"
8807 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8808 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8810 found_so
="$dir/lib$name.$shlibext"
8811 if test -f "$dir/lib$name.la"; then
8812 found_la
="$dir/lib$name.la"
8815 if test -f "$dir/lib$name.$libext"; then
8817 found_a
="$dir/lib$name.$libext"
8818 if test -f "$dir/lib$name.la"; then
8819 found_la
="$dir/lib$name.la"
8825 if test "X$found_dir" != "X"; then
8830 if test "X$found_dir" != "X"; then
8831 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
8832 if test "X$found_so" != "X"; then
8833 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8834 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8837 for x
in $ltrpathdirs; do
8838 if test "X$x" = "X$found_dir"; then
8843 if test -z "$haveit"; then
8844 ltrpathdirs
="$ltrpathdirs $found_dir"
8846 if test "$hardcode_direct" = yes; then
8847 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8849 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8850 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8852 for x
in $rpathdirs; do
8853 if test "X$x" = "X$found_dir"; then
8858 if test -z "$haveit"; then
8859 rpathdirs
="$rpathdirs $found_dir"
8863 for x
in $LDFLAGS $LIBIPT; do
8865 acl_save_prefix
="$prefix"
8866 prefix
="$acl_final_prefix"
8867 acl_save_exec_prefix
="$exec_prefix"
8868 exec_prefix
="$acl_final_exec_prefix"
8870 exec_prefix
="$acl_save_exec_prefix"
8871 prefix
="$acl_save_prefix"
8873 if test "X$x" = "X-L$found_dir"; then
8878 if test -z "$haveit"; then
8879 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
8881 if test "$hardcode_minus_L" != no
; then
8882 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8884 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
8890 if test "X$found_a" != "X"; then
8891 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
8893 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
8896 additional_includedir
=
8897 case "$found_dir" in
8899 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8900 additional_includedir
="$basedir/include"
8903 if test "X$additional_includedir" != "X"; then
8904 if test "X$additional_includedir" != "X/usr/include"; then
8906 if test "X$additional_includedir" = "X/usr/local/include"; then
8907 if test -n "$GCC"; then
8909 linux
*) haveit
=yes;;
8913 if test -z "$haveit"; then
8914 for x
in $CPPFLAGS $INCIPT; do
8916 acl_save_prefix
="$prefix"
8917 prefix
="$acl_final_prefix"
8918 acl_save_exec_prefix
="$exec_prefix"
8919 exec_prefix
="$acl_final_exec_prefix"
8921 exec_prefix
="$acl_save_exec_prefix"
8922 prefix
="$acl_save_prefix"
8924 if test "X$x" = "X-I$additional_includedir"; then
8929 if test -z "$haveit"; then
8930 if test -d "$additional_includedir"; then
8931 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
8937 if test -n "$found_la"; then
8938 save_libdir
="$libdir"
8940 */* |
*\\*) .
"$found_la" ;;
8941 *) .
"./$found_la" ;;
8943 libdir
="$save_libdir"
8944 for dep
in $dependency_libs; do
8947 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8948 if test "X$additional_libdir" != "X/usr/lib"; then
8950 if test "X$additional_libdir" = "X/usr/local/lib"; then
8951 if test -n "$GCC"; then
8953 linux
*) haveit
=yes;;
8957 if test -z "$haveit"; then
8959 for x
in $LDFLAGS $LIBIPT; do
8961 acl_save_prefix
="$prefix"
8962 prefix
="$acl_final_prefix"
8963 acl_save_exec_prefix
="$exec_prefix"
8964 exec_prefix
="$acl_final_exec_prefix"
8966 exec_prefix
="$acl_save_exec_prefix"
8967 prefix
="$acl_save_prefix"
8969 if test "X$x" = "X-L$additional_libdir"; then
8974 if test -z "$haveit"; then
8975 if test -d "$additional_libdir"; then
8976 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
8980 for x
in $LDFLAGS $LTLIBIPT; do
8982 acl_save_prefix
="$prefix"
8983 prefix
="$acl_final_prefix"
8984 acl_save_exec_prefix
="$exec_prefix"
8985 exec_prefix
="$acl_final_exec_prefix"
8987 exec_prefix
="$acl_save_exec_prefix"
8988 prefix
="$acl_save_prefix"
8990 if test "X$x" = "X-L$additional_libdir"; then
8995 if test -z "$haveit"; then
8996 if test -d "$additional_libdir"; then
8997 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
9004 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9005 if test "$enable_rpath" != no
; then
9007 for x
in $rpathdirs; do
9008 if test "X$x" = "X$dir"; then
9013 if test -z "$haveit"; then
9014 rpathdirs
="$rpathdirs $dir"
9017 for x
in $ltrpathdirs; do
9018 if test "X$x" = "X$dir"; then
9023 if test -z "$haveit"; then
9024 ltrpathdirs
="$ltrpathdirs $dir"
9029 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9032 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9035 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
9036 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
9042 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
9043 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
9049 if test "X$rpathdirs" != "X"; then
9050 if test -n "$hardcode_libdir_separator"; then
9052 for found_dir
in $rpathdirs; do
9053 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9055 acl_save_libdir
="$libdir"
9057 eval flag
=\"$hardcode_libdir_flag_spec\"
9058 libdir
="$acl_save_libdir"
9059 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
9061 for found_dir
in $rpathdirs; do
9062 acl_save_libdir
="$libdir"
9064 eval flag
=\"$hardcode_libdir_flag_spec\"
9065 libdir
="$acl_save_libdir"
9066 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
9070 if test "X$ltrpathdirs" != "X"; then
9071 for found_dir
in $ltrpathdirs; do
9072 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
9077 ac_save_CPPFLAGS
="$CPPFLAGS"
9079 for element
in $INCIPT; do
9081 for x
in $CPPFLAGS; do
9083 acl_save_prefix
="$prefix"
9084 prefix
="$acl_final_prefix"
9085 acl_save_exec_prefix
="$exec_prefix"
9086 exec_prefix
="$acl_final_exec_prefix"
9088 exec_prefix
="$acl_save_exec_prefix"
9089 prefix
="$acl_save_prefix"
9091 if test "X$x" = "X$element"; then
9096 if test -z "$haveit"; then
9097 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
9103 $as_echo_n "checking for libipt... " >&6; }
9104 if ${ac_cv_libipt+:} false
; then :
9105 $as_echo_n "(cached) " >&6
9108 ac_save_LIBS
="$LIBS"
9109 LIBS
="$LIBS $LIBIPT"
9110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 #include "intel-pt.h"
9116 pt_insn_alloc_decoder (0);
9121 if ac_fn_c_try_link
"$LINENO"; then :
9126 rm -f core conftest.err conftest.
$ac_objext \
9127 conftest
$ac_exeext conftest.
$ac_ext
9128 LIBS
="$ac_save_LIBS"
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
9132 $as_echo "$ac_cv_libipt" >&6; }
9133 if test "$ac_cv_libipt" = yes; then
9136 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
9139 $as_echo_n "checking how to link with libipt... " >&6; }
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
9141 $as_echo "$LIBIPT" >&6; }
9144 CPPFLAGS
="$ac_save_CPPFLAGS"
9154 if test "$HAVE_LIBIPT" != yes; then
9155 if test "$with_intel_pt" = yes; then
9156 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
9159 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
9163 LIBS
="$LIBS $LIBIPT"
9164 for ac_func
in pt_insn_event
9166 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
9167 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
9168 cat >>confdefs.h
<<_ACEOF
9169 #define HAVE_PT_INSN_EVENT 1
9175 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
9177 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
9179 cat >>confdefs.h
<<_ACEOF
9180 #define HAVE_STRUCT_PT_INSN_ENABLED 1
9185 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
9187 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
9189 cat >>confdefs.h
<<_ACEOF
9190 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
9200 if test "$ac_cv_header_sys_procfs_h" = yes; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
9202 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
9203 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
9204 $as_echo_n "(cached) " >&6
9206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9210 /* Needed for new procfs interface on sparc-solaris. */
9211 #define _STRUCTURED_PROC 1
9212 #include <sys/procfs.h>
9221 if ac_fn_c_try_compile
"$LINENO"; then :
9222 bfd_cv_have_sys_procfs_type_gregset_t
=yes
9224 bfd_cv_have_sys_procfs_type_gregset_t
=no
9227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9230 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
9232 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
9236 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
9239 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
9240 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
9241 $as_echo_n "(cached) " >&6
9243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9247 /* Needed for new procfs interface on sparc-solaris. */
9248 #define _STRUCTURED_PROC 1
9249 #include <sys/procfs.h>
9258 if ac_fn_c_try_compile
"$LINENO"; then :
9259 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
9261 bfd_cv_have_sys_procfs_type_fpregset_t
=no
9264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9267 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
9269 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
9273 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
9276 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
9277 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
9278 $as_echo_n "(cached) " >&6
9280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9284 /* Needed for new procfs interface on sparc-solaris. */
9285 #define _STRUCTURED_PROC 1
9286 #include <sys/procfs.h>
9295 if ac_fn_c_try_compile
"$LINENO"; then :
9296 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
9298 bfd_cv_have_sys_procfs_type_prgregset_t
=no
9301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9304 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
9306 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
9310 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
9313 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
9314 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
9315 $as_echo_n "(cached) " >&6
9317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9321 /* Needed for new procfs interface on sparc-solaris. */
9322 #define _STRUCTURED_PROC 1
9323 #include <sys/procfs.h>
9332 if ac_fn_c_try_compile
"$LINENO"; then :
9333 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
9335 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
9338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9341 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
9343 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
9347 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
9350 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
9351 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
9352 $as_echo_n "(cached) " >&6
9354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9358 /* Needed for new procfs interface on sparc-solaris. */
9359 #define _STRUCTURED_PROC 1
9360 #include <sys/procfs.h>
9369 if ac_fn_c_try_compile
"$LINENO"; then :
9370 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
9372 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
9375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9378 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
9380 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
9384 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
9387 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
9388 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
9389 $as_echo_n "(cached) " >&6
9391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9395 /* Needed for new procfs interface on sparc-solaris. */
9396 #define _STRUCTURED_PROC 1
9397 #include <sys/procfs.h>
9406 if ac_fn_c_try_compile
"$LINENO"; then :
9407 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
9409 bfd_cv_have_sys_procfs_type_lwpid_t
=no
9412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9415 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
9417 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
9421 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
9424 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
9425 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
9426 $as_echo_n "(cached) " >&6
9428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9432 /* Needed for new procfs interface on sparc-solaris. */
9433 #define _STRUCTURED_PROC 1
9434 #include <sys/procfs.h>
9443 if ac_fn_c_try_compile
"$LINENO"; then :
9444 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
9446 bfd_cv_have_sys_procfs_type_psaddr_t
=no
9449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9452 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
9454 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
9458 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
9461 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
9462 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
9463 $as_echo_n "(cached) " >&6
9465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9466 /* end confdefs.h. */
9469 /* Needed for new procfs interface on sparc-solaris. */
9470 #define _STRUCTURED_PROC 1
9471 #include <sys/procfs.h>
9480 if ac_fn_c_try_compile
"$LINENO"; then :
9481 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
9483 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
9486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9489 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
9491 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
9495 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
9500 # Check the return and argument types of ptrace.
9503 for ac_header
in sys
/ptrace.h ptrace.h
9505 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9506 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9507 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9508 cat >>confdefs.h
<<_ACEOF
9509 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9517 gdb_ptrace_headers
='
9518 #include <sys/types.h>
9519 #if HAVE_SYS_PTRACE_H
9520 # include <sys/ptrace.h>
9523 # include <unistd.h>
9526 # There is no point in checking if we don't have a prototype.
9527 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
9529 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
9535 cat >>confdefs.h
<<_ACEOF
9536 #define HAVE_DECL_PTRACE $ac_have_decl
9538 if test $ac_have_decl = 1; then :
9542 : ${gdb_cv_func_ptrace_ret='int'}
9543 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
9547 # Check return type. Varargs (used on GNU/Linux) conflict with the
9548 # empty argument list, so check for that explicitly.
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
9550 $as_echo_n "checking return type of ptrace... " >&6; }
9551 if ${gdb_cv_func_ptrace_ret+:} false
; then :
9552 $as_echo_n "(cached) " >&6
9554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9560 extern long ptrace (enum __ptrace_request, ...);
9565 if ac_fn_c_try_compile
"$LINENO"; then :
9566 gdb_cv_func_ptrace_ret
='long'
9568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9574 extern int ptrace ();
9579 if ac_fn_c_try_compile
"$LINENO"; then :
9580 gdb_cv_func_ptrace_ret
='int'
9582 gdb_cv_func_ptrace_ret
='long'
9584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
9589 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
9591 cat >>confdefs.h
<<_ACEOF
9592 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
9595 # Check argument types.
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
9597 $as_echo_n "checking types of arguments for ptrace... " >&6; }
9598 if ${gdb_cv_func_ptrace_args+:} false
; then :
9599 $as_echo_n "(cached) " >&6
9602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9608 extern long ptrace (enum __ptrace_request, ...);
9613 if ac_fn_c_try_compile
"$LINENO"; then :
9614 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
9617 for gdb_arg1
in 'int' 'long'; do
9618 for gdb_arg2
in 'pid_t' 'int' 'long'; do
9619 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
9620 for gdb_arg4
in 'int' 'long' 'void *'; do
9621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9628 extern $gdb_cv_func_ptrace_ret
9629 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
9635 if ac_fn_c_try_compile
"$LINENO"; then :
9636 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
9639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9640 for gdb_arg5
in 'int *' 'int' 'long'; do
9641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9648 extern $gdb_cv_func_ptrace_ret
9649 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
9655 if ac_fn_c_try_compile
"$LINENO"; then :
9657 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
9660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9666 # Provide a safe default value.
9667 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
9670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
9673 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
9674 ac_save_IFS
=$IFS; IFS
=','
9675 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
9679 cat >>confdefs.h
<<_ACEOF
9680 #define PTRACE_TYPE_ARG1 $1
9684 cat >>confdefs.h
<<_ACEOF
9685 #define PTRACE_TYPE_ARG3 $3
9689 cat >>confdefs.h
<<_ACEOF
9690 #define PTRACE_TYPE_ARG4 $4
9693 if test -n "$5"; then
9695 cat >>confdefs.h
<<_ACEOF
9696 #define PTRACE_TYPE_ARG5 $5
9707 # Check whether --with-ust was given.
9708 if test "${with_ust+set}" = set; then :
9713 # Check whether --with-ust_include was given.
9714 if test "${with_ust_include+set}" = set; then :
9715 withval
=$with_ust_include;
9719 # Check whether --with-ust_lib was given.
9720 if test "${with_ust_lib+set}" = set; then :
9721 withval
=$with_ust_lib;
9735 ustlibs
="-L$with_ust/lib -lust"
9736 ustinc
="-I$with_ust/include "
9739 if test "x$with_ust_include" != x
; then
9740 ustinc
="-I$with_ust_include "
9742 if test "x$with_ust_lib" != x
; then
9743 ustlibs
="-L$with_ust_lib -lust"
9746 if test "x$with_ust" != "xno"; then
9747 saved_CFLAGS
="$CFLAGS"
9748 CFLAGS
="$CFLAGS $ustinc"
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
9750 $as_echo_n "checking for ust... " >&6; }
9751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9754 #define CONFIG_UST_GDB_INTEGRATION
9755 #include <ust/ust.h>
9765 if ac_fn_c_try_compile
"$LINENO"; then :
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9767 $as_echo "yes" >&6; };
9768 $as_echo "#define HAVE_UST 1" >>confdefs.h
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
9774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9775 CFLAGS
="$saved_CFLAGS"
9778 # Flags needed for UST
9783 # Check whether --enable-werror was given.
9784 if test "${enable_werror+set}" = set; then :
9785 enableval
=$enable_werror; case "${enableval}" in
9786 yes | y
) ERROR_ON_WARNING
="yes" ;;
9787 no | n
) ERROR_ON_WARNING
="no" ;;
9788 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9793 # Enable -Werror by default when using gcc. Turn it off for releases.
9794 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
9795 ERROR_ON_WARNING
=yes
9799 if test "${ERROR_ON_WARNING}" = yes ; then
9800 WERROR_CFLAGS
="-Werror"
9803 # The options we'll try to enable.
9804 build_warnings
="-Wall -Wpointer-arith \
9805 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
9806 -Wno-switch -Wno-char-subscripts \
9807 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
9808 -Wno-sign-compare -Wno-error=maybe-uninitialized \
9809 -Wno-mismatched-tags \
9810 -Wno-error=deprecated-register \
9811 -Wsuggest-override \
9812 -Wimplicit-fallthrough=3 \
9816 -Wdeprecated-copy-dtor \
9818 -Wmissing-declarations"
9822 # Enable -Wno-format by default when using gcc on mingw since many
9823 # GCC versions complain about %I64.
9824 build_warnings
="$build_warnings -Wno-format" ;;
9826 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
9827 # doesn't understand.
9828 build_warnings
="$build_warnings -Wno-unknown-pragmas"
9829 # Solaris 11 <unistd.h> marks vfork deprecated.
9830 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
9832 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
9833 # but there's a special case for this below.
9834 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
9837 # Check whether --enable-build-warnings was given.
9838 if test "${enable_build_warnings+set}" = set; then :
9839 enableval
=$enable_build_warnings; case "${enableval}" in
9841 no
) build_warnings
="-w";;
9842 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9843 build_warnings
="${build_warnings} ${t}";;
9844 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9845 build_warnings
="${t} ${build_warnings}";;
9846 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9848 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9849 echo "Setting compiler warning flags = $build_warnings" 6>&1
9852 # Check whether --enable-gdb-build-warnings was given.
9853 if test "${enable_gdb_build_warnings+set}" = set; then :
9854 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
9856 no
) build_warnings
="-w";;
9857 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9858 build_warnings
="${build_warnings} ${t}";;
9859 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9860 build_warnings
="${t} ${build_warnings}";;
9861 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9863 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9864 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9868 # The set of warnings supported by a C++ compiler is not the same as
9869 # of the C compiler.
9871 ac_cpp
='$CXXCPP $CPPFLAGS'
9872 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9873 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9874 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9878 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
9881 $as_echo_n "checking compiler warning flags... " >&6; }
9882 # Separate out the -Werror flag as some files just cannot be
9883 # compiled with it enabled.
9884 for w
in ${build_warnings}; do
9885 # GCC does not complain about -Wno-unknown-warning. Invert
9886 # and test -Wunknown-warning instead.
9889 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
9890 -Wformat-nonliteral)
9891 # gcc requires -Wformat before -Wformat-nonliteral
9892 # will work, so stick them together.
9901 -Werr*) WERROR_CFLAGS
=-Werror ;;
9903 # Check whether GCC accepts it.
9904 saved_CFLAGS
="$CFLAGS"
9905 CFLAGS
="$CFLAGS -Werror $wtest"
9906 saved_CXXFLAGS
="$CXXFLAGS"
9907 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
9908 if test "x$w" = "x-Wunused-variable"; then
9909 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
9910 # fixed in GCC 4.9. This test is derived from the gdb
9911 # source code that triggered this bug in GCC.
9912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914 struct scoped_restore_base {};
9915 struct scoped_restore_tmpl : public scoped_restore_base {
9916 ~scoped_restore_tmpl() {}
9921 const scoped_restore_base &b = scoped_restore_tmpl();
9926 if ac_fn_cxx_try_compile
"$LINENO"; then :
9927 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9942 if ac_fn_cxx_try_compile
"$LINENO"; then :
9943 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9947 CFLAGS
="$saved_CFLAGS"
9948 CXXFLAGS
="$saved_CXXFLAGS"
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
9952 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
9958 ac_cpp='$CPP $CPPFLAGS'
9959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9967 for ac_func in dladdr
9969 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
9970 if test "x
$ac_cv_func_dladdr" = xyes; then :
9971 cat >>confdefs.h <<_ACEOF
9972 #define HAVE_DLADDR 1
9981 # Check for presence and size of long long.
9982 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
9983 if test "x
$ac_cv_type_long_long" = xyes; then :
9985 cat >>confdefs.h <<_ACEOF
9986 #define HAVE_LONG_LONG 1
9989 # The cast to long int works around a bug in the HP C Compiler
9990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9992 # This bug is HP SR number 8606223364.
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
9994 $as_echo_n "checking size of long long...
" >&6; }
9995 if ${ac_cv_sizeof_long_long+:} false; then :
9996 $as_echo_n "(cached
) " >&6
9998 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
10001 if test "$ac_cv_type_long_long" = yes; then
10002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
10003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10004 as_fn_error 77 "cannot compute sizeof (long long)
10005 See \`config.log' for more details
" "$LINENO" 5; }
10007 ac_cv_sizeof_long_long=0
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
10013 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10017 cat >>confdefs.h <<_ACEOF
10018 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10025 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
10026 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
10027 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
10033 cat >>confdefs.h <<_ACEOF
10034 #define HAVE_DECL_BASENAME $ac_have_decl
10036 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
10037 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
10043 cat >>confdefs.h <<_ACEOF
10044 #define HAVE_DECL_FFS $ac_have_decl
10046 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
10047 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
10053 cat >>confdefs.h <<_ACEOF
10054 #define HAVE_DECL_ASPRINTF $ac_have_decl
10056 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
10057 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
10063 cat >>confdefs.h <<_ACEOF
10064 #define HAVE_DECL_VASPRINTF $ac_have_decl
10066 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
10067 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
10073 cat >>confdefs.h <<_ACEOF
10074 #define HAVE_DECL_SNPRINTF $ac_have_decl
10076 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
10077 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
10083 cat >>confdefs.h <<_ACEOF
10084 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10087 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
10088 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
10094 cat >>confdefs.h <<_ACEOF
10095 #define HAVE_DECL_STRTOL $ac_have_decl
10097 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
10098 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
10104 cat >>confdefs.h <<_ACEOF
10105 #define HAVE_DECL_STRTOUL $ac_have_decl
10107 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
10108 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
10114 cat >>confdefs.h <<_ACEOF
10115 #define HAVE_DECL_STRTOLL $ac_have_decl
10117 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
10118 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
10124 cat >>confdefs.h <<_ACEOF
10125 #define HAVE_DECL_STRTOULL $ac_have_decl
10128 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
10129 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
10135 cat >>confdefs.h <<_ACEOF
10136 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10141 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
10142 if test "x
$ac_cv_have_decl_perror" = xyes; then :
10148 cat >>confdefs.h <<_ACEOF
10149 #define HAVE_DECL_PERROR $ac_have_decl
10151 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
10152 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
10158 cat >>confdefs.h <<_ACEOF
10159 #define HAVE_DECL_VASPRINTF $ac_have_decl
10161 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
10162 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
10168 cat >>confdefs.h <<_ACEOF
10169 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10173 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
10174 # Older amd64 Linux's don't have the fs_base and gs_base members of
10175 # `struct user_regs_struct'.
10176 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "fs_base
" "ac_cv_member_struct_user_regs_struct_fs_base
" "#include <sys/types.h>
10177 #include <sys/user.h>
10179 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
10181 cat >>confdefs.h <<_ACEOF
10182 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
10187 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "gs_base
" "ac_cv_member_struct_user_regs_struct_gs_base
" "#include <sys/types.h>
10188 #include <sys/user.h>
10190 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
10192 cat >>confdefs.h <<_ACEOF
10193 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
10201 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
10202 #include <sys/socket.h>
10205 if test "x
$ac_cv_type_socklen_t" = xyes; then :
10207 cat >>confdefs.h <<_ACEOF
10208 #define HAVE_SOCKLEN_T 1
10215 case "${target}" in
10217 # Starting with NDK version 9, <elf.h> actually includes definitions
10218 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
10219 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
10220 # leading to conflicts with the defintions from <linux/elf.h>.
10221 # This makes it impossible for us to include both <elf.h> and
10222 # <linux/elf.h>, which means that, in practice, we do not have
10223 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
10224 # Therefore, do not try to auto-detect availability, as it would
10225 # get it wrong on this platform.
10228 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
10231 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
10233 cat >>confdefs.h <<_ACEOF
10234 #define HAVE_ELF32_AUXV_T 1
10239 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
10242 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
10244 cat >>confdefs.h <<_ACEOF
10245 #define HAVE_ELF64_AUXV_T 1
10255 # Check whether --with-pkgversion was given.
10256 if test "${with_pkgversion+set}" = set; then :
10257 withval=$with_pkgversion; case "$withval" in
10258 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
10260 *) PKGVERSION="($withval) " ;;
10263 PKGVERSION="(GDB
) "
10271 # Check whether --with-bugurl was given.
10272 if test "${with_bugurl+set}" = set; then :
10273 withval=$with_bugurl; case "$withval" in
10274 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
10277 *) BUGURL="$withval"
10281 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
10291 REPORT_BUGS_TO="<$BUGURL>"
10292 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10299 cat >>confdefs.h <<_ACEOF
10300 #define PKGVERSION "$PKGVERSION"
10304 cat >>confdefs.h <<_ACEOF
10305 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
10309 # Check for various supplementary target information (beyond the
10310 # triplet) which might affect the choices in configure.srv.
10311 case "${target}" in
10312 i[34567]86-*-linux*)
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
10314 $as_echo_n "checking
if building
for x86-64...
" >&6; }
10315 if ${gdb_cv_i386_is_x86_64+:} false; then :
10316 $as_echo_n "(cached
) " >&6
10318 save_CPPFLAGS="$CPPFLAGS"
10319 CPPFLAGS="$CPPFLAGS $CFLAGS"
10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10328 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10329 $EGREP "got it
" >/dev/null 2>&1; then :
10330 gdb_cv_i386_is_x86_64=yes
10332 gdb_cv_i386_is_x86_64=no
10336 CPPFLAGS="$save_CPPFLAGS"
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
10339 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
10344 $as_echo_n "checking
if building
for x32...
" >&6; }
10345 if ${gdb_cv_x86_is_x32+:} false; then :
10346 $as_echo_n "(cached
) " >&6
10348 save_CPPFLAGS="$CPPFLAGS"
10349 CPPFLAGS="$CPPFLAGS $CFLAGS"
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10353 #if __x86_64__ && __ILP32__
10358 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10359 $EGREP "got it
" >/dev/null 2>&1; then :
10360 gdb_cv_x86_is_x32=yes
10362 gdb_cv_x86_is_x32=no
10366 CPPFLAGS="$save_CPPFLAGS"
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
10369 $as_echo "$gdb_cv_x86_is_x32" >&6; }
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
10374 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
10375 if ${gdb_cv_m68k_is_coldfire+:} false; then :
10376 $as_echo_n "(cached
) " >&6
10378 save_CPPFLAGS="$CPPFLAGS"
10379 CPPFLAGS="$CPPFLAGS $CFLAGS"
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10383 #ifdef __mcoldfire__
10388 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10389 $EGREP "got it
" >/dev/null 2>&1; then :
10390 gdb_cv_m68k_is_coldfire=yes
10392 gdb_cv_m68k_is_coldfire=no
10396 CPPFLAGS="$save_CPPFLAGS"
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
10399 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
10403 . ${srcdir}/configure.srv
10405 if test "${srv_mingwce}" = "yes"; then
10407 elif test "${srv_mingw}" = "yes"; then
10408 # WIN32APILIBS is set by GDB_AC_COMMON.
10409 LIBS="$LIBS $WIN32APILIBS"
10410 elif test "${srv_qnx}" = "yes"; then
10411 LIBS="$LIBS -lsocket"
10412 elif test "${srv_lynxos}" = "yes"; then
10413 LIBS="$LIBS -lnetinet"
10416 if test "${srv_linux_usrregs}" = "yes"; then
10418 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
10422 if test "${srv_linux_regsets}" = "yes"; then
10424 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10428 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10429 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
10430 $as_echo_n "(cached) " >&6
10432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10434 #include <sys/ptrace.h>
10443 if ac_fn_c_try_compile
"$LINENO"; then :
10444 gdbsrv_cv_have_ptrace_getregs
=yes
10446 gdbsrv_cv_have_ptrace_getregs
=no
10448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
10452 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
10453 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
10455 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10460 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10461 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
10462 $as_echo_n "(cached) " >&6
10464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10466 #include <sys/ptrace.h>
10475 if ac_fn_c_try_compile
"$LINENO"; then :
10476 gdbsrv_cv_have_ptrace_getfpxregs
=yes
10478 gdbsrv_cv_have_ptrace_getfpxregs
=no
10480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
10484 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
10485 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
10487 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10492 if test "${srv_linux_btrace}" = "yes"; then
10494 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
10498 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
10500 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
10501 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
10502 $as_echo_n "(cached) " >&6
10504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10507 #include <thread_db.h>
10516 if ac_fn_c_try_compile
"$LINENO"; then :
10517 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
10519 gdbserver_cv_have_thread_db_type_lwpid_t
=no
10522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10525 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
10527 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
10531 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
10535 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
10537 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
10538 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
10539 $as_echo_n "(cached) " >&6
10541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h. */
10544 #include <thread_db.h>
10553 if ac_fn_c_try_compile
"$LINENO"; then :
10554 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
10556 gdbserver_cv_have_thread_db_type_psaddr_t
=no
10559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10562 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
10564 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
10568 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10574 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10575 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10576 $as_echo_n "(cached) " >&6
10578 ac_check_lib_save_LIBS
=$LIBS
10580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10583 /* Override any GCC internal prototype to avoid an error.
10584 Use char because int might match the return type of a GCC
10585 builtin and then its argument prototype would still apply. */
10598 if ac_fn_c_try_link
"$LINENO"; then :
10599 ac_cv_lib_dl_dlopen
=yes
10601 ac_cv_lib_dl_dlopen
=no
10603 rm -f core conftest.err conftest.
$ac_objext \
10604 conftest
$ac_exeext conftest.
$ac_ext
10605 LIBS
=$ac_check_lib_save_LIBS
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10608 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10609 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10610 cat >>confdefs.h
<<_ACEOF
10611 #define HAVE_LIBDL 1
10620 srv_thread_depfiles
=
10623 if test "$srv_linux_thread_db" = "yes"; then
10624 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
10627 $as_echo_n "checking for the dynamic export flag... " >&6; }
10628 old_LDFLAGS
="$LDFLAGS"
10629 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
10631 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
10632 LDFLAGS
="$LDFLAGS $RDYNAMIC"
10633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10644 if ac_fn_c_try_link
"$LINENO"; then :
10645 found
="-Wl,--dynamic-list"
10646 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
10648 RDYNAMIC
="-rdynamic"
10649 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
10650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10661 if ac_fn_c_try_link
"$LINENO"; then :
10667 rm -f core conftest.err conftest.
$ac_objext \
10668 conftest
$ac_exeext conftest.
$ac_ext
10670 rm -f core conftest.err conftest.
$ac_objext \
10671 conftest
$ac_exeext conftest.
$ac_ext
10673 LDFLAGS
="$old_LDFLAGS"
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
10675 $as_echo "$found" >&6; }
10677 srv_libs
="-lthread_db"
10680 srv_thread_depfiles
="thread-db.o proc-service.o"
10682 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
10685 $as_echo_n "checking for TD_VERSION... " >&6; }
10686 if ${gdbsrv_cv_have_td_version+:} false
; then :
10687 $as_echo_n "(cached) " >&6
10689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10691 #include <thread_db.h>
10700 if ac_fn_c_try_compile
"$LINENO"; then :
10701 gdbsrv_cv_have_td_version
=yes
10703 gdbsrv_cv_have_td_version
=no
10705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
10708 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
10709 if test "$gdbsrv_cv_have_td_version" = yes; then
10711 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
10717 # Check whether --with-libthread-db was given.
10718 if test "${with_libthread_db+set}" = set; then :
10719 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
10720 srv_libs
="$srv_libthread_db_path"
10725 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
10727 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
10731 if test "$srv_xmlfiles" != ""; then
10732 srv_xmlbuiltin
="xml-builtin.o"
10734 $as_echo "#define USE_XML 1" >>confdefs.h
10737 tmp_xmlfiles
=$srv_xmlfiles
10739 for f
in $tmp_xmlfiles; do
10740 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
10744 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_selftest_objs"
10745 GDBSERVER_LIBS
="$srv_libs"
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
10748 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
10749 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
10750 $as_echo_n "(cached) " >&6
10753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10759 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
10764 if ac_fn_c_try_link
"$LINENO"; then :
10765 gdbsrv_cv_have_sync_builtins
=yes
10767 gdbsrv_cv_have_sync_builtins
=no
10769 rm -f core conftest.err conftest.
$ac_objext \
10770 conftest
$ac_exeext conftest.
$ac_ext
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
10773 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
10774 if test "$gdbsrv_cv_have_sync_builtins" = yes; then
10776 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
10780 saved_cflags
="$CFLAGS"
10781 CFLAGS
="$CFLAGS -fvisibility=hidden"
10782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10793 if ac_fn_c_try_compile
"$LINENO"; then :
10794 gdbsrv_cv_have_visibility_hidden
=yes
10796 gdbsrv_cv_have_visibility_hidden
=no
10798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10799 CFLAGS
="$saved_cflags"
10804 # check whether to enable the inprocess agent
10805 if test "$ipa_obj" != "" \
10806 -a "$gdbsrv_cv_have_sync_builtins" = yes \
10807 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
10813 # Check whether --enable-inprocess-agent was given.
10814 if test "${enable_inprocess_agent+set}" = set; then :
10815 enableval
=$enable_inprocess_agent; case "$enableval" in
10816 yes) want_ipa
=true
;;
10817 no
) want_ipa
=false
;;
10818 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
10825 if $want_ipa ; then
10826 if $have_ipa ; then
10827 IPA_DEPFILES
="$ipa_obj"
10828 extra_libraries
="$extra_libraries libinproctrace.so"
10830 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
10841 GNULIB
=build-gnulib-gdbserver
/import
10844 if test x
"$STDINT_H" != x
; then
10845 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
10849 ac_config_files
="$ac_config_files Makefile"
10852 cat >confcache
<<\_ACEOF
10853 # This file is a shell script that caches the results of configure
10854 # tests run on this system so they can be shared between configure
10855 # scripts and configure runs, see configure's option --config-cache.
10856 # It is not useful on other systems. If it contains results you don't
10857 # want to keep, you may remove or edit it.
10859 # config.status only pays attention to the cache file if you give it
10860 # the --recheck option to rerun configure.
10862 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10863 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10864 # following values.
10868 # The following way of writing the cache mishandles newlines in values,
10869 # but we know of no workaround that is simple, portable, and efficient.
10870 # So, we kill variables containing newlines.
10871 # Ultrix sh set writes to stderr and can't be redirected directly,
10872 # and sets the high bit in the cache file unless we assign to the vars.
10874 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10875 eval ac_val
=\$
$ac_var
10879 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10880 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10883 _ | IFS | as_nl
) ;; #(
10884 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10885 *) { eval $ac_var=; unset $ac_var;} ;;
10891 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10892 *${as_nl}ac_space
=\
*)
10893 # `set' does not quote correctly, so add quotes: double-quote
10894 # substitution turns \\\\ into \\, and sed turns \\ into \.
10897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10900 # `set' quotes correctly as required by POSIX, so do not add quotes.
10901 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10910 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10912 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10914 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10915 if test -w "$cache_file"; then
10916 if test "x$cache_file" != "x/dev/null"; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10918 $as_echo "$as_me: updating cache $cache_file" >&6;}
10919 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10920 cat confcache
>"$cache_file"
10922 case $cache_file in #(
10924 mv -f confcache
"$cache_file"$$
&&
10925 mv -f "$cache_file"$$
"$cache_file" ;; #(
10927 mv -f confcache
"$cache_file" ;;
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10933 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10938 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10939 # Let make expand exec_prefix.
10940 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10942 DEFS
=-DHAVE_CONFIG_H
10947 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10948 # 1. Remove the extension, and $U if already installed.
10949 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10950 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10951 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10952 # will be set to the directory where LIBOBJS objects are built.
10953 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10954 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10956 LIBOBJS
=$ac_libobjs
10958 LTLIBOBJS
=$ac_ltlibobjs
10961 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10962 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
10963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10966 : "${CONFIG_STATUS=./config.status}"
10968 ac_clean_files_save
=$ac_clean_files
10969 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10971 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10973 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10975 # Generated by $as_me.
10976 # Run this file to recreate the current configuration.
10977 # Compiler output produced by configure, useful for debugging
10978 # configure, is in config.log if it exists.
10981 ac_cs_recheck=false
10984 SHELL=\${CONFIG_SHELL-$SHELL}
10987 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10988 ## -------------------- ##
10989 ## M4sh Initialization. ##
10990 ## -------------------- ##
10992 # Be more Bourne compatible
10993 DUALCASE
=1; export DUALCASE
# for MKS sh
10994 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10997 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10998 # is contrary to our usage. Disable this feature.
10999 alias -g '${1+"$@"}'='"$@"'
11000 setopt NO_GLOB_SUBST
11002 case `(set -o) 2>/dev/null` in #(
11014 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11015 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11016 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11017 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11018 # Prefer a ksh shell builtin over an external printf program on Solaris,
11019 # but without wasting forks for bash or zsh.
11020 if test -z "$BASH_VERSION$ZSH_VERSION" \
11021 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11022 as_echo='print
-r --'
11023 as_echo_n='print
-rn --'
11024 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11025 as_echo='printf %s
\n'
11026 as_echo_n='printf %s
'
11028 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11029 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11030 as_echo_n='/usr
/ucb
/echo -n'
11032 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11033 as_echo_n_body='eval
11037 expr "X$arg" : "X\\(.*\\)$as_nl";
11038 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11040 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11042 export as_echo_n_body
11043 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11045 export as_echo_body
11046 as_echo='sh
-c $as_echo_body as_echo
'
11049 # The user is always right.
11050 if test "${PATH_SEPARATOR+set}" != set; then
11052 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11053 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11060 # We need space, tab and new line, in precisely that order. Quoting is
11061 # there to prevent editors from complaining about space-tab.
11062 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11063 # splitting by setting IFS to empty value.)
11066 # Find who we are. Look in the path if we contain no directory separator.
11069 *[\\/]* ) as_myself=$0 ;;
11070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11074 test -z "$as_dir" && as_dir=.
11075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11081 # We did not find ourselves, most probably we were run as `sh COMMAND'
11082 # in which case we are not to be found in the path.
11083 if test "x$as_myself" = x
; then
11086 if test ! -f "$as_myself"; then
11087 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11091 # Unset variables that we do not need and which cause bugs (e.g. in
11092 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11093 # suppresses any "Segmentation fault" message there. '((' could
11094 # trigger a bug in pdksh 5.2.14.
11095 for as_var
in BASH_ENV ENV MAIL MAILPATH
11096 do eval test x\
${$as_var+set} = xset \
11097 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11110 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11113 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11114 # ----------------------------------------
11115 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11116 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11117 # script with STATUS, using 1 if that was 0.
11120 as_status
=$1; test $as_status -eq 0 && as_status
=1
11122 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11123 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11125 $as_echo "$as_me: error: $2" >&2
11126 as_fn_exit
$as_status
11130 # as_fn_set_status STATUS
11131 # -----------------------
11132 # Set $? to STATUS, without forking.
11133 as_fn_set_status
()
11136 } # as_fn_set_status
11138 # as_fn_exit STATUS
11139 # -----------------
11140 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11144 as_fn_set_status
$1
11150 # Portably unset VAR.
11153 { eval $1=; unset $1;}
11155 as_unset
=as_fn_unset
11156 # as_fn_append VAR VALUE
11157 # ----------------------
11158 # Append the text in VALUE to the end of the definition contained in VAR. Take
11159 # advantage of any shell optimizations that allow amortized linear growth over
11160 # repeated appends, instead of the typical quadratic growth present in naive
11162 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11163 eval 'as_fn_append ()
11174 # as_fn_arith ARG...
11175 # ------------------
11176 # Perform arithmetic evaluation on the ARGs, and store the result in the
11177 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11178 # must be portable across $(()) and expr.
11179 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11180 eval 'as_fn_arith ()
11187 as_val
=`expr "$@" || test $? -eq 1`
11192 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11193 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11199 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11200 as_basename
=basename
11205 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11211 as_me
=`$as_basename -- "$0" ||
11212 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11213 X"$0" : 'X\(//\)$' \| \
11214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11216 sed '/^.*\/\([^/][^/]*\)\/*$/{
11230 # Avoid depending upon Character Ranges.
11231 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11232 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11233 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11234 as_cr_digits
='0123456789'
11235 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11237 ECHO_C
= ECHO_N
= ECHO_T
=
11238 case `echo -n x` in #(((((
11240 case `echo 'xy\c'` in
11241 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11243 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11250 rm -f conf$$ conf$$.exe conf$$.
file
11251 if test -d conf$$.dir
; then
11252 rm -f conf$$.dir
/conf$$.
file
11255 mkdir conf$$.dir
2>/dev
/null
11257 if (echo >conf$$.
file) 2>/dev
/null
; then
11258 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11260 # ... but there are two gotchas:
11261 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11262 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11263 # In both cases, we have to default to `cp -pR'.
11264 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11266 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11274 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11275 rmdir conf$$.dir
2>/dev
/null
11280 # Create "$as_dir" as a directory, including parents if necessary.
11285 -*) as_dir
=.
/$as_dir;;
11287 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11291 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11292 *) as_qdir
=$as_dir;;
11294 as_dirs
="'$as_qdir' $as_dirs"
11295 as_dir
=`$as_dirname -- "$as_dir" ||
11296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11297 X"$as_dir" : 'X\(//\)[^/]' \| \
11298 X"$as_dir" : 'X\(//\)$' \| \
11299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11300 $as_echo X"$as_dir" |
11301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11305 /^X\(\/\/\)[^/].*/{
11318 test -d "$as_dir" && break
11320 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11321 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11325 if mkdir
-p .
2>/dev
/null
; then
11326 as_mkdir_p
='mkdir -p "$as_dir"'
11328 test -d .
/-p && rmdir .
/-p
11333 # as_fn_executable_p FILE
11334 # -----------------------
11335 # Test if FILE is an executable regular file.
11336 as_fn_executable_p
()
11338 test -f "$1" && test -x "$1"
11339 } # as_fn_executable_p
11340 as_test_x
='test -x'
11341 as_executable_p
=as_fn_executable_p
11343 # Sed expression to map a string onto a valid CPP name.
11344 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11346 # Sed expression to map a string onto a valid variable name.
11347 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11351 ## ----------------------------------- ##
11352 ## Main body of $CONFIG_STATUS script. ##
11353 ## ----------------------------------- ##
11355 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11358 # Save the log message, to keep $0 and so on meaningful, and to
11359 # report actual input values of CONFIG_FILES etc. instead of their
11360 # values after options handling.
11362 This file was extended by $as_me, which was
11363 generated by GNU Autoconf 2.69. Invocation command line was
11365 CONFIG_FILES = $CONFIG_FILES
11366 CONFIG_HEADERS = $CONFIG_HEADERS
11367 CONFIG_LINKS = $CONFIG_LINKS
11368 CONFIG_COMMANDS = $CONFIG_COMMANDS
11371 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11376 case $ac_config_files in *"
11377 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11380 case $ac_config_headers in *"
11381 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11386 # Files that config.status was made for.
11387 config_files="$ac_config_files"
11388 config_headers="$ac_config_headers"
11389 config_commands="$ac_config_commands"
11393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11395 \`$as_me' instantiates files and other configuration actions
11396 from templates according to the current configuration. Unless the files
11397 and actions are specified as TAGs, all are instantiated by default.
11399 Usage: $0 [OPTION]... [TAG]...
11401 -h, --help print this help, then exit
11402 -V, --version print version number and configuration settings, then exit
11403 --config print configuration, then exit
11404 -q, --quiet, --silent
11405 do not print progress messages
11406 -d, --debug don't remove temporary files
11407 --recheck update $as_me by reconfiguring in the same conditions
11408 --file=FILE[:TEMPLATE]
11409 instantiate the configuration file FILE
11410 --header=FILE[:TEMPLATE]
11411 instantiate the configuration header FILE
11413 Configuration files:
11416 Configuration headers:
11419 Configuration commands:
11422 Report bugs to the package provider."
11425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11426 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11429 configured by $0, generated by GNU Autoconf 2.69,
11430 with options \\"\$ac_cs_config\\"
11432 Copyright (C) 2012 Free Software Foundation, Inc.
11433 This config.status script is free software; the Free Software Foundation
11434 gives unlimited permission to copy, distribute and modify it."
11439 test -n "\$AWK" || AWK=awk
11442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11443 # The default lists apply if the user does not specify any file.
11449 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11450 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11454 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11466 # Handling of the options.
11467 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11469 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11470 $as_echo "$ac_cs_version"; exit ;;
11471 --config |
--confi |
--conf |
--con |
--co |
--c )
11472 $as_echo "$ac_cs_config"; exit ;;
11473 --debug |
--debu |
--deb |
--de |
--d |
-d )
11475 --file |
--fil |
--fi |
--f )
11478 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11479 '') as_fn_error $?
"missing file argument" ;;
11481 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11482 ac_need_defaults
=false
;;
11483 --header |
--heade |
--head |
--hea )
11486 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11488 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11489 ac_need_defaults
=false
;;
11491 # Conflict between --help and --header
11492 as_fn_error $?
"ambiguous option: \`$1'
11493 Try \`$0 --help' for more information.";;
11494 --help |
--hel |
-h )
11495 $as_echo "$ac_cs_usage"; exit ;;
11496 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11497 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11500 # This is an error.
11501 -*) as_fn_error $?
"unrecognized option: \`$1'
11502 Try \`$0 --help' for more information." ;;
11504 *) as_fn_append ac_config_targets
" $1"
11505 ac_need_defaults
=false
;;
11511 ac_configure_extra_args
=
11513 if $ac_cs_silent; then
11515 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11520 if \$ac_cs_recheck; then
11521 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11523 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11524 CONFIG_SHELL='$SHELL'
11525 export CONFIG_SHELL
11530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11534 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11535 ## Running $as_me. ##
11541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11545 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
11546 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
11550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11552 # Handling of arguments.
11553 for ac_config_target
in $ac_config_targets
11555 case $ac_config_target in
11556 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
11557 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
11558 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
11559 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11561 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11566 # If the user did not use the arguments to specify the items to instantiate,
11567 # then the envvar interface is used. Set only those that are not.
11568 # We use the long form for the default assignment because of an extremely
11569 # bizarre bug on SunOS 4.1.3.
11570 if $ac_need_defaults; then
11571 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11572 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11573 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11576 # Have a temporary directory for convenience. Make it in the build tree
11577 # simply because there is no reason against having it here, and in addition,
11578 # creating and moving files from /tmp can sometimes cause problems.
11579 # Hook for its removal unless debugging.
11580 # Note that there is a small window in which the directory will not be cleaned:
11581 # after its creation but before its name has been assigned to `$tmp'.
11585 trap 'exit_status=$?
11586 : "${ac_tmp:=$tmp}"
11587 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11589 trap 'as_fn_exit 1' 1 2 13 15
11591 # Create a (secure) tmp directory for tmp files.
11594 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11598 tmp
=.
/conf$$
-$RANDOM
11599 (umask 077 && mkdir
"$tmp")
11600 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11603 # Set up the scripts for CONFIG_FILES section.
11604 # No need to generate them if there are no CONFIG_FILES.
11605 # This happens for instance with `./config.status config.h'.
11606 if test -n "$CONFIG_FILES"; then
11609 ac_cr
=`echo X | tr X '\015'`
11610 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11611 # But we know of no other shell where ac_cr would be empty at this
11612 # point, so we can use a bashism as a fallback.
11613 if test "x$ac_cr" = x
; then
11614 eval ac_cr
=\$
\'\\r
\'
11616 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11617 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11620 ac_cs_awk_cr
=$ac_cr
11623 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11628 echo "cat >conf$$subs.awk <<_ACEOF" &&
11629 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11631 } >conf$$subs.sh ||
11632 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11633 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11635 for ac_last_try in false false false false false :; do
11636 . ./conf$$subs.sh ||
11637 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11639 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11640 if test $ac_delim_n = $ac_delim_num; then
11642 elif $ac_last_try; then
11643 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11645 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11648 rm -f conf$$subs.sh
11650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11651 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11655 s/^/S["/; s
/!.
*/"]=/
11665 s/\(.\{148\}\)..*/\1/
11667 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11672 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11679 s/\(.\{148\}\)..*/\1/
11681 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11685 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11690 ' <conf$$subs.awk | sed '
11695 ' >>$CONFIG_STATUS || ac_write_fail=1
11696 rm -f conf$$subs.awk
11697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11699 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11700 for (key in S) S_is_set[key] = 1
11706 nfields = split(line, field, "@
")
11708 len = length(field[1])
11709 for (i = 2; i < nfields; i++) {
11711 keylen = length(key)
11712 if (S_is_set[key]) {
11714 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11715 len += length(value) + length(field[++i])
11726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11727 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11728 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11731 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11732 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11735 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11736 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11737 # trailing colons and then remove the whole line if VPATH becomes empty
11738 # (actually we leave an empty line to preserve line numbers).
11739 if test "x
$srcdir" = x.; then
11740 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11759 fi # test -n "$CONFIG_FILES"
11761 # Set up the scripts for CONFIG_HEADERS section.
11762 # No need to generate them if there are no CONFIG_HEADERS.
11763 # This happens for instance with `./config.status Makefile'.
11764 if test -n "$CONFIG_HEADERS"; then
11765 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11769 # Transform confdefs.h into an awk script `defines.awk', embedded as
11770 # here-document in config.status, that substitutes the proper values into
11771 # config.h.in to produce config.h.
11773 # Create a delimiter string that does not exist in confdefs.h, to ease
11774 # handling of long lines.
11776 for ac_last_try in false false :; do
11777 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11778 if test -z "$ac_tt"; then
11780 elif $ac_last_try; then
11781 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11783 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11787 # For the awk script, D is an array of macro values keyed by name,
11788 # likewise P contains macro parameters if any. Preserve backslash
11789 # newline sequences.
11791 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11793 s/.\{148\}/&'"$ac_delim"'/g
11796 s/^[ ]*#[ ]*define[ ][ ]*/ /
11803 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11805 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11809 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11810 D["\
1"]=" \
3\\\\\\n
"\\/p
11812 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11817 s/.\{148\}/&'"$ac_delim"'/g
11822 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11825 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11827 ' <confdefs.h | sed '
11828 s/'"$ac_delim"'/"\\\
11829 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11832 for (key in D) D_is_set[key] = 1
11835 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11837 split(line, arg, " ")
11838 if (arg[1] == "#") {
11842 defundef
= substr
(arg
[1], 2)
11845 split(mac1
, mac2
, "(") #)
11847 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11848 if (D_is_set
[macro
]) {
11849 # Preserve the white space surrounding the "#".
11850 print prefix
"define", macro P
[macro
] D
[macro
]
11853 # Replace #undef with comments. This is necessary, for example,
11854 # in the case of _POSIX_SOURCE, which is predefined and required
11855 # on some systems where configure will not decide to define it.
11856 if (defundef
== "undef") {
11857 print
"/*", prefix defundef
, macro
, "*/"
11865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11866 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11867 fi # test -n "$CONFIG_HEADERS"
11870 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11875 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11877 case $ac_mode$ac_tag in
11879 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11880 :[FH
]-) ac_tag
=-:-;;
11881 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11898 -) ac_f
="$ac_tmp/stdin";;
11899 *) # Look for the file first in the build tree, then in the source tree
11900 # (if the path is not absolute). The absolute path cannot be DOS-style,
11901 # because $ac_f cannot contain `:'.
11905 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11907 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11909 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11910 as_fn_append ac_file_inputs
" '$ac_f'"
11913 # Let's still pretend it is `configure' which instantiates (i.e., don't
11914 # use $as_me), people would be surprised to read:
11915 # /* config.h. Generated by config.status. */
11916 configure_input
='Generated from '`
11917 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11919 if test x
"$ac_file" != x-
; then
11920 configure_input
="$ac_file. $configure_input"
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11922 $as_echo "$as_me: creating $ac_file" >&6;}
11924 # Neutralize special characters interpreted by sed in replacement strings.
11925 case $configure_input in #(
11926 *\
&* |
*\|
* |
*\\* )
11927 ac_sed_conf_input
=`$as_echo "$configure_input" |
11928 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11929 *) ac_sed_conf_input
=$configure_input;;
11933 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11934 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11939 ac_dir
=`$as_dirname -- "$ac_file" ||
11940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11941 X"$ac_file" : 'X\(//\)[^/]' \| \
11942 X"$ac_file" : 'X\(//\)$' \| \
11943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11944 $as_echo X"$ac_file" |
11945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11949 /^X\(\/\/\)[^/].*/{
11962 as_dir
="$ac_dir"; as_fn_mkdir_p
11966 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11968 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11969 # A ".." for each directory in $ac_dir_suffix.
11970 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11971 case $ac_top_builddir_sub in
11972 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11973 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11976 ac_abs_top_builddir
=$ac_pwd
11977 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11978 # for backward compatibility:
11979 ac_top_builddir
=$ac_top_build_prefix
11982 .
) # We are building in place.
11984 ac_top_srcdir
=$ac_top_builddir_sub
11985 ac_abs_top_srcdir
=$ac_pwd ;;
11986 [\\/]* | ?
:[\\/]* ) # Absolute name.
11987 ac_srcdir
=$srcdir$ac_dir_suffix;
11988 ac_top_srcdir
=$srcdir
11989 ac_abs_top_srcdir
=$srcdir ;;
11990 *) # Relative name.
11991 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11992 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11993 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11995 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12005 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12006 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12011 # If the template does not know about datarootdir, expand it.
12012 # FIXME: This hack should be removed a few years after 2.60.
12013 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12024 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12025 *datarootdir
*) ac_datarootdir_seen
=yes;;
12026 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12028 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12031 ac_datarootdir_hack='
12032 s&@datadir@&$datadir&g
12033 s&@docdir@&$docdir&g
12034 s&@infodir@&$infodir&g
12035 s&@localedir@&$localedir&g
12036 s&@mandir@&$mandir&g
12037 s&\\\${datarootdir}&$datarootdir&g' ;;
12041 # Neutralize VPATH when `$srcdir' = `.'.
12042 # Shell code in configure.ac might set extrasub.
12043 # FIXME: do we really want to maintain this feature?
12044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12045 ac_sed_extra="$ac_vpsub
12048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12050 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12051 s|@configure_input@|
$ac_sed_conf_input|
;t t
12052 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12053 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12054 s
&@srcdir@
&$ac_srcdir&;t t
12055 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12056 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12057 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12058 s
&@builddir@
&$ac_builddir&;t t
12059 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12060 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12061 s
&@INSTALL@
&$ac_INSTALL&;t t
12062 $ac_datarootdir_hack
12064 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
12065 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12067 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12068 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
12069 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12070 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12072 which seems to be undefined. Please make sure it is defined" >&5
12073 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12074 which seems to be undefined. Please make sure it is defined" >&2;}
12076 rm -f "$ac_tmp/stdin"
12078 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12079 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12081 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12087 if test x"$ac_file" != x-; then
12089 $as_echo "/* $configure_input */" \
12090 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12091 } >"$ac_tmp/config.h" \
12092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12093 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12095 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12098 mv "$ac_tmp/config.h" "$ac_file" \
12099 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12102 $as_echo "/* $configure_input */" \
12103 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12104 || as_fn_error $? "could not create -" "$LINENO" 5
12108 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12109 $as_echo "$as_me: executing $ac_file commands" >&6;}
12114 case $ac_file$ac_mode in
12115 "config.h":H) echo > stamp-h ;;
12116 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
12118 for subdir in ${CONFIG_SRC_SUBDIR}
12120 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
12129 ac_clean_files=$ac_clean_files_save
12131 test $ac_write_fail = 0 ||
12132 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12135 # configure is writing to config.log, and then calls config.status.
12136 # config.status does its own redirection, appending to config.log.
12137 # Unfortunately, on DOS this fails, as config.log is still kept open
12138 # by configure, so config.status won't be able to
write to it
; its
12139 # output is simply discarded. So we exec the FD to /dev/null,
12140 # effectively closing config.log, so it can be properly (re)opened and
12141 # appended to by config.status. When coming back to configure, we
12142 # need to make the FD available again.
12143 if test "$no_create" != yes; then
12145 ac_config_status_args
=
12146 test "$silent" = yes &&
12147 ac_config_status_args
="$ac_config_status_args --quiet"
12149 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12151 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12152 # would make configure fail if this is the last instruction.
12153 $ac_cs_success || as_fn_exit
1
12155 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12157 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}