2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Valgrind 3.6.0.SVN.
5 # Report bugs to <valgrind-users@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: valgrind-users@lists.sourceforge.net about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
553 PACKAGE_NAME='Valgrind'
554 PACKAGE_TARNAME='valgrind'
555 PACKAGE_VERSION='3.6.0.SVN'
556 PACKAGE_STRING='Valgrind 3.6.0.SVN'
557 PACKAGE_BUGREPORT='valgrind-users@lists.sourceforge.net'
560 ac_unique_file="coregrind/m_main.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
598 ac_subst_vars='am__EXEEXT_FALSE
601 HAVE_BUILTIN_ATOMIC_FALSE
602 HAVE_BUILTIN_ATOMIC_TRUE
605 HAVE_BOOST_1_35_FALSE
609 HAVE_QTCORE_QATOMICINT_FALSE
610 HAVE_QTCORE_QATOMICINT_TRUE
618 BUILD_MPIWRAP_SEC_FALSE
619 BUILD_MPIWRAP_SEC_TRUE
620 BUILD_MPIWRAP_PRI_FALSE
621 BUILD_MPIWRAP_PRI_TRUE
623 HAVE_PTHREAD_SPINLOCK_FALSE
624 HAVE_PTHREAD_SPINLOCK_TRUE
625 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
626 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
627 HAVE_PTHREAD_BARRIER_FALSE
628 HAVE_PTHREAD_BARRIER_TRUE
630 BUILD_SSSE3_TESTS_FALSE
631 BUILD_SSSE3_TESTS_TRUE
632 BUILD_SSE3_TESTS_FALSE
633 BUILD_SSE3_TESTS_TRUE
635 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
636 FLAG_FNO_STACK_PROTECTOR
638 FLAG_W_NO_UNINITIALIZED
639 FLAG_W_NO_FORMAT_ZERO_LENGTH
641 PREFERRED_STACK_BOUNDARY
648 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
649 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
659 VALT_LOAD_ADDRESS_SEC
660 VALT_LOAD_ADDRESS_PRI
661 VGCONF_HAVE_PLATFORM_SEC_FALSE
662 VGCONF_HAVE_PLATFORM_SEC_TRUE
663 VGCONF_OS_IS_L4RE_FALSE
664 VGCONF_OS_IS_L4RE_TRUE
665 VGCONF_OS_IS_DARWIN_FALSE
666 VGCONF_OS_IS_DARWIN_TRUE
667 VGCONF_OS_IS_AIX5_FALSE
668 VGCONF_OS_IS_AIX5_TRUE
669 VGCONF_OS_IS_LINUX_FALSE
670 VGCONF_OS_IS_LINUX_TRUE
671 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE
672 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE
673 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
674 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
675 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
676 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
677 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE
678 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE
679 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE
680 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE
681 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
682 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
683 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE
684 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE
685 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
686 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
687 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
688 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
689 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
690 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
691 VGCONF_ARCHS_INCLUDE_ARM_FALSE
692 VGCONF_ARCHS_INCLUDE_ARM_TRUE
693 VGCONF_ARCHS_INCLUDE_PPC64_FALSE
694 VGCONF_ARCHS_INCLUDE_PPC64_TRUE
695 VGCONF_ARCHS_INCLUDE_PPC32_FALSE
696 VGCONF_ARCHS_INCLUDE_PPC32_TRUE
697 VGCONF_ARCHS_INCLUDE_AMD64_FALSE
698 VGCONF_ARCHS_INCLUDE_AMD64_TRUE
699 VGCONF_ARCHS_INCLUDE_X86_FALSE
700 VGCONF_ARCHS_INCLUDE_X86_TRUE
701 VGCONF_PLATFORM_SEC_CAPS
702 VGCONF_PLATFORM_PRI_CAPS
715 am__fastdepCCAS_FALSE
750 MAINTAINER_MODE_FALSE
760 INSTALL_STRIP_PROGRAM
802 program_transform_name
815 enable_option_checking
816 enable_maintainer_mode
817 enable_dependency_tracking
824 ac_precious_vars='build_alias
846 # Initialize some variables set by options.
848 ac_init_version=false
849 ac_unrecognized_opts=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
860 program_transform_name=s,x,x,
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885 infodir='${datarootdir}/info'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 # Accept the important Cygnus configure options, so we can diagnose typos.
912 case $ac_dashdash$ac_option in
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
934 cache_file=config.cache ;;
936 -datadir | --datadir | --datadi | --datad)
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
962 eval enable_$ac_useropt=no ;;
964 -docdir | --docdir | --docdi | --doc | --do)
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
988 eval enable_$ac_useropt=\$ac_optarg ;;
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 htmldir=$ac_optarg ;;
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1033 -libdir | --libdir | --libdi | --libd)
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1124 -psdir | --psdir | --psdi | --psd | --ps)
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 sbindir=$ac_optarg ;;
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 sharedstatedir=$ac_optarg ;;
1150 -site | --site | --sit)
1152 -site=* | --site=* | --sit=*)
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1192 eval with_$ac_useropt=\$ac_optarg ;;
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1208 eval with_$ac_useropt=no ;;
1211 # Obsolete; use --with-x.
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1228 -*) as_fn_error "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information."
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error "missing argument to $ac_option"
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1261 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1279 # Be sure to have absolute directory names.
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1292 target=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308 test "$silent" = yes && exec 6>/dev/null
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error "pwd does not report name of working directory"
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1351 ac_srcdir_defaulted=no
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379 # Report the --help message.
1381 if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
1385 \`configure' configures Valgrind 3.6.0.SVN to adapt to many kinds of systems.
1387 Usage: $0 [OPTION]... [VAR=VALUE]...
1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390 VAR=VALUE. See below for descriptions of some of the useful variables.
1392 Defaults for the options are specified in brackets.
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
1399 -q, --quiet, --silent do not print \`checking...' messages
1400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for \`--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405 Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
1407 [$ac_default_prefix]
1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 By default, \`make install' will install all the files in
1412 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1413 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414 for instance \`--prefix=\$HOME'.
1416 For better control, use the options below.
1418 Fine tuning of the installation directories:
1419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425 --libdir=DIR object code libraries [EPREFIX/lib]
1426 --includedir=DIR C header files [PREFIX/include]
1427 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1430 --infodir=DIR info documentation [DATAROOTDIR/info]
1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1432 --mandir=DIR man documentation [DATAROOTDIR/man]
1433 --docdir=DIR documentation root [DATAROOTDIR/doc/valgrind]
1434 --htmldir=DIR html documentation [DOCDIR]
1435 --dvidir=DIR dvi documentation [DOCDIR]
1436 --pdfdir=DIR pdf documentation [DOCDIR]
1437 --psdir=DIR ps documentation [DOCDIR]
1443 --program-prefix=PREFIX prepend PREFIX to installed program names
1444 --program-suffix=SUFFIX append SUFFIX to installed program names
1445 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448 --build=BUILD configure for building on BUILD [guessed]
1449 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1453 if test -n "$ac_init_help"; then
1454 case $ac_init_help in
1455 short | recursive ) echo "Configuration of Valgrind 3.6.0.SVN:";;
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-maintainer-mode enable make rules and dependencies not useful
1464 (and sometimes confusing) to the casual installer
1465 --disable-dependency-tracking speeds up one-time build
1466 --enable-dependency-tracking do not reject slow dependency extractors
1467 --enable-only64bit do a 64-bit only build
1468 --enable-only32bit do a 32-bit only build
1469 --enable-inner enables self-hosting
1470 --enable-tls platform supports TLS
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-mpicc= Specify name of MPI2-ised C compiler
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1486 CXX C++ compiler command
1487 CXXFLAGS C++ compiler flags
1489 CCAS assembler compiler command (defaults to CC)
1490 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1491 PKG_CONFIG path to pkg-config utility
1493 directories to add to pkg-config's search path
1495 path overriding pkg-config's built-in search path
1497 C compiler flags for QTCORE, overriding pkg-config
1498 QTCORE_LIBS linker flags for QTCORE, overriding pkg-config
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1503 Report bugs to <valgrind-users@lists.sourceforge.net>.
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" ||
1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1533 .) # We are building in place.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1557 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1566 Valgrind configure 3.6.0.SVN
1567 generated by GNU Autoconf 2.65
1569 Copyright (C) 2009 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1576 ## ------------------------ ##
1577 ## Autoconf initialization. ##
1578 ## ------------------------ ##
1580 # ac_fn_c_try_compile LINENO
1581 # --------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_compile ()
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext
1587 if { { ac_try="$ac_compile"
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_compile") 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; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest.$ac_objext; then :
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 as_fn_set_status $ac_retval
1616 } # ac_fn_c_try_compile
1618 # ac_fn_c_try_cpp LINENO
1619 # ----------------------
1620 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if { { ac_try="$ac_cpp conftest.$ac_ext"
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } >/dev/null && {
1640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1651 as_fn_set_status $ac_retval
1655 # ac_fn_cxx_try_compile LINENO
1656 # ----------------------------
1657 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_cxx_try_compile ()
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext
1662 if { { ac_try="$ac_compile"
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_compile") 2>conftest.err
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_cxx_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest.$ac_objext; then :
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689 as_fn_set_status $ac_retval
1691 } # ac_fn_cxx_try_compile
1693 # ac_fn_c_try_link LINENO
1694 # -----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded.
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext conftest$ac_exeext
1700 if { { ac_try="$ac_link"
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>conftest.err
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest$ac_exeext && {
1719 test "$cross_compiling" = yes ||
1720 $as_test_x conftest$ac_exeext
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1729 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1730 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1731 # interfere with the next link command; also delete a directory that is
1732 # left behind by Apple's compiler. We do this before executing the actions.
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735 as_fn_set_status $ac_retval
1737 } # ac_fn_c_try_link
1739 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1740 # -------------------------------------------------------
1741 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1742 # the include files in INCLUDES and setting the cache variable VAR
1744 ac_fn_c_check_header_mongrel ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751 $as_echo_n "(cached) " >&6
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1757 # Is the header compilable?
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1759 $as_echo_n "checking $2 usability... " >&6; }
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 ac_header_compiler=yes
1768 ac_header_compiler=no
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1772 $as_echo "$ac_header_compiler" >&6; }
1774 # Is the header present?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1776 $as_echo_n "checking $2 presence... " >&6; }
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1781 if ac_fn_c_try_cpp "$LINENO"; then :
1782 ac_header_preproc=yes
1784 ac_header_preproc=no
1786 rm -f conftest.err conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1788 $as_echo "$ac_header_preproc" >&6; }
1790 # So? What about this header?
1791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1794 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1800 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1802 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1804 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1806 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1808 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ## --------------------------------------------------- ##
1811 ## Report this to valgrind-users@lists.sourceforge.net ##
1812 ## --------------------------------------------------- ##
1814 ) | sed "s/^/$as_me: WARNING: /" >&2
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1820 $as_echo_n "(cached) " >&6
1822 eval "$3=\$ac_header_compiler"
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 } # ac_fn_c_check_header_mongrel
1832 # ac_fn_c_try_run LINENO
1833 # ----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1835 # that executables *can* be run.
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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>&5
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1850 { { case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_try") 2>&5
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; }; }; then :
1862 $as_echo "$as_me: program exited with status $ac_status" >&5
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866 ac_retval=$ac_status
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 as_fn_set_status $ac_retval
1874 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1875 # -------------------------------------------------------
1876 # Tests whether HEADER exists and can be compiled using the include files in
1877 # INCLUDES, setting the cache variable VAR accordingly.
1878 ac_fn_c_check_header_compile ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884 $as_echo_n "(cached) " >&6
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1891 if ac_fn_c_try_compile "$LINENO"; then :
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 } # ac_fn_c_check_header_compile
1905 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1906 # -------------------------------------------
1907 # Tests whether TYPE exists after having included INCLUDES, setting cache
1908 # variable VAR accordingly.
1909 ac_fn_c_check_type ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1943 if ac_fn_c_try_compile "$LINENO"; then :
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 } # ac_fn_c_check_type
1959 # ac_fn_c_check_func LINENO FUNC VAR
1960 # ----------------------------------
1961 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1962 ac_fn_c_check_func ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1968 $as_echo_n "(cached) " >&6
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1974 #define $2 innocuous_$2
1976 /* System header to define __stub macros and hopefully few prototypes,
1977 which can conflict with char $2 (); below.
1978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1979 <limits.h> exists even on freestanding compilers. */
1982 # include <limits.h>
1984 # include <assert.h>
1989 /* Override any GCC internal prototype to avoid an error.
1990 Use char because int might match the return type of a GCC
1991 builtin and then its argument prototype would still apply. */
1996 /* The GNU C library defines this for functions which it implements
1997 to always fail with ENOSYS. Some functions are actually named
1998 something starting with __ and the normal name is an alias. */
1999 #if defined __stub_$2 || defined __stub___$2
2011 if ac_fn_c_try_link "$LINENO"; then :
2016 rm -f core conftest.err conftest.$ac_objext \
2017 conftest$ac_exeext conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2024 } # ac_fn_c_check_func
2026 # ac_fn_cxx_try_link LINENO
2027 # -------------------------
2028 # Try to link conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_cxx_try_link ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 rm -f conftest.$ac_objext conftest$ac_exeext
2033 if { { ac_try="$ac_link"
2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040 (eval "$ac_link") 2>conftest.err
2042 if test -s conftest.err; then
2043 grep -v '^ *+' conftest.err >conftest.er1
2044 cat conftest.er1 >&5
2045 mv -f conftest.er1 conftest.err
2047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048 test $ac_status = 0; } && {
2049 test -z "$ac_cxx_werror_flag" ||
2050 test ! -s conftest.err
2051 } && test -s conftest$ac_exeext && {
2052 test "$cross_compiling" = yes ||
2053 $as_test_x conftest$ac_exeext
2057 $as_echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2062 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2063 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2064 # interfere with the next link command; also delete a directory that is
2065 # left behind by Apple's compiler. We do this before executing the actions.
2066 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068 as_fn_set_status $ac_retval
2070 } # ac_fn_cxx_try_link
2071 cat >config.log <<_ACEOF
2072 This file contains any messages produced by compilers while
2073 running configure, to aid debugging if configure makes a mistake.
2075 It was created by Valgrind $as_me 3.6.0.SVN, which was
2076 generated by GNU Autoconf 2.65. Invocation command line was
2088 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2089 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2090 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2091 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2092 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2094 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2095 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2097 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2098 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2099 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2100 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2101 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2102 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2103 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 test -z "$as_dir" && as_dir=.
2112 $as_echo "PATH: $as_dir"
2128 # Keep a trace of the command line.
2129 # Strip out --no-create and --no-recursion so they do not pile up.
2130 # Strip out --silent because we don't want to record it for future runs.
2131 # Also quote any args containing shell meta-characters.
2132 # Make two passes to allow for proper duplicate-argument suppression.
2136 ac_must_keep_next=false
2142 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2144 | -silent | --silent | --silen | --sile | --sil)
2147 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2150 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2152 as_fn_append ac_configure_args1 " '$ac_arg'"
2153 if test $ac_must_keep_next = true; then
2154 ac_must_keep_next=false # Got value, back to normal.
2157 *=* | --config-cache | -C | -disable-* | --disable-* \
2158 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2159 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2160 | -with-* | --with-* | -without-* | --without-* | --x)
2161 case "$ac_configure_args0 " in
2162 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2165 -* ) ac_must_keep_next=true ;;
2168 as_fn_append ac_configure_args " '$ac_arg'"
2173 { ac_configure_args0=; unset ac_configure_args0;}
2174 { ac_configure_args1=; unset ac_configure_args1;}
2176 # When interrupted or exit'd, cleanup temporary files, and complete
2177 # config.log. We remove comments because anyway the quotes in there
2178 # would cause problems or look ugly.
2179 # WARNING: Use '\'' to represent an apostrophe within the trap.
2180 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2181 trap 'exit_status=$?
2182 # Save into config.log some information that might help in debugging.
2187 ## ---------------- ##
2188 ## Cache variables. ##
2189 ## ---------------- ##
2192 # The following way of writing the cache mishandles newlines in values,
2194 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2195 eval ac_val=\$$ac_var
2199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2203 _ | IFS | as_nl) ;; #(
2204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2205 *) { eval $ac_var=; unset $ac_var;} ;;
2210 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2211 *${as_nl}ac_space=\ *)
2213 "s/'\''/'\''\\\\'\'''\''/g;
2214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2225 ## ----------------- ##
2226 ## Output variables. ##
2227 ## ----------------- ##
2230 for ac_var in $ac_subst_vars
2232 eval ac_val=\$$ac_var
2234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2236 $as_echo "$ac_var='\''$ac_val'\''"
2240 if test -n "$ac_subst_files"; then
2242 ## ------------------- ##
2243 ## File substitutions. ##
2244 ## ------------------- ##
2247 for ac_var in $ac_subst_files
2249 eval ac_val=\$$ac_var
2251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 $as_echo "$ac_var='\''$ac_val'\''"
2258 if test -s confdefs.h; then
2268 test "$ac_signal" != 0 &&
2269 $as_echo "$as_me: caught signal $ac_signal"
2270 $as_echo "$as_me: exit $exit_status"
2272 rm -f core *.core core.conftest.* &&
2273 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2276 for ac_signal in 1 2 13 15; do
2277 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2281 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2282 rm -f -r conftest* confdefs.h
2284 $as_echo "/* confdefs.h */" > confdefs.h
2286 # Predefined preprocessor variables.
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_NAME "$PACKAGE_NAME"
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_STRING "$PACKAGE_STRING"
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_URL "$PACKAGE_URL"
2313 # Let the site file select an alternate cache file if it wants to.
2314 # Prefer an explicitly selected file to automatically selected ones.
2317 if test -n "$CONFIG_SITE"; then
2318 ac_site_file1=$CONFIG_SITE
2319 elif test "x$prefix" != xNONE; then
2320 ac_site_file1=$prefix/share/config.site
2321 ac_site_file2=$prefix/etc/config.site
2323 ac_site_file1=$ac_default_prefix/share/config.site
2324 ac_site_file2=$ac_default_prefix/etc/config.site
2326 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2328 test "x$ac_site_file" = xNONE && continue
2329 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2331 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2332 sed 's/^/| /' "$ac_site_file" >&5
2337 if test -r "$cache_file"; then
2338 # Some versions of bash will fail to source /dev/null (special files
2339 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2340 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2342 $as_echo "$as_me: loading cache $cache_file" >&6;}
2344 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2345 *) . "./$cache_file";;
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2350 $as_echo "$as_me: creating cache $cache_file" >&6;}
2354 as_fn_append ac_header_list " stdlib.h"
2355 as_fn_append ac_header_list " unistd.h"
2356 as_fn_append ac_header_list " sys/param.h"
2357 # Check that the precious variables saved in the cache have kept the same
2359 ac_cache_corrupted=false
2360 for ac_var in $ac_precious_vars; do
2361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362 eval ac_new_set=\$ac_env_${ac_var}_set
2363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364 eval ac_new_val=\$ac_env_${ac_var}_value
2365 case $ac_old_set,$ac_new_set in
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369 ac_cache_corrupted=: ;;
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2373 ac_cache_corrupted=: ;;
2376 if test "x$ac_old_val" != "x$ac_new_val"; then
2377 # differences in whitespace do not lead to failure.
2378 ac_old_val_w=`echo x $ac_old_val`
2379 ac_new_val_w=`echo x $ac_new_val`
2380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2383 ac_cache_corrupted=:
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387 eval $ac_var=\$ac_old_val
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2390 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2392 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2395 # Pass precious variables to config.status.
2396 if test "$ac_new_set" = set; then
2398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2399 *) ac_arg=$ac_var=$ac_new_val ;;
2401 case " $ac_configure_args " in
2402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2407 if $ac_cache_corrupted; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2414 ## -------------------- ##
2415 ## Main body of script. ##
2416 ## -------------------- ##
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426 ac_config_headers="$ac_config_headers config.h"
2428 am__api_version='1.11'
2431 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2432 for ac_t in install-sh install.sh shtool; do
2433 if test -f "$ac_dir/$ac_t"; then
2435 ac_install_sh="$ac_aux_dir/$ac_t -c"
2440 if test -z "$ac_aux_dir"; then
2441 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2444 # These three variables are undocumented and unsupported,
2445 # and are intended to be withdrawn in a future Autoconf release.
2446 # They can cause serious problems if a builder's source tree is in a directory
2447 # whose full name contains unusual characters.
2448 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2449 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2450 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2453 # Find a good install program. We prefer a C program (faster),
2454 # so one script is as good as another. But avoid the broken or
2455 # incompatible versions:
2456 # SysV /etc/install, /usr/sbin/install
2457 # SunOS /usr/etc/install
2458 # IRIX /sbin/install
2460 # AmigaOS /C/install, which installs bootblocks on floppy discs
2461 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2462 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2463 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2464 # OS/2's system install, which has a completely different semantic
2465 # ./install, which can be erroneously created by make from ./install.sh.
2466 # Reject install programs that cannot install multiple files.
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2468 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2469 if test -z "$INSTALL"; then
2470 if test "${ac_cv_path_install+set}" = set; then :
2471 $as_echo_n "(cached) " >&6
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 # Account for people who put trailing slashes in PATH elements.
2479 case $as_dir/ in #((
2480 ./ | .// | /[cC]/* | \
2481 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2482 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2485 # OSF1 and SCO ODT 3.0 have their own names for install.
2486 # Don't use installbsd from OSF since it installs stuff as root
2488 for ac_prog in ginstall scoinst install; do
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2491 if test $ac_prog = install &&
2492 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2493 # AIX install. It has an incompatible calling convention.
2495 elif test $ac_prog = install &&
2496 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2497 # program-specific install script used by HP pwplus--don't use.
2500 rm -rf conftest.one conftest.two conftest.dir
2501 echo one > conftest.one
2502 echo two > conftest.two
2504 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2505 test -s conftest.one && test -s conftest.two &&
2506 test -s conftest.dir/conftest.one &&
2507 test -s conftest.dir/conftest.two
2509 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2522 rm -rf conftest.one conftest.two conftest.dir
2525 if test "${ac_cv_path_install+set}" = set; then
2526 INSTALL=$ac_cv_path_install
2528 # As a last resort, use the slow shell script. Don't cache a
2529 # value for INSTALL within a source directory, because that will
2530 # break other packages using the cache if that directory is
2531 # removed, or if the value is a relative name.
2532 INSTALL=$ac_install_sh
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2536 $as_echo "$INSTALL" >&6; }
2538 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2539 # It thinks the first close brace ends the variable substitution.
2540 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2542 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2544 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2547 $as_echo_n "checking whether build environment is sane... " >&6; }
2550 echo timestamp > conftest.file
2551 # Reject unsafe characters in $srcdir or the absolute working directory
2552 # name. Accept space and tab only in the latter.
2556 *[\\\"\#\$\&\'\`$am_lf]*)
2557 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2560 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2561 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2564 # Do `set' in a subshell so we don't clobber the current shell's
2565 # arguments. Must try -L first in case configure is actually a
2566 # symlink; some systems play weird games with the mod time of symlinks
2567 # (eg FreeBSD returns the mod time of the symlink's containing
2570 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2571 if test "$*" = "X"; then
2573 set X `ls -t "$srcdir/configure" conftest.file`
2576 if test "$*" != "X $srcdir/configure conftest.file" \
2577 && test "$*" != "X conftest.file $srcdir/configure"; then
2579 # If neither matched, then we have a broken ls. This can happen
2580 # if, for instance, CONFIG_SHELL is bash and it inherits a
2581 # broken ls alias from the environment. This has actually
2582 # happened. Such a system could not be considered "sane".
2583 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2584 alias in your environment" "$LINENO" 5
2587 test "$2" = conftest.file
2593 as_fn_error "newly created file is older than distributed files!
2594 Check your system clock" "$LINENO" 5
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2598 test "$program_prefix" != NONE &&
2599 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2600 # Use a double $ so make ignores it.
2601 test "$program_suffix" != NONE &&
2602 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2603 # Double any \ or $.
2604 # By default was `s,x,x', remove it if useless.
2605 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2606 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2608 # expand $ac_aux_dir to an absolute path
2609 am_aux_dir=`cd $ac_aux_dir && pwd`
2611 if test x"${MISSING+set}" != xset; then
2614 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2616 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2619 # Use eval to expand $SHELL
2620 if eval "$MISSING --run true"; then
2621 am_missing_run="$MISSING --run "
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2625 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2628 if test x"${install_sh}" != xset; then
2631 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2633 install_sh="\${SHELL} $am_aux_dir/install-sh"
2637 # Installed binaries are usually stripped using `strip' when the user
2638 # run `make install-strip'. However `strip' might not be the right
2639 # tool to use in cross-compilation environments, therefore Automake
2640 # will honor the `STRIP' environment variable to overrule this program.
2641 if test "$cross_compiling" != no; then
2642 if test -n "$ac_tool_prefix"; then
2643 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2644 set dummy ${ac_tool_prefix}strip; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_STRIP+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2650 if test -n "$STRIP"; then
2651 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 STRIP=$ac_cv_prog_STRIP
2671 if test -n "$STRIP"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2673 $as_echo "$STRIP" >&6; }
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2681 if test -z "$ac_cv_prog_STRIP"; then
2683 # Extract the first word of "strip", so it can be a program name with args.
2684 set dummy strip; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2688 $as_echo_n "(cached) " >&6
2690 if test -n "$ac_ct_STRIP"; then
2691 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700 ac_cv_prog_ac_ct_STRIP="strip"
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2711 if test -n "$ac_ct_STRIP"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2713 $as_echo "$ac_ct_STRIP" >&6; }
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2719 if test "x$ac_ct_STRIP" = x; then
2722 case $cross_compiling:$ac_tool_warned in
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2726 ac_tool_warned=yes ;;
2731 STRIP="$ac_cv_prog_STRIP"
2735 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2738 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2739 if test -z "$MKDIR_P"; then
2740 if test "${ac_cv_path_mkdir+set}" = set; then :
2741 $as_echo_n "(cached) " >&6
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2747 test -z "$as_dir" && as_dir=.
2748 for ac_prog in mkdir gmkdir; do
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2751 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2752 'mkdir (GNU coreutils) '* | \
2753 'mkdir (coreutils) '* | \
2754 'mkdir (fileutils) '4.1*)
2755 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2765 test -d ./--version && rmdir ./--version
2766 if test "${ac_cv_path_mkdir+set}" = set; then
2767 MKDIR_P="$ac_cv_path_mkdir -p"
2769 # As a last resort, use the slow shell script. Don't cache a
2770 # value for MKDIR_P within a source directory, because that will
2771 # break other packages using the cache if that directory is
2772 # removed, or if the value is a relative name.
2773 MKDIR_P="$ac_install_sh -d"
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2777 $as_echo "$MKDIR_P" >&6; }
2781 [\\/$]* | ?:[\\/]*) ;;
2782 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2785 for ac_prog in gawk mawk nawk awk
2787 # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if test "${ac_cv_prog_AWK+set}" = set; then :
2792 $as_echo_n "(cached) " >&6
2794 if test -n "$AWK"; then
2795 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_AWK="$ac_prog"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 if test -n "$AWK"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2817 $as_echo "$AWK" >&6; }
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2824 test -n "$AWK" && break
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2828 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2830 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2831 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2832 $as_echo_n "(cached) " >&6
2834 cat >conftest.make <<\_ACEOF
2837 @echo '@@@%%%=$(MAKE)=@@@%%%'
2839 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2840 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2842 eval ac_cv_prog_make_${ac_make}_set=yes;;
2844 eval ac_cv_prog_make_${ac_make}_set=no;;
2848 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850 $as_echo "yes" >&6; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 SET_MAKE="MAKE=${MAKE-make}"
2858 rm -rf .tst 2>/dev/null
2859 mkdir .tst 2>/dev/null
2860 if test -d .tst; then
2865 rmdir .tst 2>/dev/null
2867 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2868 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2869 # is not polluted with repeated "-I."
2870 am__isrc=' -I$(srcdir)'
2871 # test to see if srcdir already configured
2872 if test -f $srcdir/config.status; then
2873 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2877 # test whether we have cygpath
2878 if test -z "$CYGPATH_W"; then
2879 if (cygpath --version) >/dev/null 2>/dev/null; then
2880 CYGPATH_W='cygpath -w'
2887 # Define the identity of the package.
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE "$PACKAGE"
2897 cat >>confdefs.h <<_ACEOF
2898 #define VERSION "$VERSION"
2901 # Some tools Automake needs.
2903 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2906 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2909 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2912 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2915 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2917 # We need awk for the "check" target. The system "awk" is bad on
2919 # Always define AMTAR for backward compatibility.
2921 AMTAR=${AMTAR-"${am_missing_run}tar"}
2923 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2932 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2933 # Check whether --enable-maintainer-mode was given.
2934 if test "${enable_maintainer_mode+set}" = set; then :
2935 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2937 USE_MAINTAINER_MODE=no
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2941 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2942 if test $USE_MAINTAINER_MODE = yes; then
2943 MAINTAINER_MODE_TRUE=
2944 MAINTAINER_MODE_FALSE='#'
2946 MAINTAINER_MODE_TRUE='#'
2947 MAINTAINER_MODE_FALSE=
2950 MAINT=$MAINTAINER_MODE_TRUE
2954 #----------------------------------------------------------------------------
2955 # Checks for various programs.
2956 #----------------------------------------------------------------------------
2957 CFLAGS="-Wno-long-long $CFLAGS"
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2960 $as_echo_n "checking whether ln -s works... " >&6; }
2962 if test "$LN_S" = "ln -s"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2964 $as_echo "yes" >&6; }
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2967 $as_echo "no, using $LN_S" >&6; }
2971 ac_cpp='$CPP $CPPFLAGS'
2972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2975 if test -n "$ac_tool_prefix"; then
2976 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2977 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if test "${ac_cv_prog_CC+set}" = set; then :
2981 $as_echo_n "(cached) " >&6
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 if test -n "$CC"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3014 if test -z "$ac_cv_prog_CC"; then
3016 # Extract the first word of "gcc", so it can be a program name with args.
3017 set dummy gcc; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3021 $as_echo_n "(cached) " >&6
3023 if test -n "$ac_ct_CC"; then
3024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_ac_ct_CC="gcc"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3044 if test -n "$ac_ct_CC"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3046 $as_echo "$ac_ct_CC" >&6; }
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3052 if test "x$ac_ct_CC" = x; then
3055 case $cross_compiling:$ac_tool_warned in
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3059 ac_tool_warned=yes ;;
3067 if test -z "$CC"; then
3068 if test -n "$ac_tool_prefix"; then
3069 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3070 set dummy ${ac_tool_prefix}cc; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if test "${ac_cv_prog_CC+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3076 if test -n "$CC"; then
3077 ac_cv_prog_CC="$CC" # Let the user override the test.
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086 ac_cv_prog_CC="${ac_tool_prefix}cc"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 if test -n "$CC"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3099 $as_echo "$CC" >&6; }
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3108 if test -z "$CC"; then
3109 # Extract the first word of "cc", so it can be a program name with args.
3110 set dummy cc; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if test "${ac_cv_prog_CC+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3116 if test -n "$CC"; then
3117 ac_cv_prog_CC="$CC" # Let the user override the test.
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3128 ac_prog_rejected=yes
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 if test $ac_prog_rejected = yes; then
3140 # We found a bogon in the path, so make sure we never use it.
3141 set dummy $ac_cv_prog_CC
3143 if test $# != 0; then
3144 # We chose a different compiler from the bogus one.
3145 # However, it has the same basename, so the bogon will be chosen
3146 # first if we set CC to just the basename; use the full file name.
3148 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3154 if test -n "$CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3164 if test -z "$CC"; then
3165 if test -n "$ac_tool_prefix"; then
3166 for ac_prog in cl.exe
3168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if test "${ac_cv_prog_CC+set}" = set; then :
3173 $as_echo_n "(cached) " >&6
3175 if test -n "$CC"; then
3176 ac_cv_prog_CC="$CC" # Let the user override the test.
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 if test -n "$CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198 $as_echo "$CC" >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3205 test -n "$CC" && break
3208 if test -z "$CC"; then
3210 for ac_prog in cl.exe
3212 # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3217 $as_echo_n "(cached) " >&6
3219 if test -n "$ac_ct_CC"; then
3220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229 ac_cv_prog_ac_ct_CC="$ac_prog"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3240 if test -n "$ac_ct_CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3242 $as_echo "$ac_ct_CC" >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3249 test -n "$ac_ct_CC" && break
3252 if test "x$ac_ct_CC" = x; then
3255 case $cross_compiling:$ac_tool_warned in
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3259 ac_tool_warned=yes ;;
3268 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error "no acceptable C compiler found in \$PATH
3271 See \`config.log' for more details." "$LINENO" 5; }
3273 # Provide some information about the compiler.
3274 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3277 for ac_option in --version -v -V -qversion; do
3278 { { ac_try="$ac_compiler $ac_option >&5"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 $as_echo "$ac_try_echo"; } >&5
3285 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3287 if test -s conftest.err; then
3289 ... rest of stderr output deleted ...
3290 10q' conftest.err >conftest.er1
3291 cat conftest.er1 >&5
3293 rm -f conftest.er1 conftest.err
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3309 ac_clean_files_save=$ac_clean_files
3310 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3311 # Try to create an executable without -o first, disregard a.out.
3312 # It will help us diagnose broken compilers, and finding out an intuition
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3315 $as_echo_n "checking whether the C compiler works... " >&6; }
3316 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3318 # The possible output files:
3319 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3322 for ac_file in $ac_files
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3331 if { { ac_try="$ac_link_default"
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_link_default") 2>&5
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; then :
3342 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3343 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3344 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3345 # so that the user can short-circuit this test for compilers unknown to
3347 for ac_file in $ac_files ''
3349 test -f "$ac_file" || continue
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3354 # We found the default executable, but exeext='' is most
3358 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3360 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3362 # We set ac_cv_exeext here because the later test for it is not
3363 # safe: cross compilers may not add the suffix if given an `-o'
3364 # argument, so we may need to know it at that point already.
3365 # Even if this section looks crufty: it has the advantage of
3372 test "$ac_cv_exeext" = no && ac_cv_exeext=
3377 if test -z "$ac_file"; then :
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 $as_echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 { as_fn_set_status 77
3386 as_fn_error "C compiler cannot create executables
3387 See \`config.log' for more details." "$LINENO" 5; }; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3390 $as_echo "yes" >&6; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3393 $as_echo_n "checking for C compiler default output file name... " >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3395 $as_echo "$ac_file" >&6; }
3396 ac_exeext=$ac_cv_exeext
3398 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3399 ac_clean_files=$ac_clean_files_save
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3401 $as_echo_n "checking for suffix of executables... " >&6; }
3402 if { { ac_try="$ac_link"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_link") 2>&5
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; then :
3413 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3414 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3415 # work properly (i.e., refer to `conftest.exe'), while it won't with
3417 for ac_file in conftest.exe conftest conftest.*; do
3418 test -f "$ac_file" || continue
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429 as_fn_error "cannot compute suffix of executables: cannot compile and link
3430 See \`config.log' for more details." "$LINENO" 5; }
3432 rm -f conftest conftest$ac_cv_exeext
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3434 $as_echo "$ac_cv_exeext" >&6; }
3436 rm -f conftest.$ac_ext
3437 EXEEXT=$ac_cv_exeext
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3445 FILE *f = fopen ("conftest.out", "w");
3446 return ferror (f) || fclose (f) != 0;
3452 ac_clean_files="$ac_clean_files conftest.out"
3453 # Check that the compiler produces executables we can run. If not, either
3454 # the compiler is broken, or we cross compile.
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3456 $as_echo_n "checking whether we are cross compiling... " >&6; }
3457 if test "$cross_compiling" != yes; then
3458 { { ac_try="$ac_link"
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_link") 2>&5
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }
3469 if { ac_try='./conftest$ac_cv_exeext'
3470 { { case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_try") 2>&5
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; }; then
3482 if test "$cross_compiling" = maybe; then
3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error "cannot run C compiled programs.
3488 If you meant to cross compile, use \`--host'.
3489 See \`config.log' for more details." "$LINENO" 5; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3494 $as_echo "$cross_compiling" >&6; }
3496 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3497 ac_clean_files=$ac_clean_files_save
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3499 $as_echo_n "checking for suffix of object files... " >&6; }
3500 if test "${ac_cv_objext+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3514 rm -f conftest.o conftest.obj
3515 if { { ac_try="$ac_compile"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_compile") 2>&5
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }; then :
3526 for ac_file in conftest.o conftest.obj conftest.*; do
3527 test -f "$ac_file" || continue;
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3535 $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error "cannot compute suffix of object files: cannot compile
3541 See \`config.log' for more details." "$LINENO" 5; }
3543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3546 $as_echo "$ac_cv_objext" >&6; }
3547 OBJEXT=$ac_cv_objext
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3550 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3551 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3568 if ac_fn_c_try_compile "$LINENO"; then :
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3578 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3579 if test $ac_compiler_gnu = yes; then
3584 ac_test_CFLAGS=${CFLAGS+set}
3585 ac_save_CFLAGS=$CFLAGS
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3587 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3588 if test "${ac_cv_prog_cc_g+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3591 ac_save_c_werror_flag=$ac_c_werror_flag
3592 ac_c_werror_flag=yes
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3606 if ac_fn_c_try_compile "$LINENO"; then :
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3621 if ac_fn_c_try_compile "$LINENO"; then :
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3637 if ac_fn_c_try_compile "$LINENO"; then :
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 ac_c_werror_flag=$ac_save_c_werror_flag
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3648 $as_echo "$ac_cv_prog_cc_g" >&6; }
3649 if test "$ac_test_CFLAGS" = set; then
3650 CFLAGS=$ac_save_CFLAGS
3651 elif test $ac_cv_prog_cc_g = yes; then
3652 if test "$GCC" = yes; then
3658 if test "$GCC" = yes; then
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3665 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3666 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3667 $as_echo_n "(cached) " >&6
3669 ac_cv_prog_cc_c89=no
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3675 #include <sys/types.h>
3676 #include <sys/stat.h>
3677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3678 struct buf { int x; };
3679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3680 static char *e (p, i)
3686 static char *f (char * (*g) (char **, int), char **p, ...)
3691 s = g (p, va_arg (v,int));
3696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3697 function prototypes and stuff, but not '\xHH' hex character constants.
3698 These don't provoke an error unfortunately, instead are silently treated
3699 as 'x'. The following induces an error, until -std is added to get
3700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3701 array size at least. It's necessary to write '\x00'==0 to get something
3702 that's true only with -std. */
3703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3705 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3706 inside strings and character constants. */
3708 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3710 int test (int i, double x);
3711 struct s1 {int (*f) (int a);};
3712 struct s2 {int (*f) (double a);};
3713 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3719 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3724 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3727 CC="$ac_save_CC $ac_arg"
3728 if ac_fn_c_try_compile "$LINENO"; then :
3729 ac_cv_prog_cc_c89=$ac_arg
3731 rm -f core conftest.err conftest.$ac_objext
3732 test "x$ac_cv_prog_cc_c89" != "xno" && break
3734 rm -f conftest.$ac_ext
3739 case "x$ac_cv_prog_cc_c89" in
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3742 $as_echo "none needed" >&6; } ;;
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3745 $as_echo "unsupported" >&6; } ;;
3747 CC="$CC $ac_cv_prog_cc_c89"
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3749 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3751 if test "x$ac_cv_prog_cc_c89" != xno; then :
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 DEPDIR="${am__leading_dot}deps"
3762 ac_config_commands="$ac_config_commands depfiles"
3765 am_make=${MAKE-make}
3766 cat > confinc << 'END'
3768 @echo this is the am__doit target
3771 # If we don't find an include directive, just comment out the code.
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3773 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3777 # First try GNU make style include.
3778 echo "include confinc" > confmf
3779 # Ignore all kinds of additional output from `make'.
3780 case `$am_make -s -f confmf 2> /dev/null` in #(
3781 *the\ am__doit\ target*)
3787 # Now try BSD make style include.
3788 if test "$am__include" = "#"; then
3789 echo '.include "confinc"' > confmf
3790 case `$am_make -s -f confmf 2> /dev/null` in #(
3791 *the\ am__doit\ target*)
3792 am__include=.include
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3801 $as_echo "$_am_result" >&6; }
3802 rm -f confinc confmf
3804 # Check whether --enable-dependency-tracking was given.
3805 if test "${enable_dependency_tracking+set}" = set; then :
3806 enableval=$enable_dependency_tracking;
3809 if test "x$enable_dependency_tracking" != xno; then
3810 am_depcomp="$ac_aux_dir/depcomp"
3813 if test "x$enable_dependency_tracking" != xno; then
3823 depcc="$CC" am_compiler_list=
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3826 $as_echo_n "checking dependency style of $depcc... " >&6; }
3827 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3830 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3831 # We make a subdir and do the tests there. Otherwise we can end up
3832 # making bogus files that we don't know about and never remove. For
3833 # instance it was reported that on HP-UX the gcc test will end up
3834 # making a dummy file named `D' -- because `-MD' means `put the output
3837 # Copy depcomp to subdir because otherwise we won't find it if we're
3838 # using a relative directory.
3839 cp "$am_depcomp" conftest.dir
3841 # We will build objects and dependencies in a subdirectory because
3842 # it helps to detect inapplicable dependency modes. For instance
3843 # both Tru64's cc and ICC support -MD to output dependencies as a
3844 # side effect of compilation, but ICC will put the dependencies in
3845 # the current directory while Tru64 will put them in the object
3849 am_cv_CC_dependencies_compiler_type=none
3850 if test "$am_compiler_list" = ""; then
3851 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3854 case " $depcc " in #(
3855 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3858 for depmode in $am_compiler_list; do
3859 # Setup a source with many dependencies, because some compilers
3860 # like to wrap large dependency lists on column 80 (with \), and
3861 # we should not choose a depcomp mode which is confused by this.
3863 # We need to recreate these files for each test, as the compiler may
3864 # overwrite some of them when testing with obscure command lines.
3865 # This happens at least with the AIX C compiler.
3867 for i in 1 2 3 4 5 6; do
3868 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3869 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3870 # Solaris 8's {/usr,}/bin/sh.
3871 touch sub/conftst$i.h
3873 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3875 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3876 # mode. It turns out that the SunPro C++ compiler does not properly
3877 # handle `-M -o', and we need to detect this. Also, some Intel
3878 # versions had trouble with output in subdirs
3879 am__obj=sub/conftest.${OBJEXT-o}
3880 am__minus_obj="-o $am__obj"
3883 # This depmode causes a compiler race in universal mode.
3884 test "$am__universal" = false || continue
3887 # after this tag, mechanisms are not by side-effect, so they'll
3888 # only be used when explicitly requested
3889 if test "x$enable_dependency_tracking" = xyes; then
3895 msvisualcpp | msvcmsys)
3896 # This compiler won't grok `-c -o', but also, the minuso test has
3897 # not run yet. These depmodes are late enough in the game, and
3898 # so weak that their functioning should not be impacted.
3899 am__obj=conftest.${OBJEXT-o}
3904 if depmode=$depmode \
3905 source=sub/conftest.c object=$am__obj \
3906 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3907 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3908 >/dev/null 2>conftest.err &&
3909 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3910 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3911 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3913 # icc doesn't choke on unknown options, it will just issue warnings
3914 # or remarks (even with -Werror). So we grep stderr for any message
3915 # that says an option was ignored or not supported.
3916 # When given -MP, icc 7.0 and 7.1 complain thusly:
3917 # icc: Command line warning: ignoring option '-M'; no argument required
3918 # The diagnosis changed in icc 8.0:
3919 # icc: Command line remark: option '-MP' not supported
3920 if (grep 'ignoring option' conftest.err ||
3921 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3922 am_cv_CC_dependencies_compiler_type=$depmode
3931 am_cv_CC_dependencies_compiler_type=none
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3936 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3937 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3940 test "x$enable_dependency_tracking" != xno \
3941 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3943 am__fastdepCC_FALSE='#'
3945 am__fastdepCC_TRUE='#'
3946 am__fastdepCC_FALSE=
3950 if test "x$CC" != xcc; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3952 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3955 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3957 set dummy $CC; ac_cc=`$as_echo "$2" |
3958 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3959 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3960 $as_echo_n "(cached) " >&6
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3973 # Make sure it works both with $CC and with simple cc.
3974 # We do the test twice because some compilers refuse to overwrite an
3975 # existing .o file with -o, though they will create one.
3976 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3978 if { { case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_try") 2>&5
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; } &&
3988 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 $as_echo "$ac_try_echo"; } >&5
3994 (eval "$ac_try") 2>&5
3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; };
3999 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4000 if test "x$CC" != xcc; then
4001 # Test first that cc exists at all.
4002 if { ac_try='cc -c conftest.$ac_ext >&5'
4003 { { case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_try") 2>&5
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; }; then
4013 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4015 if { { case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020 $as_echo "$ac_try_echo"; } >&5
4021 (eval "$ac_try") 2>&5
4023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4024 test $ac_status = 0; } &&
4025 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030 $as_echo "$ac_try_echo"; } >&5
4031 (eval "$ac_try") 2>&5
4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034 test $ac_status = 0; };
4039 # cc exists but doesn't like -o.
4040 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4045 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4047 rm -f core conftest*
4050 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4052 $as_echo "yes" >&6; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4057 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4061 # FIXME: we rely on the cache variable name because
4062 # there is no other way.
4064 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4065 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4066 if test "$am_t" != yes; then
4067 # Losing compiler, so override with the script.
4068 # FIXME: It is wrong to rewrite CC.
4069 # But if we don't then we get into trouble of one sort or another.
4070 # A longer-term fix would be to have automake use am__CC in this case,
4071 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4072 CC="$am_aux_dir/compile $CC"
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4082 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4083 # On Suns, sometimes $CPP names a directory.
4084 if test -n "$CPP" && test -d "$CPP"; then
4087 if test -z "$CPP"; then
4088 if test "${ac_cv_prog_CPP+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4091 # Double quotes because CPP needs to be expanded
4092 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4095 for ac_c_preproc_warn_flag in '' yes
4097 # Use a header file that comes with gcc, so configuring glibc
4098 # with a fresh cross-compiler works.
4099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100 # <limits.h> exists even on freestanding compilers.
4101 # On the NeXT, cc -E runs the code through the compiler's parser,
4102 # not just through cpp. "Syntax error" is here to catch this case.
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4106 # include <limits.h>
4108 # include <assert.h>
4112 if ac_fn_c_try_cpp "$LINENO"; then :
4115 # Broken: fails on valid input.
4118 rm -f conftest.err conftest.$ac_ext
4120 # OK, works on sane cases. Now check whether nonexistent headers
4121 # can be detected and how.
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #include <ac_nonexistent.h>
4126 if ac_fn_c_try_cpp "$LINENO"; then :
4127 # Broken: success on invalid input.
4130 # Passes both tests.
4134 rm -f conftest.err conftest.$ac_ext
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.err conftest.$ac_ext
4139 if $ac_preproc_ok; then :
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4152 $as_echo "$CPP" >&6; }
4154 for ac_c_preproc_warn_flag in '' yes
4156 # Use a header file that comes with gcc, so configuring glibc
4157 # with a fresh cross-compiler works.
4158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4159 # <limits.h> exists even on freestanding compilers.
4160 # On the NeXT, cc -E runs the code through the compiler's parser,
4161 # not just through cpp. "Syntax error" is here to catch this case.
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4165 # include <limits.h>
4167 # include <assert.h>
4171 if ac_fn_c_try_cpp "$LINENO"; then :
4174 # Broken: fails on valid input.
4177 rm -f conftest.err conftest.$ac_ext
4179 # OK, works on sane cases. Now check whether nonexistent headers
4180 # can be detected and how.
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183 #include <ac_nonexistent.h>
4185 if ac_fn_c_try_cpp "$LINENO"; then :
4186 # Broken: success on invalid input.
4189 # Passes both tests.
4193 rm -f conftest.err conftest.$ac_ext
4196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4197 rm -f conftest.err conftest.$ac_ext
4198 if $ac_preproc_ok; then :
4201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4203 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4204 See \`config.log' for more details." "$LINENO" 5; }
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214 ac_cpp='$CXXCPP $CPPFLAGS'
4215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4218 if test -z "$CXX"; then
4219 if test -n "$CCC"; then
4222 if test -n "$ac_tool_prefix"; then
4223 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if test "${ac_cv_prog_CXX+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
4232 if test -n "$CXX"; then
4233 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 if test -n "$CXX"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4255 $as_echo "$CXX" >&6; }
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4262 test -n "$CXX" && break
4265 if test -z "$CXX"; then
4267 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4269 # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
4276 if test -n "$ac_ct_CXX"; then
4277 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_ac_ct_CXX="$ac_prog"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4297 if test -n "$ac_ct_CXX"; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4299 $as_echo "$ac_ct_CXX" >&6; }
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4306 test -n "$ac_ct_CXX" && break
4309 if test "x$ac_ct_CXX" = x; then
4312 case $cross_compiling:$ac_tool_warned in
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4316 ac_tool_warned=yes ;;
4324 # Provide some information about the compiler.
4325 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4328 for ac_option in --version -v -V -qversion; do
4329 { { ac_try="$ac_compiler $ac_option >&5"
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4338 if test -s conftest.err; then
4340 ... rest of stderr output deleted ...
4341 10q' conftest.err >conftest.er1
4342 cat conftest.er1 >&5
4344 rm -f conftest.er1 conftest.err
4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4350 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4351 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4368 if ac_fn_cxx_try_compile "$LINENO"; then :
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4378 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4379 if test $ac_compiler_gnu = yes; then
4384 ac_test_CXXFLAGS=${CXXFLAGS+set}
4385 ac_save_CXXFLAGS=$CXXFLAGS
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4387 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4388 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4389 $as_echo_n "(cached) " >&6
4391 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4392 ac_cxx_werror_flag=yes
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4406 if ac_fn_cxx_try_compile "$LINENO"; then :
4407 ac_cv_prog_cxx_g=yes
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4421 if ac_fn_cxx_try_compile "$LINENO"; then :
4424 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4437 if ac_fn_cxx_try_compile "$LINENO"; then :
4438 ac_cv_prog_cxx_g=yes
4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4448 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4449 if test "$ac_test_CXXFLAGS" = set; then
4450 CXXFLAGS=$ac_save_CXXFLAGS
4451 elif test $ac_cv_prog_cxx_g = yes; then
4452 if test "$GXX" = yes; then
4458 if test "$GXX" = yes; then
4465 ac_cpp='$CPP $CPPFLAGS'
4466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470 depcc="$CXX" am_compiler_list=
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4473 $as_echo_n "checking dependency style of $depcc... " >&6; }
4474 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4477 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4478 # We make a subdir and do the tests there. Otherwise we can end up
4479 # making bogus files that we don't know about and never remove. For
4480 # instance it was reported that on HP-UX the gcc test will end up
4481 # making a dummy file named `D' -- because `-MD' means `put the output
4484 # Copy depcomp to subdir because otherwise we won't find it if we're
4485 # using a relative directory.
4486 cp "$am_depcomp" conftest.dir
4488 # We will build objects and dependencies in a subdirectory because
4489 # it helps to detect inapplicable dependency modes. For instance
4490 # both Tru64's cc and ICC support -MD to output dependencies as a
4491 # side effect of compilation, but ICC will put the dependencies in
4492 # the current directory while Tru64 will put them in the object
4496 am_cv_CXX_dependencies_compiler_type=none
4497 if test "$am_compiler_list" = ""; then
4498 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4501 case " $depcc " in #(
4502 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4505 for depmode in $am_compiler_list; do
4506 # Setup a source with many dependencies, because some compilers
4507 # like to wrap large dependency lists on column 80 (with \), and
4508 # we should not choose a depcomp mode which is confused by this.
4510 # We need to recreate these files for each test, as the compiler may
4511 # overwrite some of them when testing with obscure command lines.
4512 # This happens at least with the AIX C compiler.
4514 for i in 1 2 3 4 5 6; do
4515 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4516 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4517 # Solaris 8's {/usr,}/bin/sh.
4518 touch sub/conftst$i.h
4520 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4522 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4523 # mode. It turns out that the SunPro C++ compiler does not properly
4524 # handle `-M -o', and we need to detect this. Also, some Intel
4525 # versions had trouble with output in subdirs
4526 am__obj=sub/conftest.${OBJEXT-o}
4527 am__minus_obj="-o $am__obj"
4530 # This depmode causes a compiler race in universal mode.
4531 test "$am__universal" = false || continue
4534 # after this tag, mechanisms are not by side-effect, so they'll
4535 # only be used when explicitly requested
4536 if test "x$enable_dependency_tracking" = xyes; then
4542 msvisualcpp | msvcmsys)
4543 # This compiler won't grok `-c -o', but also, the minuso test has
4544 # not run yet. These depmodes are late enough in the game, and
4545 # so weak that their functioning should not be impacted.
4546 am__obj=conftest.${OBJEXT-o}
4551 if depmode=$depmode \
4552 source=sub/conftest.c object=$am__obj \
4553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4554 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4555 >/dev/null 2>conftest.err &&
4556 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4557 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4558 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4559 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4560 # icc doesn't choke on unknown options, it will just issue warnings
4561 # or remarks (even with -Werror). So we grep stderr for any message
4562 # that says an option was ignored or not supported.
4563 # When given -MP, icc 7.0 and 7.1 complain thusly:
4564 # icc: Command line warning: ignoring option '-M'; no argument required
4565 # The diagnosis changed in icc 8.0:
4566 # icc: Command line remark: option '-MP' not supported
4567 if (grep 'ignoring option' conftest.err ||
4568 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4569 am_cv_CXX_dependencies_compiler_type=$depmode
4578 am_cv_CXX_dependencies_compiler_type=none
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4583 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4584 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4587 test "x$enable_dependency_tracking" != xno \
4588 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4589 am__fastdepCXX_TRUE=
4590 am__fastdepCXX_FALSE='#'
4592 am__fastdepCXX_TRUE='#'
4593 am__fastdepCXX_FALSE=
4597 # AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with
4598 # autoconf 2.59). If we ever have any Objective-C code in the Valgrind code
4599 # base (eg. most likely as Darwin-specific tests) we'll need one of the
4601 # - put AC_PROG_OBJC in a Darwin-specific part of this file
4602 # - Use AC_PROG_OBJC here and up the minimum autoconf version
4603 # - Use the following, which is apparently equivalent:
4604 # m4_ifdef([AC_PROG_OBJC],
4606 # [AC_CHECK_TOOL([OBJC], [gcc])
4608 # AC_SUBST([OBJCFLAGS])
4610 if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4612 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4618 if test -n "$RANLIB"; then
4619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 RANLIB=$ac_cv_prog_RANLIB
4639 if test -n "$RANLIB"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4641 $as_echo "$RANLIB" >&6; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4649 if test -z "$ac_cv_prog_RANLIB"; then
4650 ac_ct_RANLIB=$RANLIB
4651 # Extract the first word of "ranlib", so it can be a program name with args.
4652 set dummy ranlib; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4658 if test -n "$ac_ct_RANLIB"; then
4659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_ac_ct_RANLIB="ranlib"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4679 if test -n "$ac_ct_RANLIB"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4681 $as_echo "$ac_ct_RANLIB" >&6; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4687 if test "x$ac_ct_RANLIB" = x; then
4690 case $cross_compiling:$ac_tool_warned in
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4694 ac_tool_warned=yes ;;
4696 RANLIB=$ac_ct_RANLIB
4699 RANLIB="$ac_cv_prog_RANLIB"
4702 # provide a very basic definition for AC_PROG_SED if it's not provided by
4703 # autoconf (as e.g. in autoconf 2.59).
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4706 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4707 if test "${ac_cv_path_SED+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4710 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4711 for ac_i in 1 2 3 4 5 6 7; do
4712 ac_script="$ac_script$as_nl$ac_script"
4714 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4715 { ac_script=; unset ac_script;}
4716 if test -z "$SED"; then
4717 ac_path_SED_found=false
4718 # Loop through the user's path and test for each of PROGNAME-LIST
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 test -z "$as_dir" && as_dir=.
4724 for ac_prog in sed gsed; do
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4727 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4728 # Check for GNU ac_path_SED and select it if it is found.
4729 # Check for GNU $ac_path_SED
4730 case `"$ac_path_SED" --version 2>&1` in
4732 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4735 $as_echo_n 0123456789 >"conftest.in"
4738 cat "conftest.in" "conftest.in" >"conftest.tmp"
4739 mv "conftest.tmp" "conftest.in"
4740 cp "conftest.in" "conftest.nl"
4741 $as_echo '' >> "conftest.nl"
4742 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4744 as_fn_arith $ac_count + 1 && ac_count=$as_val
4745 if test $ac_count -gt ${ac_path_SED_max-0}; then
4746 # Best one so far, save it but keep looking for a better one
4747 ac_cv_path_SED="$ac_path_SED"
4748 ac_path_SED_max=$ac_count
4750 # 10*(2^10) chars as input seems more than enough
4751 test $ac_count -gt 10 && break
4753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4756 $ac_path_SED_found && break 3
4761 if test -z "$ac_cv_path_SED"; then
4762 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4770 $as_echo "$ac_cv_path_SED" >&6; }
4771 SED="$ac_cv_path_SED"
4775 # If no AR variable was specified, look up the name of the archiver. Otherwise
4776 # do not touch the AR variable.
4777 if test "x$AR" = "x"; then
4778 for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar"
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if test "${ac_cv_path_AR+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4789 ac_cv_path_AR="$AR" # Let the user override the test with a path.
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 if test -n "$AR"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4813 $as_echo "$AR" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4820 test -n "$AR" && break
4822 test -n "$AR" || AR="ar"
4827 # Check for the compiler support
4828 if test "${GCC}" != "yes" ; then
4829 as_fn_error "Valgrind relies on GCC to be compiled" "$LINENO" 5
4832 # figure out where perl lives
4833 # Extract the first word of "perl", so it can be a program name with args.
4834 set dummy perl; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if test "${ac_cv_path_PERL+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4842 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4852 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 PERL=$ac_cv_path_PERL
4864 if test -n "$PERL"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4866 $as_echo "$PERL" >&6; }
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4874 # figure out where gdb lives
4875 # Extract the first word of "gdb", so it can be a program name with args.
4876 set dummy gdb; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if test "${ac_cv_path_GDB+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
4884 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
4907 if test -n "$GDB"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
4909 $as_echo "$GDB" >&6; }
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4917 cat >>confdefs.h <<_ACEOF
4918 #define GDB_PATH "$GDB"
4922 # some older automake's don't have it so try something on our own
4923 # By default we simply use the C compiler to build assembly code.
4925 test "${CCAS+set}" = set || CCAS=$CC
4926 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4930 depcc="$CCAS" am_compiler_list=
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4933 $as_echo_n "checking dependency style of $depcc... " >&6; }
4934 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4935 $as_echo_n "(cached) " >&6
4937 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4938 # We make a subdir and do the tests there. Otherwise we can end up
4939 # making bogus files that we don't know about and never remove. For
4940 # instance it was reported that on HP-UX the gcc test will end up
4941 # making a dummy file named `D' -- because `-MD' means `put the output
4944 # Copy depcomp to subdir because otherwise we won't find it if we're
4945 # using a relative directory.
4946 cp "$am_depcomp" conftest.dir
4948 # We will build objects and dependencies in a subdirectory because
4949 # it helps to detect inapplicable dependency modes. For instance
4950 # both Tru64's cc and ICC support -MD to output dependencies as a
4951 # side effect of compilation, but ICC will put the dependencies in
4952 # the current directory while Tru64 will put them in the object
4956 am_cv_CCAS_dependencies_compiler_type=none
4957 if test "$am_compiler_list" = ""; then
4958 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4963 for depmode in $am_compiler_list; do
4964 # Setup a source with many dependencies, because some compilers
4965 # like to wrap large dependency lists on column 80 (with \), and
4966 # we should not choose a depcomp mode which is confused by this.
4968 # We need to recreate these files for each test, as the compiler may
4969 # overwrite some of them when testing with obscure command lines.
4970 # This happens at least with the AIX C compiler.
4972 for i in 1 2 3 4 5 6; do
4973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4975 # Solaris 8's {/usr,}/bin/sh.
4976 touch sub/conftst$i.h
4978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4980 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4981 # mode. It turns out that the SunPro C++ compiler does not properly
4982 # handle `-M -o', and we need to detect this. Also, some Intel
4983 # versions had trouble with output in subdirs
4984 am__obj=sub/conftest.${OBJEXT-o}
4985 am__minus_obj="-o $am__obj"
4988 # This depmode causes a compiler race in universal mode.
4989 test "$am__universal" = false || continue
4992 # after this tag, mechanisms are not by side-effect, so they'll
4993 # only be used when explicitly requested
4994 if test "x$enable_dependency_tracking" = xyes; then
5000 msvisualcpp | msvcmsys)
5001 # This compiler won't grok `-c -o', but also, the minuso test has
5002 # not run yet. These depmodes are late enough in the game, and
5003 # so weak that their functioning should not be impacted.
5004 am__obj=conftest.${OBJEXT-o}
5009 if depmode=$depmode \
5010 source=sub/conftest.c object=$am__obj \
5011 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5012 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5013 >/dev/null 2>conftest.err &&
5014 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5015 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5016 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5017 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5018 # icc doesn't choke on unknown options, it will just issue warnings
5019 # or remarks (even with -Werror). So we grep stderr for any message
5020 # that says an option was ignored or not supported.
5021 # When given -MP, icc 7.0 and 7.1 complain thusly:
5022 # icc: Command line warning: ignoring option '-M'; no argument required
5023 # The diagnosis changed in icc 8.0:
5024 # icc: Command line remark: option '-MP' not supported
5025 if (grep 'ignoring option' conftest.err ||
5026 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5027 am_cv_CCAS_dependencies_compiler_type=$depmode
5036 am_cv_CCAS_dependencies_compiler_type=none
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5041 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5042 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5045 test "x$enable_dependency_tracking" != xno \
5046 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5047 am__fastdepCCAS_TRUE=
5048 am__fastdepCCAS_FALSE='#'
5050 am__fastdepCCAS_TRUE='#'
5051 am__fastdepCCAS_FALSE=
5057 # Check if 'diff' supports -u (universal diffs) and use it if possible.
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
5060 $as_echo_n "checking for diff -u... " >&6; }
5063 # Comparing two identical files results in 0, unless -u isn't supported (as
5065 tmpfile="tmp-xxx-yyy-zzz"
5067 if diff -u $tmpfile $tmpfile ; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5069 $as_echo "yes" >&6; }
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5079 # We don't want gcc < 3.0
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
5081 $as_echo_n "checking for a supported version of gcc... " >&6; }
5083 gcc_version=`${CC} --version | head -n 1 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
5085 case "${gcc_version}" in
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
5088 $as_echo "no (${gcc_version})" >&6; }
5089 as_fn_error "please use a recent (>= gcc-3.0) version of gcc" "$LINENO" 5
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
5093 $as_echo "ok (${gcc_version})" >&6; }
5097 #----------------------------------------------------------------------------
5098 # Arch/OS/platform tests.
5099 #----------------------------------------------------------------------------
5100 # We create a number of arch/OS/platform-related variables. We prefix them
5101 # all with "VGCONF_" which indicates that they are defined at
5102 # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
5103 # variables used when compiling C files.
5105 # Make sure we can run config.sub.
5106 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5107 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5110 $as_echo_n "checking build system type... " >&6; }
5111 if test "${ac_cv_build+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5114 ac_build_alias=$build_alias
5115 test "x$ac_build_alias" = x &&
5116 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5117 test "x$ac_build_alias" = x &&
5118 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5119 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5120 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5124 $as_echo "$ac_cv_build" >&6; }
5125 case $ac_cv_build in
5127 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5130 ac_save_IFS=$IFS; IFS='-'
5136 # Remember, the first character of IFS is used to create $*,
5137 # except with old shells:
5140 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5144 $as_echo_n "checking host system type... " >&6; }
5145 if test "${ac_cv_host+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5148 if test "x$host_alias" = x; then
5149 ac_cv_host=$ac_cv_build
5151 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5152 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5157 $as_echo "$ac_cv_host" >&6; }
5160 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5163 ac_save_IFS=$IFS; IFS='-'
5169 # Remember, the first character of IFS is used to create $*,
5170 # except with old shells:
5173 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
5178 $as_echo_n "checking for a supported CPU... " >&6; }
5180 # ARCH_MAX reflects the most that this CPU can do: for example if it
5181 # is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
5182 # Ditto for amd64. It is used for more configuration below, but is not used
5183 # outside this file.
5184 case "${host_cpu}" in
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5187 $as_echo "ok (${host_cpu})" >&6; }
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5193 $as_echo "ok (${host_cpu})" >&6; }
5198 # This value can only happen on Linux, not on AIX
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5200 $as_echo "ok (${host_cpu})" >&6; }
5205 # Complexity. 'powerpc' on AIX implies a 64-bit capable CPU.
5206 # Whereas in Linux that means only a 32-bit capable CPU.
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5208 $as_echo "ok (${host_cpu})" >&6; }
5209 case "${host_os}" in
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5221 $as_echo "ok (${host_cpu})" >&6; }
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
5227 $as_echo "no (${host_cpu})" >&6; }
5228 as_fn_error "Unsupported host architecture. Sorry" "$LINENO" 5
5232 #----------------------------------------------------------------------------
5234 # Sometimes it's convenient to subvert the bi-arch build system and
5235 # just have a single build even though the underlying platform is
5236 # capable of both. Hence handle --enable-only64bit and
5237 # --enable-only32bit. Complain if both are issued :-)
5238 # [Actually, if either of these options are used, I think both get built,
5239 # but only one gets installed. So if you use an in-place build, both can be
5242 # Check if a 64-bit only build has been requested
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
5244 $as_echo_n "checking for a 64-bit only build... " >&6; }
5245 if test "${vg_cv_only64bit+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5248 # Check whether --enable-only64bit was given.
5249 if test "${enable_only64bit+set}" = set; then :
5250 enableval=$enable_only64bit; vg_cv_only64bit=$enableval
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
5257 $as_echo "$vg_cv_only64bit" >&6; }
5259 # Check if a 32-bit only build has been requested
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
5261 $as_echo_n "checking for a 32-bit only build... " >&6; }
5262 if test "${vg_cv_only32bit+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5265 # Check whether --enable-only32bit was given.
5266 if test "${enable_only32bit+set}" = set; then :
5267 enableval=$enable_only32bit; vg_cv_only32bit=$enableval
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
5274 $as_echo "$vg_cv_only32bit" >&6; }
5277 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5278 as_fn_error "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
5281 #----------------------------------------------------------------------------
5283 # VGCONF_OS is the primary build OS, eg. "linux". It is passed in to
5284 # compilation of many C files via -VGO_$(VGCONF_OS) and
5285 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
5287 $as_echo_n "checking for a supported OS... " >&6; }
5293 case "${host_os}" in
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5296 $as_echo "ok (${host_os})" >&6; }
5299 # Ok, this is linux. Check the kernel version
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5301 $as_echo_n "checking for the kernel version... " >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
5308 $as_echo "2.6 family (${kernel})" >&6; }
5310 $as_echo "#define KERNEL_2_6 1" >>confdefs.h
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5
5316 $as_echo "2.4 family (${kernel})" >&6; }
5318 $as_echo "#define KERNEL_2_4 1" >>confdefs.h
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5324 $as_echo "unsupported (${kernel})" >&6; }
5325 as_fn_error "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5333 $as_echo "ok (${host_os})" >&6; }
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5338 $as_echo "ok (${host_os})" >&6; }
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5343 $as_echo "ok (${host_os})" >&6; }
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5349 $as_echo "ok (${host_os})" >&6; }
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5355 $as_echo "ok (${host_os})" >&6; }
5358 $as_echo "#define DARWIN_10_5 100500" >>confdefs.h
5361 $as_echo "#define DARWIN_10_6 100600" >>confdefs.h
5364 $as_echo "#define DARWIN_10_7 100700" >>confdefs.h
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5368 $as_echo_n "checking for the kernel version... " >&6; }
5371 # Nb: for Darwin we set DEFAULT_SUPP here. That's because Darwin
5372 # has only one relevant version, the OS version. The `uname` check
5373 # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
5374 # X 10.5.6, and "Darwin 10.x" is Mac OS X 10.6.x Snow Leopard),
5375 # and we don't know of an macros similar to __GLIBC__ to get that info.
5377 # XXX: `uname -r` won't do the right thing for cross-compiles, but
5378 # that's not a problem yet.
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
5382 $as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
5384 $as_echo "#define DARWIN_VERS DARWIN_10_5" >>confdefs.h
5386 DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}"
5387 DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}"
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&5
5391 $as_echo "Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&6; }
5393 $as_echo "#define DARWIN_VERS DARWIN_10_6" >>confdefs.h
5395 DEFAULT_SUPP="darwin10.supp ${DEFAULT_SUPP}"
5396 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5400 $as_echo "unsupported (${kernel})" >&6; }
5401 as_fn_error "Valgrind works on Darwin 9.x and 10.x (Mac OS X 10.5 and 10.6)" "$LINENO" 5
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
5408 $as_echo "no (${host_os})" >&6; }
5409 as_fn_error "Valgrind is operating system specific. Sorry." "$LINENO" 5
5413 #----------------------------------------------------------------------------
5415 # If we are building on a 64 bit platform test to see if the system
5416 # supports building 32 bit programs and disable 32 bit support if it
5417 # does not support building 32 bit programs
5419 case "$ARCH_MAX-$VGCONF_OS" in
5420 amd64-linux|ppc64-linux)
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
5422 $as_echo_n "checking for 32 bit build support... " >&6; }
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5439 if ac_fn_c_try_link "$LINENO"; then :
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5442 $as_echo "yes" >&6; }
5446 vg_cv_only64bit="yes"
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5451 rm -f core conftest.err conftest.$ac_objext \
5452 conftest$ac_exeext conftest.$ac_ext
5453 CFLAGS=$safe_CFLAGS;;
5456 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5457 as_fn_error "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
5460 #----------------------------------------------------------------------------
5462 # VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64". By
5463 # default it's the same as ARCH_MAX. But if, say, we do a build on an amd64
5464 # machine, but --enable-only32bit has been requested, then ARCH_MAX (see
5465 # above) will be "amd64" since that reflects the most that this cpu can do,
5466 # but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
5467 # arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS). It is
5468 # passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
5469 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5472 # VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
5473 # It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
5474 # and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
5475 # It is empty if there is no secondary target.
5478 # VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
5479 # The entire system, including regression and performance tests, will be
5480 # built for this target. The "_CAPS" indicates that the name is in capital
5481 # letters, and it also uses '_' rather than '-' as a separator, because it's
5482 # used to create various Makefile variables, which are all in caps by
5483 # convention and cannot contain '-' characters. This is in contrast to
5484 # VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
5487 # VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
5488 # Valgrind and tools will also be built for this target, but not the
5489 # regression or performance tests.
5491 # By default, the primary arch is the same as the "max" arch, as commented
5492 # above (at the definition of ARCH_MAX). We may choose to downgrade it in
5493 # the big case statement just below here, in the case where we're building
5494 # on a 64 bit machine but have been requested only to do a 32 bit build.
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
5498 $as_echo_n "checking for a supported CPU/OS combination... " >&6; }
5500 # NB. The load address for a given platform may be specified in more
5501 # than one place, in some cases, depending on whether we're doing a biarch,
5502 # 32-bit only or 64-bit only build. eg see case for amd64-linux below.
5503 # Be careful to give consistent values in all subcases. Also, all four
5504 # valt_load_addres_{pri,sec}_{norml,inner} values must always be set,
5505 # even if it is to "0xUNSET".
5507 case "$ARCH_MAX-$VGCONF_OS" in
5509 VGCONF_ARCH_PRI="x86"
5511 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5512 VGCONF_PLATFORM_SEC_CAPS=""
5513 valt_load_address_pri_norml="0x38000000"
5514 valt_load_address_pri_inner="0x28000000"
5515 valt_load_address_sec_norml="0xUNSET"
5516 valt_load_address_sec_inner="0xUNSET"
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5518 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5521 valt_load_address_sec_norml="0xUNSET"
5522 valt_load_address_sec_inner="0xUNSET"
5523 if test x$vg_cv_only64bit = xyes; then
5524 VGCONF_ARCH_PRI="amd64"
5526 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5527 VGCONF_PLATFORM_SEC_CAPS=""
5528 valt_load_address_pri_norml="0x38000000"
5529 valt_load_address_pri_inner="0x28000000"
5530 elif test x$vg_cv_only32bit = xyes; then
5531 VGCONF_ARCH_PRI="x86"
5533 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5534 VGCONF_PLATFORM_SEC_CAPS=""
5535 valt_load_address_pri_norml="0x38000000"
5536 valt_load_address_pri_inner="0x28000000"
5538 VGCONF_ARCH_PRI="amd64"
5539 VGCONF_ARCH_SEC="x86"
5540 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5541 VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
5542 valt_load_address_pri_norml="0x38000000"
5543 valt_load_address_pri_inner="0x28000000"
5544 valt_load_address_sec_norml="0x38000000"
5545 valt_load_address_sec_inner="0x28000000"
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5548 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5551 VGCONF_ARCH_PRI="ppc32"
5553 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5554 VGCONF_PLATFORM_SEC_CAPS=""
5555 valt_load_address_pri_norml="0x38000000"
5556 valt_load_address_pri_inner="0x28000000"
5557 valt_load_address_sec_norml="0xUNSET"
5558 valt_load_address_sec_inner="0xUNSET"
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5560 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5563 valt_load_address_pri_norml="0xUNSET"
5564 valt_load_address_pri_inner="0xUNSET"
5565 valt_load_address_sec_norml="0xUNSET"
5566 valt_load_address_sec_inner="0xUNSET"
5567 if test x$vg_cv_only64bit = xyes; then
5568 VGCONF_ARCH_PRI="ppc64"
5570 VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5571 VGCONF_PLATFORM_SEC_CAPS=""
5572 elif test x$vg_cv_only32bit = xyes; then
5573 VGCONF_ARCH_PRI="ppc32"
5575 VGCONF_PLATFORM_PRI_CAPS="PPC32_AIX5"
5576 VGCONF_PLATFORM_SEC_CAPS=""
5578 VGCONF_ARCH_PRI="ppc64"
5579 VGCONF_ARCH_SEC="ppc32"
5580 VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5581 VGCONF_PLATFORM_SEC_CAPS="PPC32_AIX5"
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5584 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5587 valt_load_address_sec_norml="0xUNSET"
5588 valt_load_address_sec_inner="0xUNSET"
5589 if test x$vg_cv_only64bit = xyes; then
5590 VGCONF_ARCH_PRI="ppc64"
5592 VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5593 VGCONF_PLATFORM_SEC_CAPS=""
5594 valt_load_address_pri_norml="0x38000000"
5595 valt_load_address_pri_inner="0x28000000"
5596 elif test x$vg_cv_only32bit = xyes; then
5597 VGCONF_ARCH_PRI="ppc32"
5599 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5600 VGCONF_PLATFORM_SEC_CAPS=""
5601 valt_load_address_pri_norml="0x38000000"
5602 valt_load_address_pri_inner="0x28000000"
5604 VGCONF_ARCH_PRI="ppc64"
5605 VGCONF_ARCH_SEC="ppc32"
5606 VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5607 VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
5608 valt_load_address_pri_norml="0x38000000"
5609 valt_load_address_pri_inner="0x28000000"
5610 valt_load_address_sec_norml="0x38000000"
5611 valt_load_address_sec_inner="0x28000000"
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5614 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5617 VGCONF_ARCH_PRI="x86"
5619 VGCONF_PLATFORM_PRI_CAPS="X86_L4RE"
5620 VGCONF_PLATFORM_SEC_CAPS=""
5621 valt_load_address_pri_norml="0x38000000"
5622 valt_load_address_pri_inner="0x28000000"
5623 valt_load_address_sec_norml="0x38000000"
5624 valt_load_address_sec_inner="0x28000000"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5626 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5628 # Darwin gets identified as 32-bit even when it supports 64-bit.
5629 # (Not sure why, possibly because 'uname' returns "i386"?) Just about
5630 # all Macs support both 32-bit and 64-bit, so we just build both. If
5631 # someone has a really old 32-bit only machine they can (hopefully?)
5632 # build with --enable-only32bit. See bug 243362.
5633 x86-darwin|amd64-darwin)
5635 valt_load_address_sec_norml="0xUNSET"
5636 valt_load_address_sec_inner="0xUNSET"
5637 if test x$vg_cv_only64bit = xyes; then
5638 VGCONF_ARCH_PRI="amd64"
5640 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5641 VGCONF_PLATFORM_SEC_CAPS=""
5642 valt_load_address_pri_norml="0x138000000"
5643 valt_load_address_pri_inner="0x128000000"
5644 elif test x$vg_cv_only32bit = xyes; then
5645 VGCONF_ARCH_PRI="x86"
5647 VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
5648 VGCONF_PLATFORM_SEC_CAPS=""
5649 VGCONF_ARCH_PRI_CAPS="x86"
5650 valt_load_address_pri_norml="0x38000000"
5651 valt_load_address_pri_inner="0x28000000"
5653 VGCONF_ARCH_PRI="amd64"
5654 VGCONF_ARCH_SEC="x86"
5655 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5656 VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
5657 valt_load_address_pri_norml="0x138000000"
5658 valt_load_address_pri_inner="0x128000000"
5659 valt_load_address_sec_norml="0x38000000"
5660 valt_load_address_sec_inner="0x28000000"
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5663 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5666 VGCONF_ARCH_PRI="arm"
5667 VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
5668 VGCONF_PLATFORM_SEC_CAPS=""
5669 valt_load_address_pri_norml="0x38000000"
5670 valt_load_address_pri_inner="0x28000000"
5671 valt_load_address_sec_norml="0xUNSET"
5672 valt_load_address_sec_inner="0xUNSET"
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
5674 $as_echo "ok (${host_cpu}-${host_os})" >&6; }
5677 VGCONF_ARCH_PRI="unknown"
5678 VGCONF_ARCH_SEC="unknown"
5679 VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
5680 VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
5681 valt_load_address_pri_norml="0xUNSET"
5682 valt_load_address_pri_inner="0xUNSET"
5683 valt_load_address_sec_norml="0xUNSET"
5684 valt_load_address_sec_inner="0xUNSET"
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
5686 $as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5687 as_fn_error "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
5691 #----------------------------------------------------------------------------
5693 # Set up VGCONF_ARCHS_INCLUDE_<arch>. Either one or two of these become
5695 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5696 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
5697 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5698 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
5699 VGCONF_ARCHS_INCLUDE_X86_TRUE=
5700 VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
5702 VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
5703 VGCONF_ARCHS_INCLUDE_X86_FALSE=
5706 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5707 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
5708 VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
5709 VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
5711 VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
5712 VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
5715 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5716 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
5717 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5718 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
5719 VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
5720 VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
5722 VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
5723 VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
5726 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5727 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
5728 VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
5729 VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
5731 VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
5732 VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
5735 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5736 VGCONF_ARCHS_INCLUDE_ARM_TRUE=
5737 VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
5739 VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
5740 VGCONF_ARCHS_INCLUDE_ARM_FALSE=
5744 # Set up VGCONF_PLATFORMS_INCLUDE_<platform>. Either one or two of these
5746 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5747 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
5748 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
5749 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
5751 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
5752 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
5755 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
5756 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
5757 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
5759 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
5760 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
5763 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5764 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
5765 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
5766 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
5768 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
5769 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
5772 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX; then
5773 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE=
5774 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE='#'
5776 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE='#'
5777 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE=
5780 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX; then
5781 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
5782 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
5784 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
5785 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
5789 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5790 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5; then
5791 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE=
5792 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE='#'
5794 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE='#'
5795 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE=
5798 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5799 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE=
5800 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE='#'
5802 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE='#'
5803 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE=
5807 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5808 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
5809 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
5810 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
5812 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
5813 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
5816 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5817 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
5818 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
5820 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
5821 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
5824 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5825 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE=
5826 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE='#'
5828 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE='#'
5829 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE=
5834 # Similarly, set up VGCONF_OS_IS_<os>. Exactly one of these becomes defined.
5835 # Relies on the assumption that the primary and secondary targets are
5836 # for the same OS, so therefore only necessary to test the primary.
5837 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5838 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5839 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5840 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5841 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5842 VGCONF_OS_IS_LINUX_TRUE=
5843 VGCONF_OS_IS_LINUX_FALSE='#'
5845 VGCONF_OS_IS_LINUX_TRUE='#'
5846 VGCONF_OS_IS_LINUX_FALSE=
5849 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5850 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5851 VGCONF_OS_IS_AIX5_TRUE=
5852 VGCONF_OS_IS_AIX5_FALSE='#'
5854 VGCONF_OS_IS_AIX5_TRUE='#'
5855 VGCONF_OS_IS_AIX5_FALSE=
5858 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5859 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5860 VGCONF_OS_IS_DARWIN_TRUE=
5861 VGCONF_OS_IS_DARWIN_FALSE='#'
5863 VGCONF_OS_IS_DARWIN_TRUE='#'
5864 VGCONF_OS_IS_DARWIN_FALSE=
5867 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5868 VGCONF_OS_IS_L4RE_TRUE=
5869 VGCONF_OS_IS_L4RE_FALSE='#'
5871 VGCONF_OS_IS_L4RE_TRUE='#'
5872 VGCONF_OS_IS_L4RE_FALSE=
5877 # Sometimes, in the Makefile.am files, it's useful to know whether or not
5878 # there is a secondary target.
5879 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
5880 VGCONF_HAVE_PLATFORM_SEC_TRUE=
5881 VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
5883 VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
5884 VGCONF_HAVE_PLATFORM_SEC_FALSE=
5889 #----------------------------------------------------------------------------
5891 #----------------------------------------------------------------------------
5893 # Check if this should be built as an inner Valgrind, to be run within
5894 # another Valgrind. Choose the load address accordingly.
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
5898 $as_echo_n "checking for use as an inner Valgrind... " >&6; }
5899 if test "${vg_cv_inner+set}" = set; then :
5900 $as_echo_n "(cached) " >&6
5902 # Check whether --enable-inner was given.
5903 if test "${enable_inner+set}" = set; then :
5904 enableval=$enable_inner; vg_cv_inner=$enableval
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
5911 $as_echo "$vg_cv_inner" >&6; }
5912 if test "$vg_cv_inner" = yes; then
5914 $as_echo "#define ENABLE_INNER 1" >>confdefs.h
5916 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_inner
5917 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_inner
5919 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml
5920 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml
5924 #----------------------------------------------------------------------------
5925 # Libc and suppressions
5926 #----------------------------------------------------------------------------
5927 # This variable will collect the suppression files to be used.
5929 # This variable holds generated suppression files (such as the one used for
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5935 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5936 if test "${ac_cv_path_GREP+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5939 if test -z "$GREP"; then
5940 ac_path_GREP_found=false
5941 # Loop through the user's path and test for each of PROGNAME-LIST
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5946 test -z "$as_dir" && as_dir=.
5947 for ac_prog in grep ggrep; do
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5950 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5951 # Check for GNU ac_path_GREP and select it if it is found.
5952 # Check for GNU $ac_path_GREP
5953 case `"$ac_path_GREP" --version 2>&1` in
5955 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5958 $as_echo_n 0123456789 >"conftest.in"
5961 cat "conftest.in" "conftest.in" >"conftest.tmp"
5962 mv "conftest.tmp" "conftest.in"
5963 cp "conftest.in" "conftest.nl"
5964 $as_echo 'GREP' >> "conftest.nl"
5965 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5967 as_fn_arith $ac_count + 1 && ac_count=$as_val
5968 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5969 # Best one so far, save it but keep looking for a better one
5970 ac_cv_path_GREP="$ac_path_GREP"
5971 ac_path_GREP_max=$ac_count
5973 # 10*(2^10) chars as input seems more than enough
5974 test $ac_count -gt 10 && break
5976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5979 $ac_path_GREP_found && break 3
5984 if test -z "$ac_cv_path_GREP"; then
5985 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5988 ac_cv_path_GREP=$GREP
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5993 $as_echo "$ac_cv_path_GREP" >&6; }
5994 GREP="$ac_cv_path_GREP"
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5998 $as_echo_n "checking for egrep... " >&6; }
5999 if test "${ac_cv_path_EGREP+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6002 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6003 then ac_cv_path_EGREP="$GREP -E"
6005 if test -z "$EGREP"; then
6006 ac_path_EGREP_found=false
6007 # Loop through the user's path and test for each of PROGNAME-LIST
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6012 test -z "$as_dir" && as_dir=.
6013 for ac_prog in egrep; do
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6016 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6017 # Check for GNU ac_path_EGREP and select it if it is found.
6018 # Check for GNU $ac_path_EGREP
6019 case `"$ac_path_EGREP" --version 2>&1` in
6021 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6024 $as_echo_n 0123456789 >"conftest.in"
6027 cat "conftest.in" "conftest.in" >"conftest.tmp"
6028 mv "conftest.tmp" "conftest.in"
6029 cp "conftest.in" "conftest.nl"
6030 $as_echo 'EGREP' >> "conftest.nl"
6031 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6033 as_fn_arith $ac_count + 1 && ac_count=$as_val
6034 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6035 # Best one so far, save it but keep looking for a better one
6036 ac_cv_path_EGREP="$ac_path_EGREP"
6037 ac_path_EGREP_max=$ac_count
6039 # 10*(2^10) chars as input seems more than enough
6040 test $ac_count -gt 10 && break
6042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6045 $ac_path_EGREP_found && break 3
6050 if test -z "$ac_cv_path_EGREP"; then
6051 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6054 ac_cv_path_EGREP=$EGREP
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6060 $as_echo "$ac_cv_path_EGREP" >&6; }
6061 EGREP="$ac_cv_path_EGREP"
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6065 $as_echo_n "checking for ANSI C header files... " >&6; }
6066 if test "${ac_cv_header_stdc+set}" = set; then :
6067 $as_echo_n "(cached) " >&6
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6084 if ac_fn_c_try_compile "$LINENO"; then :
6085 ac_cv_header_stdc=yes
6087 ac_cv_header_stdc=no
6089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 if test $ac_cv_header_stdc = yes; then
6092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6099 $EGREP "memchr" >/dev/null 2>&1; then :
6102 ac_cv_header_stdc=no
6108 if test $ac_cv_header_stdc = yes; then
6109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6116 $EGREP "free" >/dev/null 2>&1; then :
6119 ac_cv_header_stdc=no
6125 if test $ac_cv_header_stdc = yes; then
6126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6127 if test "$cross_compiling" = yes; then :
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6134 #if ((' ' & 0x0FF) == 0x020)
6135 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6136 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6138 # define ISLOWER(c) \
6139 (('a' <= (c) && (c) <= 'i') \
6140 || ('j' <= (c) && (c) <= 'r') \
6141 || ('s' <= (c) && (c) <= 'z'))
6142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6150 for (i = 0; i < 256; i++)
6151 if (XOR (islower (i), ISLOWER (i))
6152 || toupper (i) != TOUPPER (i))
6157 if ac_fn_c_try_run "$LINENO"; then :
6160 ac_cv_header_stdc=no
6162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6163 conftest.$ac_objext conftest.beam conftest.$ac_ext
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6169 $as_echo "$ac_cv_header_stdc" >&6; }
6170 if test $ac_cv_header_stdc = yes; then
6172 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6176 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6177 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6178 inttypes.h stdint.h unistd.h
6180 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6181 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6183 eval as_val=\$$as_ac_Header
6184 if test "x$as_val" = x""yes; then :
6185 cat >>confdefs.h <<_ACEOF
6186 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6194 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
6195 if test "x$ac_cv_header_features_h" = x""yes; then :
6201 if test x$ac_cv_header_features_h = xyes; then
6202 rm -f conftest.$ac_ext
6203 cat <<_ACEOF >conftest.$ac_ext
6204 #include <features.h>
6205 #if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
6206 glibc version is: __GLIBC__ __GLIBC_MINOR__
6209 GLIBC_VERSION="`$CPP conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6215 #include <standards.h>
6216 #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
6221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6222 $EGREP "AIX5_LIBC" >/dev/null 2>&1; then :
6223 GLIBC_VERSION="aix5"
6228 # not really a version check
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6232 #include <sys/cdefs.h>
6233 #if defined(__DARWIN_VERS_1050)
6238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239 $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
6240 GLIBC_VERSION="darwin"
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GLIBC_VERSION version" >&5
6246 $as_echo_n "checking the GLIBC_VERSION version... " >&6; }
6248 case "${GLIBC_VERSION}" in
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.2 family" >&5
6251 $as_echo "2.2 family" >&6; }
6253 $as_echo "#define GLIBC_2_2 1" >>confdefs.h
6255 DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
6256 DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
6257 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.3 family" >&5
6262 $as_echo "2.3 family" >&6; }
6264 $as_echo "#define GLIBC_2_3 1" >>confdefs.h
6266 DEFAULT_SUPP="glibc-2.3.supp ${DEFAULT_SUPP}"
6267 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6268 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family" >&5
6273 $as_echo "2.4 family" >&6; }
6275 $as_echo "#define GLIBC_2_4 1" >>confdefs.h
6277 DEFAULT_SUPP="glibc-2.4.supp ${DEFAULT_SUPP}"
6278 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6279 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.5 family" >&5
6284 $as_echo "2.5 family" >&6; }
6286 $as_echo "#define GLIBC_2_5 1" >>confdefs.h
6288 DEFAULT_SUPP="glibc-2.5.supp ${DEFAULT_SUPP}"
6289 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6290 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family" >&5
6294 $as_echo "2.6 family" >&6; }
6296 $as_echo "#define GLIBC_2_6 1" >>confdefs.h
6298 DEFAULT_SUPP="glibc-2.6.supp ${DEFAULT_SUPP}"
6299 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6300 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.7 family" >&5
6304 $as_echo "2.7 family" >&6; }
6306 $as_echo "#define GLIBC_2_7 1" >>confdefs.h
6308 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6309 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6310 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.8 family" >&5
6314 $as_echo "2.8 family" >&6; }
6316 $as_echo "#define GLIBC_2_8 1" >>confdefs.h
6318 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6319 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6320 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.9 family" >&5
6324 $as_echo "2.9 family" >&6; }
6326 $as_echo "#define GLIBC_2_9 1" >>confdefs.h
6328 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6329 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6330 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.10 family" >&5
6334 $as_echo "2.10 family" >&6; }
6336 $as_echo "#define GLIBC_2_10 1" >>confdefs.h
6338 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6339 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6340 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.11 family" >&5
6344 $as_echo "2.11 family" >&6; }
6346 $as_echo "#define GLIBC_2_11 1" >>confdefs.h
6348 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6349 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6350 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.12 family" >&5
6354 $as_echo "2.12 family" >&6; }
6356 $as_echo "#define GLIBC_2_12 1" >>confdefs.h
6358 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6359 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6360 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX 5.1 or 5.2 or 5.3" >&5
6364 $as_echo "AIX 5.1 or 5.2 or 5.3" >&6; }
6366 $as_echo "#define AIX5_LIBC 1" >>confdefs.h
6368 DEFAULT_SUPP="aix5libc.supp ${DEFAULT_SUPP}"
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
6372 $as_echo "Darwin" >&6; }
6374 $as_echo "#define DARWIN_LIBC 1" >>confdefs.h
6376 # DEFAULT_SUPP set by kernel version check above.
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
6381 $as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
6382 as_fn_error "Valgrind requires glibc version 2.2 - 2.12" "$LINENO" 5
6383 as_fn_error "or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" "$LINENO" 5
6384 as_fn_error "or Darwin libc" "$LINENO" 5
6391 # Add default suppressions for the X client libraries. Make no
6392 # attempt to detect whether such libraries are installed on the
6393 # build machine (or even if any X facilities are present); just
6394 # add the suppressions antidisirregardless.
6395 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
6396 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
6398 # Add glibc and X11 suppressions for exp-ptrcheck
6399 DEFAULT_SUPP="exp-ptrcheck.supp ${DEFAULT_SUPP}"
6402 #----------------------------------------------------------------------------
6403 # Checking for various library functions and other definitions
6404 #----------------------------------------------------------------------------
6406 # Check for CLOCK_MONOTONIC
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
6409 $as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6421 clock_gettime(CLOCK_MONOTONIC, &t);
6428 if ac_fn_c_try_compile "$LINENO"; then :
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6431 $as_echo "yes" >&6; }
6433 $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 # Check for PTHREAD_MUTEX_ADAPTIVE_NP
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
6448 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6454 #include <pthread.h>
6460 return (PTHREAD_MUTEX_ADAPTIVE_NP);
6466 if ac_fn_c_try_compile "$LINENO"; then :
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6469 $as_echo "yes" >&6; }
6471 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 # Check for PTHREAD_MUTEX_ERRORCHECK_NP
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
6486 $as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6492 #include <pthread.h>
6498 return (PTHREAD_MUTEX_ERRORCHECK_NP);
6504 if ac_fn_c_try_compile "$LINENO"; then :
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6507 $as_echo "yes" >&6; }
6509 $as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 # Check for PTHREAD_MUTEX_RECURSIVE_NP
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
6524 $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6530 #include <pthread.h>
6536 return (PTHREAD_MUTEX_RECURSIVE_NP);
6542 if ac_fn_c_try_compile "$LINENO"; then :
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6545 $as_echo "yes" >&6; }
6547 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 # Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
6562 $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6568 #include <pthread.h>
6574 pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
6581 if ac_fn_c_try_compile "$LINENO"; then :
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6584 $as_echo "yes" >&6; }
6586 $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 # Check whether pthread_mutex_t has a member called __m_kind.
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__m_kind" >&5
6601 $as_echo_n "checking for pthread_mutex_t::__m_kind... " >&6; }
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6606 #include <pthread.h>
6619 if ac_fn_c_try_compile "$LINENO"; then :
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6622 $as_echo "yes" >&6; }
6624 $as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 # Check whether pthread_mutex_t has a member called __data.__kind.
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__data.__kind" >&5
6639 $as_echo_n "checking for pthread_mutex_t::__data.__kind... " >&6; }
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6644 #include <pthread.h>
6651 return m.__data.__kind;
6657 if ac_fn_c_try_compile "$LINENO"; then :
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6660 $as_echo "yes" >&6; }
6662 $as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674 # does this compiler support -maltivec and does it have the include file
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec" >&5
6678 $as_echo_n "checking for Altivec... " >&6; }
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6686 #include <altivec.h>
6692 vector unsigned int v;
6698 if ac_fn_c_try_compile "$LINENO"; then :
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6702 $as_echo "yes" >&6; }
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 if test x$ac_have_altivec = xyes; then
6716 HAS_ALTIVEC_FALSE='#'
6718 HAS_ALTIVEC_TRUE='#'
6722 if test x$ac_have_altivec = xyes; then
6723 HAVE_ALTIVEC_H_TRUE=
6724 HAVE_ALTIVEC_H_FALSE='#'
6726 HAVE_ALTIVEC_H_TRUE='#'
6727 HAVE_ALTIVEC_H_FALSE=
6732 # Check for pthread_create@GLIBC2.0
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create@GLIBC2.0()" >&5
6734 $as_echo_n "checking for pthread_create@GLIBC2.0()... " >&6; }
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6741 extern int pthread_create_glibc_2_0(void*, const void*,
6742 void *(*)(void*), void*);
6743 __asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
6751 * Apparently on PowerPC linking this program succeeds and generates an
6752 * executable with the undefined symbol pthread_create@GLIBC_2.0.
6754 #error This test does not work properly on PowerPC.
6756 pthread_create_glibc_2_0(0, 0, 0, 0);
6764 if ac_fn_c_try_link "$LINENO"; then :
6766 ac_have_pthread_create_glibc_2_0=yes
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6768 $as_echo "yes" >&6; }
6770 $as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
6775 ac_have_pthread_create_glibc_2_0=no
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6780 rm -f core conftest.err conftest.$ac_objext \
6781 conftest$ac_exeext conftest.$ac_ext
6784 if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
6785 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
6786 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
6788 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
6789 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
6794 # Check for eventfd_t, eventfd() and eventfd_read()
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
6796 $as_echo_n "checking for eventfd()... " >&6; }
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6801 #include <sys/eventfd.h>
6811 eventfd_read(fd, &ev);
6818 if ac_fn_c_try_link "$LINENO"; then :
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6821 $as_echo "yes" >&6; }
6823 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
6826 $as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6835 rm -f core conftest.err conftest.$ac_objext \
6836 conftest$ac_exeext conftest.$ac_ext
6839 #----------------------------------------------------------------------------
6840 # Checking for supported compiler flags.
6841 #----------------------------------------------------------------------------
6843 # does this compiler support -m32 ?
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
6845 $as_echo_n "checking if gcc accepts -m32... " >&6; }
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6863 if ac_fn_c_try_compile "$LINENO"; then :
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6867 $as_echo "yes" >&6; }
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882 # does this compiler support -maix32 ?
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix32" >&5
6884 $as_echo_n "checking if gcc accepts -maix32... " >&6; }
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6902 if ac_fn_c_try_compile "$LINENO"; then :
6904 FLAG_MAIX32="-maix32"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6906 $as_echo "yes" >&6; }
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 # does this compiler support -m64 ?
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
6923 $as_echo_n "checking if gcc accepts -m64... " >&6; }
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6941 if ac_fn_c_try_compile "$LINENO"; then :
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6945 $as_echo "yes" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960 # does this compiler support -maix64 ?
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix64" >&5
6962 $as_echo_n "checking if gcc accepts -maix64... " >&6; }
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6980 if ac_fn_c_try_compile "$LINENO"; then :
6982 FLAG_MAIX64="-maix64"
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6984 $as_echo "yes" >&6; }
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6999 # does this compiler support -mmmx ?
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
7001 $as_echo_n "checking if gcc accepts -mmmx... " >&6; }
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7019 if ac_fn_c_try_compile "$LINENO"; then :
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7023 $as_echo "yes" >&6; }
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 # does this compiler support -msse ?
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
7040 $as_echo_n "checking if gcc accepts -msse... " >&6; }
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7058 if ac_fn_c_try_compile "$LINENO"; then :
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7062 $as_echo "yes" >&6; }
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077 # does this compiler support -mpreferred-stack-boundary=2 ?
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary" >&5
7079 $as_echo_n "checking if gcc accepts -mpreferred-stack-boundary... " >&6; }
7082 CFLAGS="-mpreferred-stack-boundary=2"
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7097 if ac_fn_c_try_compile "$LINENO"; then :
7099 PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7101 $as_echo "yes" >&6; }
7105 PREFERRED_STACK_BOUNDARY=""
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116 # does this compiler support -Wno-pointer-sign ?
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-pointer-sign" >&5
7118 $as_echo_n "checking if gcc accepts -Wno-pointer-sign... " >&6; }
7121 CFLAGS="-Wno-pointer-sign"
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7136 if ac_fn_c_try_compile "$LINENO"; then :
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7140 $as_echo "yes" >&6; }
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 if test x$no_pointer_sign = xyes; then
7153 CFLAGS="$CFLAGS -Wno-pointer-sign"
7157 # does this compiler support -Wno-empty-body ?
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-empty-body" >&5
7160 $as_echo_n "checking if gcc accepts -Wno-empty-body... " >&6; }
7163 CFLAGS="-Wno-empty-body"
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7178 if ac_fn_c_try_compile "$LINENO"; then :
7180 FLAG_W_NO_EMPTY_BODY=-Wno-empty-body
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7183 $as_echo "yes" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 # does this compiler support -Wno-format-zero-length ?
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-format-zero-length" >&5
7199 $as_echo_n "checking if gcc accepts -Wno-format-zero-length... " >&6; }
7202 CFLAGS="-Wno-format-zero-length"
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7217 if ac_fn_c_try_compile "$LINENO"; then :
7219 FLAG_W_NO_FORMAT_ZERO_LENGTH=-Wno-format-zero-length
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7222 $as_echo "yes" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7235 # does this compiler support -Wno-uninitialized ?
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-uninitialized" >&5
7238 $as_echo_n "checking if gcc accepts -Wno-uninitialized... " >&6; }
7241 CFLAGS="-Wno-uninitialized"
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7256 if ac_fn_c_try_compile "$LINENO"; then :
7258 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7261 $as_echo "yes" >&6; }
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274 # does this compiler support -Wextra or the older -W ?
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
7277 $as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; }
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7295 if ac_fn_c_try_compile "$LINENO"; then :
7297 FLAG_W_EXTRA=-Wextra
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
7300 $as_echo "-Wextra" >&6; }
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7318 if ac_fn_c_try_compile "$LINENO"; then :
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5
7323 $as_echo "-W" >&6; }
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
7329 $as_echo "not supported" >&6; }
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 # does this compiler support -fno-stack-protector ?
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
7341 $as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; }
7344 CFLAGS="-fno-stack-protector"
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7359 if ac_fn_c_try_compile "$LINENO"; then :
7361 no_stack_protector=yes
7362 FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7364 $as_echo "yes" >&6; }
7368 no_stack_protector=no
7369 FLAG_FNO_STACK_PROTECTOR=""
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 if test x$no_stack_protector = xyes; then
7380 CFLAGS="$CFLAGS -fno-stack-protector"
7384 # does this compiler support --param inline-unit-growth=... ?
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
7387 $as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; }
7390 CFLAGS="--param inline-unit-growth=900"
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7405 if ac_fn_c_try_compile "$LINENO"; then :
7407 FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7410 $as_echo "yes" >&6; }
7414 FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424 # does the linker support -Wl,--build-id=none ? Note, it's
7425 # important that we test indirectly via whichever C compiler
7426 # is selected, rather than testing /usr/bin/ld or whatever
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5
7430 $as_echo_n "checking if the linker accepts -Wl,--build-id=none... " >&6; }
7433 CFLAGS="-Wl,--build-id=none"
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7446 if ac_fn_c_try_link "$LINENO"; then :
7448 FLAG_NO_BUILD_ID="-Wl,--build-id=none"
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7451 $as_echo "yes" >&6; }
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7461 rm -f core conftest.err conftest.$ac_objext \
7462 conftest$ac_exeext conftest.$ac_ext
7466 # does the ppc assembler support "mtocrf" et al?
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
7468 $as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7477 __asm__ __volatile__("mtocrf 4,0");
7478 __asm__ __volatile__("mfocrf 0,4");
7484 if ac_fn_c_try_compile "$LINENO"; then :
7486 ac_have_as_ppc_mftocrf=yes
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7488 $as_echo "yes" >&6; }
7492 ac_have_as_ppc_mftocrf=no
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7498 if test x$ac_have_as_ppc_mftocrf = xyes ; then
7500 $as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
7505 # does the x86/amd64 assembler understand SSE3 instructions?
7506 # Note, this doesn't generate a C-level symbol. It generates a
7507 # automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
7509 $as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; }
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7518 do { long long int x;
7519 __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
7526 if ac_fn_c_try_compile "$LINENO"; then :
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7530 $as_echo "yes" >&6; }
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541 if test x$ac_have_as_sse3 = xyes; then
7542 BUILD_SSE3_TESTS_TRUE=
7543 BUILD_SSE3_TESTS_FALSE='#'
7545 BUILD_SSE3_TESTS_TRUE='#'
7546 BUILD_SSE3_TESTS_FALSE=
7551 # Ditto for SSSE3 instructions (note extra S)
7552 # Note, this doesn't generate a C-level symbol. It generates a
7553 # automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
7555 $as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7564 do { long long int x;
7565 __asm__ __volatile__(
7566 "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
7573 if ac_fn_c_try_compile "$LINENO"; then :
7575 ac_have_as_ssse3=yes
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7577 $as_echo "yes" >&6; }
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 if test x$ac_have_as_ssse3 = xyes; then
7589 BUILD_SSSE3_TESTS_TRUE=
7590 BUILD_SSSE3_TESTS_FALSE='#'
7592 BUILD_SSSE3_TESTS_TRUE='#'
7593 BUILD_SSSE3_TESTS_FALSE=
7598 # Check for TLS support in the compiler and linker
7599 if test "x${cross_compiling}" = "xno"; then
7600 # Native compilation: check whether running a program using TLS succeeds.
7601 # Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
7602 # succeeds but running programs using TLS fails.
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7604 $as_echo_n "checking for TLS support... " >&6; }
7605 if test "${vg_cv_tls+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7608 # Check whether --enable-tls was given.
7609 if test "${enable_tls+set}" = set; then :
7610 enableval=$enable_tls; vg_cv_tls=$enableval
7612 if test "$cross_compiling" = yes; then :
7613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7615 as_fn_error "cannot run test program while cross compiling
7616 See \`config.log' for more details." "$LINENO" 5; }
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620 static __thread int foo;
7629 if ac_fn_c_try_run "$LINENO"; then :
7634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7635 conftest.$ac_objext conftest.beam conftest.$ac_ext
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
7642 $as_echo "$vg_cv_tls" >&6; }
7644 # Cross-compiling: check whether linking a program using TLS succeeds.
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7646 $as_echo_n "checking for TLS support... " >&6; }
7647 if test "${vg_cv_tls+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7650 # Check whether --enable-tls was given.
7651 if test "${enable_tls+set}" = set; then :
7652 enableval=$enable_tls; vg_cv_tls=$enableval
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7656 static __thread int foo;
7665 if ac_fn_c_try_link "$LINENO"; then :
7670 rm -f core conftest.err conftest.$ac_objext \
7671 conftest$ac_exeext conftest.$ac_ext
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
7676 $as_echo "$vg_cv_tls" >&6; }
7679 if test "$vg_cv_tls" = yes; then
7681 $as_echo "#define HAVE_TLS 1" >>confdefs.h
7686 #----------------------------------------------------------------------------
7687 # Checks for C header files.
7688 #----------------------------------------------------------------------------
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7691 $as_echo_n "checking for ANSI C header files... " >&6; }
7692 if test "${ac_cv_header_stdc+set}" = set; then :
7693 $as_echo_n "(cached) " >&6
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7710 if ac_fn_c_try_compile "$LINENO"; then :
7711 ac_cv_header_stdc=yes
7713 ac_cv_header_stdc=no
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 if test $ac_cv_header_stdc = yes; then
7718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7725 $EGREP "memchr" >/dev/null 2>&1; then :
7728 ac_cv_header_stdc=no
7734 if test $ac_cv_header_stdc = yes; then
7735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7742 $EGREP "free" >/dev/null 2>&1; then :
7745 ac_cv_header_stdc=no
7751 if test $ac_cv_header_stdc = yes; then
7752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7753 if test "$cross_compiling" = yes; then :
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7760 #if ((' ' & 0x0FF) == 0x020)
7761 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7762 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7764 # define ISLOWER(c) \
7765 (('a' <= (c) && (c) <= 'i') \
7766 || ('j' <= (c) && (c) <= 'r') \
7767 || ('s' <= (c) && (c) <= 'z'))
7768 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7771 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7776 for (i = 0; i < 256; i++)
7777 if (XOR (islower (i), ISLOWER (i))
7778 || toupper (i) != TOUPPER (i))
7783 if ac_fn_c_try_run "$LINENO"; then :
7786 ac_cv_header_stdc=no
7788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7789 conftest.$ac_objext conftest.beam conftest.$ac_ext
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7795 $as_echo "$ac_cv_header_stdc" >&6; }
7796 if test $ac_cv_header_stdc = yes; then
7798 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7819 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7820 eval as_val=\$$as_ac_Header
7821 if test "x$as_val" = x""yes; then :
7822 cat >>confdefs.h <<_ACEOF
7823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7831 #----------------------------------------------------------------------------
7832 # Checks for typedefs, structures, and compiler characteristics.
7833 #----------------------------------------------------------------------------
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7835 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7836 if test "${ac_cv_type_uid_t+set}" = set; then :
7837 $as_echo_n "(cached) " >&6
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7841 #include <sys/types.h>
7844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7845 $EGREP "uid_t" >/dev/null 2>&1; then :
7846 ac_cv_type_uid_t=yes
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7854 $as_echo "$ac_cv_type_uid_t" >&6; }
7855 if test $ac_cv_type_uid_t = no; then
7857 $as_echo "#define uid_t int" >>confdefs.h
7860 $as_echo "#define gid_t int" >>confdefs.h
7864 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7865 if test "x$ac_cv_type_off_t" = x""yes; then :
7869 cat >>confdefs.h <<_ACEOF
7870 #define off_t long int
7875 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7876 if test "x$ac_cv_type_size_t" = x""yes; then :
7880 cat >>confdefs.h <<_ACEOF
7881 #define size_t unsigned int
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7887 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7888 if test "${ac_cv_header_time+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 #include <sys/types.h>
7894 #include <sys/time.h>
7900 if ((struct tm *) 0)
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907 ac_cv_header_time=yes
7909 ac_cv_header_time=no
7911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7914 $as_echo "$ac_cv_header_time" >&6; }
7915 if test $ac_cv_header_time = yes; then
7917 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7923 #----------------------------------------------------------------------------
7924 # Checks for library functions.
7925 #----------------------------------------------------------------------------
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
7927 $as_echo_n "checking for working memcmp... " >&6; }
7928 if test "${ac_cv_func_memcmp_working+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7931 if test "$cross_compiling" = yes; then :
7932 ac_cv_func_memcmp_working=no
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7936 $ac_includes_default
7941 /* Some versions of memcmp are not 8-bit clean. */
7942 char c0 = '\100', c1 = '\200', c2 = '\201';
7943 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7946 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7947 or more and with at least one buffer not starting on a 4-byte boundary.
7948 William Lewis provided this test program. */
7953 for (i = 0; i < 4; i++)
7957 strcpy (a, "--------01111111");
7958 strcpy (b, "--------10000000");
7959 if (memcmp (a, b, 16) >= 0)
7969 if ac_fn_c_try_run "$LINENO"; then :
7970 ac_cv_func_memcmp_working=yes
7972 ac_cv_func_memcmp_working=no
7974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7975 conftest.$ac_objext conftest.beam conftest.$ac_ext
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
7980 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7981 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7982 *" memcmp.$ac_objext "* ) ;;
7983 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7991 for ac_header in $ac_header_list
7993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7994 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7996 eval as_val=\$$as_ac_Header
7997 if test "x$as_val" = x""yes; then :
7998 cat >>confdefs.h <<_ACEOF
7999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8013 for ac_func in getpagesize
8015 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8016 if test "x$ac_cv_func_getpagesize" = x""yes; then :
8017 cat >>confdefs.h <<_ACEOF
8018 #define HAVE_GETPAGESIZE 1
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8025 $as_echo_n "checking for working mmap... " >&6; }
8026 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8029 if test "$cross_compiling" = yes; then :
8030 ac_cv_func_mmap_fixed_mapped=no
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8034 $ac_includes_default
8035 /* malloc might have been renamed as rpl_malloc. */
8038 /* Thanks to Mike Haertel and Jim Avera for this test.
8039 Here is a matrix of mmap possibilities:
8040 mmap private not fixed
8041 mmap private fixed at somewhere currently unmapped
8042 mmap private fixed at somewhere already mapped
8043 mmap shared not fixed
8044 mmap shared fixed at somewhere currently unmapped
8045 mmap shared fixed at somewhere already mapped
8046 For private mappings, we should verify that changes cannot be read()
8047 back from the file, nor mmap's back from the file at a different
8048 address. (There have been systems where private was not correctly
8049 implemented like the infamous i386 svr4.0, and systems where the
8050 VM page cache was not coherent with the file system buffer cache
8051 like early versions of FreeBSD and possibly contemporary NetBSD.)
8052 For shared mappings, we should conversely verify that changes get
8053 propagated back to all the places they're supposed to be.
8055 Grep wants private fixed already mapped.
8056 The main things grep needs to know about mmap are:
8057 * does it exist and is it safe to write into the mmap'd area
8058 * how to use it (BSD variants) */
8061 #include <sys/mman.h>
8063 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8067 /* This mess was copied from the GNU getpagesize.h. */
8068 #ifndef HAVE_GETPAGESIZE
8069 # ifdef _SC_PAGESIZE
8070 # define getpagesize() sysconf(_SC_PAGESIZE)
8071 # else /* no _SC_PAGESIZE */
8072 # ifdef HAVE_SYS_PARAM_H
8073 # include <sys/param.h>
8074 # ifdef EXEC_PAGESIZE
8075 # define getpagesize() EXEC_PAGESIZE
8076 # else /* no EXEC_PAGESIZE */
8078 # define getpagesize() NBPG * CLSIZE
8081 # endif /* no CLSIZE */
8082 # else /* no NBPG */
8084 # define getpagesize() NBPC
8085 # else /* no NBPC */
8087 # define getpagesize() PAGESIZE
8088 # endif /* PAGESIZE */
8089 # endif /* no NBPC */
8090 # endif /* no NBPG */
8091 # endif /* no EXEC_PAGESIZE */
8092 # else /* no HAVE_SYS_PARAM_H */
8093 # define getpagesize() 8192 /* punt totally */
8094 # endif /* no HAVE_SYS_PARAM_H */
8095 # endif /* no _SC_PAGESIZE */
8097 #endif /* no HAVE_GETPAGESIZE */
8102 char *data, *data2, *data3;
8107 pagesize = getpagesize ();
8109 /* First, make a file with some known garbage in it. */
8110 data = (char *) malloc (pagesize);
8113 for (i = 0; i < pagesize; ++i)
8114 *(data + i) = rand ();
8116 fd = creat ("conftest.mmap", 0600);
8119 if (write (fd, data, pagesize) != pagesize)
8123 /* Next, check that the tail of a page is zero-filled. File must have
8124 non-zero length, otherwise we risk SIGBUS for entire page. */
8125 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8129 if (write (fd2, cdata2, 1) != 1)
8131 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8132 if (data2 == MAP_FAILED)
8134 for (i = 0; i < pagesize; ++i)
8138 if (munmap (data2, pagesize))
8141 /* Next, try to mmap the file at a fixed address which already has
8142 something else allocated at it. If we can, also make sure that
8143 we see the same garbage. */
8144 fd = open ("conftest.mmap", O_RDWR);
8147 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8148 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8150 for (i = 0; i < pagesize; ++i)
8151 if (*(data + i) != *(data2 + i))
8154 /* Finally, make sure that changes to the mapped area do not
8155 percolate back to the file as seen by read(). (This is a bug on
8156 some variants of i386 svr4.0.) */
8157 for (i = 0; i < pagesize; ++i)
8158 *(data2 + i) = *(data2 + i) + 1;
8159 data3 = (char *) malloc (pagesize);
8162 if (read (fd, data3, pagesize) != pagesize)
8164 for (i = 0; i < pagesize; ++i)
8165 if (*(data + i) != *(data3 + i))
8171 if ac_fn_c_try_run "$LINENO"; then :
8172 ac_cv_func_mmap_fixed_mapped=yes
8174 ac_cv_func_mmap_fixed_mapped=no
8176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8177 conftest.$ac_objext conftest.beam conftest.$ac_ext
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8182 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8183 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8185 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8188 rm -f conftest.mmap conftest.txt
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8191 $as_echo_n "checking return type of signal handlers... " >&6; }
8192 if test "${ac_cv_type_signal+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197 #include <sys/types.h>
8203 return *(signal (0, 0)) (0) == 1;
8208 if ac_fn_c_try_compile "$LINENO"; then :
8209 ac_cv_type_signal=int
8211 ac_cv_type_signal=void
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8216 $as_echo "$ac_cv_type_signal" >&6; }
8218 cat >>confdefs.h <<_ACEOF
8219 #define RETSIGTYPE $ac_cv_type_signal
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
8225 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8226 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8229 ac_check_lib_save_LIBS=$LIBS
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8234 /* Override any GCC internal prototype to avoid an error.
8235 Use char because int might match the return type of a GCC
8236 builtin and then its argument prototype would still apply. */
8240 char clock_gettime ();
8244 return clock_gettime ();
8249 if ac_fn_c_try_link "$LINENO"; then :
8250 ac_cv_lib_rt_clock_gettime=yes
8252 ac_cv_lib_rt_clock_gettime=no
8254 rm -f core conftest.err conftest.$ac_objext \
8255 conftest$ac_exeext conftest.$ac_ext
8256 LIBS=$ac_check_lib_save_LIBS
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
8259 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8260 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
8261 cat >>confdefs.h <<_ACEOF
8262 #define HAVE_LIBRT 1
8282 pthread_barrier_init \
8283 pthread_condattr_setclock \
8284 pthread_mutex_timedlock \
8285 pthread_rwlock_timedrdlock \
8286 pthread_rwlock_timedwrlock \
8302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8304 eval as_val=\$$as_ac_var
8305 if test "x$as_val" = x""yes; then :
8306 cat >>confdefs.h <<_ACEOF
8307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8314 # AC_CHECK_LIB adds any library found to the variable LIBS, and links these
8315 # libraries with any shared object and/or executable. This is NOT what we
8316 # want for e.g. vgpreload_core-x86-linux.so
8319 if test x$ac_cv_func_pthread_barrier_init = xyes; then
8320 HAVE_PTHREAD_BARRIER_TRUE=
8321 HAVE_PTHREAD_BARRIER_FALSE='#'
8323 HAVE_PTHREAD_BARRIER_TRUE='#'
8324 HAVE_PTHREAD_BARRIER_FALSE=
8327 if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
8328 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
8329 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
8331 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
8332 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
8335 if test x$ac_cv_func_pthread_spin_lock = xyes; then
8336 HAVE_PTHREAD_SPINLOCK_TRUE=
8337 HAVE_PTHREAD_SPINLOCK_FALSE='#'
8339 HAVE_PTHREAD_SPINLOCK_TRUE='#'
8340 HAVE_PTHREAD_SPINLOCK_FALSE=
8345 #----------------------------------------------------------------------------
8347 #----------------------------------------------------------------------------
8348 # Do we have a useable MPI setup on the primary and/or secondary targets?
8349 # On Linux, by default, assumes mpicc and -m32/-m64
8350 # On AIX, by default, assumes mpxlc and -q32/-q64
8351 # Note: this is a kludge in that it assumes the specified mpicc
8352 # understands -m32/-m64/-q32/-q64 regardless of what is specified using
8355 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
8356 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8361 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8362 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX ; then
8363 mflag_primary=$FLAG_M32
8364 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
8365 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX ; then
8366 mflag_primary=$FLAG_M64
8367 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 ; then
8369 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8374 if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
8375 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
8376 mflag_secondary=$FLAG_M32
8377 elif test x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
8378 mflag_secondary=-q32
8383 # Check whether --with-mpicc was given.
8384 if test "${with_mpicc+set}" = set; then :
8385 withval=$with_mpicc; MPI_CC=$withval
8391 ## See if MPI_CC works for the primary target
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
8394 $as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8396 saved_CFLAGS=$CFLAGS
8398 CFLAGS=$mflag_primary
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8409 int r = MPI_Init(NULL,NULL);
8410 r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8417 if ac_fn_c_try_link "$LINENO"; then :
8419 ac_have_mpi2_pri=yes
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8421 $as_echo "yes, $MPI_CC" >&6; }
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8430 rm -f core conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext conftest.$ac_ext
8433 CFLAGS=$saved_CFLAGS
8434 if test x$ac_have_mpi2_pri = xyes; then
8435 BUILD_MPIWRAP_PRI_TRUE=
8436 BUILD_MPIWRAP_PRI_FALSE='#'
8438 BUILD_MPIWRAP_PRI_TRUE='#'
8439 BUILD_MPIWRAP_PRI_FALSE=
8443 ## See if MPI_CC works for the secondary target. Complication: what if
8444 ## there is no secondary target? We need this to then fail.
8445 ## Kludge this by making MPI_CC something which will surely fail in
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
8449 $as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8451 saved_CFLAGS=$CFLAGS
8452 if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
8453 CC="$MPI_CC this will surely fail"
8457 CFLAGS=$mflag_secondary
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8468 int r = MPI_Init(NULL,NULL);
8469 r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8476 if ac_fn_c_try_link "$LINENO"; then :
8478 ac_have_mpi2_sec=yes
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8480 $as_echo "yes, $MPI_CC" >&6; }
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8489 rm -f core conftest.err conftest.$ac_objext \
8490 conftest$ac_exeext conftest.$ac_ext
8492 CFLAGS=$saved_CFLAGS
8493 if test x$ac_have_mpi2_sec = xyes; then
8494 BUILD_MPIWRAP_SEC_TRUE=
8495 BUILD_MPIWRAP_SEC_FALSE='#'
8497 BUILD_MPIWRAP_SEC_TRUE='#'
8498 BUILD_MPIWRAP_SEC_FALSE=
8503 #----------------------------------------------------------------------------
8504 # Other library checks
8505 #----------------------------------------------------------------------------
8506 # There now follow some tests for QtCore, Boost, and OpenMP. These
8507 # tests are present because Drd has some regression tests that use
8508 # these packages. All regression test programs all compiled only
8509 # for the primary target. And so it is important that the configure
8510 # checks that follow, use the correct -m32 or -m64 flag for the
8511 # primary target (called $mflag_primary). Otherwise, we can end up
8512 # in a situation (eg) where, on amd64-linux, the test for Boost checks
8513 # for usable 64-bit Boost facilities, but because we are doing a 32-bit
8514 # only build (meaning, the primary target is x86-linux), the build
8515 # of the regtest programs that use Boost fails, because they are
8516 # build as 32-bit (IN THIS EXAMPLE).
8518 # Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
8519 # NEEDED BY THE REGRESSION TEST PROGRAMS.
8522 # The test below verifies whether the QtCore package been installed.
8523 # This test works as follows:
8524 # - If pkg-config was not installed at the time autogen.sh was run,
8525 # the definition of the PKG_CHECK_EXISTS() macro will not be found by
8526 # autogen.sh. Augogen.sh will generate a configure script that prints
8527 # a warning about pkg-config and proceeds as if Qt4 has not been installed.
8528 # - If pkg-config was installed at the time autogen.sh was run,
8529 # the generated configure script will try to detect the presence of the
8530 # Qt4 QtCore library by looking up compile and linker flags in the file
8532 # - pkg-config settings can be overridden via the configure variables
8533 # QTCORE_CFLAGS and QTCORE_LIBS (added by the pkg-config m4 macro's to the
8534 # configure script -- see also ./configure --help).
8535 # - The QTCORE_CFLAGS and QTCORE_LIBS configure variables can be used even if
8536 # the pkg-config executable is not present on the system on which the
8537 # configure script is run.
8545 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8546 if test -n "$ac_tool_prefix"; then
8547 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8548 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8552 $as_echo_n "(cached) " >&6
8556 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 test -z "$as_dir" && as_dir=.
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8566 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8578 if test -n "$PKG_CONFIG"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8580 $as_echo "$PKG_CONFIG" >&6; }
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8588 if test -z "$ac_cv_path_PKG_CONFIG"; then
8589 ac_pt_PKG_CONFIG=$PKG_CONFIG
8590 # Extract the first word of "pkg-config", so it can be a program name with args.
8591 set dummy pkg-config; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
8597 case $ac_pt_PKG_CONFIG in
8599 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8609 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8621 if test -n "$ac_pt_PKG_CONFIG"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8623 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8629 if test "x$ac_pt_PKG_CONFIG" = x; then
8632 case $cross_compiling:$ac_tool_warned in
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8636 ac_tool_warned=yes ;;
8638 PKG_CONFIG=$ac_pt_PKG_CONFIG
8641 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8645 if test -n "$PKG_CONFIG"; then
8646 _pkg_min_version=0.9.0
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8648 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8649 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8651 $as_echo "yes" >&6; }
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8659 if test -n "$PKG_CONFIG" && \
8660 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8661 ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8664 test $ac_status = 0; }; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTCORE" >&5
8669 $as_echo_n "checking for QTCORE... " >&6; }
8671 if test -n "$QTCORE_CFLAGS"; then
8672 pkg_cv_QTCORE_CFLAGS="$QTCORE_CFLAGS"
8673 elif test -n "$PKG_CONFIG"; then
8674 if test -n "$PKG_CONFIG" && \
8675 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8676 ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8679 test $ac_status = 0; }; then
8680 pkg_cv_QTCORE_CFLAGS=`$PKG_CONFIG --cflags "QtCore" 2>/dev/null`
8687 if test -n "$QTCORE_LIBS"; then
8688 pkg_cv_QTCORE_LIBS="$QTCORE_LIBS"
8689 elif test -n "$PKG_CONFIG"; then
8690 if test -n "$PKG_CONFIG" && \
8691 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8692 ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8695 test $ac_status = 0; }; then
8696 pkg_cv_QTCORE_LIBS=`$PKG_CONFIG --libs "QtCore" 2>/dev/null`
8706 if test $pkg_failed = yes; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8710 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8711 _pkg_short_errors_supported=yes
8713 _pkg_short_errors_supported=no
8715 if test $_pkg_short_errors_supported = yes; then
8716 QTCORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtCore" 2>&1`
8718 QTCORE_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtCore" 2>&1`
8720 # Put the nasty error message in config.log where it belongs
8721 echo "$QTCORE_PKG_ERRORS" >&5
8723 as_fn_error "Package requirements (QtCore) were not met:
8727 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8728 installed software in a non-standard prefix.
8730 Alternatively, you may set the environment variables QTCORE_CFLAGS
8731 and QTCORE_LIBS to avoid the need to call pkg-config.
8732 See the pkg-config man page for more details." "$LINENO" 5
8733 elif test $pkg_failed = untried; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735 $as_echo "no" >&6; }
8736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8738 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
8739 is in your PATH or set the PKG_CONFIG environment variable to the full
8742 Alternatively, you may set the environment variables QTCORE_CFLAGS
8743 and QTCORE_LIBS to avoid the need to call pkg-config.
8744 See the pkg-config man page for more details.
8746 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8747 See \`config.log' for more details." "$LINENO" 5; }
8749 QTCORE_CFLAGS=$pkg_cv_QTCORE_CFLAGS
8750 QTCORE_LIBS=$pkg_cv_QTCORE_LIBS
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8752 $as_echo "yes" >&6; }
8755 # Paranoia: don't trust the result reported by pkg-config, but when
8756 # pkg-config reports that QtCore has been found, verify whether linking
8757 # programs with QtCore succeeds.
8759 ac_cpp='$CXXCPP $CPPFLAGS'
8760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8764 safe_CXXFLAGS="${CXXFLAGS}"
8765 CXXFLAGS="${QTCORE_CFLAGS} ${QTCORE_LIBS} $mflag_primary"
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8777 if ac_fn_cxx_try_link "$LINENO"; then :
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Although pkg-config detected Qt4, linking Qt4 programs fails. Skipping Qt4." >&5
8782 $as_echo "$as_me: WARNING: Although pkg-config detected Qt4, linking Qt4 programs fails. Skipping Qt4." >&2;}
8787 rm -f core conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
8789 CXXFLAGS="${safe_CXXFLAGS}"
8799 if test x$ac_have_qtcore = xyes; then
8801 HAVE_QTCORE_FALSE='#'
8803 HAVE_QTCORE_TRUE='#'
8809 # Test for QMutex::tryLock(int), which has been introduced in Qt 4.3.
8810 # See also http://doc.trolltech.com/4.3/qmutex.html.
8811 if test x$ac_have_qtcore = xyes; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 QMutex::tryLock(int)" >&5
8813 $as_echo_n "checking for Qt4 QMutex::tryLock(int)... " >&6; }
8815 ac_cpp='$CXXCPP $CPPFLAGS'
8816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8820 safe_CXXFLAGS="${CXXFLAGS}"
8821 CXXFLAGS="${QTCORE_CFLAGS} $mflag_primary"
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8825 #include <QtCore/QMutex>
8840 if ac_fn_cxx_try_compile "$LINENO"; then :
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8843 $as_echo "yes" >&6; }
8845 $as_echo "#define HAVE_QTCORE_QMUTEX_TRYLOCK_INT 1" >>confdefs.h
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 CXXFLAGS="${safe_CXXFLAGS}"
8857 ac_cpp='$CPP $CPPFLAGS'
8858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8865 # Test for QAtomicInt, which has been introduced in Qt 4.4.
8866 # See also http://doc.trolltech.com/4.4/qatomicint.html.
8867 if test x$ac_have_qtcore = xyes; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 QAtomicInt" >&5
8869 $as_echo_n "checking for Qt4 QAtomicInt... " >&6; }
8871 ac_cpp='$CXXCPP $CPPFLAGS'
8872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8876 safe_CXXFLAGS="${CXXFLAGS}"
8877 CXXFLAGS="${QTCORE_CFLAGS} $mflag_primary"
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8881 #include <QtCore/QAtomicInt>
8888 I.testAndSetOrdered(0, 1);
8895 if ac_fn_cxx_try_compile "$LINENO"; then :
8897 ac_have_qtcore_qatomicint=yes
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8899 $as_echo "yes" >&6; }
8901 $as_echo "#define HAVE_QTCORE_QATOMICINT 1" >>confdefs.h
8906 ac_have_qtcore_qatomicint=no
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 CXXFLAGS="${safe_CXXFLAGS}"
8914 ac_cpp='$CPP $CPPFLAGS'
8915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8921 if test x$ac_have_qtcore_qatomicint = xyes; then
8922 HAVE_QTCORE_QATOMICINT_TRUE=
8923 HAVE_QTCORE_QATOMICINT_FALSE='#'
8925 HAVE_QTCORE_QATOMICINT_TRUE='#'
8926 HAVE_QTCORE_QATOMICINT_FALSE=
8932 # Check whether the boost library 1.35 or later has been installed.
8933 # The Boost.Threads library has undergone a major rewrite in version 1.35.0.
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
8936 $as_echo_n "checking for boost... " >&6; }
8939 ac_cpp='$CXXCPP $CPPFLAGS'
8940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8944 safe_CXXFLAGS=$CXXFLAGS
8945 CXXFLAGS="-lboost_thread-mt $mflag_primary"
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8950 #include <boost/thread.hpp>
8951 static void thread_func(void)
8953 int main(int argc, char** argv)
8955 boost::thread t(thread_func);
8960 if ac_fn_cxx_try_link "$LINENO"; then :
8962 ac_have_boost_1_35=yes
8964 BOOST_LIBS="${CXXFLAGS}"
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8967 $as_echo "yes" >&6; }
8971 ac_have_boost_1_35=no
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8976 rm -f core conftest.err conftest.$ac_objext \
8977 conftest$ac_exeext conftest.$ac_ext
8979 CXXFLAGS=$safe_CXXFLAGS
8981 ac_cpp='$CPP $CPPFLAGS'
8982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8987 if test x$ac_have_boost_1_35 = xyes; then
8988 HAVE_BOOST_1_35_TRUE=
8989 HAVE_BOOST_1_35_FALSE='#'
8991 HAVE_BOOST_1_35_TRUE='#'
8992 HAVE_BOOST_1_35_FALSE=
8997 # does this compiler support -fopenmp, does it have the include file
8998 # <omp.h> and does it have libgomp ?
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
9001 $as_echo_n "checking for OpenMP... " >&6; }
9004 CFLAGS="-fopenmp $mflag_primary"
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9010 int main(int argc, char** argv)
9017 if ac_fn_c_try_link "$LINENO"; then :
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9021 $as_echo "yes" >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9030 rm -f core conftest.err conftest.$ac_objext \
9031 conftest$ac_exeext conftest.$ac_ext
9034 if test x$ac_have_openmp = xyes; then
9036 HAVE_OPENMP_FALSE='#'
9038 HAVE_OPENMP_TRUE='#'
9044 # does this compiler have built-in functions for atomic memory access ?
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
9046 $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
9049 CFLAGS="$mflag_primary"
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9059 return (__sync_bool_compare_and_swap(&variable, 1, 2)
9060 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
9066 if ac_fn_c_try_link "$LINENO"; then :
9068 ac_have_builtin_atomic=yes
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9070 $as_echo "yes" >&6; }
9072 $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
9077 ac_have_builtin_atomic=no
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9082 rm -f core conftest.err conftest.$ac_objext \
9083 conftest$ac_exeext conftest.$ac_ext
9087 if test x$ac_have_builtin_atomic = xyes; then
9088 HAVE_BUILTIN_ATOMIC_TRUE=
9089 HAVE_BUILTIN_ATOMIC_FALSE='#'
9091 HAVE_BUILTIN_ATOMIC_TRUE='#'
9092 HAVE_BUILTIN_ATOMIC_FALSE=
9097 #----------------------------------------------------------------------------
9098 # Ok. We're done checking.
9099 #----------------------------------------------------------------------------
9101 # Nb: VEX/Makefile is generated from Makefile.vex.in.
9102 ac_config_files="$ac_config_files Makefile VEX/Makefile:Makefile.vex.in valgrind.spec valgrind.pc glibc-2.X.supp docs/Makefile tests/Makefile tests/vg_regtest perf/Makefile perf/vg_perf include/Makefile auxprogs/Makefile mpi/Makefile coregrind/Makefile memcheck/Makefile memcheck/tests/Makefile memcheck/tests/amd64/Makefile memcheck/tests/x86/Makefile memcheck/tests/linux/Makefile memcheck/tests/darwin/Makefile memcheck/tests/amd64-linux/Makefile memcheck/tests/x86-linux/Makefile memcheck/perf/Makefile cachegrind/Makefile cachegrind/tests/Makefile cachegrind/tests/x86/Makefile cachegrind/cg_annotate cachegrind/cg_diff callgrind/Makefile callgrind/callgrind_annotate callgrind/callgrind_control callgrind/tests/Makefile helgrind/Makefile helgrind/tests/Makefile massif/Makefile massif/tests/Makefile massif/perf/Makefile massif/ms_print lackey/Makefile lackey/tests/Makefile none/Makefile none/tests/Makefile none/tests/amd64/Makefile none/tests/ppc32/Makefile none/tests/ppc64/Makefile none/tests/x86/Makefile none/tests/arm/Makefile none/tests/linux/Makefile none/tests/darwin/Makefile none/tests/x86-linux/Makefile exp-ptrcheck/Makefile exp-ptrcheck/tests/Makefile drd/Makefile drd/scripts/download-and-build-splash2 drd/tests/Makefile exp-bbv/Makefile exp-bbv/tests/Makefile exp-bbv/tests/x86/Makefile exp-bbv/tests/x86-linux/Makefile exp-bbv/tests/amd64-linux/Makefile exp-bbv/tests/ppc32-linux/Makefile"
9104 ac_config_files="$ac_config_files coregrind/link_tool_exe_linux"
9106 ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin"
9108 ac_config_files="$ac_config_files coregrind/link_tool_exe_aix5"
9110 ac_config_files="$ac_config_files coregrind/link_tool_exe_l4re"
9112 cat >confcache <<\_ACEOF
9113 # This file is a shell script that caches the results of configure
9114 # tests run on this system so they can be shared between configure
9115 # scripts and configure runs, see configure's option --config-cache.
9116 # It is not useful on other systems. If it contains results you don't
9117 # want to keep, you may remove or edit it.
9119 # config.status only pays attention to the cache file if you give it
9120 # the --recheck option to rerun configure.
9122 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9123 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9128 # The following way of writing the cache mishandles newlines in values,
9129 # but we know of no workaround that is simple, portable, and efficient.
9130 # So, we kill variables containing newlines.
9131 # Ultrix sh set writes to stderr and can't be redirected directly,
9132 # and sets the high bit in the cache file unless we assign to the vars.
9134 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9135 eval ac_val=\$$ac_var
9139 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9140 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9143 _ | IFS | as_nl) ;; #(
9144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9145 *) { eval $ac_var=; unset $ac_var;} ;;
9151 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9152 *${as_nl}ac_space=\ *)
9153 # `set' does not quote correctly, so add quotes: double-quote
9154 # substitution turns \\\\ into \\, and sed turns \\ into \.
9157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9160 # `set' quotes correctly as required by POSIX, so do not add quotes.
9161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9170 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9172 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9174 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9175 if test -w "$cache_file"; then
9176 test "x$cache_file" != "x/dev/null" &&
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9178 $as_echo "$as_me: updating cache $cache_file" >&6;}
9179 cat confcache >$cache_file
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9182 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9187 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9188 # Let make expand exec_prefix.
9189 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9191 DEFS=-DHAVE_CONFIG_H
9195 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9196 # 1. Remove the extension, and $U if already installed.
9197 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9198 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9199 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9200 # will be set to the directory where LIBOBJS objects are built.
9201 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9202 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9206 LTLIBOBJS=$ac_ltlibobjs
9209 if test -n "$EXEEXT"; then
9211 am__EXEEXT_FALSE='#'
9217 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9218 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
9219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9221 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9222 as_fn_error "conditional \"AMDEP\" was never defined.
9223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9225 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9226 as_fn_error "conditional \"am__fastdepCC\" was never defined.
9227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9229 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9230 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
9231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9233 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
9234 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
9235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9237 if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
9238 as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
9239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9241 if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
9242 as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
9243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9245 if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
9246 as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
9247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9249 if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
9250 as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
9251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9253 if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
9254 as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
9255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9257 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
9258 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
9259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9261 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
9262 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
9263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9265 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
9266 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
9267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9269 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE}"; then
9270 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
9271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9273 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
9274 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
9275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9277 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE}"; then
9278 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5\" was never defined.
9279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9281 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE}"; then
9282 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5\" was never defined.
9283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9285 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
9286 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
9287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9289 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
9290 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
9291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9293 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE}"; then
9294 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_L4RE\" was never defined.
9295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9297 if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
9298 as_fn_error "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
9299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9301 if test -z "${VGCONF_OS_IS_AIX5_TRUE}" && test -z "${VGCONF_OS_IS_AIX5_FALSE}"; then
9302 as_fn_error "conditional \"VGCONF_OS_IS_AIX5\" was never defined.
9303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9305 if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
9306 as_fn_error "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
9307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9309 if test -z "${VGCONF_OS_IS_L4RE_TRUE}" && test -z "${VGCONF_OS_IS_L4RE_FALSE}"; then
9310 as_fn_error "conditional \"VGCONF_OS_IS_L4RE\" was never defined.
9311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9313 if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
9314 as_fn_error "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
9315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9317 if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
9318 as_fn_error "conditional \"HAS_ALTIVEC\" was never defined.
9319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9321 if test -z "${HAVE_ALTIVEC_H_TRUE}" && test -z "${HAVE_ALTIVEC_H_FALSE}"; then
9322 as_fn_error "conditional \"HAVE_ALTIVEC_H\" was never defined.
9323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9325 if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
9326 as_fn_error "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
9327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9329 if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
9330 as_fn_error "conditional \"BUILD_SSE3_TESTS\" was never defined.
9331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9333 if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
9334 as_fn_error "conditional \"BUILD_SSSE3_TESTS\" was never defined.
9335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9337 if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
9338 as_fn_error "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
9339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9341 if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
9342 as_fn_error "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
9343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9345 if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
9346 as_fn_error "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
9347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9349 if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
9350 as_fn_error "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
9351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9353 if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
9354 as_fn_error "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
9355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9357 if test -z "${HAVE_QTCORE_TRUE}" && test -z "${HAVE_QTCORE_FALSE}"; then
9358 as_fn_error "conditional \"HAVE_QTCORE\" was never defined.
9359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9361 if test -z "${HAVE_QTCORE_QATOMICINT_TRUE}" && test -z "${HAVE_QTCORE_QATOMICINT_FALSE}"; then
9362 as_fn_error "conditional \"HAVE_QTCORE_QATOMICINT\" was never defined.
9363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9365 if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
9366 as_fn_error "conditional \"HAVE_BOOST_1_35\" was never defined.
9367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9369 if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
9370 as_fn_error "conditional \"HAVE_OPENMP\" was never defined.
9371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9373 if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
9374 as_fn_error "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
9375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9378 : ${CONFIG_STATUS=./config.status}
9380 ac_clean_files_save=$ac_clean_files
9381 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9383 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9385 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9387 # Generated by $as_me.
9388 # Run this file to recreate the current configuration.
9389 # Compiler output produced by configure, useful for debugging
9390 # configure, is in config.log if it exists.
9396 SHELL=\${CONFIG_SHELL-$SHELL}
9399 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9400 ## -------------------- ##
9401 ## M4sh Initialization. ##
9402 ## -------------------- ##
9404 # Be more Bourne compatible
9405 DUALCASE=1; export DUALCASE # for MKS sh
9406 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9409 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9410 # is contrary to our usage. Disable this feature.
9411 alias -g '${1+"$@"}'='"$@"'
9412 setopt NO_GLOB_SUBST
9414 case `(set -o) 2>/dev/null` in #(
9426 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9427 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9428 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9429 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9430 # Prefer a ksh shell builtin over an external printf program on Solaris,
9431 # but without wasting forks for bash or zsh.
9432 if test -z "$BASH_VERSION$ZSH_VERSION" \
9433 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9434 as_echo='print -r --'
9435 as_echo_n='print -rn --'
9436 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9437 as_echo='printf %s\n'
9438 as_echo_n='printf %s'
9440 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9441 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9442 as_echo_n='/usr/ucb/echo -n'
9444 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9445 as_echo_n_body='eval
9449 expr "X$arg" : "X\\(.*\\)$as_nl";
9450 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9452 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9454 export as_echo_n_body
9455 as_echo_n='sh -c $as_echo_n_body as_echo'
9458 as_echo='sh -c $as_echo_body as_echo'
9461 # The user is always right.
9462 if test "${PATH_SEPARATOR+set}" != set; then
9464 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9465 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9472 # We need space, tab and new line, in precisely that order. Quoting is
9473 # there to prevent editors from complaining about space-tab.
9474 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9475 # splitting by setting IFS to empty value.)
9478 # Find who we are. Look in the path if we contain no directory separator.
9480 *[\\/]* ) as_myself=$0 ;;
9481 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485 test -z "$as_dir" && as_dir=.
9486 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9492 # We did not find ourselves, most probably we were run as `sh COMMAND'
9493 # in which case we are not to be found in the path.
9494 if test "x$as_myself" = x; then
9497 if test ! -f "$as_myself"; then
9498 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9502 # Unset variables that we do not need and which cause bugs (e.g. in
9503 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9504 # suppresses any "Segmentation fault" message there. '((' could
9505 # trigger a bug in pdksh 5.2.14.
9506 for as_var in BASH_ENV ENV MAIL MAILPATH
9507 do eval test x\${$as_var+set} = xset \
9508 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9521 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9524 # as_fn_error ERROR [LINENO LOG_FD]
9525 # ---------------------------------
9526 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9527 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9528 # script with status $?, using 1 if that was 0.
9531 as_status=$?; test $as_status -eq 0 && as_status=1
9533 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9534 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9536 $as_echo "$as_me: error: $1" >&2
9537 as_fn_exit $as_status
9541 # as_fn_set_status STATUS
9542 # -----------------------
9543 # Set $? to STATUS, without forking.
9547 } # as_fn_set_status
9551 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9561 # Portably unset VAR.
9564 { eval $1=; unset $1;}
9566 as_unset=as_fn_unset
9567 # as_fn_append VAR VALUE
9568 # ----------------------
9569 # Append the text in VALUE to the end of the definition contained in VAR. Take
9570 # advantage of any shell optimizations that allow amortized linear growth over
9571 # repeated appends, instead of the typical quadratic growth present in naive
9573 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9574 eval 'as_fn_append ()
9585 # as_fn_arith ARG...
9586 # ------------------
9587 # Perform arithmetic evaluation on the ARGs, and store the result in the
9588 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9589 # must be portable across $(()) and expr.
9590 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9591 eval 'as_fn_arith ()
9598 as_val=`expr "$@" || test $? -eq 1`
9603 if expr a : '\(a\)' >/dev/null 2>&1 &&
9604 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9610 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9611 as_basename=basename
9616 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9622 as_me=`$as_basename -- "$0" ||
9623 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9624 X"$0" : 'X\(//\)$' \| \
9625 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9627 sed '/^.*\/\([^/][^/]*\)\/*$/{
9641 # Avoid depending upon Character Ranges.
9642 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9643 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9644 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9645 as_cr_digits='0123456789'
9646 as_cr_alnum=$as_cr_Letters$as_cr_digits
9648 ECHO_C= ECHO_N= ECHO_T=
9649 case `echo -n x` in #(((((
9651 case `echo 'xy\c'` in
9652 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9654 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9661 rm -f conf$$ conf$$.exe conf$$.file
9662 if test -d conf$$.dir; then
9663 rm -f conf$$.dir/conf$$.file
9666 mkdir conf$$.dir 2>/dev/null
9668 if (echo >conf$$.file) 2>/dev/null; then
9669 if ln -s conf$$.file conf$$ 2>/dev/null; then
9671 # ... but there are two gotchas:
9672 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9673 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9674 # In both cases, we have to default to `cp -p'.
9675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9677 elif ln conf$$.file conf$$ 2>/dev/null; then
9685 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9686 rmdir conf$$.dir 2>/dev/null
9691 # Create "$as_dir" as a directory, including parents if necessary.
9696 -*) as_dir=./$as_dir;;
9698 test -d "$as_dir" || eval $as_mkdir_p || {
9702 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9703 *) as_qdir=$as_dir;;
9705 as_dirs="'$as_qdir' $as_dirs"
9706 as_dir=`$as_dirname -- "$as_dir" ||
9707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9708 X"$as_dir" : 'X\(//\)[^/]' \| \
9709 X"$as_dir" : 'X\(//\)$' \| \
9710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9711 $as_echo X"$as_dir" |
9712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9729 test -d "$as_dir" && break
9731 test -z "$as_dirs" || eval "mkdir $as_dirs"
9732 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9736 if mkdir -p . 2>/dev/null; then
9737 as_mkdir_p='mkdir -p "$as_dir"'
9739 test -d ./-p && rmdir ./-p
9743 if test -x / >/dev/null 2>&1; then
9746 if ls -dL / >/dev/null 2>&1; then
9753 if test -d "$1"; then
9759 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9760 ???[sx]*):;;*)false;;esac;fi
9764 as_executable_p=$as_test_x
9766 # Sed expression to map a string onto a valid CPP name.
9767 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9769 # Sed expression to map a string onto a valid variable name.
9770 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9774 ## ----------------------------------- ##
9775 ## Main body of $CONFIG_STATUS script. ##
9776 ## ----------------------------------- ##
9778 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9781 # Save the log message, to keep $0 and so on meaningful, and to
9782 # report actual input values of CONFIG_FILES etc. instead of their
9783 # values after options handling.
9785 This file was extended by Valgrind $as_me 3.6.0.SVN, which was
9786 generated by GNU Autoconf 2.65. Invocation command line was
9788 CONFIG_FILES = $CONFIG_FILES
9789 CONFIG_HEADERS = $CONFIG_HEADERS
9790 CONFIG_LINKS = $CONFIG_LINKS
9791 CONFIG_COMMANDS = $CONFIG_COMMANDS
9794 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9799 case $ac_config_files in *"
9800 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9803 case $ac_config_headers in *"
9804 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9809 # Files that config.status was made for.
9810 config_files="$ac_config_files"
9811 config_headers="$ac_config_headers"
9812 config_commands="$ac_config_commands"
9816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9818 \`$as_me' instantiates files and other configuration actions
9819 from templates according to the current configuration. Unless the files
9820 and actions are specified as TAGs, all are instantiated by default.
9822 Usage: $0 [OPTION]... [TAG]...
9824 -h, --help print this help, then exit
9825 -V, --version print version number and configuration settings, then exit
9826 --config print configuration, then exit
9827 -q, --quiet, --silent
9828 do not print progress messages
9829 -d, --debug don't remove temporary files
9830 --recheck update $as_me by reconfiguring in the same conditions
9831 --file=FILE[:TEMPLATE]
9832 instantiate the configuration file FILE
9833 --header=FILE[:TEMPLATE]
9834 instantiate the configuration header FILE
9836 Configuration files:
9839 Configuration headers:
9842 Configuration commands:
9845 Report bugs to <valgrind-users@lists.sourceforge.net>."
9848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9849 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9851 Valgrind config.status 3.6.0.SVN
9852 configured by $0, generated by GNU Autoconf 2.65,
9853 with options \\"\$ac_cs_config\\"
9855 Copyright (C) 2009 Free Software Foundation, Inc.
9856 This config.status script is free software; the Free Software Foundation
9857 gives unlimited permission to copy, distribute and modify it."
9864 test -n "\$AWK" || AWK=awk
9867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9868 # The default lists apply if the user does not specify any file.
9874 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9875 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9886 # Handling of the options.
9887 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9889 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9890 $as_echo "$ac_cs_version"; exit ;;
9891 --config | --confi | --conf | --con | --co | --c )
9892 $as_echo "$ac_cs_config"; exit ;;
9893 --debug | --debu | --deb | --de | --d | -d )
9895 --file | --fil | --fi | --f )
9898 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9900 as_fn_append CONFIG_FILES " '$ac_optarg'"
9901 ac_need_defaults=false;;
9902 --header | --heade | --head | --hea )
9905 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9907 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9908 ac_need_defaults=false;;
9910 # Conflict between --help and --header
9911 as_fn_error "ambiguous option: \`$1'
9912 Try \`$0 --help' for more information.";;
9913 --help | --hel | -h )
9914 $as_echo "$ac_cs_usage"; exit ;;
9915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9916 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9920 -*) as_fn_error "unrecognized option: \`$1'
9921 Try \`$0 --help' for more information." ;;
9923 *) as_fn_append ac_config_targets " $1"
9924 ac_need_defaults=false ;;
9930 ac_configure_extra_args=
9932 if $ac_cs_silent; then
9934 ac_configure_extra_args="$ac_configure_extra_args --silent"
9938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9939 if \$ac_cs_recheck; then
9940 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9942 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9943 CONFIG_SHELL='$SHELL'
9949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9953 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9954 ## Running $as_me. ##
9960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9964 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9970 # Handling of arguments.
9971 for ac_config_target in $ac_config_targets
9973 case $ac_config_target in
9974 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9975 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9976 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9977 "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
9978 "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
9979 "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
9980 "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
9981 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
9982 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9983 "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
9984 "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
9985 "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
9986 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9987 "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
9988 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
9989 "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
9990 "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
9991 "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
9992 "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
9993 "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
9994 "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
9995 "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
9996 "memcheck/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-linux/Makefile" ;;
9997 "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
9998 "memcheck/perf/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/perf/Makefile" ;;
9999 "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
10000 "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
10001 "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
10002 "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
10003 "cachegrind/cg_diff") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_diff" ;;
10004 "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
10005 "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
10006 "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
10007 "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
10008 "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
10009 "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
10010 "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
10011 "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
10012 "massif/perf/Makefile") CONFIG_FILES="$CONFIG_FILES massif/perf/Makefile" ;;
10013 "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
10014 "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
10015 "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
10016 "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
10017 "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
10018 "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
10019 "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
10020 "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
10021 "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
10022 "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
10023 "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
10024 "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
10025 "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
10026 "exp-ptrcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-ptrcheck/Makefile" ;;
10027 "exp-ptrcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-ptrcheck/tests/Makefile" ;;
10028 "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
10029 "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
10030 "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
10031 "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
10032 "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
10033 "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
10034 "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
10035 "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
10036 "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
10037 "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
10038 "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
10039 "coregrind/link_tool_exe_aix5") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_aix5" ;;
10040 "coregrind/link_tool_exe_l4re") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_l4re" ;;
10042 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10047 # If the user did not use the arguments to specify the items to instantiate,
10048 # then the envvar interface is used. Set only those that are not.
10049 # We use the long form for the default assignment because of an extremely
10050 # bizarre bug on SunOS 4.1.3.
10051 if $ac_need_defaults; then
10052 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10053 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10054 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10057 # Have a temporary directory for convenience. Make it in the build tree
10058 # simply because there is no reason against having it here, and in addition,
10059 # creating and moving files from /tmp can sometimes cause problems.
10060 # Hook for its removal unless debugging.
10061 # Note that there is a small window in which the directory will not be cleaned:
10062 # after its creation but before its name has been assigned to `$tmp'.
10066 trap 'exit_status=$?
10067 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10069 trap 'as_fn_exit 1' 1 2 13 15
10071 # Create a (secure) tmp directory for tmp files.
10074 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10075 test -n "$tmp" && test -d "$tmp"
10078 tmp=./conf$$-$RANDOM
10079 (umask 077 && mkdir "$tmp")
10080 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10082 # Set up the scripts for CONFIG_FILES section.
10083 # No need to generate them if there are no CONFIG_FILES.
10084 # This happens for instance with `./config.status config.h'.
10085 if test -n "$CONFIG_FILES"; then
10088 ac_cr=`echo X | tr X '\015'`
10089 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10090 # But we know of no other shell where ac_cr would be empty at this
10091 # point, so we can use a bashism as a fallback.
10092 if test "x$ac_cr" = x; then
10093 eval ac_cr=\$\'\\r\'
10095 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10096 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10099 ac_cs_awk_cr=$ac_cr
10102 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10107 echo "cat >conf$$subs.awk <<_ACEOF" &&
10108 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10110 } >conf$$subs.sh ||
10111 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10112 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10114 for ac_last_try in false false false false false :; do
10115 . ./conf$$subs.sh ||
10116 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10118 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10119 if test $ac_delim_n = $ac_delim_num; then
10121 elif $ac_last_try; then
10122 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10124 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10127 rm -f conf$$subs.sh
10129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10130 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10134 s/^/S["/; s/!.*/"]=/
10144 s/\(.\{148\}\)..*/\1/
10146 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10151 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10158 s/\(.\{148\}\)..*/\1/
10160 s/["\\]/\\&/g; s/^/"/; s/$/"/
10164 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10169 ' <conf$$subs.awk | sed '
10174 ' >>$CONFIG_STATUS || ac_write_fail=1
10175 rm -f conf$$subs.awk
10176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10178 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10179 for (key in S) S_is_set[key] = 1
10185 nfields = split(line, field, "@")
10187 len = length(field[1])
10188 for (i = 2; i < nfields; i++) {
10190 keylen = length(key)
10191 if (S_is_set[key]) {
10193 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10194 len += length(value) + length(field[++i])
10205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10206 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10207 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10210 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10211 || as_fn_error "could not setup config files machinery" "$LINENO" 5
10214 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10215 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10216 # trailing colons and then remove the whole line if VPATH becomes empty
10217 # (actually we leave an empty line to preserve line numbers).
10218 if test "x$srcdir" = x.; then
10219 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10220 s/:*\$(srcdir):*/:/
10221 s/:*\${srcdir}:*/:/
10223 s/^\([^=]*=[ ]*\):*/\1/
10229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10230 fi # test -n "$CONFIG_FILES"
10232 # Set up the scripts for CONFIG_HEADERS section.
10233 # No need to generate them if there are no CONFIG_HEADERS.
10234 # This happens for instance with `./config.status Makefile'.
10235 if test -n "$CONFIG_HEADERS"; then
10236 cat >"$tmp/defines.awk" <<\_ACAWK ||
10240 # Transform confdefs.h into an awk script `defines.awk', embedded as
10241 # here-document in config.status, that substitutes the proper values into
10242 # config.h.in to produce config.h.
10244 # Create a delimiter string that does not exist in confdefs.h, to ease
10245 # handling of long lines.
10247 for ac_last_try in false false :; do
10248 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10249 if test -z "$ac_t"; then
10251 elif $ac_last_try; then
10252 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10258 # For the awk script, D is an array of macro values keyed by name,
10259 # likewise P contains macro parameters if any. Preserve backslash
10260 # newline sequences.
10262 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10264 s/.\{148\}/&'"$ac_delim"'/g
10267 s/^[ ]*#[ ]*define[ ][ ]*/ /
10274 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10276 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10281 D["\1"]=" \3\\\\\\n"\\/p
10283 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10288 s/.\{148\}/&'"$ac_delim"'/g
10293 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10296 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10298 ' <confdefs.h | sed '
10299 s/'"$ac_delim"'/"\\\
10300 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10303 for (key in D) D_is_set[key] = 1
10306 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10308 split(line, arg, " ")
10309 if (arg[1] == "#") {
10313 defundef = substr(arg[1], 2)
10316 split(mac1, mac2, "(") #)
10318 prefix = substr(line, 1, index(line, defundef) - 1)
10319 if (D_is_set[macro]) {
10320 # Preserve the white space surrounding the "#".
10321 print prefix "define", macro P[macro] D[macro]
10324 # Replace #undef with comments. This is necessary, for example,
10325 # in the case of _POSIX_SOURCE, which is predefined and required
10326 # on some systems where configure will not decide to define it.
10327 if (defundef == "undef") {
10328 print "/*", prefix defundef, macro, "*/"
10336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10337 as_fn_error "could not setup config headers machinery" "$LINENO" 5
10338 fi # test -n "$CONFIG_HEADERS"
10341 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10346 :[FHLC]) ac_mode=$ac_tag; continue;;
10348 case $ac_mode$ac_tag in
10350 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10351 :[FH]-) ac_tag=-:-;;
10352 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10369 -) ac_f="$tmp/stdin";;
10370 *) # Look for the file first in the build tree, then in the source tree
10371 # (if the path is not absolute). The absolute path cannot be DOS-style,
10372 # because $ac_f cannot contain `:'.
10376 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10378 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10380 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10381 as_fn_append ac_file_inputs " '$ac_f'"
10384 # Let's still pretend it is `configure' which instantiates (i.e., don't
10385 # use $as_me), people would be surprised to read:
10386 # /* config.h. Generated by config.status. */
10387 configure_input='Generated from '`
10388 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10390 if test x"$ac_file" != x-; then
10391 configure_input="$ac_file. $configure_input"
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10393 $as_echo "$as_me: creating $ac_file" >&6;}
10395 # Neutralize special characters interpreted by sed in replacement strings.
10396 case $configure_input in #(
10397 *\&* | *\|* | *\\* )
10398 ac_sed_conf_input=`$as_echo "$configure_input" |
10399 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10400 *) ac_sed_conf_input=$configure_input;;
10404 *:-:* | *:-) cat >"$tmp/stdin" \
10405 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10410 ac_dir=`$as_dirname -- "$ac_file" ||
10411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10412 X"$ac_file" : 'X\(//\)[^/]' \| \
10413 X"$ac_file" : 'X\(//\)$' \| \
10414 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10415 $as_echo X"$ac_file" |
10416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10420 /^X\(\/\/\)[^/].*/{
10433 as_dir="$ac_dir"; as_fn_mkdir_p
10437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10440 # A ".." for each directory in $ac_dir_suffix.
10441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10442 case $ac_top_builddir_sub in
10443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10447 ac_abs_top_builddir=$ac_pwd
10448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10449 # for backward compatibility:
10450 ac_top_builddir=$ac_top_build_prefix
10453 .) # We are building in place.
10455 ac_top_srcdir=$ac_top_builddir_sub
10456 ac_abs_top_srcdir=$ac_pwd ;;
10457 [\\/]* | ?:[\\/]* ) # Absolute name.
10458 ac_srcdir=$srcdir$ac_dir_suffix;
10459 ac_top_srcdir=$srcdir
10460 ac_abs_top_srcdir=$srcdir ;;
10461 *) # Relative name.
10462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10463 ac_top_srcdir=$ac_top_build_prefix$srcdir
10464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10476 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10477 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10479 ac_MKDIR_P=$MKDIR_P
10481 [\\/$]* | ?:[\\/]* ) ;;
10482 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10487 # If the template does not know about datarootdir, expand it.
10488 # FIXME: This hack should be removed a few years after 2.60.
10489 ac_datarootdir_hack=; ac_datarootdir_seen=
10500 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10501 *datarootdir*) ac_datarootdir_seen=yes;;
10502 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10504 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10507 ac_datarootdir_hack='
10508 s&@datadir@&$datadir&g
10509 s&@docdir@&$docdir&g
10510 s&@infodir@&$infodir&g
10511 s&@localedir@&$localedir&g
10512 s&@mandir@&$mandir&g
10513 s&\\\${datarootdir}&$datarootdir&g' ;;
10517 # Neutralize VPATH when `$srcdir' = `.'.
10518 # Shell code in configure.ac might set extrasub.
10519 # FIXME: do we really want to maintain this feature?
10520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10521 ac_sed_extra="$ac_vpsub
10524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10527 s|@configure_input@|$ac_sed_conf_input|;t t
10528 s&@top_builddir@&$ac_top_builddir_sub&;t t
10529 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10530 s&@srcdir@&$ac_srcdir&;t t
10531 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10532 s&@top_srcdir@&$ac_top_srcdir&;t t
10533 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10534 s&@builddir@&$ac_builddir&;t t
10535 s&@abs_builddir@&$ac_abs_builddir&;t t
10536 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10537 s&@INSTALL@&$ac_INSTALL&;t t
10538 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10539 $ac_datarootdir_hack
10541 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10542 || as_fn_error "could not create $ac_file" "$LINENO" 5
10544 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10545 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10546 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10548 which seems to be undefined. Please make sure it is defined." >&5
10549 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10550 which seems to be undefined. Please make sure it is defined." >&2;}
10554 -) cat "$tmp/out" && rm -f "$tmp/out";;
10555 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10557 || as_fn_error "could not create $ac_file" "$LINENO" 5
10563 if test x"$ac_file" != x-; then
10565 $as_echo "/* $configure_input */" \
10566 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10567 } >"$tmp/config.h" \
10568 || as_fn_error "could not create $ac_file" "$LINENO" 5
10569 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10571 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10574 mv "$tmp/config.h" "$ac_file" \
10575 || as_fn_error "could not create $ac_file" "$LINENO" 5
10578 $as_echo "/* $configure_input */" \
10579 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10580 || as_fn_error "could not create -" "$LINENO" 5
10582 # Compute "$ac_file"'s index in $config_headers.
10585 for _am_header in $config_headers :; do
10586 case $_am_header in
10587 $_am_arg | $_am_arg:* )
10590 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10593 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10594 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10595 X"$_am_arg" : 'X\(//\)[^/]' \| \
10596 X"$_am_arg" : 'X\(//\)$' \| \
10597 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10598 $as_echo X"$_am_arg" |
10599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10603 /^X\(\/\/\)[^/].*/{
10615 s/.*/./; q'`/stamp-h$_am_stamp_count
10618 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10619 $as_echo "$as_me: executing $ac_file commands" >&6;}
10624 case $ac_file$ac_mode in
10625 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10626 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10627 # are listed without --file. Let's play safe and only enable the eval
10628 # if we detect the quoting.
10629 case $CONFIG_FILES in
10630 *\'*) eval set x "$CONFIG_FILES" ;;
10631 *) set x $CONFIG_FILES ;;
10636 # Strip MF so we end up with the name of the file.
10637 mf=`echo "$mf" | sed -e 's/:.*$//'`
10638 # Check whether this is an Automake generated Makefile or not.
10639 # We used to match only the files named `Makefile.in', but
10640 # some people rename them; so instead we look at the file content.
10641 # Grep'ing the first line is not enough: some people post-process
10642 # each Makefile.in and add a new line on top of each file to say so.
10643 # Grep'ing the whole file is not good either: AIX grep has a line
10644 # limit of 2048, but all sed's we know have understand at least 4000.
10645 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10646 dirpart=`$as_dirname -- "$mf" ||
10647 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10648 X"$mf" : 'X\(//\)[^/]' \| \
10649 X"$mf" : 'X\(//\)$' \| \
10650 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10656 /^X\(\/\/\)[^/].*/{
10672 # Extract the definition of DEPDIR, am__include, and am__quote
10673 # from the Makefile without running `make'.
10674 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10675 test -z "$DEPDIR" && continue
10676 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10677 test -z "am__include" && continue
10678 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10679 # When using ansi2knr, U may be empty or an underscore; expand it
10680 U=`sed -n 's/^U = //p' < "$mf"`
10681 # Find all dependency output files, they are included files with
10682 # $(DEPDIR) in their names. We invoke sed twice because it is the
10683 # simplest approach to changing $(DEPDIR) to its actual value in the
10685 for file in `sed -n "
10686 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10687 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10688 # Make sure the directory exists.
10689 test -f "$dirpart/$file" && continue
10690 fdir=`$as_dirname -- "$file" ||
10691 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10692 X"$file" : 'X\(//\)[^/]' \| \
10693 X"$file" : 'X\(//\)$' \| \
10694 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10695 $as_echo X"$file" |
10696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10700 /^X\(\/\/\)[^/].*/{
10713 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10714 # echo "creating $dirpart/$file"
10715 echo '# dummy' > "$dirpart/$file"
10720 "coregrind/link_tool_exe_linux":F) chmod +x coregrind/link_tool_exe_linux ;;
10721 "coregrind/link_tool_exe_darwin":F) chmod +x coregrind/link_tool_exe_darwin ;;
10722 "coregrind/link_tool_exe_aix5":F) chmod +x coregrind/link_tool_exe_aix5 ;;
10723 "coregrind/link_tool_exe_l4re":F) chmod +x coregrind/link_tool_exe_l4re ;;
10731 ac_clean_files=$ac_clean_files_save
10733 test $ac_write_fail = 0 ||
10734 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10737 # configure is writing to config.log, and then calls config.status.
10738 # config.status does its own redirection, appending to config.log.
10739 # Unfortunately, on DOS this fails, as config.log is still kept open
10740 # by configure, so config.status won't be able to write to it; its
10741 # output is simply discarded. So we exec the FD to /dev/null,
10742 # effectively closing config.log, so it can be properly (re)opened and
10743 # appended to by config.status. When coming back to configure, we
10744 # need to make the FD available again.
10745 if test "$no_create" != yes; then
10747 ac_config_status_args=
10748 test "$silent" = yes &&
10749 ac_config_status_args="$ac_config_status_args --quiet"
10751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10754 # would make configure fail if this is the last instruction.
10755 $ac_cs_success || as_fn_exit $?
10757 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10759 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10765 Maximum build arch: ${ARCH_MAX}
10766 Primary build arch: ${VGCONF_ARCH_PRI}
10767 Secondary build arch: ${VGCONF_ARCH_SEC}
10768 Build OS: ${VGCONF_OS}
10769 Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
10770 Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
10771 Default supp files: ${DEFAULT_SUPP}
10772 Generated supp files: ${GENERATED_SUPP}