2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="server.cc"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars
='LTLIBOBJS
674 INSTALL_STRIP_PROGRAM
691 MAINTAINER_MODE_FALSE
720 program_transform_name
733 enable_option_checking
734 enable_maintainer_mode
745 enable_build_warnings
746 enable_gdb_build_warnings
750 enable_inprocess_agent
752 ac_precious_vars
='build_alias
766 # Initialize some variables set by options.
768 ac_init_version
=false
769 ac_unrecognized_opts
=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
780 program_transform_name
=s
,x
,x
,
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir
='${exec_prefix}/bin'
795 sbindir
='${exec_prefix}/sbin'
796 libexecdir
='${exec_prefix}/libexec'
797 datarootdir
='${prefix}/share'
798 datadir
='${datarootdir}'
799 sysconfdir
='${prefix}/etc'
800 sharedstatedir
='${prefix}/com'
801 localstatedir
='${prefix}/var'
802 includedir
='${prefix}/include'
803 oldincludedir
='/usr/include'
804 docdir
='${datarootdir}/doc/${PACKAGE}'
805 infodir
='${datarootdir}/info'
810 libdir
='${exec_prefix}/lib'
811 localedir
='${datarootdir}/locale'
812 mandir
='${datarootdir}/man'
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\
$ac_option
826 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 # Accept the important Cygnus configure options, so we can diagnose typos.
833 case $ac_dashdash$ac_option in
837 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
839 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
842 -build |
--build |
--buil |
--bui |
--bu)
843 ac_prev
=build_alias
;;
844 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
845 build_alias
=$ac_optarg ;;
847 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
848 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
849 ac_prev
=cache_file
;;
850 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
851 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
852 cache_file
=$ac_optarg ;;
855 cache_file
=config.cache
;;
857 -datadir |
--datadir |
--datadi |
--datad)
859 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
860 datadir
=$ac_optarg ;;
862 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
863 |
--dataroo |
--dataro |
--datar)
864 ac_prev
=datarootdir
;;
865 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
866 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
867 datarootdir
=$ac_optarg ;;
869 -disable-* |
--disable-*)
870 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
873 as_fn_error $?
"invalid feature name: $ac_useropt"
874 ac_useropt_orig
=$ac_useropt
875 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
880 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep
=', ';;
883 eval enable_
$ac_useropt=no
;;
885 -docdir |
--docdir |
--docdi |
--doc |
--do)
887 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
890 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
892 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
895 -enable-* |
--enable-*)
896 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
899 as_fn_error $?
"invalid feature name: $ac_useropt"
900 ac_useropt_orig
=$ac_useropt
901 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
906 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep
=', ';;
909 eval enable_
$ac_useropt=\
$ac_optarg ;;
911 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
912 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
913 |
--exec |
--exe |
--ex)
914 ac_prev
=exec_prefix
;;
915 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
916 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
917 |
--exec=* |
--exe=* |
--ex=*)
918 exec_prefix
=$ac_optarg ;;
920 -gas |
--gas |
--ga |
--g)
921 # Obsolete; use --with-gas.
924 -help |
--help |
--hel |
--he |
-h)
926 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
927 ac_init_help
=recursive
;;
928 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
929 ac_init_help
=short
;;
931 -host |
--host |
--hos |
--ho)
932 ac_prev
=host_alias
;;
933 -host=* |
--host=* |
--hos=* |
--ho=*)
934 host_alias
=$ac_optarg ;;
936 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
938 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
940 htmldir
=$ac_optarg ;;
942 -includedir |
--includedir |
--includedi |
--included |
--include \
943 |
--includ |
--inclu |
--incl |
--inc)
944 ac_prev
=includedir
;;
945 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
946 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
947 includedir
=$ac_optarg ;;
949 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
951 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
952 infodir
=$ac_optarg ;;
954 -libdir |
--libdir |
--libdi |
--libd)
956 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
959 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
960 |
--libexe |
--libex |
--libe)
961 ac_prev
=libexecdir
;;
962 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
963 |
--libexe=* |
--libex=* |
--libe=*)
964 libexecdir
=$ac_optarg ;;
966 -localedir |
--localedir |
--localedi |
--localed |
--locale)
968 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
969 localedir
=$ac_optarg ;;
971 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
972 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
973 ac_prev
=localstatedir
;;
974 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
975 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
976 localstatedir
=$ac_optarg ;;
978 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
980 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
984 # Obsolete; use --without-fp.
987 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
988 |
--no-cr |
--no-c |
-n)
991 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
992 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
995 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
996 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
997 |
--oldin |
--oldi |
--old |
--ol |
--o)
998 ac_prev
=oldincludedir
;;
999 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1000 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1001 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1002 oldincludedir
=$ac_optarg ;;
1004 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1006 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1007 prefix
=$ac_optarg ;;
1009 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1010 |
--program-pre |
--program-pr |
--program-p)
1011 ac_prev
=program_prefix
;;
1012 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1013 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1014 program_prefix
=$ac_optarg ;;
1016 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1017 |
--program-suf |
--program-su |
--program-s)
1018 ac_prev
=program_suffix
;;
1019 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1020 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1021 program_suffix
=$ac_optarg ;;
1023 -program-transform-name |
--program-transform-name \
1024 |
--program-transform-nam |
--program-transform-na \
1025 |
--program-transform-n |
--program-transform- \
1026 |
--program-transform |
--program-transfor \
1027 |
--program-transfo |
--program-transf \
1028 |
--program-trans |
--program-tran \
1029 |
--progr-tra |
--program-tr |
--program-t)
1030 ac_prev
=program_transform_name
;;
1031 -program-transform-name=* |
--program-transform-name=* \
1032 |
--program-transform-nam=* |
--program-transform-na=* \
1033 |
--program-transform-n=* |
--program-transform-=* \
1034 |
--program-transform=* |
--program-transfor=* \
1035 |
--program-transfo=* |
--program-transf=* \
1036 |
--program-trans=* |
--program-tran=* \
1037 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1038 program_transform_name
=$ac_optarg ;;
1040 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1042 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1043 pdfdir
=$ac_optarg ;;
1045 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1047 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1050 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1051 |
-silent |
--silent |
--silen |
--sile |
--sil)
1054 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1056 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1058 sbindir
=$ac_optarg ;;
1060 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1061 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1062 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1064 ac_prev
=sharedstatedir
;;
1065 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1066 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1067 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1069 sharedstatedir
=$ac_optarg ;;
1071 -site |
--site |
--sit)
1073 -site=* |
--site=* |
--sit=*)
1076 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1078 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1079 srcdir
=$ac_optarg ;;
1081 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1082 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1083 ac_prev
=sysconfdir
;;
1084 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1085 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1086 sysconfdir
=$ac_optarg ;;
1088 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1089 ac_prev
=target_alias
;;
1090 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1091 target_alias
=$ac_optarg ;;
1093 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1096 -version |
--version |
--versio |
--versi |
--vers |
-V)
1097 ac_init_version
=: ;;
1100 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1103 as_fn_error $?
"invalid package name: $ac_useropt"
1104 ac_useropt_orig
=$ac_useropt
1105 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1110 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep
=', ';;
1113 eval with_
$ac_useropt=\
$ac_optarg ;;
1115 -without-* |
--without-*)
1116 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1119 as_fn_error $?
"invalid package name: $ac_useropt"
1120 ac_useropt_orig
=$ac_useropt
1121 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1126 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep
=', ';;
1129 eval with_
$ac_useropt=no
;;
1132 # Obsolete; use --with-x.
1135 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1136 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1137 ac_prev
=x_includes
;;
1138 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1139 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1140 x_includes
=$ac_optarg ;;
1142 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1143 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1144 ac_prev
=x_libraries
;;
1145 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1146 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1147 x_libraries
=$ac_optarg ;;
1149 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information"
1154 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1158 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1160 eval $ac_envvar=\
$ac_optarg
1161 export $ac_envvar ;;
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174 if test -n "$ac_prev"; then
1175 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error $?
"missing argument to $ac_option"
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1182 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187 # Check all directory arguments for consistency.
1188 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1193 eval ac_val
=\$
$ac_var
1194 # Remove trailing slashes.
1197 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\
$ac_val;;
1200 # Be sure to have absolute directory names.
1202 [\\/$
]* | ?
:[\\/]* ) continue;;
1203 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1205 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1213 target
=$target_alias
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x
; then
1217 if test "x$build_alias" = x
; then
1218 cross_compiling
=maybe
1219 elif test "x$build_alias" != "x$host_alias"; then
1225 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1227 test "$silent" = yes && exec 6>/dev
/null
1230 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di
=`ls -di .` &&
1232 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error $?
"working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error $?
"pwd does not report name of working directory"
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted
=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir
=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1270 ac_srcdir_defaulted
=no
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1274 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1276 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1288 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 for ac_var
in $ac_precious_vars; do
1291 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1293 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1304 \`configure' configures this package to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking ...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1367 --build=BUILD configure
for building on BUILD
[guessed
]
1368 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1369 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1373 if test -n "$ac_init_help"; then
1378 --disable-option-checking ignore unrecognized
--enable/--with options
1379 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1380 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1381 --enable-maintainer-mode
1382 enable make rules and dependencies not useful
(and
1383 sometimes confusing
) to the casual installer
1384 --disable-largefile omit support
for large files
1385 --enable-unit-tests Enable the inclusion of unit tests when compiling
1387 --disable-rpath do not hardcode runtime library paths
1388 --enable-werror treat compile warnings as errors
1389 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1390 --enable-gdb-build-warnings
1391 enable GDB specific build-time compiler warnings
if
1393 --enable-inprocess-agent
1397 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1398 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1399 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1400 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1401 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1402 --without-libipt-prefix don
't search for libipt in includedir and libdir
1403 --with-ust=PATH Specify prefix directory for the installed UST package
1404 Equivalent to --with-ust-include=PATH/include
1405 plus --with-ust-lib=PATH/lib
1406 --with-ust-include=PATH Specify directory for installed UST include files
1407 --with-ust-lib=PATH Specify the directory for the installed UST library
1408 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1409 --with-bugurl=URL Direct users to URL to report a bug
1410 --with-libthread-db=PATH
1411 use given libthread_db directly
1413 Some influential environment variables:
1414 CC C compiler command
1415 CFLAGS C compiler flags
1416 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1417 nonstandard directory <lib dir>
1418 LIBS libraries to pass to the linker, e.g. -l<library>
1419 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1420 you have headers in a nonstandard directory <include dir>
1421 CXX C++ compiler command
1422 CXXFLAGS C++ compiler flags
1425 Use these variables to override the choices made by `configure' or to
help
1426 it to
find libraries and programs with nonstandard names
/locations.
1428 Report bugs to the package provider.
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1442 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1444 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1449 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1452 ac_abs_top_builddir
=$ac_pwd
1453 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir
=$ac_top_build_prefix
1458 .
) # We are building in place.
1460 ac_top_srcdir
=$ac_top_builddir_sub
1461 ac_abs_top_srcdir
=$ac_pwd ;;
1462 [\\/]* | ?
:[\\/]* ) # Absolute name.
1463 ac_srcdir
=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir
=$srcdir
1465 ac_abs_top_srcdir
=$srcdir ;;
1467 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1471 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1473 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1492 generated by GNU Autoconf
2.69
1494 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1495 This configure
script is free software
; the Free Software Foundation
1496 gives unlimited permission to copy
, distribute and modify it.
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile
()
1510 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1511 rm -f conftest.
$ac_objext
1512 if { { ac_try
="$ac_compile"
1514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext; then :
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 as_fn_set_status $ac_retval
1541 } # ac_fn_c_try_compile
1543 # ac_fn_cxx_try_compile LINENO
1544 # ----------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_cxx_try_compile ()
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1553 *) ac_try_echo
=$ac_try;;
1555 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1559 if test -s conftest.err
; then
1560 grep -v '^ *+' conftest.err
>conftest.er1
1561 cat conftest.er1
>&5
1562 mv -f conftest.er1 conftest.err
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_cxx_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.
$ac_objext; then :
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.
$ac_ext >&5
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status
$ac_retval
1579 } # ac_fn_cxx_try_compile
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1586 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1587 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } > conftest.i && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1618 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1621 # the include files in INCLUDES and setting the cache variable VAR
1623 ac_fn_c_check_header_mongrel ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if eval \${$3+:} false; then :
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if eval \${$3+:} false; then :
1630 $as_echo_n "(cached) " >&6
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1636 # Is the header compilable?
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1638 $as_echo_n "checking $2 usability... " >&6; }
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 ac_header_compiler=yes
1647 ac_header_compiler=no
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1651 $as_echo "$ac_header_compiler" >&6; }
1653 # Is the header present?
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1655 $as_echo_n "checking $2 presence... " >&6; }
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1660 if ac_fn_c_try_cpp "$LINENO"; then :
1661 ac_header_preproc=yes
1663 ac_header_preproc=no
1665 rm -f conftest.err conftest.i conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1667 $as_echo "$ac_header_preproc" >&6; }
1669 # So? What about this header?
1670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1673 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1675 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1679 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1681 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1683 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1685 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1695 eval "$3=\$ac_header_compiler"
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 } # ac_fn_c_check_header_mongrel
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1715 *) ac_try_echo
=$ac_try;;
1717 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=$ac_status
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1747 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists and can be compiled using the include files in
1750 # INCLUDES, setting the cache variable VAR accordingly.
1751 ac_fn_c_check_header_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1764 if ac_fn_c_try_compile "$LINENO"; then :
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 } # ac_fn_c_check_header_compile
1778 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1779 # -------------------------------------------
1780 # Tests whether TYPE exists after having included INCLUDES, setting cache
1781 # variable VAR accordingly.
1782 ac_fn_c_check_type ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1816 if ac_fn_c_try_compile "$LINENO"; then :
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 } # ac_fn_c_check_type
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1842 *) ac_try_echo
=$ac_try;;
1844 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1848 if test -s conftest.err
; then
1849 grep -v '^ *+' conftest.err
>conftest.er1
1850 cat conftest.er1
>&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest
$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 test -x conftest
$ac_exeext
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.
$ac_ext >&5
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status
$ac_retval
1876 } # ac_fn_c_try_link
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func
()
1883 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \
${$3+:} false
; then :
1887 $as_echo_n "(cached) " >&6
1889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893 #define $2 innocuous_$2
1895 /* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1901 # include <limits.h>
1903 # include <assert.h>
1908 /* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined __stub_$2 || defined __stub___$2
1930 if ac_fn_c_try_link
"$LINENO"; then :
1935 rm -f core conftest.err conftest.
$ac_objext \
1936 conftest
$ac_exeext conftest.
$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_func
1945 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1946 # ---------------------------------------------
1947 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1949 ac_fn_c_check_decl
()
1951 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1952 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1953 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1955 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1956 if eval \
${$3+:} false
; then :
1957 $as_echo_n "(cached) " >&6
1959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1965 #ifndef $as_decl_name
1967 (void) $as_decl_use;
1969 (void) $as_decl_name;
1977 if ac_fn_c_try_compile
"$LINENO"; then :
1982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 } # ac_fn_c_check_decl
1991 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1992 # ----------------------------------------------------
1993 # Tries to find if the field MEMBER exists in type AGGR, after including
1994 # INCLUDES, setting cache variable VAR accordingly.
1995 ac_fn_c_check_member
()
1997 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1999 $as_echo_n "checking for $2.$3... " >&6; }
2000 if eval \
${$4+:} false
; then :
2001 $as_echo_n "(cached) " >&6
2003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2016 if ac_fn_c_try_compile
"$LINENO"; then :
2019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2026 if (sizeof ac_aggr.$3)
2032 if ac_fn_c_try_compile
"$LINENO"; then :
2037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 } # ac_fn_c_check_member
2048 # ac_fn_cxx_try_link LINENO
2049 # -------------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded.
2051 ac_fn_cxx_try_link
()
2053 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2054 rm -f conftest.
$ac_objext conftest
$ac_exeext
2055 if { { ac_try
="$ac_link"
2057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_link") 2>conftest.err
2064 if test -s conftest.err; then
2065 grep -v '^ *+' conftest.err >conftest.er1
2066 cat conftest.er1 >&5
2067 mv -f conftest.er1 conftest.err
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; } && {
2071 test -z "$ac_cxx_werror_flag" ||
2072 test ! -s conftest.err
2073 } && test -s conftest$ac_exeext && {
2074 test "$cross_compiling" = yes ||
2075 test -x conftest$ac_exeext
2079 $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2084 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086 # interfere with the next link command; also delete a directory that is
2087 # left behind by Apple's compiler. We do this before executing the actions.
2088 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 as_fn_set_status $ac_retval
2092 } # ac_fn_cxx_try_link
2094 # ac_fn_cxx_check_func LINENO FUNC VAR
2095 # ------------------------------------
2096 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2097 ac_fn_cxx_check_func ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101 $as_echo_n "checking for $2... " >&6; }
2102 if eval \${$3+:} false; then :
2103 $as_echo_n "(cached) " >&6
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2107 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2109 #define $2 innocuous_$2
2111 /* System header to define __stub macros and hopefully few prototypes,
2112 which can conflict with char $2 (); below.
2113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2114 <limits.h> exists even on freestanding compilers. */
2117 # include <limits.h>
2119 # include <assert.h>
2124 /* Override any GCC internal prototype to avoid an error.
2125 Use char because int might match the return type of a GCC
2126 builtin and then its argument prototype would still apply. */
2131 /* The GNU C library defines this for functions which it implements
2132 to always fail with ENOSYS. Some functions are actually named
2133 something starting with __ and the normal name is an alias. */
2134 #if defined __stub_$2 || defined __stub___$2
2146 if ac_fn_cxx_try_link "$LINENO"; then :
2151 rm -f core conftest.err conftest.$ac_objext \
2152 conftest$ac_exeext conftest.$ac_ext
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 } # ac_fn_cxx_check_func
2161 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2162 # --------------------------------------------
2163 # Tries to find the compile-time value of EXPR in a program that includes
2164 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2166 ac_fn_c_compute_int ()
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 if test "$cross_compiling" = yes; then
2170 # Depending upon the size, compute the lo and hi bounds.
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2177 static int test_array [1 - 2 * !(($2) >= 0)];
2179 return test_array [0];
2185 if ac_fn_c_try_compile "$LINENO"; then :
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2194 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2196 return test_array [0];
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203 ac_hi=$ac_mid; break
2205 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2206 if test $ac_lo -le $ac_mid; then
2210 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2221 static int test_array [1 - 2 * !(($2) < 0)];
2223 return test_array [0];
2229 if ac_fn_c_try_compile "$LINENO"; then :
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2238 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2240 return test_array [0];
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247 ac_lo=$ac_mid; break
2249 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2250 if test $ac_mid -le $ac_hi; then
2254 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 # Binary search between lo and hi bounds.
2265 while test "x$ac_lo" != "x$ac_hi"; do
2266 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2273 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2275 return test_array [0];
2281 if ac_fn_c_try_compile "$LINENO"; then :
2284 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2296 static long int longval () { return $2; }
2297 static unsigned long int ulongval () { return $2; }
2304 FILE *f = fopen ("conftest.val", "w");
2309 long int i = longval ();
2312 fprintf (f, "%ld", i);
2316 unsigned long int i = ulongval ();
2319 fprintf (f, "%lu", i);
2321 /* Do not output a trailing newline, as this causes \r\n confusion
2322 on some platforms. */
2323 return ferror (f) || fclose (f) != 0;
2329 if ac_fn_c_try_run "$LINENO"; then :
2330 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2335 conftest.$ac_objext conftest.beam conftest.$ac_ext
2339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340 as_fn_set_status $ac_retval
2342 } # ac_fn_c_compute_int
2343 cat >config.log <<_ACEOF
2344 This file contains any messages produced by compilers while
2345 running configure, to aid debugging if configure makes a mistake.
2347 It was created by $as_me, which was
2348 generated by GNU Autoconf 2.69. Invocation command line was
2360 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2361 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2362 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2363 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2364 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2366 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2367 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2369 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2370 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2371 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2372 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2373 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2374 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2375 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 test -z "$as_dir" && as_dir=.
2384 $as_echo "PATH: $as_dir"
2400 # Keep a trace of the command line.
2401 # Strip out --no-create and --no-recursion so they do not pile up.
2402 # Strip out --silent because we don't want to record it for future runs.
2403 # Also quote any args containing shell meta-characters.
2404 # Make two passes to allow for proper duplicate-argument suppression.
2408 ac_must_keep_next=false
2414 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2416 | -silent | --silent | --silen | --sile | --sil)
2419 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2422 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424 as_fn_append ac_configure_args1 " '$ac_arg'"
2425 if test $ac_must_keep_next = true; then
2426 ac_must_keep_next=false # Got value, back to normal.
2429 *=* | --config-cache | -C | -disable-* | --disable-* \
2430 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2431 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2432 | -with-* | --with-* | -without-* | --without-* | --x)
2433 case "$ac_configure_args0 " in
2434 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2437 -* ) ac_must_keep_next=true ;;
2440 as_fn_append ac_configure_args " '$ac_arg'"
2445 { ac_configure_args0=; unset ac_configure_args0;}
2446 { ac_configure_args1=; unset ac_configure_args1;}
2448 # When interrupted or exit'd, cleanup temporary files, and complete
2449 # config.log. We remove comments because anyway the quotes in there
2450 # would cause problems or look ugly.
2451 # WARNING: Use '\'' to represent an apostrophe within the trap.
2452 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2453 trap 'exit_status=$?
2454 # Save into config.log some information that might help in debugging.
2458 $as_echo "## ---------------- ##
2459 ## Cache variables. ##
2460 ## ---------------- ##"
2462 # The following way of writing the cache mishandles newlines in values,
2464 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2465 eval ac_val=\$$ac_var
2469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2473 _ | IFS | as_nl) ;; #(
2474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2475 *) { eval $ac_var=; unset $ac_var;} ;;
2480 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2481 *${as_nl}ac_space=\ *)
2483 "s/'\''/'\''\\\\'\'''\''/g;
2484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2494 $as_echo "## ----------------- ##
2495 ## Output variables. ##
2496 ## ----------------- ##"
2498 for ac_var in $ac_subst_vars
2500 eval ac_val=\$$ac_var
2502 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 $as_echo "$ac_var='\''$ac_val'\''"
2508 if test -n "$ac_subst_files"; then
2509 $as_echo "## ------------------- ##
2510 ## File substitutions. ##
2511 ## ------------------- ##"
2513 for ac_var in $ac_subst_files
2515 eval ac_val=\$$ac_var
2517 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 $as_echo "$ac_var='\''$ac_val'\''"
2524 if test -s confdefs.h; then
2525 $as_echo "## ----------- ##
2532 test "$ac_signal" != 0 &&
2533 $as_echo "$as_me: caught signal $ac_signal"
2534 $as_echo "$as_me: exit $exit_status"
2536 rm -f core *.core core.conftest.* &&
2537 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2540 for ac_signal in 1 2 13 15; do
2541 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2545 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2546 rm -f -r conftest* confdefs.h
2548 $as_echo "/* confdefs.h */" > confdefs.h
2550 # Predefined preprocessor variables.
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_NAME "$PACKAGE_NAME"
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_STRING "$PACKAGE_STRING"
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_URL "$PACKAGE_URL"
2577 # Let the site file select an alternate cache file if it wants to.
2578 # Prefer an explicitly selected file to automatically selected ones.
2581 if test -n "$CONFIG_SITE"; then
2582 # We do not want a PATH search for config.site.
2583 case $CONFIG_SITE in #((
2584 -*) ac_site_file1=./$CONFIG_SITE;;
2585 */*) ac_site_file1=$CONFIG_SITE;;
2586 *) ac_site_file1=./$CONFIG_SITE;;
2588 elif test "x$prefix" != xNONE; then
2589 ac_site_file1=$prefix/share/config.site
2590 ac_site_file2=$prefix/etc/config.site
2592 ac_site_file1=$ac_default_prefix/share/config.site
2593 ac_site_file2=$ac_default_prefix/etc/config.site
2595 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2597 test "x$ac_site_file" = xNONE && continue
2598 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2600 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2601 sed 's/^/| /' "$ac_site_file" >&5
2603 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 as_fn_error $? "failed to load site
script $ac_site_file
2606 See \
`config.log' for more details" "$LINENO" 5; }
2610 if test -r "$cache_file"; then
2611 # Some versions of bash will fail to source /dev/null (special files
2612 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2613 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2615 $as_echo "$as_me: loading cache $cache_file" >&6;}
2617 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2618 *) . "./$cache_file";;
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2623 $as_echo "$as_me: creating cache $cache_file" >&6;}
2627 as_fn_append ac_header_list " stdlib.h"
2628 as_fn_append ac_header_list " unistd.h"
2629 as_fn_append ac_header_list " sys/param.h"
2630 # Check that the precious variables saved in the cache have kept the same
2632 ac_cache_corrupted=false
2633 for ac_var in $ac_precious_vars; do
2634 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2635 eval ac_new_set=\$ac_env_${ac_var}_set
2636 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2637 eval ac_new_val=\$ac_env_${ac_var}_value
2638 case $ac_old_set,$ac_new_set in
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2641 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2642 ac_cache_corrupted=: ;;
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2645 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2646 ac_cache_corrupted=: ;;
2649 if test "x$ac_old_val" != "x$ac_new_val"; then
2650 # differences in whitespace do not lead to failure.
2651 ac_old_val_w=`echo x
$ac_old_val`
2652 ac_new_val_w=`echo x
$ac_new_val`
2653 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2655 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2656 ac_cache_corrupted=:
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2659 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2660 eval $ac_var=\$ac_old_val
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2663 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2665 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2668 # Pass precious variables to config.status.
2669 if test "$ac_new_set" = set; then
2671 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2672 *) ac_arg=$ac_var=$ac_new_val ;;
2674 case " $ac_configure_args " in
2675 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2676 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2680 if $ac_cache_corrupted; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2684 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2685 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2687 ## -------------------- ##
2688 ## Main body of script. ##
2689 ## -------------------- ##
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701 ac_config_headers="$ac_config_headers config.h:config.in"
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2706 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2707 # Check whether --enable-maintainer-mode was given.
2708 if test "${enable_maintainer_mode+set}" = set; then :
2709 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2711 USE_MAINTAINER_MODE=no
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2715 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2716 if test $USE_MAINTAINER_MODE = yes; then
2717 MAINTAINER_MODE_TRUE=
2718 MAINTAINER_MODE_FALSE='#'
2720 MAINTAINER_MODE_TRUE='#'
2721 MAINTAINER_MODE_FALSE=
2724 MAINT=$MAINTAINER_MODE_TRUE
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733 if test -n "$ac_tool_prefix"; then
2734 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2735 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_CC+:} false; then :
2739 $as_echo_n "(cached) " >&6
2741 if test -n "$CC"; then
2742 ac_cv_prog_CC="$CC" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 if test -n "$CC"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764 $as_echo "$CC" >&6; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2772 if test -z "$ac_cv_prog_CC"; then
2774 # Extract the first word of "gcc", so it can be a program name with args.
2775 set dummy gcc; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2779 $as_echo_n "(cached) " >&6
2781 if test -n "$ac_ct_CC"; then
2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_ac_ct_CC="gcc"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2802 if test -n "$ac_ct_CC"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2804 $as_echo "$ac_ct_CC" >&6; }
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2810 if test "x$ac_ct_CC" = x; then
2813 case $cross_compiling:$ac_tool_warned in
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2817 ac_tool_warned=yes ;;
2825 if test -z "$CC"; then
2826 if test -n "$ac_tool_prefix"; then
2827 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2828 set dummy ${ac_tool_prefix}cc; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_CC+:} false; then :
2832 $as_echo_n "(cached) " >&6
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CC="${ac_tool_prefix}cc"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 if test -n "$CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2866 if test -z "$CC"; then
2867 # Extract the first word of "cc", so it can be a program name with args.
2868 set dummy cc; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_prog_CC+:} false; then :
2872 $as_echo_n "(cached) " >&6
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2886 ac_prog_rejected=yes
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 if test $ac_prog_rejected = yes; then
2898 # We found a bogon in the path, so make sure we never use it.
2899 set dummy $ac_cv_prog_CC
2901 if test $# != 0; then
2902 # We chose a different compiler from the bogus one.
2903 # However, it has the same basename, so the bogon will be chosen
2904 # first if we set CC to just the basename; use the full file name.
2906 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2912 if test -n "$CC"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914 $as_echo "$CC" >&6; }
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2922 if test -z "$CC"; then
2923 if test -n "$ac_tool_prefix"; then
2924 for ac_prog in cl.exe
2926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2927 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2963 test -n "$CC" && break
2966 if test -z "$CC"; then
2968 for ac_prog in cl.exe
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy $ac_prog; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2975 $as_echo_n "(cached) " >&6
2977 if test -n "$ac_ct_CC"; then
2978 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_ac_ct_CC="$ac_prog"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2998 if test -n "$ac_ct_CC"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3000 $as_echo "$ac_ct_CC" >&6; }
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3007 test -n "$ac_ct_CC" && break
3010 if test "x$ac_ct_CC" = x; then
3013 case $cross_compiling:$ac_tool_warned in
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3017 ac_tool_warned=yes ;;
3026 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3029 See \
`config.log' for more details" "$LINENO" 5; }
3031 # Provide some information about the compiler.
3032 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3035 for ac_option in --version -v -V -qversion; do
3036 { { ac_try="$ac_compiler $ac_option >&5"
3038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3039 *) ac_try_echo
=$ac_try;;
3041 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3042 $as_echo "$ac_try_echo"; } >&5
3043 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3045 if test -s conftest.err
; then
3047 ... rest of stderr output deleted ...
3048 10q' conftest.err
>conftest.er1
3049 cat conftest.er1
>&5
3051 rm -f conftest.er1 conftest.err
3052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3053 test $ac_status = 0; }
3056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3067 ac_clean_files_save
=$ac_clean_files
3068 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3069 # Try to create an executable without -o first, disregard a.out.
3070 # It will help us diagnose broken compilers, and finding out an intuition
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3073 $as_echo_n "checking whether the C compiler works... " >&6; }
3074 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 # The possible output files:
3077 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3080 for ac_file
in $ac_files
3083 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3084 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3089 if { { ac_try
="$ac_link_default"
3091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_link_default") 2>&5
3098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3099 test $ac_status = 0; }; then :
3100 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3101 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3102 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3103 # so that the user can short-circuit this test for compilers unknown to
3105 for ac_file in $ac_files ''
3107 test -f "$ac_file" || continue
3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3112 # We found the default executable, but exeext='' is most
3116 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3118 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3120 # We set ac_cv_exeext here because the later test for it is not
3121 # safe: cross compilers may not add the suffix if given an `-o'
3122 # argument, so we may need to know it at that point already.
3123 # Even if this section looks crufty: it has the advantage of
3130 test "$ac_cv_exeext" = no && ac_cv_exeext=
3135 if test -z "$ac_file"; then :
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 $as_echo "$as_me: failed program was:" >&5
3139 sed 's
/^
/|
/' conftest.$ac_ext >&5
3141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3143 as_fn_error 77 "C compiler cannot create executables
3144 See \`config.log
' for more details" "$LINENO" 5; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3147 $as_echo "yes" >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3150 $as_echo_n "checking for C compiler default output file name... " >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3152 $as_echo "$ac_file" >&6; }
3153 ac_exeext=$ac_cv_exeext
3155 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3156 ac_clean_files=$ac_clean_files_save
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3158 $as_echo_n "checking for suffix of executables... " >&6; }
3159 if { { ac_try="$ac_link"
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165 $as_echo "$ac_try_echo"; } >&5
3166 (eval "$ac_link") 2>&5
3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169 test $ac_status = 0; }; then :
3170 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3171 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3172 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3174 for ac_file
in conftest.exe conftest conftest.
*; do
3175 test -f "$ac_file" ||
continue
3177 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3178 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3187 See \`config.log' for more details" "$LINENO" 5; }
3189 rm -f conftest conftest
$ac_cv_exeext
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3191 $as_echo "$ac_cv_exeext" >&6; }
3193 rm -f conftest.
$ac_ext
3194 EXEEXT
=$ac_cv_exeext
3196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3202 FILE *f = fopen ("conftest.out", "w");
3203 return ferror (f) || fclose (f) != 0;
3209 ac_clean_files
="$ac_clean_files conftest.out"
3210 # Check that the compiler produces executables we can run. If not, either
3211 # the compiler is broken, or we cross compile.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3213 $as_echo_n "checking whether we are cross compiling... " >&6; }
3214 if test "$cross_compiling" != yes; then
3215 { { ac_try
="$ac_link"
3217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3222 (eval "$ac_link") 2>&5
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }
3226 if { ac_try='./conftest$ac_cv_exeext'
3227 { { case "(($ac_try" in
3228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3229 *) ac_try_echo
=$ac_try;;
3231 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232 $as_echo "$ac_try_echo"; } >&5
3233 (eval "$ac_try") 2>&5
3235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236 test $ac_status = 0; }; }; then
3239 if test "$cross_compiling" = maybe
; then
3242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 as_fn_error $?
"cannot run C compiled programs.
3245 If you meant to cross compile, use \`--host'.
3246 See \`config.log' for more details" "$LINENO" 5; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3251 $as_echo "$cross_compiling" >&6; }
3253 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3254 ac_clean_files
=$ac_clean_files_save
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3256 $as_echo_n "checking for suffix of object files... " >&6; }
3257 if ${ac_cv_objext+:} false
; then :
3258 $as_echo_n "(cached) " >&6
3260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3261 /* end confdefs.h. */
3271 rm -f conftest.o conftest.obj
3272 if { { ac_try
="$ac_compile"
3274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278 $as_echo "$ac_try_echo"; } >&5
3279 (eval "$ac_compile") 2>&5
3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }; then :
3283 for ac_file in conftest.o conftest.obj conftest.*; do
3284 test -f "$ac_file" || continue;
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3287 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3292 $as_echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3298 See \
`config.log' for more details" "$LINENO" 5; }
3300 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3303 $as_echo "$ac_cv_objext" >&6; }
3304 OBJEXT=$ac_cv_objext
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3307 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3308 if ${ac_cv_c_compiler_gnu+:} false; then :
3309 $as_echo_n "(cached) " >&6
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3325 if ac_fn_c_try_compile "$LINENO"; then :
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3335 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3336 if test $ac_compiler_gnu = yes; then
3341 ac_test_CFLAGS=${CFLAGS+set}
3342 ac_save_CFLAGS=$CFLAGS
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3344 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3345 if ${ac_cv_prog_cc_g+:} false; then :
3346 $as_echo_n "(cached) " >&6
3348 ac_save_c_werror_flag=$ac_c_werror_flag
3349 ac_c_werror_flag=yes
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3363 if ac_fn_c_try_compile "$LINENO"; then :
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3378 if ac_fn_c_try_compile "$LINENO"; then :
3381 ac_c_werror_flag=$ac_save_c_werror_flag
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3394 if ac_fn_c_try_compile "$LINENO"; then :
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 ac_c_werror_flag=$ac_save_c_werror_flag
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3405 $as_echo "$ac_cv_prog_cc_g" >&6; }
3406 if test "$ac_test_CFLAGS" = set; then
3407 CFLAGS=$ac_save_CFLAGS
3408 elif test $ac_cv_prog_cc_g = yes; then
3409 if test "$GCC" = yes; then
3415 if test "$GCC" = yes; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3422 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3423 if ${ac_cv_prog_cc_c89+:} false; then :
3424 $as_echo_n "(cached) " >&6
3426 ac_cv_prog_cc_c89=no
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3433 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3434 struct buf { int x; };
3435 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3436 static char *e (p, i)
3442 static char *f (char * (*g) (char **, int), char **p, ...)
3447 s = g (p, va_arg (v,int));
3452 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3453 function prototypes and stuff, but not '\xHH' hex character constants.
3454 These don't provoke an error unfortunately, instead are silently treated
3455 as 'x'. The following induces an error, until -std is added to get
3456 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3457 array size at least. It's necessary to write '\x00'==0 to get something
3458 that's true only with -std. */
3459 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3461 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3462 inside strings and character constants. */
3464 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3466 int test (int i, double x);
3467 struct s1 {int (*f) (int a);};
3468 struct s2 {int (*f) (double a);};
3469 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3475 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3480 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3481 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3483 CC="$ac_save_CC $ac_arg"
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485 ac_cv_prog_cc_c89=$ac_arg
3487 rm -f core conftest.err conftest.$ac_objext
3488 test "x$ac_cv_prog_cc_c89" != "xno" && break
3490 rm -f conftest.$ac_ext
3495 case "x$ac_cv_prog_cc_c89" in
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3498 $as_echo "none needed" >&6; } ;;
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3501 $as_echo "unsupported" >&6; } ;;
3503 CC="$CC $ac_cv_prog_cc_c89"
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3505 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3507 if test "x$ac_cv_prog_cc_c89" != xno; then :
3512 ac_cpp='$CPP $CPPFLAGS'
3513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518 ac_cpp='$CXXCPP $CPPFLAGS'
3519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3522 if test -z "$CXX"; then
3523 if test -n "$CCC"; then
3526 if test -n "$ac_tool_prefix"; then
3527 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if ${ac_cv_prog_CXX+:} false; then :
3534 $as_echo_n "(cached) " >&6
3536 if test -n "$CXX"; then
3537 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 if test -n "$CXX"; then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3559 $as_echo "$CXX" >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3566 test -n "$CXX" && break
3569 if test -z "$CXX"; then
3571 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3573 # Extract the first word of "$ac_prog", so it can be a program name with args.
3574 set dummy $ac_prog; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3578 $as_echo_n "(cached) " >&6
3580 if test -n "$ac_ct_CXX"; then
3581 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3590 ac_cv_prog_ac_ct_CXX="$ac_prog"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3601 if test -n "$ac_ct_CXX"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3603 $as_echo "$ac_ct_CXX" >&6; }
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3610 test -n "$ac_ct_CXX" && break
3613 if test "x$ac_ct_CXX" = x; then
3616 case $cross_compiling:$ac_tool_warned in
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620 ac_tool_warned=yes ;;
3628 # Provide some information about the compiler.
3629 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3632 for ac_option in --version -v -V -qversion; do
3633 { { ac_try="$ac_compiler $ac_option >&5"
3635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3636 *) ac_try_echo
=$ac_try;;
3638 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3642 if test -s conftest.err
; then
3644 ... rest of stderr output deleted ...
3645 10q' conftest.err
>conftest.er1
3646 cat conftest.er1
>&5
3648 rm -f conftest.er1 conftest.err
3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650 test $ac_status = 0; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3654 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3655 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3656 $as_echo_n "(cached) " >&6
3658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3672 if ac_fn_cxx_try_compile
"$LINENO"; then :
3677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3678 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3682 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3683 if test $ac_compiler_gnu = yes; then
3688 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3689 ac_save_CXXFLAGS
=$CXXFLAGS
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3691 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3692 if ${ac_cv_prog_cxx_g+:} false
; then :
3693 $as_echo_n "(cached) " >&6
3695 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3696 ac_cxx_werror_flag
=yes
3699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3710 if ac_fn_cxx_try_compile
"$LINENO"; then :
3711 ac_cv_prog_cxx_g
=yes
3714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3725 if ac_fn_cxx_try_compile
"$LINENO"; then :
3728 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3741 if ac_fn_cxx_try_compile
"$LINENO"; then :
3742 ac_cv_prog_cxx_g
=yes
3744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3749 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3752 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3753 if test "$ac_test_CXXFLAGS" = set; then
3754 CXXFLAGS
=$ac_save_CXXFLAGS
3755 elif test $ac_cv_prog_cxx_g = yes; then
3756 if test "$GXX" = yes; then
3762 if test "$GXX" = yes; then
3769 ac_cpp
='$CPP $CPPFLAGS'
3770 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3776 ac_cpp
='$CPP $CPPFLAGS'
3777 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3778 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3779 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3781 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3782 # On Suns, sometimes $CPP names a directory.
3783 if test -n "$CPP" && test -d "$CPP"; then
3786 if test -z "$CPP"; then
3787 if ${ac_cv_prog_CPP+:} false
; then :
3788 $as_echo_n "(cached) " >&6
3790 # Double quotes because CPP needs to be expanded
3791 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3794 for ac_c_preproc_warn_flag
in '' yes
3796 # Use a header file that comes with gcc, so configuring glibc
3797 # with a fresh cross-compiler works.
3798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3799 # <limits.h> exists even on freestanding compilers.
3800 # On the NeXT, cc -E runs the code through the compiler's parser,
3801 # not just through cpp. "Syntax error" is here to catch this case.
3802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3805 # include <limits.h>
3807 # include <assert.h>
3811 if ac_fn_c_try_cpp
"$LINENO"; then :
3814 # Broken: fails on valid input.
3817 rm -f conftest.err conftest.i conftest.
$ac_ext
3819 # OK, works on sane cases. Now check whether nonexistent headers
3820 # can be detected and how.
3821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823 #include <ac_nonexistent.h>
3825 if ac_fn_c_try_cpp
"$LINENO"; then :
3826 # Broken: success on invalid input.
3829 # Passes both tests.
3833 rm -f conftest.err conftest.i conftest.
$ac_ext
3836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3837 rm -f conftest.i conftest.err conftest.
$ac_ext
3838 if $ac_preproc_ok; then :
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3851 $as_echo "$CPP" >&6; }
3853 for ac_c_preproc_warn_flag
in '' yes
3855 # Use a header file that comes with gcc, so configuring glibc
3856 # with a fresh cross-compiler works.
3857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3858 # <limits.h> exists even on freestanding compilers.
3859 # On the NeXT, cc -E runs the code through the compiler's parser,
3860 # not just through cpp. "Syntax error" is here to catch this case.
3861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3864 # include <limits.h>
3866 # include <assert.h>
3870 if ac_fn_c_try_cpp
"$LINENO"; then :
3873 # Broken: fails on valid input.
3876 rm -f conftest.err conftest.i conftest.
$ac_ext
3878 # OK, works on sane cases. Now check whether nonexistent headers
3879 # can be detected and how.
3880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882 #include <ac_nonexistent.h>
3884 if ac_fn_c_try_cpp
"$LINENO"; then :
3885 # Broken: success on invalid input.
3888 # Passes both tests.
3892 rm -f conftest.err conftest.i conftest.
$ac_ext
3895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3896 rm -f conftest.i conftest.err conftest.
$ac_ext
3897 if $ac_preproc_ok; then :
3900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3903 See \`config.log' for more details" "$LINENO" 5; }
3907 ac_cpp
='$CPP $CPPFLAGS'
3908 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3914 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3915 if ${ac_cv_path_GREP+:} false
; then :
3916 $as_echo_n "(cached) " >&6
3918 if test -z "$GREP"; then
3919 ac_path_GREP_found
=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3922 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3925 test -z "$as_dir" && as_dir
=.
3926 for ac_prog
in grep ggrep
; do
3927 for ac_exec_ext
in '' $ac_executable_extensions; do
3928 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3929 as_fn_executable_p
"$ac_path_GREP" ||
continue
3930 # Check for GNU ac_path_GREP and select it if it is found.
3931 # Check for GNU $ac_path_GREP
3932 case `"$ac_path_GREP" --version 2>&1` in
3934 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3937 $as_echo_n 0123456789 >"conftest.in"
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
3943 $as_echo 'GREP' >> "conftest.nl"
3944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3945 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3946 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_GREP
="$ac_path_GREP"
3950 ac_path_GREP_max
=$ac_count
3952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3955 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3958 $ac_path_GREP_found && break 3
3963 if test -z "$ac_cv_path_GREP"; then
3964 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3967 ac_cv_path_GREP
=$GREP
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3972 $as_echo "$ac_cv_path_GREP" >&6; }
3973 GREP
="$ac_cv_path_GREP"
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3977 $as_echo_n "checking for egrep... " >&6; }
3978 if ${ac_cv_path_EGREP+:} false
; then :
3979 $as_echo_n "(cached) " >&6
3981 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3982 then ac_cv_path_EGREP
="$GREP -E"
3984 if test -z "$EGREP"; then
3985 ac_path_EGREP_found
=false
3986 # Loop through the user's path and test for each of PROGNAME-LIST
3987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3988 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3991 test -z "$as_dir" && as_dir
=.
3992 for ac_prog
in egrep; do
3993 for ac_exec_ext
in '' $ac_executable_extensions; do
3994 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3995 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3996 # Check for GNU ac_path_EGREP and select it if it is found.
3997 # Check for GNU $ac_path_EGREP
3998 case `"$ac_path_EGREP" --version 2>&1` in
4000 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4003 $as_echo_n 0123456789 >"conftest.in"
4006 cat "conftest.in" "conftest.in" >"conftest.tmp"
4007 mv "conftest.tmp" "conftest.in"
4008 cp "conftest.in" "conftest.nl"
4009 $as_echo 'EGREP' >> "conftest.nl"
4010 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4011 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4012 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4013 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4014 # Best one so far, save it but keep looking for a better one
4015 ac_cv_path_EGREP
="$ac_path_EGREP"
4016 ac_path_EGREP_max
=$ac_count
4018 # 10*(2^10) chars as input seems more than enough
4019 test $ac_count -gt 10 && break
4021 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4024 $ac_path_EGREP_found && break 3
4029 if test -z "$ac_cv_path_EGREP"; then
4030 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4033 ac_cv_path_EGREP
=$EGREP
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4039 $as_echo "$ac_cv_path_EGREP" >&6; }
4040 EGREP
="$ac_cv_path_EGREP"
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4044 $as_echo_n "checking for ANSI C header files... " >&6; }
4045 if ${ac_cv_header_stdc+:} false
; then :
4046 $as_echo_n "(cached) " >&6
4048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4063 if ac_fn_c_try_compile
"$LINENO"; then :
4064 ac_cv_header_stdc
=yes
4066 ac_cv_header_stdc
=no
4068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4070 if test $ac_cv_header_stdc = yes; then
4071 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 $EGREP "memchr" >/dev
/null
2>&1; then :
4081 ac_cv_header_stdc
=no
4087 if test $ac_cv_header_stdc = yes; then
4088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095 $EGREP "free" >/dev
/null
2>&1; then :
4098 ac_cv_header_stdc
=no
4104 if test $ac_cv_header_stdc = yes; then
4105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4106 if test "$cross_compiling" = yes; then :
4109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4113 #if ((' ' & 0x0FF) == 0x020)
4114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4117 # define ISLOWER(c) \
4118 (('a' <= (c) && (c) <= 'i') \
4119 || ('j' <= (c) && (c) <= 'r') \
4120 || ('s' <= (c) && (c) <= 'z'))
4121 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4124 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4129 for (i = 0; i < 256; i++)
4130 if (XOR (islower (i), ISLOWER (i))
4131 || toupper (i) != TOUPPER (i))
4136 if ac_fn_c_try_run
"$LINENO"; then :
4139 ac_cv_header_stdc
=no
4141 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4142 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4148 $as_echo "$ac_cv_header_stdc" >&6; }
4149 if test $ac_cv_header_stdc = yes; then
4151 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4156 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4157 inttypes.h stdint.h unistd.h
4159 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4160 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4162 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4163 cat >>confdefs.h
<<_ACEOF
4164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4173 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4174 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4181 if test "$MINIX" = yes; then
4183 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4186 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4189 $as_echo "#define _MINIX 1" >>confdefs.h
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4195 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4196 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4197 $as_echo_n "(cached) " >&6
4199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4202 # define __EXTENSIONS__ 1
4203 $ac_includes_default
4212 if ac_fn_c_try_compile
"$LINENO"; then :
4213 ac_cv_safe_to_define___extensions__
=yes
4215 ac_cv_safe_to_define___extensions__
=no
4217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4220 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4221 test $ac_cv_safe_to_define___extensions__ = yes &&
4222 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4224 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4226 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4228 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4230 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4234 # Check whether --enable-largefile was given.
4235 if test "${enable_largefile+set}" = set; then :
4236 enableval
=$enable_largefile;
4239 if test "$enable_largefile" != no
; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4242 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4243 if ${ac_cv_sys_largefile_CC+:} false
; then :
4244 $as_echo_n "(cached) " >&6
4246 ac_cv_sys_largefile_CC
=no
4247 if test "$GCC" != yes; then
4250 # IRIX 6.2 and later do not support large files by default,
4251 # so use the C compiler's -n32 option if that helps.
4252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #include <sys/types.h>
4255 /* Check that off_t can represent 2**63 - 1 correctly.
4256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4257 since some C++ compilers masquerading as C compilers
4258 incorrectly reject 9223372036854775807. */
4259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4261 && LARGE_OFF_T % 2147483647 == 1)
4271 if ac_fn_c_try_compile
"$LINENO"; then :
4274 rm -f core conftest.err conftest.
$ac_objext
4276 if ac_fn_c_try_compile
"$LINENO"; then :
4277 ac_cv_sys_largefile_CC
=' -n32'; break
4279 rm -f core conftest.err conftest.
$ac_objext
4283 rm -f conftest.
$ac_ext
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4287 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4288 if test "$ac_cv_sys_largefile_CC" != no
; then
4289 CC
=$CC$ac_cv_sys_largefile_CC
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4293 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4294 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4295 $as_echo_n "(cached) " >&6
4298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #include <sys/types.h>
4301 /* Check that off_t can represent 2**63 - 1 correctly.
4302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4303 since some C++ compilers masquerading as C compilers
4304 incorrectly reject 9223372036854775807. */
4305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4307 && LARGE_OFF_T % 2147483647 == 1)
4317 if ac_fn_c_try_compile
"$LINENO"; then :
4318 ac_cv_sys_file_offset_bits
=no
; break
4320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4323 #define _FILE_OFFSET_BITS 64
4324 #include <sys/types.h>
4325 /* Check that off_t can represent 2**63 - 1 correctly.
4326 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4327 since some C++ compilers masquerading as C compilers
4328 incorrectly reject 9223372036854775807. */
4329 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4330 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4331 && LARGE_OFF_T % 2147483647 == 1)
4341 if ac_fn_c_try_compile
"$LINENO"; then :
4342 ac_cv_sys_file_offset_bits
=64; break
4344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4345 ac_cv_sys_file_offset_bits
=unknown
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4350 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4351 case $ac_cv_sys_file_offset_bits in #(
4354 cat >>confdefs.h
<<_ACEOF
4355 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4360 if test $ac_cv_sys_file_offset_bits = unknown
; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4362 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4363 if ${ac_cv_sys_large_files+:} false
; then :
4364 $as_echo_n "(cached) " >&6
4367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 #include <sys/types.h>
4370 /* Check that off_t can represent 2**63 - 1 correctly.
4371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4372 since some C++ compilers masquerading as C compilers
4373 incorrectly reject 9223372036854775807. */
4374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4376 && LARGE_OFF_T % 2147483647 == 1)
4386 if ac_fn_c_try_compile
"$LINENO"; then :
4387 ac_cv_sys_large_files
=no
; break
4389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392 #define _LARGE_FILES 1
4393 #include <sys/types.h>
4394 /* Check that off_t can represent 2**63 - 1 correctly.
4395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4396 since some C++ compilers masquerading as C compilers
4397 incorrectly reject 9223372036854775807. */
4398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4400 && LARGE_OFF_T % 2147483647 == 1)
4410 if ac_fn_c_try_compile
"$LINENO"; then :
4411 ac_cv_sys_large_files
=1; break
4413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4414 ac_cv_sys_large_files
=unknown
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4419 $as_echo "$ac_cv_sys_large_files" >&6; }
4420 case $ac_cv_sys_large_files in #(
4423 cat >>confdefs.h
<<_ACEOF
4424 #define _LARGE_FILES $ac_cv_sys_large_files
4435 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4436 if test -f "$ac_dir/install-sh"; then
4438 ac_install_sh
="$ac_aux_dir/install-sh -c"
4440 elif test -f "$ac_dir/install.sh"; then
4442 ac_install_sh
="$ac_aux_dir/install.sh -c"
4444 elif test -f "$ac_dir/shtool"; then
4446 ac_install_sh
="$ac_aux_dir/shtool install -c"
4450 if test -z "$ac_aux_dir"; then
4451 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4454 # These three variables are undocumented and unsupported,
4455 # and are intended to be withdrawn in a future Autoconf release.
4456 # They can cause serious problems if a builder's source tree is in a directory
4457 # whose full name contains unusual characters.
4458 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4459 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4460 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4463 # Expand $ac_aux_dir to an absolute path.
4464 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4466 if test x
"${install_sh+set}" != xset
; then
4469 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4471 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4475 # Installed binaries are usually stripped using 'strip' when the user
4476 # run "make install-strip". However 'strip' might not be the right
4477 # tool to use in cross-compilation environments, therefore Automake
4478 # will honor the 'STRIP' environment variable to overrule this program.
4479 if test "$cross_compiling" != no
; then
4480 if test -n "$ac_tool_prefix"; then
4481 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4482 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if ${ac_cv_prog_STRIP+:} false
; then :
4486 $as_echo_n "(cached) " >&6
4488 if test -n "$STRIP"; then
4489 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir
=.
4496 for ac_exec_ext
in '' $ac_executable_extensions; do
4497 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 STRIP
=$ac_cv_prog_STRIP
4509 if test -n "$STRIP"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4511 $as_echo "$STRIP" >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4519 if test -z "$ac_cv_prog_STRIP"; then
4521 # Extract the first word of "strip", so it can be a program name with args.
4522 set dummy strip
; ac_word
=$2
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4526 $as_echo_n "(cached) " >&6
4528 if test -n "$ac_ct_STRIP"; then
4529 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4535 test -z "$as_dir" && as_dir
=.
4536 for ac_exec_ext
in '' $ac_executable_extensions; do
4537 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4538 ac_cv_prog_ac_ct_STRIP
="strip"
4539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4549 if test -n "$ac_ct_STRIP"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4551 $as_echo "$ac_ct_STRIP" >&6; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554 $as_echo "no" >&6; }
4557 if test "x$ac_ct_STRIP" = x
; then
4560 case $cross_compiling:$ac_tool_warned in
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4564 ac_tool_warned
=yes ;;
4569 STRIP
="$ac_cv_prog_STRIP"
4573 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4576 # Make sure we can run config.sub.
4577 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4578 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4581 $as_echo_n "checking build system type... " >&6; }
4582 if ${ac_cv_build+:} false
; then :
4583 $as_echo_n "(cached) " >&6
4585 ac_build_alias
=$build_alias
4586 test "x$ac_build_alias" = x
&&
4587 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4588 test "x$ac_build_alias" = x
&&
4589 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4590 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4591 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4595 $as_echo "$ac_cv_build" >&6; }
4596 case $ac_cv_build in
4598 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4601 ac_save_IFS
=$IFS; IFS
='-'
4607 # Remember, the first character of IFS is used to create $*,
4608 # except with old shells:
4611 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4615 $as_echo_n "checking host system type... " >&6; }
4616 if ${ac_cv_host+:} false
; then :
4617 $as_echo_n "(cached) " >&6
4619 if test "x$host_alias" = x
; then
4620 ac_cv_host
=$ac_cv_build
4622 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4623 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4628 $as_echo "$ac_cv_host" >&6; }
4631 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4634 ac_save_IFS
=$IFS; IFS
='-'
4640 # Remember, the first character of IFS is used to create $*,
4641 # except with old shells:
4644 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4648 $as_echo_n "checking target system type... " >&6; }
4649 if ${ac_cv_target+:} false
; then :
4650 $as_echo_n "(cached) " >&6
4652 if test "x$target_alias" = x
; then
4653 ac_cv_target
=$ac_cv_host
4655 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4656 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4661 $as_echo "$ac_cv_target" >&6; }
4662 case $ac_cv_target in
4664 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4666 target
=$ac_cv_target
4667 ac_save_IFS
=$IFS; IFS
='-'
4673 # Remember, the first character of IFS is used to create $*,
4674 # except with old shells:
4677 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4680 # The aliases save the names the user supplied, while $host etc.
4681 # will get canonicalized.
4682 test -n "$target_alias" &&
4683 test "$program_prefix$program_suffix$program_transform_name" = \
4685 program_prefix
=${target_alias}-
4688 # Find a good install program. We prefer a C program (faster),
4689 # so one script is as good as another. But avoid the broken or
4690 # incompatible versions:
4691 # SysV /etc/install, /usr/sbin/install
4692 # SunOS /usr/etc/install
4693 # IRIX /sbin/install
4695 # AmigaOS /C/install, which installs bootblocks on floppy discs
4696 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4697 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4698 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4699 # OS/2's system install, which has a completely different semantic
4700 # ./install, which can be erroneously created by make from ./install.sh.
4701 # Reject install programs that cannot install multiple files.
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4703 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4704 if test -z "$INSTALL"; then
4705 if ${ac_cv_path_install+:} false
; then :
4706 $as_echo_n "(cached) " >&6
4708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir
=.
4713 # Account for people who put trailing slashes in PATH elements.
4714 case $as_dir/ in #((
4715 .
/ | .
// |
/[cC
]/* | \
4716 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4717 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4720 # OSF1 and SCO ODT 3.0 have their own names for install.
4721 # Don't use installbsd from OSF since it installs stuff as root
4723 for ac_prog
in ginstall scoinst
install; do
4724 for ac_exec_ext
in '' $ac_executable_extensions; do
4725 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4726 if test $ac_prog = install &&
4727 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4728 # AIX install. It has an incompatible calling convention.
4730 elif test $ac_prog = install &&
4731 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4732 # program-specific install script used by HP pwplus--don't use.
4735 rm -rf conftest.one conftest.two conftest.dir
4736 echo one
> conftest.one
4737 echo two
> conftest.two
4739 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4740 test -s conftest.one
&& test -s conftest.two
&&
4741 test -s conftest.dir
/conftest.one
&&
4742 test -s conftest.dir
/conftest.two
4744 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4757 rm -rf conftest.one conftest.two conftest.dir
4760 if test "${ac_cv_path_install+set}" = set; then
4761 INSTALL
=$ac_cv_path_install
4763 # As a last resort, use the slow shell script. Don't cache a
4764 # value for INSTALL within a source directory, because that will
4765 # break other packages using the cache if that directory is
4766 # removed, or if the value is a relative name.
4767 INSTALL
=$ac_install_sh
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4771 $as_echo "$INSTALL" >&6; }
4773 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4774 # It thinks the first close brace ends the variable substitution.
4775 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4777 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4779 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4781 if test -n "$ac_tool_prefix"; then
4782 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4783 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if ${ac_cv_prog_AR+:} false
; then :
4787 $as_echo_n "(cached) " >&6
4789 if test -n "$AR"; then
4790 ac_cv_prog_AR
="$AR" # Let the user override the test.
4792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir
=.
4797 for ac_exec_ext
in '' $ac_executable_extensions; do
4798 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 if test -n "$AR"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4812 $as_echo "$AR" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4820 if test -z "$ac_cv_prog_AR"; then
4822 # Extract the first word of "ar", so it can be a program name with args.
4823 set dummy
ar; ac_word
=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4827 $as_echo_n "(cached) " >&6
4829 if test -n "$ac_ct_AR"; then
4830 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir
=.
4837 for ac_exec_ext
in '' $ac_executable_extensions; do
4838 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4839 ac_cv_prog_ac_ct_AR
="ar"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4850 if test -n "$ac_ct_AR"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4852 $as_echo "$ac_ct_AR" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4858 if test "x$ac_ct_AR" = x
; then
4861 case $cross_compiling:$ac_tool_warned in
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4865 ac_tool_warned
=yes ;;
4873 if test -n "$ac_tool_prefix"; then
4874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4875 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if ${ac_cv_prog_RANLIB+:} false
; then :
4879 $as_echo_n "(cached) " >&6
4881 if test -n "$RANLIB"; then
4882 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4888 test -z "$as_dir" && as_dir
=.
4889 for ac_exec_ext
in '' $ac_executable_extensions; do
4890 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4891 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 RANLIB
=$ac_cv_prog_RANLIB
4902 if test -n "$RANLIB"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4904 $as_echo "$RANLIB" >&6; }
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4912 if test -z "$ac_cv_prog_RANLIB"; then
4913 ac_ct_RANLIB
=$RANLIB
4914 # Extract the first word of "ranlib", so it can be a program name with args.
4915 set dummy ranlib
; ac_word
=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4919 $as_echo_n "(cached) " >&6
4921 if test -n "$ac_ct_RANLIB"; then
4922 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4928 test -z "$as_dir" && as_dir
=.
4929 for ac_exec_ext
in '' $ac_executable_extensions; do
4930 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4942 if test -n "$ac_ct_RANLIB"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4944 $as_echo "$ac_ct_RANLIB" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4950 if test "x$ac_ct_RANLIB" = x
; then
4953 case $cross_compiling:$ac_tool_warned in
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957 ac_tool_warned
=yes ;;
4959 RANLIB
=$ac_ct_RANLIB
4962 RANLIB
="$ac_cv_prog_RANLIB"
4966 test "$program_prefix" != NONE
&&
4967 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4968 # Use a double $ so make ignores it.
4969 test "$program_suffix" != NONE
&&
4970 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4971 # Double any \ or $.
4972 # By default was `s,x,x', remove it if useless.
4973 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4974 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4977 # We require a C++11 compiler. Check if one is available, and if
4978 # necessary, set CXX_DIALECT to some -std=xxx switch.
4980 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
4982 ac_cpp
='$CXXCPP $CPPFLAGS'
4983 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4989 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4990 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
4991 $as_echo_n "(cached) " >&6
4993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4997 // If the compiler admits that it is not ready for C++11, why torture it?
4998 // Hopefully, this will speed up the test.
5002 #error "This is not a C++ compiler"
5004 #elif __cplusplus < 201103L
5006 #error "This is not a C++11 compiler"
5013 namespace test_static_assert
5016 template <typename T>
5019 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5024 namespace test_final_override
5032 struct Derived : public Base
5034 virtual void f() override {}
5039 namespace test_double_right_angle_brackets
5042 template < typename T >
5045 typedef check<void> single_type;
5046 typedef check<check<void>> double_type;
5047 typedef check<check<check<void>>> triple_type;
5048 typedef check<check<check<check<void>>>> quadruple_type;
5052 namespace test_decltype
5065 namespace test_type_deduction
5068 template < typename T1, typename T2 >
5071 static const bool value = false;
5074 template < typename T >
5075 struct is_same<T, T>
5077 static const bool value = true;
5080 template < typename T1, typename T2 >
5082 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5088 test(const int c, volatile int v)
5090 static_assert(is_same<int, decltype(0)>::value == true, "");
5091 static_assert(is_same<int, decltype(c)>::value == false, "");
5092 static_assert(is_same<int, decltype(v)>::value == false, "");
5095 auto sumi = ac + av + 'x';
5096 auto sumf = ac + av + 1.0;
5097 static_assert(is_same<int, decltype(ac)>::value == true, "");
5098 static_assert(is_same<int, decltype(av)>::value == true, "");
5099 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5100 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5101 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5102 return (sumf > 0.0) ? sumi : add(c, v);
5107 namespace test_noexcept
5110 int f() { return 0; }
5111 int g() noexcept { return 0; }
5113 static_assert(noexcept(f()) == false, "");
5114 static_assert(noexcept(g()) == true, "");
5118 namespace test_constexpr
5121 template < typename CharT >
5122 unsigned long constexpr
5123 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5125 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5128 template < typename CharT >
5129 unsigned long constexpr
5130 strlen_c(const CharT *const s) noexcept
5132 return strlen_c_r(s, 0UL);
5135 static_assert(strlen_c("") == 0UL, "");
5136 static_assert(strlen_c("1") == 1UL, "");
5137 static_assert(strlen_c("example") == 7UL, "");
5138 static_assert(strlen_c("another\0example") == 7UL, "");
5142 namespace test_rvalue_references
5148 static constexpr int value = N;
5151 answer<1> f(int&) { return answer<1>(); }
5152 answer<2> f(const int&) { return answer<2>(); }
5153 answer<3> f(int&&) { return answer<3>(); }
5160 static_assert(decltype(f(i))::value == 1, "");
5161 static_assert(decltype(f(c))::value == 2, "");
5162 static_assert(decltype(f(0))::value == 3, "");
5167 namespace test_uniform_initialization
5172 static const int zero {};
5173 static const int one {1};
5176 static_assert(test::zero == 0, "");
5177 static_assert(test::one == 1, "");
5181 namespace test_lambdas
5187 auto lambda1 = [](){};
5188 auto lambda2 = lambda1;
5196 auto a = [](int i, int j){ return i + j; }(1, 2);
5197 auto b = []() -> int { return '0'; }();
5198 auto c = [=](){ return a + b; }();
5199 auto d = [&](){ return c; }();
5200 auto e = [a, &b](int x) mutable {
5201 const auto identity = [](int y){ return y; };
5202 for (auto i = 0; i < a; ++i)
5204 return x + identity(a + b);
5206 return a + b + c + d + e;
5212 const auto nullary = [](){ return 0; };
5213 const auto unary = [](int x){ return x; };
5214 using nullary_t = decltype(nullary);
5215 using unary_t = decltype(unary);
5216 const auto higher1st = [](nullary_t f){ return f(); };
5217 const auto higher2nd = [unary](nullary_t f1){
5218 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5220 return higher1st(nullary) + higher2nd(nullary)(unary);
5225 namespace test_variadic_templates
5231 template <int N0, int... N1toN>
5232 struct sum<N0, N1toN...>
5234 static constexpr auto value = N0 + sum<N1toN...>::value;
5240 static constexpr auto value = 0;
5243 static_assert(sum<>::value == 0, "");
5244 static_assert(sum<1>::value == 1, "");
5245 static_assert(sum<23>::value == 23, "");
5246 static_assert(sum<1, 2>::value == 3, "");
5247 static_assert(sum<5, 5, 11>::value == 21, "");
5248 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5252 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5253 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5255 namespace test_template_alias_sfinae
5260 template<typename T>
5261 using member = typename T::member_type;
5263 template<typename T>
5266 template<typename T>
5267 void func(member<T>*) {}
5271 void test() { func<foo>(0); }
5275 } // namespace cxx11
5277 #endif // __cplusplus >= 201103L
5282 if ac_fn_cxx_try_compile
"$LINENO"; then :
5283 ax_cv_cxx_compile_cxx11
=yes
5285 ax_cv_cxx_compile_cxx11
=no
5287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5290 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5291 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5295 if test x
$ac_success = xno
; then
5296 for alternative
in ${ax_cxx_compile_alternatives}; do
5297 switch
="-std=gnu++${alternative}"
5298 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5300 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5301 if eval \
${$cachevar+:} false
; then :
5302 $as_echo_n "(cached) " >&6
5306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5310 // If the compiler admits that it is not ready for C++11, why torture it?
5311 // Hopefully, this will speed up the test.
5315 #error "This is not a C++ compiler"
5317 #elif __cplusplus < 201103L
5319 #error "This is not a C++11 compiler"
5326 namespace test_static_assert
5329 template <typename T>
5332 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5337 namespace test_final_override
5345 struct Derived : public Base
5347 virtual void f() override {}
5352 namespace test_double_right_angle_brackets
5355 template < typename T >
5358 typedef check<void> single_type;
5359 typedef check<check<void>> double_type;
5360 typedef check<check<check<void>>> triple_type;
5361 typedef check<check<check<check<void>>>> quadruple_type;
5365 namespace test_decltype
5378 namespace test_type_deduction
5381 template < typename T1, typename T2 >
5384 static const bool value = false;
5387 template < typename T >
5388 struct is_same<T, T>
5390 static const bool value = true;
5393 template < typename T1, typename T2 >
5395 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5401 test(const int c, volatile int v)
5403 static_assert(is_same<int, decltype(0)>::value == true, "");
5404 static_assert(is_same<int, decltype(c)>::value == false, "");
5405 static_assert(is_same<int, decltype(v)>::value == false, "");
5408 auto sumi = ac + av + 'x';
5409 auto sumf = ac + av + 1.0;
5410 static_assert(is_same<int, decltype(ac)>::value == true, "");
5411 static_assert(is_same<int, decltype(av)>::value == true, "");
5412 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5413 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5414 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5415 return (sumf > 0.0) ? sumi : add(c, v);
5420 namespace test_noexcept
5423 int f() { return 0; }
5424 int g() noexcept { return 0; }
5426 static_assert(noexcept(f()) == false, "");
5427 static_assert(noexcept(g()) == true, "");
5431 namespace test_constexpr
5434 template < typename CharT >
5435 unsigned long constexpr
5436 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5438 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5441 template < typename CharT >
5442 unsigned long constexpr
5443 strlen_c(const CharT *const s) noexcept
5445 return strlen_c_r(s, 0UL);
5448 static_assert(strlen_c("") == 0UL, "");
5449 static_assert(strlen_c("1") == 1UL, "");
5450 static_assert(strlen_c("example") == 7UL, "");
5451 static_assert(strlen_c("another\0example") == 7UL, "");
5455 namespace test_rvalue_references
5461 static constexpr int value = N;
5464 answer<1> f(int&) { return answer<1>(); }
5465 answer<2> f(const int&) { return answer<2>(); }
5466 answer<3> f(int&&) { return answer<3>(); }
5473 static_assert(decltype(f(i))::value == 1, "");
5474 static_assert(decltype(f(c))::value == 2, "");
5475 static_assert(decltype(f(0))::value == 3, "");
5480 namespace test_uniform_initialization
5485 static const int zero {};
5486 static const int one {1};
5489 static_assert(test::zero == 0, "");
5490 static_assert(test::one == 1, "");
5494 namespace test_lambdas
5500 auto lambda1 = [](){};
5501 auto lambda2 = lambda1;
5509 auto a = [](int i, int j){ return i + j; }(1, 2);
5510 auto b = []() -> int { return '0'; }();
5511 auto c = [=](){ return a + b; }();
5512 auto d = [&](){ return c; }();
5513 auto e = [a, &b](int x) mutable {
5514 const auto identity = [](int y){ return y; };
5515 for (auto i = 0; i < a; ++i)
5517 return x + identity(a + b);
5519 return a + b + c + d + e;
5525 const auto nullary = [](){ return 0; };
5526 const auto unary = [](int x){ return x; };
5527 using nullary_t = decltype(nullary);
5528 using unary_t = decltype(unary);
5529 const auto higher1st = [](nullary_t f){ return f(); };
5530 const auto higher2nd = [unary](nullary_t f1){
5531 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5533 return higher1st(nullary) + higher2nd(nullary)(unary);
5538 namespace test_variadic_templates
5544 template <int N0, int... N1toN>
5545 struct sum<N0, N1toN...>
5547 static constexpr auto value = N0 + sum<N1toN...>::value;
5553 static constexpr auto value = 0;
5556 static_assert(sum<>::value == 0, "");
5557 static_assert(sum<1>::value == 1, "");
5558 static_assert(sum<23>::value == 23, "");
5559 static_assert(sum<1, 2>::value == 3, "");
5560 static_assert(sum<5, 5, 11>::value == 21, "");
5561 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5565 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5566 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5568 namespace test_template_alias_sfinae
5573 template<typename T>
5574 using member = typename T::member_type;
5576 template<typename T>
5579 template<typename T>
5580 void func(member<T>*) {}
5584 void test() { func<foo>(0); }
5588 } // namespace cxx11
5590 #endif // __cplusplus >= 201103L
5595 if ac_fn_cxx_try_compile
"$LINENO"; then :
5600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5603 eval ac_res
=\$
$cachevar
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5605 $as_echo "$ac_res" >&6; }
5606 if eval test x\$
$cachevar = xyes
; then
5607 CXX_DIALECT
="$switch"
5614 if test x
$ac_success = xno
; then
5615 for alternative
in ${ax_cxx_compile_alternatives}; do
5616 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5617 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5619 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5620 if eval \${$cachevar+:} false; then :
5621 $as_echo_n "(cached
) " >&6
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5629 // If the compiler admits that it is not ready for C++11, why torture it?
5630 // Hopefully, this will speed up the test.
5634 #error "This is not a C
++ compiler
"
5636 #elif __cplusplus < 201103L
5638 #error "This is not a C
++11 compiler
"
5645 namespace test_static_assert
5648 template <typename T>
5651 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5656 namespace test_final_override
5664 struct Derived : public Base
5666 virtual void f() override {}
5671 namespace test_double_right_angle_brackets
5674 template < typename T >
5677 typedef check<void> single_type;
5678 typedef check<check<void>> double_type;
5679 typedef check<check<check<void>>> triple_type;
5680 typedef check<check<check<check<void>>>> quadruple_type;
5684 namespace test_decltype
5697 namespace test_type_deduction
5700 template < typename T1, typename T2 >
5703 static const bool value = false;
5706 template < typename T >
5707 struct is_same<T, T>
5709 static const bool value = true;
5712 template < typename T1, typename T2 >
5714 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5720 test(const int c, volatile int v)
5722 static_assert(is_same<int, decltype(0)>::value == true, "");
5723 static_assert(is_same<int, decltype(c)>::value == false, "");
5724 static_assert(is_same<int, decltype(v)>::value == false, "");
5727 auto sumi = ac + av + 'x';
5728 auto sumf = ac + av + 1.0;
5729 static_assert(is_same<int, decltype(ac)>::value == true, "");
5730 static_assert(is_same<int, decltype(av)>::value == true, "");
5731 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5732 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5733 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5734 return (sumf > 0.0) ? sumi : add(c, v);
5739 namespace test_noexcept
5742 int f() { return 0; }
5743 int g() noexcept { return 0; }
5745 static_assert(noexcept(f()) == false, "");
5746 static_assert(noexcept(g()) == true, "");
5750 namespace test_constexpr
5753 template < typename CharT >
5754 unsigned long constexpr
5755 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5757 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5760 template < typename CharT >
5761 unsigned long constexpr
5762 strlen_c(const CharT *const s) noexcept
5764 return strlen_c_r(s, 0UL);
5767 static_assert(strlen_c("") == 0UL, "");
5768 static_assert(strlen_c("1") == 1UL, "");
5769 static_assert(strlen_c("example
") == 7UL, "");
5770 static_assert(strlen_c("another\
0example
") == 7UL, "");
5774 namespace test_rvalue_references
5780 static constexpr int value = N;
5783 answer<1> f(int&) { return answer<1>(); }
5784 answer<2> f(const int&) { return answer<2>(); }
5785 answer<3> f(int&&) { return answer<3>(); }
5792 static_assert(decltype(f(i))::value == 1, "");
5793 static_assert(decltype(f(c))::value == 2, "");
5794 static_assert(decltype(f(0))::value == 3, "");
5799 namespace test_uniform_initialization
5804 static const int zero {};
5805 static const int one {1};
5808 static_assert(test::zero == 0, "");
5809 static_assert(test::one == 1, "");
5813 namespace test_lambdas
5819 auto lambda1 = [](){};
5820 auto lambda2 = lambda1;
5828 auto a = [](int i, int j){ return i + j; }(1, 2);
5829 auto b = []() -> int { return '0'; }();
5830 auto c = [=](){ return a + b; }();
5831 auto d = [&](){ return c; }();
5832 auto e = [a, &b](int x) mutable {
5833 const auto identity = [](int y){ return y; };
5834 for (auto i = 0; i < a; ++i)
5836 return x + identity(a + b);
5838 return a + b + c + d + e;
5844 const auto nullary = [](){ return 0; };
5845 const auto unary = [](int x){ return x; };
5846 using nullary_t = decltype(nullary);
5847 using unary_t = decltype(unary);
5848 const auto higher1st = [](nullary_t f){ return f(); };
5849 const auto higher2nd = [unary](nullary_t f1){
5850 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5852 return higher1st(nullary) + higher2nd(nullary)(unary);
5857 namespace test_variadic_templates
5863 template <int N0, int... N1toN>
5864 struct sum<N0, N1toN...>
5866 static constexpr auto value = N0 + sum<N1toN...>::value;
5872 static constexpr auto value = 0;
5875 static_assert(sum<>::value == 0, "");
5876 static_assert(sum<1>::value == 1, "");
5877 static_assert(sum<23>::value == 23, "");
5878 static_assert(sum<1, 2>::value == 3, "");
5879 static_assert(sum<5, 5, 11>::value == 21, "");
5880 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5884 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5885 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5887 namespace test_template_alias_sfinae
5892 template<typename T>
5893 using member = typename T::member_type;
5895 template<typename T>
5898 template<typename T>
5899 void func(member<T>*) {}
5903 void test() { func<foo>(0); }
5907 } // namespace cxx11
5909 #endif // __cplusplus >= 201103L
5914 if ac_fn_cxx_try_compile "$LINENO"; then :
5919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 eval ac_res=\$$cachevar
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5924 $as_echo "$ac_res" >&6; }
5925 if eval test x\$$cachevar = xyes; then
5926 CXX_DIALECT="$switch"
5931 if test x$ac_success = xyes; then
5937 ac_cpp='$CPP $CPPFLAGS'
5938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5942 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5943 if test x$ac_success = xno; then
5944 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
5947 if test x$ac_success = xno; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
5950 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
5954 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5962 $as_echo_n "checking for ANSI C header files... " >&6; }
5963 if ${ac_cv_header_stdc+:} false
; then :
5964 $as_echo_n "(cached) " >&6
5966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5981 if ac_fn_c_try_compile
"$LINENO"; then :
5982 ac_cv_header_stdc
=yes
5984 ac_cv_header_stdc
=no
5986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5988 if test $ac_cv_header_stdc = yes; then
5989 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5996 $EGREP "memchr" >/dev
/null
2>&1; then :
5999 ac_cv_header_stdc
=no
6005 if test $ac_cv_header_stdc = yes; then
6006 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 $EGREP "free" >/dev
/null
2>&1; then :
6016 ac_cv_header_stdc
=no
6022 if test $ac_cv_header_stdc = yes; then
6023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6024 if test "$cross_compiling" = yes; then :
6027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6031 #if ((' ' & 0x0FF) == 0x020)
6032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6035 # define ISLOWER(c) \
6036 (('a' <= (c) && (c) <= 'i') \
6037 || ('j' <= (c) && (c) <= 'r') \
6038 || ('s' <= (c) && (c) <= 'z'))
6039 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6047 for (i = 0; i < 256; i++)
6048 if (XOR (islower (i), ISLOWER (i))
6049 || toupper (i) != TOUPPER (i))
6054 if ac_fn_c_try_run
"$LINENO"; then :
6057 ac_cv_header_stdc
=no
6059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6066 $as_echo "$ac_cv_header_stdc" >&6; }
6067 if test $ac_cv_header_stdc = yes; then
6069 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6074 # Set the 'development' global.
6075 .
$srcdir/..
/bfd
/development.sh
6078 # Check whether we will enable the inclusion of unit tests when
6081 # The default value of this option changes depending whether we're on
6082 # development mode (in which case it's "true") or not (in which case
6084 # Check whether --enable-unit-tests was given.
6085 if test "${enable_unit_tests+set}" = set; then :
6086 enableval
=$enable_unit_tests; case "${enableval}" in
6087 yes) enable_unittests
=true
;;
6088 no
) enable_unittests
=false
;;
6089 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
6092 enable_unittests
=$development
6096 if $enable_unittests; then
6098 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
6101 srv_selftest_objs
="gdbsupport/selftest.o"
6106 case ${build_alias} in
6107 "") build_noncanonical
=${build} ;;
6108 *) build_noncanonical
=${build_alias} ;;
6111 case ${host_alias} in
6112 "") host_noncanonical
=${build_noncanonical} ;;
6113 *) host_noncanonical
=${host_alias} ;;
6116 case ${target_alias} in
6117 "") target_noncanonical
=${host_noncanonical} ;;
6118 *) target_noncanonical
=${target_alias} ;;
6126 # Dependency checking.
6127 rm -rf .tst
2>/dev
/null
6128 mkdir .tst
2>/dev
/null
6129 if test -d .tst
; then
6134 rmdir .tst
2>/dev
/null
6136 DEPDIR
="${am__leading_dot}deps"
6138 ac_config_commands
="$ac_config_commands depdir"
6142 # Create sub-directories for objects and dependencies.
6143 CONFIG_SRC_SUBDIR
="arch gdbsupport nat target"
6146 ac_config_commands
="$ac_config_commands gdbdepdir"
6149 depcc
="$CC" am_compiler_list
=
6151 am_depcomp
=$ac_aux_dir/depcomp
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6153 $as_echo_n "checking dependency style of $depcc... " >&6; }
6154 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6155 $as_echo_n "(cached) " >&6
6157 if test -f "$am_depcomp"; then
6158 # We make a subdir and do the tests there. Otherwise we can end up
6159 # making bogus files that we don't know about and never remove. For
6160 # instance it was reported that on HP-UX the gcc test will end up
6161 # making a dummy file named `D' -- because `-MD' means `put the output
6164 # Copy depcomp to subdir because otherwise we won't find it if we're
6165 # using a relative directory.
6166 cp "$am_depcomp" conftest.dir
6168 # We will build objects and dependencies in a subdirectory because
6169 # it helps to detect inapplicable dependency modes. For instance
6170 # both Tru64's cc and ICC support -MD to output dependencies as a
6171 # side effect of compilation, but ICC will put the dependencies in
6172 # the current directory while Tru64 will put them in the object
6176 am_cv_CC_dependencies_compiler_type
=none
6177 if test "$am_compiler_list" = ""; then
6178 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6180 for depmode
in $am_compiler_list; do
6181 if test $depmode = none
; then break; fi
6183 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6184 # Setup a source with many dependencies, because some compilers
6185 # like to wrap large dependency lists on column 80 (with \), and
6186 # we should not choose a depcomp mode which is confused by this.
6188 # We need to recreate these files for each test, as the compiler may
6189 # overwrite some of them when testing with obscure command lines.
6190 # This happens at least with the AIX C compiler.
6192 for i
in 1 2 3 4 5 6; do
6193 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6195 # Solaris 8's {/usr,}/bin/sh.
6196 touch sub
/conftst
$i.h
6198 echo "include sub/conftest.Po" > confmf
6200 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6201 # mode. It turns out that the SunPro C++ compiler does not properly
6202 # handle `-M -o', and we need to detect this.
6203 depcmd
="depmode=$depmode \
6204 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6205 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6206 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6207 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6208 if env
$depcmd > conftest.err
2>&1 &&
6209 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6210 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6211 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6212 # icc doesn't choke on unknown options, it will just issue warnings
6213 # or remarks (even with -Werror). So we grep stderr for any message
6214 # that says an option was ignored or not supported.
6215 # When given -MP, icc 7.0 and 7.1 complain thusly:
6216 # icc: Command line warning: ignoring option '-M'; no argument required
6217 # The diagnosis changed in icc 8.0:
6218 # icc: Command line remark: option '-MP' not supported
6219 if (grep 'ignoring option' conftest.err ||
6220 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6221 am_cv_CC_dependencies_compiler_type
=$depmode
6222 $as_echo "$as_me:$LINENO: success" >&5
6226 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6227 sed -e 's/^/| /' < conftest.err
>&5
6233 am_cv_CC_dependencies_compiler_type
=none
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6238 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6239 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6240 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6241 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6246 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
6248 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6249 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6250 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6251 cat >>confdefs.h
<<_ACEOF
6252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6259 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6260 if test "x$ac_cv_type_pid_t" = xyes
; then :
6264 cat >>confdefs.h
<<_ACEOF
6270 for ac_header
in vfork.h
6272 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6273 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6274 cat >>confdefs.h
<<_ACEOF
6275 #define HAVE_VFORK_H 1
6282 for ac_func
in fork vfork
6284 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6285 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6286 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6287 cat >>confdefs.h
<<_ACEOF
6288 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6294 if test "x$ac_cv_func_fork" = xyes
; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6296 $as_echo_n "checking for working fork... " >&6; }
6297 if ${ac_cv_func_fork_works+:} false
; then :
6298 $as_echo_n "(cached) " >&6
6300 if test "$cross_compiling" = yes; then :
6301 ac_cv_func_fork_works
=cross
6303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305 $ac_includes_default
6310 /* By Ruediger Kuhlmann. */
6317 if ac_fn_c_try_run
"$LINENO"; then :
6318 ac_cv_func_fork_works
=yes
6320 ac_cv_func_fork_works
=no
6322 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6323 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6328 $as_echo "$ac_cv_func_fork_works" >&6; }
6331 ac_cv_func_fork_works
=$ac_cv_func_fork
6333 if test "x$ac_cv_func_fork_works" = xcross
; then
6335 *-*-amigaos* |
*-*-msdosdjgpp*)
6336 # Override, as these systems have only a dummy fork() stub
6337 ac_cv_func_fork_works
=no
6340 ac_cv_func_fork_works
=yes
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6344 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6346 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6347 if test "x$ac_cv_func_vfork" = xyes
; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6349 $as_echo_n "checking for working vfork... " >&6; }
6350 if ${ac_cv_func_vfork_works+:} false
; then :
6351 $as_echo_n "(cached) " >&6
6353 if test "$cross_compiling" = yes; then :
6354 ac_cv_func_vfork_works
=cross
6356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 /* Thanks to Paul Eggert for this test. */
6359 $ac_includes_default
6360 #include <sys/wait.h>
6364 /* On some sparc systems, changes by the child to local and incoming
6365 argument registers are propagated back to the parent. The compiler
6366 is told about this with #include <vfork.h>, but some compilers
6367 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6368 static variable whose address is put into a register that is
6369 clobbered by the vfork. */
6372 sparc_address_test (int arg)
6374 sparc_address_test (arg) int arg;
6395 pid_t parent = getpid ();
6398 sparc_address_test (0);
6403 /* Here is another test for sparc vfork register problems. This
6404 test uses lots of local variables, at least as many local
6405 variables as main has allocated so far including compiler
6406 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6407 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6408 reuse the register of parent for one of the local variables,
6409 since it will think that parent can't possibly be used any more
6410 in this routine. Assigning to the local variable will thus
6411 munge parent in the parent process. */
6413 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6414 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6415 /* Convince the compiler that p..p7 are live; otherwise, it might
6416 use the same hardware register for all 8 local variables. */
6417 if (p != p1 || p != p2 || p != p3 || p != p4
6418 || p != p5 || p != p6 || p != p7)
6421 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6422 from child file descriptors. If the child closes a descriptor
6423 before it execs or exits, this munges the parent's descriptor
6424 as well. Test for this by closing stdout in the child. */
6425 _exit(close(fileno(stdout)) != 0);
6430 while (wait(&status) != child)
6433 /* Was there some problem with vforking? */
6436 /* Did the child fail? (This shouldn't happen.) */
6439 /* Did the vfork/compiler bug occur? */
6440 || parent != getpid()
6442 /* Did the file descriptor bug occur? */
6443 || fstat(fileno(stdout), &st) != 0
6448 if ac_fn_c_try_run
"$LINENO"; then :
6449 ac_cv_func_vfork_works
=yes
6451 ac_cv_func_vfork_works
=no
6453 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6454 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6459 $as_echo "$ac_cv_func_vfork_works" >&6; }
6462 if test "x$ac_cv_func_fork_works" = xcross
; then
6463 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6465 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6468 if test "x$ac_cv_func_vfork_works" = xyes
; then
6470 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6474 $as_echo "#define vfork fork" >>confdefs.h
6477 if test "x$ac_cv_func_fork_works" = xyes
; then
6479 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6483 for ac_func
in pread pwrite pread64
6485 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6486 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6487 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6488 cat >>confdefs.h
<<_ACEOF
6489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6496 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6497 if test "x$ac_cv_type_size_t" = xyes
; then :
6501 cat >>confdefs.h
<<_ACEOF
6502 #define size_t unsigned int
6510 for ac_header
in $ac_header_list
6512 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6513 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6515 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6516 cat >>confdefs.h
<<_ACEOF
6517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6531 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6532 if ${ac_cv_path_SED+:} false
; then :
6533 $as_echo_n "(cached) " >&6
6535 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6536 for ac_i
in 1 2 3 4 5 6 7; do
6537 ac_script
="$ac_script$as_nl$ac_script"
6539 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
6540 { ac_script
=; unset ac_script
;}
6541 if test -z "$SED"; then
6542 ac_path_SED_found
=false
6543 # Loop through the user's path and test for each of PROGNAME-LIST
6544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6548 test -z "$as_dir" && as_dir
=.
6549 for ac_prog
in sed gsed
; do
6550 for ac_exec_ext
in '' $ac_executable_extensions; do
6551 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6552 as_fn_executable_p
"$ac_path_SED" ||
continue
6553 # Check for GNU ac_path_SED and select it if it is found.
6554 # Check for GNU $ac_path_SED
6555 case `"$ac_path_SED" --version 2>&1` in
6557 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6560 $as_echo_n 0123456789 >"conftest.in"
6563 cat "conftest.in" "conftest.in" >"conftest.tmp"
6564 mv "conftest.tmp" "conftest.in"
6565 cp "conftest.in" "conftest.nl"
6566 $as_echo '' >> "conftest.nl"
6567 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6568 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6569 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6570 if test $ac_count -gt ${ac_path_SED_max-0}; then
6571 # Best one so far, save it but keep looking for a better one
6572 ac_cv_path_SED
="$ac_path_SED"
6573 ac_path_SED_max
=$ac_count
6575 # 10*(2^10) chars as input seems more than enough
6576 test $ac_count -gt 10 && break
6578 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6581 $ac_path_SED_found && break 3
6586 if test -z "$ac_cv_path_SED"; then
6587 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6595 $as_echo "$ac_cv_path_SED" >&6; }
6596 SED
="$ac_cv_path_SED"
6600 if test "X$prefix" = "XNONE"; then
6601 acl_final_prefix
="$ac_default_prefix"
6603 acl_final_prefix
="$prefix"
6605 if test "X$exec_prefix" = "XNONE"; then
6606 acl_final_exec_prefix
='${prefix}'
6608 acl_final_exec_prefix
="$exec_prefix"
6610 acl_save_prefix
="$prefix"
6611 prefix
="$acl_final_prefix"
6612 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6613 prefix
="$acl_save_prefix"
6616 # Check whether --with-gnu-ld was given.
6617 if test "${with_gnu_ld+set}" = set; then :
6618 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6623 # Prepare PATH_SEPARATOR.
6624 # The user is always right.
6625 if test "${PATH_SEPARATOR+set}" != set; then
6626 echo "#! /bin/sh" >conf$$.sh
6627 echo "exit 0" >>conf$$.sh
6629 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6637 if test "$GCC" = yes; then
6638 # Check if gcc -print-prog-name=ld gives a path.
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6640 $as_echo_n "checking for ld used by GCC... " >&6; }
6643 # gcc leaves a trailing carriage return which upsets mingw
6644 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6646 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6649 # Accept absolute paths.
6650 [\\/]* |
[A-Za-z
]:[\\/]*)
6651 re_direlt
='/[^/][^/]*/\.\./'
6652 # Canonicalize the path of ld
6653 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6654 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6655 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6657 test -z "$LD" && LD
="$ac_prog"
6660 # If it fails, then pretend we aren't using GCC.
6664 # If it is relative, then search for the first ld in PATH.
6668 elif test "$with_gnu_ld" = yes; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6670 $as_echo_n "checking for GNU ld... " >&6; }
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6673 $as_echo_n "checking for non-GNU ld... " >&6; }
6675 if ${acl_cv_path_LD+:} false
; then :
6676 $as_echo_n "(cached) " >&6
6678 if test -z "$LD"; then
6679 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6680 for ac_dir
in $PATH; do
6681 test -z "$ac_dir" && ac_dir
=.
6682 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6683 acl_cv_path_LD
="$ac_dir/$ac_prog"
6684 # Check to see if the program is GNU ld. I'd rather use --version,
6685 # but apparently some GNU ld's only accept -v.
6686 # Break only if it was the GNU/non-GNU ld that we prefer.
6687 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6688 test "$with_gnu_ld" != no
&& break
6690 test "$with_gnu_ld" != yes && break
6696 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6700 LD
="$acl_cv_path_LD"
6701 if test -n "$LD"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6703 $as_echo "$LD" >&6; }
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6708 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6710 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6711 if ${acl_cv_prog_gnu_ld+:} false
; then :
6712 $as_echo_n "(cached) " >&6
6714 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6715 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6716 acl_cv_prog_gnu_ld
=yes
6718 acl_cv_prog_gnu_ld
=no
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6722 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6723 with_gnu_ld
=$acl_cv_prog_gnu_ld
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6728 $as_echo_n "checking for shared library run path origin... " >&6; }
6729 if ${acl_cv_rpath+:} false
; then :
6730 $as_echo_n "(cached) " >&6
6733 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6734 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6741 $as_echo "$acl_cv_rpath" >&6; }
6743 libext
="$acl_cv_libext"
6744 shlibext
="$acl_cv_shlibext"
6745 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6746 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6747 hardcode_direct
="$acl_cv_hardcode_direct"
6748 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6749 # Check whether --enable-rpath was given.
6750 if test "${enable_rpath+set}" = set; then :
6751 enableval
=$enable_rpath; :
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6759 $as_echo_n "checking for ANSI C header files... " >&6; }
6760 if ${ac_cv_header_stdc+:} false
; then :
6761 $as_echo_n "(cached) " >&6
6763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6778 if ac_fn_c_try_compile
"$LINENO"; then :
6779 ac_cv_header_stdc
=yes
6781 ac_cv_header_stdc
=no
6783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6785 if test $ac_cv_header_stdc = yes; then
6786 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6793 $EGREP "memchr" >/dev
/null
2>&1; then :
6796 ac_cv_header_stdc
=no
6802 if test $ac_cv_header_stdc = yes; then
6803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6810 $EGREP "free" >/dev
/null
2>&1; then :
6813 ac_cv_header_stdc
=no
6819 if test $ac_cv_header_stdc = yes; then
6820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6821 if test "$cross_compiling" = yes; then :
6824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6828 #if ((' ' & 0x0FF) == 0x020)
6829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6832 # define ISLOWER(c) \
6833 (('a' <= (c) && (c) <= 'i') \
6834 || ('j' <= (c) && (c) <= 'r') \
6835 || ('s' <= (c) && (c) <= 'z'))
6836 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6839 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6844 for (i = 0; i < 256; i++)
6845 if (XOR (islower (i), ISLOWER (i))
6846 || toupper (i) != TOUPPER (i))
6851 if ac_fn_c_try_run
"$LINENO"; then :
6854 ac_cv_header_stdc
=no
6856 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6857 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6863 $as_echo "$ac_cv_header_stdc" >&6; }
6864 if test $ac_cv_header_stdc = yes; then
6866 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6870 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6871 # for constant arguments. Useless!
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6873 $as_echo_n "checking for working alloca.h... " >&6; }
6874 if ${ac_cv_working_alloca_h+:} false
; then :
6875 $as_echo_n "(cached) " >&6
6877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6883 char *p = (char *) alloca (2 * sizeof (int));
6889 if ac_fn_c_try_link
"$LINENO"; then :
6890 ac_cv_working_alloca_h
=yes
6892 ac_cv_working_alloca_h
=no
6894 rm -f core conftest.err conftest.
$ac_objext \
6895 conftest
$ac_exeext conftest.
$ac_ext
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6898 $as_echo "$ac_cv_working_alloca_h" >&6; }
6899 if test $ac_cv_working_alloca_h = yes; then
6901 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6906 $as_echo_n "checking for alloca... " >&6; }
6907 if ${ac_cv_func_alloca_works+:} false
; then :
6908 $as_echo_n "(cached) " >&6
6910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6913 # define alloca __builtin_alloca
6916 # include <malloc.h>
6917 # define alloca _alloca
6919 # ifdef HAVE_ALLOCA_H
6920 # include <alloca.h>
6925 # ifndef alloca /* predefined by HP cc +Olibcalls */
6926 void *alloca (size_t);
6936 char *p = (char *) alloca (1);
6942 if ac_fn_c_try_link
"$LINENO"; then :
6943 ac_cv_func_alloca_works
=yes
6945 ac_cv_func_alloca_works
=no
6947 rm -f core conftest.err conftest.
$ac_objext \
6948 conftest
$ac_exeext conftest.
$ac_ext
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6951 $as_echo "$ac_cv_func_alloca_works" >&6; }
6953 if test $ac_cv_func_alloca_works = yes; then
6955 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6958 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6959 # that cause trouble. Some versions do not even contain alloca or
6960 # contain a buggy version. If you still want to use their alloca,
6961 # use ar to extract alloca.o from them instead of compiling alloca.c.
6963 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6965 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6969 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6970 if ${ac_cv_os_cray+:} false
; then :
6971 $as_echo_n "(cached) " >&6
6973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975 #if defined CRAY && ! defined CRAY2
6982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6983 $EGREP "webecray" >/dev
/null
2>&1; then :
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6992 $as_echo "$ac_cv_os_cray" >&6; }
6993 if test $ac_cv_os_cray = yes; then
6994 for ac_func
in _getb67 GETB67 getb67
; do
6995 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6996 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6997 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6999 cat >>confdefs.h
<<_ACEOF
7000 #define CRAY_STACKSEG_END $ac_func
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7010 $as_echo_n "checking stack direction for C alloca... " >&6; }
7011 if ${ac_cv_c_stack_direction+:} false
; then :
7012 $as_echo_n "(cached) " >&6
7014 if test "$cross_compiling" = yes; then :
7015 ac_cv_c_stack_direction
=0
7017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019 $ac_includes_default
7021 find_stack_direction (int *addr, int depth)
7026 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7027 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7032 main (int argc, char **argv)
7034 return find_stack_direction (0, argc + !argv + 20) < 0;
7037 if ac_fn_c_try_run
"$LINENO"; then :
7038 ac_cv_c_stack_direction
=1
7040 ac_cv_c_stack_direction
=-1
7042 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7043 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7048 $as_echo "$ac_cv_c_stack_direction" >&6; }
7049 cat >>confdefs.h
<<_ACEOF
7050 #define STACK_DIRECTION $ac_cv_c_stack_direction
7061 $as_echo "#define USE_WIN32API 1" >>confdefs.h
7063 WIN32APILIBS
="-lws2_32"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7069 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7070 if ${am_cv_langinfo_codeset+:} false
; then :
7071 $as_echo_n "(cached) " >&6
7073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7075 #include <langinfo.h>
7079 char* cs = nl_langinfo(CODESET);
7084 if ac_fn_c_try_link
"$LINENO"; then :
7085 am_cv_langinfo_codeset
=yes
7087 am_cv_langinfo_codeset
=no
7089 rm -f core conftest.err conftest.
$ac_objext \
7090 conftest
$ac_exeext conftest.
$ac_ext
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7094 $as_echo "$am_cv_langinfo_codeset" >&6; }
7095 if test $am_cv_langinfo_codeset = yes; then
7097 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7102 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
7104 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7105 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7106 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7107 cat >>confdefs.h
<<_ACEOF
7108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7117 for ac_func
in getpagesize
7119 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7120 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7121 cat >>confdefs.h
<<_ACEOF
7122 #define HAVE_GETPAGESIZE 1
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7129 $as_echo_n "checking for working mmap... " >&6; }
7130 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7131 $as_echo_n "(cached) " >&6
7133 if test "$cross_compiling" = yes; then :
7134 ac_cv_func_mmap_fixed_mapped
=no
7136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 $ac_includes_default
7139 /* malloc might have been renamed as rpl_malloc. */
7142 /* Thanks to Mike Haertel and Jim Avera for this test.
7143 Here is a matrix of mmap possibilities:
7144 mmap private not fixed
7145 mmap private fixed at somewhere currently unmapped
7146 mmap private fixed at somewhere already mapped
7147 mmap shared not fixed
7148 mmap shared fixed at somewhere currently unmapped
7149 mmap shared fixed at somewhere already mapped
7150 For private mappings, we should verify that changes cannot be read()
7151 back from the file, nor mmap's back from the file at a different
7152 address. (There have been systems where private was not correctly
7153 implemented like the infamous i386 svr4.0, and systems where the
7154 VM page cache was not coherent with the file system buffer cache
7155 like early versions of FreeBSD and possibly contemporary NetBSD.)
7156 For shared mappings, we should conversely verify that changes get
7157 propagated back to all the places they're supposed to be.
7159 Grep wants private fixed already mapped.
7160 The main things grep needs to know about mmap are:
7161 * does it exist and is it safe to write into the mmap'd area
7162 * how to use it (BSD variants) */
7165 #include <sys/mman.h>
7167 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7171 /* This mess was copied from the GNU getpagesize.h. */
7172 #ifndef HAVE_GETPAGESIZE
7173 # ifdef _SC_PAGESIZE
7174 # define getpagesize() sysconf(_SC_PAGESIZE)
7175 # else /* no _SC_PAGESIZE */
7176 # ifdef HAVE_SYS_PARAM_H
7177 # include <sys/param.h>
7178 # ifdef EXEC_PAGESIZE
7179 # define getpagesize() EXEC_PAGESIZE
7180 # else /* no EXEC_PAGESIZE */
7182 # define getpagesize() NBPG * CLSIZE
7185 # endif /* no CLSIZE */
7186 # else /* no NBPG */
7188 # define getpagesize() NBPC
7189 # else /* no NBPC */
7191 # define getpagesize() PAGESIZE
7192 # endif /* PAGESIZE */
7193 # endif /* no NBPC */
7194 # endif /* no NBPG */
7195 # endif /* no EXEC_PAGESIZE */
7196 # else /* no HAVE_SYS_PARAM_H */
7197 # define getpagesize() 8192 /* punt totally */
7198 # endif /* no HAVE_SYS_PARAM_H */
7199 # endif /* no _SC_PAGESIZE */
7201 #endif /* no HAVE_GETPAGESIZE */
7206 char *data, *data2, *data3;
7211 pagesize = getpagesize ();
7213 /* First, make a file with some known garbage in it. */
7214 data = (char *) malloc (pagesize);
7217 for (i = 0; i < pagesize; ++i)
7218 *(data + i) = rand ();
7220 fd = creat ("conftest.mmap", 0600);
7223 if (write (fd, data, pagesize) != pagesize)
7227 /* Next, check that the tail of a page is zero-filled. File must have
7228 non-zero length, otherwise we risk SIGBUS for entire page. */
7229 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7233 if (write (fd2, cdata2, 1) != 1)
7235 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7236 if (data2 == MAP_FAILED)
7238 for (i = 0; i < pagesize; ++i)
7242 if (munmap (data2, pagesize))
7245 /* Next, try to mmap the file at a fixed address which already has
7246 something else allocated at it. If we can, also make sure that
7247 we see the same garbage. */
7248 fd = open ("conftest.mmap", O_RDWR);
7251 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7252 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7254 for (i = 0; i < pagesize; ++i)
7255 if (*(data + i) != *(data2 + i))
7258 /* Finally, make sure that changes to the mapped area do not
7259 percolate back to the file as seen by read(). (This is a bug on
7260 some variants of i386 svr4.0.) */
7261 for (i = 0; i < pagesize; ++i)
7262 *(data2 + i) = *(data2 + i) + 1;
7263 data3 = (char *) malloc (pagesize);
7266 if (read (fd, data3, pagesize) != pagesize)
7268 for (i = 0; i < pagesize; ++i)
7269 if (*(data + i) != *(data3 + i))
7275 if ac_fn_c_try_run
"$LINENO"; then :
7276 ac_cv_func_mmap_fixed_mapped
=yes
7278 ac_cv_func_mmap_fixed_mapped
=no
7280 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7281 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7286 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7287 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7289 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7292 rm -f conftest.mmap conftest.txt
7294 for ac_header
in vfork.h
7296 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7297 if test "x$ac_cv_header_vfork_h" = xyes
; then :
7298 cat >>confdefs.h
<<_ACEOF
7299 #define HAVE_VFORK_H 1
7306 for ac_func
in fork vfork
7308 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7309 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7310 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7311 cat >>confdefs.h
<<_ACEOF
7312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7318 if test "x$ac_cv_func_fork" = xyes
; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7320 $as_echo_n "checking for working fork... " >&6; }
7321 if ${ac_cv_func_fork_works+:} false
; then :
7322 $as_echo_n "(cached) " >&6
7324 if test "$cross_compiling" = yes; then :
7325 ac_cv_func_fork_works
=cross
7327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 $ac_includes_default
7334 /* By Ruediger Kuhlmann. */
7341 if ac_fn_c_try_run
"$LINENO"; then :
7342 ac_cv_func_fork_works
=yes
7344 ac_cv_func_fork_works
=no
7346 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7347 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7352 $as_echo "$ac_cv_func_fork_works" >&6; }
7355 ac_cv_func_fork_works
=$ac_cv_func_fork
7357 if test "x$ac_cv_func_fork_works" = xcross
; then
7359 *-*-amigaos* |
*-*-msdosdjgpp*)
7360 # Override, as these systems have only a dummy fork() stub
7361 ac_cv_func_fork_works
=no
7364 ac_cv_func_fork_works
=yes
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7368 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7370 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7371 if test "x$ac_cv_func_vfork" = xyes
; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7373 $as_echo_n "checking for working vfork... " >&6; }
7374 if ${ac_cv_func_vfork_works+:} false
; then :
7375 $as_echo_n "(cached) " >&6
7377 if test "$cross_compiling" = yes; then :
7378 ac_cv_func_vfork_works
=cross
7380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7382 /* Thanks to Paul Eggert for this test. */
7383 $ac_includes_default
7384 #include <sys/wait.h>
7388 /* On some sparc systems, changes by the child to local and incoming
7389 argument registers are propagated back to the parent. The compiler
7390 is told about this with #include <vfork.h>, but some compilers
7391 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7392 static variable whose address is put into a register that is
7393 clobbered by the vfork. */
7396 sparc_address_test (int arg)
7398 sparc_address_test (arg) int arg;
7419 pid_t parent = getpid ();
7422 sparc_address_test (0);
7427 /* Here is another test for sparc vfork register problems. This
7428 test uses lots of local variables, at least as many local
7429 variables as main has allocated so far including compiler
7430 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7431 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7432 reuse the register of parent for one of the local variables,
7433 since it will think that parent can't possibly be used any more
7434 in this routine. Assigning to the local variable will thus
7435 munge parent in the parent process. */
7437 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7438 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7439 /* Convince the compiler that p..p7 are live; otherwise, it might
7440 use the same hardware register for all 8 local variables. */
7441 if (p != p1 || p != p2 || p != p3 || p != p4
7442 || p != p5 || p != p6 || p != p7)
7445 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7446 from child file descriptors. If the child closes a descriptor
7447 before it execs or exits, this munges the parent's descriptor
7448 as well. Test for this by closing stdout in the child. */
7449 _exit(close(fileno(stdout)) != 0);
7454 while (wait(&status) != child)
7457 /* Was there some problem with vforking? */
7460 /* Did the child fail? (This shouldn't happen.) */
7463 /* Did the vfork/compiler bug occur? */
7464 || parent != getpid()
7466 /* Did the file descriptor bug occur? */
7467 || fstat(fileno(stdout), &st) != 0
7472 if ac_fn_c_try_run
"$LINENO"; then :
7473 ac_cv_func_vfork_works
=yes
7475 ac_cv_func_vfork_works
=no
7477 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7478 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7483 $as_echo "$ac_cv_func_vfork_works" >&6; }
7486 if test "x$ac_cv_func_fork_works" = xcross
; then
7487 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7489 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7492 if test "x$ac_cv_func_vfork_works" = xyes
; then
7494 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7498 $as_echo "#define vfork fork" >>confdefs.h
7501 if test "x$ac_cv_func_fork_works" = xyes
; then
7503 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7507 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
7508 ptrace64 sbrk setns sigaltstack sigprocmask \
7509 setpgid setpgrp getrusage getauxval
7511 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7512 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7513 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7514 cat >>confdefs.h
<<_ACEOF
7515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7522 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7524 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
7530 cat >>confdefs.h
<<_ACEOF
7531 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7535 if test "$cross_compiling" = yes; then :
7536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7538 #include <sys/personality.h>
7543 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7544 # define ADDR_NO_RANDOMIZE 0x0040000
7546 /* Test the flag could be set and stays set. */
7547 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7548 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7554 if ac_fn_c_try_link
"$LINENO"; then :
7555 have_personality
=true
7557 have_personality
=false
7559 rm -f core conftest.err conftest.
$ac_objext \
7560 conftest
$ac_exeext conftest.
$ac_ext
7562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7564 #include <sys/personality.h>
7569 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7570 # define ADDR_NO_RANDOMIZE 0x0040000
7572 /* Test the flag could be set and stays set. */
7573 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7574 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7580 if ac_fn_c_try_run
"$LINENO"; then :
7581 have_personality
=true
7583 have_personality
=false
7585 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7586 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7589 if $have_personality
7592 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
7596 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
7597 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
7603 cat >>confdefs.h
<<_ACEOF
7604 #define HAVE_DECL_STRSTR $ac_have_decl
7608 # ----------------------- #
7609 # Checks for structures. #
7610 # ----------------------- #
7612 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7613 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
7615 cat >>confdefs.h
<<_ACEOF
7616 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7621 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7622 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
7624 cat >>confdefs.h
<<_ACEOF
7625 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7633 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
7634 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7635 $as_echo_n "(cached) " >&6
7637 ac_func_search_save_LIBS
=$LIBS
7638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7641 /* Override any GCC internal prototype to avoid an error.
7642 Use char because int might match the return type of a GCC
7643 builtin and then its argument prototype would still apply. */
7647 char kinfo_getfile ();
7651 return kinfo_getfile ();
7656 for ac_lib
in '' util util-freebsd
; do
7657 if test -z "$ac_lib"; then
7658 ac_res
="none required"
7661 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7663 if ac_fn_c_try_link
"$LINENO"; then :
7664 ac_cv_search_kinfo_getfile
=$ac_res
7666 rm -f core conftest.err conftest.
$ac_objext \
7668 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7672 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7675 ac_cv_search_kinfo_getfile
=no
7678 LIBS
=$ac_func_search_save_LIBS
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
7681 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
7682 ac_res
=$ac_cv_search_kinfo_getfile
7683 if test "$ac_res" != no
; then :
7684 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7686 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
7691 # Check for std::thread. This does not work on some platforms, like
7694 ac_cpp
='$CXXCPP $CPPFLAGS'
7695 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7696 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7697 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7704 ac_cpp
='$CPP $CPPFLAGS'
7705 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7711 # We used to check for pthread.h first, but this fails if pthread.h
7712 # requires special compiler flags (e.g. on Tru64 or Sequent).
7713 # It gets checked for in the link test anyway.
7715 # First of all, check if the user has set any of the PTHREAD_LIBS,
7716 # etcetera environment variables, and if threads linking works using
7718 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7719 ax_pthread_save_CC
="$CC"
7720 ax_pthread_save_CFLAGS
="$CFLAGS"
7721 ax_pthread_save_LIBS
="$LIBS"
7722 if test "x$PTHREAD_CC" != "x"; then :
7725 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7726 LIBS
="$PTHREAD_LIBS $LIBS"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7728 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7732 /* Override any GCC internal prototype to avoid an error.
7733 Use char because int might match the return type of a GCC
7734 builtin and then its argument prototype would still apply. */
7738 char pthread_join ();
7742 return pthread_join ();
7747 if ac_fn_c_try_link
"$LINENO"; then :
7750 rm -f core conftest.err conftest.
$ac_objext \
7751 conftest
$ac_exeext conftest.
$ac_ext
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7753 $as_echo "$ax_pthread_ok" >&6; }
7754 if test "x$ax_pthread_ok" = "xno"; then
7758 CC
="$ax_pthread_save_CC"
7759 CFLAGS
="$ax_pthread_save_CFLAGS"
7760 LIBS
="$ax_pthread_save_LIBS"
7763 # We must check for the threads library under a number of different
7764 # names; the ordering is very important because some systems
7765 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7766 # libraries is broken (non-POSIX).
7768 # Create a list of thread flags to try. Items starting with a "-" are
7769 # C compiler flags, and other items are library names, except for "none"
7770 # which indicates that we try without any flags at all, and "pthread-config"
7771 # which is a program returning the flags for the Pth emulation library.
7773 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7775 # The ordering *is* (sometimes) important. Some notes on the
7776 # individual items follow:
7778 # pthreads: AIX (must check this before -lpthread)
7779 # none: in case threads are in libc; should be tried before -Kthread and
7780 # other compiler flags to prevent continual compiler warnings
7781 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7782 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7783 # (Note: HP C rejects this with "bad form for `-t' option")
7784 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7785 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7786 # doesn't hurt to check since this sometimes defines pthreads and
7787 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7788 # is present but should not be used directly; and before -mthreads,
7789 # because the compiler interprets this as "-mt" + "-hreads")
7790 # -mthreads: Mingw32/gcc, Lynx/gcc
7791 # pthread: Linux, etcetera
7792 # --thread-safe: KAI C++
7793 # pthread-config: use pthread-config program (for GNU Pth library)
7799 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7800 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7802 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
7807 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7808 # multi-threading and also sets -lpthread."
7810 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
7815 # IBM z/OS requires a feature-test macro to be defined in order to
7816 # enable POSIX threads at all, so give the user a hint if this is
7817 # not set. (We don't define these ourselves, as they can affect
7818 # other portions of the system API in unpredictable ways.)
7820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7821 /* end confdefs.h. */
7823 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7824 AX_PTHREAD_ZOS_MISSING
7828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7829 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7831 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7839 # On Solaris (at least, for some versions), libc contains stubbed
7840 # (non-functional) versions of the pthreads routines, so link-based
7841 # tests will erroneously succeed. (N.B.: The stubs are missing
7842 # pthread_cleanup_push, or rather a function called by this macro,
7843 # so we could check for that, but who knows whether they'll stub
7844 # that too in a future libc.) So we'll check first for the
7845 # standard Solaris way of linking pthreads (-mt -lpthread).
7847 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
7851 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7853 if test "x$GCC" = "xyes"; then :
7854 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
7857 # The presence of a feature test macro requesting re-entrant function
7858 # definitions is, on some systems, a strong hint that pthreads support is
7862 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
7863 ax_pthread_check_macro
="_REENTRANT"
7867 ax_pthread_check_macro
="_THREAD_SAFE"
7871 ax_pthread_check_macro
="--"
7874 if test "x$ax_pthread_check_macro" = "x--"; then :
7875 ax_pthread_check_cond
=0
7877 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
7880 # Are we compiling with Clang?
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7883 $as_echo_n "checking whether $CC is Clang... " >&6; }
7884 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
7885 $as_echo_n "(cached) " >&6
7887 ax_cv_PTHREAD_CLANG
=no
7888 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7889 if test "x$GCC" = "xyes"; then
7890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7892 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7893 # if defined(__clang__) && defined(__llvm__)
7894 AX_PTHREAD_CC_IS_CLANG
7898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
7900 ax_cv_PTHREAD_CLANG
=yes
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7908 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
7909 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
7911 ax_pthread_clang_warning
=no
7913 # Clang needs special handling, because older versions handle the -pthread
7914 # option in a rather... idiosyncratic way
7916 if test "x$ax_pthread_clang" = "xyes"; then
7918 # Clang takes -pthread; it has never supported any other flag
7920 # (Note 1: This will need to be revisited if a system that Clang
7921 # supports has POSIX threads in a separate library. This tends not
7922 # to be the way of modern systems, but it's conceivable.)
7924 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7925 # to get POSIX threads support; the API is always present and
7926 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7927 # -pthread does define _REENTRANT, and while the Darwin headers
7928 # ignore this macro, third-party headers might not.)
7930 PTHREAD_CFLAGS
="-pthread"
7935 # However, older versions of Clang make a point of warning the user
7936 # that, in an invocation where only linking and no compilation is
7937 # taking place, the -pthread option has no effect ("argument unused
7938 # during compilation"). They expect -pthread to be passed in only
7939 # when source code is being compiled.
7941 # Problem is, this is at odds with the way Automake and most other
7942 # C build frameworks function, which is that the same flags used in
7943 # compilation (CFLAGS) are also used in linking. Many systems
7944 # supported by AX_PTHREAD require exactly this for POSIX threads
7945 # support, and in fact it is often not straightforward to specify a
7946 # flag that is used only in the compilation phase and not in
7947 # linking. Such a scenario is extremely rare in practice.
7949 # Even though use of the -pthread flag in linking would only print
7950 # a warning, this can be a nuisance for well-run software projects
7951 # that build with -Werror. So if the active version of Clang has
7952 # this misfeature, we search for an option to squash it.
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7955 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7956 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
7957 $as_echo_n "(cached) " >&6
7959 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
7960 # Create an alternate version of $ac_link that compiles and
7961 # links in two steps (.c -> .o, .o -> exe) instead of one
7962 # (.c -> exe), because the warning occurs only in the second
7964 ax_pthread_save_ac_link
="$ac_link"
7965 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7966 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
7967 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7968 ax_pthread_save_CFLAGS
="$CFLAGS"
7969 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
7970 if test "x$ax_pthread_try" = "xunknown"; then :
7973 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7974 ac_link
="$ax_pthread_save_ac_link"
7975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7977 int main(void){return 0;}
7979 if ac_fn_c_try_link
"$LINENO"; then :
7980 ac_link
="$ax_pthread_2step_ac_link"
7981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7983 int main(void){return 0;}
7985 if ac_fn_c_try_link
"$LINENO"; then :
7988 rm -f core conftest.err conftest.
$ac_objext \
7989 conftest
$ac_exeext conftest.
$ac_ext
7992 rm -f core conftest.err conftest.
$ac_objext \
7993 conftest
$ac_exeext conftest.
$ac_ext
7995 ac_link
="$ax_pthread_save_ac_link"
7996 CFLAGS
="$ax_pthread_save_CFLAGS"
7997 if test "x$ax_pthread_try" = "x"; then :
8000 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8004 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8006 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8008 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8011 fi # $ax_pthread_clang = yes
8013 if test "x$ax_pthread_ok" = "xno"; then
8014 for ax_pthread_try_flag
in $ax_pthread_flags; do
8016 case $ax_pthread_try_flag in
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8019 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8024 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8025 PTHREAD_CFLAGS
="-mt"
8026 PTHREAD_LIBS
="-lpthread"
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8031 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8032 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
8036 # Extract the first word of "pthread-config", so it can be a program name with args.
8037 set dummy pthread-config
; ac_word
=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
8041 $as_echo_n "(cached) " >&6
8043 if test -n "$ax_pthread_config"; then
8044 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
8046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir
=.
8051 for ac_exec_ext
in '' $ac_executable_extensions; do
8052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_ax_pthread_config
="yes"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
8064 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
8065 if test -n "$ax_pthread_config"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8067 $as_echo "$ax_pthread_config" >&6; }
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8074 if test "x$ax_pthread_config" = "xno"; then :
8077 PTHREAD_CFLAGS
="`pthread-config --cflags`"
8078 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8083 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8084 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
8088 ax_pthread_save_CFLAGS
="$CFLAGS"
8089 ax_pthread_save_LIBS
="$LIBS"
8090 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8091 LIBS
="$PTHREAD_LIBS $LIBS"
8093 # Check for various functions. We must include pthread.h,
8094 # since some functions may be macros. (On the Sequent, we
8095 # need a special flag -Kthread to make this header compile.)
8096 # We check for pthread_join because it is in -lpthread on IRIX
8097 # while pthread_create is in libc. We check for pthread_attr_init
8098 # due to DEC craziness with -lpthreads. We check for
8099 # pthread_cleanup_push because it is one of the few pthread
8100 # functions on Solaris that doesn't have a non-functional libc stub.
8101 # We try pthread_create on general principles.
8103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 #include <pthread.h>
8106 # if $ax_pthread_check_cond
8107 # error "$ax_pthread_check_macro must be defined"
8109 static void routine(void *a) { a = 0; }
8110 static void *start_routine(void *a) { return a; }
8114 pthread_t th; pthread_attr_t attr;
8115 pthread_create(&th, 0, start_routine, 0);
8116 pthread_join(th, 0);
8117 pthread_attr_init(&attr);
8118 pthread_cleanup_push(routine, 0);
8119 pthread_cleanup_pop(0) /* ; */
8124 if ac_fn_c_try_link
"$LINENO"; then :
8127 rm -f core conftest.err conftest.
$ac_objext \
8128 conftest
$ac_exeext conftest.
$ac_ext
8130 CFLAGS
="$ax_pthread_save_CFLAGS"
8131 LIBS
="$ax_pthread_save_LIBS"
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8134 $as_echo "$ax_pthread_ok" >&6; }
8135 if test "x$ax_pthread_ok" = "xyes"; then :
8144 # Various other checks:
8145 if test "x$ax_pthread_ok" = "xyes"; then
8146 ax_pthread_save_CFLAGS
="$CFLAGS"
8147 ax_pthread_save_LIBS
="$LIBS"
8148 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8149 LIBS
="$PTHREAD_LIBS $LIBS"
8151 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8153 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8154 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
8155 $as_echo_n "(cached) " >&6
8157 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
8158 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
8159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 #include <pthread.h>
8165 int attr = $ax_pthread_attr; return attr /* ; */
8170 if ac_fn_c_try_link
"$LINENO"; then :
8171 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
8173 rm -f core conftest.err conftest.
$ac_objext \
8174 conftest
$ac_exeext conftest.
$ac_ext
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8179 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8180 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8181 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8182 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8184 cat >>confdefs.h
<<_ACEOF
8185 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8188 ax_pthread_joinable_attr_defined
=yes
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8193 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8194 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
8195 $as_echo_n "(cached) " >&6
8197 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
8200 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8206 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8207 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8208 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8209 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8210 ax_pthread_special_flags_added
=yes
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8214 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8215 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
8216 $as_echo_n "(cached) " >&6
8218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 #include <pthread.h>
8224 int i = PTHREAD_PRIO_INHERIT;
8229 if ac_fn_c_try_link
"$LINENO"; then :
8230 ax_cv_PTHREAD_PRIO_INHERIT
=yes
8232 ax_cv_PTHREAD_PRIO_INHERIT
=no
8234 rm -f core conftest.err conftest.
$ac_objext \
8235 conftest
$ac_exeext conftest.
$ac_ext
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8239 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8240 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8241 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8243 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8245 ax_pthread_prio_inherit_defined
=yes
8249 CFLAGS
="$ax_pthread_save_CFLAGS"
8250 LIBS
="$ax_pthread_save_LIBS"
8252 # More AIX lossage: compile with *_r variant
8253 if test "x$GCC" != "xyes"; then
8257 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
8258 #handle absolute path differently from PATH based program lookup
8261 if as_fn_executable_p
${CC}_r
; then :
8262 PTHREAD_CC
="${CC}_r"
8265 for ac_prog
in ${CC}_r
8267 # Extract the first word of "$ac_prog", so it can be a program name with args.
8268 set dummy
$ac_prog; ac_word
=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
8272 $as_echo_n "(cached) " >&6
8274 if test -n "$PTHREAD_CC"; then
8275 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
8277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8281 test -z "$as_dir" && as_dir
=.
8282 for ac_exec_ext
in '' $ac_executable_extensions; do
8283 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8284 ac_cv_prog_PTHREAD_CC
="$ac_prog"
8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
8295 if test -n "$PTHREAD_CC"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8297 $as_echo "$PTHREAD_CC" >&6; }
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8304 test -n "$PTHREAD_CC" && break
8306 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8317 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8323 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8324 if test "x$ax_pthread_ok" = "xyes"; then
8332 ac_cpp
='$CXXCPP $CPPFLAGS'
8333 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8334 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8335 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8338 if test "$threads" = "yes"; then
8340 LIBS
="$PTHREAD_LIBS $LIBS"
8341 save_CXXFLAGS
="$CXXFLAGS"
8342 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
8344 $as_echo_n "checking for std::thread... " >&6; }
8345 if ${gdb_cv_cxx_std_thread+:} false
; then :
8346 $as_echo_n "(cached) " >&6
8348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h. */
8355 std::thread t(callback);
8360 if ac_fn_cxx_try_compile
"$LINENO"; then :
8361 gdb_cv_cxx_std_thread
=yes
8363 gdb_cv_cxx_std_thread
=no
8365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
8368 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
8370 # This check must be here, while LIBS includes any necessary
8371 # threading library.
8372 for ac_func
in pthread_sigmask pthread_setname_np
8374 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8375 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8376 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8377 cat >>confdefs.h
<<_ACEOF
8378 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8386 CXXFLAGS
="$save_CXXFLAGS"
8388 if test "$gdb_cv_cxx_std_thread" = "yes"; then
8390 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
8394 ac_cpp
='$CPP $CPPFLAGS'
8395 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8396 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8397 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
8401 $as_echo_n "checking for sigsetjmp... " >&6; }
8402 if ${gdb_cv_func_sigsetjmp+:} false
; then :
8403 $as_echo_n "(cached) " >&6
8405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8413 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
8418 if ac_fn_c_try_compile
"$LINENO"; then :
8419 gdb_cv_func_sigsetjmp
=yes
8421 gdb_cv_func_sigsetjmp
=no
8423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
8426 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
8427 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
8429 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
8434 # Check whether --with-intel_pt was given.
8435 if test "${with_intel_pt+set}" = set; then :
8436 withval
=$with_intel_pt;
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
8442 $as_echo_n "checking whether to use intel pt... " >&6; }
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
8444 $as_echo "$with_intel_pt" >&6; }
8446 if test "${with_intel_pt}" = no
; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
8448 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
8451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8454 #include <linux/perf_event.h>
8455 #ifndef PERF_ATTR_SIZE_VER5
8460 if ac_fn_c_try_cpp
"$LINENO"; then :
8465 rm -f conftest.err conftest.i conftest.
$ac_ext
8466 if test "$perf_event" != yes; then
8467 if test "$with_intel_pt" = yes; then
8468 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
8471 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
8485 acl_save_prefix
="$prefix"
8486 prefix
="$acl_final_prefix"
8487 acl_save_exec_prefix
="$exec_prefix"
8488 exec_prefix
="$acl_final_exec_prefix"
8490 eval additional_includedir
=\"$includedir\"
8491 eval additional_libdir
=\"$libdir\"
8493 exec_prefix
="$acl_save_exec_prefix"
8494 prefix
="$acl_save_prefix"
8497 # Check whether --with-libipt-prefix was given.
8498 if test "${with_libipt_prefix+set}" = set; then :
8499 withval
=$with_libipt_prefix;
8500 if test "X$withval" = "Xno"; then
8503 if test "X$withval" = "X"; then
8505 acl_save_prefix
="$prefix"
8506 prefix
="$acl_final_prefix"
8507 acl_save_exec_prefix
="$exec_prefix"
8508 exec_prefix
="$acl_final_exec_prefix"
8510 eval additional_includedir
=\"$includedir\"
8511 eval additional_libdir
=\"$libdir\"
8513 exec_prefix
="$acl_save_exec_prefix"
8514 prefix
="$acl_save_prefix"
8517 additional_includedir
="$withval/include"
8518 additional_libdir
="$withval/lib"
8529 names_already_handled
=
8530 names_next_round
='ipt '
8531 while test -n "$names_next_round"; do
8532 names_this_round
="$names_next_round"
8534 for name
in $names_this_round; do
8536 for n
in $names_already_handled; do
8537 if test "$n" = "$name"; then
8542 if test -z "$already_handled"; then
8543 names_already_handled
="$names_already_handled $name"
8544 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8545 eval value
=\"\
$HAVE_LIB$uppername\"
8546 if test -n "$value"; then
8547 if test "$value" = yes; then
8548 eval value
=\"\
$LIB$uppername\"
8549 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
8550 eval value
=\"\
$LTLIB$uppername\"
8551 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
8560 if test $use_additional = yes; then
8561 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8562 found_dir
="$additional_libdir"
8563 found_so
="$additional_libdir/lib$name.$shlibext"
8564 if test -f "$additional_libdir/lib$name.la"; then
8565 found_la
="$additional_libdir/lib$name.la"
8568 if test -f "$additional_libdir/lib$name.$libext"; then
8569 found_dir
="$additional_libdir"
8570 found_a
="$additional_libdir/lib$name.$libext"
8571 if test -f "$additional_libdir/lib$name.la"; then
8572 found_la
="$additional_libdir/lib$name.la"
8577 if test "X$found_dir" = "X"; then
8578 for x
in $LDFLAGS $LTLIBIPT; do
8580 acl_save_prefix
="$prefix"
8581 prefix
="$acl_final_prefix"
8582 acl_save_exec_prefix
="$exec_prefix"
8583 exec_prefix
="$acl_final_exec_prefix"
8585 exec_prefix
="$acl_save_exec_prefix"
8586 prefix
="$acl_save_prefix"
8590 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8591 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8593 found_so
="$dir/lib$name.$shlibext"
8594 if test -f "$dir/lib$name.la"; then
8595 found_la
="$dir/lib$name.la"
8598 if test -f "$dir/lib$name.$libext"; then
8600 found_a
="$dir/lib$name.$libext"
8601 if test -f "$dir/lib$name.la"; then
8602 found_la
="$dir/lib$name.la"
8608 if test "X$found_dir" != "X"; then
8613 if test "X$found_dir" != "X"; then
8614 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
8615 if test "X$found_so" != "X"; then
8616 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8617 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8620 for x
in $ltrpathdirs; do
8621 if test "X$x" = "X$found_dir"; then
8626 if test -z "$haveit"; then
8627 ltrpathdirs
="$ltrpathdirs $found_dir"
8629 if test "$hardcode_direct" = yes; then
8630 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8632 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8633 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8635 for x
in $rpathdirs; do
8636 if test "X$x" = "X$found_dir"; then
8641 if test -z "$haveit"; then
8642 rpathdirs
="$rpathdirs $found_dir"
8646 for x
in $LDFLAGS $LIBIPT; do
8648 acl_save_prefix
="$prefix"
8649 prefix
="$acl_final_prefix"
8650 acl_save_exec_prefix
="$exec_prefix"
8651 exec_prefix
="$acl_final_exec_prefix"
8653 exec_prefix
="$acl_save_exec_prefix"
8654 prefix
="$acl_save_prefix"
8656 if test "X$x" = "X-L$found_dir"; then
8661 if test -z "$haveit"; then
8662 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
8664 if test "$hardcode_minus_L" != no
; then
8665 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8667 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
8673 if test "X$found_a" != "X"; then
8674 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
8676 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
8679 additional_includedir
=
8680 case "$found_dir" in
8682 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8683 additional_includedir
="$basedir/include"
8686 if test "X$additional_includedir" != "X"; then
8687 if test "X$additional_includedir" != "X/usr/include"; then
8689 if test "X$additional_includedir" = "X/usr/local/include"; then
8690 if test -n "$GCC"; then
8692 linux
*) haveit
=yes;;
8696 if test -z "$haveit"; then
8697 for x
in $CPPFLAGS $INCIPT; do
8699 acl_save_prefix
="$prefix"
8700 prefix
="$acl_final_prefix"
8701 acl_save_exec_prefix
="$exec_prefix"
8702 exec_prefix
="$acl_final_exec_prefix"
8704 exec_prefix
="$acl_save_exec_prefix"
8705 prefix
="$acl_save_prefix"
8707 if test "X$x" = "X-I$additional_includedir"; then
8712 if test -z "$haveit"; then
8713 if test -d "$additional_includedir"; then
8714 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
8720 if test -n "$found_la"; then
8721 save_libdir
="$libdir"
8723 */* |
*\\*) .
"$found_la" ;;
8724 *) .
"./$found_la" ;;
8726 libdir
="$save_libdir"
8727 for dep
in $dependency_libs; do
8730 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8731 if test "X$additional_libdir" != "X/usr/lib"; then
8733 if test "X$additional_libdir" = "X/usr/local/lib"; then
8734 if test -n "$GCC"; then
8736 linux
*) haveit
=yes;;
8740 if test -z "$haveit"; then
8742 for x
in $LDFLAGS $LIBIPT; do
8744 acl_save_prefix
="$prefix"
8745 prefix
="$acl_final_prefix"
8746 acl_save_exec_prefix
="$exec_prefix"
8747 exec_prefix
="$acl_final_exec_prefix"
8749 exec_prefix
="$acl_save_exec_prefix"
8750 prefix
="$acl_save_prefix"
8752 if test "X$x" = "X-L$additional_libdir"; then
8757 if test -z "$haveit"; then
8758 if test -d "$additional_libdir"; then
8759 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
8763 for x
in $LDFLAGS $LTLIBIPT; do
8765 acl_save_prefix
="$prefix"
8766 prefix
="$acl_final_prefix"
8767 acl_save_exec_prefix
="$exec_prefix"
8768 exec_prefix
="$acl_final_exec_prefix"
8770 exec_prefix
="$acl_save_exec_prefix"
8771 prefix
="$acl_save_prefix"
8773 if test "X$x" = "X-L$additional_libdir"; then
8778 if test -z "$haveit"; then
8779 if test -d "$additional_libdir"; then
8780 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
8787 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8788 if test "$enable_rpath" != no
; then
8790 for x
in $rpathdirs; do
8791 if test "X$x" = "X$dir"; then
8796 if test -z "$haveit"; then
8797 rpathdirs
="$rpathdirs $dir"
8800 for x
in $ltrpathdirs; do
8801 if test "X$x" = "X$dir"; then
8806 if test -z "$haveit"; then
8807 ltrpathdirs
="$ltrpathdirs $dir"
8812 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8815 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8818 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
8819 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
8825 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
8826 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
8832 if test "X$rpathdirs" != "X"; then
8833 if test -n "$hardcode_libdir_separator"; then
8835 for found_dir
in $rpathdirs; do
8836 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8838 acl_save_libdir
="$libdir"
8840 eval flag
=\"$hardcode_libdir_flag_spec\"
8841 libdir
="$acl_save_libdir"
8842 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
8844 for found_dir
in $rpathdirs; do
8845 acl_save_libdir
="$libdir"
8847 eval flag
=\"$hardcode_libdir_flag_spec\"
8848 libdir
="$acl_save_libdir"
8849 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
8853 if test "X$ltrpathdirs" != "X"; then
8854 for found_dir
in $ltrpathdirs; do
8855 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
8860 ac_save_CPPFLAGS
="$CPPFLAGS"
8862 for element
in $INCIPT; do
8864 for x
in $CPPFLAGS; do
8866 acl_save_prefix
="$prefix"
8867 prefix
="$acl_final_prefix"
8868 acl_save_exec_prefix
="$exec_prefix"
8869 exec_prefix
="$acl_final_exec_prefix"
8871 exec_prefix
="$acl_save_exec_prefix"
8872 prefix
="$acl_save_prefix"
8874 if test "X$x" = "X$element"; then
8879 if test -z "$haveit"; then
8880 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
8886 $as_echo_n "checking for libipt... " >&6; }
8887 if ${ac_cv_libipt+:} false
; then :
8888 $as_echo_n "(cached) " >&6
8891 ac_save_LIBS
="$LIBS"
8892 LIBS
="$LIBS $LIBIPT"
8893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8895 #include "intel-pt.h"
8899 pt_insn_alloc_decoder (0);
8904 if ac_fn_c_try_link
"$LINENO"; then :
8909 rm -f core conftest.err conftest.
$ac_objext \
8910 conftest
$ac_exeext conftest.
$ac_ext
8911 LIBS
="$ac_save_LIBS"
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
8915 $as_echo "$ac_cv_libipt" >&6; }
8916 if test "$ac_cv_libipt" = yes; then
8919 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
8922 $as_echo_n "checking how to link with libipt... " >&6; }
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
8924 $as_echo "$LIBIPT" >&6; }
8927 CPPFLAGS
="$ac_save_CPPFLAGS"
8937 if test "$HAVE_LIBIPT" != yes; then
8938 if test "$with_intel_pt" = yes; then
8939 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
8942 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
8946 LIBS
="$LIBS $LIBIPT"
8947 for ac_func
in pt_insn_event
8949 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
8950 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
8951 cat >>confdefs.h
<<_ACEOF
8952 #define HAVE_PT_INSN_EVENT 1
8958 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
8960 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
8962 cat >>confdefs.h
<<_ACEOF
8963 #define HAVE_STRUCT_PT_INSN_ENABLED 1
8968 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
8970 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
8972 cat >>confdefs.h
<<_ACEOF
8973 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
8983 if test "$ac_cv_header_sys_procfs_h" = yes; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
8985 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
8986 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
8987 $as_echo_n "(cached) " >&6
8989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8993 /* Needed for new procfs interface on sparc-solaris. */
8994 #define _STRUCTURED_PROC 1
8995 #include <sys/procfs.h>
9004 if ac_fn_c_try_compile
"$LINENO"; then :
9005 bfd_cv_have_sys_procfs_type_gregset_t
=yes
9007 bfd_cv_have_sys_procfs_type_gregset_t
=no
9010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9013 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
9015 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
9019 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
9022 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
9023 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
9024 $as_echo_n "(cached) " >&6
9026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9030 /* Needed for new procfs interface on sparc-solaris. */
9031 #define _STRUCTURED_PROC 1
9032 #include <sys/procfs.h>
9041 if ac_fn_c_try_compile
"$LINENO"; then :
9042 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
9044 bfd_cv_have_sys_procfs_type_fpregset_t
=no
9047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9050 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
9052 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
9056 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
9059 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
9060 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
9061 $as_echo_n "(cached) " >&6
9063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h. */
9067 /* Needed for new procfs interface on sparc-solaris. */
9068 #define _STRUCTURED_PROC 1
9069 #include <sys/procfs.h>
9078 if ac_fn_c_try_compile
"$LINENO"; then :
9079 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
9081 bfd_cv_have_sys_procfs_type_prgregset_t
=no
9084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9087 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
9089 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
9093 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
9096 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
9097 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
9098 $as_echo_n "(cached) " >&6
9100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9104 /* Needed for new procfs interface on sparc-solaris. */
9105 #define _STRUCTURED_PROC 1
9106 #include <sys/procfs.h>
9115 if ac_fn_c_try_compile
"$LINENO"; then :
9116 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
9118 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
9121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9124 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
9126 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
9130 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
9133 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
9134 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
9135 $as_echo_n "(cached) " >&6
9137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9141 /* Needed for new procfs interface on sparc-solaris. */
9142 #define _STRUCTURED_PROC 1
9143 #include <sys/procfs.h>
9152 if ac_fn_c_try_compile
"$LINENO"; then :
9153 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
9155 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
9158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9161 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
9163 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
9167 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
9170 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
9171 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
9172 $as_echo_n "(cached) " >&6
9174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9178 /* Needed for new procfs interface on sparc-solaris. */
9179 #define _STRUCTURED_PROC 1
9180 #include <sys/procfs.h>
9189 if ac_fn_c_try_compile
"$LINENO"; then :
9190 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
9192 bfd_cv_have_sys_procfs_type_lwpid_t
=no
9195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9198 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
9200 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
9204 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
9207 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
9208 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
9209 $as_echo_n "(cached) " >&6
9211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9215 /* Needed for new procfs interface on sparc-solaris. */
9216 #define _STRUCTURED_PROC 1
9217 #include <sys/procfs.h>
9226 if ac_fn_c_try_compile
"$LINENO"; then :
9227 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
9229 bfd_cv_have_sys_procfs_type_psaddr_t
=no
9232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9235 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
9237 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
9241 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
9244 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
9245 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
9246 $as_echo_n "(cached) " >&6
9248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9252 /* Needed for new procfs interface on sparc-solaris. */
9253 #define _STRUCTURED_PROC 1
9254 #include <sys/procfs.h>
9263 if ac_fn_c_try_compile
"$LINENO"; then :
9264 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
9266 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
9269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9272 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
9274 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
9278 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
9283 # Check the return and argument types of ptrace.
9286 for ac_header
in sys
/ptrace.h ptrace.h
9288 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9289 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9290 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9291 cat >>confdefs.h
<<_ACEOF
9292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9300 gdb_ptrace_headers
='
9301 #include <sys/types.h>
9302 #if HAVE_SYS_PTRACE_H
9303 # include <sys/ptrace.h>
9306 # include <unistd.h>
9309 # There is no point in checking if we don't have a prototype.
9310 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
9312 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
9318 cat >>confdefs.h
<<_ACEOF
9319 #define HAVE_DECL_PTRACE $ac_have_decl
9321 if test $ac_have_decl = 1; then :
9325 : ${gdb_cv_func_ptrace_ret='int'}
9326 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
9330 # Check return type. Varargs (used on GNU/Linux) conflict with the
9331 # empty argument list, so check for that explicitly.
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
9333 $as_echo_n "checking return type of ptrace... " >&6; }
9334 if ${gdb_cv_func_ptrace_ret+:} false
; then :
9335 $as_echo_n "(cached) " >&6
9337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9343 extern long ptrace (enum __ptrace_request, ...);
9348 if ac_fn_c_try_compile
"$LINENO"; then :
9349 gdb_cv_func_ptrace_ret
='long'
9351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9357 extern int ptrace ();
9362 if ac_fn_c_try_compile
"$LINENO"; then :
9363 gdb_cv_func_ptrace_ret
='int'
9365 gdb_cv_func_ptrace_ret
='long'
9367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
9372 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
9374 cat >>confdefs.h
<<_ACEOF
9375 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
9378 # Check argument types.
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
9380 $as_echo_n "checking types of arguments for ptrace... " >&6; }
9381 if ${gdb_cv_func_ptrace_args+:} false
; then :
9382 $as_echo_n "(cached) " >&6
9385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9391 extern long ptrace (enum __ptrace_request, ...);
9396 if ac_fn_c_try_compile
"$LINENO"; then :
9397 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
9400 for gdb_arg1
in 'int' 'long'; do
9401 for gdb_arg2
in 'pid_t' 'int' 'long'; do
9402 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
9403 for gdb_arg4
in 'int' 'long' 'void *'; do
9404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9411 extern $gdb_cv_func_ptrace_ret
9412 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
9418 if ac_fn_c_try_compile
"$LINENO"; then :
9419 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
9422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9423 for gdb_arg5
in 'int *' 'int' 'long'; do
9424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9431 extern $gdb_cv_func_ptrace_ret
9432 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
9438 if ac_fn_c_try_compile
"$LINENO"; then :
9440 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
9443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9449 # Provide a safe default value.
9450 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
9453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
9456 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
9457 ac_save_IFS
=$IFS; IFS
=','
9458 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
9462 cat >>confdefs.h
<<_ACEOF
9463 #define PTRACE_TYPE_ARG1 $1
9467 cat >>confdefs.h
<<_ACEOF
9468 #define PTRACE_TYPE_ARG3 $3
9472 cat >>confdefs.h
<<_ACEOF
9473 #define PTRACE_TYPE_ARG4 $4
9476 if test -n "$5"; then
9478 cat >>confdefs.h
<<_ACEOF
9479 #define PTRACE_TYPE_ARG5 $5
9490 # Check whether --with-ust was given.
9491 if test "${with_ust+set}" = set; then :
9496 # Check whether --with-ust_include was given.
9497 if test "${with_ust_include+set}" = set; then :
9498 withval
=$with_ust_include;
9502 # Check whether --with-ust_lib was given.
9503 if test "${with_ust_lib+set}" = set; then :
9504 withval
=$with_ust_lib;
9518 ustlibs
="-L$with_ust/lib -lust"
9519 ustinc
="-I$with_ust/include "
9522 if test "x$with_ust_include" != x
; then
9523 ustinc
="-I$with_ust_include "
9525 if test "x$with_ust_lib" != x
; then
9526 ustlibs
="-L$with_ust_lib -lust"
9529 if test "x$with_ust" != "xno"; then
9530 saved_CFLAGS
="$CFLAGS"
9531 CFLAGS
="$CFLAGS $ustinc"
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
9533 $as_echo_n "checking for ust... " >&6; }
9534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9537 #define CONFIG_UST_GDB_INTEGRATION
9538 #include <ust/ust.h>
9548 if ac_fn_c_try_compile
"$LINENO"; then :
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9550 $as_echo "yes" >&6; };
9551 $as_echo "#define HAVE_UST 1" >>confdefs.h
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
9557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9558 CFLAGS
="$saved_CFLAGS"
9561 # Flags needed for UST
9566 # Check whether --enable-werror was given.
9567 if test "${enable_werror+set}" = set; then :
9568 enableval
=$enable_werror; case "${enableval}" in
9569 yes | y
) ERROR_ON_WARNING
="yes" ;;
9570 no | n
) ERROR_ON_WARNING
="no" ;;
9571 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9576 # Enable -Werror by default when using gcc. Turn it off for releases.
9577 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
9578 ERROR_ON_WARNING
=yes
9582 if test "${ERROR_ON_WARNING}" = yes ; then
9583 WERROR_CFLAGS
="-Werror"
9586 # The options we'll try to enable.
9587 build_warnings
="-Wall -Wpointer-arith \
9588 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
9589 -Wno-switch -Wno-char-subscripts \
9590 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
9591 -Wno-sign-compare -Wno-error=maybe-uninitialized \
9592 -Wno-mismatched-tags \
9593 -Wno-error=deprecated-register \
9594 -Wsuggest-override \
9595 -Wimplicit-fallthrough=3 \
9599 -Wdeprecated-copy-dtor \
9601 -Wmissing-declarations \
9602 -Wstrict-null-sentinel \
9607 # Enable -Wno-format by default when using gcc on mingw since many
9608 # GCC versions complain about %I64.
9609 build_warnings
="$build_warnings -Wno-format" ;;
9611 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
9612 # doesn't understand.
9613 build_warnings
="$build_warnings -Wno-unknown-pragmas"
9614 # Solaris 11 <unistd.h> marks vfork deprecated.
9615 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
9617 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
9618 # but there's a special case for this below.
9619 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
9622 # Check whether --enable-build-warnings was given.
9623 if test "${enable_build_warnings+set}" = set; then :
9624 enableval
=$enable_build_warnings; case "${enableval}" in
9626 no
) build_warnings
="-w";;
9627 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9628 build_warnings
="${build_warnings} ${t}";;
9629 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9630 build_warnings
="${t} ${build_warnings}";;
9631 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9633 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9634 echo "Setting compiler warning flags = $build_warnings" 6>&1
9637 # Check whether --enable-gdb-build-warnings was given.
9638 if test "${enable_gdb_build_warnings+set}" = set; then :
9639 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
9641 no
) build_warnings
="-w";;
9642 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9643 build_warnings
="${build_warnings} ${t}";;
9644 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9645 build_warnings
="${t} ${build_warnings}";;
9646 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9648 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9649 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9653 # The set of warnings supported by a C++ compiler is not the same as
9654 # of the C compiler.
9656 ac_cpp
='$CXXCPP $CPPFLAGS'
9657 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9658 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9659 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9663 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
9666 $as_echo_n "checking compiler warning flags... " >&6; }
9667 # Separate out the -Werror flag as some files just cannot be
9668 # compiled with it enabled.
9669 for w
in ${build_warnings}; do
9670 # GCC does not complain about -Wno-unknown-warning. Invert
9671 # and test -Wunknown-warning instead.
9674 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
9675 -Wformat-nonliteral)
9676 # gcc requires -Wformat before -Wformat-nonliteral
9677 # will work, so stick them together.
9686 -Werr*) WERROR_CFLAGS
=-Werror ;;
9688 # Check whether GCC accepts it.
9689 saved_CFLAGS
="$CFLAGS"
9690 CFLAGS
="$CFLAGS -Werror $wtest"
9691 saved_CXXFLAGS
="$CXXFLAGS"
9692 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
9693 if test "x$w" = "x-Wunused-variable"; then
9694 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
9695 # fixed in GCC 4.9. This test is derived from the gdb
9696 # source code that triggered this bug in GCC.
9697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 struct scoped_restore_base {};
9700 struct scoped_restore_tmpl : public scoped_restore_base {
9701 ~scoped_restore_tmpl() {}
9706 const scoped_restore_base &b = scoped_restore_tmpl();
9711 if ac_fn_cxx_try_compile
"$LINENO"; then :
9712 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9727 if ac_fn_cxx_try_compile
"$LINENO"; then :
9728 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9732 CFLAGS
="$saved_CFLAGS"
9733 CXXFLAGS
="$saved_CXXFLAGS"
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
9737 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
9743 ac_cpp='$CPP $CPPFLAGS'
9744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9752 for ac_func in dladdr
9754 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
9755 if test "x
$ac_cv_func_dladdr" = xyes; then :
9756 cat >>confdefs.h <<_ACEOF
9757 #define HAVE_DLADDR 1
9766 # Check for presence and size of long long.
9767 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
9768 if test "x
$ac_cv_type_long_long" = xyes; then :
9770 cat >>confdefs.h <<_ACEOF
9771 #define HAVE_LONG_LONG 1
9774 # The cast to long int works around a bug in the HP C Compiler
9775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9776 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9777 # This bug is HP SR number 8606223364.
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
9779 $as_echo_n "checking size of long long...
" >&6; }
9780 if ${ac_cv_sizeof_long_long+:} false; then :
9781 $as_echo_n "(cached
) " >&6
9783 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
9786 if test "$ac_cv_type_long_long" = yes; then
9787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
9788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9789 as_fn_error 77 "cannot compute sizeof (long long)
9790 See \`config.log' for more details
" "$LINENO" 5; }
9792 ac_cv_sizeof_long_long=0
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
9798 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9802 cat >>confdefs.h <<_ACEOF
9803 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9810 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
9811 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
9812 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
9818 cat >>confdefs.h <<_ACEOF
9819 #define HAVE_DECL_BASENAME $ac_have_decl
9821 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
9822 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
9828 cat >>confdefs.h <<_ACEOF
9829 #define HAVE_DECL_FFS $ac_have_decl
9831 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
9832 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
9838 cat >>confdefs.h <<_ACEOF
9839 #define HAVE_DECL_ASPRINTF $ac_have_decl
9841 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
9842 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
9848 cat >>confdefs.h <<_ACEOF
9849 #define HAVE_DECL_VASPRINTF $ac_have_decl
9851 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
9852 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
9858 cat >>confdefs.h <<_ACEOF
9859 #define HAVE_DECL_SNPRINTF $ac_have_decl
9861 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
9862 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
9868 cat >>confdefs.h <<_ACEOF
9869 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9872 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
9873 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
9879 cat >>confdefs.h <<_ACEOF
9880 #define HAVE_DECL_STRTOL $ac_have_decl
9882 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
9883 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
9889 cat >>confdefs.h <<_ACEOF
9890 #define HAVE_DECL_STRTOUL $ac_have_decl
9892 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
9893 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
9899 cat >>confdefs.h <<_ACEOF
9900 #define HAVE_DECL_STRTOLL $ac_have_decl
9902 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
9903 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_DECL_STRTOULL $ac_have_decl
9913 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
9914 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
9920 cat >>confdefs.h <<_ACEOF
9921 #define HAVE_DECL_STRVERSCMP $ac_have_decl
9926 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
9927 if test "x
$ac_cv_have_decl_perror" = xyes; then :
9933 cat >>confdefs.h <<_ACEOF
9934 #define HAVE_DECL_PERROR $ac_have_decl
9936 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
9937 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
9943 cat >>confdefs.h <<_ACEOF
9944 #define HAVE_DECL_VASPRINTF $ac_have_decl
9946 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
9947 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
9953 cat >>confdefs.h <<_ACEOF
9954 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9958 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
9959 # Older amd64 Linux's don't have the fs_base and gs_base members of
9960 # `struct user_regs_struct'.
9961 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>
9962 #include <sys/user.h>
9964 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
9966 cat >>confdefs.h <<_ACEOF
9967 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
9972 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>
9973 #include <sys/user.h>
9975 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
9977 cat >>confdefs.h <<_ACEOF
9978 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
9986 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
9987 #include <sys/socket.h>
9990 if test "x
$ac_cv_type_socklen_t" = xyes; then :
9992 cat >>confdefs.h <<_ACEOF
9993 #define HAVE_SOCKLEN_T 1
10000 case "${target}" in
10002 # Starting with NDK version 9, <elf.h> actually includes definitions
10003 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
10004 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
10005 # leading to conflicts with the defintions from <linux/elf.h>.
10006 # This makes it impossible for us to include both <elf.h> and
10007 # <linux/elf.h>, which means that, in practice, we do not have
10008 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
10009 # Therefore, do not try to auto-detect availability, as it would
10010 # get it wrong on this platform.
10013 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
10016 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
10018 cat >>confdefs.h <<_ACEOF
10019 #define HAVE_ELF32_AUXV_T 1
10024 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
10027 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
10029 cat >>confdefs.h <<_ACEOF
10030 #define HAVE_ELF64_AUXV_T 1
10040 # Check whether --with-pkgversion was given.
10041 if test "${with_pkgversion+set}" = set; then :
10042 withval=$with_pkgversion; case "$withval" in
10043 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
10045 *) PKGVERSION="($withval) " ;;
10048 PKGVERSION="(GDB
) "
10056 # Check whether --with-bugurl was given.
10057 if test "${with_bugurl+set}" = set; then :
10058 withval=$with_bugurl; case "$withval" in
10059 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
10062 *) BUGURL="$withval"
10066 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
10076 REPORT_BUGS_TO="<$BUGURL>"
10077 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10084 cat >>confdefs.h <<_ACEOF
10085 #define PKGVERSION "$PKGVERSION"
10089 cat >>confdefs.h <<_ACEOF
10090 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
10094 # Check for various supplementary target information (beyond the
10095 # triplet) which might affect the choices in configure.srv.
10096 case "${target}" in
10097 i[34567]86-*-linux*)
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
10099 $as_echo_n "checking
if building
for x86-64...
" >&6; }
10100 if ${gdb_cv_i386_is_x86_64+:} false; then :
10101 $as_echo_n "(cached
) " >&6
10103 save_CPPFLAGS="$CPPFLAGS"
10104 CPPFLAGS="$CPPFLAGS $CFLAGS"
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10113 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10114 $EGREP "got it
" >/dev/null 2>&1; then :
10115 gdb_cv_i386_is_x86_64=yes
10117 gdb_cv_i386_is_x86_64=no
10121 CPPFLAGS="$save_CPPFLAGS"
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
10124 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
10129 $as_echo_n "checking
if building
for x32...
" >&6; }
10130 if ${gdb_cv_x86_is_x32+:} false; then :
10131 $as_echo_n "(cached
) " >&6
10133 save_CPPFLAGS="$CPPFLAGS"
10134 CPPFLAGS="$CPPFLAGS $CFLAGS"
10135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136 /* end confdefs.h. */
10138 #if __x86_64__ && __ILP32__
10143 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10144 $EGREP "got it
" >/dev/null 2>&1; then :
10145 gdb_cv_x86_is_x32=yes
10147 gdb_cv_x86_is_x32=no
10151 CPPFLAGS="$save_CPPFLAGS"
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
10154 $as_echo "$gdb_cv_x86_is_x32" >&6; }
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
10159 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
10160 if ${gdb_cv_m68k_is_coldfire+:} false; then :
10161 $as_echo_n "(cached
) " >&6
10163 save_CPPFLAGS="$CPPFLAGS"
10164 CPPFLAGS="$CPPFLAGS $CFLAGS"
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10168 #ifdef __mcoldfire__
10173 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10174 $EGREP "got it
" >/dev/null 2>&1; then :
10175 gdb_cv_m68k_is_coldfire=yes
10177 gdb_cv_m68k_is_coldfire=no
10181 CPPFLAGS="$save_CPPFLAGS"
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
10184 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
10188 . ${srcdir}/configure.srv
10190 if test "${srv_mingwce}" = "yes"; then
10192 elif test "${srv_mingw}" = "yes"; then
10193 # WIN32APILIBS is set by GDB_AC_COMMON.
10194 LIBS="$LIBS $WIN32APILIBS"
10195 elif test "${srv_qnx}" = "yes"; then
10196 LIBS="$LIBS -lsocket"
10197 elif test "${srv_lynxos}" = "yes"; then
10198 LIBS="$LIBS -lnetinet"
10201 if test "${srv_linux_usrregs}" = "yes"; then
10203 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
10207 if test "${srv_linux_regsets}" = "yes"; then
10209 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10213 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10214 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
10215 $as_echo_n "(cached) " >&6
10217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219 #include <sys/ptrace.h>
10228 if ac_fn_c_try_compile
"$LINENO"; then :
10229 gdbsrv_cv_have_ptrace_getregs
=yes
10231 gdbsrv_cv_have_ptrace_getregs
=no
10233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
10237 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
10238 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
10240 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10245 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10246 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
10247 $as_echo_n "(cached) " >&6
10249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10251 #include <sys/ptrace.h>
10260 if ac_fn_c_try_compile
"$LINENO"; then :
10261 gdbsrv_cv_have_ptrace_getfpxregs
=yes
10263 gdbsrv_cv_have_ptrace_getfpxregs
=no
10265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
10269 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
10270 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
10272 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10277 if test "${srv_linux_btrace}" = "yes"; then
10279 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
10283 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
10285 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
10286 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
10287 $as_echo_n "(cached) " >&6
10289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10292 #include <thread_db.h>
10301 if ac_fn_c_try_compile
"$LINENO"; then :
10302 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
10304 gdbserver_cv_have_thread_db_type_lwpid_t
=no
10307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10310 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
10312 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
10316 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
10320 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
10322 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
10323 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
10324 $as_echo_n "(cached) " >&6
10326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h. */
10329 #include <thread_db.h>
10338 if ac_fn_c_try_compile
"$LINENO"; then :
10339 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
10341 gdbserver_cv_have_thread_db_type_psaddr_t
=no
10344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10347 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
10349 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
10353 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10359 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10360 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10361 $as_echo_n "(cached) " >&6
10363 ac_check_lib_save_LIBS
=$LIBS
10365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h. */
10368 /* Override any GCC internal prototype to avoid an error.
10369 Use char because int might match the return type of a GCC
10370 builtin and then its argument prototype would still apply. */
10383 if ac_fn_c_try_link
"$LINENO"; then :
10384 ac_cv_lib_dl_dlopen
=yes
10386 ac_cv_lib_dl_dlopen
=no
10388 rm -f core conftest.err conftest.
$ac_objext \
10389 conftest
$ac_exeext conftest.
$ac_ext
10390 LIBS
=$ac_check_lib_save_LIBS
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10393 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10394 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10395 cat >>confdefs.h
<<_ACEOF
10396 #define HAVE_LIBDL 1
10405 srv_thread_depfiles
=
10408 if test "$srv_linux_thread_db" = "yes"; then
10409 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
10412 $as_echo_n "checking for the dynamic export flag... " >&6; }
10413 old_LDFLAGS
="$LDFLAGS"
10414 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
10416 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
10417 LDFLAGS
="$LDFLAGS $RDYNAMIC"
10418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h. */
10429 if ac_fn_c_try_link
"$LINENO"; then :
10430 found
="-Wl,--dynamic-list"
10431 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
10433 RDYNAMIC
="-rdynamic"
10434 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
10435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10446 if ac_fn_c_try_link
"$LINENO"; then :
10452 rm -f core conftest.err conftest.
$ac_objext \
10453 conftest
$ac_exeext conftest.
$ac_ext
10455 rm -f core conftest.err conftest.
$ac_objext \
10456 conftest
$ac_exeext conftest.
$ac_ext
10458 LDFLAGS
="$old_LDFLAGS"
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
10460 $as_echo "$found" >&6; }
10462 srv_libs
="-lthread_db"
10465 srv_thread_depfiles
="thread-db.o proc-service.o"
10467 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
10470 $as_echo_n "checking for TD_VERSION... " >&6; }
10471 if ${gdbsrv_cv_have_td_version+:} false
; then :
10472 $as_echo_n "(cached) " >&6
10474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10476 #include <thread_db.h>
10485 if ac_fn_c_try_compile
"$LINENO"; then :
10486 gdbsrv_cv_have_td_version
=yes
10488 gdbsrv_cv_have_td_version
=no
10490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
10493 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
10494 if test "$gdbsrv_cv_have_td_version" = yes; then
10496 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
10502 # Check whether --with-libthread-db was given.
10503 if test "${with_libthread_db+set}" = set; then :
10504 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
10505 srv_libs
="$srv_libthread_db_path"
10510 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
10512 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
10516 if test "$srv_xmlfiles" != ""; then
10517 srv_xmlbuiltin
="xml-builtin.o"
10519 $as_echo "#define USE_XML 1" >>confdefs.h
10522 tmp_xmlfiles
=$srv_xmlfiles
10524 for f
in $tmp_xmlfiles; do
10525 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
10529 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_selftest_objs"
10530 GDBSERVER_LIBS
="$srv_libs"
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
10533 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
10534 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
10535 $as_echo_n "(cached) " >&6
10538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10544 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
10549 if ac_fn_c_try_link
"$LINENO"; then :
10550 gdbsrv_cv_have_sync_builtins
=yes
10552 gdbsrv_cv_have_sync_builtins
=no
10554 rm -f core conftest.err conftest.
$ac_objext \
10555 conftest
$ac_exeext conftest.
$ac_ext
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
10558 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
10559 if test "$gdbsrv_cv_have_sync_builtins" = yes; then
10561 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
10565 saved_cflags
="$CFLAGS"
10566 CFLAGS
="$CFLAGS -fvisibility=hidden"
10567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h. */
10578 if ac_fn_c_try_compile
"$LINENO"; then :
10579 gdbsrv_cv_have_visibility_hidden
=yes
10581 gdbsrv_cv_have_visibility_hidden
=no
10583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10584 CFLAGS
="$saved_cflags"
10589 # check whether to enable the inprocess agent
10590 if test "$ipa_obj" != "" \
10591 -a "$gdbsrv_cv_have_sync_builtins" = yes \
10592 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
10598 # Check whether --enable-inprocess-agent was given.
10599 if test "${enable_inprocess_agent+set}" = set; then :
10600 enableval
=$enable_inprocess_agent; case "$enableval" in
10601 yes) want_ipa
=true
;;
10602 no
) want_ipa
=false
;;
10603 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
10610 if $want_ipa ; then
10611 if $have_ipa ; then
10612 IPA_DEPFILES
="$ipa_obj"
10613 extra_libraries
="$extra_libraries libinproctrace.so"
10615 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
10626 GNULIB
=..
/gnulib
/import
10629 if test x
"$STDINT_H" != x
; then
10630 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
10634 ac_config_files
="$ac_config_files Makefile"
10637 cat >confcache
<<\_ACEOF
10638 # This file is a shell script that caches the results of configure
10639 # tests run on this system so they can be shared between configure
10640 # scripts and configure runs, see configure's option --config-cache.
10641 # It is not useful on other systems. If it contains results you don't
10642 # want to keep, you may remove or edit it.
10644 # config.status only pays attention to the cache file if you give it
10645 # the --recheck option to rerun configure.
10647 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10648 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10649 # following values.
10653 # The following way of writing the cache mishandles newlines in values,
10654 # but we know of no workaround that is simple, portable, and efficient.
10655 # So, we kill variables containing newlines.
10656 # Ultrix sh set writes to stderr and can't be redirected directly,
10657 # and sets the high bit in the cache file unless we assign to the vars.
10659 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10660 eval ac_val
=\$
$ac_var
10664 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10665 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10668 _ | IFS | as_nl
) ;; #(
10669 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10670 *) { eval $ac_var=; unset $ac_var;} ;;
10676 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10677 *${as_nl}ac_space
=\
*)
10678 # `set' does not quote correctly, so add quotes: double-quote
10679 # substitution turns \\\\ into \\, and sed turns \\ into \.
10682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10685 # `set' quotes correctly as required by POSIX, so do not add quotes.
10686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10695 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10697 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10699 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10700 if test -w "$cache_file"; then
10701 if test "x$cache_file" != "x/dev/null"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10703 $as_echo "$as_me: updating cache $cache_file" >&6;}
10704 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10705 cat confcache
>"$cache_file"
10707 case $cache_file in #(
10709 mv -f confcache
"$cache_file"$$
&&
10710 mv -f "$cache_file"$$
"$cache_file" ;; #(
10712 mv -f confcache
"$cache_file" ;;
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10718 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10723 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10724 # Let make expand exec_prefix.
10725 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10727 DEFS
=-DHAVE_CONFIG_H
10732 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10733 # 1. Remove the extension, and $U if already installed.
10734 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10735 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10736 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10737 # will be set to the directory where LIBOBJS objects are built.
10738 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10739 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10741 LIBOBJS
=$ac_libobjs
10743 LTLIBOBJS
=$ac_ltlibobjs
10746 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10747 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
10748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10751 : "${CONFIG_STATUS=./config.status}"
10753 ac_clean_files_save
=$ac_clean_files
10754 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10756 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10758 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10760 # Generated by $as_me.
10761 # Run this file to recreate the current configuration.
10762 # Compiler output produced by configure, useful for debugging
10763 # configure, is in config.log if it exists.
10766 ac_cs_recheck=false
10769 SHELL=\${CONFIG_SHELL-$SHELL}
10772 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10773 ## -------------------- ##
10774 ## M4sh Initialization. ##
10775 ## -------------------- ##
10777 # Be more Bourne compatible
10778 DUALCASE
=1; export DUALCASE
# for MKS sh
10779 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10782 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10783 # is contrary to our usage. Disable this feature.
10784 alias -g '${1+"$@"}'='"$@"'
10785 setopt NO_GLOB_SUBST
10787 case `(set -o) 2>/dev/null` in #(
10799 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10800 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10801 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10802 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10803 # Prefer a ksh shell builtin over an external printf program on Solaris,
10804 # but without wasting forks for bash or zsh.
10805 if test -z "$BASH_VERSION$ZSH_VERSION" \
10806 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10807 as_echo='print
-r --'
10808 as_echo_n='print
-rn --'
10809 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10810 as_echo='printf %s
\n'
10811 as_echo_n='printf %s
'
10813 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10814 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10815 as_echo_n='/usr
/ucb
/echo -n'
10817 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10818 as_echo_n_body='eval
10822 expr "X$arg" : "X\\(.*\\)$as_nl";
10823 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10825 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10827 export as_echo_n_body
10828 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10830 export as_echo_body
10831 as_echo='sh
-c $as_echo_body as_echo
'
10834 # The user is always right.
10835 if test "${PATH_SEPARATOR+set}" != set; then
10837 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10838 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10845 # We need space, tab and new line, in precisely that order. Quoting is
10846 # there to prevent editors from complaining about space-tab.
10847 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10848 # splitting by setting IFS to empty value.)
10851 # Find who we are. Look in the path if we contain no directory separator.
10854 *[\\/]* ) as_myself=$0 ;;
10855 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in $PATH
10859 test -z "$as_dir" && as_dir=.
10860 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10866 # We did not find ourselves, most probably we were run as `sh COMMAND'
10867 # in which case we are not to be found in the path.
10868 if test "x$as_myself" = x
; then
10871 if test ! -f "$as_myself"; then
10872 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10876 # Unset variables that we do not need and which cause bugs (e.g. in
10877 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10878 # suppresses any "Segmentation fault" message there. '((' could
10879 # trigger a bug in pdksh 5.2.14.
10880 for as_var
in BASH_ENV ENV MAIL MAILPATH
10881 do eval test x\
${$as_var+set} = xset \
10882 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10895 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10898 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10899 # ----------------------------------------
10900 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10901 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10902 # script with STATUS, using 1 if that was 0.
10905 as_status
=$1; test $as_status -eq 0 && as_status
=1
10907 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10908 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10910 $as_echo "$as_me: error: $2" >&2
10911 as_fn_exit
$as_status
10915 # as_fn_set_status STATUS
10916 # -----------------------
10917 # Set $? to STATUS, without forking.
10918 as_fn_set_status
()
10921 } # as_fn_set_status
10923 # as_fn_exit STATUS
10924 # -----------------
10925 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10929 as_fn_set_status
$1
10935 # Portably unset VAR.
10938 { eval $1=; unset $1;}
10940 as_unset
=as_fn_unset
10941 # as_fn_append VAR VALUE
10942 # ----------------------
10943 # Append the text in VALUE to the end of the definition contained in VAR. Take
10944 # advantage of any shell optimizations that allow amortized linear growth over
10945 # repeated appends, instead of the typical quadratic growth present in naive
10947 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10948 eval 'as_fn_append ()
10959 # as_fn_arith ARG...
10960 # ------------------
10961 # Perform arithmetic evaluation on the ARGs, and store the result in the
10962 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10963 # must be portable across $(()) and expr.
10964 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10965 eval 'as_fn_arith ()
10972 as_val
=`expr "$@" || test $? -eq 1`
10977 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10978 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10984 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10985 as_basename
=basename
10990 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10996 as_me
=`$as_basename -- "$0" ||
10997 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10998 X"$0" : 'X\(//\)$' \| \
10999 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11001 sed '/^.*\/\([^/][^/]*\)\/*$/{
11015 # Avoid depending upon Character Ranges.
11016 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11017 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11018 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11019 as_cr_digits
='0123456789'
11020 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11022 ECHO_C
= ECHO_N
= ECHO_T
=
11023 case `echo -n x` in #(((((
11025 case `echo 'xy\c'` in
11026 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11028 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11035 rm -f conf$$ conf$$.exe conf$$.
file
11036 if test -d conf$$.dir
; then
11037 rm -f conf$$.dir
/conf$$.
file
11040 mkdir conf$$.dir
2>/dev
/null
11042 if (echo >conf$$.
file) 2>/dev
/null
; then
11043 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11045 # ... but there are two gotchas:
11046 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11047 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11048 # In both cases, we have to default to `cp -pR'.
11049 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11051 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11059 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11060 rmdir conf$$.dir
2>/dev
/null
11065 # Create "$as_dir" as a directory, including parents if necessary.
11070 -*) as_dir
=.
/$as_dir;;
11072 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11076 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11077 *) as_qdir
=$as_dir;;
11079 as_dirs
="'$as_qdir' $as_dirs"
11080 as_dir
=`$as_dirname -- "$as_dir" ||
11081 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11082 X"$as_dir" : 'X\(//\)[^/]' \| \
11083 X"$as_dir" : 'X\(//\)$' \| \
11084 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11085 $as_echo X"$as_dir" |
11086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11090 /^X\(\/\/\)[^/].*/{
11103 test -d "$as_dir" && break
11105 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11106 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11110 if mkdir
-p .
2>/dev
/null
; then
11111 as_mkdir_p
='mkdir -p "$as_dir"'
11113 test -d .
/-p && rmdir .
/-p
11118 # as_fn_executable_p FILE
11119 # -----------------------
11120 # Test if FILE is an executable regular file.
11121 as_fn_executable_p
()
11123 test -f "$1" && test -x "$1"
11124 } # as_fn_executable_p
11125 as_test_x
='test -x'
11126 as_executable_p
=as_fn_executable_p
11128 # Sed expression to map a string onto a valid CPP name.
11129 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11131 # Sed expression to map a string onto a valid variable name.
11132 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11136 ## ----------------------------------- ##
11137 ## Main body of $CONFIG_STATUS script. ##
11138 ## ----------------------------------- ##
11140 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11143 # Save the log message, to keep $0 and so on meaningful, and to
11144 # report actual input values of CONFIG_FILES etc. instead of their
11145 # values after options handling.
11147 This file was extended by $as_me, which was
11148 generated by GNU Autoconf 2.69. Invocation command line was
11150 CONFIG_FILES = $CONFIG_FILES
11151 CONFIG_HEADERS = $CONFIG_HEADERS
11152 CONFIG_LINKS = $CONFIG_LINKS
11153 CONFIG_COMMANDS = $CONFIG_COMMANDS
11156 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11161 case $ac_config_files in *"
11162 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11165 case $ac_config_headers in *"
11166 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11171 # Files that config.status was made for.
11172 config_files="$ac_config_files"
11173 config_headers="$ac_config_headers"
11174 config_commands="$ac_config_commands"
11178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11180 \`$as_me' instantiates files and other configuration actions
11181 from templates according to the current configuration. Unless the files
11182 and actions are specified as TAGs, all are instantiated by default.
11184 Usage: $0 [OPTION]... [TAG]...
11186 -h, --help print this help, then exit
11187 -V, --version print version number and configuration settings, then exit
11188 --config print configuration, then exit
11189 -q, --quiet, --silent
11190 do not print progress messages
11191 -d, --debug don't remove temporary files
11192 --recheck update $as_me by reconfiguring in the same conditions
11193 --file=FILE[:TEMPLATE]
11194 instantiate the configuration file FILE
11195 --header=FILE[:TEMPLATE]
11196 instantiate the configuration header FILE
11198 Configuration files:
11201 Configuration headers:
11204 Configuration commands:
11207 Report bugs to the package provider."
11210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11211 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11214 configured by $0, generated by GNU Autoconf 2.69,
11215 with options \\"\$ac_cs_config\\"
11217 Copyright (C) 2012 Free Software Foundation, Inc.
11218 This config.status script is free software; the Free Software Foundation
11219 gives unlimited permission to copy, distribute and modify it."
11224 test -n "\$AWK" || AWK=awk
11227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11228 # The default lists apply if the user does not specify any file.
11234 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11235 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11239 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11251 # Handling of the options.
11252 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11254 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11255 $as_echo "$ac_cs_version"; exit ;;
11256 --config |
--confi |
--conf |
--con |
--co |
--c )
11257 $as_echo "$ac_cs_config"; exit ;;
11258 --debug |
--debu |
--deb |
--de |
--d |
-d )
11260 --file |
--fil |
--fi |
--f )
11263 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11264 '') as_fn_error $?
"missing file argument" ;;
11266 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11267 ac_need_defaults
=false
;;
11268 --header |
--heade |
--head |
--hea )
11271 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11273 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11274 ac_need_defaults
=false
;;
11276 # Conflict between --help and --header
11277 as_fn_error $?
"ambiguous option: \`$1'
11278 Try \`$0 --help' for more information.";;
11279 --help |
--hel |
-h )
11280 $as_echo "$ac_cs_usage"; exit ;;
11281 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11282 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11285 # This is an error.
11286 -*) as_fn_error $?
"unrecognized option: \`$1'
11287 Try \`$0 --help' for more information." ;;
11289 *) as_fn_append ac_config_targets
" $1"
11290 ac_need_defaults
=false
;;
11296 ac_configure_extra_args
=
11298 if $ac_cs_silent; then
11300 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11305 if \$ac_cs_recheck; then
11306 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11308 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11309 CONFIG_SHELL='$SHELL'
11310 export CONFIG_SHELL
11315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11319 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11320 ## Running $as_me. ##
11326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11330 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
11331 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
11335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11337 # Handling of arguments.
11338 for ac_config_target
in $ac_config_targets
11340 case $ac_config_target in
11341 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
11342 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
11343 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
11344 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11346 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11351 # If the user did not use the arguments to specify the items to instantiate,
11352 # then the envvar interface is used. Set only those that are not.
11353 # We use the long form for the default assignment because of an extremely
11354 # bizarre bug on SunOS 4.1.3.
11355 if $ac_need_defaults; then
11356 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11357 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11358 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11361 # Have a temporary directory for convenience. Make it in the build tree
11362 # simply because there is no reason against having it here, and in addition,
11363 # creating and moving files from /tmp can sometimes cause problems.
11364 # Hook for its removal unless debugging.
11365 # Note that there is a small window in which the directory will not be cleaned:
11366 # after its creation but before its name has been assigned to `$tmp'.
11370 trap 'exit_status=$?
11371 : "${ac_tmp:=$tmp}"
11372 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11374 trap 'as_fn_exit 1' 1 2 13 15
11376 # Create a (secure) tmp directory for tmp files.
11379 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11383 tmp
=.
/conf$$
-$RANDOM
11384 (umask 077 && mkdir
"$tmp")
11385 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11388 # Set up the scripts for CONFIG_FILES section.
11389 # No need to generate them if there are no CONFIG_FILES.
11390 # This happens for instance with `./config.status config.h'.
11391 if test -n "$CONFIG_FILES"; then
11394 ac_cr
=`echo X | tr X '\015'`
11395 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11396 # But we know of no other shell where ac_cr would be empty at this
11397 # point, so we can use a bashism as a fallback.
11398 if test "x$ac_cr" = x
; then
11399 eval ac_cr
=\$
\'\\r
\'
11401 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11402 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11405 ac_cs_awk_cr
=$ac_cr
11408 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11413 echo "cat >conf$$subs.awk <<_ACEOF" &&
11414 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11416 } >conf$$subs.sh ||
11417 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11418 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11420 for ac_last_try in false false false false false :; do
11421 . ./conf$$subs.sh ||
11422 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11424 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11425 if test $ac_delim_n = $ac_delim_num; then
11427 elif $ac_last_try; then
11428 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11430 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11433 rm -f conf$$subs.sh
11435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11436 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11440 s/^/S["/; s
/!.
*/"]=/
11450 s/\(.\{148\}\)..*/\1/
11452 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11457 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11464 s/\(.\{148\}\)..*/\1/
11466 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11470 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11475 ' <conf$$subs.awk | sed '
11480 ' >>$CONFIG_STATUS || ac_write_fail=1
11481 rm -f conf$$subs.awk
11482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11484 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11485 for (key in S) S_is_set[key] = 1
11491 nfields = split(line, field, "@
")
11493 len = length(field[1])
11494 for (i = 2; i < nfields; i++) {
11496 keylen = length(key)
11497 if (S_is_set[key]) {
11499 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11500 len += length(value) + length(field[++i])
11511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11512 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11513 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11516 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11517 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11520 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11521 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11522 # trailing colons and then remove the whole line if VPATH becomes empty
11523 # (actually we leave an empty line to preserve line numbers).
11524 if test "x
$srcdir" = x.; then
11525 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11544 fi # test -n "$CONFIG_FILES"
11546 # Set up the scripts for CONFIG_HEADERS section.
11547 # No need to generate them if there are no CONFIG_HEADERS.
11548 # This happens for instance with `./config.status Makefile'.
11549 if test -n "$CONFIG_HEADERS"; then
11550 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11554 # Transform confdefs.h into an awk script `defines.awk', embedded as
11555 # here-document in config.status, that substitutes the proper values into
11556 # config.h.in to produce config.h.
11558 # Create a delimiter string that does not exist in confdefs.h, to ease
11559 # handling of long lines.
11561 for ac_last_try in false false :; do
11562 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11563 if test -z "$ac_tt"; then
11565 elif $ac_last_try; then
11566 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11568 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11572 # For the awk script, D is an array of macro values keyed by name,
11573 # likewise P contains macro parameters if any. Preserve backslash
11574 # newline sequences.
11576 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11578 s/.\{148\}/&'"$ac_delim"'/g
11581 s/^[ ]*#[ ]*define[ ][ ]*/ /
11588 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11590 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11594 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11595 D["\
1"]=" \
3\\\\\\n
"\\/p
11597 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11602 s/.\{148\}/&'"$ac_delim"'/g
11607 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11610 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11612 ' <confdefs.h | sed '
11613 s/'"$ac_delim"'/"\\\
11614 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11617 for (key in D) D_is_set[key] = 1
11620 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11622 split(line, arg, " ")
11623 if (arg[1] == "#") {
11627 defundef
= substr
(arg
[1], 2)
11630 split(mac1
, mac2
, "(") #)
11632 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11633 if (D_is_set
[macro
]) {
11634 # Preserve the white space surrounding the "#".
11635 print prefix
"define", macro P
[macro
] D
[macro
]
11638 # Replace #undef with comments. This is necessary, for example,
11639 # in the case of _POSIX_SOURCE, which is predefined and required
11640 # on some systems where configure will not decide to define it.
11641 if (defundef
== "undef") {
11642 print
"/*", prefix defundef
, macro
, "*/"
11650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11651 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11652 fi # test -n "$CONFIG_HEADERS"
11655 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11660 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11662 case $ac_mode$ac_tag in
11664 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11665 :[FH
]-) ac_tag
=-:-;;
11666 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11683 -) ac_f
="$ac_tmp/stdin";;
11684 *) # Look for the file first in the build tree, then in the source tree
11685 # (if the path is not absolute). The absolute path cannot be DOS-style,
11686 # because $ac_f cannot contain `:'.
11690 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11692 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11694 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11695 as_fn_append ac_file_inputs
" '$ac_f'"
11698 # Let's still pretend it is `configure' which instantiates (i.e., don't
11699 # use $as_me), people would be surprised to read:
11700 # /* config.h. Generated by config.status. */
11701 configure_input
='Generated from '`
11702 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11704 if test x
"$ac_file" != x-
; then
11705 configure_input
="$ac_file. $configure_input"
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11707 $as_echo "$as_me: creating $ac_file" >&6;}
11709 # Neutralize special characters interpreted by sed in replacement strings.
11710 case $configure_input in #(
11711 *\
&* |
*\|
* |
*\\* )
11712 ac_sed_conf_input
=`$as_echo "$configure_input" |
11713 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11714 *) ac_sed_conf_input
=$configure_input;;
11718 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11719 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11724 ac_dir
=`$as_dirname -- "$ac_file" ||
11725 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11726 X"$ac_file" : 'X\(//\)[^/]' \| \
11727 X"$ac_file" : 'X\(//\)$' \| \
11728 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11729 $as_echo X"$ac_file" |
11730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11734 /^X\(\/\/\)[^/].*/{
11747 as_dir
="$ac_dir"; as_fn_mkdir_p
11751 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11753 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11754 # A ".." for each directory in $ac_dir_suffix.
11755 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11756 case $ac_top_builddir_sub in
11757 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11758 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11761 ac_abs_top_builddir
=$ac_pwd
11762 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11763 # for backward compatibility:
11764 ac_top_builddir
=$ac_top_build_prefix
11767 .
) # We are building in place.
11769 ac_top_srcdir
=$ac_top_builddir_sub
11770 ac_abs_top_srcdir
=$ac_pwd ;;
11771 [\\/]* | ?
:[\\/]* ) # Absolute name.
11772 ac_srcdir
=$srcdir$ac_dir_suffix;
11773 ac_top_srcdir
=$srcdir
11774 ac_abs_top_srcdir
=$srcdir ;;
11775 *) # Relative name.
11776 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11777 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11778 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11780 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11790 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11791 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11796 # If the template does not know about datarootdir, expand it.
11797 # FIXME: This hack should be removed a few years after 2.60.
11798 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11809 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11810 *datarootdir
*) ac_datarootdir_seen
=yes;;
11811 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11813 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11816 ac_datarootdir_hack='
11817 s&@datadir@&$datadir&g
11818 s&@docdir@&$docdir&g
11819 s&@infodir@&$infodir&g
11820 s&@localedir@&$localedir&g
11821 s&@mandir@&$mandir&g
11822 s&\\\${datarootdir}&$datarootdir&g' ;;
11826 # Neutralize VPATH when `$srcdir' = `.'.
11827 # Shell code in configure.ac might set extrasub.
11828 # FIXME: do we really want to maintain this feature?
11829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11830 ac_sed_extra="$ac_vpsub
11833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11835 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11836 s|@configure_input@|
$ac_sed_conf_input|
;t t
11837 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11838 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11839 s
&@srcdir@
&$ac_srcdir&;t t
11840 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11841 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11842 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11843 s
&@builddir@
&$ac_builddir&;t t
11844 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11845 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11846 s
&@INSTALL@
&$ac_INSTALL&;t t
11847 $ac_datarootdir_hack
11849 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11850 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11852 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11853 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11854 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11855 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11857 which seems to be undefined. Please make sure it is defined" >&5
11858 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11859 which seems to be undefined. Please make sure it is defined" >&2;}
11861 rm -f "$ac_tmp/stdin"
11863 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11864 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11872 if test x"$ac_file" != x-; then
11874 $as_echo "/* $configure_input */" \
11875 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11876 } >"$ac_tmp/config.h" \
11877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11878 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11880 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11883 mv "$ac_tmp/config.h" "$ac_file" \
11884 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11887 $as_echo "/* $configure_input */" \
11888 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11889 || as_fn_error $? "could not create -" "$LINENO" 5
11893 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11894 $as_echo "$as_me: executing $ac_file commands" >&6;}
11899 case $ac_file$ac_mode in
11900 "config.h":H) echo > stamp-h ;;
11901 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
11903 for subdir in ${CONFIG_SRC_SUBDIR}
11905 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
11914 ac_clean_files=$ac_clean_files_save
11916 test $ac_write_fail = 0 ||
11917 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11920 # configure is writing to config.log, and then calls config.status.
11921 # config.status does its own redirection, appending to config.log.
11922 # Unfortunately, on DOS this fails, as config.log is still kept open
11923 # by configure, so config.status won't be able to
write to it
; its
11924 # output is simply discarded. So we exec the FD to /dev/null,
11925 # effectively closing config.log, so it can be properly (re)opened and
11926 # appended to by config.status. When coming back to configure, we
11927 # need to make the FD available again.
11928 if test "$no_create" != yes; then
11930 ac_config_status_args
=
11931 test "$silent" = yes &&
11932 ac_config_status_args
="$ac_config_status_args --quiet"
11934 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11936 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11937 # would make configure fail if this is the last instruction.
11938 $ac_cs_success || as_fn_exit
1
11940 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}