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
688 MAINTAINER_MODE_FALSE
717 program_transform_name
730 enable_option_checking
731 enable_maintainer_mode
742 enable_build_warnings
743 enable_gdb_build_warnings
747 enable_inprocess_agent
749 ac_precious_vars
='build_alias
763 # Initialize some variables set by options.
765 ac_init_version
=false
766 ac_unrecognized_opts
=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
777 program_transform_name
=s
,x
,x
,
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir
='${exec_prefix}/bin'
792 sbindir
='${exec_prefix}/sbin'
793 libexecdir
='${exec_prefix}/libexec'
794 datarootdir
='${prefix}/share'
795 datadir
='${datarootdir}'
796 sysconfdir
='${prefix}/etc'
797 sharedstatedir
='${prefix}/com'
798 localstatedir
='${prefix}/var'
799 includedir
='${prefix}/include'
800 oldincludedir
='/usr/include'
801 docdir
='${datarootdir}/doc/${PACKAGE}'
802 infodir
='${datarootdir}/info'
807 libdir
='${exec_prefix}/lib'
808 localedir
='${datarootdir}/locale'
809 mandir
='${datarootdir}/man'
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\
$ac_option
823 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828 # Accept the important Cygnus configure options, so we can diagnose typos.
830 case $ac_dashdash$ac_option in
834 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
836 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
839 -build |
--build |
--buil |
--bui |
--bu)
840 ac_prev
=build_alias
;;
841 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
842 build_alias
=$ac_optarg ;;
844 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
845 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
846 ac_prev
=cache_file
;;
847 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
848 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
849 cache_file
=$ac_optarg ;;
852 cache_file
=config.cache
;;
854 -datadir |
--datadir |
--datadi |
--datad)
856 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
857 datadir
=$ac_optarg ;;
859 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
860 |
--dataroo |
--dataro |
--datar)
861 ac_prev
=datarootdir
;;
862 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
863 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
864 datarootdir
=$ac_optarg ;;
866 -disable-* |
--disable-*)
867 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
870 as_fn_error $?
"invalid feature name: $ac_useropt"
871 ac_useropt_orig
=$ac_useropt
872 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
877 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878 ac_unrecognized_sep
=', ';;
880 eval enable_
$ac_useropt=no
;;
882 -docdir |
--docdir |
--docdi |
--doc |
--do)
884 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
887 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
889 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
892 -enable-* |
--enable-*)
893 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
896 as_fn_error $?
"invalid feature name: $ac_useropt"
897 ac_useropt_orig
=$ac_useropt
898 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
903 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904 ac_unrecognized_sep
=', ';;
906 eval enable_
$ac_useropt=\
$ac_optarg ;;
908 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
909 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
910 |
--exec |
--exe |
--ex)
911 ac_prev
=exec_prefix
;;
912 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
913 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
914 |
--exec=* |
--exe=* |
--ex=*)
915 exec_prefix
=$ac_optarg ;;
917 -gas |
--gas |
--ga |
--g)
918 # Obsolete; use --with-gas.
921 -help |
--help |
--hel |
--he |
-h)
923 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
924 ac_init_help
=recursive
;;
925 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
926 ac_init_help
=short
;;
928 -host |
--host |
--hos |
--ho)
929 ac_prev
=host_alias
;;
930 -host=* |
--host=* |
--hos=* |
--ho=*)
931 host_alias
=$ac_optarg ;;
933 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
935 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
937 htmldir
=$ac_optarg ;;
939 -includedir |
--includedir |
--includedi |
--included |
--include \
940 |
--includ |
--inclu |
--incl |
--inc)
941 ac_prev
=includedir
;;
942 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
943 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
944 includedir
=$ac_optarg ;;
946 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
948 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
949 infodir
=$ac_optarg ;;
951 -libdir |
--libdir |
--libdi |
--libd)
953 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
956 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
957 |
--libexe |
--libex |
--libe)
958 ac_prev
=libexecdir
;;
959 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
960 |
--libexe=* |
--libex=* |
--libe=*)
961 libexecdir
=$ac_optarg ;;
963 -localedir |
--localedir |
--localedi |
--localed |
--locale)
965 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
966 localedir
=$ac_optarg ;;
968 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
969 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
970 ac_prev
=localstatedir
;;
971 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
972 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
973 localstatedir
=$ac_optarg ;;
975 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
977 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
981 # Obsolete; use --without-fp.
984 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
985 |
--no-cr |
--no-c |
-n)
988 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
989 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
992 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
993 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
994 |
--oldin |
--oldi |
--old |
--ol |
--o)
995 ac_prev
=oldincludedir
;;
996 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
997 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
998 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
999 oldincludedir
=$ac_optarg ;;
1001 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1003 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1004 prefix
=$ac_optarg ;;
1006 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1007 |
--program-pre |
--program-pr |
--program-p)
1008 ac_prev
=program_prefix
;;
1009 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1010 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1011 program_prefix
=$ac_optarg ;;
1013 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1014 |
--program-suf |
--program-su |
--program-s)
1015 ac_prev
=program_suffix
;;
1016 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1017 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1018 program_suffix
=$ac_optarg ;;
1020 -program-transform-name |
--program-transform-name \
1021 |
--program-transform-nam |
--program-transform-na \
1022 |
--program-transform-n |
--program-transform- \
1023 |
--program-transform |
--program-transfor \
1024 |
--program-transfo |
--program-transf \
1025 |
--program-trans |
--program-tran \
1026 |
--progr-tra |
--program-tr |
--program-t)
1027 ac_prev
=program_transform_name
;;
1028 -program-transform-name=* |
--program-transform-name=* \
1029 |
--program-transform-nam=* |
--program-transform-na=* \
1030 |
--program-transform-n=* |
--program-transform-=* \
1031 |
--program-transform=* |
--program-transfor=* \
1032 |
--program-transfo=* |
--program-transf=* \
1033 |
--program-trans=* |
--program-tran=* \
1034 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1035 program_transform_name
=$ac_optarg ;;
1037 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1039 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1040 pdfdir
=$ac_optarg ;;
1042 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1044 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1047 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1048 |
-silent |
--silent |
--silen |
--sile |
--sil)
1051 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1053 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1055 sbindir
=$ac_optarg ;;
1057 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1058 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1059 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1061 ac_prev
=sharedstatedir
;;
1062 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1063 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1064 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1066 sharedstatedir
=$ac_optarg ;;
1068 -site |
--site |
--sit)
1070 -site=* |
--site=* |
--sit=*)
1073 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1075 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1076 srcdir
=$ac_optarg ;;
1078 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1079 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1080 ac_prev
=sysconfdir
;;
1081 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1082 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1083 sysconfdir
=$ac_optarg ;;
1085 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1086 ac_prev
=target_alias
;;
1087 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1088 target_alias
=$ac_optarg ;;
1090 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1093 -version |
--version |
--versio |
--versi |
--vers |
-V)
1094 ac_init_version
=: ;;
1097 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1100 as_fn_error $?
"invalid package name: $ac_useropt"
1101 ac_useropt_orig
=$ac_useropt
1102 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1107 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108 ac_unrecognized_sep
=', ';;
1110 eval with_
$ac_useropt=\
$ac_optarg ;;
1112 -without-* |
--without-*)
1113 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1116 as_fn_error $?
"invalid package name: $ac_useropt"
1117 ac_useropt_orig
=$ac_useropt
1118 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1123 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1124 ac_unrecognized_sep
=', ';;
1126 eval with_
$ac_useropt=no
;;
1129 # Obsolete; use --with-x.
1132 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1133 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1134 ac_prev
=x_includes
;;
1135 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1136 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1137 x_includes
=$ac_optarg ;;
1139 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1140 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1141 ac_prev
=x_libraries
;;
1142 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1143 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1144 x_libraries
=$ac_optarg ;;
1146 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1147 Try \`$0 --help' for more information"
1151 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1152 # Reject names that are not valid shell variable names.
1153 case $ac_envvar in #(
1154 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1155 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1157 eval $ac_envvar=\
$ac_optarg
1158 export $ac_envvar ;;
1161 # FIXME: should be removed in autoconf 3.0.
1162 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1164 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1171 if test -n "$ac_prev"; then
1172 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1173 as_fn_error $?
"missing argument to $ac_option"
1176 if test -n "$ac_unrecognized_opts"; then
1177 case $enable_option_checking in
1179 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1180 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184 # Check all directory arguments for consistency.
1185 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1186 datadir sysconfdir sharedstatedir localstatedir includedir \
1187 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1188 libdir localedir mandir
1190 eval ac_val
=\$
$ac_var
1191 # Remove trailing slashes.
1194 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1195 eval $ac_var=\
$ac_val;;
1197 # Be sure to have absolute directory names.
1199 [\\/$
]* | ?
:[\\/]* ) continue;;
1200 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1202 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1205 # There might be people who depend on the old broken behavior: `$host'
1206 # used to hold the argument of --host etc.
1207 # FIXME: To remove some day.
1210 target
=$target_alias
1212 # FIXME: To remove some day.
1213 if test "x$host_alias" != x
; then
1214 if test "x$build_alias" = x
; then
1215 cross_compiling
=maybe
1216 elif test "x$build_alias" != "x$host_alias"; then
1222 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1224 test "$silent" = yes && exec 6>/dev
/null
1227 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di
=`ls -di .` &&
1229 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1230 as_fn_error $?
"working directory cannot be determined"
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 as_fn_error $?
"pwd does not report name of working directory"
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237 ac_srcdir_defaulted
=yes
1238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir
=`$as_dirname -- "$as_myself" ||
1240 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241 X"$as_myself" : 'X\(//\)[^/]' \| \
1242 X"$as_myself" : 'X\(//\)$' \| \
1243 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244 $as_echo X"$as_myself" |
1245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1267 ac_srcdir_defaulted
=no
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1271 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1273 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1277 # When building in place, set srcdir=.
1278 if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 # Remove unnecessary trailing slashes from srcdir.
1282 # Double slashes in file names in object file debugging info
1283 # mess up M-x gdb in Emacs.
1285 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 for ac_var
in $ac_precious_vars; do
1288 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1289 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1290 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1291 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1295 # Report the --help message.
1297 if test "$ac_init_help" = "long"; then
1298 # Omit some internal or obsolete options to make the list less imposing.
1299 # This message is too long to be a string in the A/UX 3.1 sh.
1301 \`configure' configures this package to adapt to many kinds of systems.
1303 Usage: $0 [OPTION]... [VAR=VALUE]...
1305 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306 VAR=VALUE. See below for descriptions of some of the useful variables.
1308 Defaults for the options are specified in brackets.
1311 -h, --help display this help and exit
1312 --help=short display options specific to this package
1313 --help=recursive display the short help of all the included packages
1314 -V, --version display version information and exit
1315 -q, --quiet, --silent do not print \`checking ...' messages
1316 --cache-file=FILE cache test results in FILE [disabled]
1317 -C, --config-cache alias for \`--cache-file=config.cache'
1318 -n, --no-create do not create output files
1319 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321 Installation directories:
1322 --prefix=PREFIX install architecture-independent files in PREFIX
1323 [$ac_default_prefix]
1324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1327 By default, \`make install' will install all the files in
1328 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1329 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330 for instance \`--prefix=\$HOME'.
1332 For better control, use the options below.
1334 Fine tuning of the installation directories:
1335 --bindir=DIR user executables [EPREFIX/bin]
1336 --sbindir=DIR system admin executables [EPREFIX/sbin]
1337 --libexecdir=DIR program executables [EPREFIX/libexec]
1338 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1339 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1340 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1341 --libdir=DIR object code libraries [EPREFIX/lib]
1342 --includedir=DIR C header files [PREFIX/include]
1343 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1344 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1345 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1346 --infodir=DIR info documentation [DATAROOTDIR/info]
1347 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1348 --mandir=DIR man documentation [DATAROOTDIR/man]
1349 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1350 --htmldir=DIR html documentation [DOCDIR]
1351 --dvidir=DIR dvi documentation [DOCDIR]
1352 --pdfdir=DIR pdf documentation [DOCDIR]
1353 --psdir=DIR ps documentation [DOCDIR]
1359 --program-prefix=PREFIX prepend PREFIX to installed program names
1360 --program-suffix=SUFFIX append SUFFIX to installed program names
1361 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1364 --build=BUILD configure
for building on BUILD
[guessed
]
1365 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1366 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1370 if test -n "$ac_init_help"; then
1375 --disable-option-checking ignore unrecognized
--enable/--with options
1376 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1377 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1378 --enable-maintainer-mode
1379 enable make rules and dependencies not useful
(and
1380 sometimes confusing
) to the casual installer
1381 --disable-largefile omit support
for large files
1382 --enable-unit-tests Enable the inclusion of unit tests when compiling
1384 --disable-rpath do not hardcode runtime library paths
1385 --enable-werror treat compile warnings as errors
1386 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1387 --enable-gdb-build-warnings
1388 enable GDB specific build-time compiler warnings
if
1390 --enable-inprocess-agent
1394 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1395 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1396 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1397 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1398 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1399 --without-libipt-prefix don
't search for libipt in includedir and libdir
1400 --with-ust=PATH Specify prefix directory for the installed UST package
1401 Equivalent to --with-ust-include=PATH/include
1402 plus --with-ust-lib=PATH/lib
1403 --with-ust-include=PATH Specify directory for installed UST include files
1404 --with-ust-lib=PATH Specify the directory for the installed UST library
1405 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1406 --with-bugurl=URL Direct users to URL to report a bug
1407 --with-libthread-db=PATH
1408 use given libthread_db directly
1410 Some influential environment variables:
1411 CC C compiler command
1412 CFLAGS C compiler flags
1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1414 nonstandard directory <lib dir>
1415 LIBS libraries to pass to the linker, e.g. -l<library>
1416 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
1418 CXX C++ compiler command
1419 CXXFLAGS C++ compiler flags
1422 Use these variables to override the choices made by `configure' or to
help
1423 it to
find libraries and programs with nonstandard names
/locations.
1425 Report bugs to the package provider.
1430 if test "$ac_init_help" = "recursive"; then
1431 # If there are subdirs, report their specific --help.
1432 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1433 test -d "$ac_dir" ||
1434 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1439 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1441 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442 # A ".." for each directory in $ac_dir_suffix.
1443 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444 case $ac_top_builddir_sub in
1445 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1446 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1449 ac_abs_top_builddir
=$ac_pwd
1450 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1451 # for backward compatibility:
1452 ac_top_builddir
=$ac_top_build_prefix
1455 .
) # We are building in place.
1457 ac_top_srcdir
=$ac_top_builddir_sub
1458 ac_abs_top_srcdir
=$ac_pwd ;;
1459 [\\/]* | ?
:[\\/]* ) # Absolute name.
1460 ac_srcdir
=$srcdir$ac_dir_suffix;
1461 ac_top_srcdir
=$srcdir
1462 ac_abs_top_srcdir
=$srcdir ;;
1464 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1466 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1468 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1470 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1471 # Check for guested configure.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1479 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1489 generated by GNU Autoconf
2.69
1491 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1492 This configure
script is free software
; the Free Software Foundation
1493 gives unlimited permission to copy
, distribute and modify it.
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile
()
1507 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1508 rm -f conftest.
$ac_objext
1509 if { { ac_try
="$ac_compile"
1511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.$ac_objext; then :
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536 as_fn_set_status $ac_retval
1538 } # ac_fn_c_try_compile
1540 # ac_fn_cxx_try_compile LINENO
1541 # ----------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_cxx_try_compile ()
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1550 *) ac_try_echo
=$ac_try;;
1552 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1556 if test -s conftest.err
; then
1557 grep -v '^ *+' conftest.err
>conftest.er1
1558 cat conftest.er1
>&5
1559 mv -f conftest.er1 conftest.err
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_cxx_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.
$ac_objext; then :
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.
$ac_ext >&5
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status
$ac_retval
1576 } # ac_fn_cxx_try_compile
1578 # ac_fn_c_try_cpp LINENO
1579 # ----------------------
1580 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1583 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1584 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } > conftest.i && {
1600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1615 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1616 # -------------------------------------------------------
1617 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1618 # the include files in INCLUDES and setting the cache variable VAR
1620 ac_fn_c_check_header_mongrel ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if eval \${$3+:} false; then :
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625 $as_echo_n "checking for $2... " >&6; }
1626 if eval \${$3+:} false; then :
1627 $as_echo_n "(cached) " >&6
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1633 # Is the header compilable?
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1635 $as_echo_n "checking $2 usability... " >&6; }
1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1641 if ac_fn_c_try_compile "$LINENO"; then :
1642 ac_header_compiler=yes
1644 ac_header_compiler=no
1646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1648 $as_echo "$ac_header_compiler" >&6; }
1650 # Is the header present?
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1652 $as_echo_n "checking $2 presence... " >&6; }
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1657 if ac_fn_c_try_cpp "$LINENO"; then :
1658 ac_header_preproc=yes
1660 ac_header_preproc=no
1662 rm -f conftest.err conftest.i conftest.$ac_ext
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1664 $as_echo "$ac_header_preproc" >&6; }
1666 # So? What about this header?
1667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1670 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1672 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1676 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1678 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1680 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1682 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1684 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690 $as_echo_n "(cached) " >&6
1692 eval "$3=\$ac_header_compiler"
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696 $as_echo "$ac_res" >&6; }
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 } # ac_fn_c_check_header_mongrel
1702 # ac_fn_c_try_run LINENO
1703 # ----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705 # that executables *can* be run.
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_link"
1711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1712 *) ac_try_echo
=$ac_try;;
1714 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>&5
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1720 { { case "(($ac_try" in
1721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_try") 2>&5
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; }; }; then :
1732 $as_echo "$as_me: program exited with status $ac_status" >&5
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1736 ac_retval=$ac_status
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1744 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745 # -------------------------------------------------------
1746 # Tests whether HEADER exists and can be compiled using the include files in
1747 # INCLUDES, setting the cache variable VAR accordingly.
1748 ac_fn_c_check_header_compile ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if eval \${$3+:} false; then :
1754 $as_echo_n "(cached) " >&6
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1761 if ac_fn_c_try_compile "$LINENO"; then :
1766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 } # ac_fn_c_check_header_compile
1775 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1776 # -------------------------------------------
1777 # Tests whether TYPE exists after having included INCLUDES, setting cache
1778 # variable VAR accordingly.
1779 ac_fn_c_check_type ()
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1813 if ac_fn_c_try_compile "$LINENO"; then :
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 } # ac_fn_c_check_type
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1839 *) ac_try_echo
=$ac_try;;
1841 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1845 if test -s conftest.err
; then
1846 grep -v '^ *+' conftest.err
>conftest.er1
1847 cat conftest.er1
>&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest
$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 test -x conftest
$ac_exeext
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.
$ac_ext >&5
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status
$ac_retval
1873 } # ac_fn_c_try_link
1875 # ac_fn_c_check_func LINENO FUNC VAR
1876 # ----------------------------------
1877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878 ac_fn_c_check_func
()
1880 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \
${$3+:} false
; then :
1884 $as_echo_n "(cached) " >&6
1886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890 #define $2 innocuous_$2
1892 /* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below.
1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895 <limits.h> exists even on freestanding compilers. */
1898 # include <limits.h>
1900 # include <assert.h>
1905 /* Override any GCC internal prototype to avoid an error.
1906 Use char because int might match the return type of a GCC
1907 builtin and then its argument prototype would still apply. */
1912 /* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915 #if defined __stub_$2 || defined __stub___$2
1927 if ac_fn_c_try_link
"$LINENO"; then :
1932 rm -f core conftest.err conftest.
$ac_objext \
1933 conftest
$ac_exeext conftest.
$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 } # ac_fn_c_check_func
1942 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1943 # ---------------------------------------------
1944 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1946 ac_fn_c_check_decl
()
1948 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1949 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1950 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1952 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1953 if eval \
${$3+:} false
; then :
1954 $as_echo_n "(cached) " >&6
1956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1962 #ifndef $as_decl_name
1964 (void) $as_decl_use;
1966 (void) $as_decl_name;
1974 if ac_fn_c_try_compile
"$LINENO"; then :
1979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 } # ac_fn_c_check_decl
1988 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1989 # ----------------------------------------------------
1990 # Tries to find if the field MEMBER exists in type AGGR, after including
1991 # INCLUDES, setting cache variable VAR accordingly.
1992 ac_fn_c_check_member
()
1994 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1996 $as_echo_n "checking for $2.$3... " >&6; }
1997 if eval \
${$4+:} false
; then :
1998 $as_echo_n "(cached) " >&6
2000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2013 if ac_fn_c_try_compile
"$LINENO"; then :
2016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2023 if (sizeof ac_aggr.$3)
2029 if ac_fn_c_try_compile
"$LINENO"; then :
2034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 } # ac_fn_c_check_member
2045 # ac_fn_cxx_try_link LINENO
2046 # -------------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded.
2048 ac_fn_cxx_try_link
()
2050 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2051 rm -f conftest.
$ac_objext conftest
$ac_exeext
2052 if { { ac_try
="$ac_link"
2054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>conftest.err
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && {
2068 test -z "$ac_cxx_werror_flag" ||
2069 test ! -s conftest.err
2070 } && test -s conftest$ac_exeext && {
2071 test "$cross_compiling" = yes ||
2072 test -x conftest$ac_exeext
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2081 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2082 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2083 # interfere with the next link command; also delete a directory that is
2084 # left behind by Apple's compiler. We do this before executing the actions.
2085 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status $ac_retval
2089 } # ac_fn_cxx_try_link
2091 # ac_fn_cxx_check_func LINENO FUNC VAR
2092 # ------------------------------------
2093 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2094 ac_fn_cxx_check_func ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if eval \${$3+:} false; then :
2100 $as_echo_n "(cached) " >&6
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2104 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2106 #define $2 innocuous_$2
2108 /* System header to define __stub macros and hopefully few prototypes,
2109 which can conflict with char $2 (); below.
2110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2111 <limits.h> exists even on freestanding compilers. */
2114 # include <limits.h>
2116 # include <assert.h>
2121 /* Override any GCC internal prototype to avoid an error.
2122 Use char because int might match the return type of a GCC
2123 builtin and then its argument prototype would still apply. */
2128 /* The GNU C library defines this for functions which it implements
2129 to always fail with ENOSYS. Some functions are actually named
2130 something starting with __ and the normal name is an alias. */
2131 #if defined __stub_$2 || defined __stub___$2
2143 if ac_fn_cxx_try_link "$LINENO"; then :
2148 rm -f core conftest.err conftest.$ac_objext \
2149 conftest$ac_exeext conftest.$ac_ext
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 } # ac_fn_cxx_check_func
2158 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2159 # --------------------------------------------
2160 # Tries to find the compile-time value of EXPR in a program that includes
2161 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2163 ac_fn_c_compute_int ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 if test "$cross_compiling" = yes; then
2167 # Depending upon the size, compute the lo and hi bounds.
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 static int test_array [1 - 2 * !(($2) >= 0)];
2176 return test_array [0];
2182 if ac_fn_c_try_compile "$LINENO"; then :
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2191 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2193 return test_array [0];
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_hi=$ac_mid; break
2202 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2203 if test $ac_lo -le $ac_mid; then
2207 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2218 static int test_array [1 - 2 * !(($2) < 0)];
2220 return test_array [0];
2226 if ac_fn_c_try_compile "$LINENO"; then :
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2235 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2237 return test_array [0];
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 ac_lo=$ac_mid; break
2246 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2247 if test $ac_mid -le $ac_hi; then
2251 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 # Binary search between lo and hi bounds.
2262 while test "x$ac_lo" != "x$ac_hi"; do
2263 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2270 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2272 return test_array [0];
2278 if ac_fn_c_try_compile "$LINENO"; then :
2281 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2293 static long int longval () { return $2; }
2294 static unsigned long int ulongval () { return $2; }
2301 FILE *f = fopen ("conftest.val", "w");
2306 long int i = longval ();
2309 fprintf (f, "%ld", i);
2313 unsigned long int i = ulongval ();
2316 fprintf (f, "%lu", i);
2318 /* Do not output a trailing newline, as this causes \r\n confusion
2319 on some platforms. */
2320 return ferror (f) || fclose (f) != 0;
2326 if ac_fn_c_try_run "$LINENO"; then :
2327 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2332 conftest.$ac_objext conftest.beam conftest.$ac_ext
2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337 as_fn_set_status $ac_retval
2339 } # ac_fn_c_compute_int
2340 cat >config.log <<_ACEOF
2341 This file contains any messages produced by compilers while
2342 running configure, to aid debugging if configure makes a mistake.
2344 It was created by $as_me, which was
2345 generated by GNU Autoconf 2.69. Invocation command line was
2357 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2358 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2359 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2360 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2361 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2363 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2364 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2366 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2367 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2368 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2369 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2370 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2371 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2372 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 test -z "$as_dir" && as_dir=.
2381 $as_echo "PATH: $as_dir"
2397 # Keep a trace of the command line.
2398 # Strip out --no-create and --no-recursion so they do not pile up.
2399 # Strip out --silent because we don't want to record it for future runs.
2400 # Also quote any args containing shell meta-characters.
2401 # Make two passes to allow for proper duplicate-argument suppression.
2405 ac_must_keep_next=false
2411 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2412 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2413 | -silent | --silent | --silen | --sile | --sil)
2416 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2419 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2421 as_fn_append ac_configure_args1 " '$ac_arg'"
2422 if test $ac_must_keep_next = true; then
2423 ac_must_keep_next=false # Got value, back to normal.
2426 *=* | --config-cache | -C | -disable-* | --disable-* \
2427 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2428 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2429 | -with-* | --with-* | -without-* | --without-* | --x)
2430 case "$ac_configure_args0 " in
2431 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2434 -* ) ac_must_keep_next=true ;;
2437 as_fn_append ac_configure_args " '$ac_arg'"
2442 { ac_configure_args0=; unset ac_configure_args0;}
2443 { ac_configure_args1=; unset ac_configure_args1;}
2445 # When interrupted or exit'd, cleanup temporary files, and complete
2446 # config.log. We remove comments because anyway the quotes in there
2447 # would cause problems or look ugly.
2448 # WARNING: Use '\'' to represent an apostrophe within the trap.
2449 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2450 trap 'exit_status=$?
2451 # Save into config.log some information that might help in debugging.
2455 $as_echo "## ---------------- ##
2456 ## Cache variables. ##
2457 ## ---------------- ##"
2459 # The following way of writing the cache mishandles newlines in values,
2461 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2462 eval ac_val=\$$ac_var
2466 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2467 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2470 _ | IFS | as_nl) ;; #(
2471 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2472 *) { eval $ac_var=; unset $ac_var;} ;;
2477 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2478 *${as_nl}ac_space=\ *)
2480 "s/'\''/'\''\\\\'\'''\''/g;
2481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2491 $as_echo "## ----------------- ##
2492 ## Output variables. ##
2493 ## ----------------- ##"
2495 for ac_var in $ac_subst_vars
2497 eval ac_val=\$$ac_var
2499 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2501 $as_echo "$ac_var='\''$ac_val'\''"
2505 if test -n "$ac_subst_files"; then
2506 $as_echo "## ------------------- ##
2507 ## File substitutions. ##
2508 ## ------------------- ##"
2510 for ac_var in $ac_subst_files
2512 eval ac_val=\$$ac_var
2514 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2516 $as_echo "$ac_var='\''$ac_val'\''"
2521 if test -s confdefs.h; then
2522 $as_echo "## ----------- ##
2529 test "$ac_signal" != 0 &&
2530 $as_echo "$as_me: caught signal $ac_signal"
2531 $as_echo "$as_me: exit $exit_status"
2533 rm -f core *.core core.conftest.* &&
2534 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2537 for ac_signal in 1 2 13 15; do
2538 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2542 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2543 rm -f -r conftest* confdefs.h
2545 $as_echo "/* confdefs.h */" > confdefs.h
2547 # Predefined preprocessor variables.
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_NAME "$PACKAGE_NAME"
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_STRING "$PACKAGE_STRING"
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_URL "$PACKAGE_URL"
2574 # Let the site file select an alternate cache file if it wants to.
2575 # Prefer an explicitly selected file to automatically selected ones.
2578 if test -n "$CONFIG_SITE"; then
2579 # We do not want a PATH search for config.site.
2580 case $CONFIG_SITE in #((
2581 -*) ac_site_file1=./$CONFIG_SITE;;
2582 */*) ac_site_file1=$CONFIG_SITE;;
2583 *) ac_site_file1=./$CONFIG_SITE;;
2585 elif test "x$prefix" != xNONE; then
2586 ac_site_file1=$prefix/share/config.site
2587 ac_site_file2=$prefix/etc/config.site
2589 ac_site_file1=$ac_default_prefix/share/config.site
2590 ac_site_file2=$ac_default_prefix/etc/config.site
2592 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2594 test "x$ac_site_file" = xNONE && continue
2595 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2597 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2598 sed 's/^/| /' "$ac_site_file" >&5
2600 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 as_fn_error $? "failed to load site
script $ac_site_file
2603 See \
`config.log' for more details" "$LINENO" 5; }
2607 if test -r "$cache_file"; then
2608 # Some versions of bash will fail to source /dev/null (special files
2609 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2610 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2612 $as_echo "$as_me: loading cache $cache_file" >&6;}
2614 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2615 *) . "./$cache_file";;
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2620 $as_echo "$as_me: creating cache $cache_file" >&6;}
2624 as_fn_append ac_header_list " stdlib.h"
2625 as_fn_append ac_header_list " unistd.h"
2626 as_fn_append ac_header_list " sys/param.h"
2627 # Check that the precious variables saved in the cache have kept the same
2629 ac_cache_corrupted=false
2630 for ac_var in $ac_precious_vars; do
2631 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2632 eval ac_new_set=\$ac_env_${ac_var}_set
2633 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2634 eval ac_new_val=\$ac_env_${ac_var}_value
2635 case $ac_old_set,$ac_new_set in
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2638 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2639 ac_cache_corrupted=: ;;
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2642 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2643 ac_cache_corrupted=: ;;
2646 if test "x$ac_old_val" != "x$ac_new_val"; then
2647 # differences in whitespace do not lead to failure.
2648 ac_old_val_w=`echo x
$ac_old_val`
2649 ac_new_val_w=`echo x
$ac_new_val`
2650 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2652 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2653 ac_cache_corrupted=:
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2656 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2657 eval $ac_var=\$ac_old_val
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2660 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2662 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2665 # Pass precious variables to config.status.
2666 if test "$ac_new_set" = set; then
2668 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2669 *) ac_arg=$ac_var=$ac_new_val ;;
2671 case " $ac_configure_args " in
2672 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2673 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2677 if $ac_cache_corrupted; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2681 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2682 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2684 ## -------------------- ##
2685 ## Main body of script. ##
2686 ## -------------------- ##
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698 ac_config_headers="$ac_config_headers config.h:config.in"
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2703 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2704 # Check whether --enable-maintainer-mode was given.
2705 if test "${enable_maintainer_mode+set}" = set; then :
2706 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2708 USE_MAINTAINER_MODE=no
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2712 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2713 if test $USE_MAINTAINER_MODE = yes; then
2714 MAINTAINER_MODE_TRUE=
2715 MAINTAINER_MODE_FALSE='#'
2717 MAINTAINER_MODE_TRUE='#'
2718 MAINTAINER_MODE_FALSE=
2721 MAINT=$MAINTAINER_MODE_TRUE
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_CC+:} false; then :
2736 $as_echo_n "(cached) " >&6
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2769 if test -z "$ac_cv_prog_CC"; then
2771 # Extract the first word of "gcc", so it can be a program name with args.
2772 set dummy gcc; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2776 $as_echo_n "(cached) " >&6
2778 if test -n "$ac_ct_CC"; then
2779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_ac_ct_CC="gcc"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2799 if test -n "$ac_ct_CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2801 $as_echo "$ac_ct_CC" >&6; }
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2807 if test "x$ac_ct_CC" = x; then
2810 case $cross_compiling:$ac_tool_warned in
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814 ac_tool_warned=yes ;;
2822 if test -z "$CC"; then
2823 if test -n "$ac_tool_prefix"; then
2824 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2825 set dummy ${ac_tool_prefix}cc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_CC+:} false; then :
2829 $as_echo_n "(cached) " >&6
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_CC="${ac_tool_prefix}cc"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 if test -n "$CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 $as_echo "$CC" >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2863 if test -z "$CC"; then
2864 # Extract the first word of "cc", so it can be a program name with args.
2865 set dummy cc; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if ${ac_cv_prog_CC+:} false; then :
2869 $as_echo_n "(cached) " >&6
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2883 ac_prog_rejected=yes
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 if test $ac_prog_rejected = yes; then
2895 # We found a bogon in the path, so make sure we never use it.
2896 set dummy $ac_cv_prog_CC
2898 if test $# != 0; then
2899 # We chose a different compiler from the bogus one.
2900 # However, it has the same basename, so the bogon will be chosen
2901 # first if we set CC to just the basename; use the full file name.
2903 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2919 if test -z "$CC"; then
2920 if test -n "$ac_tool_prefix"; then
2921 for ac_prog in cl.exe
2923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_CC+:} false; then :
2928 $as_echo_n "(cached) " >&6
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 if test -n "$CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2960 test -n "$CC" && break
2963 if test -z "$CC"; then
2965 for ac_prog in cl.exe
2967 # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy $ac_prog; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_ac_ct_CC="$ac_prog"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 $as_echo "$ac_ct_CC" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3004 test -n "$ac_ct_CC" && break
3007 if test "x$ac_ct_CC" = x; then
3010 case $cross_compiling:$ac_tool_warned in
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3023 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3026 See \
`config.log' for more details" "$LINENO" 5; }
3028 # Provide some information about the compiler.
3029 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3032 for ac_option in --version -v -V -qversion; do
3033 { { ac_try="$ac_compiler $ac_option >&5"
3035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3036 *) ac_try_echo
=$ac_try;;
3038 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3042 if test -s conftest.err
; then
3044 ... rest of stderr output deleted ...
3045 10q' conftest.err
>conftest.er1
3046 cat conftest.er1
>&5
3048 rm -f conftest.er1 conftest.err
3049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050 test $ac_status = 0; }
3053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3054 /* end confdefs.h. */
3064 ac_clean_files_save
=$ac_clean_files
3065 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3070 $as_echo_n "checking whether the C compiler works... " >&6; }
3071 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3073 # The possible output files:
3074 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3077 for ac_file
in $ac_files
3080 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3081 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3086 if { { ac_try
="$ac_link_default"
3088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092 $as_echo "$ac_try_echo"; } >&5
3093 (eval "$ac_link_default") 2>&5
3095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096 test $ac_status = 0; }; then :
3097 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3098 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3099 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3100 # so that the user can short-circuit this test for compilers unknown to
3102 for ac_file in $ac_files ''
3104 test -f "$ac_file" || continue
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3109 # We found the default executable, but exeext='' is most
3113 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3115 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 # We set ac_cv_exeext here because the later test for it is not
3118 # safe: cross compilers may not add the suffix if given an `-o'
3119 # argument, so we may need to know it at that point already.
3120 # Even if this section looks crufty: it has the advantage of
3127 test "$ac_cv_exeext" = no && ac_cv_exeext=
3132 if test -z "$ac_file"; then :
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 $as_echo "$as_me: failed program was:" >&5
3136 sed 's
/^
/|
/' conftest.$ac_ext >&5
3138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3140 as_fn_error 77 "C compiler cannot create executables
3141 See \`config.log
' for more details" "$LINENO" 5; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3144 $as_echo "yes" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3147 $as_echo_n "checking for C compiler default output file name... " >&6; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3149 $as_echo "$ac_file" >&6; }
3150 ac_exeext=$ac_cv_exeext
3152 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3153 ac_clean_files=$ac_clean_files_save
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3155 $as_echo_n "checking for suffix of executables... " >&6; }
3156 if { { ac_try="$ac_link"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163 (eval "$ac_link") 2>&5
3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166 test $ac_status = 0; }; then :
3167 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3168 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3169 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3171 for ac_file
in conftest.exe conftest conftest.
*; do
3172 test -f "$ac_file" ||
continue
3174 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3175 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3184 See \`config.log' for more details" "$LINENO" 5; }
3186 rm -f conftest conftest
$ac_cv_exeext
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3188 $as_echo "$ac_cv_exeext" >&6; }
3190 rm -f conftest.
$ac_ext
3191 EXEEXT
=$ac_cv_exeext
3193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3199 FILE *f = fopen ("conftest.out", "w");
3200 return ferror (f) || fclose (f) != 0;
3206 ac_clean_files
="$ac_clean_files conftest.out"
3207 # Check that the compiler produces executables we can run. If not, either
3208 # the compiler is broken, or we cross compile.
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3210 $as_echo_n "checking whether we are cross compiling... " >&6; }
3211 if test "$cross_compiling" != yes; then
3212 { { ac_try
="$ac_link"
3214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }
3223 if { ac_try='./conftest$ac_cv_exeext'
3224 { { case "(($ac_try" in
3225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3226 *) ac_try_echo
=$ac_try;;
3228 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_try") 2>&5
3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }; }; then
3236 if test "$cross_compiling" = maybe
; then
3239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241 as_fn_error $?
"cannot run C compiled programs.
3242 If you meant to cross compile, use \`--host'.
3243 See \`config.log' for more details" "$LINENO" 5; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3248 $as_echo "$cross_compiling" >&6; }
3250 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3251 ac_clean_files
=$ac_clean_files_save
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3253 $as_echo_n "checking for suffix of object files... " >&6; }
3254 if ${ac_cv_objext+:} false
; then :
3255 $as_echo_n "(cached) " >&6
3257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3268 rm -f conftest.o conftest.obj
3269 if { { ac_try
="$ac_compile"
3271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_compile") 2>&5
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; then :
3280 for ac_file in conftest.o conftest.obj conftest.*; do
3281 test -f "$ac_file" || continue;
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3284 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3289 $as_echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3295 See \
`config.log' for more details" "$LINENO" 5; }
3297 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3300 $as_echo "$ac_cv_objext" >&6; }
3301 OBJEXT=$ac_cv_objext
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3304 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3305 if ${ac_cv_c_compiler_gnu+:} false; then :
3306 $as_echo_n "(cached) " >&6
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3322 if ac_fn_c_try_compile "$LINENO"; then :
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3332 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3333 if test $ac_compiler_gnu = yes; then
3338 ac_test_CFLAGS=${CFLAGS+set}
3339 ac_save_CFLAGS=$CFLAGS
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3341 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3342 if ${ac_cv_prog_cc_g+:} false; then :
3343 $as_echo_n "(cached) " >&6
3345 ac_save_c_werror_flag=$ac_c_werror_flag
3346 ac_c_werror_flag=yes
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3360 if ac_fn_c_try_compile "$LINENO"; then :
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3375 if ac_fn_c_try_compile "$LINENO"; then :
3378 ac_c_werror_flag=$ac_save_c_werror_flag
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3391 if ac_fn_c_try_compile "$LINENO"; then :
3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 ac_c_werror_flag=$ac_save_c_werror_flag
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3402 $as_echo "$ac_cv_prog_cc_g" >&6; }
3403 if test "$ac_test_CFLAGS" = set; then
3404 CFLAGS=$ac_save_CFLAGS
3405 elif test $ac_cv_prog_cc_g = yes; then
3406 if test "$GCC" = yes; then
3412 if test "$GCC" = yes; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3419 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3420 if ${ac_cv_prog_cc_c89+:} false; then :
3421 $as_echo_n "(cached) " >&6
3423 ac_cv_prog_cc_c89=no
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3430 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3431 struct buf { int x; };
3432 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3433 static char *e (p, i)
3439 static char *f (char * (*g) (char **, int), char **p, ...)
3444 s = g (p, va_arg (v,int));
3449 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3450 function prototypes and stuff, but not '\xHH' hex character constants.
3451 These don't provoke an error unfortunately, instead are silently treated
3452 as 'x'. The following induces an error, until -std is added to get
3453 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3454 array size at least. It's necessary to write '\x00'==0 to get something
3455 that's true only with -std. */
3456 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3458 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3459 inside strings and character constants. */
3461 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3463 int test (int i, double x);
3464 struct s1 {int (*f) (int a);};
3465 struct s2 {int (*f) (double a);};
3466 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3472 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3477 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3478 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3480 CC="$ac_save_CC $ac_arg"
3481 if ac_fn_c_try_compile "$LINENO"; then :
3482 ac_cv_prog_cc_c89=$ac_arg
3484 rm -f core conftest.err conftest.$ac_objext
3485 test "x$ac_cv_prog_cc_c89" != "xno" && break
3487 rm -f conftest.$ac_ext
3492 case "x$ac_cv_prog_cc_c89" in
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3495 $as_echo "none needed" >&6; } ;;
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3498 $as_echo "unsupported" >&6; } ;;
3500 CC="$CC $ac_cv_prog_cc_c89"
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3502 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3504 if test "x$ac_cv_prog_cc_c89" != xno; then :
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515 ac_cpp='$CXXCPP $CPPFLAGS'
3516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3519 if test -z "$CXX"; then
3520 if test -n "$CCC"; then
3523 if test -n "$ac_tool_prefix"; then
3524 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_CXX+:} false; then :
3531 $as_echo_n "(cached) " >&6
3533 if test -n "$CXX"; then
3534 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 if test -n "$CXX"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3556 $as_echo "$CXX" >&6; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3563 test -n "$CXX" && break
3566 if test -z "$CXX"; then
3568 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3575 $as_echo_n "(cached) " >&6
3577 if test -n "$ac_ct_CXX"; then
3578 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587 ac_cv_prog_ac_ct_CXX="$ac_prog"
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3598 if test -n "$ac_ct_CXX"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3600 $as_echo "$ac_ct_CXX" >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3607 test -n "$ac_ct_CXX" && break
3610 if test "x$ac_ct_CXX" = x; then
3613 case $cross_compiling:$ac_tool_warned in
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3617 ac_tool_warned=yes ;;
3625 # Provide some information about the compiler.
3626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3629 for ac_option in --version -v -V -qversion; do
3630 { { ac_try="$ac_compiler $ac_option >&5"
3632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3633 *) ac_try_echo
=$ac_try;;
3635 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3639 if test -s conftest.err
; then
3641 ... rest of stderr output deleted ...
3642 10q' conftest.err
>conftest.er1
3643 cat conftest.er1
>&5
3645 rm -f conftest.er1 conftest.err
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3651 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3652 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3653 $as_echo_n "(cached) " >&6
3655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3669 if ac_fn_cxx_try_compile
"$LINENO"; then :
3674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3675 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3679 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3680 if test $ac_compiler_gnu = yes; then
3685 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3686 ac_save_CXXFLAGS
=$CXXFLAGS
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3688 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3689 if ${ac_cv_prog_cxx_g+:} false
; then :
3690 $as_echo_n "(cached) " >&6
3692 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3693 ac_cxx_werror_flag
=yes
3696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3707 if ac_fn_cxx_try_compile
"$LINENO"; then :
3708 ac_cv_prog_cxx_g
=yes
3711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3722 if ac_fn_cxx_try_compile
"$LINENO"; then :
3725 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3738 if ac_fn_cxx_try_compile
"$LINENO"; then :
3739 ac_cv_prog_cxx_g
=yes
3741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3746 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3749 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3750 if test "$ac_test_CXXFLAGS" = set; then
3751 CXXFLAGS
=$ac_save_CXXFLAGS
3752 elif test $ac_cv_prog_cxx_g = yes; then
3753 if test "$GXX" = yes; then
3759 if test "$GXX" = yes; then
3766 ac_cpp
='$CPP $CPPFLAGS'
3767 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3773 ac_cpp
='$CPP $CPPFLAGS'
3774 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3778 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3779 # On Suns, sometimes $CPP names a directory.
3780 if test -n "$CPP" && test -d "$CPP"; then
3783 if test -z "$CPP"; then
3784 if ${ac_cv_prog_CPP+:} false
; then :
3785 $as_echo_n "(cached) " >&6
3787 # Double quotes because CPP needs to be expanded
3788 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3791 for ac_c_preproc_warn_flag
in '' yes
3793 # Use a header file that comes with gcc, so configuring glibc
3794 # with a fresh cross-compiler works.
3795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796 # <limits.h> exists even on freestanding compilers.
3797 # On the NeXT, cc -E runs the code through the compiler's parser,
3798 # not just through cpp. "Syntax error" is here to catch this case.
3799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3802 # include <limits.h>
3804 # include <assert.h>
3808 if ac_fn_c_try_cpp
"$LINENO"; then :
3811 # Broken: fails on valid input.
3814 rm -f conftest.err conftest.i conftest.
$ac_ext
3816 # OK, works on sane cases. Now check whether nonexistent headers
3817 # can be detected and how.
3818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820 #include <ac_nonexistent.h>
3822 if ac_fn_c_try_cpp
"$LINENO"; then :
3823 # Broken: success on invalid input.
3826 # Passes both tests.
3830 rm -f conftest.err conftest.i conftest.
$ac_ext
3833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3834 rm -f conftest.i conftest.err conftest.
$ac_ext
3835 if $ac_preproc_ok; then :
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3848 $as_echo "$CPP" >&6; }
3850 for ac_c_preproc_warn_flag
in '' yes
3852 # Use a header file that comes with gcc, so configuring glibc
3853 # with a fresh cross-compiler works.
3854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855 # <limits.h> exists even on freestanding compilers.
3856 # On the NeXT, cc -E runs the code through the compiler's parser,
3857 # not just through cpp. "Syntax error" is here to catch this case.
3858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3861 # include <limits.h>
3863 # include <assert.h>
3867 if ac_fn_c_try_cpp
"$LINENO"; then :
3870 # Broken: fails on valid input.
3873 rm -f conftest.err conftest.i conftest.
$ac_ext
3875 # OK, works on sane cases. Now check whether nonexistent headers
3876 # can be detected and how.
3877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3879 #include <ac_nonexistent.h>
3881 if ac_fn_c_try_cpp
"$LINENO"; then :
3882 # Broken: success on invalid input.
3885 # Passes both tests.
3889 rm -f conftest.err conftest.i conftest.
$ac_ext
3892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3893 rm -f conftest.i conftest.err conftest.
$ac_ext
3894 if $ac_preproc_ok; then :
3897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3900 See \`config.log' for more details" "$LINENO" 5; }
3904 ac_cpp
='$CPP $CPPFLAGS'
3905 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3911 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3912 if ${ac_cv_path_GREP+:} false
; then :
3913 $as_echo_n "(cached) " >&6
3915 if test -z "$GREP"; then
3916 ac_path_GREP_found
=false
3917 # Loop through the user's path and test for each of PROGNAME-LIST
3918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3919 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3922 test -z "$as_dir" && as_dir
=.
3923 for ac_prog
in grep ggrep
; do
3924 for ac_exec_ext
in '' $ac_executable_extensions; do
3925 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3926 as_fn_executable_p
"$ac_path_GREP" ||
continue
3927 # Check for GNU ac_path_GREP and select it if it is found.
3928 # Check for GNU $ac_path_GREP
3929 case `"$ac_path_GREP" --version 2>&1` in
3931 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3934 $as_echo_n 0123456789 >"conftest.in"
3937 cat "conftest.in" "conftest.in" >"conftest.tmp"
3938 mv "conftest.tmp" "conftest.in"
3939 cp "conftest.in" "conftest.nl"
3940 $as_echo 'GREP' >> "conftest.nl"
3941 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3942 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3943 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3944 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3945 # Best one so far, save it but keep looking for a better one
3946 ac_cv_path_GREP
="$ac_path_GREP"
3947 ac_path_GREP_max
=$ac_count
3949 # 10*(2^10) chars as input seems more than enough
3950 test $ac_count -gt 10 && break
3952 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3955 $ac_path_GREP_found && break 3
3960 if test -z "$ac_cv_path_GREP"; then
3961 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3964 ac_cv_path_GREP
=$GREP
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3969 $as_echo "$ac_cv_path_GREP" >&6; }
3970 GREP
="$ac_cv_path_GREP"
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3974 $as_echo_n "checking for egrep... " >&6; }
3975 if ${ac_cv_path_EGREP+:} false
; then :
3976 $as_echo_n "(cached) " >&6
3978 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3979 then ac_cv_path_EGREP
="$GREP -E"
3981 if test -z "$EGREP"; then
3982 ac_path_EGREP_found
=false
3983 # Loop through the user's path and test for each of PROGNAME-LIST
3984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3985 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3988 test -z "$as_dir" && as_dir
=.
3989 for ac_prog
in egrep; do
3990 for ac_exec_ext
in '' $ac_executable_extensions; do
3991 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3992 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3993 # Check for GNU ac_path_EGREP and select it if it is found.
3994 # Check for GNU $ac_path_EGREP
3995 case `"$ac_path_EGREP" --version 2>&1` in
3997 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4000 $as_echo_n 0123456789 >"conftest.in"
4003 cat "conftest.in" "conftest.in" >"conftest.tmp"
4004 mv "conftest.tmp" "conftest.in"
4005 cp "conftest.in" "conftest.nl"
4006 $as_echo 'EGREP' >> "conftest.nl"
4007 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4008 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4009 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4010 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4011 # Best one so far, save it but keep looking for a better one
4012 ac_cv_path_EGREP
="$ac_path_EGREP"
4013 ac_path_EGREP_max
=$ac_count
4015 # 10*(2^10) chars as input seems more than enough
4016 test $ac_count -gt 10 && break
4018 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4021 $ac_path_EGREP_found && break 3
4026 if test -z "$ac_cv_path_EGREP"; then
4027 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4030 ac_cv_path_EGREP
=$EGREP
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4036 $as_echo "$ac_cv_path_EGREP" >&6; }
4037 EGREP
="$ac_cv_path_EGREP"
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4041 $as_echo_n "checking for ANSI C header files... " >&6; }
4042 if ${ac_cv_header_stdc+:} false
; then :
4043 $as_echo_n "(cached) " >&6
4045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4060 if ac_fn_c_try_compile
"$LINENO"; then :
4061 ac_cv_header_stdc
=yes
4063 ac_cv_header_stdc
=no
4065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4067 if test $ac_cv_header_stdc = yes; then
4068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4075 $EGREP "memchr" >/dev
/null
2>&1; then :
4078 ac_cv_header_stdc
=no
4084 if test $ac_cv_header_stdc = yes; then
4085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092 $EGREP "free" >/dev
/null
2>&1; then :
4095 ac_cv_header_stdc
=no
4101 if test $ac_cv_header_stdc = yes; then
4102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4103 if test "$cross_compiling" = yes; then :
4106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4110 #if ((' ' & 0x0FF) == 0x020)
4111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4114 # define ISLOWER(c) \
4115 (('a' <= (c) && (c) <= 'i') \
4116 || ('j' <= (c) && (c) <= 'r') \
4117 || ('s' <= (c) && (c) <= 'z'))
4118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4126 for (i = 0; i < 256; i++)
4127 if (XOR (islower (i), ISLOWER (i))
4128 || toupper (i) != TOUPPER (i))
4133 if ac_fn_c_try_run
"$LINENO"; then :
4136 ac_cv_header_stdc
=no
4138 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4139 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4145 $as_echo "$ac_cv_header_stdc" >&6; }
4146 if test $ac_cv_header_stdc = yes; then
4148 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4153 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4154 inttypes.h stdint.h unistd.h
4156 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4157 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4159 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4160 cat >>confdefs.h
<<_ACEOF
4161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4170 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4171 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4178 if test "$MINIX" = yes; then
4180 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4183 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4186 $as_echo "#define _MINIX 1" >>confdefs.h
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4192 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4193 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4194 $as_echo_n "(cached) " >&6
4196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4199 # define __EXTENSIONS__ 1
4200 $ac_includes_default
4209 if ac_fn_c_try_compile
"$LINENO"; then :
4210 ac_cv_safe_to_define___extensions__
=yes
4212 ac_cv_safe_to_define___extensions__
=no
4214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4217 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4218 test $ac_cv_safe_to_define___extensions__ = yes &&
4219 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4221 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4223 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4225 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4227 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4231 # Check whether --enable-largefile was given.
4232 if test "${enable_largefile+set}" = set; then :
4233 enableval
=$enable_largefile;
4236 if test "$enable_largefile" != no
; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4239 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4240 if ${ac_cv_sys_largefile_CC+:} false
; then :
4241 $as_echo_n "(cached) " >&6
4243 ac_cv_sys_largefile_CC
=no
4244 if test "$GCC" != yes; then
4247 # IRIX 6.2 and later do not support large files by default,
4248 # so use the C compiler's -n32 option if that helps.
4249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 #include <sys/types.h>
4252 /* Check that off_t can represent 2**63 - 1 correctly.
4253 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4254 since some C++ compilers masquerading as C compilers
4255 incorrectly reject 9223372036854775807. */
4256 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4257 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4258 && LARGE_OFF_T % 2147483647 == 1)
4268 if ac_fn_c_try_compile
"$LINENO"; then :
4271 rm -f core conftest.err conftest.
$ac_objext
4273 if ac_fn_c_try_compile
"$LINENO"; then :
4274 ac_cv_sys_largefile_CC
=' -n32'; break
4276 rm -f core conftest.err conftest.
$ac_objext
4280 rm -f conftest.
$ac_ext
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4284 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4285 if test "$ac_cv_sys_largefile_CC" != no
; then
4286 CC
=$CC$ac_cv_sys_largefile_CC
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4290 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4291 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4292 $as_echo_n "(cached) " >&6
4295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 #include <sys/types.h>
4298 /* Check that off_t can represent 2**63 - 1 correctly.
4299 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4300 since some C++ compilers masquerading as C compilers
4301 incorrectly reject 9223372036854775807. */
4302 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4303 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4304 && LARGE_OFF_T % 2147483647 == 1)
4314 if ac_fn_c_try_compile
"$LINENO"; then :
4315 ac_cv_sys_file_offset_bits
=no
; break
4317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4320 #define _FILE_OFFSET_BITS 64
4321 #include <sys/types.h>
4322 /* Check that off_t can represent 2**63 - 1 correctly.
4323 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4324 since some C++ compilers masquerading as C compilers
4325 incorrectly reject 9223372036854775807. */
4326 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4327 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4328 && LARGE_OFF_T % 2147483647 == 1)
4338 if ac_fn_c_try_compile
"$LINENO"; then :
4339 ac_cv_sys_file_offset_bits
=64; break
4341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4342 ac_cv_sys_file_offset_bits
=unknown
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4347 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4348 case $ac_cv_sys_file_offset_bits in #(
4351 cat >>confdefs.h
<<_ACEOF
4352 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4357 if test $ac_cv_sys_file_offset_bits = unknown
; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4359 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4360 if ${ac_cv_sys_large_files+:} false
; then :
4361 $as_echo_n "(cached) " >&6
4364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366 #include <sys/types.h>
4367 /* Check that off_t can represent 2**63 - 1 correctly.
4368 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4369 since some C++ compilers masquerading as C compilers
4370 incorrectly reject 9223372036854775807. */
4371 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4372 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4373 && LARGE_OFF_T % 2147483647 == 1)
4383 if ac_fn_c_try_compile
"$LINENO"; then :
4384 ac_cv_sys_large_files
=no
; break
4386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #define _LARGE_FILES 1
4390 #include <sys/types.h>
4391 /* Check that off_t can represent 2**63 - 1 correctly.
4392 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4393 since some C++ compilers masquerading as C compilers
4394 incorrectly reject 9223372036854775807. */
4395 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4396 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4397 && LARGE_OFF_T % 2147483647 == 1)
4407 if ac_fn_c_try_compile
"$LINENO"; then :
4408 ac_cv_sys_large_files
=1; break
4410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4411 ac_cv_sys_large_files
=unknown
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4416 $as_echo "$ac_cv_sys_large_files" >&6; }
4417 case $ac_cv_sys_large_files in #(
4420 cat >>confdefs.h
<<_ACEOF
4421 #define _LARGE_FILES $ac_cv_sys_large_files
4433 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4434 if test -f "$ac_dir/install-sh"; then
4436 ac_install_sh
="$ac_aux_dir/install-sh -c"
4438 elif test -f "$ac_dir/install.sh"; then
4440 ac_install_sh
="$ac_aux_dir/install.sh -c"
4442 elif test -f "$ac_dir/shtool"; then
4444 ac_install_sh
="$ac_aux_dir/shtool install -c"
4448 if test -z "$ac_aux_dir"; then
4449 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4452 # These three variables are undocumented and unsupported,
4453 # and are intended to be withdrawn in a future Autoconf release.
4454 # They can cause serious problems if a builder's source tree is in a directory
4455 # whose full name contains unusual characters.
4456 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4457 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4458 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4461 # Make sure we can run config.sub.
4462 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4463 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4466 $as_echo_n "checking build system type... " >&6; }
4467 if ${ac_cv_build+:} false
; then :
4468 $as_echo_n "(cached) " >&6
4470 ac_build_alias
=$build_alias
4471 test "x$ac_build_alias" = x
&&
4472 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4473 test "x$ac_build_alias" = x
&&
4474 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4475 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4476 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4480 $as_echo "$ac_cv_build" >&6; }
4481 case $ac_cv_build in
4483 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4486 ac_save_IFS
=$IFS; IFS
='-'
4492 # Remember, the first character of IFS is used to create $*,
4493 # except with old shells:
4496 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4500 $as_echo_n "checking host system type... " >&6; }
4501 if ${ac_cv_host+:} false
; then :
4502 $as_echo_n "(cached) " >&6
4504 if test "x$host_alias" = x
; then
4505 ac_cv_host
=$ac_cv_build
4507 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4508 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4513 $as_echo "$ac_cv_host" >&6; }
4516 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4519 ac_save_IFS
=$IFS; IFS
='-'
4525 # Remember, the first character of IFS is used to create $*,
4526 # except with old shells:
4529 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4533 $as_echo_n "checking target system type... " >&6; }
4534 if ${ac_cv_target+:} false
; then :
4535 $as_echo_n "(cached) " >&6
4537 if test "x$target_alias" = x
; then
4538 ac_cv_target
=$ac_cv_host
4540 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4541 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4546 $as_echo "$ac_cv_target" >&6; }
4547 case $ac_cv_target in
4549 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4551 target
=$ac_cv_target
4552 ac_save_IFS
=$IFS; IFS
='-'
4558 # Remember, the first character of IFS is used to create $*,
4559 # except with old shells:
4562 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4565 # The aliases save the names the user supplied, while $host etc.
4566 # will get canonicalized.
4567 test -n "$target_alias" &&
4568 test "$program_prefix$program_suffix$program_transform_name" = \
4570 program_prefix
=${target_alias}-
4573 # Find a good install program. We prefer a C program (faster),
4574 # so one script is as good as another. But avoid the broken or
4575 # incompatible versions:
4576 # SysV /etc/install, /usr/sbin/install
4577 # SunOS /usr/etc/install
4578 # IRIX /sbin/install
4580 # AmigaOS /C/install, which installs bootblocks on floppy discs
4581 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4582 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4583 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4584 # OS/2's system install, which has a completely different semantic
4585 # ./install, which can be erroneously created by make from ./install.sh.
4586 # Reject install programs that cannot install multiple files.
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4588 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4589 if test -z "$INSTALL"; then
4590 if ${ac_cv_path_install+:} false
; then :
4591 $as_echo_n "(cached) " >&6
4593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4597 test -z "$as_dir" && as_dir
=.
4598 # Account for people who put trailing slashes in PATH elements.
4599 case $as_dir/ in #((
4600 .
/ | .
// |
/[cC
]/* | \
4601 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4602 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4605 # OSF1 and SCO ODT 3.0 have their own names for install.
4606 # Don't use installbsd from OSF since it installs stuff as root
4608 for ac_prog
in ginstall scoinst
install; do
4609 for ac_exec_ext
in '' $ac_executable_extensions; do
4610 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4611 if test $ac_prog = install &&
4612 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4613 # AIX install. It has an incompatible calling convention.
4615 elif test $ac_prog = install &&
4616 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4617 # program-specific install script used by HP pwplus--don't use.
4620 rm -rf conftest.one conftest.two conftest.dir
4621 echo one
> conftest.one
4622 echo two
> conftest.two
4624 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4625 test -s conftest.one
&& test -s conftest.two
&&
4626 test -s conftest.dir
/conftest.one
&&
4627 test -s conftest.dir
/conftest.two
4629 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4642 rm -rf conftest.one conftest.two conftest.dir
4645 if test "${ac_cv_path_install+set}" = set; then
4646 INSTALL
=$ac_cv_path_install
4648 # As a last resort, use the slow shell script. Don't cache a
4649 # value for INSTALL within a source directory, because that will
4650 # break other packages using the cache if that directory is
4651 # removed, or if the value is a relative name.
4652 INSTALL
=$ac_install_sh
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4656 $as_echo "$INSTALL" >&6; }
4658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4659 # It thinks the first close brace ends the variable substitution.
4660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4662 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4664 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4666 if test -n "$ac_tool_prefix"; then
4667 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4668 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if ${ac_cv_prog_AR+:} false
; then :
4672 $as_echo_n "(cached) " >&6
4674 if test -n "$AR"; then
4675 ac_cv_prog_AR
="$AR" # Let the user override the test.
4677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir
=.
4682 for ac_exec_ext
in '' $ac_executable_extensions; do
4683 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4684 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 if test -n "$AR"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4697 $as_echo "$AR" >&6; }
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4705 if test -z "$ac_cv_prog_AR"; then
4707 # Extract the first word of "ar", so it can be a program name with args.
4708 set dummy
ar; ac_word
=$2
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4712 $as_echo_n "(cached) " >&6
4714 if test -n "$ac_ct_AR"; then
4715 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4721 test -z "$as_dir" && as_dir
=.
4722 for ac_exec_ext
in '' $ac_executable_extensions; do
4723 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4724 ac_cv_prog_ac_ct_AR
="ar"
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4735 if test -n "$ac_ct_AR"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4737 $as_echo "$ac_ct_AR" >&6; }
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4743 if test "x$ac_ct_AR" = x
; then
4746 case $cross_compiling:$ac_tool_warned in
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4750 ac_tool_warned
=yes ;;
4758 if test -n "$ac_tool_prefix"; then
4759 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4760 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 $as_echo_n "checking for $ac_word... " >&6; }
4763 if ${ac_cv_prog_RANLIB+:} false
; then :
4764 $as_echo_n "(cached) " >&6
4766 if test -n "$RANLIB"; then
4767 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4773 test -z "$as_dir" && as_dir
=.
4774 for ac_exec_ext
in '' $ac_executable_extensions; do
4775 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4776 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 RANLIB
=$ac_cv_prog_RANLIB
4787 if test -n "$RANLIB"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4789 $as_echo "$RANLIB" >&6; }
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4797 if test -z "$ac_cv_prog_RANLIB"; then
4798 ac_ct_RANLIB
=$RANLIB
4799 # Extract the first word of "ranlib", so it can be a program name with args.
4800 set dummy ranlib
; ac_word
=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4804 $as_echo_n "(cached) " >&6
4806 if test -n "$ac_ct_RANLIB"; then
4807 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir
=.
4814 for ac_exec_ext
in '' $ac_executable_extensions; do
4815 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4827 if test -n "$ac_ct_RANLIB"; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4829 $as_echo "$ac_ct_RANLIB" >&6; }
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4835 if test "x$ac_ct_RANLIB" = x
; then
4838 case $cross_compiling:$ac_tool_warned in
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4842 ac_tool_warned
=yes ;;
4844 RANLIB
=$ac_ct_RANLIB
4847 RANLIB
="$ac_cv_prog_RANLIB"
4851 test "$program_prefix" != NONE
&&
4852 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4853 # Use a double $ so make ignores it.
4854 test "$program_suffix" != NONE
&&
4855 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4856 # Double any \ or $.
4857 # By default was `s,x,x', remove it if useless.
4858 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4859 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4862 # We require a C++11 compiler. Check if one is available, and if
4863 # necessary, set CXX_DIALECT to some -std=xxx switch.
4865 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
4867 ac_cpp
='$CXXCPP $CPPFLAGS'
4868 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4874 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4875 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
4876 $as_echo_n "(cached) " >&6
4878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4882 // If the compiler admits that it is not ready for C++11, why torture it?
4883 // Hopefully, this will speed up the test.
4887 #error "This is not a C++ compiler"
4889 #elif __cplusplus < 201103L
4891 #error "This is not a C++11 compiler"
4898 namespace test_static_assert
4901 template <typename T>
4904 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4909 namespace test_final_override
4917 struct Derived : public Base
4919 virtual void f() override {}
4924 namespace test_double_right_angle_brackets
4927 template < typename T >
4930 typedef check<void> single_type;
4931 typedef check<check<void>> double_type;
4932 typedef check<check<check<void>>> triple_type;
4933 typedef check<check<check<check<void>>>> quadruple_type;
4937 namespace test_decltype
4950 namespace test_type_deduction
4953 template < typename T1, typename T2 >
4956 static const bool value = false;
4959 template < typename T >
4960 struct is_same<T, T>
4962 static const bool value = true;
4965 template < typename T1, typename T2 >
4967 add(T1 a1, T2 a2) -> decltype(a1 + a2)
4973 test(const int c, volatile int v)
4975 static_assert(is_same<int, decltype(0)>::value == true, "");
4976 static_assert(is_same<int, decltype(c)>::value == false, "");
4977 static_assert(is_same<int, decltype(v)>::value == false, "");
4980 auto sumi = ac + av + 'x';
4981 auto sumf = ac + av + 1.0;
4982 static_assert(is_same<int, decltype(ac)>::value == true, "");
4983 static_assert(is_same<int, decltype(av)>::value == true, "");
4984 static_assert(is_same<int, decltype(sumi)>::value == true, "");
4985 static_assert(is_same<int, decltype(sumf)>::value == false, "");
4986 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4987 return (sumf > 0.0) ? sumi : add(c, v);
4992 namespace test_noexcept
4995 int f() { return 0; }
4996 int g() noexcept { return 0; }
4998 static_assert(noexcept(f()) == false, "");
4999 static_assert(noexcept(g()) == true, "");
5003 namespace test_constexpr
5006 template < typename CharT >
5007 unsigned long constexpr
5008 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5010 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5013 template < typename CharT >
5014 unsigned long constexpr
5015 strlen_c(const CharT *const s) noexcept
5017 return strlen_c_r(s, 0UL);
5020 static_assert(strlen_c("") == 0UL, "");
5021 static_assert(strlen_c("1") == 1UL, "");
5022 static_assert(strlen_c("example") == 7UL, "");
5023 static_assert(strlen_c("another\0example") == 7UL, "");
5027 namespace test_rvalue_references
5033 static constexpr int value = N;
5036 answer<1> f(int&) { return answer<1>(); }
5037 answer<2> f(const int&) { return answer<2>(); }
5038 answer<3> f(int&&) { return answer<3>(); }
5045 static_assert(decltype(f(i))::value == 1, "");
5046 static_assert(decltype(f(c))::value == 2, "");
5047 static_assert(decltype(f(0))::value == 3, "");
5052 namespace test_uniform_initialization
5057 static const int zero {};
5058 static const int one {1};
5061 static_assert(test::zero == 0, "");
5062 static_assert(test::one == 1, "");
5066 namespace test_lambdas
5072 auto lambda1 = [](){};
5073 auto lambda2 = lambda1;
5081 auto a = [](int i, int j){ return i + j; }(1, 2);
5082 auto b = []() -> int { return '0'; }();
5083 auto c = [=](){ return a + b; }();
5084 auto d = [&](){ return c; }();
5085 auto e = [a, &b](int x) mutable {
5086 const auto identity = [](int y){ return y; };
5087 for (auto i = 0; i < a; ++i)
5089 return x + identity(a + b);
5091 return a + b + c + d + e;
5097 const auto nullary = [](){ return 0; };
5098 const auto unary = [](int x){ return x; };
5099 using nullary_t = decltype(nullary);
5100 using unary_t = decltype(unary);
5101 const auto higher1st = [](nullary_t f){ return f(); };
5102 const auto higher2nd = [unary](nullary_t f1){
5103 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5105 return higher1st(nullary) + higher2nd(nullary)(unary);
5110 namespace test_variadic_templates
5116 template <int N0, int... N1toN>
5117 struct sum<N0, N1toN...>
5119 static constexpr auto value = N0 + sum<N1toN...>::value;
5125 static constexpr auto value = 0;
5128 static_assert(sum<>::value == 0, "");
5129 static_assert(sum<1>::value == 1, "");
5130 static_assert(sum<23>::value == 23, "");
5131 static_assert(sum<1, 2>::value == 3, "");
5132 static_assert(sum<5, 5, 11>::value == 21, "");
5133 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5137 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5138 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5140 namespace test_template_alias_sfinae
5145 template<typename T>
5146 using member = typename T::member_type;
5148 template<typename T>
5151 template<typename T>
5152 void func(member<T>*) {}
5156 void test() { func<foo>(0); }
5160 } // namespace cxx11
5162 #endif // __cplusplus >= 201103L
5167 if ac_fn_cxx_try_compile
"$LINENO"; then :
5168 ax_cv_cxx_compile_cxx11
=yes
5170 ax_cv_cxx_compile_cxx11
=no
5172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5175 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5176 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5180 if test x
$ac_success = xno
; then
5181 for alternative
in ${ax_cxx_compile_alternatives}; do
5182 switch
="-std=gnu++${alternative}"
5183 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5185 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5186 if eval \
${$cachevar+:} false
; then :
5187 $as_echo_n "(cached) " >&6
5191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5195 // If the compiler admits that it is not ready for C++11, why torture it?
5196 // Hopefully, this will speed up the test.
5200 #error "This is not a C++ compiler"
5202 #elif __cplusplus < 201103L
5204 #error "This is not a C++11 compiler"
5211 namespace test_static_assert
5214 template <typename T>
5217 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5222 namespace test_final_override
5230 struct Derived : public Base
5232 virtual void f() override {}
5237 namespace test_double_right_angle_brackets
5240 template < typename T >
5243 typedef check<void> single_type;
5244 typedef check<check<void>> double_type;
5245 typedef check<check<check<void>>> triple_type;
5246 typedef check<check<check<check<void>>>> quadruple_type;
5250 namespace test_decltype
5263 namespace test_type_deduction
5266 template < typename T1, typename T2 >
5269 static const bool value = false;
5272 template < typename T >
5273 struct is_same<T, T>
5275 static const bool value = true;
5278 template < typename T1, typename T2 >
5280 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5286 test(const int c, volatile int v)
5288 static_assert(is_same<int, decltype(0)>::value == true, "");
5289 static_assert(is_same<int, decltype(c)>::value == false, "");
5290 static_assert(is_same<int, decltype(v)>::value == false, "");
5293 auto sumi = ac + av + 'x';
5294 auto sumf = ac + av + 1.0;
5295 static_assert(is_same<int, decltype(ac)>::value == true, "");
5296 static_assert(is_same<int, decltype(av)>::value == true, "");
5297 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5298 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5299 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5300 return (sumf > 0.0) ? sumi : add(c, v);
5305 namespace test_noexcept
5308 int f() { return 0; }
5309 int g() noexcept { return 0; }
5311 static_assert(noexcept(f()) == false, "");
5312 static_assert(noexcept(g()) == true, "");
5316 namespace test_constexpr
5319 template < typename CharT >
5320 unsigned long constexpr
5321 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5323 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5326 template < typename CharT >
5327 unsigned long constexpr
5328 strlen_c(const CharT *const s) noexcept
5330 return strlen_c_r(s, 0UL);
5333 static_assert(strlen_c("") == 0UL, "");
5334 static_assert(strlen_c("1") == 1UL, "");
5335 static_assert(strlen_c("example") == 7UL, "");
5336 static_assert(strlen_c("another\0example") == 7UL, "");
5340 namespace test_rvalue_references
5346 static constexpr int value = N;
5349 answer<1> f(int&) { return answer<1>(); }
5350 answer<2> f(const int&) { return answer<2>(); }
5351 answer<3> f(int&&) { return answer<3>(); }
5358 static_assert(decltype(f(i))::value == 1, "");
5359 static_assert(decltype(f(c))::value == 2, "");
5360 static_assert(decltype(f(0))::value == 3, "");
5365 namespace test_uniform_initialization
5370 static const int zero {};
5371 static const int one {1};
5374 static_assert(test::zero == 0, "");
5375 static_assert(test::one == 1, "");
5379 namespace test_lambdas
5385 auto lambda1 = [](){};
5386 auto lambda2 = lambda1;
5394 auto a = [](int i, int j){ return i + j; }(1, 2);
5395 auto b = []() -> int { return '0'; }();
5396 auto c = [=](){ return a + b; }();
5397 auto d = [&](){ return c; }();
5398 auto e = [a, &b](int x) mutable {
5399 const auto identity = [](int y){ return y; };
5400 for (auto i = 0; i < a; ++i)
5402 return x + identity(a + b);
5404 return a + b + c + d + e;
5410 const auto nullary = [](){ return 0; };
5411 const auto unary = [](int x){ return x; };
5412 using nullary_t = decltype(nullary);
5413 using unary_t = decltype(unary);
5414 const auto higher1st = [](nullary_t f){ return f(); };
5415 const auto higher2nd = [unary](nullary_t f1){
5416 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5418 return higher1st(nullary) + higher2nd(nullary)(unary);
5423 namespace test_variadic_templates
5429 template <int N0, int... N1toN>
5430 struct sum<N0, N1toN...>
5432 static constexpr auto value = N0 + sum<N1toN...>::value;
5438 static constexpr auto value = 0;
5441 static_assert(sum<>::value == 0, "");
5442 static_assert(sum<1>::value == 1, "");
5443 static_assert(sum<23>::value == 23, "");
5444 static_assert(sum<1, 2>::value == 3, "");
5445 static_assert(sum<5, 5, 11>::value == 21, "");
5446 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5450 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5451 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5453 namespace test_template_alias_sfinae
5458 template<typename T>
5459 using member = typename T::member_type;
5461 template<typename T>
5464 template<typename T>
5465 void func(member<T>*) {}
5469 void test() { func<foo>(0); }
5473 } // namespace cxx11
5475 #endif // __cplusplus >= 201103L
5480 if ac_fn_cxx_try_compile
"$LINENO"; then :
5485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5488 eval ac_res
=\$
$cachevar
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5490 $as_echo "$ac_res" >&6; }
5491 if eval test x\$
$cachevar = xyes
; then
5492 CXX_DIALECT
="$switch"
5499 if test x
$ac_success = xno
; then
5500 for alternative
in ${ax_cxx_compile_alternatives}; do
5501 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5502 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5504 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5505 if eval \${$cachevar+:} false; then :
5506 $as_echo_n "(cached
) " >&6
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5514 // If the compiler admits that it is not ready for C++11, why torture it?
5515 // Hopefully, this will speed up the test.
5519 #error "This is not a C
++ compiler
"
5521 #elif __cplusplus < 201103L
5523 #error "This is not a C
++11 compiler
"
5530 namespace test_static_assert
5533 template <typename T>
5536 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5541 namespace test_final_override
5549 struct Derived : public Base
5551 virtual void f() override {}
5556 namespace test_double_right_angle_brackets
5559 template < typename T >
5562 typedef check<void> single_type;
5563 typedef check<check<void>> double_type;
5564 typedef check<check<check<void>>> triple_type;
5565 typedef check<check<check<check<void>>>> quadruple_type;
5569 namespace test_decltype
5582 namespace test_type_deduction
5585 template < typename T1, typename T2 >
5588 static const bool value = false;
5591 template < typename T >
5592 struct is_same<T, T>
5594 static const bool value = true;
5597 template < typename T1, typename T2 >
5599 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5605 test(const int c, volatile int v)
5607 static_assert(is_same<int, decltype(0)>::value == true, "");
5608 static_assert(is_same<int, decltype(c)>::value == false, "");
5609 static_assert(is_same<int, decltype(v)>::value == false, "");
5612 auto sumi = ac + av + 'x';
5613 auto sumf = ac + av + 1.0;
5614 static_assert(is_same<int, decltype(ac)>::value == true, "");
5615 static_assert(is_same<int, decltype(av)>::value == true, "");
5616 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5617 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5618 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5619 return (sumf > 0.0) ? sumi : add(c, v);
5624 namespace test_noexcept
5627 int f() { return 0; }
5628 int g() noexcept { return 0; }
5630 static_assert(noexcept(f()) == false, "");
5631 static_assert(noexcept(g()) == true, "");
5635 namespace test_constexpr
5638 template < typename CharT >
5639 unsigned long constexpr
5640 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5642 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5645 template < typename CharT >
5646 unsigned long constexpr
5647 strlen_c(const CharT *const s) noexcept
5649 return strlen_c_r(s, 0UL);
5652 static_assert(strlen_c("") == 0UL, "");
5653 static_assert(strlen_c("1") == 1UL, "");
5654 static_assert(strlen_c("example
") == 7UL, "");
5655 static_assert(strlen_c("another\
0example
") == 7UL, "");
5659 namespace test_rvalue_references
5665 static constexpr int value = N;
5668 answer<1> f(int&) { return answer<1>(); }
5669 answer<2> f(const int&) { return answer<2>(); }
5670 answer<3> f(int&&) { return answer<3>(); }
5677 static_assert(decltype(f(i))::value == 1, "");
5678 static_assert(decltype(f(c))::value == 2, "");
5679 static_assert(decltype(f(0))::value == 3, "");
5684 namespace test_uniform_initialization
5689 static const int zero {};
5690 static const int one {1};
5693 static_assert(test::zero == 0, "");
5694 static_assert(test::one == 1, "");
5698 namespace test_lambdas
5704 auto lambda1 = [](){};
5705 auto lambda2 = lambda1;
5713 auto a = [](int i, int j){ return i + j; }(1, 2);
5714 auto b = []() -> int { return '0'; }();
5715 auto c = [=](){ return a + b; }();
5716 auto d = [&](){ return c; }();
5717 auto e = [a, &b](int x) mutable {
5718 const auto identity = [](int y){ return y; };
5719 for (auto i = 0; i < a; ++i)
5721 return x + identity(a + b);
5723 return a + b + c + d + e;
5729 const auto nullary = [](){ return 0; };
5730 const auto unary = [](int x){ return x; };
5731 using nullary_t = decltype(nullary);
5732 using unary_t = decltype(unary);
5733 const auto higher1st = [](nullary_t f){ return f(); };
5734 const auto higher2nd = [unary](nullary_t f1){
5735 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5737 return higher1st(nullary) + higher2nd(nullary)(unary);
5742 namespace test_variadic_templates
5748 template <int N0, int... N1toN>
5749 struct sum<N0, N1toN...>
5751 static constexpr auto value = N0 + sum<N1toN...>::value;
5757 static constexpr auto value = 0;
5760 static_assert(sum<>::value == 0, "");
5761 static_assert(sum<1>::value == 1, "");
5762 static_assert(sum<23>::value == 23, "");
5763 static_assert(sum<1, 2>::value == 3, "");
5764 static_assert(sum<5, 5, 11>::value == 21, "");
5765 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5769 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5770 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5772 namespace test_template_alias_sfinae
5777 template<typename T>
5778 using member = typename T::member_type;
5780 template<typename T>
5783 template<typename T>
5784 void func(member<T>*) {}
5788 void test() { func<foo>(0); }
5792 } // namespace cxx11
5794 #endif // __cplusplus >= 201103L
5799 if ac_fn_cxx_try_compile "$LINENO"; then :
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 eval ac_res=\$$cachevar
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5809 $as_echo "$ac_res" >&6; }
5810 if eval test x\$$cachevar = xyes; then
5811 CXX_DIALECT="$switch"
5816 if test x$ac_success = xyes; then
5822 ac_cpp='$CPP $CPPFLAGS'
5823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5827 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5828 if test x$ac_success = xno; then
5829 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
5832 if test x$ac_success = xno; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
5835 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
5839 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5847 $as_echo_n "checking for ANSI C header files... " >&6; }
5848 if ${ac_cv_header_stdc+:} false
; then :
5849 $as_echo_n "(cached) " >&6
5851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5866 if ac_fn_c_try_compile
"$LINENO"; then :
5867 ac_cv_header_stdc
=yes
5869 ac_cv_header_stdc
=no
5871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5873 if test $ac_cv_header_stdc = yes; then
5874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5881 $EGREP "memchr" >/dev
/null
2>&1; then :
5884 ac_cv_header_stdc
=no
5890 if test $ac_cv_header_stdc = yes; then
5891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5898 $EGREP "free" >/dev
/null
2>&1; then :
5901 ac_cv_header_stdc
=no
5907 if test $ac_cv_header_stdc = yes; then
5908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5909 if test "$cross_compiling" = yes; then :
5912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5916 #if ((' ' & 0x0FF) == 0x020)
5917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5920 # define ISLOWER(c) \
5921 (('a' <= (c) && (c) <= 'i') \
5922 || ('j' <= (c) && (c) <= 'r') \
5923 || ('s' <= (c) && (c) <= 'z'))
5924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5932 for (i = 0; i < 256; i++)
5933 if (XOR (islower (i), ISLOWER (i))
5934 || toupper (i) != TOUPPER (i))
5939 if ac_fn_c_try_run
"$LINENO"; then :
5942 ac_cv_header_stdc
=no
5944 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5945 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5951 $as_echo "$ac_cv_header_stdc" >&6; }
5952 if test $ac_cv_header_stdc = yes; then
5954 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5959 # Set the 'development' global.
5960 .
$srcdir/..
/..
/bfd
/development.sh
5963 # Check whether we will enable the inclusion of unit tests when
5966 # The default value of this option changes depending whether we're on
5967 # development mode (in which case it's "true") or not (in which case
5969 # Check whether --enable-unit-tests was given.
5970 if test "${enable_unit_tests+set}" = set; then :
5971 enableval
=$enable_unit_tests; case "${enableval}" in
5972 yes) enable_unittests
=true
;;
5973 no
) enable_unittests
=false
;;
5974 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
5977 enable_unittests
=$development
5981 if $enable_unittests; then
5983 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
5986 srv_selftest_objs
="gdbsupport/selftest.o"
5991 case ${build_alias} in
5992 "") build_noncanonical
=${build} ;;
5993 *) build_noncanonical
=${build_alias} ;;
5996 case ${host_alias} in
5997 "") host_noncanonical
=${build_noncanonical} ;;
5998 *) host_noncanonical
=${host_alias} ;;
6001 case ${target_alias} in
6002 "") target_noncanonical
=${host_noncanonical} ;;
6003 *) target_noncanonical
=${target_alias} ;;
6011 # Dependency checking.
6012 rm -rf .tst
2>/dev
/null
6013 mkdir .tst
2>/dev
/null
6014 if test -d .tst
; then
6019 rmdir .tst
2>/dev
/null
6021 DEPDIR
="${am__leading_dot}deps"
6023 ac_config_commands
="$ac_config_commands depdir"
6027 # Create sub-directories for objects and dependencies.
6028 CONFIG_SRC_SUBDIR
="arch gdbsupport"
6031 ac_config_commands
="$ac_config_commands gdbdepdir"
6034 depcc
="$CC" am_compiler_list
=
6036 am_depcomp
=$ac_aux_dir/depcomp
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6038 $as_echo_n "checking dependency style of $depcc... " >&6; }
6039 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6040 $as_echo_n "(cached) " >&6
6042 if test -f "$am_depcomp"; then
6043 # We make a subdir and do the tests there. Otherwise we can end up
6044 # making bogus files that we don't know about and never remove. For
6045 # instance it was reported that on HP-UX the gcc test will end up
6046 # making a dummy file named `D' -- because `-MD' means `put the output
6049 # Copy depcomp to subdir because otherwise we won't find it if we're
6050 # using a relative directory.
6051 cp "$am_depcomp" conftest.dir
6053 # We will build objects and dependencies in a subdirectory because
6054 # it helps to detect inapplicable dependency modes. For instance
6055 # both Tru64's cc and ICC support -MD to output dependencies as a
6056 # side effect of compilation, but ICC will put the dependencies in
6057 # the current directory while Tru64 will put them in the object
6061 am_cv_CC_dependencies_compiler_type
=none
6062 if test "$am_compiler_list" = ""; then
6063 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6065 for depmode
in $am_compiler_list; do
6066 if test $depmode = none
; then break; fi
6068 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6069 # Setup a source with many dependencies, because some compilers
6070 # like to wrap large dependency lists on column 80 (with \), and
6071 # we should not choose a depcomp mode which is confused by this.
6073 # We need to recreate these files for each test, as the compiler may
6074 # overwrite some of them when testing with obscure command lines.
6075 # This happens at least with the AIX C compiler.
6077 for i
in 1 2 3 4 5 6; do
6078 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6079 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6080 # Solaris 8's {/usr,}/bin/sh.
6081 touch sub
/conftst
$i.h
6083 echo "include sub/conftest.Po" > confmf
6085 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6086 # mode. It turns out that the SunPro C++ compiler does not properly
6087 # handle `-M -o', and we need to detect this.
6088 depcmd
="depmode=$depmode \
6089 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6090 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6091 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6092 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6093 if env
$depcmd > conftest.err
2>&1 &&
6094 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6095 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6096 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6097 # icc doesn't choke on unknown options, it will just issue warnings
6098 # or remarks (even with -Werror). So we grep stderr for any message
6099 # that says an option was ignored or not supported.
6100 # When given -MP, icc 7.0 and 7.1 complain thusly:
6101 # icc: Command line warning: ignoring option '-M'; no argument required
6102 # The diagnosis changed in icc 8.0:
6103 # icc: Command line remark: option '-MP' not supported
6104 if (grep 'ignoring option' conftest.err ||
6105 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6106 am_cv_CC_dependencies_compiler_type
=$depmode
6107 $as_echo "$as_me:$LINENO: success" >&5
6111 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6112 sed -e 's/^/| /' < conftest.err
>&5
6118 am_cv_CC_dependencies_compiler_type
=none
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6123 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6124 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6125 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6126 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6131 gnulib_extra_configure_args
=
6132 # If large-file support is disabled, make sure gnulib does the same.
6133 if test "$enable_largefile" = no
; then
6134 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6137 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
6138 # to find the the source subdir to be configured directly under
6139 # gdbserver/. We need to build gnulib under some other directory not
6140 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
6141 # build it in the same directory, when building in the source dir.
6143 in_src
="../../gnulib"
6144 in_build
="build-gnulib-gdbserver"
6145 in_extra_args
="$gnulib_extra_configure_args"
6147 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6148 # so they do not pile up.
6149 ac_sub_configure_args
=
6151 eval "set x $ac_configure_args"
6155 if test -n "$ac_prev"; then
6160 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6161 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6162 ac_prev
=cache_file
;;
6163 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6164 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6167 --config-cache |
-C)
6169 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6171 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6173 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6175 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6177 --disable-option-checking)
6181 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6183 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6187 # Always prepend --prefix to ensure using the same prefix
6188 # in subdir configurations.
6189 ac_arg
="--prefix=$prefix"
6191 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6193 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6196 if test "$silent" = yes; then
6197 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6200 # Always prepend --disable-option-checking to silence warnings, since
6201 # different subdirs can have different --enable and --with options.
6202 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6207 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6208 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6209 $as_echo "$ac_msg" >&6
6210 as_dir
="$ac_dir"; as_fn_mkdir_p
6214 ac_srcdir
=$srcdir/$in_src ;;
6216 ac_srcdir
=..
/$srcdir/$in_src ;;
6221 ac_sub_configure
=$ac_srcdir/configure
6223 # Make the cache file name correct relative to the subdirectory.
6225 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6227 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6230 if test -n "$in_extra_args"; then
6231 # Add the extra args at the end.
6232 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6235 { $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
6236 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6237 # The eval makes quoting arguments work.
6238 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6239 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6240 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6246 in_src
="../../libiberty"
6247 in_build
="build-libiberty-gdbserver"
6250 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6251 # so they do not pile up.
6252 ac_sub_configure_args
=
6254 eval "set x $ac_configure_args"
6258 if test -n "$ac_prev"; then
6263 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6264 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6265 ac_prev
=cache_file
;;
6266 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6267 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6270 --config-cache |
-C)
6272 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6274 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6276 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6278 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6280 --disable-option-checking)
6284 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6286 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6290 # Always prepend --prefix to ensure using the same prefix
6291 # in subdir configurations.
6292 ac_arg
="--prefix=$prefix"
6294 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6296 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6299 if test "$silent" = yes; then
6300 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6303 # Always prepend --disable-option-checking to silence warnings, since
6304 # different subdirs can have different --enable and --with options.
6305 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6310 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6312 $as_echo "$ac_msg" >&6
6313 as_dir
="$ac_dir"; as_fn_mkdir_p
6317 ac_srcdir
=$srcdir/$in_src ;;
6319 ac_srcdir
=..
/$srcdir/$in_src ;;
6324 ac_sub_configure
=$ac_srcdir/configure
6326 # Make the cache file name correct relative to the subdirectory.
6328 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6330 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6333 if test -n "$in_extra_args"; then
6334 # Add the extra args at the end.
6335 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6338 { $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
6339 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6340 # The eval makes quoting arguments work.
6341 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6342 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6343 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6348 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
6350 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6352 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6353 cat >>confdefs.h
<<_ACEOF
6354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6361 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6362 if test "x$ac_cv_type_pid_t" = xyes
; then :
6366 cat >>confdefs.h
<<_ACEOF
6372 for ac_header
in vfork.h
6374 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6375 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6376 cat >>confdefs.h
<<_ACEOF
6377 #define HAVE_VFORK_H 1
6384 for ac_func
in fork vfork
6386 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6387 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6388 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6389 cat >>confdefs.h
<<_ACEOF
6390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6396 if test "x$ac_cv_func_fork" = xyes
; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6398 $as_echo_n "checking for working fork... " >&6; }
6399 if ${ac_cv_func_fork_works+:} false
; then :
6400 $as_echo_n "(cached) " >&6
6402 if test "$cross_compiling" = yes; then :
6403 ac_cv_func_fork_works
=cross
6405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6407 $ac_includes_default
6412 /* By Ruediger Kuhlmann. */
6419 if ac_fn_c_try_run
"$LINENO"; then :
6420 ac_cv_func_fork_works
=yes
6422 ac_cv_func_fork_works
=no
6424 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6425 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6430 $as_echo "$ac_cv_func_fork_works" >&6; }
6433 ac_cv_func_fork_works
=$ac_cv_func_fork
6435 if test "x$ac_cv_func_fork_works" = xcross
; then
6437 *-*-amigaos* |
*-*-msdosdjgpp*)
6438 # Override, as these systems have only a dummy fork() stub
6439 ac_cv_func_fork_works
=no
6442 ac_cv_func_fork_works
=yes
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6446 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6448 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6449 if test "x$ac_cv_func_vfork" = xyes
; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6451 $as_echo_n "checking for working vfork... " >&6; }
6452 if ${ac_cv_func_vfork_works+:} false
; then :
6453 $as_echo_n "(cached) " >&6
6455 if test "$cross_compiling" = yes; then :
6456 ac_cv_func_vfork_works
=cross
6458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 /* Thanks to Paul Eggert for this test. */
6461 $ac_includes_default
6462 #include <sys/wait.h>
6466 /* On some sparc systems, changes by the child to local and incoming
6467 argument registers are propagated back to the parent. The compiler
6468 is told about this with #include <vfork.h>, but some compilers
6469 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6470 static variable whose address is put into a register that is
6471 clobbered by the vfork. */
6474 sparc_address_test (int arg)
6476 sparc_address_test (arg) int arg;
6497 pid_t parent = getpid ();
6500 sparc_address_test (0);
6505 /* Here is another test for sparc vfork register problems. This
6506 test uses lots of local variables, at least as many local
6507 variables as main has allocated so far including compiler
6508 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6509 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6510 reuse the register of parent for one of the local variables,
6511 since it will think that parent can't possibly be used any more
6512 in this routine. Assigning to the local variable will thus
6513 munge parent in the parent process. */
6515 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6516 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6517 /* Convince the compiler that p..p7 are live; otherwise, it might
6518 use the same hardware register for all 8 local variables. */
6519 if (p != p1 || p != p2 || p != p3 || p != p4
6520 || p != p5 || p != p6 || p != p7)
6523 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6524 from child file descriptors. If the child closes a descriptor
6525 before it execs or exits, this munges the parent's descriptor
6526 as well. Test for this by closing stdout in the child. */
6527 _exit(close(fileno(stdout)) != 0);
6532 while (wait(&status) != child)
6535 /* Was there some problem with vforking? */
6538 /* Did the child fail? (This shouldn't happen.) */
6541 /* Did the vfork/compiler bug occur? */
6542 || parent != getpid()
6544 /* Did the file descriptor bug occur? */
6545 || fstat(fileno(stdout), &st) != 0
6550 if ac_fn_c_try_run
"$LINENO"; then :
6551 ac_cv_func_vfork_works
=yes
6553 ac_cv_func_vfork_works
=no
6555 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6556 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6561 $as_echo "$ac_cv_func_vfork_works" >&6; }
6564 if test "x$ac_cv_func_fork_works" = xcross
; then
6565 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6567 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6570 if test "x$ac_cv_func_vfork_works" = xyes
; then
6572 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6576 $as_echo "#define vfork fork" >>confdefs.h
6579 if test "x$ac_cv_func_fork_works" = xyes
; then
6581 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6585 for ac_func
in pread pwrite pread64
6587 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6588 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6589 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6590 cat >>confdefs.h
<<_ACEOF
6591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6598 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6599 if test "x$ac_cv_type_size_t" = xyes
; then :
6603 cat >>confdefs.h
<<_ACEOF
6604 #define size_t unsigned int
6612 for ac_header
in $ac_header_list
6614 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6615 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6617 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6618 cat >>confdefs.h
<<_ACEOF
6619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6633 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6634 if ${ac_cv_path_SED+:} false
; then :
6635 $as_echo_n "(cached) " >&6
6637 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6638 for ac_i
in 1 2 3 4 5 6 7; do
6639 ac_script
="$ac_script$as_nl$ac_script"
6641 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
6642 { ac_script
=; unset ac_script
;}
6643 if test -z "$SED"; then
6644 ac_path_SED_found
=false
6645 # Loop through the user's path and test for each of PROGNAME-LIST
6646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir
=.
6651 for ac_prog
in sed gsed
; do
6652 for ac_exec_ext
in '' $ac_executable_extensions; do
6653 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6654 as_fn_executable_p
"$ac_path_SED" ||
continue
6655 # Check for GNU ac_path_SED and select it if it is found.
6656 # Check for GNU $ac_path_SED
6657 case `"$ac_path_SED" --version 2>&1` in
6659 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6662 $as_echo_n 0123456789 >"conftest.in"
6665 cat "conftest.in" "conftest.in" >"conftest.tmp"
6666 mv "conftest.tmp" "conftest.in"
6667 cp "conftest.in" "conftest.nl"
6668 $as_echo '' >> "conftest.nl"
6669 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6670 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6671 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6672 if test $ac_count -gt ${ac_path_SED_max-0}; then
6673 # Best one so far, save it but keep looking for a better one
6674 ac_cv_path_SED
="$ac_path_SED"
6675 ac_path_SED_max
=$ac_count
6677 # 10*(2^10) chars as input seems more than enough
6678 test $ac_count -gt 10 && break
6680 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6683 $ac_path_SED_found && break 3
6688 if test -z "$ac_cv_path_SED"; then
6689 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6697 $as_echo "$ac_cv_path_SED" >&6; }
6698 SED
="$ac_cv_path_SED"
6702 if test "X$prefix" = "XNONE"; then
6703 acl_final_prefix
="$ac_default_prefix"
6705 acl_final_prefix
="$prefix"
6707 if test "X$exec_prefix" = "XNONE"; then
6708 acl_final_exec_prefix
='${prefix}'
6710 acl_final_exec_prefix
="$exec_prefix"
6712 acl_save_prefix
="$prefix"
6713 prefix
="$acl_final_prefix"
6714 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6715 prefix
="$acl_save_prefix"
6718 # Check whether --with-gnu-ld was given.
6719 if test "${with_gnu_ld+set}" = set; then :
6720 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6725 # Prepare PATH_SEPARATOR.
6726 # The user is always right.
6727 if test "${PATH_SEPARATOR+set}" != set; then
6728 echo "#! /bin/sh" >conf$$.sh
6729 echo "exit 0" >>conf$$.sh
6731 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6739 if test "$GCC" = yes; then
6740 # Check if gcc -print-prog-name=ld gives a path.
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6742 $as_echo_n "checking for ld used by GCC... " >&6; }
6745 # gcc leaves a trailing carriage return which upsets mingw
6746 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6748 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6751 # Accept absolute paths.
6752 [\\/]* |
[A-Za-z
]:[\\/]*)
6753 re_direlt
='/[^/][^/]*/\.\./'
6754 # Canonicalize the path of ld
6755 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6756 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6757 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6759 test -z "$LD" && LD
="$ac_prog"
6762 # If it fails, then pretend we aren't using GCC.
6766 # If it is relative, then search for the first ld in PATH.
6770 elif test "$with_gnu_ld" = yes; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6772 $as_echo_n "checking for GNU ld... " >&6; }
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6775 $as_echo_n "checking for non-GNU ld... " >&6; }
6777 if ${acl_cv_path_LD+:} false
; then :
6778 $as_echo_n "(cached) " >&6
6780 if test -z "$LD"; then
6781 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6782 for ac_dir
in $PATH; do
6783 test -z "$ac_dir" && ac_dir
=.
6784 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6785 acl_cv_path_LD
="$ac_dir/$ac_prog"
6786 # Check to see if the program is GNU ld. I'd rather use --version,
6787 # but apparently some GNU ld's only accept -v.
6788 # Break only if it was the GNU/non-GNU ld that we prefer.
6789 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6790 test "$with_gnu_ld" != no
&& break
6792 test "$with_gnu_ld" != yes && break
6798 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6802 LD
="$acl_cv_path_LD"
6803 if test -n "$LD"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6805 $as_echo "$LD" >&6; }
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6810 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6812 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6813 if ${acl_cv_prog_gnu_ld+:} false
; then :
6814 $as_echo_n "(cached) " >&6
6816 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6817 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6818 acl_cv_prog_gnu_ld
=yes
6820 acl_cv_prog_gnu_ld
=no
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6824 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6825 with_gnu_ld
=$acl_cv_prog_gnu_ld
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6830 $as_echo_n "checking for shared library run path origin... " >&6; }
6831 if ${acl_cv_rpath+:} false
; then :
6832 $as_echo_n "(cached) " >&6
6835 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6836 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6843 $as_echo "$acl_cv_rpath" >&6; }
6845 libext
="$acl_cv_libext"
6846 shlibext
="$acl_cv_shlibext"
6847 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6848 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6849 hardcode_direct
="$acl_cv_hardcode_direct"
6850 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6851 # Check whether --enable-rpath was given.
6852 if test "${enable_rpath+set}" = set; then :
6853 enableval
=$enable_rpath; :
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6861 $as_echo_n "checking for ANSI C header files... " >&6; }
6862 if ${ac_cv_header_stdc+:} false
; then :
6863 $as_echo_n "(cached) " >&6
6865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6880 if ac_fn_c_try_compile
"$LINENO"; then :
6881 ac_cv_header_stdc
=yes
6883 ac_cv_header_stdc
=no
6885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6887 if test $ac_cv_header_stdc = yes; then
6888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6895 $EGREP "memchr" >/dev
/null
2>&1; then :
6898 ac_cv_header_stdc
=no
6904 if test $ac_cv_header_stdc = yes; then
6905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6912 $EGREP "free" >/dev
/null
2>&1; then :
6915 ac_cv_header_stdc
=no
6921 if test $ac_cv_header_stdc = yes; then
6922 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6923 if test "$cross_compiling" = yes; then :
6926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6930 #if ((' ' & 0x0FF) == 0x020)
6931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6934 # define ISLOWER(c) \
6935 (('a' <= (c) && (c) <= 'i') \
6936 || ('j' <= (c) && (c) <= 'r') \
6937 || ('s' <= (c) && (c) <= 'z'))
6938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6946 for (i = 0; i < 256; i++)
6947 if (XOR (islower (i), ISLOWER (i))
6948 || toupper (i) != TOUPPER (i))
6953 if ac_fn_c_try_run
"$LINENO"; then :
6956 ac_cv_header_stdc
=no
6958 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6959 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6965 $as_echo "$ac_cv_header_stdc" >&6; }
6966 if test $ac_cv_header_stdc = yes; then
6968 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6972 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6973 # for constant arguments. Useless!
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6975 $as_echo_n "checking for working alloca.h... " >&6; }
6976 if ${ac_cv_working_alloca_h+:} false
; then :
6977 $as_echo_n "(cached) " >&6
6979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6985 char *p = (char *) alloca (2 * sizeof (int));
6991 if ac_fn_c_try_link
"$LINENO"; then :
6992 ac_cv_working_alloca_h
=yes
6994 ac_cv_working_alloca_h
=no
6996 rm -f core conftest.err conftest.
$ac_objext \
6997 conftest
$ac_exeext conftest.
$ac_ext
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7000 $as_echo "$ac_cv_working_alloca_h" >&6; }
7001 if test $ac_cv_working_alloca_h = yes; then
7003 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7008 $as_echo_n "checking for alloca... " >&6; }
7009 if ${ac_cv_func_alloca_works+:} false
; then :
7010 $as_echo_n "(cached) " >&6
7012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7015 # define alloca __builtin_alloca
7018 # include <malloc.h>
7019 # define alloca _alloca
7021 # ifdef HAVE_ALLOCA_H
7022 # include <alloca.h>
7027 # ifndef alloca /* predefined by HP cc +Olibcalls */
7028 void *alloca (size_t);
7038 char *p = (char *) alloca (1);
7044 if ac_fn_c_try_link
"$LINENO"; then :
7045 ac_cv_func_alloca_works
=yes
7047 ac_cv_func_alloca_works
=no
7049 rm -f core conftest.err conftest.
$ac_objext \
7050 conftest
$ac_exeext conftest.
$ac_ext
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7053 $as_echo "$ac_cv_func_alloca_works" >&6; }
7055 if test $ac_cv_func_alloca_works = yes; then
7057 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7060 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7061 # that cause trouble. Some versions do not even contain alloca or
7062 # contain a buggy version. If you still want to use their alloca,
7063 # use ar to extract alloca.o from them instead of compiling alloca.c.
7065 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7067 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7071 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7072 if ${ac_cv_os_cray+:} false
; then :
7073 $as_echo_n "(cached) " >&6
7075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7077 #if defined CRAY && ! defined CRAY2
7084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7085 $EGREP "webecray" >/dev
/null
2>&1; then :
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7094 $as_echo "$ac_cv_os_cray" >&6; }
7095 if test $ac_cv_os_cray = yes; then
7096 for ac_func
in _getb67 GETB67 getb67
; do
7097 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7098 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7099 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7101 cat >>confdefs.h
<<_ACEOF
7102 #define CRAY_STACKSEG_END $ac_func
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7112 $as_echo_n "checking stack direction for C alloca... " >&6; }
7113 if ${ac_cv_c_stack_direction+:} false
; then :
7114 $as_echo_n "(cached) " >&6
7116 if test "$cross_compiling" = yes; then :
7117 ac_cv_c_stack_direction
=0
7119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7121 $ac_includes_default
7123 find_stack_direction (int *addr, int depth)
7128 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7129 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7134 main (int argc, char **argv)
7136 return find_stack_direction (0, argc + !argv + 20) < 0;
7139 if ac_fn_c_try_run
"$LINENO"; then :
7140 ac_cv_c_stack_direction
=1
7142 ac_cv_c_stack_direction
=-1
7144 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7145 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7150 $as_echo "$ac_cv_c_stack_direction" >&6; }
7151 cat >>confdefs.h
<<_ACEOF
7152 #define STACK_DIRECTION $ac_cv_c_stack_direction
7163 $as_echo "#define USE_WIN32API 1" >>confdefs.h
7165 WIN32APILIBS
="-lws2_32"
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7171 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7172 if ${am_cv_langinfo_codeset+:} false
; then :
7173 $as_echo_n "(cached) " >&6
7175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 #include <langinfo.h>
7181 char* cs = nl_langinfo(CODESET);
7186 if ac_fn_c_try_link
"$LINENO"; then :
7187 am_cv_langinfo_codeset
=yes
7189 am_cv_langinfo_codeset
=no
7191 rm -f core conftest.err conftest.
$ac_objext \
7192 conftest
$ac_exeext conftest.
$ac_ext
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7196 $as_echo "$am_cv_langinfo_codeset" >&6; }
7197 if test $am_cv_langinfo_codeset = yes; then
7199 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7204 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
7206 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7207 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7208 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7209 cat >>confdefs.h
<<_ACEOF
7210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7219 for ac_func
in getpagesize
7221 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7222 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7223 cat >>confdefs.h
<<_ACEOF
7224 #define HAVE_GETPAGESIZE 1
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7231 $as_echo_n "checking for working mmap... " >&6; }
7232 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7233 $as_echo_n "(cached) " >&6
7235 if test "$cross_compiling" = yes; then :
7236 ac_cv_func_mmap_fixed_mapped
=no
7238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240 $ac_includes_default
7241 /* malloc might have been renamed as rpl_malloc. */
7244 /* Thanks to Mike Haertel and Jim Avera for this test.
7245 Here is a matrix of mmap possibilities:
7246 mmap private not fixed
7247 mmap private fixed at somewhere currently unmapped
7248 mmap private fixed at somewhere already mapped
7249 mmap shared not fixed
7250 mmap shared fixed at somewhere currently unmapped
7251 mmap shared fixed at somewhere already mapped
7252 For private mappings, we should verify that changes cannot be read()
7253 back from the file, nor mmap's back from the file at a different
7254 address. (There have been systems where private was not correctly
7255 implemented like the infamous i386 svr4.0, and systems where the
7256 VM page cache was not coherent with the file system buffer cache
7257 like early versions of FreeBSD and possibly contemporary NetBSD.)
7258 For shared mappings, we should conversely verify that changes get
7259 propagated back to all the places they're supposed to be.
7261 Grep wants private fixed already mapped.
7262 The main things grep needs to know about mmap are:
7263 * does it exist and is it safe to write into the mmap'd area
7264 * how to use it (BSD variants) */
7267 #include <sys/mman.h>
7269 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7273 /* This mess was copied from the GNU getpagesize.h. */
7274 #ifndef HAVE_GETPAGESIZE
7275 # ifdef _SC_PAGESIZE
7276 # define getpagesize() sysconf(_SC_PAGESIZE)
7277 # else /* no _SC_PAGESIZE */
7278 # ifdef HAVE_SYS_PARAM_H
7279 # include <sys/param.h>
7280 # ifdef EXEC_PAGESIZE
7281 # define getpagesize() EXEC_PAGESIZE
7282 # else /* no EXEC_PAGESIZE */
7284 # define getpagesize() NBPG * CLSIZE
7287 # endif /* no CLSIZE */
7288 # else /* no NBPG */
7290 # define getpagesize() NBPC
7291 # else /* no NBPC */
7293 # define getpagesize() PAGESIZE
7294 # endif /* PAGESIZE */
7295 # endif /* no NBPC */
7296 # endif /* no NBPG */
7297 # endif /* no EXEC_PAGESIZE */
7298 # else /* no HAVE_SYS_PARAM_H */
7299 # define getpagesize() 8192 /* punt totally */
7300 # endif /* no HAVE_SYS_PARAM_H */
7301 # endif /* no _SC_PAGESIZE */
7303 #endif /* no HAVE_GETPAGESIZE */
7308 char *data, *data2, *data3;
7313 pagesize = getpagesize ();
7315 /* First, make a file with some known garbage in it. */
7316 data = (char *) malloc (pagesize);
7319 for (i = 0; i < pagesize; ++i)
7320 *(data + i) = rand ();
7322 fd = creat ("conftest.mmap", 0600);
7325 if (write (fd, data, pagesize) != pagesize)
7329 /* Next, check that the tail of a page is zero-filled. File must have
7330 non-zero length, otherwise we risk SIGBUS for entire page. */
7331 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7335 if (write (fd2, cdata2, 1) != 1)
7337 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7338 if (data2 == MAP_FAILED)
7340 for (i = 0; i < pagesize; ++i)
7344 if (munmap (data2, pagesize))
7347 /* Next, try to mmap the file at a fixed address which already has
7348 something else allocated at it. If we can, also make sure that
7349 we see the same garbage. */
7350 fd = open ("conftest.mmap", O_RDWR);
7353 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7354 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7356 for (i = 0; i < pagesize; ++i)
7357 if (*(data + i) != *(data2 + i))
7360 /* Finally, make sure that changes to the mapped area do not
7361 percolate back to the file as seen by read(). (This is a bug on
7362 some variants of i386 svr4.0.) */
7363 for (i = 0; i < pagesize; ++i)
7364 *(data2 + i) = *(data2 + i) + 1;
7365 data3 = (char *) malloc (pagesize);
7368 if (read (fd, data3, pagesize) != pagesize)
7370 for (i = 0; i < pagesize; ++i)
7371 if (*(data + i) != *(data3 + i))
7377 if ac_fn_c_try_run
"$LINENO"; then :
7378 ac_cv_func_mmap_fixed_mapped
=yes
7380 ac_cv_func_mmap_fixed_mapped
=no
7382 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7383 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7388 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7389 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7391 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7394 rm -f conftest.mmap conftest.txt
7396 for ac_header
in vfork.h
7398 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7399 if test "x$ac_cv_header_vfork_h" = xyes
; then :
7400 cat >>confdefs.h
<<_ACEOF
7401 #define HAVE_VFORK_H 1
7408 for ac_func
in fork vfork
7410 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7411 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7412 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7413 cat >>confdefs.h
<<_ACEOF
7414 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7420 if test "x$ac_cv_func_fork" = xyes
; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7422 $as_echo_n "checking for working fork... " >&6; }
7423 if ${ac_cv_func_fork_works+:} false
; then :
7424 $as_echo_n "(cached) " >&6
7426 if test "$cross_compiling" = yes; then :
7427 ac_cv_func_fork_works
=cross
7429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7431 $ac_includes_default
7436 /* By Ruediger Kuhlmann. */
7443 if ac_fn_c_try_run
"$LINENO"; then :
7444 ac_cv_func_fork_works
=yes
7446 ac_cv_func_fork_works
=no
7448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7449 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7454 $as_echo "$ac_cv_func_fork_works" >&6; }
7457 ac_cv_func_fork_works
=$ac_cv_func_fork
7459 if test "x$ac_cv_func_fork_works" = xcross
; then
7461 *-*-amigaos* |
*-*-msdosdjgpp*)
7462 # Override, as these systems have only a dummy fork() stub
7463 ac_cv_func_fork_works
=no
7466 ac_cv_func_fork_works
=yes
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7470 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7472 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7473 if test "x$ac_cv_func_vfork" = xyes
; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7475 $as_echo_n "checking for working vfork... " >&6; }
7476 if ${ac_cv_func_vfork_works+:} false
; then :
7477 $as_echo_n "(cached) " >&6
7479 if test "$cross_compiling" = yes; then :
7480 ac_cv_func_vfork_works
=cross
7482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484 /* Thanks to Paul Eggert for this test. */
7485 $ac_includes_default
7486 #include <sys/wait.h>
7490 /* On some sparc systems, changes by the child to local and incoming
7491 argument registers are propagated back to the parent. The compiler
7492 is told about this with #include <vfork.h>, but some compilers
7493 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7494 static variable whose address is put into a register that is
7495 clobbered by the vfork. */
7498 sparc_address_test (int arg)
7500 sparc_address_test (arg) int arg;
7521 pid_t parent = getpid ();
7524 sparc_address_test (0);
7529 /* Here is another test for sparc vfork register problems. This
7530 test uses lots of local variables, at least as many local
7531 variables as main has allocated so far including compiler
7532 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7533 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7534 reuse the register of parent for one of the local variables,
7535 since it will think that parent can't possibly be used any more
7536 in this routine. Assigning to the local variable will thus
7537 munge parent in the parent process. */
7539 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7540 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7541 /* Convince the compiler that p..p7 are live; otherwise, it might
7542 use the same hardware register for all 8 local variables. */
7543 if (p != p1 || p != p2 || p != p3 || p != p4
7544 || p != p5 || p != p6 || p != p7)
7547 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7548 from child file descriptors. If the child closes a descriptor
7549 before it execs or exits, this munges the parent's descriptor
7550 as well. Test for this by closing stdout in the child. */
7551 _exit(close(fileno(stdout)) != 0);
7556 while (wait(&status) != child)
7559 /* Was there some problem with vforking? */
7562 /* Did the child fail? (This shouldn't happen.) */
7565 /* Did the vfork/compiler bug occur? */
7566 || parent != getpid()
7568 /* Did the file descriptor bug occur? */
7569 || fstat(fileno(stdout), &st) != 0
7574 if ac_fn_c_try_run
"$LINENO"; then :
7575 ac_cv_func_vfork_works
=yes
7577 ac_cv_func_vfork_works
=no
7579 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7580 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7585 $as_echo "$ac_cv_func_vfork_works" >&6; }
7588 if test "x$ac_cv_func_fork_works" = xcross
; then
7589 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7591 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7594 if test "x$ac_cv_func_vfork_works" = xyes
; then
7596 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7600 $as_echo "#define vfork fork" >>confdefs.h
7603 if test "x$ac_cv_func_fork_works" = xyes
; then
7605 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7609 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
7610 ptrace64 sbrk setns sigaltstack sigprocmask \
7611 setpgid setpgrp getrusage getauxval
7613 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7614 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7615 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7616 cat >>confdefs.h
<<_ACEOF
7617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7624 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7626 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
7632 cat >>confdefs.h
<<_ACEOF
7633 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7637 if test "$cross_compiling" = yes; then :
7638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 #include <sys/personality.h>
7645 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7646 # define ADDR_NO_RANDOMIZE 0x0040000
7648 /* Test the flag could be set and stays set. */
7649 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7650 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7656 if ac_fn_c_try_link
"$LINENO"; then :
7657 have_personality
=true
7659 have_personality
=false
7661 rm -f core conftest.err conftest.
$ac_objext \
7662 conftest
$ac_exeext conftest.
$ac_ext
7664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666 #include <sys/personality.h>
7671 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7672 # define ADDR_NO_RANDOMIZE 0x0040000
7674 /* Test the flag could be set and stays set. */
7675 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7676 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7682 if ac_fn_c_try_run
"$LINENO"; then :
7683 have_personality
=true
7685 have_personality
=false
7687 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7688 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7691 if $have_personality
7694 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
7698 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
7699 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
7705 cat >>confdefs.h
<<_ACEOF
7706 #define HAVE_DECL_STRSTR $ac_have_decl
7710 # ----------------------- #
7711 # Checks for structures. #
7712 # ----------------------- #
7714 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7715 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
7717 cat >>confdefs.h
<<_ACEOF
7718 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7723 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7724 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
7726 cat >>confdefs.h
<<_ACEOF
7727 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7735 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
7736 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7737 $as_echo_n "(cached) " >&6
7739 ac_func_search_save_LIBS
=$LIBS
7740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7743 /* Override any GCC internal prototype to avoid an error.
7744 Use char because int might match the return type of a GCC
7745 builtin and then its argument prototype would still apply. */
7749 char kinfo_getfile ();
7753 return kinfo_getfile ();
7758 for ac_lib
in '' util util-freebsd
; do
7759 if test -z "$ac_lib"; then
7760 ac_res
="none required"
7763 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7765 if ac_fn_c_try_link
"$LINENO"; then :
7766 ac_cv_search_kinfo_getfile
=$ac_res
7768 rm -f core conftest.err conftest.
$ac_objext \
7770 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7774 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7777 ac_cv_search_kinfo_getfile
=no
7780 LIBS
=$ac_func_search_save_LIBS
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
7783 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
7784 ac_res
=$ac_cv_search_kinfo_getfile
7785 if test "$ac_res" != no
; then :
7786 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7788 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
7793 # Check for std::thread. This does not work on some platforms, like
7796 ac_cpp
='$CXXCPP $CPPFLAGS'
7797 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7798 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7799 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7806 ac_cpp
='$CPP $CPPFLAGS'
7807 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7813 # We used to check for pthread.h first, but this fails if pthread.h
7814 # requires special compiler flags (e.g. on Tru64 or Sequent).
7815 # It gets checked for in the link test anyway.
7817 # First of all, check if the user has set any of the PTHREAD_LIBS,
7818 # etcetera environment variables, and if threads linking works using
7820 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7821 ax_pthread_save_CC
="$CC"
7822 ax_pthread_save_CFLAGS
="$CFLAGS"
7823 ax_pthread_save_LIBS
="$LIBS"
7824 if test "x$PTHREAD_CC" != "x"; then :
7827 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7828 LIBS
="$PTHREAD_LIBS $LIBS"
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7830 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7834 /* Override any GCC internal prototype to avoid an error.
7835 Use char because int might match the return type of a GCC
7836 builtin and then its argument prototype would still apply. */
7840 char pthread_join ();
7844 return pthread_join ();
7849 if ac_fn_c_try_link
"$LINENO"; then :
7852 rm -f core conftest.err conftest.
$ac_objext \
7853 conftest
$ac_exeext conftest.
$ac_ext
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7855 $as_echo "$ax_pthread_ok" >&6; }
7856 if test "x$ax_pthread_ok" = "xno"; then
7860 CC
="$ax_pthread_save_CC"
7861 CFLAGS
="$ax_pthread_save_CFLAGS"
7862 LIBS
="$ax_pthread_save_LIBS"
7865 # We must check for the threads library under a number of different
7866 # names; the ordering is very important because some systems
7867 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7868 # libraries is broken (non-POSIX).
7870 # Create a list of thread flags to try. Items starting with a "-" are
7871 # C compiler flags, and other items are library names, except for "none"
7872 # which indicates that we try without any flags at all, and "pthread-config"
7873 # which is a program returning the flags for the Pth emulation library.
7875 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7877 # The ordering *is* (sometimes) important. Some notes on the
7878 # individual items follow:
7880 # pthreads: AIX (must check this before -lpthread)
7881 # none: in case threads are in libc; should be tried before -Kthread and
7882 # other compiler flags to prevent continual compiler warnings
7883 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7884 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7885 # (Note: HP C rejects this with "bad form for `-t' option")
7886 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7887 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7888 # doesn't hurt to check since this sometimes defines pthreads and
7889 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7890 # is present but should not be used directly; and before -mthreads,
7891 # because the compiler interprets this as "-mt" + "-hreads")
7892 # -mthreads: Mingw32/gcc, Lynx/gcc
7893 # pthread: Linux, etcetera
7894 # --thread-safe: KAI C++
7895 # pthread-config: use pthread-config program (for GNU Pth library)
7901 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7902 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7904 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
7909 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7910 # multi-threading and also sets -lpthread."
7912 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
7917 # IBM z/OS requires a feature-test macro to be defined in order to
7918 # enable POSIX threads at all, so give the user a hint if this is
7919 # not set. (We don't define these ourselves, as they can affect
7920 # other portions of the system API in unpredictable ways.)
7922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7925 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7926 AX_PTHREAD_ZOS_MISSING
7930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7931 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7933 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7941 # On Solaris (at least, for some versions), libc contains stubbed
7942 # (non-functional) versions of the pthreads routines, so link-based
7943 # tests will erroneously succeed. (N.B.: The stubs are missing
7944 # pthread_cleanup_push, or rather a function called by this macro,
7945 # so we could check for that, but who knows whether they'll stub
7946 # that too in a future libc.) So we'll check first for the
7947 # standard Solaris way of linking pthreads (-mt -lpthread).
7949 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
7953 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7955 if test "x$GCC" = "xyes"; then :
7956 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
7959 # The presence of a feature test macro requesting re-entrant function
7960 # definitions is, on some systems, a strong hint that pthreads support is
7964 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
7965 ax_pthread_check_macro
="_REENTRANT"
7969 ax_pthread_check_macro
="_THREAD_SAFE"
7973 ax_pthread_check_macro
="--"
7976 if test "x$ax_pthread_check_macro" = "x--"; then :
7977 ax_pthread_check_cond
=0
7979 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
7982 # Are we compiling with Clang?
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7985 $as_echo_n "checking whether $CC is Clang... " >&6; }
7986 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
7987 $as_echo_n "(cached) " >&6
7989 ax_cv_PTHREAD_CLANG
=no
7990 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7991 if test "x$GCC" = "xyes"; then
7992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7994 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7995 # if defined(__clang__) && defined(__llvm__)
7996 AX_PTHREAD_CC_IS_CLANG
8000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8001 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
8002 ax_cv_PTHREAD_CLANG
=yes
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8010 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8011 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
8013 ax_pthread_clang_warning
=no
8015 # Clang needs special handling, because older versions handle the -pthread
8016 # option in a rather... idiosyncratic way
8018 if test "x$ax_pthread_clang" = "xyes"; then
8020 # Clang takes -pthread; it has never supported any other flag
8022 # (Note 1: This will need to be revisited if a system that Clang
8023 # supports has POSIX threads in a separate library. This tends not
8024 # to be the way of modern systems, but it's conceivable.)
8026 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8027 # to get POSIX threads support; the API is always present and
8028 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8029 # -pthread does define _REENTRANT, and while the Darwin headers
8030 # ignore this macro, third-party headers might not.)
8032 PTHREAD_CFLAGS
="-pthread"
8037 # However, older versions of Clang make a point of warning the user
8038 # that, in an invocation where only linking and no compilation is
8039 # taking place, the -pthread option has no effect ("argument unused
8040 # during compilation"). They expect -pthread to be passed in only
8041 # when source code is being compiled.
8043 # Problem is, this is at odds with the way Automake and most other
8044 # C build frameworks function, which is that the same flags used in
8045 # compilation (CFLAGS) are also used in linking. Many systems
8046 # supported by AX_PTHREAD require exactly this for POSIX threads
8047 # support, and in fact it is often not straightforward to specify a
8048 # flag that is used only in the compilation phase and not in
8049 # linking. Such a scenario is extremely rare in practice.
8051 # Even though use of the -pthread flag in linking would only print
8052 # a warning, this can be a nuisance for well-run software projects
8053 # that build with -Werror. So if the active version of Clang has
8054 # this misfeature, we search for an option to squash it.
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8057 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8058 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
8059 $as_echo_n "(cached) " >&6
8061 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
8062 # Create an alternate version of $ac_link that compiles and
8063 # links in two steps (.c -> .o, .o -> exe) instead of one
8064 # (.c -> exe), because the warning occurs only in the second
8066 ax_pthread_save_ac_link
="$ac_link"
8067 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8068 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8069 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8070 ax_pthread_save_CFLAGS
="$CFLAGS"
8071 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
8072 if test "x$ax_pthread_try" = "xunknown"; then :
8075 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8076 ac_link
="$ax_pthread_save_ac_link"
8077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8079 int main(void){return 0;}
8081 if ac_fn_c_try_link
"$LINENO"; then :
8082 ac_link
="$ax_pthread_2step_ac_link"
8083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8085 int main(void){return 0;}
8087 if ac_fn_c_try_link
"$LINENO"; then :
8090 rm -f core conftest.err conftest.
$ac_objext \
8091 conftest
$ac_exeext conftest.
$ac_ext
8094 rm -f core conftest.err conftest.
$ac_objext \
8095 conftest
$ac_exeext conftest.
$ac_ext
8097 ac_link
="$ax_pthread_save_ac_link"
8098 CFLAGS
="$ax_pthread_save_CFLAGS"
8099 if test "x$ax_pthread_try" = "x"; then :
8102 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8106 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8108 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8110 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8113 fi # $ax_pthread_clang = yes
8115 if test "x$ax_pthread_ok" = "xno"; then
8116 for ax_pthread_try_flag
in $ax_pthread_flags; do
8118 case $ax_pthread_try_flag in
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8121 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8126 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8127 PTHREAD_CFLAGS
="-mt"
8128 PTHREAD_LIBS
="-lpthread"
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8133 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8134 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
8138 # Extract the first word of "pthread-config", so it can be a program name with args.
8139 set dummy pthread-config
; ac_word
=$2
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
8143 $as_echo_n "(cached) " >&6
8145 if test -n "$ax_pthread_config"; then
8146 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
8148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8152 test -z "$as_dir" && as_dir
=.
8153 for ac_exec_ext
in '' $ac_executable_extensions; do
8154 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8155 ac_cv_prog_ax_pthread_config
="yes"
8156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8163 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
8166 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
8167 if test -n "$ax_pthread_config"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8169 $as_echo "$ax_pthread_config" >&6; }
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8176 if test "x$ax_pthread_config" = "xno"; then :
8179 PTHREAD_CFLAGS
="`pthread-config --cflags`"
8180 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8185 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8186 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
8190 ax_pthread_save_CFLAGS
="$CFLAGS"
8191 ax_pthread_save_LIBS
="$LIBS"
8192 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8193 LIBS
="$PTHREAD_LIBS $LIBS"
8195 # Check for various functions. We must include pthread.h,
8196 # since some functions may be macros. (On the Sequent, we
8197 # need a special flag -Kthread to make this header compile.)
8198 # We check for pthread_join because it is in -lpthread on IRIX
8199 # while pthread_create is in libc. We check for pthread_attr_init
8200 # due to DEC craziness with -lpthreads. We check for
8201 # pthread_cleanup_push because it is one of the few pthread
8202 # functions on Solaris that doesn't have a non-functional libc stub.
8203 # We try pthread_create on general principles.
8205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207 #include <pthread.h>
8208 # if $ax_pthread_check_cond
8209 # error "$ax_pthread_check_macro must be defined"
8211 static void routine(void *a) { a = 0; }
8212 static void *start_routine(void *a) { return a; }
8216 pthread_t th; pthread_attr_t attr;
8217 pthread_create(&th, 0, start_routine, 0);
8218 pthread_join(th, 0);
8219 pthread_attr_init(&attr);
8220 pthread_cleanup_push(routine, 0);
8221 pthread_cleanup_pop(0) /* ; */
8226 if ac_fn_c_try_link
"$LINENO"; then :
8229 rm -f core conftest.err conftest.
$ac_objext \
8230 conftest
$ac_exeext conftest.
$ac_ext
8232 CFLAGS
="$ax_pthread_save_CFLAGS"
8233 LIBS
="$ax_pthread_save_LIBS"
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8236 $as_echo "$ax_pthread_ok" >&6; }
8237 if test "x$ax_pthread_ok" = "xyes"; then :
8246 # Various other checks:
8247 if test "x$ax_pthread_ok" = "xyes"; then
8248 ax_pthread_save_CFLAGS
="$CFLAGS"
8249 ax_pthread_save_LIBS
="$LIBS"
8250 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8251 LIBS
="$PTHREAD_LIBS $LIBS"
8253 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8255 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8256 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
8257 $as_echo_n "(cached) " >&6
8259 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
8260 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
8261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 #include <pthread.h>
8267 int attr = $ax_pthread_attr; return attr /* ; */
8272 if ac_fn_c_try_link
"$LINENO"; then :
8273 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
8275 rm -f core conftest.err conftest.
$ac_objext \
8276 conftest
$ac_exeext conftest.
$ac_ext
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8281 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8282 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8283 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8284 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8286 cat >>confdefs.h
<<_ACEOF
8287 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8290 ax_pthread_joinable_attr_defined
=yes
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8295 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8296 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
8297 $as_echo_n "(cached) " >&6
8299 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
8302 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8308 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8309 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8310 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8311 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8312 ax_pthread_special_flags_added
=yes
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8316 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8317 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
8318 $as_echo_n "(cached) " >&6
8320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 #include <pthread.h>
8326 int i = PTHREAD_PRIO_INHERIT;
8331 if ac_fn_c_try_link
"$LINENO"; then :
8332 ax_cv_PTHREAD_PRIO_INHERIT
=yes
8334 ax_cv_PTHREAD_PRIO_INHERIT
=no
8336 rm -f core conftest.err conftest.
$ac_objext \
8337 conftest
$ac_exeext conftest.
$ac_ext
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8341 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8342 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8343 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8345 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8347 ax_pthread_prio_inherit_defined
=yes
8351 CFLAGS
="$ax_pthread_save_CFLAGS"
8352 LIBS
="$ax_pthread_save_LIBS"
8354 # More AIX lossage: compile with *_r variant
8355 if test "x$GCC" != "xyes"; then
8359 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
8360 #handle absolute path differently from PATH based program lookup
8363 if as_fn_executable_p
${CC}_r
; then :
8364 PTHREAD_CC
="${CC}_r"
8367 for ac_prog
in ${CC}_r
8369 # Extract the first word of "$ac_prog", so it can be a program name with args.
8370 set dummy
$ac_prog; ac_word
=$2
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 $as_echo_n "checking for $ac_word... " >&6; }
8373 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
8374 $as_echo_n "(cached) " >&6
8376 if test -n "$PTHREAD_CC"; then
8377 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
8379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8383 test -z "$as_dir" && as_dir
=.
8384 for ac_exec_ext
in '' $ac_executable_extensions; do
8385 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8386 ac_cv_prog_PTHREAD_CC
="$ac_prog"
8387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
8397 if test -n "$PTHREAD_CC"; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8399 $as_echo "$PTHREAD_CC" >&6; }
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8406 test -n "$PTHREAD_CC" && break
8408 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8419 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8425 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8426 if test "x$ax_pthread_ok" = "xyes"; then
8434 ac_cpp
='$CXXCPP $CPPFLAGS'
8435 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8436 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8437 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8440 if test "$threads" = "yes"; then
8442 LIBS
="$PTHREAD_LIBS $LIBS"
8443 save_CXXFLAGS
="$CXXFLAGS"
8444 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
8446 $as_echo_n "checking for std::thread... " >&6; }
8447 if ${gdb_cv_cxx_std_thread+:} false
; then :
8448 $as_echo_n "(cached) " >&6
8450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8457 std::thread t(callback);
8462 if ac_fn_cxx_try_compile
"$LINENO"; then :
8463 gdb_cv_cxx_std_thread
=yes
8465 gdb_cv_cxx_std_thread
=no
8467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
8470 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
8472 # This check must be here, while LIBS includes any necessary
8473 # threading library.
8474 for ac_func
in pthread_sigmask pthread_setname_np
8476 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8477 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8478 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8479 cat >>confdefs.h
<<_ACEOF
8480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8488 CXXFLAGS
="$save_CXXFLAGS"
8490 if test "$gdb_cv_cxx_std_thread" = "yes"; then
8492 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
8496 ac_cpp
='$CPP $CPPFLAGS'
8497 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
8503 $as_echo_n "checking for sigsetjmp... " >&6; }
8504 if ${gdb_cv_func_sigsetjmp+:} false
; then :
8505 $as_echo_n "(cached) " >&6
8507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8515 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
8520 if ac_fn_c_try_compile
"$LINENO"; then :
8521 gdb_cv_func_sigsetjmp
=yes
8523 gdb_cv_func_sigsetjmp
=no
8525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
8528 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
8529 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
8531 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
8536 # Check whether --with-intel_pt was given.
8537 if test "${with_intel_pt+set}" = set; then :
8538 withval
=$with_intel_pt;
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
8544 $as_echo_n "checking whether to use intel pt... " >&6; }
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
8546 $as_echo "$with_intel_pt" >&6; }
8548 if test "${with_intel_pt}" = no
; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
8550 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
8553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8556 #include <linux/perf_event.h>
8557 #ifndef PERF_ATTR_SIZE_VER5
8562 if ac_fn_c_try_cpp
"$LINENO"; then :
8567 rm -f conftest.err conftest.i conftest.
$ac_ext
8568 if test "$perf_event" != yes; then
8569 if test "$with_intel_pt" = yes; then
8570 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
8573 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
8587 acl_save_prefix
="$prefix"
8588 prefix
="$acl_final_prefix"
8589 acl_save_exec_prefix
="$exec_prefix"
8590 exec_prefix
="$acl_final_exec_prefix"
8592 eval additional_includedir
=\"$includedir\"
8593 eval additional_libdir
=\"$libdir\"
8595 exec_prefix
="$acl_save_exec_prefix"
8596 prefix
="$acl_save_prefix"
8599 # Check whether --with-libipt-prefix was given.
8600 if test "${with_libipt_prefix+set}" = set; then :
8601 withval
=$with_libipt_prefix;
8602 if test "X$withval" = "Xno"; then
8605 if test "X$withval" = "X"; then
8607 acl_save_prefix
="$prefix"
8608 prefix
="$acl_final_prefix"
8609 acl_save_exec_prefix
="$exec_prefix"
8610 exec_prefix
="$acl_final_exec_prefix"
8612 eval additional_includedir
=\"$includedir\"
8613 eval additional_libdir
=\"$libdir\"
8615 exec_prefix
="$acl_save_exec_prefix"
8616 prefix
="$acl_save_prefix"
8619 additional_includedir
="$withval/include"
8620 additional_libdir
="$withval/lib"
8631 names_already_handled
=
8632 names_next_round
='ipt '
8633 while test -n "$names_next_round"; do
8634 names_this_round
="$names_next_round"
8636 for name
in $names_this_round; do
8638 for n
in $names_already_handled; do
8639 if test "$n" = "$name"; then
8644 if test -z "$already_handled"; then
8645 names_already_handled
="$names_already_handled $name"
8646 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8647 eval value
=\"\
$HAVE_LIB$uppername\"
8648 if test -n "$value"; then
8649 if test "$value" = yes; then
8650 eval value
=\"\
$LIB$uppername\"
8651 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
8652 eval value
=\"\
$LTLIB$uppername\"
8653 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
8662 if test $use_additional = yes; then
8663 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8664 found_dir
="$additional_libdir"
8665 found_so
="$additional_libdir/lib$name.$shlibext"
8666 if test -f "$additional_libdir/lib$name.la"; then
8667 found_la
="$additional_libdir/lib$name.la"
8670 if test -f "$additional_libdir/lib$name.$libext"; then
8671 found_dir
="$additional_libdir"
8672 found_a
="$additional_libdir/lib$name.$libext"
8673 if test -f "$additional_libdir/lib$name.la"; then
8674 found_la
="$additional_libdir/lib$name.la"
8679 if test "X$found_dir" = "X"; then
8680 for x
in $LDFLAGS $LTLIBIPT; do
8682 acl_save_prefix
="$prefix"
8683 prefix
="$acl_final_prefix"
8684 acl_save_exec_prefix
="$exec_prefix"
8685 exec_prefix
="$acl_final_exec_prefix"
8687 exec_prefix
="$acl_save_exec_prefix"
8688 prefix
="$acl_save_prefix"
8692 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8693 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8695 found_so
="$dir/lib$name.$shlibext"
8696 if test -f "$dir/lib$name.la"; then
8697 found_la
="$dir/lib$name.la"
8700 if test -f "$dir/lib$name.$libext"; then
8702 found_a
="$dir/lib$name.$libext"
8703 if test -f "$dir/lib$name.la"; then
8704 found_la
="$dir/lib$name.la"
8710 if test "X$found_dir" != "X"; then
8715 if test "X$found_dir" != "X"; then
8716 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
8717 if test "X$found_so" != "X"; then
8718 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8719 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8722 for x
in $ltrpathdirs; do
8723 if test "X$x" = "X$found_dir"; then
8728 if test -z "$haveit"; then
8729 ltrpathdirs
="$ltrpathdirs $found_dir"
8731 if test "$hardcode_direct" = yes; then
8732 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8734 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8735 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8737 for x
in $rpathdirs; do
8738 if test "X$x" = "X$found_dir"; then
8743 if test -z "$haveit"; then
8744 rpathdirs
="$rpathdirs $found_dir"
8748 for x
in $LDFLAGS $LIBIPT; do
8750 acl_save_prefix
="$prefix"
8751 prefix
="$acl_final_prefix"
8752 acl_save_exec_prefix
="$exec_prefix"
8753 exec_prefix
="$acl_final_exec_prefix"
8755 exec_prefix
="$acl_save_exec_prefix"
8756 prefix
="$acl_save_prefix"
8758 if test "X$x" = "X-L$found_dir"; then
8763 if test -z "$haveit"; then
8764 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
8766 if test "$hardcode_minus_L" != no
; then
8767 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8769 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
8775 if test "X$found_a" != "X"; then
8776 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
8778 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
8781 additional_includedir
=
8782 case "$found_dir" in
8784 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8785 additional_includedir
="$basedir/include"
8788 if test "X$additional_includedir" != "X"; then
8789 if test "X$additional_includedir" != "X/usr/include"; then
8791 if test "X$additional_includedir" = "X/usr/local/include"; then
8792 if test -n "$GCC"; then
8794 linux
*) haveit
=yes;;
8798 if test -z "$haveit"; then
8799 for x
in $CPPFLAGS $INCIPT; do
8801 acl_save_prefix
="$prefix"
8802 prefix
="$acl_final_prefix"
8803 acl_save_exec_prefix
="$exec_prefix"
8804 exec_prefix
="$acl_final_exec_prefix"
8806 exec_prefix
="$acl_save_exec_prefix"
8807 prefix
="$acl_save_prefix"
8809 if test "X$x" = "X-I$additional_includedir"; then
8814 if test -z "$haveit"; then
8815 if test -d "$additional_includedir"; then
8816 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
8822 if test -n "$found_la"; then
8823 save_libdir
="$libdir"
8825 */* |
*\\*) .
"$found_la" ;;
8826 *) .
"./$found_la" ;;
8828 libdir
="$save_libdir"
8829 for dep
in $dependency_libs; do
8832 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8833 if test "X$additional_libdir" != "X/usr/lib"; then
8835 if test "X$additional_libdir" = "X/usr/local/lib"; then
8836 if test -n "$GCC"; then
8838 linux
*) haveit
=yes;;
8842 if test -z "$haveit"; then
8844 for x
in $LDFLAGS $LIBIPT; do
8846 acl_save_prefix
="$prefix"
8847 prefix
="$acl_final_prefix"
8848 acl_save_exec_prefix
="$exec_prefix"
8849 exec_prefix
="$acl_final_exec_prefix"
8851 exec_prefix
="$acl_save_exec_prefix"
8852 prefix
="$acl_save_prefix"
8854 if test "X$x" = "X-L$additional_libdir"; then
8859 if test -z "$haveit"; then
8860 if test -d "$additional_libdir"; then
8861 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
8865 for x
in $LDFLAGS $LTLIBIPT; do
8867 acl_save_prefix
="$prefix"
8868 prefix
="$acl_final_prefix"
8869 acl_save_exec_prefix
="$exec_prefix"
8870 exec_prefix
="$acl_final_exec_prefix"
8872 exec_prefix
="$acl_save_exec_prefix"
8873 prefix
="$acl_save_prefix"
8875 if test "X$x" = "X-L$additional_libdir"; then
8880 if test -z "$haveit"; then
8881 if test -d "$additional_libdir"; then
8882 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
8889 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8890 if test "$enable_rpath" != no
; then
8892 for x
in $rpathdirs; do
8893 if test "X$x" = "X$dir"; then
8898 if test -z "$haveit"; then
8899 rpathdirs
="$rpathdirs $dir"
8902 for x
in $ltrpathdirs; do
8903 if test "X$x" = "X$dir"; then
8908 if test -z "$haveit"; then
8909 ltrpathdirs
="$ltrpathdirs $dir"
8914 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8917 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8920 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
8921 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
8927 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
8928 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
8934 if test "X$rpathdirs" != "X"; then
8935 if test -n "$hardcode_libdir_separator"; then
8937 for found_dir
in $rpathdirs; do
8938 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8940 acl_save_libdir
="$libdir"
8942 eval flag
=\"$hardcode_libdir_flag_spec\"
8943 libdir
="$acl_save_libdir"
8944 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
8946 for found_dir
in $rpathdirs; do
8947 acl_save_libdir
="$libdir"
8949 eval flag
=\"$hardcode_libdir_flag_spec\"
8950 libdir
="$acl_save_libdir"
8951 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
8955 if test "X$ltrpathdirs" != "X"; then
8956 for found_dir
in $ltrpathdirs; do
8957 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
8962 ac_save_CPPFLAGS
="$CPPFLAGS"
8964 for element
in $INCIPT; do
8966 for x
in $CPPFLAGS; do
8968 acl_save_prefix
="$prefix"
8969 prefix
="$acl_final_prefix"
8970 acl_save_exec_prefix
="$exec_prefix"
8971 exec_prefix
="$acl_final_exec_prefix"
8973 exec_prefix
="$acl_save_exec_prefix"
8974 prefix
="$acl_save_prefix"
8976 if test "X$x" = "X$element"; then
8981 if test -z "$haveit"; then
8982 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
8988 $as_echo_n "checking for libipt... " >&6; }
8989 if ${ac_cv_libipt+:} false
; then :
8990 $as_echo_n "(cached) " >&6
8993 ac_save_LIBS
="$LIBS"
8994 LIBS
="$LIBS $LIBIPT"
8995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997 #include "intel-pt.h"
9001 pt_insn_alloc_decoder (0);
9006 if ac_fn_c_try_link
"$LINENO"; then :
9011 rm -f core conftest.err conftest.
$ac_objext \
9012 conftest
$ac_exeext conftest.
$ac_ext
9013 LIBS
="$ac_save_LIBS"
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
9017 $as_echo "$ac_cv_libipt" >&6; }
9018 if test "$ac_cv_libipt" = yes; then
9021 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
9024 $as_echo_n "checking how to link with libipt... " >&6; }
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
9026 $as_echo "$LIBIPT" >&6; }
9029 CPPFLAGS
="$ac_save_CPPFLAGS"
9039 if test "$HAVE_LIBIPT" != yes; then
9040 if test "$with_intel_pt" = yes; then
9041 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
9044 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
9048 LIBS
="$LIBS $LIBIPT"
9049 for ac_func
in pt_insn_event
9051 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
9052 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
9053 cat >>confdefs.h
<<_ACEOF
9054 #define HAVE_PT_INSN_EVENT 1
9060 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
9062 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
9064 cat >>confdefs.h
<<_ACEOF
9065 #define HAVE_STRUCT_PT_INSN_ENABLED 1
9070 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
9072 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
9074 cat >>confdefs.h
<<_ACEOF
9075 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
9085 if test "$ac_cv_header_sys_procfs_h" = yes; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
9087 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
9088 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
9089 $as_echo_n "(cached) " >&6
9091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9095 /* Needed for new procfs interface on sparc-solaris. */
9096 #define _STRUCTURED_PROC 1
9097 #include <sys/procfs.h>
9106 if ac_fn_c_try_compile
"$LINENO"; then :
9107 bfd_cv_have_sys_procfs_type_gregset_t
=yes
9109 bfd_cv_have_sys_procfs_type_gregset_t
=no
9112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9115 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
9117 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
9121 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
9124 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
9125 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
9126 $as_echo_n "(cached) " >&6
9128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9132 /* Needed for new procfs interface on sparc-solaris. */
9133 #define _STRUCTURED_PROC 1
9134 #include <sys/procfs.h>
9143 if ac_fn_c_try_compile
"$LINENO"; then :
9144 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
9146 bfd_cv_have_sys_procfs_type_fpregset_t
=no
9149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9152 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
9154 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
9158 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
9161 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
9162 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
9163 $as_echo_n "(cached) " >&6
9165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9169 /* Needed for new procfs interface on sparc-solaris. */
9170 #define _STRUCTURED_PROC 1
9171 #include <sys/procfs.h>
9180 if ac_fn_c_try_compile
"$LINENO"; then :
9181 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
9183 bfd_cv_have_sys_procfs_type_prgregset_t
=no
9186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9189 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
9191 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
9195 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
9198 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
9199 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
9200 $as_echo_n "(cached) " >&6
9202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9206 /* Needed for new procfs interface on sparc-solaris. */
9207 #define _STRUCTURED_PROC 1
9208 #include <sys/procfs.h>
9217 if ac_fn_c_try_compile
"$LINENO"; then :
9218 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
9220 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
9223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9226 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
9228 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
9232 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
9235 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
9236 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
9237 $as_echo_n "(cached) " >&6
9239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9243 /* Needed for new procfs interface on sparc-solaris. */
9244 #define _STRUCTURED_PROC 1
9245 #include <sys/procfs.h>
9254 if ac_fn_c_try_compile
"$LINENO"; then :
9255 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
9257 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
9260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9263 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
9265 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
9269 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
9272 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
9273 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
9274 $as_echo_n "(cached) " >&6
9276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9280 /* Needed for new procfs interface on sparc-solaris. */
9281 #define _STRUCTURED_PROC 1
9282 #include <sys/procfs.h>
9291 if ac_fn_c_try_compile
"$LINENO"; then :
9292 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
9294 bfd_cv_have_sys_procfs_type_lwpid_t
=no
9297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9300 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
9302 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
9306 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
9309 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
9310 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
9311 $as_echo_n "(cached) " >&6
9313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9317 /* Needed for new procfs interface on sparc-solaris. */
9318 #define _STRUCTURED_PROC 1
9319 #include <sys/procfs.h>
9328 if ac_fn_c_try_compile
"$LINENO"; then :
9329 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
9331 bfd_cv_have_sys_procfs_type_psaddr_t
=no
9334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9337 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
9339 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
9343 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
9346 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
9347 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
9348 $as_echo_n "(cached) " >&6
9350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9354 /* Needed for new procfs interface on sparc-solaris. */
9355 #define _STRUCTURED_PROC 1
9356 #include <sys/procfs.h>
9365 if ac_fn_c_try_compile
"$LINENO"; then :
9366 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
9368 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
9371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9374 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
9376 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
9380 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
9385 # Check the return and argument types of ptrace.
9388 for ac_header
in sys
/ptrace.h ptrace.h
9390 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9391 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9392 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9393 cat >>confdefs.h
<<_ACEOF
9394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9402 gdb_ptrace_headers
='
9403 #include <sys/types.h>
9404 #if HAVE_SYS_PTRACE_H
9405 # include <sys/ptrace.h>
9408 # include <unistd.h>
9411 # There is no point in checking if we don't have a prototype.
9412 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
9414 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
9420 cat >>confdefs.h
<<_ACEOF
9421 #define HAVE_DECL_PTRACE $ac_have_decl
9423 if test $ac_have_decl = 1; then :
9427 : ${gdb_cv_func_ptrace_ret='int'}
9428 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
9432 # Check return type. Varargs (used on GNU/Linux) conflict with the
9433 # empty argument list, so check for that explicitly.
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
9435 $as_echo_n "checking return type of ptrace... " >&6; }
9436 if ${gdb_cv_func_ptrace_ret+:} false
; then :
9437 $as_echo_n "(cached) " >&6
9439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9445 extern long ptrace (enum __ptrace_request, ...);
9450 if ac_fn_c_try_compile
"$LINENO"; then :
9451 gdb_cv_func_ptrace_ret
='long'
9453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9459 extern int ptrace ();
9464 if ac_fn_c_try_compile
"$LINENO"; then :
9465 gdb_cv_func_ptrace_ret
='int'
9467 gdb_cv_func_ptrace_ret
='long'
9469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
9474 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
9476 cat >>confdefs.h
<<_ACEOF
9477 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
9480 # Check argument types.
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
9482 $as_echo_n "checking types of arguments for ptrace... " >&6; }
9483 if ${gdb_cv_func_ptrace_args+:} false
; then :
9484 $as_echo_n "(cached) " >&6
9487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9493 extern long ptrace (enum __ptrace_request, ...);
9498 if ac_fn_c_try_compile
"$LINENO"; then :
9499 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
9502 for gdb_arg1
in 'int' 'long'; do
9503 for gdb_arg2
in 'pid_t' 'int' 'long'; do
9504 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
9505 for gdb_arg4
in 'int' 'long' 'void *'; do
9506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9513 extern $gdb_cv_func_ptrace_ret
9514 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
9520 if ac_fn_c_try_compile
"$LINENO"; then :
9521 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
9524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9525 for gdb_arg5
in 'int *' 'int' 'long'; do
9526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9533 extern $gdb_cv_func_ptrace_ret
9534 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
9540 if ac_fn_c_try_compile
"$LINENO"; then :
9542 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
9545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9551 # Provide a safe default value.
9552 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
9555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
9558 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
9559 ac_save_IFS
=$IFS; IFS
=','
9560 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
9564 cat >>confdefs.h
<<_ACEOF
9565 #define PTRACE_TYPE_ARG1 $1
9569 cat >>confdefs.h
<<_ACEOF
9570 #define PTRACE_TYPE_ARG3 $3
9574 cat >>confdefs.h
<<_ACEOF
9575 #define PTRACE_TYPE_ARG4 $4
9578 if test -n "$5"; then
9580 cat >>confdefs.h
<<_ACEOF
9581 #define PTRACE_TYPE_ARG5 $5
9592 # Check whether --with-ust was given.
9593 if test "${with_ust+set}" = set; then :
9598 # Check whether --with-ust_include was given.
9599 if test "${with_ust_include+set}" = set; then :
9600 withval
=$with_ust_include;
9604 # Check whether --with-ust_lib was given.
9605 if test "${with_ust_lib+set}" = set; then :
9606 withval
=$with_ust_lib;
9620 ustlibs
="-L$with_ust/lib -lust"
9621 ustinc
="-I$with_ust/include "
9624 if test "x$with_ust_include" != x
; then
9625 ustinc
="-I$with_ust_include "
9627 if test "x$with_ust_lib" != x
; then
9628 ustlibs
="-L$with_ust_lib -lust"
9631 if test "x$with_ust" != "xno"; then
9632 saved_CFLAGS
="$CFLAGS"
9633 CFLAGS
="$CFLAGS $ustinc"
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
9635 $as_echo_n "checking for ust... " >&6; }
9636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9639 #define CONFIG_UST_GDB_INTEGRATION
9640 #include <ust/ust.h>
9650 if ac_fn_c_try_compile
"$LINENO"; then :
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9652 $as_echo "yes" >&6; };
9653 $as_echo "#define HAVE_UST 1" >>confdefs.h
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
9659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9660 CFLAGS
="$saved_CFLAGS"
9663 # Flags needed for UST
9668 # Check whether --enable-werror was given.
9669 if test "${enable_werror+set}" = set; then :
9670 enableval
=$enable_werror; case "${enableval}" in
9671 yes | y
) ERROR_ON_WARNING
="yes" ;;
9672 no | n
) ERROR_ON_WARNING
="no" ;;
9673 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9678 # Enable -Werror by default when using gcc. Turn it off for releases.
9679 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
9680 ERROR_ON_WARNING
=yes
9684 if test "${ERROR_ON_WARNING}" = yes ; then
9685 WERROR_CFLAGS
="-Werror"
9688 # The options we'll try to enable.
9689 build_warnings
="-Wall -Wpointer-arith \
9690 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
9691 -Wno-switch -Wno-char-subscripts \
9692 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
9693 -Wno-sign-compare -Wno-error=maybe-uninitialized \
9694 -Wno-mismatched-tags \
9695 -Wno-error=deprecated-register \
9696 -Wsuggest-override \
9697 -Wimplicit-fallthrough=3 \
9701 -Wdeprecated-copy-dtor \
9703 -Wmissing-declarations"
9707 # Enable -Wno-format by default when using gcc on mingw since many
9708 # GCC versions complain about %I64.
9709 build_warnings
="$build_warnings -Wno-format" ;;
9711 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
9712 # doesn't understand.
9713 build_warnings
="$build_warnings -Wno-unknown-pragmas"
9714 # Solaris 11 <unistd.h> marks vfork deprecated.
9715 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
9717 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
9718 # but there's a special case for this below.
9719 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
9722 # Check whether --enable-build-warnings was given.
9723 if test "${enable_build_warnings+set}" = set; then :
9724 enableval
=$enable_build_warnings; case "${enableval}" in
9726 no
) build_warnings
="-w";;
9727 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9728 build_warnings
="${build_warnings} ${t}";;
9729 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9730 build_warnings
="${t} ${build_warnings}";;
9731 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9733 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9734 echo "Setting compiler warning flags = $build_warnings" 6>&1
9737 # Check whether --enable-gdb-build-warnings was given.
9738 if test "${enable_gdb_build_warnings+set}" = set; then :
9739 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
9741 no
) build_warnings
="-w";;
9742 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9743 build_warnings
="${build_warnings} ${t}";;
9744 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9745 build_warnings
="${t} ${build_warnings}";;
9746 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9748 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9749 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9753 # The set of warnings supported by a C++ compiler is not the same as
9754 # of the C compiler.
9756 ac_cpp
='$CXXCPP $CPPFLAGS'
9757 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9758 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9759 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9763 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
9766 $as_echo_n "checking compiler warning flags... " >&6; }
9767 # Separate out the -Werror flag as some files just cannot be
9768 # compiled with it enabled.
9769 for w
in ${build_warnings}; do
9770 # GCC does not complain about -Wno-unknown-warning. Invert
9771 # and test -Wunknown-warning instead.
9774 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
9775 -Wformat-nonliteral)
9776 # gcc requires -Wformat before -Wformat-nonliteral
9777 # will work, so stick them together.
9786 -Werr*) WERROR_CFLAGS
=-Werror ;;
9788 # Check whether GCC accepts it.
9789 saved_CFLAGS
="$CFLAGS"
9790 CFLAGS
="$CFLAGS -Werror $wtest"
9791 saved_CXXFLAGS
="$CXXFLAGS"
9792 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
9793 if test "x$w" = "x-Wunused-variable"; then
9794 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
9795 # fixed in GCC 4.9. This test is derived from the gdb
9796 # source code that triggered this bug in GCC.
9797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9799 struct scoped_restore_base {};
9800 struct scoped_restore_tmpl : public scoped_restore_base {
9801 ~scoped_restore_tmpl() {}
9806 const scoped_restore_base &b = scoped_restore_tmpl();
9811 if ac_fn_cxx_try_compile
"$LINENO"; then :
9812 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9827 if ac_fn_cxx_try_compile
"$LINENO"; then :
9828 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9832 CFLAGS
="$saved_CFLAGS"
9833 CXXFLAGS
="$saved_CXXFLAGS"
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
9837 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
9843 ac_cpp='$CPP $CPPFLAGS'
9844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9852 for ac_func in dladdr
9854 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
9855 if test "x
$ac_cv_func_dladdr" = xyes; then :
9856 cat >>confdefs.h <<_ACEOF
9857 #define HAVE_DLADDR 1
9866 # Check for presence and size of long long.
9867 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
9868 if test "x
$ac_cv_type_long_long" = xyes; then :
9870 cat >>confdefs.h <<_ACEOF
9871 #define HAVE_LONG_LONG 1
9874 # The cast to long int works around a bug in the HP C Compiler
9875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9877 # This bug is HP SR number 8606223364.
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
9879 $as_echo_n "checking size of long long...
" >&6; }
9880 if ${ac_cv_sizeof_long_long+:} false; then :
9881 $as_echo_n "(cached
) " >&6
9883 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
9886 if test "$ac_cv_type_long_long" = yes; then
9887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
9888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9889 as_fn_error 77 "cannot compute sizeof (long long)
9890 See \`config.log' for more details
" "$LINENO" 5; }
9892 ac_cv_sizeof_long_long=0
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
9898 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9902 cat >>confdefs.h <<_ACEOF
9903 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9910 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
9911 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
9912 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
9918 cat >>confdefs.h <<_ACEOF
9919 #define HAVE_DECL_BASENAME $ac_have_decl
9921 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
9922 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
9928 cat >>confdefs.h <<_ACEOF
9929 #define HAVE_DECL_FFS $ac_have_decl
9931 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
9932 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
9938 cat >>confdefs.h <<_ACEOF
9939 #define HAVE_DECL_ASPRINTF $ac_have_decl
9941 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
9942 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
9948 cat >>confdefs.h <<_ACEOF
9949 #define HAVE_DECL_VASPRINTF $ac_have_decl
9951 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
9952 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
9958 cat >>confdefs.h <<_ACEOF
9959 #define HAVE_DECL_SNPRINTF $ac_have_decl
9961 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
9962 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
9968 cat >>confdefs.h <<_ACEOF
9969 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9972 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
9973 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
9979 cat >>confdefs.h <<_ACEOF
9980 #define HAVE_DECL_STRTOL $ac_have_decl
9982 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
9983 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
9989 cat >>confdefs.h <<_ACEOF
9990 #define HAVE_DECL_STRTOUL $ac_have_decl
9992 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
9993 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
9999 cat >>confdefs.h <<_ACEOF
10000 #define HAVE_DECL_STRTOLL $ac_have_decl
10002 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
10003 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
10009 cat >>confdefs.h <<_ACEOF
10010 #define HAVE_DECL_STRTOULL $ac_have_decl
10013 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
10014 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
10020 cat >>confdefs.h <<_ACEOF
10021 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10026 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
10027 if test "x
$ac_cv_have_decl_perror" = xyes; then :
10033 cat >>confdefs.h <<_ACEOF
10034 #define HAVE_DECL_PERROR $ac_have_decl
10036 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
10037 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
10043 cat >>confdefs.h <<_ACEOF
10044 #define HAVE_DECL_VASPRINTF $ac_have_decl
10046 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
10047 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
10053 cat >>confdefs.h <<_ACEOF
10054 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10058 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
10059 # Older amd64 Linux's don't have the fs_base and gs_base members of
10060 # `struct user_regs_struct'.
10061 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>
10062 #include <sys/user.h>
10064 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
10066 cat >>confdefs.h <<_ACEOF
10067 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
10072 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>
10073 #include <sys/user.h>
10075 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
10077 cat >>confdefs.h <<_ACEOF
10078 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
10086 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
10087 #include <sys/socket.h>
10090 if test "x
$ac_cv_type_socklen_t" = xyes; then :
10092 cat >>confdefs.h <<_ACEOF
10093 #define HAVE_SOCKLEN_T 1
10100 case "${target}" in
10102 # Starting with NDK version 9, <elf.h> actually includes definitions
10103 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
10104 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
10105 # leading to conflicts with the defintions from <linux/elf.h>.
10106 # This makes it impossible for us to include both <elf.h> and
10107 # <linux/elf.h>, which means that, in practice, we do not have
10108 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
10109 # Therefore, do not try to auto-detect availability, as it would
10110 # get it wrong on this platform.
10113 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
10116 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
10118 cat >>confdefs.h <<_ACEOF
10119 #define HAVE_ELF32_AUXV_T 1
10124 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
10127 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
10129 cat >>confdefs.h <<_ACEOF
10130 #define HAVE_ELF64_AUXV_T 1
10140 # Check whether --with-pkgversion was given.
10141 if test "${with_pkgversion+set}" = set; then :
10142 withval=$with_pkgversion; case "$withval" in
10143 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
10145 *) PKGVERSION="($withval) " ;;
10148 PKGVERSION="(GDB
) "
10156 # Check whether --with-bugurl was given.
10157 if test "${with_bugurl+set}" = set; then :
10158 withval=$with_bugurl; case "$withval" in
10159 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
10162 *) BUGURL="$withval"
10166 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
10176 REPORT_BUGS_TO="<$BUGURL>"
10177 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10184 cat >>confdefs.h <<_ACEOF
10185 #define PKGVERSION "$PKGVERSION"
10189 cat >>confdefs.h <<_ACEOF
10190 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
10194 # Check for various supplementary target information (beyond the
10195 # triplet) which might affect the choices in configure.srv.
10196 case "${target}" in
10197 i[34567]86-*-linux*)
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
10199 $as_echo_n "checking
if building
for x86-64...
" >&6; }
10200 if ${gdb_cv_i386_is_x86_64+:} false; then :
10201 $as_echo_n "(cached
) " >&6
10203 save_CPPFLAGS="$CPPFLAGS"
10204 CPPFLAGS="$CPPFLAGS $CFLAGS"
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10213 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10214 $EGREP "got it
" >/dev/null 2>&1; then :
10215 gdb_cv_i386_is_x86_64=yes
10217 gdb_cv_i386_is_x86_64=no
10221 CPPFLAGS="$save_CPPFLAGS"
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
10224 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
10229 $as_echo_n "checking
if building
for x32...
" >&6; }
10230 if ${gdb_cv_x86_is_x32+:} false; then :
10231 $as_echo_n "(cached
) " >&6
10233 save_CPPFLAGS="$CPPFLAGS"
10234 CPPFLAGS="$CPPFLAGS $CFLAGS"
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h. */
10238 #if __x86_64__ && __ILP32__
10243 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10244 $EGREP "got it
" >/dev/null 2>&1; then :
10245 gdb_cv_x86_is_x32=yes
10247 gdb_cv_x86_is_x32=no
10251 CPPFLAGS="$save_CPPFLAGS"
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
10254 $as_echo "$gdb_cv_x86_is_x32" >&6; }
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
10259 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
10260 if ${gdb_cv_m68k_is_coldfire+:} false; then :
10261 $as_echo_n "(cached
) " >&6
10263 save_CPPFLAGS="$CPPFLAGS"
10264 CPPFLAGS="$CPPFLAGS $CFLAGS"
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10268 #ifdef __mcoldfire__
10273 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10274 $EGREP "got it
" >/dev/null 2>&1; then :
10275 gdb_cv_m68k_is_coldfire=yes
10277 gdb_cv_m68k_is_coldfire=no
10281 CPPFLAGS="$save_CPPFLAGS"
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
10284 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
10288 . ${srcdir}/configure.srv
10290 if test "${srv_mingwce}" = "yes"; then
10292 elif test "${srv_mingw}" = "yes"; then
10293 # WIN32APILIBS is set by GDB_AC_COMMON.
10294 LIBS="$LIBS $WIN32APILIBS"
10295 elif test "${srv_qnx}" = "yes"; then
10296 LIBS="$LIBS -lsocket"
10297 elif test "${srv_lynxos}" = "yes"; then
10298 LIBS="$LIBS -lnetinet"
10301 if test "${srv_linux_usrregs}" = "yes"; then
10303 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
10307 if test "${srv_linux_regsets}" = "yes"; then
10309 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10313 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10314 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
10315 $as_echo_n "(cached) " >&6
10317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10318 /* end confdefs.h. */
10319 #include <sys/ptrace.h>
10328 if ac_fn_c_try_compile
"$LINENO"; then :
10329 gdbsrv_cv_have_ptrace_getregs
=yes
10331 gdbsrv_cv_have_ptrace_getregs
=no
10333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
10337 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
10338 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
10340 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10345 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10346 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
10347 $as_echo_n "(cached) " >&6
10349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10351 #include <sys/ptrace.h>
10360 if ac_fn_c_try_compile
"$LINENO"; then :
10361 gdbsrv_cv_have_ptrace_getfpxregs
=yes
10363 gdbsrv_cv_have_ptrace_getfpxregs
=no
10365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
10369 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
10370 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
10372 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10377 if test "${srv_linux_btrace}" = "yes"; then
10379 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
10383 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
10385 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
10386 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
10387 $as_echo_n "(cached) " >&6
10389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10392 #include <thread_db.h>
10401 if ac_fn_c_try_compile
"$LINENO"; then :
10402 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
10404 gdbserver_cv_have_thread_db_type_lwpid_t
=no
10407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10410 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
10412 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
10416 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
10420 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
10422 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
10423 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
10424 $as_echo_n "(cached) " >&6
10426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10429 #include <thread_db.h>
10438 if ac_fn_c_try_compile
"$LINENO"; then :
10439 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
10441 gdbserver_cv_have_thread_db_type_psaddr_t
=no
10444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10447 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
10449 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
10453 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10459 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10460 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10461 $as_echo_n "(cached) " >&6
10463 ac_check_lib_save_LIBS
=$LIBS
10465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10468 /* Override any GCC internal prototype to avoid an error.
10469 Use char because int might match the return type of a GCC
10470 builtin and then its argument prototype would still apply. */
10483 if ac_fn_c_try_link
"$LINENO"; then :
10484 ac_cv_lib_dl_dlopen
=yes
10486 ac_cv_lib_dl_dlopen
=no
10488 rm -f core conftest.err conftest.
$ac_objext \
10489 conftest
$ac_exeext conftest.
$ac_ext
10490 LIBS
=$ac_check_lib_save_LIBS
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10493 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10494 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10495 cat >>confdefs.h
<<_ACEOF
10496 #define HAVE_LIBDL 1
10505 srv_thread_depfiles
=
10508 if test "$srv_linux_thread_db" = "yes"; then
10509 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
10512 $as_echo_n "checking for the dynamic export flag... " >&6; }
10513 old_LDFLAGS
="$LDFLAGS"
10514 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
10516 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
10517 LDFLAGS
="$LDFLAGS $RDYNAMIC"
10518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10519 /* end confdefs.h. */
10529 if ac_fn_c_try_link
"$LINENO"; then :
10530 found
="-Wl,--dynamic-list"
10531 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
10533 RDYNAMIC
="-rdynamic"
10534 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
10535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10546 if ac_fn_c_try_link
"$LINENO"; then :
10552 rm -f core conftest.err conftest.
$ac_objext \
10553 conftest
$ac_exeext conftest.
$ac_ext
10555 rm -f core conftest.err conftest.
$ac_objext \
10556 conftest
$ac_exeext conftest.
$ac_ext
10558 LDFLAGS
="$old_LDFLAGS"
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
10560 $as_echo "$found" >&6; }
10562 srv_libs
="-lthread_db"
10565 srv_thread_depfiles
="thread-db.o proc-service.o"
10567 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
10570 $as_echo_n "checking for TD_VERSION... " >&6; }
10571 if ${gdbsrv_cv_have_td_version+:} false
; then :
10572 $as_echo_n "(cached) " >&6
10574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10575 /* end confdefs.h. */
10576 #include <thread_db.h>
10585 if ac_fn_c_try_compile
"$LINENO"; then :
10586 gdbsrv_cv_have_td_version
=yes
10588 gdbsrv_cv_have_td_version
=no
10590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
10593 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
10594 if test "$gdbsrv_cv_have_td_version" = yes; then
10596 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
10602 # Check whether --with-libthread-db was given.
10603 if test "${with_libthread_db+set}" = set; then :
10604 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
10605 srv_libs
="$srv_libthread_db_path"
10610 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
10612 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
10616 if test "$srv_xmlfiles" != ""; then
10617 srv_xmlbuiltin
="xml-builtin.o"
10619 $as_echo "#define USE_XML 1" >>confdefs.h
10622 tmp_xmlfiles
=$srv_xmlfiles
10624 for f
in $tmp_xmlfiles; do
10625 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
10629 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_selftest_objs"
10630 GDBSERVER_LIBS
="$srv_libs"
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
10633 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
10634 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
10635 $as_echo_n "(cached) " >&6
10638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10644 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
10649 if ac_fn_c_try_link
"$LINENO"; then :
10650 gdbsrv_cv_have_sync_builtins
=yes
10652 gdbsrv_cv_have_sync_builtins
=no
10654 rm -f core conftest.err conftest.
$ac_objext \
10655 conftest
$ac_exeext conftest.
$ac_ext
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
10658 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
10659 if test "$gdbsrv_cv_have_sync_builtins" = yes; then
10661 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
10665 saved_cflags
="$CFLAGS"
10666 CFLAGS
="$CFLAGS -fvisibility=hidden"
10667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10678 if ac_fn_c_try_compile
"$LINENO"; then :
10679 gdbsrv_cv_have_visibility_hidden
=yes
10681 gdbsrv_cv_have_visibility_hidden
=no
10683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10684 CFLAGS
="$saved_cflags"
10689 # check whether to enable the inprocess agent
10690 if test "$ipa_obj" != "" \
10691 -a "$gdbsrv_cv_have_sync_builtins" = yes \
10692 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
10698 # Check whether --enable-inprocess-agent was given.
10699 if test "${enable_inprocess_agent+set}" = set; then :
10700 enableval
=$enable_inprocess_agent; case "$enableval" in
10701 yes) want_ipa
=true
;;
10702 no
) want_ipa
=false
;;
10703 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
10710 if $want_ipa ; then
10711 if $have_ipa ; then
10712 IPA_DEPFILES
="$ipa_obj"
10713 extra_libraries
="$extra_libraries libinproctrace.so"
10715 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
10726 GNULIB
=build-gnulib-gdbserver
/import
10729 if test x
"$STDINT_H" != x
; then
10730 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
10734 ac_config_files
="$ac_config_files Makefile"
10737 cat >confcache
<<\_ACEOF
10738 # This file is a shell script that caches the results of configure
10739 # tests run on this system so they can be shared between configure
10740 # scripts and configure runs, see configure's option --config-cache.
10741 # It is not useful on other systems. If it contains results you don't
10742 # want to keep, you may remove or edit it.
10744 # config.status only pays attention to the cache file if you give it
10745 # the --recheck option to rerun configure.
10747 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10748 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10749 # following values.
10753 # The following way of writing the cache mishandles newlines in values,
10754 # but we know of no workaround that is simple, portable, and efficient.
10755 # So, we kill variables containing newlines.
10756 # Ultrix sh set writes to stderr and can't be redirected directly,
10757 # and sets the high bit in the cache file unless we assign to the vars.
10759 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10760 eval ac_val
=\$
$ac_var
10764 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10768 _ | IFS | as_nl
) ;; #(
10769 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10770 *) { eval $ac_var=; unset $ac_var;} ;;
10776 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10777 *${as_nl}ac_space
=\
*)
10778 # `set' does not quote correctly, so add quotes: double-quote
10779 # substitution turns \\\\ into \\, and sed turns \\ into \.
10782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10785 # `set' quotes correctly as required by POSIX, so do not add quotes.
10786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10795 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10797 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10799 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10800 if test -w "$cache_file"; then
10801 if test "x$cache_file" != "x/dev/null"; then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10803 $as_echo "$as_me: updating cache $cache_file" >&6;}
10804 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10805 cat confcache
>"$cache_file"
10807 case $cache_file in #(
10809 mv -f confcache
"$cache_file"$$
&&
10810 mv -f "$cache_file"$$
"$cache_file" ;; #(
10812 mv -f confcache
"$cache_file" ;;
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10818 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10823 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10824 # Let make expand exec_prefix.
10825 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10827 DEFS
=-DHAVE_CONFIG_H
10832 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10833 # 1. Remove the extension, and $U if already installed.
10834 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10835 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10836 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10837 # will be set to the directory where LIBOBJS objects are built.
10838 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10839 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10841 LIBOBJS
=$ac_libobjs
10843 LTLIBOBJS
=$ac_ltlibobjs
10846 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10847 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
10848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10851 : "${CONFIG_STATUS=./config.status}"
10853 ac_clean_files_save
=$ac_clean_files
10854 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10856 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10858 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10860 # Generated by $as_me.
10861 # Run this file to recreate the current configuration.
10862 # Compiler output produced by configure, useful for debugging
10863 # configure, is in config.log if it exists.
10866 ac_cs_recheck=false
10869 SHELL=\${CONFIG_SHELL-$SHELL}
10872 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10873 ## -------------------- ##
10874 ## M4sh Initialization. ##
10875 ## -------------------- ##
10877 # Be more Bourne compatible
10878 DUALCASE
=1; export DUALCASE
# for MKS sh
10879 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10882 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10883 # is contrary to our usage. Disable this feature.
10884 alias -g '${1+"$@"}'='"$@"'
10885 setopt NO_GLOB_SUBST
10887 case `(set -o) 2>/dev/null` in #(
10899 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10900 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10901 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10902 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10903 # Prefer a ksh shell builtin over an external printf program on Solaris,
10904 # but without wasting forks for bash or zsh.
10905 if test -z "$BASH_VERSION$ZSH_VERSION" \
10906 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10907 as_echo='print
-r --'
10908 as_echo_n='print
-rn --'
10909 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10910 as_echo='printf %s
\n'
10911 as_echo_n='printf %s
'
10913 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10914 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10915 as_echo_n='/usr
/ucb
/echo -n'
10917 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10918 as_echo_n_body='eval
10922 expr "X$arg" : "X\\(.*\\)$as_nl";
10923 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10925 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10927 export as_echo_n_body
10928 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10930 export as_echo_body
10931 as_echo='sh
-c $as_echo_body as_echo
'
10934 # The user is always right.
10935 if test "${PATH_SEPARATOR+set}" != set; then
10937 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10938 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10945 # We need space, tab and new line, in precisely that order. Quoting is
10946 # there to prevent editors from complaining about space-tab.
10947 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10948 # splitting by setting IFS to empty value.)
10951 # Find who we are. Look in the path if we contain no directory separator.
10954 *[\\/]* ) as_myself=$0 ;;
10955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10956 for as_dir in $PATH
10959 test -z "$as_dir" && as_dir=.
10960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10966 # We did not find ourselves, most probably we were run as `sh COMMAND'
10967 # in which case we are not to be found in the path.
10968 if test "x$as_myself" = x
; then
10971 if test ! -f "$as_myself"; then
10972 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10976 # Unset variables that we do not need and which cause bugs (e.g. in
10977 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10978 # suppresses any "Segmentation fault" message there. '((' could
10979 # trigger a bug in pdksh 5.2.14.
10980 for as_var
in BASH_ENV ENV MAIL MAILPATH
10981 do eval test x\
${$as_var+set} = xset \
10982 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10995 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10998 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10999 # ----------------------------------------
11000 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11001 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11002 # script with STATUS, using 1 if that was 0.
11005 as_status
=$1; test $as_status -eq 0 && as_status
=1
11007 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11008 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11010 $as_echo "$as_me: error: $2" >&2
11011 as_fn_exit
$as_status
11015 # as_fn_set_status STATUS
11016 # -----------------------
11017 # Set $? to STATUS, without forking.
11018 as_fn_set_status
()
11021 } # as_fn_set_status
11023 # as_fn_exit STATUS
11024 # -----------------
11025 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11029 as_fn_set_status
$1
11035 # Portably unset VAR.
11038 { eval $1=; unset $1;}
11040 as_unset
=as_fn_unset
11041 # as_fn_append VAR VALUE
11042 # ----------------------
11043 # Append the text in VALUE to the end of the definition contained in VAR. Take
11044 # advantage of any shell optimizations that allow amortized linear growth over
11045 # repeated appends, instead of the typical quadratic growth present in naive
11047 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11048 eval 'as_fn_append ()
11059 # as_fn_arith ARG...
11060 # ------------------
11061 # Perform arithmetic evaluation on the ARGs, and store the result in the
11062 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11063 # must be portable across $(()) and expr.
11064 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11065 eval 'as_fn_arith ()
11072 as_val
=`expr "$@" || test $? -eq 1`
11077 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11078 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11084 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11085 as_basename
=basename
11090 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11096 as_me
=`$as_basename -- "$0" ||
11097 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11098 X"$0" : 'X\(//\)$' \| \
11099 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11101 sed '/^.*\/\([^/][^/]*\)\/*$/{
11115 # Avoid depending upon Character Ranges.
11116 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11117 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11118 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11119 as_cr_digits
='0123456789'
11120 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11122 ECHO_C
= ECHO_N
= ECHO_T
=
11123 case `echo -n x` in #(((((
11125 case `echo 'xy\c'` in
11126 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11128 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11135 rm -f conf$$ conf$$.exe conf$$.
file
11136 if test -d conf$$.dir
; then
11137 rm -f conf$$.dir
/conf$$.
file
11140 mkdir conf$$.dir
2>/dev
/null
11142 if (echo >conf$$.
file) 2>/dev
/null
; then
11143 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11145 # ... but there are two gotchas:
11146 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11147 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11148 # In both cases, we have to default to `cp -pR'.
11149 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11151 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11159 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11160 rmdir conf$$.dir
2>/dev
/null
11165 # Create "$as_dir" as a directory, including parents if necessary.
11170 -*) as_dir
=.
/$as_dir;;
11172 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11176 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11177 *) as_qdir
=$as_dir;;
11179 as_dirs
="'$as_qdir' $as_dirs"
11180 as_dir
=`$as_dirname -- "$as_dir" ||
11181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11182 X"$as_dir" : 'X\(//\)[^/]' \| \
11183 X"$as_dir" : 'X\(//\)$' \| \
11184 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11185 $as_echo X"$as_dir" |
11186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11190 /^X\(\/\/\)[^/].*/{
11203 test -d "$as_dir" && break
11205 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11206 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11210 if mkdir
-p .
2>/dev
/null
; then
11211 as_mkdir_p
='mkdir -p "$as_dir"'
11213 test -d .
/-p && rmdir .
/-p
11218 # as_fn_executable_p FILE
11219 # -----------------------
11220 # Test if FILE is an executable regular file.
11221 as_fn_executable_p
()
11223 test -f "$1" && test -x "$1"
11224 } # as_fn_executable_p
11225 as_test_x
='test -x'
11226 as_executable_p
=as_fn_executable_p
11228 # Sed expression to map a string onto a valid CPP name.
11229 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11231 # Sed expression to map a string onto a valid variable name.
11232 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11236 ## ----------------------------------- ##
11237 ## Main body of $CONFIG_STATUS script. ##
11238 ## ----------------------------------- ##
11240 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11243 # Save the log message, to keep $0 and so on meaningful, and to
11244 # report actual input values of CONFIG_FILES etc. instead of their
11245 # values after options handling.
11247 This file was extended by $as_me, which was
11248 generated by GNU Autoconf 2.69. Invocation command line was
11250 CONFIG_FILES = $CONFIG_FILES
11251 CONFIG_HEADERS = $CONFIG_HEADERS
11252 CONFIG_LINKS = $CONFIG_LINKS
11253 CONFIG_COMMANDS = $CONFIG_COMMANDS
11256 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11261 case $ac_config_files in *"
11262 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11265 case $ac_config_headers in *"
11266 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11271 # Files that config.status was made for.
11272 config_files="$ac_config_files"
11273 config_headers="$ac_config_headers"
11274 config_commands="$ac_config_commands"
11278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11280 \`$as_me' instantiates files and other configuration actions
11281 from templates according to the current configuration. Unless the files
11282 and actions are specified as TAGs, all are instantiated by default.
11284 Usage: $0 [OPTION]... [TAG]...
11286 -h, --help print this help, then exit
11287 -V, --version print version number and configuration settings, then exit
11288 --config print configuration, then exit
11289 -q, --quiet, --silent
11290 do not print progress messages
11291 -d, --debug don't remove temporary files
11292 --recheck update $as_me by reconfiguring in the same conditions
11293 --file=FILE[:TEMPLATE]
11294 instantiate the configuration file FILE
11295 --header=FILE[:TEMPLATE]
11296 instantiate the configuration header FILE
11298 Configuration files:
11301 Configuration headers:
11304 Configuration commands:
11307 Report bugs to the package provider."
11310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11311 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11314 configured by $0, generated by GNU Autoconf 2.69,
11315 with options \\"\$ac_cs_config\\"
11317 Copyright (C) 2012 Free Software Foundation, Inc.
11318 This config.status script is free software; the Free Software Foundation
11319 gives unlimited permission to copy, distribute and modify it."
11324 test -n "\$AWK" || AWK=awk
11327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11328 # The default lists apply if the user does not specify any file.
11334 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11335 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11339 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11351 # Handling of the options.
11352 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11354 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11355 $as_echo "$ac_cs_version"; exit ;;
11356 --config |
--confi |
--conf |
--con |
--co |
--c )
11357 $as_echo "$ac_cs_config"; exit ;;
11358 --debug |
--debu |
--deb |
--de |
--d |
-d )
11360 --file |
--fil |
--fi |
--f )
11363 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11364 '') as_fn_error $?
"missing file argument" ;;
11366 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11367 ac_need_defaults
=false
;;
11368 --header |
--heade |
--head |
--hea )
11371 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11373 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11374 ac_need_defaults
=false
;;
11376 # Conflict between --help and --header
11377 as_fn_error $?
"ambiguous option: \`$1'
11378 Try \`$0 --help' for more information.";;
11379 --help |
--hel |
-h )
11380 $as_echo "$ac_cs_usage"; exit ;;
11381 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11382 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11385 # This is an error.
11386 -*) as_fn_error $?
"unrecognized option: \`$1'
11387 Try \`$0 --help' for more information." ;;
11389 *) as_fn_append ac_config_targets
" $1"
11390 ac_need_defaults
=false
;;
11396 ac_configure_extra_args
=
11398 if $ac_cs_silent; then
11400 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11405 if \$ac_cs_recheck; then
11406 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11408 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11409 CONFIG_SHELL='$SHELL'
11410 export CONFIG_SHELL
11415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11419 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11420 ## Running $as_me. ##
11426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11430 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
11431 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
11435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11437 # Handling of arguments.
11438 for ac_config_target
in $ac_config_targets
11440 case $ac_config_target in
11441 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
11442 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
11443 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
11444 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11446 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11451 # If the user did not use the arguments to specify the items to instantiate,
11452 # then the envvar interface is used. Set only those that are not.
11453 # We use the long form for the default assignment because of an extremely
11454 # bizarre bug on SunOS 4.1.3.
11455 if $ac_need_defaults; then
11456 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11457 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11458 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11461 # Have a temporary directory for convenience. Make it in the build tree
11462 # simply because there is no reason against having it here, and in addition,
11463 # creating and moving files from /tmp can sometimes cause problems.
11464 # Hook for its removal unless debugging.
11465 # Note that there is a small window in which the directory will not be cleaned:
11466 # after its creation but before its name has been assigned to `$tmp'.
11470 trap 'exit_status=$?
11471 : "${ac_tmp:=$tmp}"
11472 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11474 trap 'as_fn_exit 1' 1 2 13 15
11476 # Create a (secure) tmp directory for tmp files.
11479 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11483 tmp
=.
/conf$$
-$RANDOM
11484 (umask 077 && mkdir
"$tmp")
11485 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11488 # Set up the scripts for CONFIG_FILES section.
11489 # No need to generate them if there are no CONFIG_FILES.
11490 # This happens for instance with `./config.status config.h'.
11491 if test -n "$CONFIG_FILES"; then
11494 ac_cr
=`echo X | tr X '\015'`
11495 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11496 # But we know of no other shell where ac_cr would be empty at this
11497 # point, so we can use a bashism as a fallback.
11498 if test "x$ac_cr" = x
; then
11499 eval ac_cr
=\$
\'\\r
\'
11501 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11502 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11505 ac_cs_awk_cr
=$ac_cr
11508 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11513 echo "cat >conf$$subs.awk <<_ACEOF" &&
11514 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11516 } >conf$$subs.sh ||
11517 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11518 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11520 for ac_last_try in false false false false false :; do
11521 . ./conf$$subs.sh ||
11522 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11524 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11525 if test $ac_delim_n = $ac_delim_num; then
11527 elif $ac_last_try; then
11528 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11530 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11533 rm -f conf$$subs.sh
11535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11536 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11540 s/^/S["/; s
/!.
*/"]=/
11550 s/\(.\{148\}\)..*/\1/
11552 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11557 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11564 s/\(.\{148\}\)..*/\1/
11566 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11570 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11575 ' <conf$$subs.awk | sed '
11580 ' >>$CONFIG_STATUS || ac_write_fail=1
11581 rm -f conf$$subs.awk
11582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11584 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11585 for (key in S) S_is_set[key] = 1
11591 nfields = split(line, field, "@
")
11593 len = length(field[1])
11594 for (i = 2; i < nfields; i++) {
11596 keylen = length(key)
11597 if (S_is_set[key]) {
11599 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11600 len += length(value) + length(field[++i])
11611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11612 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11613 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11616 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11617 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11620 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11621 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11622 # trailing colons and then remove the whole line if VPATH becomes empty
11623 # (actually we leave an empty line to preserve line numbers).
11624 if test "x
$srcdir" = x.; then
11625 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11644 fi # test -n "$CONFIG_FILES"
11646 # Set up the scripts for CONFIG_HEADERS section.
11647 # No need to generate them if there are no CONFIG_HEADERS.
11648 # This happens for instance with `./config.status Makefile'.
11649 if test -n "$CONFIG_HEADERS"; then
11650 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11654 # Transform confdefs.h into an awk script `defines.awk', embedded as
11655 # here-document in config.status, that substitutes the proper values into
11656 # config.h.in to produce config.h.
11658 # Create a delimiter string that does not exist in confdefs.h, to ease
11659 # handling of long lines.
11661 for ac_last_try in false false :; do
11662 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11663 if test -z "$ac_tt"; then
11665 elif $ac_last_try; then
11666 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11668 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11672 # For the awk script, D is an array of macro values keyed by name,
11673 # likewise P contains macro parameters if any. Preserve backslash
11674 # newline sequences.
11676 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11678 s/.\{148\}/&'"$ac_delim"'/g
11681 s/^[ ]*#[ ]*define[ ][ ]*/ /
11688 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11690 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11694 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11695 D["\
1"]=" \
3\\\\\\n
"\\/p
11697 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11702 s/.\{148\}/&'"$ac_delim"'/g
11707 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11710 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11712 ' <confdefs.h | sed '
11713 s/'"$ac_delim"'/"\\\
11714 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11717 for (key in D) D_is_set[key] = 1
11720 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11722 split(line, arg, " ")
11723 if (arg[1] == "#") {
11727 defundef
= substr
(arg
[1], 2)
11730 split(mac1
, mac2
, "(") #)
11732 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11733 if (D_is_set
[macro
]) {
11734 # Preserve the white space surrounding the "#".
11735 print prefix
"define", macro P
[macro
] D
[macro
]
11738 # Replace #undef with comments. This is necessary, for example,
11739 # in the case of _POSIX_SOURCE, which is predefined and required
11740 # on some systems where configure will not decide to define it.
11741 if (defundef
== "undef") {
11742 print
"/*", prefix defundef
, macro
, "*/"
11750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11751 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11752 fi # test -n "$CONFIG_HEADERS"
11755 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11760 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11762 case $ac_mode$ac_tag in
11764 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11765 :[FH
]-) ac_tag
=-:-;;
11766 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11783 -) ac_f
="$ac_tmp/stdin";;
11784 *) # Look for the file first in the build tree, then in the source tree
11785 # (if the path is not absolute). The absolute path cannot be DOS-style,
11786 # because $ac_f cannot contain `:'.
11790 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11792 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11794 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11795 as_fn_append ac_file_inputs
" '$ac_f'"
11798 # Let's still pretend it is `configure' which instantiates (i.e., don't
11799 # use $as_me), people would be surprised to read:
11800 # /* config.h. Generated by config.status. */
11801 configure_input
='Generated from '`
11802 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11804 if test x
"$ac_file" != x-
; then
11805 configure_input
="$ac_file. $configure_input"
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11807 $as_echo "$as_me: creating $ac_file" >&6;}
11809 # Neutralize special characters interpreted by sed in replacement strings.
11810 case $configure_input in #(
11811 *\
&* |
*\|
* |
*\\* )
11812 ac_sed_conf_input
=`$as_echo "$configure_input" |
11813 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11814 *) ac_sed_conf_input
=$configure_input;;
11818 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11819 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11824 ac_dir
=`$as_dirname -- "$ac_file" ||
11825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11826 X"$ac_file" : 'X\(//\)[^/]' \| \
11827 X"$ac_file" : 'X\(//\)$' \| \
11828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11829 $as_echo X"$ac_file" |
11830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11834 /^X\(\/\/\)[^/].*/{
11847 as_dir
="$ac_dir"; as_fn_mkdir_p
11851 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11853 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11854 # A ".." for each directory in $ac_dir_suffix.
11855 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11856 case $ac_top_builddir_sub in
11857 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11858 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11861 ac_abs_top_builddir
=$ac_pwd
11862 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11863 # for backward compatibility:
11864 ac_top_builddir
=$ac_top_build_prefix
11867 .
) # We are building in place.
11869 ac_top_srcdir
=$ac_top_builddir_sub
11870 ac_abs_top_srcdir
=$ac_pwd ;;
11871 [\\/]* | ?
:[\\/]* ) # Absolute name.
11872 ac_srcdir
=$srcdir$ac_dir_suffix;
11873 ac_top_srcdir
=$srcdir
11874 ac_abs_top_srcdir
=$srcdir ;;
11875 *) # Relative name.
11876 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11877 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11878 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11880 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11890 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11891 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11896 # If the template does not know about datarootdir, expand it.
11897 # FIXME: This hack should be removed a few years after 2.60.
11898 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11909 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11910 *datarootdir
*) ac_datarootdir_seen
=yes;;
11911 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11913 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11916 ac_datarootdir_hack='
11917 s&@datadir@&$datadir&g
11918 s&@docdir@&$docdir&g
11919 s&@infodir@&$infodir&g
11920 s&@localedir@&$localedir&g
11921 s&@mandir@&$mandir&g
11922 s&\\\${datarootdir}&$datarootdir&g' ;;
11926 # Neutralize VPATH when `$srcdir' = `.'.
11927 # Shell code in configure.ac might set extrasub.
11928 # FIXME: do we really want to maintain this feature?
11929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11930 ac_sed_extra="$ac_vpsub
11933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11935 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11936 s|@configure_input@|
$ac_sed_conf_input|
;t t
11937 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11938 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11939 s
&@srcdir@
&$ac_srcdir&;t t
11940 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11941 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11942 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11943 s
&@builddir@
&$ac_builddir&;t t
11944 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11945 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11946 s
&@INSTALL@
&$ac_INSTALL&;t t
11947 $ac_datarootdir_hack
11949 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11950 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11952 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11953 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11954 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11955 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11957 which seems to be undefined. Please make sure it is defined" >&5
11958 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11959 which seems to be undefined. Please make sure it is defined" >&2;}
11961 rm -f "$ac_tmp/stdin"
11963 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11964 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11972 if test x"$ac_file" != x-; then
11974 $as_echo "/* $configure_input */" \
11975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11976 } >"$ac_tmp/config.h" \
11977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11978 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11980 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11983 mv "$ac_tmp/config.h" "$ac_file" \
11984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11987 $as_echo "/* $configure_input */" \
11988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11989 || as_fn_error $? "could not create -" "$LINENO" 5
11993 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11994 $as_echo "$as_me: executing $ac_file commands" >&6;}
11999 case $ac_file$ac_mode in
12000 "config.h":H) echo > stamp-h ;;
12001 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
12003 for subdir in ${CONFIG_SRC_SUBDIR}
12005 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
12014 ac_clean_files=$ac_clean_files_save
12016 test $ac_write_fail = 0 ||
12017 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12020 # configure is writing to config.log, and then calls config.status.
12021 # config.status does its own redirection, appending to config.log.
12022 # Unfortunately, on DOS this fails, as config.log is still kept open
12023 # by configure, so config.status won't be able to
write to it
; its
12024 # output is simply discarded. So we exec the FD to /dev/null,
12025 # effectively closing config.log, so it can be properly (re)opened and
12026 # appended to by config.status. When coming back to configure, we
12027 # need to make the FD available again.
12028 if test "$no_create" != yes; then
12030 ac_config_status_args
=
12031 test "$silent" = yes &&
12032 ac_config_status_args
="$ac_config_status_args --quiet"
12034 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12037 # would make configure fail if this is the last instruction.
12038 $ac_cs_success || as_fn_exit
1
12040 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12042 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}