blob: 0f9e64526e52145796d53d1e1f05a50e6a4e62a3 [file] [log] [blame]
Elliott Hughesa0664b92017-04-18 17:46:52 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Valgrind 3.12.0.
4#
5# Report bugs to <valgrind-users@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: valgrind-users@lists.sourceforge.net about your system,
271$0: including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537else
538 as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='Valgrind'
582PACKAGE_TARNAME='valgrind'
583PACKAGE_VERSION='3.12.0'
584PACKAGE_STRING='Valgrind 3.12.0'
585PACKAGE_BUGREPORT='valgrind-users@lists.sourceforge.net'
586PACKAGE_URL=''
587
588ac_unique_file="coregrind/m_main.c"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603# include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608# include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_header_list=
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629HAVE_SHARED_POINTER_ANNOTATION_FALSE
630HAVE_SHARED_POINTER_ANNOTATION_TRUE
631ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE
632ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE
633ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE
634ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE
635HAVE_BUILTIN_ATOMIC_CXX_FALSE
636HAVE_BUILTIN_ATOMIC_CXX_TRUE
637HAVE_BUILTIN_ATOMIC64_FALSE
638HAVE_BUILTIN_ATOMIC64_TRUE
639HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE
640HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE
641HAVE_BUILTIN_ATOMIC_FALSE
642HAVE_BUILTIN_ATOMIC_TRUE
643HAVE_OPENMP_FALSE
644HAVE_OPENMP_TRUE
645HAVE_BOOST_1_35_FALSE
646HAVE_BOOST_1_35_TRUE
647BOOST_LIBS
648BOOST_CFLAGS
649BUILD_MPIWRAP_SEC_FALSE
650BUILD_MPIWRAP_SEC_TRUE
651BUILD_MPIWRAP_PRI_FALSE
652BUILD_MPIWRAP_PRI_TRUE
653LDFLAGS_MPI
654CFLAGS_MPI
655MPI_CC
656HAVE_PTHREAD_SETNAME_NP_FALSE
657HAVE_PTHREAD_SETNAME_NP_TRUE
658HAVE_PTHREAD_SPINLOCK_FALSE
659HAVE_PTHREAD_SPINLOCK_TRUE
660HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
661HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
662HAVE_PTHREAD_BARRIER_FALSE
663HAVE_PTHREAD_BARRIER_TRUE
664LIBOBJS
665SOLARIS_SYSTEM_STATS_SYSCALL_FALSE
666SOLARIS_SYSTEM_STATS_SYSCALL_TRUE
667SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE
668SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE
669SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE
670SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE
671DIS_PATH
672SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE
673SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE
674SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE
675SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE
676SOLARIS_GETHRT_FASTTRAP_FALSE
677SOLARIS_GETHRT_FASTTRAP_TRUE
678SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE
679SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE
680SOLARIS_MODCTL_MODNVL_FALSE
681SOLARIS_MODCTL_MODNVL_TRUE
682SOLARIS_SPAWN_SYSCALL_FALSE
683SOLARIS_SPAWN_SYSCALL_TRUE
684SOLARIS_UTIMENSAT_SYSCALL_FALSE
685SOLARIS_UTIMENSAT_SYSCALL_TRUE
686SOLARIS_UTIMESYS_SYSCALL_FALSE
687SOLARIS_UTIMESYS_SYSCALL_TRUE
688SOLARIS_PSET_GET_NAME_FALSE
689SOLARIS_PSET_GET_NAME_TRUE
690SOLARIS_TSOL_CLEARANCE_FALSE
691SOLARIS_TSOL_CLEARANCE_TRUE
692SOLARIS_TNDB_GET_TNIP_FALSE
693SOLARIS_TNDB_GET_TNIP_TRUE
694SOLARIS_UUIDSYS_SYSCALL_FALSE
695SOLARIS_UUIDSYS_SYSCALL_TRUE
696SOLARIS_FREALPATHAT_SYSCALL_FALSE
697SOLARIS_FREALPATHAT_SYSCALL_TRUE
698SOLARIS_PRXREGSET_T_FALSE
699SOLARIS_PRXREGSET_T_TRUE
700SOLARIS_SHM_NEW_FALSE
701SOLARIS_SHM_NEW_TRUE
702SOLARIS_AUDITON_STAT_FALSE
703SOLARIS_AUDITON_STAT_TRUE
704SOLARIS_ZONE_DEFUNCT_FALSE
705SOLARIS_ZONE_DEFUNCT_TRUE
706SOLARIS_GETRANDOM_SYSCALL_FALSE
707SOLARIS_GETRANDOM_SYSCALL_TRUE
708SOLARIS_LWP_NAME_SYSCALL_FALSE
709SOLARIS_LWP_NAME_SYSCALL_TRUE
710SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE
711SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE
712SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE
713SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE
714SOLARIS_OLD_SYSCALLS_FALSE
715SOLARIS_OLD_SYSCALLS_TRUE
716SOLARIS_PROC_CMDLINE_FALSE
717SOLARIS_PROC_CMDLINE_TRUE
718SOLARIS_UNDEF_LARGESOURCE
719SOLARIS_XPG_SYMBOLS_PRESENT_FALSE
720SOLARIS_XPG_SYMBOLS_PRESENT_TRUE
721SOLARIS_SUN_STUDIO_AS_FALSE
722SOLARIS_SUN_STUDIO_AS_TRUE
723BUILD_ARMV8_CRC_TESTS_FALSE
724BUILD_ARMV8_CRC_TESTS_TRUE
725BUILD_IFUNC_TESTS_FALSE
726BUILD_IFUNC_TESTS_TRUE
727BUILD_MOVBE_TESTS_FALSE
728BUILD_MOVBE_TESTS_TRUE
729BUILD_MPX_TESTS_FALSE
730BUILD_MPX_TESTS_TRUE
731BUILD_FMA_TESTS_FALSE
732BUILD_FMA_TESTS_TRUE
733BUILD_BMI_TESTS_FALSE
734BUILD_BMI_TESTS_TRUE
735BUILD_TSX_TESTS_FALSE
736BUILD_TSX_TESTS_TRUE
737BUILD_AVX2_TESTS_FALSE
738BUILD_AVX2_TESTS_TRUE
739BUILD_AVX_TESTS_FALSE
740BUILD_AVX_TESTS_TRUE
741BUILD_SSE42_TESTS_FALSE
742BUILD_SSE42_TESTS_TRUE
743BUILD_ADDR32_TESTS_FALSE
744BUILD_ADDR32_TESTS_TRUE
745BUILD_LOOPNEL_TESTS_FALSE
746BUILD_LOOPNEL_TESTS_TRUE
747BUILD_LZCNT_TESTS_FALSE
748BUILD_LZCNT_TESTS_TRUE
749BUILD_FMA4_TESTS_FALSE
750BUILD_FMA4_TESTS_TRUE
751BUILD_VPCLMULQDQ_TESTS_FALSE
752BUILD_VPCLMULQDQ_TESTS_TRUE
753BUILD_PCLMULQDQ_TESTS_FALSE
754BUILD_PCLMULQDQ_TESTS_TRUE
755BUILD_SSSE3_TESTS_FALSE
756BUILD_SSSE3_TESTS_TRUE
757BUILD_SSE3_TESTS_FALSE
758BUILD_SSE3_TESTS_TRUE
759FLAG_NO_BUILD_ID
760FLAG_T_TEXT
761HAVE_ASM_CONSTRAINT_P_FALSE
762HAVE_ASM_CONSTRAINT_P_TRUE
763HAVE_NESTED_FUNCTIONS_FALSE
764HAVE_NESTED_FUNCTIONS_TRUE
765GZ_ZLIB_GNU_FALSE
766GZ_ZLIB_GNU_TRUE
767GZ_ZLIB_FALSE
768GZ_ZLIB_TRUE
769DWARF4_FALSE
770DWARF4_TRUE
771FLAG_UNLIMITED_INLINE_UNIT_GROWTH
772LIB_UBSAN
773FLAG_FSANITIZE
774FLAG_FNO_IPA_ICF
775FLAG_FNO_STACK_PROTECTOR
776FLAG_W_CAST_ALIGN
777FLAG_W_EXTRA
778FLAG_W_FORMAT_SECURITY
779FLAG_W_MISSING_PARAMETER_TYPE
780FLAG_W_IGNORED_QUALIFIERS
781FLAG_W_OLD_STYLE_DECLARATION
782FLAG_W_CAST_QUAL
783FLAG_W_FORMAT_SIGNEDNESS
784FLAG_W_FORMAT
785FLAG_W_EMPTY_BODY
786FLAG_W_WRITE_STRINGS
787FLAG_W_NO_INFINITE_RECURSION
788FLAG_W_NO_MISMATCHED_NEW_DELETE
789FLAG_W_NO_STATIC_LOCAL_IN_INLINE
790FLAG_W_NO_UNUSED_FUNCTION
791FLAG_W_NO_UNINITIALIZED
792FLAG_W_NO_POINTER_SIGN
793FLAG_W_NO_OVERFLOW
794FLAG_W_NO_NONNULL
795FLAG_W_NO_MEMSET_TRANSPOSED_ARGS
796FLAG_MLONG_DOUBLE_128
797HAS_MLONG_DOUBLE_128_FALSE
798HAS_MLONG_DOUBLE_128_TRUE
799PREFERRED_STACK_BOUNDARY_2
800FLAG_MSSE
801FLAG_MMMX
802FLAG_OCTEON2
803FLAG_OCTEON
804FLAG_MIPS64
805FLAG_MIPS32
806FLAG_M64
807FLAG_M32
808CXX_CAN_INCLUDE_THREAD_HEADER_FALSE
809CXX_CAN_INCLUDE_THREAD_HEADER_TRUE
810HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE
811HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE
812HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
813HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
814HAS_ISA_3_00_FALSE
815HAS_ISA_3_00_TRUE
816SUPPORTS_HTM_FALSE
817SUPPORTS_HTM_TRUE
818BUILD_DFP_TESTS_FALSE
819BUILD_DFP_TESTS_TRUE
820HAS_DFP_FALSE
821HAS_DFP_TRUE
822HAS_VSX_FALSE
823HAS_VSX_TRUE
824HAS_ALTIVEC_FALSE
825HAS_ALTIVEC_TRUE
826HAS_ISA_2_07_FALSE
827HAS_ISA_2_07_TRUE
828HAS_ISA_2_06_FALSE
829HAS_ISA_2_06_TRUE
830HAS_ISA_2_05_FALSE
831HAS_ISA_2_05_TRUE
832HWCAP_HAS_HTM
833HWCAP_HAS_ISA_3_00
834HWCAP_HAS_ISA_2_07
835HWCAP_HAS_ISA_2_06
836HWCAP_HAS_ISA_2_05
837HWCAP_HAS_DFP
838HWCAP_HAS_VSX
839HWCAP_HAS_ALTIVEC
840HAVE_GNU_STPNCPY_FALSE
841HAVE_GNU_STPNCPY_TRUE
842HAVE_AT_FDCWD_FALSE
843HAVE_AT_FDCWD_TRUE
844VGCONF_PLATVARIANT_IS_ANDROID_FALSE
845VGCONF_PLATVARIANT_IS_ANDROID_TRUE
846VGCONF_PLATVARIANT_IS_VANILLA_FALSE
847VGCONF_PLATVARIANT_IS_VANILLA_TRUE
848VGCONF_PLATVARIANT
849GLIBC_VERSION
850EGREP
851GREP
852DEFAULT_SUPP
853VG_TMPDIR
854VALT_LOAD_ADDRESS_SEC
855VALT_LOAD_ADDRESS_PRI
856VGCONF_HAVE_PLATFORM_SEC_FALSE
857VGCONF_HAVE_PLATFORM_SEC_TRUE
858VGCONF_OS_IS_SOLARIS_FALSE
859VGCONF_OS_IS_SOLARIS_TRUE
860VGCONF_OS_IS_DARWIN_FALSE
861VGCONF_OS_IS_DARWIN_TRUE
862VGCONF_OS_IS_LINUX_FALSE
863VGCONF_OS_IS_LINUX_TRUE
864VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE
865VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE
866VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE
867VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE
868VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
869VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
870VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
871VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
872VGCONF_PLATFORMS_INCLUDE_TILEGX_LINUX_FALSE
873VGCONF_PLATFORMS_INCLUDE_TILEGX_LINUX_TRUE
874VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE
875VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE
876VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE
877VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE
878VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE
879VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE
880VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE
881VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE
882VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
883VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
884VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE
885VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE
886VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE
887VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE
888VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
889VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
890VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
891VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
892VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
893VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
894VGCONF_ARCHS_INCLUDE_TILEGX_FALSE
895VGCONF_ARCHS_INCLUDE_TILEGX_TRUE
896VGCONF_ARCHS_INCLUDE_MIPS64_FALSE
897VGCONF_ARCHS_INCLUDE_MIPS64_TRUE
898VGCONF_ARCHS_INCLUDE_MIPS32_FALSE
899VGCONF_ARCHS_INCLUDE_MIPS32_TRUE
900VGCONF_ARCHS_INCLUDE_S390X_FALSE
901VGCONF_ARCHS_INCLUDE_S390X_TRUE
902VGCONF_ARCHS_INCLUDE_ARM64_FALSE
903VGCONF_ARCHS_INCLUDE_ARM64_TRUE
904VGCONF_ARCHS_INCLUDE_ARM_FALSE
905VGCONF_ARCHS_INCLUDE_ARM_TRUE
906VGCONF_ARCHS_INCLUDE_PPC64_FALSE
907VGCONF_ARCHS_INCLUDE_PPC64_TRUE
908VGCONF_ARCHS_INCLUDE_PPC32_FALSE
909VGCONF_ARCHS_INCLUDE_PPC32_TRUE
910VGCONF_ARCHS_INCLUDE_AMD64_FALSE
911VGCONF_ARCHS_INCLUDE_AMD64_TRUE
912VGCONF_ARCHS_INCLUDE_X86_FALSE
913VGCONF_ARCHS_INCLUDE_X86_TRUE
914VGCONF_PLATFORM_SEC_CAPS
915VGCONF_PLATFORM_PRI_CAPS
916VGCONF_ARCH_SEC
917VGCONF_ARCH_PRI
918VGCONF_OS
919host_os
920host_vendor
921host_cpu
922host
923build_os
924build_vendor
925build_cpu
926build
927COMPILER_IS_ICC_FALSE
928COMPILER_IS_ICC_TRUE
929COMPILER_IS_CLANG_FALSE
930COMPILER_IS_CLANG_TRUE
931DIFF
932am__fastdepCCAS_FALSE
933am__fastdepCCAS_TRUE
934CCASDEPMODE
935CCASFLAGS
936CCAS
937GDB
938PERL
939AR
940SED
941RANLIB
942am__fastdepCXX_FALSE
943am__fastdepCXX_TRUE
944CXXDEPMODE
945ac_ct_CXX
946CXXFLAGS
947CXX
948CPP
949am__fastdepCC_FALSE
950am__fastdepCC_TRUE
951CCDEPMODE
952am__nodep
953AMDEPBACKSLASH
954AMDEP_FALSE
955AMDEP_TRUE
956am__quote
957am__include
958DEPDIR
959OBJEXT
960EXEEXT
961ac_ct_CC
962CPPFLAGS
963LDFLAGS
964CFLAGS
965CC
966LN_S
967MAINT
968MAINTAINER_MODE_FALSE
969MAINTAINER_MODE_TRUE
970AM_BACKSLASH
971AM_DEFAULT_VERBOSITY
972AM_DEFAULT_V
973AM_V
974am__untar
975am__tar
976AMTAR
977am__leading_dot
978SET_MAKE
979AWK
980mkdir_p
981MKDIR_P
982INSTALL_STRIP_PROGRAM
983STRIP
984install_sh
985MAKEINFO
986AUTOHEADER
987AUTOMAKE
988AUTOCONF
989ACLOCAL
990VERSION
991PACKAGE
992CYGPATH_W
993am__isrc
994INSTALL_DATA
995INSTALL_SCRIPT
996INSTALL_PROGRAM
997target_alias
998host_alias
999build_alias
1000LIBS
1001ECHO_T
1002ECHO_N
1003ECHO_C
1004DEFS
1005mandir
1006localedir
1007libdir
1008psdir
1009pdfdir
1010dvidir
1011htmldir
1012infodir
1013docdir
1014oldincludedir
1015includedir
1016localstatedir
1017sharedstatedir
1018sysconfdir
1019datadir
1020datarootdir
1021libexecdir
1022sbindir
1023bindir
1024program_transform_name
1025prefix
1026exec_prefix
1027PACKAGE_URL
1028PACKAGE_BUGREPORT
1029PACKAGE_STRING
1030PACKAGE_VERSION
1031PACKAGE_TARNAME
1032PACKAGE_NAME
1033PATH_SEPARATOR
1034SHELL'
1035ac_subst_files=''
1036ac_user_opts='
1037enable_option_checking
1038enable_silent_rules
1039enable_maintainer_mode
1040enable_dependency_tracking
1041enable_only64bit
1042enable_only32bit
1043enable_inner
1044enable_ubsan
1045with_tmpdir
1046enable_tls
1047with_mpicc
1048'
1049 ac_precious_vars='build_alias
1050host_alias
1051target_alias
1052CC
1053CFLAGS
1054LDFLAGS
1055LIBS
1056CPPFLAGS
1057CPP
1058CXX
1059CXXFLAGS
1060CCC
1061AR
1062CCAS
1063CCASFLAGS'
1064
1065
1066# Initialize some variables set by options.
1067ac_init_help=
1068ac_init_version=false
1069ac_unrecognized_opts=
1070ac_unrecognized_sep=
1071# The variables have the same names as the options, with
1072# dashes changed to underlines.
1073cache_file=/dev/null
1074exec_prefix=NONE
1075no_create=
1076no_recursion=
1077prefix=NONE
1078program_prefix=NONE
1079program_suffix=NONE
1080program_transform_name=s,x,x,
1081silent=
1082site=
1083srcdir=
1084verbose=
1085x_includes=NONE
1086x_libraries=NONE
1087
1088# Installation directory options.
1089# These are left unexpanded so users can "make install exec_prefix=/foo"
1090# and all the variables that are supposed to be based on exec_prefix
1091# by default will actually change.
1092# Use braces instead of parens because sh, perl, etc. also accept them.
1093# (The list follows the same order as the GNU Coding Standards.)
1094bindir='${exec_prefix}/bin'
1095sbindir='${exec_prefix}/sbin'
1096libexecdir='${exec_prefix}/libexec'
1097datarootdir='${prefix}/share'
1098datadir='${datarootdir}'
1099sysconfdir='${prefix}/etc'
1100sharedstatedir='${prefix}/com'
1101localstatedir='${prefix}/var'
1102includedir='${prefix}/include'
1103oldincludedir='/usr/include'
1104docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1105infodir='${datarootdir}/info'
1106htmldir='${docdir}'
1107dvidir='${docdir}'
1108pdfdir='${docdir}'
1109psdir='${docdir}'
1110libdir='${exec_prefix}/lib'
1111localedir='${datarootdir}/locale'
1112mandir='${datarootdir}/man'
1113
1114ac_prev=
1115ac_dashdash=
1116for ac_option
1117do
1118 # If the previous option needs an argument, assign it.
1119 if test -n "$ac_prev"; then
1120 eval $ac_prev=\$ac_option
1121 ac_prev=
1122 continue
1123 fi
1124
1125 case $ac_option in
1126 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1127 *=) ac_optarg= ;;
1128 *) ac_optarg=yes ;;
1129 esac
1130
1131 # Accept the important Cygnus configure options, so we can diagnose typos.
1132
1133 case $ac_dashdash$ac_option in
1134 --)
1135 ac_dashdash=yes ;;
1136
1137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1138 ac_prev=bindir ;;
1139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1140 bindir=$ac_optarg ;;
1141
1142 -build | --build | --buil | --bui | --bu)
1143 ac_prev=build_alias ;;
1144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1145 build_alias=$ac_optarg ;;
1146
1147 -cache-file | --cache-file | --cache-fil | --cache-fi \
1148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1149 ac_prev=cache_file ;;
1150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1152 cache_file=$ac_optarg ;;
1153
1154 --config-cache | -C)
1155 cache_file=config.cache ;;
1156
1157 -datadir | --datadir | --datadi | --datad)
1158 ac_prev=datadir ;;
1159 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1160 datadir=$ac_optarg ;;
1161
1162 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1163 | --dataroo | --dataro | --datar)
1164 ac_prev=datarootdir ;;
1165 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1166 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1167 datarootdir=$ac_optarg ;;
1168
1169 -disable-* | --disable-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid feature name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178"enable_$ac_useropt"
1179"*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval enable_$ac_useropt=no ;;
1184
1185 -docdir | --docdir | --docdi | --doc | --do)
1186 ac_prev=docdir ;;
1187 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1188 docdir=$ac_optarg ;;
1189
1190 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1191 ac_prev=dvidir ;;
1192 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1193 dvidir=$ac_optarg ;;
1194
1195 -enable-* | --enable-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid feature name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204"enable_$ac_useropt"
1205"*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval enable_$ac_useropt=\$ac_optarg ;;
1210
1211 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1212 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1213 | --exec | --exe | --ex)
1214 ac_prev=exec_prefix ;;
1215 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1216 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1217 | --exec=* | --exe=* | --ex=*)
1218 exec_prefix=$ac_optarg ;;
1219
1220 -gas | --gas | --ga | --g)
1221 # Obsolete; use --with-gas.
1222 with_gas=yes ;;
1223
1224 -help | --help | --hel | --he | -h)
1225 ac_init_help=long ;;
1226 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1227 ac_init_help=recursive ;;
1228 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1229 ac_init_help=short ;;
1230
1231 -host | --host | --hos | --ho)
1232 ac_prev=host_alias ;;
1233 -host=* | --host=* | --hos=* | --ho=*)
1234 host_alias=$ac_optarg ;;
1235
1236 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1237 ac_prev=htmldir ;;
1238 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1239 | --ht=*)
1240 htmldir=$ac_optarg ;;
1241
1242 -includedir | --includedir | --includedi | --included | --include \
1243 | --includ | --inclu | --incl | --inc)
1244 ac_prev=includedir ;;
1245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1246 | --includ=* | --inclu=* | --incl=* | --inc=*)
1247 includedir=$ac_optarg ;;
1248
1249 -infodir | --infodir | --infodi | --infod | --info | --inf)
1250 ac_prev=infodir ;;
1251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1252 infodir=$ac_optarg ;;
1253
1254 -libdir | --libdir | --libdi | --libd)
1255 ac_prev=libdir ;;
1256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1257 libdir=$ac_optarg ;;
1258
1259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1260 | --libexe | --libex | --libe)
1261 ac_prev=libexecdir ;;
1262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1263 | --libexe=* | --libex=* | --libe=*)
1264 libexecdir=$ac_optarg ;;
1265
1266 -localedir | --localedir | --localedi | --localed | --locale)
1267 ac_prev=localedir ;;
1268 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1269 localedir=$ac_optarg ;;
1270
1271 -localstatedir | --localstatedir | --localstatedi | --localstated \
1272 | --localstate | --localstat | --localsta | --localst | --locals)
1273 ac_prev=localstatedir ;;
1274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1275 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1276 localstatedir=$ac_optarg ;;
1277
1278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1279 ac_prev=mandir ;;
1280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1281 mandir=$ac_optarg ;;
1282
1283 -nfp | --nfp | --nf)
1284 # Obsolete; use --without-fp.
1285 with_fp=no ;;
1286
1287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1288 | --no-cr | --no-c | -n)
1289 no_create=yes ;;
1290
1291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1293 no_recursion=yes ;;
1294
1295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1297 | --oldin | --oldi | --old | --ol | --o)
1298 ac_prev=oldincludedir ;;
1299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1302 oldincludedir=$ac_optarg ;;
1303
1304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1305 ac_prev=prefix ;;
1306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1307 prefix=$ac_optarg ;;
1308
1309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1310 | --program-pre | --program-pr | --program-p)
1311 ac_prev=program_prefix ;;
1312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1314 program_prefix=$ac_optarg ;;
1315
1316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1317 | --program-suf | --program-su | --program-s)
1318 ac_prev=program_suffix ;;
1319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1321 program_suffix=$ac_optarg ;;
1322
1323 -program-transform-name | --program-transform-name \
1324 | --program-transform-nam | --program-transform-na \
1325 | --program-transform-n | --program-transform- \
1326 | --program-transform | --program-transfor \
1327 | --program-transfo | --program-transf \
1328 | --program-trans | --program-tran \
1329 | --progr-tra | --program-tr | --program-t)
1330 ac_prev=program_transform_name ;;
1331 -program-transform-name=* | --program-transform-name=* \
1332 | --program-transform-nam=* | --program-transform-na=* \
1333 | --program-transform-n=* | --program-transform-=* \
1334 | --program-transform=* | --program-transfor=* \
1335 | --program-transfo=* | --program-transf=* \
1336 | --program-trans=* | --program-tran=* \
1337 | --progr-tra=* | --program-tr=* | --program-t=*)
1338 program_transform_name=$ac_optarg ;;
1339
1340 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1341 ac_prev=pdfdir ;;
1342 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1343 pdfdir=$ac_optarg ;;
1344
1345 -psdir | --psdir | --psdi | --psd | --ps)
1346 ac_prev=psdir ;;
1347 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1348 psdir=$ac_optarg ;;
1349
1350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1351 | -silent | --silent | --silen | --sile | --sil)
1352 silent=yes ;;
1353
1354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1355 ac_prev=sbindir ;;
1356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1357 | --sbi=* | --sb=*)
1358 sbindir=$ac_optarg ;;
1359
1360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1362 | --sharedst | --shareds | --shared | --share | --shar \
1363 | --sha | --sh)
1364 ac_prev=sharedstatedir ;;
1365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1368 | --sha=* | --sh=*)
1369 sharedstatedir=$ac_optarg ;;
1370
1371 -site | --site | --sit)
1372 ac_prev=site ;;
1373 -site=* | --site=* | --sit=*)
1374 site=$ac_optarg ;;
1375
1376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1377 ac_prev=srcdir ;;
1378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1379 srcdir=$ac_optarg ;;
1380
1381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1382 | --syscon | --sysco | --sysc | --sys | --sy)
1383 ac_prev=sysconfdir ;;
1384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1386 sysconfdir=$ac_optarg ;;
1387
1388 -target | --target | --targe | --targ | --tar | --ta | --t)
1389 ac_prev=target_alias ;;
1390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1391 target_alias=$ac_optarg ;;
1392
1393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1394 verbose=yes ;;
1395
1396 -version | --version | --versio | --versi | --vers | -V)
1397 ac_init_version=: ;;
1398
1399 -with-* | --with-*)
1400 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1401 # Reject names that are not valid shell variable names.
1402 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1403 as_fn_error $? "invalid package name: $ac_useropt"
1404 ac_useropt_orig=$ac_useropt
1405 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1406 case $ac_user_opts in
1407 *"
1408"with_$ac_useropt"
1409"*) ;;
1410 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1411 ac_unrecognized_sep=', ';;
1412 esac
1413 eval with_$ac_useropt=\$ac_optarg ;;
1414
1415 -without-* | --without-*)
1416 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1419 as_fn_error $? "invalid package name: $ac_useropt"
1420 ac_useropt_orig=$ac_useropt
1421 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1423 *"
1424"with_$ac_useropt"
1425"*) ;;
1426 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1427 ac_unrecognized_sep=', ';;
1428 esac
1429 eval with_$ac_useropt=no ;;
1430
1431 --x)
1432 # Obsolete; use --with-x.
1433 with_x=yes ;;
1434
1435 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1436 | --x-incl | --x-inc | --x-in | --x-i)
1437 ac_prev=x_includes ;;
1438 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1439 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1440 x_includes=$ac_optarg ;;
1441
1442 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1443 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1444 ac_prev=x_libraries ;;
1445 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1446 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1447 x_libraries=$ac_optarg ;;
1448
1449 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1450Try \`$0 --help' for more information"
1451 ;;
1452
1453 *=*)
1454 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1455 # Reject names that are not valid shell variable names.
1456 case $ac_envvar in #(
1457 '' | [0-9]* | *[!_$as_cr_alnum]* )
1458 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1459 esac
1460 eval $ac_envvar=\$ac_optarg
1461 export $ac_envvar ;;
1462
1463 *)
1464 # FIXME: should be removed in autoconf 3.0.
1465 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1466 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1467 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1468 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1469 ;;
1470
1471 esac
1472done
1473
1474if test -n "$ac_prev"; then
1475 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1476 as_fn_error $? "missing argument to $ac_option"
1477fi
1478
1479if test -n "$ac_unrecognized_opts"; then
1480 case $enable_option_checking in
1481 no) ;;
1482 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1483 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1484 esac
1485fi
1486
1487# Check all directory arguments for consistency.
1488for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1489 datadir sysconfdir sharedstatedir localstatedir includedir \
1490 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1491 libdir localedir mandir
1492do
1493 eval ac_val=\$$ac_var
1494 # Remove trailing slashes.
1495 case $ac_val in
1496 */ )
1497 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1498 eval $ac_var=\$ac_val;;
1499 esac
1500 # Be sure to have absolute directory names.
1501 case $ac_val in
1502 [\\/$]* | ?:[\\/]* ) continue;;
1503 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1504 esac
1505 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1506done
1507
1508# There might be people who depend on the old broken behavior: `$host'
1509# used to hold the argument of --host etc.
1510# FIXME: To remove some day.
1511build=$build_alias
1512host=$host_alias
1513target=$target_alias
1514
1515# FIXME: To remove some day.
1516if test "x$host_alias" != x; then
1517 if test "x$build_alias" = x; then
1518 cross_compiling=maybe
1519 elif test "x$build_alias" != "x$host_alias"; then
1520 cross_compiling=yes
1521 fi
1522fi
1523
1524ac_tool_prefix=
1525test -n "$host_alias" && ac_tool_prefix=$host_alias-
1526
1527test "$silent" = yes && exec 6>/dev/null
1528
1529
1530ac_pwd=`pwd` && test -n "$ac_pwd" &&
1531ac_ls_di=`ls -di .` &&
1532ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1533 as_fn_error $? "working directory cannot be determined"
1534test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1535 as_fn_error $? "pwd does not report name of working directory"
1536
1537
1538# Find the source files, if location was not specified.
1539if test -z "$srcdir"; then
1540 ac_srcdir_defaulted=yes
1541 # Try the directory containing this script, then the parent directory.
1542 ac_confdir=`$as_dirname -- "$as_myself" ||
1543$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1544 X"$as_myself" : 'X\(//\)[^/]' \| \
1545 X"$as_myself" : 'X\(//\)$' \| \
1546 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1547$as_echo X"$as_myself" |
1548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1549 s//\1/
1550 q
1551 }
1552 /^X\(\/\/\)[^/].*/{
1553 s//\1/
1554 q
1555 }
1556 /^X\(\/\/\)$/{
1557 s//\1/
1558 q
1559 }
1560 /^X\(\/\).*/{
1561 s//\1/
1562 q
1563 }
1564 s/.*/./; q'`
1565 srcdir=$ac_confdir
1566 if test ! -r "$srcdir/$ac_unique_file"; then
1567 srcdir=..
1568 fi
1569else
1570 ac_srcdir_defaulted=no
1571fi
1572if test ! -r "$srcdir/$ac_unique_file"; then
1573 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1574 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1575fi
1576ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1577ac_abs_confdir=`(
1578 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1579 pwd)`
1580# When building in place, set srcdir=.
1581if test "$ac_abs_confdir" = "$ac_pwd"; then
1582 srcdir=.
1583fi
1584# Remove unnecessary trailing slashes from srcdir.
1585# Double slashes in file names in object file debugging info
1586# mess up M-x gdb in Emacs.
1587case $srcdir in
1588*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1589esac
1590for ac_var in $ac_precious_vars; do
1591 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1592 eval ac_env_${ac_var}_value=\$${ac_var}
1593 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1594 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1595done
1596
1597#
1598# Report the --help message.
1599#
1600if test "$ac_init_help" = "long"; then
1601 # Omit some internal or obsolete options to make the list less imposing.
1602 # This message is too long to be a string in the A/UX 3.1 sh.
1603 cat <<_ACEOF
1604\`configure' configures Valgrind 3.12.0 to adapt to many kinds of systems.
1605
1606Usage: $0 [OPTION]... [VAR=VALUE]...
1607
1608To assign environment variables (e.g., CC, CFLAGS...), specify them as
1609VAR=VALUE. See below for descriptions of some of the useful variables.
1610
1611Defaults for the options are specified in brackets.
1612
1613Configuration:
1614 -h, --help display this help and exit
1615 --help=short display options specific to this package
1616 --help=recursive display the short help of all the included packages
1617 -V, --version display version information and exit
1618 -q, --quiet, --silent do not print \`checking ...' messages
1619 --cache-file=FILE cache test results in FILE [disabled]
1620 -C, --config-cache alias for \`--cache-file=config.cache'
1621 -n, --no-create do not create output files
1622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1623
1624Installation directories:
1625 --prefix=PREFIX install architecture-independent files in PREFIX
1626 [$ac_default_prefix]
1627 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1628 [PREFIX]
1629
1630By default, \`make install' will install all the files in
1631\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1632an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1633for instance \`--prefix=\$HOME'.
1634
1635For better control, use the options below.
1636
1637Fine tuning of the installation directories:
1638 --bindir=DIR user executables [EPREFIX/bin]
1639 --sbindir=DIR system admin executables [EPREFIX/sbin]
1640 --libexecdir=DIR program executables [EPREFIX/libexec]
1641 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1642 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1643 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1644 --libdir=DIR object code libraries [EPREFIX/lib]
1645 --includedir=DIR C header files [PREFIX/include]
1646 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1647 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1648 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1649 --infodir=DIR info documentation [DATAROOTDIR/info]
1650 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1651 --mandir=DIR man documentation [DATAROOTDIR/man]
1652 --docdir=DIR documentation root [DATAROOTDIR/doc/valgrind]
1653 --htmldir=DIR html documentation [DOCDIR]
1654 --dvidir=DIR dvi documentation [DOCDIR]
1655 --pdfdir=DIR pdf documentation [DOCDIR]
1656 --psdir=DIR ps documentation [DOCDIR]
1657_ACEOF
1658
1659 cat <<\_ACEOF
1660
1661Program names:
1662 --program-prefix=PREFIX prepend PREFIX to installed program names
1663 --program-suffix=SUFFIX append SUFFIX to installed program names
1664 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1665
1666System types:
1667 --build=BUILD configure for building on BUILD [guessed]
1668 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1669_ACEOF
1670fi
1671
1672if test -n "$ac_init_help"; then
1673 case $ac_init_help in
1674 short | recursive ) echo "Configuration of Valgrind 3.12.0:";;
1675 esac
1676 cat <<\_ACEOF
1677
1678Optional Features:
1679 --disable-option-checking ignore unrecognized --enable/--with options
1680 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1681 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1682 --enable-silent-rules less verbose build output (undo: "make V=1")
1683 --disable-silent-rules verbose build output (undo: "make V=0")
1684 --enable-maintainer-mode
1685 enable make rules and dependencies not useful (and
1686 sometimes confusing) to the casual installer
1687 --enable-dependency-tracking
1688 do not reject slow dependency extractors
1689 --disable-dependency-tracking
1690 speeds up one-time build
1691 --enable-only64bit do a 64-bit only build
1692 --enable-only32bit do a 32-bit only build
1693 --enable-inner enables self-hosting
1694 --enable-ubsan enables the undefined behaviour sanitiser
1695 --enable-tls platform supports TLS
1696
1697Optional Packages:
1698 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1699 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1700 --with-tmpdir=PATH Specify path for temporary files
1701 --with-mpicc= Specify name of MPI2-ised C compiler
1702
1703Some influential environment variables:
1704 CC C compiler command
1705 CFLAGS C compiler flags
1706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1707 nonstandard directory <lib dir>
1708 LIBS libraries to pass to the linker, e.g. -l<library>
1709 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1710 you have headers in a nonstandard directory <include dir>
1711 CPP C preprocessor
1712 CXX C++ compiler command
1713 CXXFLAGS C++ compiler flags
1714 AR Archiver command
1715 CCAS assembler compiler command (defaults to CC)
1716 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1717
1718Use these variables to override the choices made by `configure' or to help
1719it to find libraries and programs with nonstandard names/locations.
1720
1721Report bugs to <valgrind-users@lists.sourceforge.net>.
1722_ACEOF
1723ac_status=$?
1724fi
1725
1726if test "$ac_init_help" = "recursive"; then
1727 # If there are subdirs, report their specific --help.
1728 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1729 test -d "$ac_dir" ||
1730 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1731 continue
1732 ac_builddir=.
1733
1734case "$ac_dir" in
1735.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1736*)
1737 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1738 # A ".." for each directory in $ac_dir_suffix.
1739 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740 case $ac_top_builddir_sub in
1741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1743 esac ;;
1744esac
1745ac_abs_top_builddir=$ac_pwd
1746ac_abs_builddir=$ac_pwd$ac_dir_suffix
1747# for backward compatibility:
1748ac_top_builddir=$ac_top_build_prefix
1749
1750case $srcdir in
1751 .) # We are building in place.
1752 ac_srcdir=.
1753 ac_top_srcdir=$ac_top_builddir_sub
1754 ac_abs_top_srcdir=$ac_pwd ;;
1755 [\\/]* | ?:[\\/]* ) # Absolute name.
1756 ac_srcdir=$srcdir$ac_dir_suffix;
1757 ac_top_srcdir=$srcdir
1758 ac_abs_top_srcdir=$srcdir ;;
1759 *) # Relative name.
1760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761 ac_top_srcdir=$ac_top_build_prefix$srcdir
1762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1763esac
1764ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1765
1766 cd "$ac_dir" || { ac_status=$?; continue; }
1767 # Check for guested configure.
1768 if test -f "$ac_srcdir/configure.gnu"; then
1769 echo &&
1770 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1771 elif test -f "$ac_srcdir/configure"; then
1772 echo &&
1773 $SHELL "$ac_srcdir/configure" --help=recursive
1774 else
1775 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1776 fi || ac_status=$?
1777 cd "$ac_pwd" || { ac_status=$?; break; }
1778 done
1779fi
1780
1781test -n "$ac_init_help" && exit $ac_status
1782if $ac_init_version; then
1783 cat <<\_ACEOF
1784Valgrind configure 3.12.0
1785generated by GNU Autoconf 2.69
1786
1787Copyright (C) 2012 Free Software Foundation, Inc.
1788This configure script is free software; the Free Software Foundation
1789gives unlimited permission to copy, distribute and modify it.
1790_ACEOF
1791 exit
1792fi
1793
1794## ------------------------ ##
1795## Autoconf initialization. ##
1796## ------------------------ ##
1797
1798# ac_fn_c_try_compile LINENO
1799# --------------------------
1800# Try to compile conftest.$ac_ext, and return whether this succeeded.
1801ac_fn_c_try_compile ()
1802{
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext
1805 if { { ac_try="$ac_compile"
1806case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_compile") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest.$ac_objext; then :
1824 ac_retval=0
1825else
1826 $as_echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 ac_retval=1
1830fi
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834} # ac_fn_c_try_compile
1835
1836# ac_fn_c_try_cpp LINENO
1837# ----------------------
1838# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839ac_fn_c_try_cpp ()
1840{
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if { { ac_try="$ac_cpp conftest.$ac_ext"
1843case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846esac
1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848$as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1855 fi
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } > conftest.i && {
1858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1860 }; then :
1861 ac_retval=0
1862else
1863 $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1
1867fi
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1870
1871} # ac_fn_c_try_cpp
1872
1873# ac_fn_cxx_try_compile LINENO
1874# ----------------------------
1875# Try to compile conftest.$ac_ext, and return whether this succeeded.
1876ac_fn_cxx_try_compile ()
1877{
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext
1880 if { { ac_try="$ac_compile"
1881case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884esac
1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886$as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_compile") 2>conftest.err
1888 ac_status=$?
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1893 fi
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_cxx_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest.$ac_objext; then :
1899 ac_retval=0
1900else
1901 $as_echo "$as_me: failed program was:" >&5
1902sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_retval=1
1905fi
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1908
1909} # ac_fn_cxx_try_compile
1910
1911# ac_fn_c_try_link LINENO
1912# -----------------------
1913# Try to link conftest.$ac_ext, and return whether this succeeded.
1914ac_fn_c_try_link ()
1915{
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 rm -f conftest.$ac_objext conftest$ac_exeext
1918 if { { ac_try="$ac_link"
1919case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922esac
1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924$as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_link") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1931 fi
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } && {
1934 test -z "$ac_c_werror_flag" ||
1935 test ! -s conftest.err
1936 } && test -s conftest$ac_exeext && {
1937 test "$cross_compiling" = yes ||
1938 test -x conftest$ac_exeext
1939 }; then :
1940 ac_retval=0
1941else
1942 $as_echo "$as_me: failed program was:" >&5
1943sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 ac_retval=1
1946fi
1947 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1948 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1949 # interfere with the next link command; also delete a directory that is
1950 # left behind by Apple's compiler. We do this before executing the actions.
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 as_fn_set_status $ac_retval
1954
1955} # ac_fn_c_try_link
1956
1957# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1958# -------------------------------------------------------
1959# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1960# the include files in INCLUDES and setting the cache variable VAR
1961# accordingly.
1962ac_fn_c_check_header_mongrel ()
1963{
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if eval \${$3+:} false; then :
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1970fi
1971eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973$as_echo "$ac_res" >&6; }
1974else
1975 # Is the header compilable?
1976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1977$as_echo_n "checking $2 usability... " >&6; }
1978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h. */
1980$4
1981#include <$2>
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984 ac_header_compiler=yes
1985else
1986 ac_header_compiler=no
1987fi
1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1990$as_echo "$ac_header_compiler" >&6; }
1991
1992# Is the header present?
1993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1994$as_echo_n "checking $2 presence... " >&6; }
1995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996/* end confdefs.h. */
1997#include <$2>
1998_ACEOF
1999if ac_fn_c_try_cpp "$LINENO"; then :
2000 ac_header_preproc=yes
2001else
2002 ac_header_preproc=no
2003fi
2004rm -f conftest.err conftest.i conftest.$ac_ext
2005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2006$as_echo "$ac_header_preproc" >&6; }
2007
2008# So? What about this header?
2009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2010 yes:no: )
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2012$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2015 ;;
2016 no:yes:* )
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2018$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2020$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2022$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2024$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2026$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2027( $as_echo "## --------------------------------------------------- ##
2028## Report this to valgrind-users@lists.sourceforge.net ##
2029## --------------------------------------------------- ##"
2030 ) | sed "s/^/$as_me: WARNING: /" >&2
2031 ;;
2032esac
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034$as_echo_n "checking for $2... " >&6; }
2035if eval \${$3+:} false; then :
2036 $as_echo_n "(cached) " >&6
2037else
2038 eval "$3=\$ac_header_compiler"
2039fi
2040eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042$as_echo "$ac_res" >&6; }
2043fi
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045
2046} # ac_fn_c_check_header_mongrel
2047
2048# ac_fn_c_try_run LINENO
2049# ----------------------
2050# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2051# that executables *can* be run.
2052ac_fn_c_try_run ()
2053{
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if { { ac_try="$ac_link"
2056case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2059esac
2060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061$as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_link") 2>&5
2063 ac_status=$?
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2066 { { case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069esac
2070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071$as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_try") 2>&5
2073 ac_status=$?
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; }; }; then :
2076 ac_retval=0
2077else
2078 $as_echo "$as_me: program exited with status $ac_status" >&5
2079 $as_echo "$as_me: failed program was:" >&5
2080sed 's/^/| /' conftest.$ac_ext >&5
2081
2082 ac_retval=$ac_status
2083fi
2084 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 as_fn_set_status $ac_retval
2087
2088} # ac_fn_c_try_run
2089
2090# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2091# -------------------------------------------------------
2092# Tests whether HEADER exists and can be compiled using the include files in
2093# INCLUDES, setting the cache variable VAR accordingly.
2094ac_fn_c_check_header_compile ()
2095{
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098$as_echo_n "checking for $2... " >&6; }
2099if eval \${$3+:} false; then :
2100 $as_echo_n "(cached) " >&6
2101else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105#include <$2>
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108 eval "$3=yes"
2109else
2110 eval "$3=no"
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113fi
2114eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116$as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118
2119} # ac_fn_c_check_header_compile
2120
2121# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2122# -------------------------------------------
2123# Tests whether TYPE exists after having included INCLUDES, setting cache
2124# variable VAR accordingly.
2125ac_fn_c_check_type ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129$as_echo_n "checking for $2... " >&6; }
2130if eval \${$3+:} false; then :
2131 $as_echo_n "(cached) " >&6
2132else
2133 eval "$3=no"
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h. */
2136$4
2137int
2138main ()
2139{
2140if (sizeof ($2))
2141 return 0;
2142 ;
2143 return 0;
2144}
2145_ACEOF
2146if ac_fn_c_try_compile "$LINENO"; then :
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148/* end confdefs.h. */
2149$4
2150int
2151main ()
2152{
2153if (sizeof (($2)))
2154 return 0;
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159if ac_fn_c_try_compile "$LINENO"; then :
2160
2161else
2162 eval "$3=yes"
2163fi
2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167fi
2168eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170$as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172
2173} # ac_fn_c_check_type
2174
2175# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2176# ----------------------------------------------------
2177# Tries to find if the field MEMBER exists in type AGGR, after including
2178# INCLUDES, setting cache variable VAR accordingly.
2179ac_fn_c_check_member ()
2180{
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2183$as_echo_n "checking for $2.$3... " >&6; }
2184if eval \${$4+:} false; then :
2185 $as_echo_n "(cached) " >&6
2186else
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h. */
2189$5
2190int
2191main ()
2192{
2193static $2 ac_aggr;
2194if (ac_aggr.$3)
2195return 0;
2196 ;
2197 return 0;
2198}
2199_ACEOF
2200if ac_fn_c_try_compile "$LINENO"; then :
2201 eval "$4=yes"
2202else
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h. */
2205$5
2206int
2207main ()
2208{
2209static $2 ac_aggr;
2210if (sizeof ac_aggr.$3)
2211return 0;
2212 ;
2213 return 0;
2214}
2215_ACEOF
2216if ac_fn_c_try_compile "$LINENO"; then :
2217 eval "$4=yes"
2218else
2219 eval "$4=no"
2220fi
2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222fi
2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224fi
2225eval ac_res=\$$4
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227$as_echo "$ac_res" >&6; }
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229
2230} # ac_fn_c_check_member
2231
2232# ac_fn_c_check_func LINENO FUNC VAR
2233# ----------------------------------
2234# Tests whether FUNC exists, setting the cache variable VAR accordingly
2235ac_fn_c_check_func ()
2236{
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239$as_echo_n "checking for $2... " >&6; }
2240if eval \${$3+:} false; then :
2241 $as_echo_n "(cached) " >&6
2242else
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244/* end confdefs.h. */
2245/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2247#define $2 innocuous_$2
2248
2249/* System header to define __stub macros and hopefully few prototypes,
2250 which can conflict with char $2 (); below.
2251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2252 <limits.h> exists even on freestanding compilers. */
2253
2254#ifdef __STDC__
2255# include <limits.h>
2256#else
2257# include <assert.h>
2258#endif
2259
2260#undef $2
2261
2262/* Override any GCC internal prototype to avoid an error.
2263 Use char because int might match the return type of a GCC
2264 builtin and then its argument prototype would still apply. */
2265#ifdef __cplusplus
2266extern "C"
2267#endif
2268char $2 ();
2269/* The GNU C library defines this for functions which it implements
2270 to always fail with ENOSYS. Some functions are actually named
2271 something starting with __ and the normal name is an alias. */
2272#if defined __stub_$2 || defined __stub___$2
2273choke me
2274#endif
2275
2276int
2277main ()
2278{
2279return $2 ();
2280 ;
2281 return 0;
2282}
2283_ACEOF
2284if ac_fn_c_try_link "$LINENO"; then :
2285 eval "$3=yes"
2286else
2287 eval "$3=no"
2288fi
2289rm -f core conftest.err conftest.$ac_objext \
2290 conftest$ac_exeext conftest.$ac_ext
2291fi
2292eval ac_res=\$$3
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294$as_echo "$ac_res" >&6; }
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296
2297} # ac_fn_c_check_func
2298
2299# ac_fn_cxx_try_link LINENO
2300# -------------------------
2301# Try to link conftest.$ac_ext, and return whether this succeeded.
2302ac_fn_cxx_try_link ()
2303{
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 rm -f conftest.$ac_objext conftest$ac_exeext
2306 if { { ac_try="$ac_link"
2307case "(($ac_try" in
2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309 *) ac_try_echo=$ac_try;;
2310esac
2311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2312$as_echo "$ac_try_echo"; } >&5
2313 (eval "$ac_link") 2>conftest.err
2314 ac_status=$?
2315 if test -s conftest.err; then
2316 grep -v '^ *+' conftest.err >conftest.er1
2317 cat conftest.er1 >&5
2318 mv -f conftest.er1 conftest.err
2319 fi
2320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2321 test $ac_status = 0; } && {
2322 test -z "$ac_cxx_werror_flag" ||
2323 test ! -s conftest.err
2324 } && test -s conftest$ac_exeext && {
2325 test "$cross_compiling" = yes ||
2326 test -x conftest$ac_exeext
2327 }; then :
2328 ac_retval=0
2329else
2330 $as_echo "$as_me: failed program was:" >&5
2331sed 's/^/| /' conftest.$ac_ext >&5
2332
2333 ac_retval=1
2334fi
2335 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2336 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2337 # interfere with the next link command; also delete a directory that is
2338 # left behind by Apple's compiler. We do this before executing the actions.
2339 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2340 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341 as_fn_set_status $ac_retval
2342
2343} # ac_fn_cxx_try_link
2344cat >config.log <<_ACEOF
2345This file contains any messages produced by compilers while
2346running configure, to aid debugging if configure makes a mistake.
2347
2348It was created by Valgrind $as_me 3.12.0, which was
2349generated by GNU Autoconf 2.69. Invocation command line was
2350
2351 $ $0 $@
2352
2353_ACEOF
2354exec 5>>config.log
2355{
2356cat <<_ASUNAME
2357## --------- ##
2358## Platform. ##
2359## --------- ##
2360
2361hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2362uname -m = `(uname -m) 2>/dev/null || echo unknown`
2363uname -r = `(uname -r) 2>/dev/null || echo unknown`
2364uname -s = `(uname -s) 2>/dev/null || echo unknown`
2365uname -v = `(uname -v) 2>/dev/null || echo unknown`
2366
2367/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2368/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2369
2370/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2371/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2372/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2373/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2374/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2375/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2376/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2377
2378_ASUNAME
2379
2380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381for as_dir in $PATH
2382do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
2385 $as_echo "PATH: $as_dir"
2386 done
2387IFS=$as_save_IFS
2388
2389} >&5
2390
2391cat >&5 <<_ACEOF
2392
2393
2394## ----------- ##
2395## Core tests. ##
2396## ----------- ##
2397
2398_ACEOF
2399
2400
2401# Keep a trace of the command line.
2402# Strip out --no-create and --no-recursion so they do not pile up.
2403# Strip out --silent because we don't want to record it for future runs.
2404# Also quote any args containing shell meta-characters.
2405# Make two passes to allow for proper duplicate-argument suppression.
2406ac_configure_args=
2407ac_configure_args0=
2408ac_configure_args1=
2409ac_must_keep_next=false
2410for ac_pass in 1 2
2411do
2412 for ac_arg
2413 do
2414 case $ac_arg in
2415 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2417 | -silent | --silent | --silen | --sile | --sil)
2418 continue ;;
2419 *\'*)
2420 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2421 esac
2422 case $ac_pass in
2423 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424 2)
2425 as_fn_append ac_configure_args1 " '$ac_arg'"
2426 if test $ac_must_keep_next = true; then
2427 ac_must_keep_next=false # Got value, back to normal.
2428 else
2429 case $ac_arg in
2430 *=* | --config-cache | -C | -disable-* | --disable-* \
2431 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2432 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2433 | -with-* | --with-* | -without-* | --without-* | --x)
2434 case "$ac_configure_args0 " in
2435 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2436 esac
2437 ;;
2438 -* ) ac_must_keep_next=true ;;
2439 esac
2440 fi
2441 as_fn_append ac_configure_args " '$ac_arg'"
2442 ;;
2443 esac
2444 done
2445done
2446{ ac_configure_args0=; unset ac_configure_args0;}
2447{ ac_configure_args1=; unset ac_configure_args1;}
2448
2449# When interrupted or exit'd, cleanup temporary files, and complete
2450# config.log. We remove comments because anyway the quotes in there
2451# would cause problems or look ugly.
2452# WARNING: Use '\'' to represent an apostrophe within the trap.
2453# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2454trap 'exit_status=$?
2455 # Save into config.log some information that might help in debugging.
2456 {
2457 echo
2458
2459 $as_echo "## ---------------- ##
2460## Cache variables. ##
2461## ---------------- ##"
2462 echo
2463 # The following way of writing the cache mishandles newlines in values,
2464(
2465 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2466 eval ac_val=\$$ac_var
2467 case $ac_val in #(
2468 *${as_nl}*)
2469 case $ac_var in #(
2470 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2471$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2472 esac
2473 case $ac_var in #(
2474 _ | IFS | as_nl) ;; #(
2475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2476 *) { eval $ac_var=; unset $ac_var;} ;;
2477 esac ;;
2478 esac
2479 done
2480 (set) 2>&1 |
2481 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2482 *${as_nl}ac_space=\ *)
2483 sed -n \
2484 "s/'\''/'\''\\\\'\'''\''/g;
2485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2486 ;; #(
2487 *)
2488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2489 ;;
2490 esac |
2491 sort
2492)
2493 echo
2494
2495 $as_echo "## ----------------- ##
2496## Output variables. ##
2497## ----------------- ##"
2498 echo
2499 for ac_var in $ac_subst_vars
2500 do
2501 eval ac_val=\$$ac_var
2502 case $ac_val in
2503 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 esac
2505 $as_echo "$ac_var='\''$ac_val'\''"
2506 done | sort
2507 echo
2508
2509 if test -n "$ac_subst_files"; then
2510 $as_echo "## ------------------- ##
2511## File substitutions. ##
2512## ------------------- ##"
2513 echo
2514 for ac_var in $ac_subst_files
2515 do
2516 eval ac_val=\$$ac_var
2517 case $ac_val in
2518 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 esac
2520 $as_echo "$ac_var='\''$ac_val'\''"
2521 done | sort
2522 echo
2523 fi
2524
2525 if test -s confdefs.h; then
2526 $as_echo "## ----------- ##
2527## confdefs.h. ##
2528## ----------- ##"
2529 echo
2530 cat confdefs.h
2531 echo
2532 fi
2533 test "$ac_signal" != 0 &&
2534 $as_echo "$as_me: caught signal $ac_signal"
2535 $as_echo "$as_me: exit $exit_status"
2536 } >&5
2537 rm -f core *.core core.conftest.* &&
2538 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2539 exit $exit_status
2540' 0
2541for ac_signal in 1 2 13 15; do
2542 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2543done
2544ac_signal=0
2545
2546# confdefs.h avoids OS command line length limits that DEFS can exceed.
2547rm -f -r conftest* confdefs.h
2548
2549$as_echo "/* confdefs.h */" > confdefs.h
2550
2551# Predefined preprocessor variables.
2552
2553cat >>confdefs.h <<_ACEOF
2554#define PACKAGE_NAME "$PACKAGE_NAME"
2555_ACEOF
2556
2557cat >>confdefs.h <<_ACEOF
2558#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2559_ACEOF
2560
2561cat >>confdefs.h <<_ACEOF
2562#define PACKAGE_VERSION "$PACKAGE_VERSION"
2563_ACEOF
2564
2565cat >>confdefs.h <<_ACEOF
2566#define PACKAGE_STRING "$PACKAGE_STRING"
2567_ACEOF
2568
2569cat >>confdefs.h <<_ACEOF
2570#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2571_ACEOF
2572
2573cat >>confdefs.h <<_ACEOF
2574#define PACKAGE_URL "$PACKAGE_URL"
2575_ACEOF
2576
2577
2578# Let the site file select an alternate cache file if it wants to.
2579# Prefer an explicitly selected file to automatically selected ones.
2580ac_site_file1=NONE
2581ac_site_file2=NONE
2582if test -n "$CONFIG_SITE"; then
2583 # We do not want a PATH search for config.site.
2584 case $CONFIG_SITE in #((
2585 -*) ac_site_file1=./$CONFIG_SITE;;
2586 */*) ac_site_file1=$CONFIG_SITE;;
2587 *) ac_site_file1=./$CONFIG_SITE;;
2588 esac
2589elif test "x$prefix" != xNONE; then
2590 ac_site_file1=$prefix/share/config.site
2591 ac_site_file2=$prefix/etc/config.site
2592else
2593 ac_site_file1=$ac_default_prefix/share/config.site
2594 ac_site_file2=$ac_default_prefix/etc/config.site
2595fi
2596for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2597do
2598 test "x$ac_site_file" = xNONE && continue
2599 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2601$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2602 sed 's/^/| /' "$ac_site_file" >&5
2603 . "$ac_site_file" \
2604 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606as_fn_error $? "failed to load site script $ac_site_file
2607See \`config.log' for more details" "$LINENO" 5; }
2608 fi
2609done
2610
2611if test -r "$cache_file"; then
2612 # Some versions of bash will fail to source /dev/null (special files
2613 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2614 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2616$as_echo "$as_me: loading cache $cache_file" >&6;}
2617 case $cache_file in
2618 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2619 *) . "./$cache_file";;
2620 esac
2621 fi
2622else
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2624$as_echo "$as_me: creating cache $cache_file" >&6;}
2625 >$cache_file
2626fi
2627
2628as_fn_append ac_header_list " stdlib.h"
2629as_fn_append ac_header_list " unistd.h"
2630as_fn_append ac_header_list " sys/param.h"
2631# Check that the precious variables saved in the cache have kept the same
2632# value.
2633ac_cache_corrupted=false
2634for ac_var in $ac_precious_vars; do
2635 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2636 eval ac_new_set=\$ac_env_${ac_var}_set
2637 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2638 eval ac_new_val=\$ac_env_${ac_var}_value
2639 case $ac_old_set,$ac_new_set in
2640 set,)
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2642$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2643 ac_cache_corrupted=: ;;
2644 ,set)
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2646$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2647 ac_cache_corrupted=: ;;
2648 ,);;
2649 *)
2650 if test "x$ac_old_val" != "x$ac_new_val"; then
2651 # differences in whitespace do not lead to failure.
2652 ac_old_val_w=`echo x $ac_old_val`
2653 ac_new_val_w=`echo x $ac_new_val`
2654 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2656$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2657 ac_cache_corrupted=:
2658 else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2660$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2661 eval $ac_var=\$ac_old_val
2662 fi
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2664$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2666$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2667 fi;;
2668 esac
2669 # Pass precious variables to config.status.
2670 if test "$ac_new_set" = set; then
2671 case $ac_new_val in
2672 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2673 *) ac_arg=$ac_var=$ac_new_val ;;
2674 esac
2675 case " $ac_configure_args " in
2676 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2677 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2678 esac
2679 fi
2680done
2681if $ac_cache_corrupted; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2685$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2686 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2687fi
2688## -------------------- ##
2689## Main body of script. ##
2690## -------------------- ##
2691
2692ac_ext=c
2693ac_cpp='$CPP $CPPFLAGS'
2694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697
2698
2699
2700ac_config_headers="$ac_config_headers config.h"
2701
2702am__api_version='1.15'
2703
2704ac_aux_dir=
2705for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2706 if test -f "$ac_dir/install-sh"; then
2707 ac_aux_dir=$ac_dir
2708 ac_install_sh="$ac_aux_dir/install-sh -c"
2709 break
2710 elif test -f "$ac_dir/install.sh"; then
2711 ac_aux_dir=$ac_dir
2712 ac_install_sh="$ac_aux_dir/install.sh -c"
2713 break
2714 elif test -f "$ac_dir/shtool"; then
2715 ac_aux_dir=$ac_dir
2716 ac_install_sh="$ac_aux_dir/shtool install -c"
2717 break
2718 fi
2719done
2720if test -z "$ac_aux_dir"; then
2721 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2722fi
2723
2724# These three variables are undocumented and unsupported,
2725# and are intended to be withdrawn in a future Autoconf release.
2726# They can cause serious problems if a builder's source tree is in a directory
2727# whose full name contains unusual characters.
2728ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2729ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2730ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2731
2732
2733# Find a good install program. We prefer a C program (faster),
2734# so one script is as good as another. But avoid the broken or
2735# incompatible versions:
2736# SysV /etc/install, /usr/sbin/install
2737# SunOS /usr/etc/install
2738# IRIX /sbin/install
2739# AIX /bin/install
2740# AmigaOS /C/install, which installs bootblocks on floppy discs
2741# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2742# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2743# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2744# OS/2's system install, which has a completely different semantic
2745# ./install, which can be erroneously created by make from ./install.sh.
2746# Reject install programs that cannot install multiple files.
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2748$as_echo_n "checking for a BSD-compatible install... " >&6; }
2749if test -z "$INSTALL"; then
2750if ${ac_cv_path_install+:} false; then :
2751 $as_echo_n "(cached) " >&6
2752else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH
2755do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 # Account for people who put trailing slashes in PATH elements.
2759case $as_dir/ in #((
2760 ./ | .// | /[cC]/* | \
2761 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2762 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2763 /usr/ucb/* ) ;;
2764 *)
2765 # OSF1 and SCO ODT 3.0 have their own names for install.
2766 # Don't use installbsd from OSF since it installs stuff as root
2767 # by default.
2768 for ac_prog in ginstall scoinst install; do
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2771 if test $ac_prog = install &&
2772 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2773 # AIX install. It has an incompatible calling convention.
2774 :
2775 elif test $ac_prog = install &&
2776 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2777 # program-specific install script used by HP pwplus--don't use.
2778 :
2779 else
2780 rm -rf conftest.one conftest.two conftest.dir
2781 echo one > conftest.one
2782 echo two > conftest.two
2783 mkdir conftest.dir
2784 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2785 test -s conftest.one && test -s conftest.two &&
2786 test -s conftest.dir/conftest.one &&
2787 test -s conftest.dir/conftest.two
2788 then
2789 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2790 break 3
2791 fi
2792 fi
2793 fi
2794 done
2795 done
2796 ;;
2797esac
2798
2799 done
2800IFS=$as_save_IFS
2801
2802rm -rf conftest.one conftest.two conftest.dir
2803
2804fi
2805 if test "${ac_cv_path_install+set}" = set; then
2806 INSTALL=$ac_cv_path_install
2807 else
2808 # As a last resort, use the slow shell script. Don't cache a
2809 # value for INSTALL within a source directory, because that will
2810 # break other packages using the cache if that directory is
2811 # removed, or if the value is a relative name.
2812 INSTALL=$ac_install_sh
2813 fi
2814fi
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2816$as_echo "$INSTALL" >&6; }
2817
2818# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2819# It thinks the first close brace ends the variable substitution.
2820test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2821
2822test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2823
2824test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2825
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2827$as_echo_n "checking whether build environment is sane... " >&6; }
2828# Reject unsafe characters in $srcdir or the absolute working directory
2829# name. Accept space and tab only in the latter.
2830am_lf='
2831'
2832case `pwd` in
2833 *[\\\"\#\$\&\'\`$am_lf]*)
2834 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2835esac
2836case $srcdir in
2837 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2838 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2839esac
2840
2841# Do 'set' in a subshell so we don't clobber the current shell's
2842# arguments. Must try -L first in case configure is actually a
2843# symlink; some systems play weird games with the mod time of symlinks
2844# (eg FreeBSD returns the mod time of the symlink's containing
2845# directory).
2846if (
2847 am_has_slept=no
2848 for am_try in 1 2; do
2849 echo "timestamp, slept: $am_has_slept" > conftest.file
2850 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2851 if test "$*" = "X"; then
2852 # -L didn't work.
2853 set X `ls -t "$srcdir/configure" conftest.file`
2854 fi
2855 if test "$*" != "X $srcdir/configure conftest.file" \
2856 && test "$*" != "X conftest.file $srcdir/configure"; then
2857
2858 # If neither matched, then we have a broken ls. This can happen
2859 # if, for instance, CONFIG_SHELL is bash and it inherits a
2860 # broken ls alias from the environment. This has actually
2861 # happened. Such a system could not be considered "sane".
2862 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2863 alias in your environment" "$LINENO" 5
2864 fi
2865 if test "$2" = conftest.file || test $am_try -eq 2; then
2866 break
2867 fi
2868 # Just in case.
2869 sleep 1
2870 am_has_slept=yes
2871 done
2872 test "$2" = conftest.file
2873 )
2874then
2875 # Ok.
2876 :
2877else
2878 as_fn_error $? "newly created file is older than distributed files!
2879Check your system clock" "$LINENO" 5
2880fi
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2882$as_echo "yes" >&6; }
2883# If we didn't sleep, we still need to ensure time stamps of config.status and
2884# generated files are strictly newer.
2885am_sleep_pid=
2886if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2887 ( sleep 1 ) &
2888 am_sleep_pid=$!
2889fi
2890
2891rm -f conftest.file
2892
2893test "$program_prefix" != NONE &&
2894 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2895# Use a double $ so make ignores it.
2896test "$program_suffix" != NONE &&
2897 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2898# Double any \ or $.
2899# By default was `s,x,x', remove it if useless.
2900ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2901program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2902
2903# Expand $ac_aux_dir to an absolute path.
2904am_aux_dir=`cd "$ac_aux_dir" && pwd`
2905
2906if test x"${MISSING+set}" != xset; then
2907 case $am_aux_dir in
2908 *\ * | *\ *)
2909 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2910 *)
2911 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2912 esac
2913fi
2914# Use eval to expand $SHELL
2915if eval "$MISSING --is-lightweight"; then
2916 am_missing_run="$MISSING "
2917else
2918 am_missing_run=
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2920$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2921fi
2922
2923if test x"${install_sh+set}" != xset; then
2924 case $am_aux_dir in
2925 *\ * | *\ *)
2926 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2927 *)
2928 install_sh="\${SHELL} $am_aux_dir/install-sh"
2929 esac
2930fi
2931
2932# Installed binaries are usually stripped using 'strip' when the user
2933# run "make install-strip". However 'strip' might not be the right
2934# tool to use in cross-compilation environments, therefore Automake
2935# will honor the 'STRIP' environment variable to overrule this program.
2936if test "$cross_compiling" != no; then
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2939set dummy ${ac_tool_prefix}strip; ac_word=$2
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941$as_echo_n "checking for $ac_word... " >&6; }
2942if ${ac_cv_prog_STRIP+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944else
2945 if test -n "$STRIP"; then
2946 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959done
2960 done
2961IFS=$as_save_IFS
2962
2963fi
2964fi
2965STRIP=$ac_cv_prog_STRIP
2966if test -n "$STRIP"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2968$as_echo "$STRIP" >&6; }
2969else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971$as_echo "no" >&6; }
2972fi
2973
2974
2975fi
2976if test -z "$ac_cv_prog_STRIP"; then
2977 ac_ct_STRIP=$STRIP
2978 # Extract the first word of "strip", so it can be a program name with args.
2979set dummy strip; ac_word=$2
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981$as_echo_n "checking for $ac_word... " >&6; }
2982if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984else
2985 if test -n "$ac_ct_STRIP"; then
2986 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2987else
2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH
2990do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_STRIP="strip"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999done
3000 done
3001IFS=$as_save_IFS
3002
3003fi
3004fi
3005ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3006if test -n "$ac_ct_STRIP"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3008$as_echo "$ac_ct_STRIP" >&6; }
3009else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011$as_echo "no" >&6; }
3012fi
3013
3014 if test "x$ac_ct_STRIP" = x; then
3015 STRIP=":"
3016 else
3017 case $cross_compiling:$ac_tool_warned in
3018yes:)
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021ac_tool_warned=yes ;;
3022esac
3023 STRIP=$ac_ct_STRIP
3024 fi
3025else
3026 STRIP="$ac_cv_prog_STRIP"
3027fi
3028
3029fi
3030INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3031
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3033$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3034if test -z "$MKDIR_P"; then
3035 if ${ac_cv_path_mkdir+:} false; then :
3036 $as_echo_n "(cached) " >&6
3037else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3040do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_prog in mkdir gmkdir; do
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3046 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3047 'mkdir (GNU coreutils) '* | \
3048 'mkdir (coreutils) '* | \
3049 'mkdir (fileutils) '4.1*)
3050 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3051 break 3;;
3052 esac
3053 done
3054 done
3055 done
3056IFS=$as_save_IFS
3057
3058fi
3059
3060 test -d ./--version && rmdir ./--version
3061 if test "${ac_cv_path_mkdir+set}" = set; then
3062 MKDIR_P="$ac_cv_path_mkdir -p"
3063 else
3064 # As a last resort, use the slow shell script. Don't cache a
3065 # value for MKDIR_P within a source directory, because that will
3066 # break other packages using the cache if that directory is
3067 # removed, or if the value is a relative name.
3068 MKDIR_P="$ac_install_sh -d"
3069 fi
3070fi
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3072$as_echo "$MKDIR_P" >&6; }
3073
3074for ac_prog in gawk mawk nawk awk
3075do
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077set dummy $ac_prog; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if ${ac_cv_prog_AWK+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082else
3083 if test -n "$AWK"; then
3084 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_AWK="$ac_prog"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097done
3098 done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103AWK=$ac_cv_prog_AWK
3104if test -n "$AWK"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3106$as_echo "$AWK" >&6; }
3107else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112
3113 test -n "$AWK" && break
3114done
3115
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3117$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3118set x ${MAKE-make}
3119ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3120if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122else
3123 cat >conftest.make <<\_ACEOF
3124SHELL = /bin/sh
3125all:
3126 @echo '@@@%%%=$(MAKE)=@@@%%%'
3127_ACEOF
3128# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3129case `${MAKE-make} -f conftest.make 2>/dev/null` in
3130 *@@@%%%=?*=@@@%%%*)
3131 eval ac_cv_prog_make_${ac_make}_set=yes;;
3132 *)
3133 eval ac_cv_prog_make_${ac_make}_set=no;;
3134esac
3135rm -f conftest.make
3136fi
3137if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139$as_echo "yes" >&6; }
3140 SET_MAKE=
3141else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143$as_echo "no" >&6; }
3144 SET_MAKE="MAKE=${MAKE-make}"
3145fi
3146
3147rm -rf .tst 2>/dev/null
3148mkdir .tst 2>/dev/null
3149if test -d .tst; then
3150 am__leading_dot=.
3151else
3152 am__leading_dot=_
3153fi
3154rmdir .tst 2>/dev/null
3155
3156# Check whether --enable-silent-rules was given.
3157if test "${enable_silent_rules+set}" = set; then :
3158 enableval=$enable_silent_rules;
3159fi
3160
3161case $enable_silent_rules in # (((
3162 yes) AM_DEFAULT_VERBOSITY=0;;
3163 no) AM_DEFAULT_VERBOSITY=1;;
3164 *) AM_DEFAULT_VERBOSITY=1;;
3165esac
3166am_make=${MAKE-make}
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3168$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3169if ${am_cv_make_support_nested_variables+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171else
3172 if $as_echo 'TRUE=$(BAR$(V))
3173BAR0=false
3174BAR1=true
3175V=1
3176am__doit:
3177 @$(TRUE)
3178.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3179 am_cv_make_support_nested_variables=yes
3180else
3181 am_cv_make_support_nested_variables=no
3182fi
3183fi
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3185$as_echo "$am_cv_make_support_nested_variables" >&6; }
3186if test $am_cv_make_support_nested_variables = yes; then
3187 AM_V='$(V)'
3188 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3189else
3190 AM_V=$AM_DEFAULT_VERBOSITY
3191 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3192fi
3193AM_BACKSLASH='\'
3194
3195if test "`cd $srcdir && pwd`" != "`pwd`"; then
3196 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3197 # is not polluted with repeated "-I."
3198 am__isrc=' -I$(srcdir)'
3199 # test to see if srcdir already configured
3200 if test -f $srcdir/config.status; then
3201 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3202 fi
3203fi
3204
3205# test whether we have cygpath
3206if test -z "$CYGPATH_W"; then
3207 if (cygpath --version) >/dev/null 2>/dev/null; then
3208 CYGPATH_W='cygpath -w'
3209 else
3210 CYGPATH_W=echo
3211 fi
3212fi
3213
3214
3215# Define the identity of the package.
3216 PACKAGE='valgrind'
3217 VERSION='3.12.0'
3218
3219
3220cat >>confdefs.h <<_ACEOF
3221#define PACKAGE "$PACKAGE"
3222_ACEOF
3223
3224
3225cat >>confdefs.h <<_ACEOF
3226#define VERSION "$VERSION"
3227_ACEOF
3228
3229# Some tools Automake needs.
3230
3231ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3232
3233
3234AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3235
3236
3237AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3238
3239
3240AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3241
3242
3243MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3244
3245# For better backward compatibility. To be removed once Automake 1.9.x
3246# dies out for good. For more background, see:
3247# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3248# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3249mkdir_p='$(MKDIR_P)'
3250
3251# We need awk for the "check" target (and possibly the TAP driver). The
3252# system "awk" is bad on some platforms.
3253# Always define AMTAR for backward compatibility. Yes, it's still used
3254# in the wild :-( We should find a proper way to deprecate it ...
3255AMTAR='$${TAR-tar}'
3256
3257
3258# We'll loop over all known methods to create a tar archive until one works.
3259_am_tools='gnutar pax cpio none'
3260
3261am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3262
3263
3264
3265
3266
3267
3268# POSIX will say in a future version that running "rm -f" with no argument
3269# is OK; and we want to be able to make that assumption in our Makefile
3270# recipes. So use an aggressive probe to check that the usage we want is
3271# actually supported "in the wild" to an acceptable degree.
3272# See automake bug#10828.
3273# To make any issue more visible, cause the running configure to be aborted
3274# by default if the 'rm' program in use doesn't match our expectations; the
3275# user can still override this though.
3276if rm -f && rm -fr && rm -rf; then : OK; else
3277 cat >&2 <<'END'
3278Oops!
3279
3280Your 'rm' program seems unable to run without file operands specified
3281on the command line, even when the '-f' option is present. This is contrary
3282to the behaviour of most rm programs out there, and not conforming with
3283the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3284
3285Please tell bug-automake@gnu.org about your system, including the value
3286of your $PATH and any error possibly output before this message. This
3287can help us improve future automake versions.
3288
3289END
3290 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3291 echo 'Configuration will proceed anyway, since you have set the' >&2
3292 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3293 echo >&2
3294 else
3295 cat >&2 <<'END'
3296Aborting the configuration process, to ensure you take notice of the issue.
3297
3298You can download and install GNU coreutils to get an 'rm' implementation
3299that behaves properly: <http://www.gnu.org/software/coreutils/>.
3300
3301If you want to complete the configuration process using your problematic
3302'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3303to "yes", and re-run configure.
3304
3305END
3306 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3307 fi
3308fi
3309
3310
3311
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3313$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3314 # Check whether --enable-maintainer-mode was given.
3315if test "${enable_maintainer_mode+set}" = set; then :
3316 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3317else
3318 USE_MAINTAINER_MODE=no
3319fi
3320
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3322$as_echo "$USE_MAINTAINER_MODE" >&6; }
3323 if test $USE_MAINTAINER_MODE = yes; then
3324 MAINTAINER_MODE_TRUE=
3325 MAINTAINER_MODE_FALSE='#'
3326else
3327 MAINTAINER_MODE_TRUE='#'
3328 MAINTAINER_MODE_FALSE=
3329fi
3330
3331 MAINT=$MAINTAINER_MODE_TRUE
3332
3333
3334
3335#----------------------------------------------------------------------------
3336# Do NOT modify these flags here. Except in feature tests in which case
3337# the original values must be properly restored.
3338#----------------------------------------------------------------------------
3339CFLAGS="$CFLAGS"
3340CXXFLAGS="$CXXFLAGS"
3341
3342#----------------------------------------------------------------------------
3343# Checks for various programs.
3344#----------------------------------------------------------------------------
3345
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3347$as_echo_n "checking whether ln -s works... " >&6; }
3348LN_S=$as_ln_s
3349if test "$LN_S" = "ln -s"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3351$as_echo "yes" >&6; }
3352else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3354$as_echo "no, using $LN_S" >&6; }
3355fi
3356
3357ac_ext=c
3358ac_cpp='$CPP $CPPFLAGS'
3359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362if test -n "$ac_tool_prefix"; then
3363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3364set dummy ${ac_tool_prefix}gcc; ac_word=$2
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366$as_echo_n "checking for $ac_word... " >&6; }
3367if ${ac_cv_prog_CC+:} false; then :
3368 $as_echo_n "(cached) " >&6
3369else
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3372else
3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in $PATH
3375do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384done
3385 done
3386IFS=$as_save_IFS
3387
3388fi
3389fi
3390CC=$ac_cv_prog_CC
3391if test -n "$CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393$as_echo "$CC" >&6; }
3394else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396$as_echo "no" >&6; }
3397fi
3398
3399
3400fi
3401if test -z "$ac_cv_prog_CC"; then
3402 ac_ct_CC=$CC
3403 # Extract the first word of "gcc", so it can be a program name with args.
3404set dummy gcc; ac_word=$2
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406$as_echo_n "checking for $ac_word... " >&6; }
3407if ${ac_cv_prog_ac_ct_CC+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409else
3410 if test -n "$ac_ct_CC"; then
3411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3412else
3413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414for as_dir in $PATH
3415do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_prog_ac_ct_CC="gcc"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3423 fi
3424done
3425 done
3426IFS=$as_save_IFS
3427
3428fi
3429fi
3430ac_ct_CC=$ac_cv_prog_ac_ct_CC
3431if test -n "$ac_ct_CC"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3433$as_echo "$ac_ct_CC" >&6; }
3434else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436$as_echo "no" >&6; }
3437fi
3438
3439 if test "x$ac_ct_CC" = x; then
3440 CC=""
3441 else
3442 case $cross_compiling:$ac_tool_warned in
3443yes:)
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446ac_tool_warned=yes ;;
3447esac
3448 CC=$ac_ct_CC
3449 fi
3450else
3451 CC="$ac_cv_prog_CC"
3452fi
3453
3454if test -z "$CC"; then
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3457set dummy ${ac_tool_prefix}cc; ac_word=$2
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459$as_echo_n "checking for $ac_word... " >&6; }
3460if ${ac_cv_prog_CC+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462else
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC="$CC" # Let the user override the test.
3465else
3466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467for as_dir in $PATH
3468do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_CC="${ac_tool_prefix}cc"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477done
3478 done
3479IFS=$as_save_IFS
3480
3481fi
3482fi
3483CC=$ac_cv_prog_CC
3484if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486$as_echo "$CC" >&6; }
3487else
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489$as_echo "no" >&6; }
3490fi
3491
3492
3493 fi
3494fi
3495if test -z "$CC"; then
3496 # Extract the first word of "cc", so it can be a program name with args.
3497set dummy cc; ac_word=$2
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499$as_echo_n "checking for $ac_word... " >&6; }
3500if ${ac_cv_prog_CC+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502else
3503 if test -n "$CC"; then
3504 ac_cv_prog_CC="$CC" # Let the user override the test.
3505else
3506 ac_prog_rejected=no
3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH
3509do
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3515 ac_prog_rejected=yes
3516 continue
3517 fi
3518 ac_cv_prog_CC="cc"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 break 2
3521 fi
3522done
3523 done
3524IFS=$as_save_IFS
3525
3526if test $ac_prog_rejected = yes; then
3527 # We found a bogon in the path, so make sure we never use it.
3528 set dummy $ac_cv_prog_CC
3529 shift
3530 if test $# != 0; then
3531 # We chose a different compiler from the bogus one.
3532 # However, it has the same basename, so the bogon will be chosen
3533 # first if we set CC to just the basename; use the full file name.
3534 shift
3535 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3536 fi
3537fi
3538fi
3539fi
3540CC=$ac_cv_prog_CC
3541if test -n "$CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543$as_echo "$CC" >&6; }
3544else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546$as_echo "no" >&6; }
3547fi
3548
3549
3550fi
3551if test -z "$CC"; then
3552 if test -n "$ac_tool_prefix"; then
3553 for ac_prog in cl.exe
3554 do
3555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3556set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558$as_echo_n "checking for $ac_word... " >&6; }
3559if ${ac_cv_prog_CC+:} false; then :
3560 $as_echo_n "(cached) " >&6
3561else
3562 if test -n "$CC"; then
3563 ac_cv_prog_CC="$CC" # Let the user override the test.
3564else
3565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566for as_dir in $PATH
3567do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3575 fi
3576done
3577 done
3578IFS=$as_save_IFS
3579
3580fi
3581fi
3582CC=$ac_cv_prog_CC
3583if test -n "$CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585$as_echo "$CC" >&6; }
3586else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588$as_echo "no" >&6; }
3589fi
3590
3591
3592 test -n "$CC" && break
3593 done
3594fi
3595if test -z "$CC"; then
3596 ac_ct_CC=$CC
3597 for ac_prog in cl.exe
3598do
3599 # Extract the first word of "$ac_prog", so it can be a program name with args.
3600set dummy $ac_prog; ac_word=$2
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602$as_echo_n "checking for $ac_word... " >&6; }
3603if ${ac_cv_prog_ac_ct_CC+:} false; then :
3604 $as_echo_n "(cached) " >&6
3605else
3606 if test -n "$ac_ct_CC"; then
3607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3608else
3609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610for as_dir in $PATH
3611do
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_ac_ct_CC="$ac_prog"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3619 fi
3620done
3621 done
3622IFS=$as_save_IFS
3623
3624fi
3625fi
3626ac_ct_CC=$ac_cv_prog_ac_ct_CC
3627if test -n "$ac_ct_CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3629$as_echo "$ac_ct_CC" >&6; }
3630else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632$as_echo "no" >&6; }
3633fi
3634
3635
3636 test -n "$ac_ct_CC" && break
3637done
3638
3639 if test "x$ac_ct_CC" = x; then
3640 CC=""
3641 else
3642 case $cross_compiling:$ac_tool_warned in
3643yes:)
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3646ac_tool_warned=yes ;;
3647esac
3648 CC=$ac_ct_CC
3649 fi
3650fi
3651
3652fi
3653
3654
3655test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657as_fn_error $? "no acceptable C compiler found in \$PATH
3658See \`config.log' for more details" "$LINENO" 5; }
3659
3660# Provide some information about the compiler.
3661$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3662set X $ac_compile
3663ac_compiler=$2
3664for ac_option in --version -v -V -qversion; do
3665 { { ac_try="$ac_compiler $ac_option >&5"
3666case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669esac
3670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671$as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3673 ac_status=$?
3674 if test -s conftest.err; then
3675 sed '10a\
3676... rest of stderr output deleted ...
3677 10q' conftest.err >conftest.er1
3678 cat conftest.er1 >&5
3679 fi
3680 rm -f conftest.er1 conftest.err
3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682 test $ac_status = 0; }
3683done
3684
3685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h. */
3687
3688int
3689main ()
3690{
3691
3692 ;
3693 return 0;
3694}
3695_ACEOF
3696ac_clean_files_save=$ac_clean_files
3697ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3698# Try to create an executable without -o first, disregard a.out.
3699# It will help us diagnose broken compilers, and finding out an intuition
3700# of exeext.
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3702$as_echo_n "checking whether the C compiler works... " >&6; }
3703ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3704
3705# The possible output files:
3706ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3707
3708ac_rmfiles=
3709for ac_file in $ac_files
3710do
3711 case $ac_file in
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3713 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3714 esac
3715done
3716rm -f $ac_rmfiles
3717
3718if { { ac_try="$ac_link_default"
3719case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722esac
3723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724$as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_link_default") 2>&5
3726 ac_status=$?
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }; then :
3729 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3730# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3731# in a Makefile. We should not override ac_cv_exeext if it was cached,
3732# so that the user can short-circuit this test for compilers unknown to
3733# Autoconf.
3734for ac_file in $ac_files ''
3735do
3736 test -f "$ac_file" || continue
3737 case $ac_file in
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3739 ;;
3740 [ab].out )
3741 # We found the default executable, but exeext='' is most
3742 # certainly right.
3743 break;;
3744 *.* )
3745 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3746 then :; else
3747 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3748 fi
3749 # We set ac_cv_exeext here because the later test for it is not
3750 # safe: cross compilers may not add the suffix if given an `-o'
3751 # argument, so we may need to know it at that point already.
3752 # Even if this section looks crufty: it has the advantage of
3753 # actually working.
3754 break;;
3755 * )
3756 break;;
3757 esac
3758done
3759test "$ac_cv_exeext" = no && ac_cv_exeext=
3760
3761else
3762 ac_file=''
3763fi
3764if test -z "$ac_file"; then :
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766$as_echo "no" >&6; }
3767$as_echo "$as_me: failed program was:" >&5
3768sed 's/^/| /' conftest.$ac_ext >&5
3769
3770{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772as_fn_error 77 "C compiler cannot create executables
3773See \`config.log' for more details" "$LINENO" 5; }
3774else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3776$as_echo "yes" >&6; }
3777fi
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3779$as_echo_n "checking for C compiler default output file name... " >&6; }
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3781$as_echo "$ac_file" >&6; }
3782ac_exeext=$ac_cv_exeext
3783
3784rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3785ac_clean_files=$ac_clean_files_save
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3787$as_echo_n "checking for suffix of executables... " >&6; }
3788if { { ac_try="$ac_link"
3789case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792esac
3793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794$as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_link") 2>&5
3796 ac_status=$?
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }; then :
3799 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3800# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3801# work properly (i.e., refer to `conftest.exe'), while it won't with
3802# `rm'.
3803for ac_file in conftest.exe conftest conftest.*; do
3804 test -f "$ac_file" || continue
3805 case $ac_file in
3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3807 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3808 break;;
3809 * ) break;;
3810 esac
3811done
3812else
3813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3816See \`config.log' for more details" "$LINENO" 5; }
3817fi
3818rm -f conftest conftest$ac_cv_exeext
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3820$as_echo "$ac_cv_exeext" >&6; }
3821
3822rm -f conftest.$ac_ext
3823EXEEXT=$ac_cv_exeext
3824ac_exeext=$EXEEXT
3825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h. */
3827#include <stdio.h>
3828int
3829main ()
3830{
3831FILE *f = fopen ("conftest.out", "w");
3832 return ferror (f) || fclose (f) != 0;
3833
3834 ;
3835 return 0;
3836}
3837_ACEOF
3838ac_clean_files="$ac_clean_files conftest.out"
3839# Check that the compiler produces executables we can run. If not, either
3840# the compiler is broken, or we cross compile.
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3842$as_echo_n "checking whether we are cross compiling... " >&6; }
3843if test "$cross_compiling" != yes; then
3844 { { ac_try="$ac_link"
3845case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848esac
3849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850$as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_link") 2>&5
3852 ac_status=$?
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3855 if { ac_try='./conftest$ac_cv_exeext'
3856 { { case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859esac
3860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3861$as_echo "$ac_try_echo"; } >&5
3862 (eval "$ac_try") 2>&5
3863 ac_status=$?
3864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3865 test $ac_status = 0; }; }; then
3866 cross_compiling=no
3867 else
3868 if test "$cross_compiling" = maybe; then
3869 cross_compiling=yes
3870 else
3871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873as_fn_error $? "cannot run C compiled programs.
3874If you meant to cross compile, use \`--host'.
3875See \`config.log' for more details" "$LINENO" 5; }
3876 fi
3877 fi
3878fi
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3880$as_echo "$cross_compiling" >&6; }
3881
3882rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3883ac_clean_files=$ac_clean_files_save
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3885$as_echo_n "checking for suffix of object files... " >&6; }
3886if ${ac_cv_objext+:} false; then :
3887 $as_echo_n "(cached) " >&6
3888else
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h. */
3891
3892int
3893main ()
3894{
3895
3896 ;
3897 return 0;
3898}
3899_ACEOF
3900rm -f conftest.o conftest.obj
3901if { { ac_try="$ac_compile"
3902case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905esac
3906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907$as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_compile") 2>&5
3909 ac_status=$?
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }; then :
3912 for ac_file in conftest.o conftest.obj conftest.*; do
3913 test -f "$ac_file" || continue;
3914 case $ac_file in
3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3916 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3917 break;;
3918 esac
3919done
3920else
3921 $as_echo "$as_me: failed program was:" >&5
3922sed 's/^/| /' conftest.$ac_ext >&5
3923
3924{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3926as_fn_error $? "cannot compute suffix of object files: cannot compile
3927See \`config.log' for more details" "$LINENO" 5; }
3928fi
3929rm -f conftest.$ac_cv_objext conftest.$ac_ext
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3932$as_echo "$ac_cv_objext" >&6; }
3933OBJEXT=$ac_cv_objext
3934ac_objext=$OBJEXT
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3936$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3937if ${ac_cv_c_compiler_gnu+:} false; then :
3938 $as_echo_n "(cached) " >&6
3939else
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941/* end confdefs.h. */
3942
3943int
3944main ()
3945{
3946#ifndef __GNUC__
3947 choke me
3948#endif
3949
3950 ;
3951 return 0;
3952}
3953_ACEOF
3954if ac_fn_c_try_compile "$LINENO"; then :
3955 ac_compiler_gnu=yes
3956else
3957 ac_compiler_gnu=no
3958fi
3959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960ac_cv_c_compiler_gnu=$ac_compiler_gnu
3961
3962fi
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3964$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3965if test $ac_compiler_gnu = yes; then
3966 GCC=yes
3967else
3968 GCC=
3969fi
3970ac_test_CFLAGS=${CFLAGS+set}
3971ac_save_CFLAGS=$CFLAGS
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3973$as_echo_n "checking whether $CC accepts -g... " >&6; }
3974if ${ac_cv_prog_cc_g+:} false; then :
3975 $as_echo_n "(cached) " >&6
3976else
3977 ac_save_c_werror_flag=$ac_c_werror_flag
3978 ac_c_werror_flag=yes
3979 ac_cv_prog_cc_g=no
3980 CFLAGS="-g"
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h. */
3983
3984int
3985main ()
3986{
3987
3988 ;
3989 return 0;
3990}
3991_ACEOF
3992if ac_fn_c_try_compile "$LINENO"; then :
3993 ac_cv_prog_cc_g=yes
3994else
3995 CFLAGS=""
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997/* end confdefs.h. */
3998
3999int
4000main ()
4001{
4002
4003 ;
4004 return 0;
4005}
4006_ACEOF
4007if ac_fn_c_try_compile "$LINENO"; then :
4008
4009else
4010 ac_c_werror_flag=$ac_save_c_werror_flag
4011 CFLAGS="-g"
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013/* end confdefs.h. */
4014
4015int
4016main ()
4017{
4018
4019 ;
4020 return 0;
4021}
4022_ACEOF
4023if ac_fn_c_try_compile "$LINENO"; then :
4024 ac_cv_prog_cc_g=yes
4025fi
4026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027fi
4028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029fi
4030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 ac_c_werror_flag=$ac_save_c_werror_flag
4032fi
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4034$as_echo "$ac_cv_prog_cc_g" >&6; }
4035if test "$ac_test_CFLAGS" = set; then
4036 CFLAGS=$ac_save_CFLAGS
4037elif test $ac_cv_prog_cc_g = yes; then
4038 if test "$GCC" = yes; then
4039 CFLAGS="-g -O2"
4040 else
4041 CFLAGS="-g"
4042 fi
4043else
4044 if test "$GCC" = yes; then
4045 CFLAGS="-O2"
4046 else
4047 CFLAGS=
4048 fi
4049fi
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4051$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4052if ${ac_cv_prog_cc_c89+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054else
4055 ac_cv_prog_cc_c89=no
4056ac_save_CC=$CC
4057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h. */
4059#include <stdarg.h>
4060#include <stdio.h>
4061struct stat;
4062/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4063struct buf { int x; };
4064FILE * (*rcsopen) (struct buf *, struct stat *, int);
4065static char *e (p, i)
4066 char **p;
4067 int i;
4068{
4069 return p[i];
4070}
4071static char *f (char * (*g) (char **, int), char **p, ...)
4072{
4073 char *s;
4074 va_list v;
4075 va_start (v,p);
4076 s = g (p, va_arg (v,int));
4077 va_end (v);
4078 return s;
4079}
4080
4081/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4082 function prototypes and stuff, but not '\xHH' hex character constants.
4083 These don't provoke an error unfortunately, instead are silently treated
4084 as 'x'. The following induces an error, until -std is added to get
4085 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4086 array size at least. It's necessary to write '\x00'==0 to get something
4087 that's true only with -std. */
4088int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4089
4090/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4091 inside strings and character constants. */
4092#define FOO(x) 'x'
4093int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4094
4095int test (int i, double x);
4096struct s1 {int (*f) (int a);};
4097struct s2 {int (*f) (double a);};
4098int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4099int argc;
4100char **argv;
4101int
4102main ()
4103{
4104return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4105 ;
4106 return 0;
4107}
4108_ACEOF
4109for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4110 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4111do
4112 CC="$ac_save_CC $ac_arg"
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114 ac_cv_prog_cc_c89=$ac_arg
4115fi
4116rm -f core conftest.err conftest.$ac_objext
4117 test "x$ac_cv_prog_cc_c89" != "xno" && break
4118done
4119rm -f conftest.$ac_ext
4120CC=$ac_save_CC
4121
4122fi
4123# AC_CACHE_VAL
4124case "x$ac_cv_prog_cc_c89" in
4125 x)
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4127$as_echo "none needed" >&6; } ;;
4128 xno)
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4130$as_echo "unsupported" >&6; } ;;
4131 *)
4132 CC="$CC $ac_cv_prog_cc_c89"
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4134$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4135esac
4136if test "x$ac_cv_prog_cc_c89" != xno; then :
4137
4138fi
4139
4140ac_ext=c
4141ac_cpp='$CPP $CPPFLAGS'
4142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145
4146ac_ext=c
4147ac_cpp='$CPP $CPPFLAGS'
4148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4152$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4153if ${am_cv_prog_cc_c_o+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155else
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h. */
4158
4159int
4160main ()
4161{
4162
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167 # Make sure it works both with $CC and with simple cc.
4168 # Following AC_PROG_CC_C_O, we do the test twice because some
4169 # compilers refuse to overwrite an existing .o file with -o,
4170 # though they will create one.
4171 am_cv_prog_cc_c_o=yes
4172 for am_i in 1 2; do
4173 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4174 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } \
4178 && test -f conftest2.$ac_objext; then
4179 : OK
4180 else
4181 am_cv_prog_cc_c_o=no
4182 break
4183 fi
4184 done
4185 rm -f core conftest*
4186 unset am_i
4187fi
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4189$as_echo "$am_cv_prog_cc_c_o" >&6; }
4190if test "$am_cv_prog_cc_c_o" != yes; then
4191 # Losing compiler, so override with the script.
4192 # FIXME: It is wrong to rewrite CC.
4193 # But if we don't then we get into trouble of one sort or another.
4194 # A longer-term fix would be to have automake use am__CC in this case,
4195 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4196 CC="$am_aux_dir/compile $CC"
4197fi
4198ac_ext=c
4199ac_cpp='$CPP $CPPFLAGS'
4200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203
4204DEPDIR="${am__leading_dot}deps"
4205
4206ac_config_commands="$ac_config_commands depfiles"
4207
4208
4209am_make=${MAKE-make}
4210cat > confinc << 'END'
4211am__doit:
4212 @echo this is the am__doit target
4213.PHONY: am__doit
4214END
4215# If we don't find an include directive, just comment out the code.
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4217$as_echo_n "checking for style of include used by $am_make... " >&6; }
4218am__include="#"
4219am__quote=
4220_am_result=none
4221# First try GNU make style include.
4222echo "include confinc" > confmf
4223# Ignore all kinds of additional output from 'make'.
4224case `$am_make -s -f confmf 2> /dev/null` in #(
4225*the\ am__doit\ target*)
4226 am__include=include
4227 am__quote=
4228 _am_result=GNU
4229 ;;
4230esac
4231# Now try BSD make style include.
4232if test "$am__include" = "#"; then
4233 echo '.include "confinc"' > confmf
4234 case `$am_make -s -f confmf 2> /dev/null` in #(
4235 *the\ am__doit\ target*)
4236 am__include=.include
4237 am__quote="\""
4238 _am_result=BSD
4239 ;;
4240 esac
4241fi
4242
4243
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4245$as_echo "$_am_result" >&6; }
4246rm -f confinc confmf
4247
4248# Check whether --enable-dependency-tracking was given.
4249if test "${enable_dependency_tracking+set}" = set; then :
4250 enableval=$enable_dependency_tracking;
4251fi
4252
4253if test "x$enable_dependency_tracking" != xno; then
4254 am_depcomp="$ac_aux_dir/depcomp"
4255 AMDEPBACKSLASH='\'
4256 am__nodep='_no'
4257fi
4258 if test "x$enable_dependency_tracking" != xno; then
4259 AMDEP_TRUE=
4260 AMDEP_FALSE='#'
4261else
4262 AMDEP_TRUE='#'
4263 AMDEP_FALSE=
4264fi
4265
4266
4267
4268depcc="$CC" am_compiler_list=
4269
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4271$as_echo_n "checking dependency style of $depcc... " >&6; }
4272if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274else
4275 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4276 # We make a subdir and do the tests there. Otherwise we can end up
4277 # making bogus files that we don't know about and never remove. For
4278 # instance it was reported that on HP-UX the gcc test will end up
4279 # making a dummy file named 'D' -- because '-MD' means "put the output
4280 # in D".
4281 rm -rf conftest.dir
4282 mkdir conftest.dir
4283 # Copy depcomp to subdir because otherwise we won't find it if we're
4284 # using a relative directory.
4285 cp "$am_depcomp" conftest.dir
4286 cd conftest.dir
4287 # We will build objects and dependencies in a subdirectory because
4288 # it helps to detect inapplicable dependency modes. For instance
4289 # both Tru64's cc and ICC support -MD to output dependencies as a
4290 # side effect of compilation, but ICC will put the dependencies in
4291 # the current directory while Tru64 will put them in the object
4292 # directory.
4293 mkdir sub
4294
4295 am_cv_CC_dependencies_compiler_type=none
4296 if test "$am_compiler_list" = ""; then
4297 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4298 fi
4299 am__universal=false
4300 case " $depcc " in #(
4301 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4302 esac
4303
4304 for depmode in $am_compiler_list; do
4305 # Setup a source with many dependencies, because some compilers
4306 # like to wrap large dependency lists on column 80 (with \), and
4307 # we should not choose a depcomp mode which is confused by this.
4308 #
4309 # We need to recreate these files for each test, as the compiler may
4310 # overwrite some of them when testing with obscure command lines.
4311 # This happens at least with the AIX C compiler.
4312 : > sub/conftest.c
4313 for i in 1 2 3 4 5 6; do
4314 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4315 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4316 # Solaris 10 /bin/sh.
4317 echo '/* dummy */' > sub/conftst$i.h
4318 done
4319 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4320
4321 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4322 # mode. It turns out that the SunPro C++ compiler does not properly
4323 # handle '-M -o', and we need to detect this. Also, some Intel
4324 # versions had trouble with output in subdirs.
4325 am__obj=sub/conftest.${OBJEXT-o}
4326 am__minus_obj="-o $am__obj"
4327 case $depmode in
4328 gcc)
4329 # This depmode causes a compiler race in universal mode.
4330 test "$am__universal" = false || continue
4331 ;;
4332 nosideeffect)
4333 # After this tag, mechanisms are not by side-effect, so they'll
4334 # only be used when explicitly requested.
4335 if test "x$enable_dependency_tracking" = xyes; then
4336 continue
4337 else
4338 break
4339 fi
4340 ;;
4341 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4342 # This compiler won't grok '-c -o', but also, the minuso test has
4343 # not run yet. These depmodes are late enough in the game, and
4344 # so weak that their functioning should not be impacted.
4345 am__obj=conftest.${OBJEXT-o}
4346 am__minus_obj=
4347 ;;
4348 none) break ;;
4349 esac
4350 if depmode=$depmode \
4351 source=sub/conftest.c object=$am__obj \
4352 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4353 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4354 >/dev/null 2>conftest.err &&
4355 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4356 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4357 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4358 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4359 # icc doesn't choke on unknown options, it will just issue warnings
4360 # or remarks (even with -Werror). So we grep stderr for any message
4361 # that says an option was ignored or not supported.
4362 # When given -MP, icc 7.0 and 7.1 complain thusly:
4363 # icc: Command line warning: ignoring option '-M'; no argument required
4364 # The diagnosis changed in icc 8.0:
4365 # icc: Command line remark: option '-MP' not supported
4366 if (grep 'ignoring option' conftest.err ||
4367 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4368 am_cv_CC_dependencies_compiler_type=$depmode
4369 break
4370 fi
4371 fi
4372 done
4373
4374 cd ..
4375 rm -rf conftest.dir
4376else
4377 am_cv_CC_dependencies_compiler_type=none
4378fi
4379
4380fi
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4382$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4383CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4384
4385 if
4386 test "x$enable_dependency_tracking" != xno \
4387 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4388 am__fastdepCC_TRUE=
4389 am__fastdepCC_FALSE='#'
4390else
4391 am__fastdepCC_TRUE='#'
4392 am__fastdepCC_FALSE=
4393fi
4394
4395
4396
4397ac_ext=c
4398ac_cpp='$CPP $CPPFLAGS'
4399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4403$as_echo_n "checking how to run the C preprocessor... " >&6; }
4404# On Suns, sometimes $CPP names a directory.
4405if test -n "$CPP" && test -d "$CPP"; then
4406 CPP=
4407fi
4408if test -z "$CPP"; then
4409 if ${ac_cv_prog_CPP+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411else
4412 # Double quotes because CPP needs to be expanded
4413 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4414 do
4415 ac_preproc_ok=false
4416for ac_c_preproc_warn_flag in '' yes
4417do
4418 # Use a header file that comes with gcc, so configuring glibc
4419 # with a fresh cross-compiler works.
4420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4421 # <limits.h> exists even on freestanding compilers.
4422 # On the NeXT, cc -E runs the code through the compiler's parser,
4423 # not just through cpp. "Syntax error" is here to catch this case.
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h. */
4426#ifdef __STDC__
4427# include <limits.h>
4428#else
4429# include <assert.h>
4430#endif
4431 Syntax error
4432_ACEOF
4433if ac_fn_c_try_cpp "$LINENO"; then :
4434
4435else
4436 # Broken: fails on valid input.
4437continue
4438fi
4439rm -f conftest.err conftest.i conftest.$ac_ext
4440
4441 # OK, works on sane cases. Now check whether nonexistent headers
4442 # can be detected and how.
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h. */
4445#include <ac_nonexistent.h>
4446_ACEOF
4447if ac_fn_c_try_cpp "$LINENO"; then :
4448 # Broken: success on invalid input.
4449continue
4450else
4451 # Passes both tests.
4452ac_preproc_ok=:
4453break
4454fi
4455rm -f conftest.err conftest.i conftest.$ac_ext
4456
4457done
4458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4459rm -f conftest.i conftest.err conftest.$ac_ext
4460if $ac_preproc_ok; then :
4461 break
4462fi
4463
4464 done
4465 ac_cv_prog_CPP=$CPP
4466
4467fi
4468 CPP=$ac_cv_prog_CPP
4469else
4470 ac_cv_prog_CPP=$CPP
4471fi
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4473$as_echo "$CPP" >&6; }
4474ac_preproc_ok=false
4475for ac_c_preproc_warn_flag in '' yes
4476do
4477 # Use a header file that comes with gcc, so configuring glibc
4478 # with a fresh cross-compiler works.
4479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4480 # <limits.h> exists even on freestanding compilers.
4481 # On the NeXT, cc -E runs the code through the compiler's parser,
4482 # not just through cpp. "Syntax error" is here to catch this case.
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484/* end confdefs.h. */
4485#ifdef __STDC__
4486# include <limits.h>
4487#else
4488# include <assert.h>
4489#endif
4490 Syntax error
4491_ACEOF
4492if ac_fn_c_try_cpp "$LINENO"; then :
4493
4494else
4495 # Broken: fails on valid input.
4496continue
4497fi
4498rm -f conftest.err conftest.i conftest.$ac_ext
4499
4500 # OK, works on sane cases. Now check whether nonexistent headers
4501 # can be detected and how.
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h. */
4504#include <ac_nonexistent.h>
4505_ACEOF
4506if ac_fn_c_try_cpp "$LINENO"; then :
4507 # Broken: success on invalid input.
4508continue
4509else
4510 # Passes both tests.
4511ac_preproc_ok=:
4512break
4513fi
4514rm -f conftest.err conftest.i conftest.$ac_ext
4515
4516done
4517# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4518rm -f conftest.i conftest.err conftest.$ac_ext
4519if $ac_preproc_ok; then :
4520
4521else
4522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4524as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4525See \`config.log' for more details" "$LINENO" 5; }
4526fi
4527
4528ac_ext=c
4529ac_cpp='$CPP $CPPFLAGS'
4530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533
4534ac_ext=cpp
4535ac_cpp='$CXXCPP $CPPFLAGS'
4536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4539if test -z "$CXX"; then
4540 if test -n "$CCC"; then
4541 CXX=$CCC
4542 else
4543 if test -n "$ac_tool_prefix"; then
4544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4545 do
4546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4547set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549$as_echo_n "checking for $ac_word... " >&6; }
4550if ${ac_cv_prog_CXX+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552else
4553 if test -n "$CXX"; then
4554 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4555else
4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4566 fi
4567done
4568 done
4569IFS=$as_save_IFS
4570
4571fi
4572fi
4573CXX=$ac_cv_prog_CXX
4574if test -n "$CXX"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4576$as_echo "$CXX" >&6; }
4577else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579$as_echo "no" >&6; }
4580fi
4581
4582
4583 test -n "$CXX" && break
4584 done
4585fi
4586if test -z "$CXX"; then
4587 ac_ct_CXX=$CXX
4588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4589do
4590 # Extract the first word of "$ac_prog", so it can be a program name with args.
4591set dummy $ac_prog; ac_word=$2
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593$as_echo_n "checking for $ac_word... " >&6; }
4594if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596else
4597 if test -n "$ac_ct_CXX"; then
4598 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_ac_ct_CXX="$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611done
4612 done
4613IFS=$as_save_IFS
4614
4615fi
4616fi
4617ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4618if test -n "$ac_ct_CXX"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4620$as_echo "$ac_ct_CXX" >&6; }
4621else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623$as_echo "no" >&6; }
4624fi
4625
4626
4627 test -n "$ac_ct_CXX" && break
4628done
4629
4630 if test "x$ac_ct_CXX" = x; then
4631 CXX="g++"
4632 else
4633 case $cross_compiling:$ac_tool_warned in
4634yes:)
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4637ac_tool_warned=yes ;;
4638esac
4639 CXX=$ac_ct_CXX
4640 fi
4641fi
4642
4643 fi
4644fi
4645# Provide some information about the compiler.
4646$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4647set X $ac_compile
4648ac_compiler=$2
4649for ac_option in --version -v -V -qversion; do
4650 { { ac_try="$ac_compiler $ac_option >&5"
4651case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4654esac
4655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4656$as_echo "$ac_try_echo"; } >&5
4657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4658 ac_status=$?
4659 if test -s conftest.err; then
4660 sed '10a\
4661... rest of stderr output deleted ...
4662 10q' conftest.err >conftest.er1
4663 cat conftest.er1 >&5
4664 fi
4665 rm -f conftest.er1 conftest.err
4666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4667 test $ac_status = 0; }
4668done
4669
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4671$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4672if ${ac_cv_cxx_compiler_gnu+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674else
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h. */
4677
4678int
4679main ()
4680{
4681#ifndef __GNUC__
4682 choke me
4683#endif
4684
4685 ;
4686 return 0;
4687}
4688_ACEOF
4689if ac_fn_cxx_try_compile "$LINENO"; then :
4690 ac_compiler_gnu=yes
4691else
4692 ac_compiler_gnu=no
4693fi
4694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4696
4697fi
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4699$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4700if test $ac_compiler_gnu = yes; then
4701 GXX=yes
4702else
4703 GXX=
4704fi
4705ac_test_CXXFLAGS=${CXXFLAGS+set}
4706ac_save_CXXFLAGS=$CXXFLAGS
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4708$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4709if ${ac_cv_prog_cxx_g+:} false; then :
4710 $as_echo_n "(cached) " >&6
4711else
4712 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4713 ac_cxx_werror_flag=yes
4714 ac_cv_prog_cxx_g=no
4715 CXXFLAGS="-g"
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717/* end confdefs.h. */
4718
4719int
4720main ()
4721{
4722
4723 ;
4724 return 0;
4725}
4726_ACEOF
4727if ac_fn_cxx_try_compile "$LINENO"; then :
4728 ac_cv_prog_cxx_g=yes
4729else
4730 CXXFLAGS=""
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732/* end confdefs.h. */
4733
4734int
4735main ()
4736{
4737
4738 ;
4739 return 0;
4740}
4741_ACEOF
4742if ac_fn_cxx_try_compile "$LINENO"; then :
4743
4744else
4745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4746 CXXFLAGS="-g"
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748/* end confdefs.h. */
4749
4750int
4751main ()
4752{
4753
4754 ;
4755 return 0;
4756}
4757_ACEOF
4758if ac_fn_cxx_try_compile "$LINENO"; then :
4759 ac_cv_prog_cxx_g=yes
4760fi
4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762fi
4763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764fi
4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4767fi
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4769$as_echo "$ac_cv_prog_cxx_g" >&6; }
4770if test "$ac_test_CXXFLAGS" = set; then
4771 CXXFLAGS=$ac_save_CXXFLAGS
4772elif test $ac_cv_prog_cxx_g = yes; then
4773 if test "$GXX" = yes; then
4774 CXXFLAGS="-g -O2"
4775 else
4776 CXXFLAGS="-g"
4777 fi
4778else
4779 if test "$GXX" = yes; then
4780 CXXFLAGS="-O2"
4781 else
4782 CXXFLAGS=
4783 fi
4784fi
4785ac_ext=c
4786ac_cpp='$CPP $CPPFLAGS'
4787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790
4791depcc="$CXX" am_compiler_list=
4792
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4794$as_echo_n "checking dependency style of $depcc... " >&6; }
4795if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797else
4798 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4799 # We make a subdir and do the tests there. Otherwise we can end up
4800 # making bogus files that we don't know about and never remove. For
4801 # instance it was reported that on HP-UX the gcc test will end up
4802 # making a dummy file named 'D' -- because '-MD' means "put the output
4803 # in D".
4804 rm -rf conftest.dir
4805 mkdir conftest.dir
4806 # Copy depcomp to subdir because otherwise we won't find it if we're
4807 # using a relative directory.
4808 cp "$am_depcomp" conftest.dir
4809 cd conftest.dir
4810 # We will build objects and dependencies in a subdirectory because
4811 # it helps to detect inapplicable dependency modes. For instance
4812 # both Tru64's cc and ICC support -MD to output dependencies as a
4813 # side effect of compilation, but ICC will put the dependencies in
4814 # the current directory while Tru64 will put them in the object
4815 # directory.
4816 mkdir sub
4817
4818 am_cv_CXX_dependencies_compiler_type=none
4819 if test "$am_compiler_list" = ""; then
4820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4821 fi
4822 am__universal=false
4823 case " $depcc " in #(
4824 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4825 esac
4826
4827 for depmode in $am_compiler_list; do
4828 # Setup a source with many dependencies, because some compilers
4829 # like to wrap large dependency lists on column 80 (with \), and
4830 # we should not choose a depcomp mode which is confused by this.
4831 #
4832 # We need to recreate these files for each test, as the compiler may
4833 # overwrite some of them when testing with obscure command lines.
4834 # This happens at least with the AIX C compiler.
4835 : > sub/conftest.c
4836 for i in 1 2 3 4 5 6; do
4837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4838 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4839 # Solaris 10 /bin/sh.
4840 echo '/* dummy */' > sub/conftst$i.h
4841 done
4842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4843
4844 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4845 # mode. It turns out that the SunPro C++ compiler does not properly
4846 # handle '-M -o', and we need to detect this. Also, some Intel
4847 # versions had trouble with output in subdirs.
4848 am__obj=sub/conftest.${OBJEXT-o}
4849 am__minus_obj="-o $am__obj"
4850 case $depmode in
4851 gcc)
4852 # This depmode causes a compiler race in universal mode.
4853 test "$am__universal" = false || continue
4854 ;;
4855 nosideeffect)
4856 # After this tag, mechanisms are not by side-effect, so they'll
4857 # only be used when explicitly requested.
4858 if test "x$enable_dependency_tracking" = xyes; then
4859 continue
4860 else
4861 break
4862 fi
4863 ;;
4864 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4865 # This compiler won't grok '-c -o', but also, the minuso test has
4866 # not run yet. These depmodes are late enough in the game, and
4867 # so weak that their functioning should not be impacted.
4868 am__obj=conftest.${OBJEXT-o}
4869 am__minus_obj=
4870 ;;
4871 none) break ;;
4872 esac
4873 if depmode=$depmode \
4874 source=sub/conftest.c object=$am__obj \
4875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4876 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4877 >/dev/null 2>conftest.err &&
4878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4880 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4882 # icc doesn't choke on unknown options, it will just issue warnings
4883 # or remarks (even with -Werror). So we grep stderr for any message
4884 # that says an option was ignored or not supported.
4885 # When given -MP, icc 7.0 and 7.1 complain thusly:
4886 # icc: Command line warning: ignoring option '-M'; no argument required
4887 # The diagnosis changed in icc 8.0:
4888 # icc: Command line remark: option '-MP' not supported
4889 if (grep 'ignoring option' conftest.err ||
4890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4891 am_cv_CXX_dependencies_compiler_type=$depmode
4892 break
4893 fi
4894 fi
4895 done
4896
4897 cd ..
4898 rm -rf conftest.dir
4899else
4900 am_cv_CXX_dependencies_compiler_type=none
4901fi
4902
4903fi
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4905$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4906CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4907
4908 if
4909 test "x$enable_dependency_tracking" != xno \
4910 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4911 am__fastdepCXX_TRUE=
4912 am__fastdepCXX_FALSE='#'
4913else
4914 am__fastdepCXX_TRUE='#'
4915 am__fastdepCXX_FALSE=
4916fi
4917
4918
4919# AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with
4920# autoconf 2.59). If we ever have any Objective-C code in the Valgrind code
4921# base (eg. most likely as Darwin-specific tests) we'll need one of the
4922# following:
4923# - put AC_PROG_OBJC in a Darwin-specific part of this file
4924# - Use AC_PROG_OBJC here and up the minimum autoconf version
4925# - Use the following, which is apparently equivalent:
4926# m4_ifdef([AC_PROG_OBJC],
4927# [AC_PROG_OBJC],
4928# [AC_CHECK_TOOL([OBJC], [gcc])
4929# AC_SUBST([OBJC])
4930# AC_SUBST([OBJCFLAGS])
4931# ])
4932if test -n "$ac_tool_prefix"; then
4933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4934set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936$as_echo_n "checking for $ac_word... " >&6; }
4937if ${ac_cv_prog_RANLIB+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939else
4940 if test -n "$RANLIB"; then
4941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4942else
4943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944for as_dir in $PATH
4945do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4953 fi
4954done
4955 done
4956IFS=$as_save_IFS
4957
4958fi
4959fi
4960RANLIB=$ac_cv_prog_RANLIB
4961if test -n "$RANLIB"; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4963$as_echo "$RANLIB" >&6; }
4964else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966$as_echo "no" >&6; }
4967fi
4968
4969
4970fi
4971if test -z "$ac_cv_prog_RANLIB"; then
4972 ac_ct_RANLIB=$RANLIB
4973 # Extract the first word of "ranlib", so it can be a program name with args.
4974set dummy ranlib; ac_word=$2
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976$as_echo_n "checking for $ac_word... " >&6; }
4977if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979else
4980 if test -n "$ac_ct_RANLIB"; then
4981 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4982else
4983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984for as_dir in $PATH
4985do
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4990 ac_cv_prog_ac_ct_RANLIB="ranlib"
4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4993 fi
4994done
4995 done
4996IFS=$as_save_IFS
4997
4998fi
4999fi
5000ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5001if test -n "$ac_ct_RANLIB"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5003$as_echo "$ac_ct_RANLIB" >&6; }
5004else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006$as_echo "no" >&6; }
5007fi
5008
5009 if test "x$ac_ct_RANLIB" = x; then
5010 RANLIB=":"
5011 else
5012 case $cross_compiling:$ac_tool_warned in
5013yes:)
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5016ac_tool_warned=yes ;;
5017esac
5018 RANLIB=$ac_ct_RANLIB
5019 fi
5020else
5021 RANLIB="$ac_cv_prog_RANLIB"
5022fi
5023
5024# provide a very basic definition for AC_PROG_SED if it's not provided by
5025# autoconf (as e.g. in autoconf 2.59).
5026
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5028$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5029if ${ac_cv_path_SED+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031else
5032 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5033 for ac_i in 1 2 3 4 5 6 7; do
5034 ac_script="$ac_script$as_nl$ac_script"
5035 done
5036 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5037 { ac_script=; unset ac_script;}
5038 if test -z "$SED"; then
5039 ac_path_SED_found=false
5040 # Loop through the user's path and test for each of PROGNAME-LIST
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042for as_dir in $PATH
5043do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_prog in sed gsed; do
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5049 as_fn_executable_p "$ac_path_SED" || continue
5050# Check for GNU ac_path_SED and select it if it is found.
5051 # Check for GNU $ac_path_SED
5052case `"$ac_path_SED" --version 2>&1` in
5053*GNU*)
5054 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5055*)
5056 ac_count=0
5057 $as_echo_n 0123456789 >"conftest.in"
5058 while :
5059 do
5060 cat "conftest.in" "conftest.in" >"conftest.tmp"
5061 mv "conftest.tmp" "conftest.in"
5062 cp "conftest.in" "conftest.nl"
5063 $as_echo '' >> "conftest.nl"
5064 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5066 as_fn_arith $ac_count + 1 && ac_count=$as_val
5067 if test $ac_count -gt ${ac_path_SED_max-0}; then
5068 # Best one so far, save it but keep looking for a better one
5069 ac_cv_path_SED="$ac_path_SED"
5070 ac_path_SED_max=$ac_count
5071 fi
5072 # 10*(2^10) chars as input seems more than enough
5073 test $ac_count -gt 10 && break
5074 done
5075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5076esac
5077
5078 $ac_path_SED_found && break 3
5079 done
5080 done
5081 done
5082IFS=$as_save_IFS
5083 if test -z "$ac_cv_path_SED"; then
5084 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5085 fi
5086else
5087 ac_cv_path_SED=$SED
5088fi
5089
5090fi
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5092$as_echo "$ac_cv_path_SED" >&6; }
5093 SED="$ac_cv_path_SED"
5094 rm -f conftest.sed
5095
5096
5097# If no AR variable was specified, look up the name of the archiver. Otherwise
5098# do not touch the AR variable.
5099if test "x$AR" = "x"; then
5100 for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar"
5101do
5102 # Extract the first word of "$ac_prog", so it can be a program name with args.
5103set dummy $ac_prog; ac_word=$2
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105$as_echo_n "checking for $ac_word... " >&6; }
5106if ${ac_cv_path_AR+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108else
5109 case $AR in
5110 [\\/]* | ?:[\\/]*)
5111 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5112 ;;
5113 *)
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115for as_dir in $PATH
5116do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125done
5126 done
5127IFS=$as_save_IFS
5128
5129 ;;
5130esac
5131fi
5132AR=$ac_cv_path_AR
5133if test -n "$AR"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5135$as_echo "$AR" >&6; }
5136else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138$as_echo "no" >&6; }
5139fi
5140
5141
5142 test -n "$AR" && break
5143done
5144test -n "$AR" || AR="ar"
5145
5146fi
5147
5148
5149# Check for the compiler support
5150if test "${GCC}" != "yes" ; then
5151 as_fn_error $? "Valgrind relies on GCC to be compiled" "$LINENO" 5
5152fi
5153
5154# figure out where perl lives
5155# Extract the first word of "perl", so it can be a program name with args.
5156set dummy perl; ac_word=$2
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158$as_echo_n "checking for $ac_word... " >&6; }
5159if ${ac_cv_path_PERL+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161else
5162 case $PERL in
5163 [\\/]* | ?:[\\/]*)
5164 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5165 ;;
5166 *)
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168for as_dir in $PATH
5169do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178done
5179 done
5180IFS=$as_save_IFS
5181
5182 ;;
5183esac
5184fi
5185PERL=$ac_cv_path_PERL
5186if test -n "$PERL"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5188$as_echo "$PERL" >&6; }
5189else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191$as_echo "no" >&6; }
5192fi
5193
5194
5195
5196# figure out where gdb lives
5197# Extract the first word of "gdb", so it can be a program name with args.
5198set dummy gdb; ac_word=$2
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200$as_echo_n "checking for $ac_word... " >&6; }
5201if ${ac_cv_path_GDB+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203else
5204 case $GDB in
5205 [\\/]* | ?:[\\/]*)
5206 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
5207 ;;
5208 *)
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5219 fi
5220done
5221 done
5222IFS=$as_save_IFS
5223
5224 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
5225 ;;
5226esac
5227fi
5228GDB=$ac_cv_path_GDB
5229if test -n "$GDB"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
5231$as_echo "$GDB" >&6; }
5232else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234$as_echo "no" >&6; }
5235fi
5236
5237
5238
5239cat >>confdefs.h <<_ACEOF
5240#define GDB_PATH "$GDB"
5241_ACEOF
5242
5243
5244# some older automake's don't have it so try something on our own
5245# By default we simply use the C compiler to build assembly code.
5246
5247test "${CCAS+set}" = set || CCAS=$CC
5248test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5249
5250
5251
5252depcc="$CCAS" am_compiler_list=
5253
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5255$as_echo_n "checking dependency style of $depcc... " >&6; }
5256if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258else
5259 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5260 # We make a subdir and do the tests there. Otherwise we can end up
5261 # making bogus files that we don't know about and never remove. For
5262 # instance it was reported that on HP-UX the gcc test will end up
5263 # making a dummy file named 'D' -- because '-MD' means "put the output
5264 # in D".
5265 rm -rf conftest.dir
5266 mkdir conftest.dir
5267 # Copy depcomp to subdir because otherwise we won't find it if we're
5268 # using a relative directory.
5269 cp "$am_depcomp" conftest.dir
5270 cd conftest.dir
5271 # We will build objects and dependencies in a subdirectory because
5272 # it helps to detect inapplicable dependency modes. For instance
5273 # both Tru64's cc and ICC support -MD to output dependencies as a
5274 # side effect of compilation, but ICC will put the dependencies in
5275 # the current directory while Tru64 will put them in the object
5276 # directory.
5277 mkdir sub
5278
5279 am_cv_CCAS_dependencies_compiler_type=none
5280 if test "$am_compiler_list" = ""; then
5281 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5282 fi
5283 am__universal=false
5284
5285
5286 for depmode in $am_compiler_list; do
5287 # Setup a source with many dependencies, because some compilers
5288 # like to wrap large dependency lists on column 80 (with \), and
5289 # we should not choose a depcomp mode which is confused by this.
5290 #
5291 # We need to recreate these files for each test, as the compiler may
5292 # overwrite some of them when testing with obscure command lines.
5293 # This happens at least with the AIX C compiler.
5294 : > sub/conftest.c
5295 for i in 1 2 3 4 5 6; do
5296 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5297 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5298 # Solaris 10 /bin/sh.
5299 echo '/* dummy */' > sub/conftst$i.h
5300 done
5301 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5302
5303 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5304 # mode. It turns out that the SunPro C++ compiler does not properly
5305 # handle '-M -o', and we need to detect this. Also, some Intel
5306 # versions had trouble with output in subdirs.
5307 am__obj=sub/conftest.${OBJEXT-o}
5308 am__minus_obj="-o $am__obj"
5309 case $depmode in
5310 gcc)
5311 # This depmode causes a compiler race in universal mode.
5312 test "$am__universal" = false || continue
5313 ;;
5314 nosideeffect)
5315 # After this tag, mechanisms are not by side-effect, so they'll
5316 # only be used when explicitly requested.
5317 if test "x$enable_dependency_tracking" = xyes; then
5318 continue
5319 else
5320 break
5321 fi
5322 ;;
5323 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5324 # This compiler won't grok '-c -o', but also, the minuso test has
5325 # not run yet. These depmodes are late enough in the game, and
5326 # so weak that their functioning should not be impacted.
5327 am__obj=conftest.${OBJEXT-o}
5328 am__minus_obj=
5329 ;;
5330 none) break ;;
5331 esac
5332 if depmode=$depmode \
5333 source=sub/conftest.c object=$am__obj \
5334 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5335 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5336 >/dev/null 2>conftest.err &&
5337 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5338 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5339 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5340 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5341 # icc doesn't choke on unknown options, it will just issue warnings
5342 # or remarks (even with -Werror). So we grep stderr for any message
5343 # that says an option was ignored or not supported.
5344 # When given -MP, icc 7.0 and 7.1 complain thusly:
5345 # icc: Command line warning: ignoring option '-M'; no argument required
5346 # The diagnosis changed in icc 8.0:
5347 # icc: Command line remark: option '-MP' not supported
5348 if (grep 'ignoring option' conftest.err ||
5349 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5350 am_cv_CCAS_dependencies_compiler_type=$depmode
5351 break
5352 fi
5353 fi
5354 done
5355
5356 cd ..
5357 rm -rf conftest.dir
5358else
5359 am_cv_CCAS_dependencies_compiler_type=none
5360fi
5361
5362fi
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5364$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5365CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5366
5367 if
5368 test "x$enable_dependency_tracking" != xno \
5369 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5370 am__fastdepCCAS_TRUE=
5371 am__fastdepCCAS_FALSE='#'
5372else
5373 am__fastdepCCAS_TRUE='#'
5374 am__fastdepCCAS_FALSE=
5375fi
5376
5377
5378
5379
5380# Check if 'diff' supports -u (universal diffs) and use it if possible.
5381
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
5383$as_echo_n "checking for diff -u... " >&6; }
5384
5385
5386# Comparing two identical files results in 0.
5387tmpfile="tmp-xxx-yyy-zzz"
5388touch $tmpfile;
5389if diff -u $tmpfile $tmpfile ; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5391$as_echo "yes" >&6; }
5392 DIFF="diff -u"
5393else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395$as_echo "no" >&6; }
5396 DIFF="diff"
5397fi
5398rm $tmpfile
5399
5400
5401# We don't want gcc < 3.0
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
5403$as_echo_n "checking for a supported version of gcc... " >&6; }
5404
5405# Obtain the compiler version.
5406#
5407# A few examples of how the ${CC} --version output looks like:
5408#
5409# ######## gcc variants ########
5410# Arch Linux: i686-pc-linux-gnu-gcc (GCC) 4.6.2
5411# Debian Linux: gcc (Debian 4.3.2-1.1) 4.3.2
5412# openSUSE: gcc (SUSE Linux) 4.5.1 20101208 [gcc-4_5-branch revision 167585]
5413# Exherbo Linux: x86_64-pc-linux-gnu-gcc (Exherbo gcc-4.6.2) 4.6.2
5414# MontaVista Linux for ARM: arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q1-203) 4.3.3
5415# OS/X 10.6: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
5416# OS/X 10.7: i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
5417#
5418# ######## clang variants ########
5419# Clang: clang version 2.9 (tags/RELEASE_29/final)
5420# Apple clang: Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
5421# FreeBSD clang: FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
5422#
5423# ######## Apple LLVM variants ########
5424# Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
5425# Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
5426#
5427
5428if test "x`${CC} --version | $SED -n -e 's/.*\Apple \(LLVM\) version.*clang.*/\1/p'`" = "xLLVM" ;
5429then
5430 is_clang="applellvm"
5431 gcc_version=`${CC} --version | $SED -n -e 's/.*LLVM version \([0-9.]*\).*$/\1/p'`
5432elif test "x`${CC} --version | $SED -n -e 's/.*\(clang\) version.*/\1/p'`" = "xclang" ;
5433then
5434 is_clang="clang"
5435 # Don't use -dumpversion with clang: it will always produce "4.2.1".
5436 gcc_version=`${CC} --version | $SED -n -e 's/.*clang version \([0-9.]*\).*$/\1/p'`
5437elif test "x`${CC} --version | $SED -n -e 's/icc.*\(ICC\).*/\1/p'`" = "xICC" ;
5438then
5439 is_clang="icc"
5440 gcc_version=`${CC} -dumpversion 2>/dev/null`
5441else
5442 is_clang="notclang"
5443 gcc_version=`${CC} -dumpversion 2>/dev/null`
5444 if test "x$gcc_version" = x; then
5445 gcc_version=`${CC} --version | $SED -n -e 's/[^ ]*gcc[^ ]* ([^)]*) \([0-9.]*\).*$/\1/p'`
5446 fi
5447fi
5448
5449 if test $is_clang = clang -o $is_clang = applellvm; then
5450 COMPILER_IS_CLANG_TRUE=
5451 COMPILER_IS_CLANG_FALSE='#'
5452else
5453 COMPILER_IS_CLANG_TRUE='#'
5454 COMPILER_IS_CLANG_FALSE=
5455fi
5456
5457 if test $is_clang = icc; then
5458 COMPILER_IS_ICC_TRUE=
5459 COMPILER_IS_ICC_FALSE='#'
5460else
5461 COMPILER_IS_ICC_TRUE='#'
5462 COMPILER_IS_ICC_FALSE=
5463fi
5464
5465
5466# Note: m4 arguments are quoted with [ and ] so square brackets in shell
5467# statements have to be quoted.
5468case "${is_clang}-${gcc_version}" in
5469 applellvm-5.1|applellvm-6.*|applellvm-7.*|applellvm-8.*)
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (Apple LLVM version ${gcc_version})" >&5
5471$as_echo "ok (Apple LLVM version ${gcc_version})" >&6; }
5472 ;;
5473 icc-1[3-9].*)
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (ICC version ${gcc_version})" >&5
5475$as_echo "ok (ICC version ${gcc_version})" >&6; }
5476 ;;
5477 notclang-[3-9]|notclang-[3-9].*|notclang-[1-9][0-9]*)
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
5479$as_echo "ok (${gcc_version})" >&6; }
5480 ;;
5481 clang-2.9|clang-[3-9].*|clang-[1-9][0-9]*)
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (clang-${gcc_version})" >&5
5483$as_echo "ok (clang-${gcc_version})" >&6; }
5484 ;;
5485 *)
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${is_clang}-${gcc_version})" >&5
5487$as_echo "no (${is_clang}-${gcc_version})" >&6; }
5488 as_fn_error $? "please use gcc >= 3.0 or clang >= 2.9 or icc >= 13.0" "$LINENO" 5
5489 ;;
5490esac
5491
5492#----------------------------------------------------------------------------
5493# Arch/OS/platform tests.
5494#----------------------------------------------------------------------------
5495# We create a number of arch/OS/platform-related variables. We prefix them
5496# all with "VGCONF_" which indicates that they are defined at
5497# configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
5498# variables used when compiling C files.
5499
5500# Make sure we can run config.sub.
5501$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5502 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5503
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5505$as_echo_n "checking build system type... " >&6; }
5506if ${ac_cv_build+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508else
5509 ac_build_alias=$build_alias
5510test "x$ac_build_alias" = x &&
5511 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5512test "x$ac_build_alias" = x &&
5513 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5514ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5515 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5516
5517fi
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5519$as_echo "$ac_cv_build" >&6; }
5520case $ac_cv_build in
5521*-*-*) ;;
5522*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5523esac
5524build=$ac_cv_build
5525ac_save_IFS=$IFS; IFS='-'
5526set x $ac_cv_build
5527shift
5528build_cpu=$1
5529build_vendor=$2
5530shift; shift
5531# Remember, the first character of IFS is used to create $*,
5532# except with old shells:
5533build_os=$*
5534IFS=$ac_save_IFS
5535case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5536
5537
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5539$as_echo_n "checking host system type... " >&6; }
5540if ${ac_cv_host+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542else
5543 if test "x$host_alias" = x; then
5544 ac_cv_host=$ac_cv_build
5545else
5546 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5547 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5548fi
5549
5550fi
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5552$as_echo "$ac_cv_host" >&6; }
5553case $ac_cv_host in
5554*-*-*) ;;
5555*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5556esac
5557host=$ac_cv_host
5558ac_save_IFS=$IFS; IFS='-'
5559set x $ac_cv_host
5560shift
5561host_cpu=$1
5562host_vendor=$2
5563shift; shift
5564# Remember, the first character of IFS is used to create $*,
5565# except with old shells:
5566host_os=$*
5567IFS=$ac_save_IFS
5568case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5569
5570
5571
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
5573$as_echo_n "checking for a supported CPU... " >&6; }
5574
5575# ARCH_MAX reflects the most that this CPU can do: for example if it
5576# is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
5577# Ditto for amd64. It is used for more configuration below, but is not used
5578# outside this file.
5579#
5580# Power PC returns powerpc for Big Endian. This was not changed when Little
5581# Endian support was added to the 64-bit architecture. The 64-bit Little
5582# Endian systems explicitly state le in the host_cpu. For clarity in the
5583# Valgrind code, the ARCH_MAX name will state LE or BE for the endianess of
5584# the 64-bit system. Big Endian is the only mode supported on 32-bit Power PC.
5585# The abreviation PPC or ppc refers to 32-bit and 64-bit systems with either
5586# Endianess. The name PPC64 or ppc64 to 64-bit systems of either Endianess.
5587# The names ppc64be or PPC64BE refer to only 64-bit systems that are Big
5588# Endian. Similarly, ppc64le or PPC64LE refer to only 64-bit systems that are
5589# Little Endian.
5590
5591case "${host_cpu}" in
5592 i?86)
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5594$as_echo "ok (${host_cpu})" >&6; }
5595 ARCH_MAX="x86"
5596 ;;
5597
5598 x86_64)
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5600$as_echo "ok (${host_cpu})" >&6; }
5601 ARCH_MAX="amd64"
5602 ;;
5603
5604 powerpc64)
5605 # this only referrs to 64-bit Big Endian
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5607$as_echo "ok (${host_cpu})" >&6; }
5608 ARCH_MAX="ppc64be"
5609 ;;
5610
5611 powerpc64le)
5612 # this only referrs to 64-bit Little Endian
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5614$as_echo "ok (${host_cpu})" >&6; }
5615 ARCH_MAX="ppc64le"
5616 ;;
5617
5618 powerpc)
5619 # On Linux this means only a 32-bit capable CPU.
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5621$as_echo "ok (${host_cpu})" >&6; }
5622 ARCH_MAX="ppc32"
5623 ;;
5624
5625 s390x)
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5627$as_echo "ok (${host_cpu})" >&6; }
5628 ARCH_MAX="s390x"
5629 ;;
5630
5631 armv7*)
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5633$as_echo "ok (${host_cpu})" >&6; }
5634 ARCH_MAX="arm"
5635 ;;
5636
5637 aarch64*)
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5639$as_echo "ok (${host_cpu})" >&6; }
5640 ARCH_MAX="arm64"
5641 ;;
5642
5643 mips)
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5645$as_echo "ok (${host_cpu})" >&6; }
5646 ARCH_MAX="mips32"
5647 ;;
5648
5649 mipsel)
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5651$as_echo "ok (${host_cpu})" >&6; }
5652 ARCH_MAX="mips32"
5653 ;;
5654
5655 mipsisa32r2)
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5657$as_echo "ok (${host_cpu})" >&6; }
5658 ARCH_MAX="mips32"
5659 ;;
5660
5661 mips64*)
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5663$as_echo "ok (${host_cpu})" >&6; }
5664 ARCH_MAX="mips64"
5665 ;;
5666
5667 mipsisa64*)
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5669$as_echo "ok (${host_cpu})" >&6; }
5670 ARCH_MAX="mips64"
5671 ;;
5672
5673 tilegx)
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5675$as_echo "ok (${host_cpu})" >&6; }
5676 ARCH_MAX="tilegx"
5677 ;;
5678
5679 *)
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
5681$as_echo "no (${host_cpu})" >&6; }
5682 as_fn_error $? "Unsupported host architecture. Sorry" "$LINENO" 5
5683 ;;
5684esac
5685
5686#----------------------------------------------------------------------------
5687
5688# Sometimes it's convenient to subvert the bi-arch build system and
5689# just have a single build even though the underlying platform is
5690# capable of both. Hence handle --enable-only64bit and
5691# --enable-only32bit. Complain if both are issued :-)
5692# [Actually, if either of these options are used, I think both get built,
5693# but only one gets installed. So if you use an in-place build, both can be
5694# used. --njn]
5695
5696# Check if a 64-bit only build has been requested
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
5698$as_echo_n "checking for a 64-bit only build... " >&6; }
5699if ${vg_cv_only64bit+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701else
5702 # Check whether --enable-only64bit was given.
5703if test "${enable_only64bit+set}" = set; then :
5704 enableval=$enable_only64bit; vg_cv_only64bit=$enableval
5705else
5706 vg_cv_only64bit=no
5707fi
5708
5709fi
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
5711$as_echo "$vg_cv_only64bit" >&6; }
5712
5713# Check if a 32-bit only build has been requested
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
5715$as_echo_n "checking for a 32-bit only build... " >&6; }
5716if ${vg_cv_only32bit+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718else
5719 # Check whether --enable-only32bit was given.
5720if test "${enable_only32bit+set}" = set; then :
5721 enableval=$enable_only32bit; vg_cv_only32bit=$enableval
5722else
5723 vg_cv_only32bit=no
5724fi
5725
5726fi
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
5728$as_echo "$vg_cv_only32bit" >&6; }
5729
5730# Stay sane
5731if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5732 as_fn_error $? "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
5733fi
5734
5735#----------------------------------------------------------------------------
5736
5737# VGCONF_OS is the primary build OS, eg. "linux". It is passed in to
5738# compilation of many C files via -VGO_$(VGCONF_OS) and
5739# -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
5741$as_echo_n "checking for a supported OS... " >&6; }
5742
5743
5744DEFAULT_SUPP=""
5745
5746case "${host_os}" in
5747 *linux*)
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5749$as_echo "ok (${host_os})" >&6; }
5750 VGCONF_OS="linux"
5751
5752 # Ok, this is linux. Check the kernel version
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5754$as_echo_n "checking for the kernel version... " >&6; }
5755
5756 kernel=`uname -r`
5757
5758 case "${kernel}" in
5759 0.*|1.*|2.0.*|2.1.*|2.2.*|2.3.*|2.4.*|2.5.*)
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5761$as_echo "unsupported (${kernel})" >&6; }
5762 as_fn_error $? "Valgrind needs a Linux kernel >= 2.6" "$LINENO" 5
5763 ;;
5764
5765 *)
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 or later (${kernel})" >&5
5767$as_echo "2.6 or later (${kernel})" >&6; }
5768 ;;
5769 esac
5770
5771 ;;
5772
5773 *darwin*)
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5775$as_echo "ok (${host_os})" >&6; }
5776 VGCONF_OS="darwin"
5777
5778$as_echo "#define DARWIN_10_5 100500" >>confdefs.h
5779
5780
5781$as_echo "#define DARWIN_10_6 100600" >>confdefs.h
5782
5783
5784$as_echo "#define DARWIN_10_7 100700" >>confdefs.h
5785
5786
5787$as_echo "#define DARWIN_10_8 100800" >>confdefs.h
5788
5789
5790$as_echo "#define DARWIN_10_9 100900" >>confdefs.h
5791
5792
5793$as_echo "#define DARWIN_10_10 101000" >>confdefs.h
5794
5795
5796$as_echo "#define DARWIN_10_11 101100" >>confdefs.h
5797
5798
5799$as_echo "#define DARWIN_10_12 101200" >>confdefs.h
5800
5801
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5803$as_echo_n "checking for the kernel version... " >&6; }
5804 kernel=`uname -r`
5805
5806 # Nb: for Darwin we set DEFAULT_SUPP here. That's because Darwin
5807 # has only one relevant version, the OS version. The `uname` check
5808 # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
5809 # X 10.5.6, and "Darwin 10.x" is Mac OS X 10.6.x Snow Leopard,
5810 # and possibly "Darwin 11.x" is Mac OS X 10.7.x Lion),
5811 # and we don't know of an macros similar to __GLIBC__ to get that info.
5812 #
5813 # XXX: `uname -r` won't do the right thing for cross-compiles, but
5814 # that's not a problem yet.
5815 #
5816 # jseward 21 Sept 2011: I seriously doubt whether V 3.7.0 will work
5817 # on OS X 10.5.x; I haven't tested yet, and only plan to test 3.7.0
5818 # on 10.6.8 and 10.7.1. Although tempted to delete the configure
5819 # time support for 10.5 (the 9.* pattern just below), I'll leave it
5820 # in for now, just in case anybody wants to give it a try. But I'm
5821 # assuming that 3.7.0 is a Snow Leopard and Lion-only release.
5822 case "${kernel}" in
5823 9.*)
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
5825$as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
5826
5827$as_echo "#define DARWIN_VERS DARWIN_10_5" >>confdefs.h
5828
5829 DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}"
5830 DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}"
5831 ;;
5832 10.*)
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&5
5834$as_echo "Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&6; }
5835
5836$as_echo "#define DARWIN_VERS DARWIN_10_6" >>confdefs.h
5837
5838 DEFAULT_SUPP="darwin10.supp ${DEFAULT_SUPP}"
5839 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5840 ;;
5841 11.*)
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 11.x (${kernel}) / Mac OS X 10.7 Lion" >&5
5843$as_echo "Darwin 11.x (${kernel}) / Mac OS X 10.7 Lion" >&6; }
5844
5845$as_echo "#define DARWIN_VERS DARWIN_10_7" >>confdefs.h
5846
5847 DEFAULT_SUPP="darwin11.supp ${DEFAULT_SUPP}"
5848 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5849 ;;
5850 12.*)
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 12.x (${kernel}) / Mac OS X 10.8 Mountain Lion" >&5
5852$as_echo "Darwin 12.x (${kernel}) / Mac OS X 10.8 Mountain Lion" >&6; }
5853
5854$as_echo "#define DARWIN_VERS DARWIN_10_8" >>confdefs.h
5855
5856 DEFAULT_SUPP="darwin12.supp ${DEFAULT_SUPP}"
5857 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5858 ;;
5859 13.*)
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 13.x (${kernel}) / Mac OS X 10.9 Mavericks" >&5
5861$as_echo "Darwin 13.x (${kernel}) / Mac OS X 10.9 Mavericks" >&6; }
5862
5863$as_echo "#define DARWIN_VERS DARWIN_10_9" >>confdefs.h
5864
5865 DEFAULT_SUPP="darwin13.supp ${DEFAULT_SUPP}"
5866 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5867 ;;
5868 14.*)
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 14.x (${kernel}) / Mac OS X 10.10 Yosemite" >&5
5870$as_echo "Darwin 14.x (${kernel}) / Mac OS X 10.10 Yosemite" >&6; }
5871
5872$as_echo "#define DARWIN_VERS DARWIN_10_10" >>confdefs.h
5873
5874 DEFAULT_SUPP="darwin14.supp ${DEFAULT_SUPP}"
5875 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5876 ;;
5877 15.*)
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 15.x (${kernel}) / Mac OS X 10.11 El Capitan" >&5
5879$as_echo "Darwin 15.x (${kernel}) / Mac OS X 10.11 El Capitan" >&6; }
5880
5881$as_echo "#define DARWIN_VERS DARWIN_10_11" >>confdefs.h
5882
5883 DEFAULT_SUPP="darwin15.supp ${DEFAULT_SUPP}"
5884 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5885 ;;
5886 16.*)
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 16.x (${kernel}) / macOS 10.12 Sierra" >&5
5888$as_echo "Darwin 16.x (${kernel}) / macOS 10.12 Sierra" >&6; }
5889
5890$as_echo "#define DARWIN_VERS DARWIN_10_12" >>confdefs.h
5891
5892 DEFAULT_SUPP="darwin16.supp ${DEFAULT_SUPP}"
5893 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5894 ;;
5895 *)
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5897$as_echo "unsupported (${kernel})" >&6; }
5898 as_fn_error $? "Valgrind works on Darwin 10.x, 11.x, 12.x, 13.x, 14.x, 15.x and 16.x (Mac OS X 10.6/7/8/9/10/11 and macOS 10.12)" "$LINENO" 5
5899 ;;
5900 esac
5901 ;;
5902
5903 solaris2.11*)
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5905$as_echo "ok (${host_os})" >&6; }
5906 VGCONF_OS="solaris"
5907 DEFAULT_SUPP="solaris11.supp ${DEFAULT_SUPP}"
5908 ;;
5909
5910 solaris2.12*)
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5912$as_echo "ok (${host_os})" >&6; }
5913 VGCONF_OS="solaris"
5914 DEFAULT_SUPP="solaris12.supp ${DEFAULT_SUPP}"
5915 ;;
5916
5917 *)
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
5919$as_echo "no (${host_os})" >&6; }
5920 as_fn_error $? "Valgrind is operating system specific. Sorry." "$LINENO" 5
5921 ;;
5922esac
5923
5924#----------------------------------------------------------------------------
5925
5926# If we are building on a 64 bit platform test to see if the system
5927# supports building 32 bit programs and disable 32 bit support if it
5928# does not support building 32 bit programs
5929
5930case "$ARCH_MAX-$VGCONF_OS" in
5931 amd64-linux|ppc64be-linux|arm64-linux|amd64-solaris)
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
5933$as_echo_n "checking for 32 bit build support... " >&6; }
5934 safe_CFLAGS=$CFLAGS
5935 CFLAGS="-m32"
5936
5937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938/* end confdefs.h. */
5939
5940int
5941main ()
5942{
5943
5944 return 0;
5945
5946 ;
5947 return 0;
5948}
5949_ACEOF
5950if ac_fn_c_try_link "$LINENO"; then :
5951
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5953$as_echo "yes" >&6; }
5954
5955else
5956
5957 vg_cv_only64bit="yes"
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959$as_echo "no" >&6; }
5960
5961fi
5962rm -f core conftest.err conftest.$ac_objext \
5963 conftest$ac_exeext conftest.$ac_ext
5964 CFLAGS=$safe_CFLAGS;;
5965esac
5966
5967if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5968 as_fn_error $? "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
5969fi
5970
5971#----------------------------------------------------------------------------
5972
5973# VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64". By
5974# default it's the same as ARCH_MAX. But if, say, we do a build on an amd64
5975# machine, but --enable-only32bit has been requested, then ARCH_MAX (see
5976# above) will be "amd64" since that reflects the most that this cpu can do,
5977# but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
5978# arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS). It is
5979# passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
5980# -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5981
5982
5983# VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
5984# It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
5985# and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
5986# It is empty if there is no secondary target.
5987
5988
5989# VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
5990# The entire system, including regression and performance tests, will be
5991# built for this target. The "_CAPS" indicates that the name is in capital
5992# letters, and it also uses '_' rather than '-' as a separator, because it's
5993# used to create various Makefile variables, which are all in caps by
5994# convention and cannot contain '-' characters. This is in contrast to
5995# VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
5996
5997
5998# VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
5999# Valgrind and tools will also be built for this target, but not the
6000# regression or performance tests.
6001#
6002# By default, the primary arch is the same as the "max" arch, as commented
6003# above (at the definition of ARCH_MAX). We may choose to downgrade it in
6004# the big case statement just below here, in the case where we're building
6005# on a 64 bit machine but have been requested only to do a 32 bit build.
6006
6007
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
6009$as_echo_n "checking for a supported CPU/OS combination... " >&6; }
6010
6011# NB. The load address for a given platform may be specified in more
6012# than one place, in some cases, depending on whether we're doing a biarch,
6013# 32-bit only or 64-bit only build. eg see case for amd64-linux below.
6014# Be careful to give consistent values in all subcases. Also, all four
6015# valt_load_addres_{pri,sec}_{norml,inner} values must always be set,
6016# even if it is to "0xUNSET".
6017#
6018case "$ARCH_MAX-$VGCONF_OS" in
6019 x86-linux)
6020 VGCONF_ARCH_PRI="x86"
6021 VGCONF_ARCH_SEC=""
6022 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
6023 VGCONF_PLATFORM_SEC_CAPS=""
6024 valt_load_address_pri_norml="0x38000000"
6025 valt_load_address_pri_inner="0x28000000"
6026 valt_load_address_sec_norml="0xUNSET"
6027 valt_load_address_sec_inner="0xUNSET"
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6029$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6030 ;;
6031 amd64-linux)
6032 valt_load_address_sec_norml="0xUNSET"
6033 valt_load_address_sec_inner="0xUNSET"
6034 if test x$vg_cv_only64bit = xyes; then
6035 VGCONF_ARCH_PRI="amd64"
6036 VGCONF_ARCH_SEC=""
6037 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
6038 VGCONF_PLATFORM_SEC_CAPS=""
6039 valt_load_address_pri_norml="0x38000000"
6040 valt_load_address_pri_inner="0x28000000"
6041 elif test x$vg_cv_only32bit = xyes; then
6042 VGCONF_ARCH_PRI="x86"
6043 VGCONF_ARCH_SEC=""
6044 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
6045 VGCONF_PLATFORM_SEC_CAPS=""
6046 valt_load_address_pri_norml="0x38000000"
6047 valt_load_address_pri_inner="0x28000000"
6048 else
6049 VGCONF_ARCH_PRI="amd64"
6050 VGCONF_ARCH_SEC="x86"
6051 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
6052 VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
6053 valt_load_address_pri_norml="0x38000000"
6054 valt_load_address_pri_inner="0x28000000"
6055 valt_load_address_sec_norml="0x38000000"
6056 valt_load_address_sec_inner="0x28000000"
6057 fi
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6059$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6060 ;;
6061 ppc32-linux)
6062 VGCONF_ARCH_PRI="ppc32"
6063 VGCONF_ARCH_SEC=""
6064 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
6065 VGCONF_PLATFORM_SEC_CAPS=""
6066 valt_load_address_pri_norml="0x38000000"
6067 valt_load_address_pri_inner="0x28000000"
6068 valt_load_address_sec_norml="0xUNSET"
6069 valt_load_address_sec_inner="0xUNSET"
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6071$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6072 ;;
6073 ppc64be-linux)
6074 valt_load_address_sec_norml="0xUNSET"
6075 valt_load_address_sec_inner="0xUNSET"
6076 if test x$vg_cv_only64bit = xyes; then
6077 VGCONF_ARCH_PRI="ppc64be"
6078 VGCONF_ARCH_SEC=""
6079 VGCONF_PLATFORM_PRI_CAPS="PPC64BE_LINUX"
6080 VGCONF_PLATFORM_SEC_CAPS=""
6081 valt_load_address_pri_norml="0x38000000"
6082 valt_load_address_pri_inner="0x28000000"
6083 elif test x$vg_cv_only32bit = xyes; then
6084 VGCONF_ARCH_PRI="ppc32"
6085 VGCONF_ARCH_SEC=""
6086 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
6087 VGCONF_PLATFORM_SEC_CAPS=""
6088 valt_load_address_pri_norml="0x38000000"
6089 valt_load_address_pri_inner="0x28000000"
6090 else
6091 VGCONF_ARCH_PRI="ppc64be"
6092 VGCONF_ARCH_SEC="ppc32"
6093 VGCONF_PLATFORM_PRI_CAPS="PPC64BE_LINUX"
6094 VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
6095 valt_load_address_pri_norml="0x38000000"
6096 valt_load_address_pri_inner="0x28000000"
6097 valt_load_address_sec_norml="0x38000000"
6098 valt_load_address_sec_inner="0x28000000"
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6101$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6102 ;;
6103 ppc64le-linux)
6104 # Little Endian is only supported on PPC64
6105 valt_load_address_sec_norml="0xUNSET"
6106 valt_load_address_sec_inner="0xUNSET"
6107 VGCONF_ARCH_PRI="ppc64le"
6108 VGCONF_ARCH_SEC=""
6109 VGCONF_PLATFORM_PRI_CAPS="PPC64LE_LINUX"
6110 VGCONF_PLATFORM_SEC_CAPS=""
6111 valt_load_address_pri_norml="0x38000000"
6112 valt_load_address_pri_inner="0x28000000"
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6114$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6115 ;;
6116 # Darwin gets identified as 32-bit even when it supports 64-bit.
6117 # (Not sure why, possibly because 'uname' returns "i386"?) Just about
6118 # all Macs support both 32-bit and 64-bit, so we just build both. If
6119 # someone has a really old 32-bit only machine they can (hopefully?)
6120 # build with --enable-only32bit. See bug 243362.
6121 x86-darwin|amd64-darwin)
6122 ARCH_MAX="amd64"
6123 valt_load_address_sec_norml="0xUNSET"
6124 valt_load_address_sec_inner="0xUNSET"
6125 if test x$vg_cv_only64bit = xyes; then
6126 VGCONF_ARCH_PRI="amd64"
6127 VGCONF_ARCH_SEC=""
6128 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
6129 VGCONF_PLATFORM_SEC_CAPS=""
6130 valt_load_address_pri_norml="0x138000000"
6131 valt_load_address_pri_inner="0x128000000"
6132 elif test x$vg_cv_only32bit = xyes; then
6133 VGCONF_ARCH_PRI="x86"
6134 VGCONF_ARCH_SEC=""
6135 VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
6136 VGCONF_PLATFORM_SEC_CAPS=""
6137 VGCONF_ARCH_PRI_CAPS="x86"
6138 valt_load_address_pri_norml="0x38000000"
6139 valt_load_address_pri_inner="0x28000000"
6140 else
6141 VGCONF_ARCH_PRI="amd64"
6142 VGCONF_ARCH_SEC="x86"
6143 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
6144 VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
6145 valt_load_address_pri_norml="0x138000000"
6146 valt_load_address_pri_inner="0x128000000"
6147 valt_load_address_sec_norml="0x38000000"
6148 valt_load_address_sec_inner="0x28000000"
6149 fi
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6151$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6152 ;;
6153 arm-linux)
6154 VGCONF_ARCH_PRI="arm"
6155 VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
6156 VGCONF_PLATFORM_SEC_CAPS=""
6157 valt_load_address_pri_norml="0x38000000"
6158 valt_load_address_pri_inner="0x28000000"
6159 valt_load_address_sec_norml="0xUNSET"
6160 valt_load_address_sec_inner="0xUNSET"
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
6162$as_echo "ok (${host_cpu}-${host_os})" >&6; }
6163 ;;
6164 arm64-linux)
6165 valt_load_address_sec_norml="0xUNSET"
6166 valt_load_address_sec_inner="0xUNSET"
6167 if test x$vg_cv_only64bit = xyes; then
6168 VGCONF_ARCH_PRI="arm64"
6169 VGCONF_ARCH_SEC=""
6170 VGCONF_PLATFORM_PRI_CAPS="ARM64_LINUX"
6171 VGCONF_PLATFORM_SEC_CAPS=""
6172 valt_load_address_pri_norml="0x38000000"
6173 valt_load_address_pri_inner="0x28000000"
6174 elif test x$vg_cv_only32bit = xyes; then
6175 VGCONF_ARCH_PRI="arm"
6176 VGCONF_ARCH_SEC=""
6177 VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
6178 VGCONF_PLATFORM_SEC_CAPS=""
6179 valt_load_address_pri_norml="0x38000000"
6180 valt_load_address_pri_inner="0x28000000"
6181 else
6182 VGCONF_ARCH_PRI="arm64"
6183 VGCONF_ARCH_SEC="arm"
6184 VGCONF_PLATFORM_PRI_CAPS="ARM64_LINUX"
6185 VGCONF_PLATFORM_SEC_CAPS="ARM_LINUX"
6186 valt_load_address_pri_norml="0x38000000"
6187 valt_load_address_pri_inner="0x28000000"
6188 valt_load_address_sec_norml="0x38000000"
6189 valt_load_address_sec_inner="0x28000000"
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6192$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6193 ;;
6194 s390x-linux)
6195 VGCONF_ARCH_PRI="s390x"
6196 VGCONF_ARCH_SEC=""
6197 VGCONF_PLATFORM_PRI_CAPS="S390X_LINUX"
6198 VGCONF_PLATFORM_SEC_CAPS=""
6199 # To improve branch prediction hit rate we want to have
6200 # the generated code close to valgrind (host) code
6201 valt_load_address_pri_norml="0x800000000"
6202 valt_load_address_pri_inner="0x810000000"
6203 valt_load_address_sec_norml="0xUNSET"
6204 valt_load_address_sec_inner="0xUNSET"
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6206$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6207 ;;
6208 mips32-linux)
6209 VGCONF_ARCH_PRI="mips32"
6210 VGCONF_PLATFORM_PRI_CAPS="MIPS32_LINUX"
6211 VGCONF_PLATFORM_SEC_CAPS=""
6212 valt_load_address_pri_norml="0x38000000"
6213 valt_load_address_pri_inner="0x28000000"
6214 valt_load_address_sec_norml="0xUNSET"
6215 valt_load_address_sec_inner="0xUNSET"
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6217$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6218 ;;
6219 mips64-linux)
6220 VGCONF_ARCH_PRI="mips64"
6221 VGCONF_PLATFORM_PRI_CAPS="MIPS64_LINUX"
6222 VGCONF_PLATFORM_SEC_CAPS=""
6223 valt_load_address_pri_norml="0x38000000"
6224 valt_load_address_pri_inner="0x28000000"
6225 valt_load_address_sec_norml="0xUNSET"
6226 valt_load_address_sec_inner="0xUNSET"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6228$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6229 ;;
6230 tilegx-linux)
6231 VGCONF_ARCH_PRI="tilegx"
6232 VGCONF_ARCH_SEC=""
6233 VGCONF_PLATFORM_PRI_CAPS="TILEGX_LINUX"
6234 VGCONF_PLATFORM_SEC_CAPS=""
6235 valt_load_address_pri_norml="0x38000000"
6236 valt_load_address_pri_inner="0x28000000"
6237 valt_load_address_sec_norml="0xUNSET"
6238 valt_load_address_sec_inner="0xUNSET"
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6240$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6241 ;;
6242 x86-solaris)
6243 VGCONF_ARCH_PRI="x86"
6244 VGCONF_ARCH_SEC=""
6245 VGCONF_PLATFORM_PRI_CAPS="X86_SOLARIS"
6246 VGCONF_PLATFORM_SEC_CAPS=""
6247 valt_load_address_pri_norml="0x38000000"
6248 valt_load_address_pri_inner="0x28000000"
6249 valt_load_address_sec_norml="0xUNSET"
6250 valt_load_address_sec_inner="0xUNSET"
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6252$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6253 ;;
6254 amd64-solaris)
6255 valt_load_address_sec_norml="0xUNSET"
6256 valt_load_address_sec_inner="0xUNSET"
6257 if test x$vg_cv_only64bit = xyes; then
6258 VGCONF_ARCH_PRI="amd64"
6259 VGCONF_ARCH_SEC=""
6260 VGCONF_PLATFORM_PRI_CAPS="AMD64_SOLARIS"
6261 VGCONF_PLATFORM_SEC_CAPS=""
6262 valt_load_address_pri_norml="0x38000000"
6263 valt_load_address_pri_inner="0x28000000"
6264 elif test x$vg_cv_only32bit = xyes; then
6265 VGCONF_ARCH_PRI="x86"
6266 VGCONF_ARCH_SEC=""
6267 VGCONF_PLATFORM_PRI_CAPS="X86_SOLARIS"
6268 VGCONF_PLATFORM_SEC_CAPS=""
6269 valt_load_address_pri_norml="0x38000000"
6270 valt_load_address_pri_inner="0x28000000"
6271 else
6272 VGCONF_ARCH_PRI="amd64"
6273 VGCONF_ARCH_SEC="x86"
6274 VGCONF_PLATFORM_PRI_CAPS="AMD64_SOLARIS"
6275 VGCONF_PLATFORM_SEC_CAPS="X86_SOLARIS"
6276 valt_load_address_pri_norml="0x38000000"
6277 valt_load_address_pri_inner="0x28000000"
6278 valt_load_address_sec_norml="0x38000000"
6279 valt_load_address_sec_inner="0x28000000"
6280 fi
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6282$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6283 ;;
6284 *)
6285 VGCONF_ARCH_PRI="unknown"
6286 VGCONF_ARCH_SEC="unknown"
6287 VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
6288 VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
6289 valt_load_address_pri_norml="0xUNSET"
6290 valt_load_address_pri_inner="0xUNSET"
6291 valt_load_address_sec_norml="0xUNSET"
6292 valt_load_address_sec_inner="0xUNSET"
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
6294$as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6295 as_fn_error $? "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
6296 ;;
6297esac
6298
6299#----------------------------------------------------------------------------
6300
6301# Set up VGCONF_ARCHS_INCLUDE_<arch>. Either one or two of these become
6302# defined.
6303 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
6304 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
6305 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
6306 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN \
6307 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \
6308 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_SOLARIS ; then
6309 VGCONF_ARCHS_INCLUDE_X86_TRUE=
6310 VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
6311else
6312 VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
6313 VGCONF_ARCHS_INCLUDE_X86_FALSE=
6314fi
6315
6316 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
6317 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN \
6318 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS ; then
6319 VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
6320 VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
6321else
6322 VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
6323 VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
6324fi
6325
6326 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
6327 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
6328 VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
6329 VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
6330else
6331 VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
6332 VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
6333fi
6334
6335 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64BE_LINUX \
6336 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64LE_LINUX ; then
6337 VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
6338 VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
6339else
6340 VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
6341 VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
6342fi
6343
6344 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
6345 -o x$VGCONF_PLATFORM_SEC_CAPS = xARM_LINUX ; then
6346 VGCONF_ARCHS_INCLUDE_ARM_TRUE=
6347 VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
6348else
6349 VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
6350 VGCONF_ARCHS_INCLUDE_ARM_FALSE=
6351fi
6352
6353 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX ; then
6354 VGCONF_ARCHS_INCLUDE_ARM64_TRUE=
6355 VGCONF_ARCHS_INCLUDE_ARM64_FALSE='#'
6356else
6357 VGCONF_ARCHS_INCLUDE_ARM64_TRUE='#'
6358 VGCONF_ARCHS_INCLUDE_ARM64_FALSE=
6359fi
6360
6361 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
6362 VGCONF_ARCHS_INCLUDE_S390X_TRUE=
6363 VGCONF_ARCHS_INCLUDE_S390X_FALSE='#'
6364else
6365 VGCONF_ARCHS_INCLUDE_S390X_TRUE='#'
6366 VGCONF_ARCHS_INCLUDE_S390X_FALSE=
6367fi
6368
6369 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX ; then
6370 VGCONF_ARCHS_INCLUDE_MIPS32_TRUE=
6371 VGCONF_ARCHS_INCLUDE_MIPS32_FALSE='#'
6372else
6373 VGCONF_ARCHS_INCLUDE_MIPS32_TRUE='#'
6374 VGCONF_ARCHS_INCLUDE_MIPS32_FALSE=
6375fi
6376
6377 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX ; then
6378 VGCONF_ARCHS_INCLUDE_MIPS64_TRUE=
6379 VGCONF_ARCHS_INCLUDE_MIPS64_FALSE='#'
6380else
6381 VGCONF_ARCHS_INCLUDE_MIPS64_TRUE='#'
6382 VGCONF_ARCHS_INCLUDE_MIPS64_FALSE=
6383fi
6384
6385 if test x$VGCONF_PLATFORM_PRI_CAPS = xTILEGX_LINUX ; then
6386 VGCONF_ARCHS_INCLUDE_TILEGX_TRUE=
6387 VGCONF_ARCHS_INCLUDE_TILEGX_FALSE='#'
6388else
6389 VGCONF_ARCHS_INCLUDE_TILEGX_TRUE='#'
6390 VGCONF_ARCHS_INCLUDE_TILEGX_FALSE=
6391fi
6392
6393
6394# Set up VGCONF_PLATFORMS_INCLUDE_<platform>. Either one or two of these
6395# become defined.
6396 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
6397 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
6398 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
6399 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
6400else
6401 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
6402 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
6403fi
6404
6405 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
6406 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
6407 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
6408else
6409 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
6410 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
6411fi
6412
6413 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
6414 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
6415 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
6416 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
6417else
6418 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
6419 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
6420fi
6421
6422 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64BE_LINUX; then
6423 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE=
6424 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE='#'
6425else
6426 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE='#'
6427 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE=
6428fi
6429
6430 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64LE_LINUX; then
6431 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE=
6432 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE='#'
6433else
6434 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE='#'
6435 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE=
6436fi
6437
6438 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
6439 -o x$VGCONF_PLATFORM_SEC_CAPS = xARM_LINUX; then
6440 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
6441 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
6442else
6443 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
6444 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
6445fi
6446
6447 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX; then
6448 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE=
6449 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE='#'
6450else
6451 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE='#'
6452 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE=
6453fi
6454
6455 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \
6456 -o x$VGCONF_PLATFORM_SEC_CAPS = xS390X_LINUX; then
6457 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE=
6458 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE='#'
6459else
6460 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE='#'
6461 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE=
6462fi
6463
6464 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX; then
6465 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE=
6466 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE='#'
6467else
6468 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE='#'
6469 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE=
6470fi
6471
6472 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX; then
6473 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE=
6474 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE='#'
6475else
6476 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE='#'
6477 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE=
6478fi
6479
6480 if test x$VGCONF_PLATFORM_PRI_CAPS = xTILEGX_LINUX; then
6481 VGCONF_PLATFORMS_INCLUDE_TILEGX_LINUX_TRUE=
6482 VGCONF_PLATFORMS_INCLUDE_TILEGX_LINUX_FALSE='#'
6483else
6484 VGCONF_PLATFORMS_INCLUDE_TILEGX_LINUX_TRUE='#'
6485 VGCONF_PLATFORMS_INCLUDE_TILEGX_LINUX_FALSE=
6486fi
6487
6488 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
6489 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
6490 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
6491 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
6492else
6493 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
6494 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
6495fi
6496
6497 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
6498 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
6499 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
6500else
6501 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
6502 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
6503fi
6504
6505 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \
6506 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_SOLARIS; then
6507 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE=
6508 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE='#'
6509else
6510 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE='#'
6511 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE=
6512fi
6513
6514 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS; then
6515 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE=
6516 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE='#'
6517else
6518 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE='#'
6519 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE=
6520fi
6521
6522
6523
6524# Similarly, set up VGCONF_OS_IS_<os>. Exactly one of these becomes defined.
6525# Relies on the assumption that the primary and secondary targets are
6526# for the same OS, so therefore only necessary to test the primary.
6527 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
6528 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
6529 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
6530 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64BE_LINUX \
6531 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64LE_LINUX \
6532 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
6533 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX \
6534 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \
6535 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \
6536 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX \
6537 -o x$VGCONF_PLATFORM_PRI_CAPS = xTILEGX_LINUX; then
6538 VGCONF_OS_IS_LINUX_TRUE=
6539 VGCONF_OS_IS_LINUX_FALSE='#'
6540else
6541 VGCONF_OS_IS_LINUX_TRUE='#'
6542 VGCONF_OS_IS_LINUX_FALSE=
6543fi
6544
6545 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
6546 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
6547 VGCONF_OS_IS_DARWIN_TRUE=
6548 VGCONF_OS_IS_DARWIN_FALSE='#'
6549else
6550 VGCONF_OS_IS_DARWIN_TRUE='#'
6551 VGCONF_OS_IS_DARWIN_FALSE=
6552fi
6553
6554 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \
6555 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS; then
6556 VGCONF_OS_IS_SOLARIS_TRUE=
6557 VGCONF_OS_IS_SOLARIS_FALSE='#'
6558else
6559 VGCONF_OS_IS_SOLARIS_TRUE='#'
6560 VGCONF_OS_IS_SOLARIS_FALSE=
6561fi
6562
6563
6564
6565# Sometimes, in the Makefile.am files, it's useful to know whether or not
6566# there is a secondary target.
6567 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
6568 VGCONF_HAVE_PLATFORM_SEC_TRUE=
6569 VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
6570else
6571 VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
6572 VGCONF_HAVE_PLATFORM_SEC_FALSE=
6573fi
6574
6575
6576
6577
6578#----------------------------------------------------------------------------
6579# Inner Valgrind?
6580#----------------------------------------------------------------------------
6581
6582# Check if this should be built as an inner Valgrind, to be run within
6583# another Valgrind. Choose the load address accordingly.
6584
6585
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
6587$as_echo_n "checking for use as an inner Valgrind... " >&6; }
6588if ${vg_cv_inner+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590else
6591 # Check whether --enable-inner was given.
6592if test "${enable_inner+set}" = set; then :
6593 enableval=$enable_inner; vg_cv_inner=$enableval
6594else
6595 vg_cv_inner=no
6596fi
6597
6598fi
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
6600$as_echo "$vg_cv_inner" >&6; }
6601if test "$vg_cv_inner" = yes; then
6602
6603$as_echo "#define ENABLE_INNER 1" >>confdefs.h
6604
6605 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_inner
6606 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_inner
6607else
6608 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml
6609 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml
6610fi
6611
6612#----------------------------------------------------------------------------
6613# Undefined behaviour sanitiser
6614#----------------------------------------------------------------------------
6615# Check whether we should build with the undefined beahviour sanitiser.
6616
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for using the undefined behaviour sanitiser" >&5
6618$as_echo_n "checking for using the undefined behaviour sanitiser... " >&6; }
6619if ${vg_cv_ubsan+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621else
6622 # Check whether --enable-ubsan was given.
6623if test "${enable_ubsan+set}" = set; then :
6624 enableval=$enable_ubsan; vg_cv_ubsan=$enableval
6625else
6626 vg_cv_ubsan=no
6627fi
6628
6629fi
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_ubsan" >&5
6631$as_echo "$vg_cv_ubsan" >&6; }
6632
6633#----------------------------------------------------------------------------
6634# Extra fine-tuning of installation directories
6635#----------------------------------------------------------------------------
6636
6637# Check whether --with-tmpdir was given.
6638if test "${with_tmpdir+set}" = set; then :
6639 withval=$with_tmpdir; tmpdir="$withval"
6640else
6641 tmpdir="/tmp"
6642fi
6643
6644
6645cat >>confdefs.h <<_ACEOF
6646#define VG_TMPDIR "$tmpdir"
6647_ACEOF
6648
6649VG_TMPDIR=$tmpdir
6650
6651
6652
6653#----------------------------------------------------------------------------
6654# Libc and suppressions
6655#----------------------------------------------------------------------------
6656# This variable will collect the suppression files to be used.
6657
6658
6659
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6661$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6662if ${ac_cv_path_GREP+:} false; then :
6663 $as_echo_n "(cached) " >&6
6664else
6665 if test -z "$GREP"; then
6666 ac_path_GREP_found=false
6667 # Loop through the user's path and test for each of PROGNAME-LIST
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6670do
6671 IFS=$as_save_IFS
6672 test -z "$as_dir" && as_dir=.
6673 for ac_prog in grep ggrep; do
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6676 as_fn_executable_p "$ac_path_GREP" || continue
6677# Check for GNU ac_path_GREP and select it if it is found.
6678 # Check for GNU $ac_path_GREP
6679case `"$ac_path_GREP" --version 2>&1` in
6680*GNU*)
6681 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6682*)
6683 ac_count=0
6684 $as_echo_n 0123456789 >"conftest.in"
6685 while :
6686 do
6687 cat "conftest.in" "conftest.in" >"conftest.tmp"
6688 mv "conftest.tmp" "conftest.in"
6689 cp "conftest.in" "conftest.nl"
6690 $as_echo 'GREP' >> "conftest.nl"
6691 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6693 as_fn_arith $ac_count + 1 && ac_count=$as_val
6694 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6695 # Best one so far, save it but keep looking for a better one
6696 ac_cv_path_GREP="$ac_path_GREP"
6697 ac_path_GREP_max=$ac_count
6698 fi
6699 # 10*(2^10) chars as input seems more than enough
6700 test $ac_count -gt 10 && break
6701 done
6702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6703esac
6704
6705 $ac_path_GREP_found && break 3
6706 done
6707 done
6708 done
6709IFS=$as_save_IFS
6710 if test -z "$ac_cv_path_GREP"; then
6711 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6712 fi
6713else
6714 ac_cv_path_GREP=$GREP
6715fi
6716
6717fi
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6719$as_echo "$ac_cv_path_GREP" >&6; }
6720 GREP="$ac_cv_path_GREP"
6721
6722
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6724$as_echo_n "checking for egrep... " >&6; }
6725if ${ac_cv_path_EGREP+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727else
6728 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6729 then ac_cv_path_EGREP="$GREP -E"
6730 else
6731 if test -z "$EGREP"; then
6732 ac_path_EGREP_found=false
6733 # Loop through the user's path and test for each of PROGNAME-LIST
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6736do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_prog in egrep; do
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6742 as_fn_executable_p "$ac_path_EGREP" || continue
6743# Check for GNU ac_path_EGREP and select it if it is found.
6744 # Check for GNU $ac_path_EGREP
6745case `"$ac_path_EGREP" --version 2>&1` in
6746*GNU*)
6747 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6748*)
6749 ac_count=0
6750 $as_echo_n 0123456789 >"conftest.in"
6751 while :
6752 do
6753 cat "conftest.in" "conftest.in" >"conftest.tmp"
6754 mv "conftest.tmp" "conftest.in"
6755 cp "conftest.in" "conftest.nl"
6756 $as_echo 'EGREP' >> "conftest.nl"
6757 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6759 as_fn_arith $ac_count + 1 && ac_count=$as_val
6760 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6761 # Best one so far, save it but keep looking for a better one
6762 ac_cv_path_EGREP="$ac_path_EGREP"
6763 ac_path_EGREP_max=$ac_count
6764 fi
6765 # 10*(2^10) chars as input seems more than enough
6766 test $ac_count -gt 10 && break
6767 done
6768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6769esac
6770
6771 $ac_path_EGREP_found && break 3
6772 done
6773 done
6774 done
6775IFS=$as_save_IFS
6776 if test -z "$ac_cv_path_EGREP"; then
6777 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6778 fi
6779else
6780 ac_cv_path_EGREP=$EGREP
6781fi
6782
6783 fi
6784fi
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6786$as_echo "$ac_cv_path_EGREP" >&6; }
6787 EGREP="$ac_cv_path_EGREP"
6788
6789
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6791$as_echo_n "checking for ANSI C header files... " >&6; }
6792if ${ac_cv_header_stdc+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794else
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796/* end confdefs.h. */
6797#include <stdlib.h>
6798#include <stdarg.h>
6799#include <string.h>
6800#include <float.h>
6801
6802int
6803main ()
6804{
6805
6806 ;
6807 return 0;
6808}
6809_ACEOF
6810if ac_fn_c_try_compile "$LINENO"; then :
6811 ac_cv_header_stdc=yes
6812else
6813 ac_cv_header_stdc=no
6814fi
6815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6816
6817if test $ac_cv_header_stdc = yes; then
6818 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820/* end confdefs.h. */
6821#include <string.h>
6822
6823_ACEOF
6824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6825 $EGREP "memchr" >/dev/null 2>&1; then :
6826
6827else
6828 ac_cv_header_stdc=no
6829fi
6830rm -f conftest*
6831
6832fi
6833
6834if test $ac_cv_header_stdc = yes; then
6835 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837/* end confdefs.h. */
6838#include <stdlib.h>
6839
6840_ACEOF
6841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6842 $EGREP "free" >/dev/null 2>&1; then :
6843
6844else
6845 ac_cv_header_stdc=no
6846fi
6847rm -f conftest*
6848
6849fi
6850
6851if test $ac_cv_header_stdc = yes; then
6852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6853 if test "$cross_compiling" = yes; then :
6854 :
6855else
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857/* end confdefs.h. */
6858#include <ctype.h>
6859#include <stdlib.h>
6860#if ((' ' & 0x0FF) == 0x020)
6861# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6862# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6863#else
6864# define ISLOWER(c) \
6865 (('a' <= (c) && (c) <= 'i') \
6866 || ('j' <= (c) && (c) <= 'r') \
6867 || ('s' <= (c) && (c) <= 'z'))
6868# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6869#endif
6870
6871#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6872int
6873main ()
6874{
6875 int i;
6876 for (i = 0; i < 256; i++)
6877 if (XOR (islower (i), ISLOWER (i))
6878 || toupper (i) != TOUPPER (i))
6879 return 2;
6880 return 0;
6881}
6882_ACEOF
6883if ac_fn_c_try_run "$LINENO"; then :
6884
6885else
6886 ac_cv_header_stdc=no
6887fi
6888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6889 conftest.$ac_objext conftest.beam conftest.$ac_ext
6890fi
6891
6892fi
6893fi
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6895$as_echo "$ac_cv_header_stdc" >&6; }
6896if test $ac_cv_header_stdc = yes; then
6897
6898$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6899
6900fi
6901
6902# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6903for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6904 inttypes.h stdint.h unistd.h
6905do :
6906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6907ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6908"
6909if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6910 cat >>confdefs.h <<_ACEOF
6911#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6912_ACEOF
6913
6914fi
6915
6916done
6917
6918
6919ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
6920if test "x$ac_cv_header_features_h" = xyes; then :
6921
6922fi
6923
6924
6925
6926if test x$ac_cv_header_features_h = xyes; then
6927 rm -f conftest.$ac_ext
6928 cat <<_ACEOF >conftest.$ac_ext
6929#include <features.h>
6930#if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
6931glibc version is: __GLIBC__ __GLIBC_MINOR__
6932#endif
6933_ACEOF
6934 GLIBC_VERSION="`$CPP -P conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
6935fi
6936
6937# not really a version check
6938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939/* end confdefs.h. */
6940
6941#include <sys/cdefs.h>
6942#if defined(__DARWIN_VERS_1050)
6943 DARWIN_LIBC
6944#endif
6945
6946_ACEOF
6947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6948 $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
6949 GLIBC_VERSION="darwin"
6950fi
6951rm -f conftest*
6952
6953
6954# not really a version check
6955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956/* end confdefs.h. */
6957
6958#if defined(__ANDROID__)
6959 BIONIC_LIBC
6960#endif
6961
6962_ACEOF
6963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6964 $EGREP "BIONIC_LIBC" >/dev/null 2>&1; then :
6965 GLIBC_VERSION="bionic"
6966fi
6967rm -f conftest*
6968
6969
6970# there is only one version of libc on Solaris
6971if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \
6972 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS; then
6973 GLIBC_VERSION="solaris"
6974fi
6975
6976
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the glibc version" >&5
6978$as_echo_n "checking the glibc version... " >&6; }
6979
6980case "${GLIBC_VERSION}" in
6981 2.2)
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
6983$as_echo "${GLIBC_VERSION} family" >&6; }
6984 DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
6985 DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
6986 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6987 ;;
6988 2.[3-6])
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
6990$as_echo "${GLIBC_VERSION} family" >&6; }
6991 DEFAULT_SUPP="glibc-${GLIBC_VERSION}.supp ${DEFAULT_SUPP}"
6992 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6993 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6994 ;;
6995 2.[7-9])
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
6997$as_echo "${GLIBC_VERSION} family" >&6; }
6998 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6999 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
7000 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
7001 ;;
7002 2.10|2.11)
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
7004$as_echo "${GLIBC_VERSION} family" >&6; }
7005
7006$as_echo "#define GLIBC_MANDATORY_STRLEN_REDIRECT 1" >>confdefs.h
7007
7008 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
7009 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
7010 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
7011 ;;
7012 2.*)
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
7014$as_echo "${GLIBC_VERSION} family" >&6; }
7015
7016$as_echo "#define GLIBC_MANDATORY_STRLEN_REDIRECT 1" >>confdefs.h
7017
7018
7019$as_echo "#define GLIBC_MANDATORY_INDEX_AND_STRLEN_REDIRECT 1" >>confdefs.h
7020
7021 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
7022 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
7023 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
7024 ;;
7025 darwin)
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
7027$as_echo "Darwin" >&6; }
7028
7029$as_echo "#define DARWIN_LIBC 1" >>confdefs.h
7030
7031 # DEFAULT_SUPP set by kernel version check above.
7032 ;;
7033 bionic)
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Bionic" >&5
7035$as_echo "Bionic" >&6; }
7036
7037$as_echo "#define BIONIC_LIBC 1" >>confdefs.h
7038
7039 DEFAULT_SUPP="bionic.supp ${DEFAULT_SUPP}"
7040 ;;
7041 solaris)
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
7043$as_echo "Solaris" >&6; }
7044 # DEFAULT_SUPP set in host_os switch-case above.
7045 # No other suppression file is used.
7046 ;;
7047 2.0|2.1|*)
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
7049$as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
7050 as_fn_error $? "Valgrind requires glibc version 2.2 or later," "$LINENO" 5
7051 as_fn_error $? "Darwin libc, Bionic libc or Solaris libc" "$LINENO" 5
7052 ;;
7053esac
7054
7055
7056
7057
7058if test "$VGCONF_OS" != "solaris"; then
7059 # Add default suppressions for the X client libraries. Make no
7060 # attempt to detect whether such libraries are installed on the
7061 # build machine (or even if any X facilities are present); just
7062 # add the suppressions antidisirregardless.
7063 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
7064 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
7065
7066 # Add glibc and X11 suppressions for exp-sgcheck
7067 DEFAULT_SUPP="exp-sgcheck.supp ${DEFAULT_SUPP}"
7068fi
7069
7070
7071#----------------------------------------------------------------------------
7072# Platform variants?
7073#----------------------------------------------------------------------------
7074
7075# Normally the PLAT = (ARCH, OS) characterisation of the platform is enough.
7076# But there are times where we need a bit more control. The motivating
7077# and currently only case is Android: this is almost identical to
7078# {x86,arm,mips}-linux, but not quite. So this introduces the concept of
7079# platform variant tags, which get passed in the compile as
7080# -DVGPV_<arch>_<os>_<variant> along with the main -DVGP_<arch>_<os> definition.
7081#
7082# In almost all cases, the <variant> bit is "vanilla". But for Android
7083# it is "android" instead.
7084#
7085# Consequently (eg), plain arm-linux would build with
7086#
7087# -DVGP_arm_linux -DVGPV_arm_linux_vanilla
7088#
7089# whilst an Android build would have
7090#
7091# -DVGP_arm_linux -DVGPV_arm_linux_android
7092#
7093# Same for x86. The setup of the platform variant is pushed relatively far
7094# down this file in order that we can inspect any of the variables set above.
7095
7096# In the normal case ..
7097VGCONF_PLATVARIANT="vanilla"
7098
7099# Android ?
7100if test "$GLIBC_VERSION" = "bionic";
7101then
7102 VGCONF_PLATVARIANT="android"
7103fi
7104
7105
7106
7107
7108# FIXME: do we also want to define automake variables
7109# VGCONF_PLATVARIANT_IS_<WHATEVER>, where WHATEVER is (currently)
7110# VANILLA or ANDROID ? This would be in the style of VGCONF_ARCHS_INCLUDE,
7111# VGCONF_PLATFORMS_INCLUDE and VGCONF_OS_IS above? Could easily enough
7112# do that. Problem is that we can't do and-ing in Makefile.am's, but
7113# that's what we'd need to do to use this, since what we'd want to write
7114# is something like
7115#
7116# VGCONF_PLATFORMS_INCLUDE_ARM_LINUX && VGCONF_PLATVARIANT_IS_ANDROID
7117#
7118# Hmm. Can't think of a nice clean solution to this.
7119
7120 if test x$VGCONF_PLATVARIANT = xvanilla; then
7121 VGCONF_PLATVARIANT_IS_VANILLA_TRUE=
7122 VGCONF_PLATVARIANT_IS_VANILLA_FALSE='#'
7123else
7124 VGCONF_PLATVARIANT_IS_VANILLA_TRUE='#'
7125 VGCONF_PLATVARIANT_IS_VANILLA_FALSE=
7126fi
7127
7128 if test x$VGCONF_PLATVARIANT = xandroid; then
7129 VGCONF_PLATVARIANT_IS_ANDROID_TRUE=
7130 VGCONF_PLATVARIANT_IS_ANDROID_FALSE='#'
7131else
7132 VGCONF_PLATVARIANT_IS_ANDROID_TRUE='#'
7133 VGCONF_PLATVARIANT_IS_ANDROID_FALSE=
7134fi
7135
7136
7137
7138#----------------------------------------------------------------------------
7139# Checking for various library functions and other definitions
7140#----------------------------------------------------------------------------
7141
7142# Check for AT_FDCWD
7143
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AT_FDCWD" >&5
7145$as_echo_n "checking for AT_FDCWD... " >&6; }
7146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147/* end confdefs.h. */
7148
7149#define _GNU_SOURCE
7150#include <fcntl.h>
7151#include <unistd.h>
7152
7153int
7154main ()
7155{
7156
7157 int a = AT_FDCWD;
7158
7159 ;
7160 return 0;
7161}
7162_ACEOF
7163if ac_fn_c_try_compile "$LINENO"; then :
7164
7165ac_have_at_fdcwd=yes
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7167$as_echo "yes" >&6; }
7168
7169else
7170
7171ac_have_at_fdcwd=no
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173$as_echo "no" >&6; }
7174
7175fi
7176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177
7178 if test x$ac_have_at_fdcwd = xyes; then
7179 HAVE_AT_FDCWD_TRUE=
7180 HAVE_AT_FDCWD_FALSE='#'
7181else
7182 HAVE_AT_FDCWD_TRUE='#'
7183 HAVE_AT_FDCWD_FALSE=
7184fi
7185
7186
7187# Check for stpncpy function definition in string.h
7188# This explicitly checks with _GNU_SOURCE defined since that is also
7189# used in the test case (some systems might define it without anyway
7190# since stpncpy is part of The Open Group Base Specifications Issue 7
7191# IEEE Std 1003.1-2008.
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stpncpy" >&5
7193$as_echo_n "checking for stpncpy... " >&6; }
7194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195/* end confdefs.h. */
7196
7197#define _GNU_SOURCE
7198#include <string.h>
7199
7200int
7201main ()
7202{
7203
7204 char *d;
7205 char *s;
7206 size_t n = 0;
7207 char *r = stpncpy(d, s, n);
7208
7209 ;
7210 return 0;
7211}
7212_ACEOF
7213if ac_fn_c_try_link "$LINENO"; then :
7214
7215ac_have_gnu_stpncpy=yes
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7217$as_echo "yes" >&6; }
7218
7219else
7220
7221ac_have_gnu_stpncpy=no
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223$as_echo "no" >&6; }
7224
7225fi
7226rm -f core conftest.err conftest.$ac_objext \
7227 conftest$ac_exeext conftest.$ac_ext
7228
7229 if test x$ac_have_gnu_stpncpy = xyes; then
7230 HAVE_GNU_STPNCPY_TRUE=
7231 HAVE_GNU_STPNCPY_FALSE='#'
7232else
7233 HAVE_GNU_STPNCPY_TRUE='#'
7234 HAVE_GNU_STPNCPY_FALSE=
7235fi
7236
7237
7238# Check for PTRACE_GETREGS
7239
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
7241$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
7242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243/* end confdefs.h. */
7244
7245#include <stdlib.h>
7246#include <stddef.h>
7247#include <sys/ptrace.h>
7248#include <sys/user.h>
7249
7250int
7251main ()
7252{
7253
7254 void *p;
7255 long res = ptrace (PTRACE_GETREGS, 0, p, p);
7256
7257 ;
7258 return 0;
7259}
7260_ACEOF
7261if ac_fn_c_try_compile "$LINENO"; then :
7262
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7264$as_echo "yes" >&6; }
7265
7266$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
7267
7268
7269else
7270
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272$as_echo "no" >&6; }
7273
7274fi
7275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276
7277
7278# Check for CLOCK_MONOTONIC
7279
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
7281$as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
7282
7283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284/* end confdefs.h. */
7285
7286#include <time.h>
7287
7288int
7289main ()
7290{
7291
7292 struct timespec t;
7293 clock_gettime(CLOCK_MONOTONIC, &t);
7294 return 0;
7295
7296 ;
7297 return 0;
7298}
7299_ACEOF
7300if ac_fn_c_try_compile "$LINENO"; then :
7301
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7303$as_echo "yes" >&6; }
7304
7305$as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
7306
7307
7308else
7309
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311$as_echo "no" >&6; }
7312
7313fi
7314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315
7316
7317# Check for ELF32/64_CHDR
7318
7319ac_fn_c_check_type "$LINENO" "Elf32_Chdr" "ac_cv_type_Elf32_Chdr" "#include <elf.h>
7320"
7321if test "x$ac_cv_type_Elf32_Chdr" = xyes; then :
7322
7323cat >>confdefs.h <<_ACEOF
7324#define HAVE_ELF32_CHDR 1
7325_ACEOF
7326
7327
7328fi
7329ac_fn_c_check_type "$LINENO" "Elf64_Chdr" "ac_cv_type_Elf64_Chdr" "#include <elf.h>
7330"
7331if test "x$ac_cv_type_Elf64_Chdr" = xyes; then :
7332
7333cat >>confdefs.h <<_ACEOF
7334#define HAVE_ELF64_CHDR 1
7335_ACEOF
7336
7337
7338fi
7339
7340
7341
7342# Check for PTHREAD_RWLOCK_T
7343
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
7345$as_echo_n "checking for pthread_rwlock_t... " >&6; }
7346
7347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348/* end confdefs.h. */
7349
7350#define _GNU_SOURCE
7351#include <pthread.h>
7352
7353int
7354main ()
7355{
7356
7357 pthread_rwlock_t rwl;
7358
7359 ;
7360 return 0;
7361}
7362_ACEOF
7363if ac_fn_c_try_compile "$LINENO"; then :
7364
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7366$as_echo "yes" >&6; }
7367
7368$as_echo "#define HAVE_PTHREAD_RWLOCK_T 1" >>confdefs.h
7369
7370
7371else
7372
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374$as_echo "no" >&6; }
7375
7376fi
7377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378
7379
7380# Check for PTHREAD_MUTEX_ADAPTIVE_NP
7381
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
7383$as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
7384
7385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386/* end confdefs.h. */
7387
7388#define _GNU_SOURCE
7389#include <pthread.h>
7390
7391int
7392main ()
7393{
7394
7395 return (PTHREAD_MUTEX_ADAPTIVE_NP);
7396
7397 ;
7398 return 0;
7399}
7400_ACEOF
7401if ac_fn_c_try_compile "$LINENO"; then :
7402
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7404$as_echo "yes" >&6; }
7405
7406$as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
7407
7408
7409else
7410
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412$as_echo "no" >&6; }
7413
7414fi
7415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7416
7417
7418# Check for PTHREAD_MUTEX_ERRORCHECK_NP
7419
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
7421$as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
7422
7423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424/* end confdefs.h. */
7425
7426#define _GNU_SOURCE
7427#include <pthread.h>
7428
7429int
7430main ()
7431{
7432
7433 return (PTHREAD_MUTEX_ERRORCHECK_NP);
7434
7435 ;
7436 return 0;
7437}
7438_ACEOF
7439if ac_fn_c_try_compile "$LINENO"; then :
7440
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7442$as_echo "yes" >&6; }
7443
7444$as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
7445
7446
7447else
7448
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
7451
7452fi
7453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454
7455
7456# Check for PTHREAD_MUTEX_RECURSIVE_NP
7457
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
7459$as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
7460
7461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462/* end confdefs.h. */
7463
7464#define _GNU_SOURCE
7465#include <pthread.h>
7466
7467int
7468main ()
7469{
7470
7471 return (PTHREAD_MUTEX_RECURSIVE_NP);
7472
7473 ;
7474 return 0;
7475}
7476_ACEOF
7477if ac_fn_c_try_compile "$LINENO"; then :
7478
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7480$as_echo "yes" >&6; }
7481
7482$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
7483
7484
7485else
7486
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488$as_echo "no" >&6; }
7489
7490fi
7491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492
7493
7494# Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
7495
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
7497$as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
7498
7499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500/* end confdefs.h. */
7501
7502#define _GNU_SOURCE
7503#include <pthread.h>
7504
7505int
7506main ()
7507{
7508
7509 pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
7510 return 0;
7511
7512 ;
7513 return 0;
7514}
7515_ACEOF
7516if ac_fn_c_try_compile "$LINENO"; then :
7517
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7519$as_echo "yes" >&6; }
7520
7521$as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
7522
7523
7524else
7525
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527$as_echo "no" >&6; }
7528
7529fi
7530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531
7532
7533# Check whether pthread_mutex_t has a member called __m_kind.
7534
7535ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__m_kind" "ac_cv_member_pthread_mutex_t___m_kind" "#include <pthread.h>
7536"
7537if test "x$ac_cv_member_pthread_mutex_t___m_kind" = xyes; then :
7538
7539$as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
7540
7541
7542fi
7543
7544
7545
7546# Check whether pthread_mutex_t has a member called __data.__kind.
7547
7548ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__data.__kind" "ac_cv_member_pthread_mutex_t___data___kind" "#include <pthread.h>
7549"
7550if test "x$ac_cv_member_pthread_mutex_t___data___kind" = xyes; then :
7551
7552$as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
7553
7554
7555fi
7556
7557
7558# Convenience function. Set flags based on the existing HWCAP entries.
7559# The AT_HWCAP entries are generated by glibc, and are based on
7560# functions supported by the hardware/system/libc.
7561# Subsequent support for whether the capability will actually be utilized
7562# will also be checked against the compiler capabilities.
7563# called as
7564# AC_HWCAP_CONTAINS_FLAG[hwcap_string_to_match],[VARIABLE_TO_SET]
7565
7566
7567# gather hardware capabilities. (hardware/kernel/libc)
7568
7569 AUXV_CHECK_FOR=altivec
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7571$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7572 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7573 then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7575$as_echo "yes" >&6; }
7576 HWCAP_HAS_ALTIVEC=yes
7577
7578 else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580$as_echo "no" >&6; }
7581
7582 fi
7583
7584
7585 AUXV_CHECK_FOR=vsx
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7587$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7588 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7589 then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7591$as_echo "yes" >&6; }
7592 HWCAP_HAS_VSX=yes
7593
7594 else
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596$as_echo "no" >&6; }
7597
7598 fi
7599
7600
7601 AUXV_CHECK_FOR=dfp
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7603$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7604 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7605 then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7607$as_echo "yes" >&6; }
7608 HWCAP_HAS_DFP=yes
7609
7610 else
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612$as_echo "no" >&6; }
7613
7614 fi
7615
7616
7617 AUXV_CHECK_FOR=arch_2_05
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7619$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7620 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7621 then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7623$as_echo "yes" >&6; }
7624 HWCAP_HAS_ISA_2_05=yes
7625
7626 else
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628$as_echo "no" >&6; }
7629
7630 fi
7631
7632
7633 AUXV_CHECK_FOR=arch_2_06
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7635$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7636 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7637 then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7639$as_echo "yes" >&6; }
7640 HWCAP_HAS_ISA_2_06=yes
7641
7642 else
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644$as_echo "no" >&6; }
7645
7646 fi
7647
7648
7649 AUXV_CHECK_FOR=arch_2_07
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7651$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7652 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7653 then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7655$as_echo "yes" >&6; }
7656 HWCAP_HAS_ISA_2_07=yes
7657
7658 else
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660$as_echo "no" >&6; }
7661
7662 fi
7663
7664
7665 AUXV_CHECK_FOR=arch_3_00
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7667$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7668 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7669 then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7671$as_echo "yes" >&6; }
7672 HWCAP_HAS_ISA_3_00=yes
7673
7674 else
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676$as_echo "no" >&6; }
7677
7678 fi
7679
7680
7681 AUXV_CHECK_FOR=htm
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7683$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7684 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7685 then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7687$as_echo "yes" >&6; }
7688 HWCAP_HAS_HTM=yes
7689
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692$as_echo "no" >&6; }
7693
7694 fi
7695
7696
7697# ISA Levels
7698 if test x$HWCAP_HAS_ISA_2_05 = xyes; then
7699 HAS_ISA_2_05_TRUE=
7700 HAS_ISA_2_05_FALSE='#'
7701else
7702 HAS_ISA_2_05_TRUE='#'
7703 HAS_ISA_2_05_FALSE=
7704fi
7705
7706 if test x$HWCAP_HAS_ISA_2_06 = xyes; then
7707 HAS_ISA_2_06_TRUE=
7708 HAS_ISA_2_06_FALSE='#'
7709else
7710 HAS_ISA_2_06_TRUE='#'
7711 HAS_ISA_2_06_FALSE=
7712fi
7713
7714# compiler support for isa 2.07 level instructions
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that assembler knows ISA 2.07 instructions " >&5
7716$as_echo_n "checking that assembler knows ISA 2.07 instructions ... " >&6; }
7717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718/* end confdefs.h. */
7719
7720
7721int
7722main ()
7723{
7724
7725 __asm__ __volatile__("mtvsrd 1,2 ");
7726
7727 ;
7728 return 0;
7729}
7730_ACEOF
7731if ac_fn_c_try_compile "$LINENO"; then :
7732
7733ac_asm_have_isa_2_07=yes
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7735$as_echo "yes" >&6; }
7736
7737else
7738
7739ac_asm_have_isa_2_07=no
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741$as_echo "no" >&6; }
7742
7743fi
7744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745 if test x$ac_asm_have_isa_2_07 = xyes \
7746 -a x$HWCAP_HAS_ISA_2_07 = xyes; then
7747 HAS_ISA_2_07_TRUE=
7748 HAS_ISA_2_07_FALSE='#'
7749else
7750 HAS_ISA_2_07_TRUE='#'
7751 HAS_ISA_2_07_FALSE=
7752fi
7753
7754
7755# altivec (vsx) support.
7756# does this compiler support -maltivec and does it have the include file
7757# <altivec.h> ?
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec support in the compiler " >&5
7759$as_echo_n "checking for Altivec support in the compiler ... " >&6; }
7760safe_CFLAGS=$CFLAGS
7761CFLAGS="-maltivec -Werror"
7762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763/* end confdefs.h. */
7764
7765#include <altivec.h>
7766
7767int
7768main ()
7769{
7770
7771 vector unsigned int v;
7772
7773 ;
7774 return 0;
7775}
7776_ACEOF
7777if ac_fn_c_try_compile "$LINENO"; then :
7778
7779ac_have_altivec=yes
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7781$as_echo "yes" >&6; }
7782
7783else
7784
7785ac_have_altivec=no
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787$as_echo "no" >&6; }
7788
7789fi
7790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791CFLAGS=$safe_CFLAGS
7792 if test x$ac_have_altivec = xyes \
7793 -a x$HWCAP_HAS_ALTIVEC = xyes; then
7794 HAS_ALTIVEC_TRUE=
7795 HAS_ALTIVEC_FALSE='#'
7796else
7797 HAS_ALTIVEC_TRUE='#'
7798 HAS_ALTIVEC_FALSE=
7799fi
7800
7801
7802# Check that both: the compiler supports -mvsx and that the assembler
7803# understands VSX instructions. If either of those doesn't work,
7804# conclude that we can't do VSX.
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VSX compiler flag support" >&5
7806$as_echo_n "checking for VSX compiler flag support... " >&6; }
7807safe_CFLAGS=$CFLAGS
7808CFLAGS="-mvsx -Werror"
7809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810/* end confdefs.h. */
7811
7812
7813int
7814main ()
7815{
7816
7817
7818 ;
7819 return 0;
7820}
7821_ACEOF
7822if ac_fn_c_try_compile "$LINENO"; then :
7823
7824ac_compiler_supports_vsx_flag=yes
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7826$as_echo "yes" >&6; }
7827
7828else
7829
7830ac_compiler_supports_vsx_flag=no
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832$as_echo "no" >&6; }
7833
7834fi
7835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836CFLAGS=$safe_CFLAGS
7837
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VSX support in the assembler " >&5
7839$as_echo_n "checking for VSX support in the assembler ... " >&6; }
7840safe_CFLAGS=$CFLAGS
7841CFLAGS="-mvsx -Werror"
7842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843/* end confdefs.h. */
7844
7845#include <altivec.h>
7846
7847int
7848main ()
7849{
7850
7851 vector unsigned int v;
7852 __asm__ __volatile__("xsmaddadp 32, 32, 33" ::: "memory","cc");
7853
7854 ;
7855 return 0;
7856}
7857_ACEOF
7858if ac_fn_c_try_compile "$LINENO"; then :
7859
7860ac_compiler_supports_vsx=yes
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7862$as_echo "yes" >&6; }
7863
7864else
7865
7866ac_compiler_supports_vsx=no
7867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
7869
7870fi
7871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872CFLAGS=$safe_CFLAGS
7873 if test x$ac_compiler_supports_vsx_flag = xyes \
7874 -a x$ac_compiler_supports_vsx = xyes \
7875 -a x$HWCAP_HAS_VSX = xyes ; then
7876 HAS_VSX_TRUE=
7877 HAS_VSX_FALSE='#'
7878else
7879 HAS_VSX_TRUE='#'
7880 HAS_VSX_FALSE=
7881fi
7882
7883
7884# DFP (Decimal Float)
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that assembler knows DFP" >&5
7886$as_echo_n "checking that assembler knows DFP... " >&6; }
7887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888/* end confdefs.h. */
7889
7890
7891int
7892main ()
7893{
7894
7895 #ifdef __s390__
7896 __asm__ __volatile__("adtr 1, 2, 3")
7897 #else
7898 __asm__ __volatile__("dadd 1, 2, 3");
7899 __asm__ __volatile__("dcffix 1, 2");
7900 #endif
7901
7902 ;
7903 return 0;
7904}
7905_ACEOF
7906if ac_fn_c_try_compile "$LINENO"; then :
7907
7908ac_asm_have_dfp=yes
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7910$as_echo "yes" >&6; }
7911
7912else
7913
7914ac_asm_have_dfp=no
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917
7918fi
7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that compiler knows -mhard-dfp switch" >&5
7921$as_echo_n "checking that compiler knows -mhard-dfp switch... " >&6; }
7922safe_CFLAGS=$CFLAGS
7923CFLAGS="-mhard-dfp -Werror"
7924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h. */
7926
7927
7928int
7929main ()
7930{
7931
7932 #ifdef __s390__
7933 __asm__ __volatile__("adtr 1, 2, 3")
7934 #else
7935 __asm__ __volatile__("dadd 1, 2, 3");
7936 __asm__ __volatile__("dcffix 1, 2");
7937 #endif
7938
7939 ;
7940 return 0;
7941}
7942_ACEOF
7943if ac_fn_c_try_compile "$LINENO"; then :
7944
7945ac_compiler_have_dfp=yes
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7947$as_echo "yes" >&6; }
7948
7949else
7950
7951ac_compiler_have_dfp=no
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953$as_echo "no" >&6; }
7954
7955fi
7956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957CFLAGS=$safe_CFLAGS
7958 if test x$ac_asm_have_dfp = xyes \
7959 -a x$ac_compiler_have_dfp = xyes \
7960 -a x$HWCAP_HAS_DFP = xyes ; then
7961 HAS_DFP_TRUE=
7962 HAS_DFP_FALSE='#'
7963else
7964 HAS_DFP_TRUE='#'
7965 HAS_DFP_FALSE=
7966fi
7967
7968
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that compiler knows DFP datatypes" >&5
7970$as_echo_n "checking that compiler knows DFP datatypes... " >&6; }
7971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972/* end confdefs.h. */
7973
7974
7975int
7976main ()
7977{
7978
7979 _Decimal64 x = 0.0DD;
7980
7981 ;
7982 return 0;
7983}
7984_ACEOF
7985if ac_fn_c_try_compile "$LINENO"; then :
7986
7987ac_compiler_have_dfp_type=yes
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7989$as_echo "yes" >&6; }
7990
7991else
7992
7993ac_compiler_have_dfp_type=no
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; }
7996
7997fi
7998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999 if test x$ac_compiler_have_dfp_type = xyes \
8000 -a x$HWCAP_HAS_DFP = xyes ; then
8001 BUILD_DFP_TESTS_TRUE=
8002 BUILD_DFP_TESTS_FALSE='#'
8003else
8004 BUILD_DFP_TESTS_TRUE='#'
8005 BUILD_DFP_TESTS_FALSE=
8006fi
8007
8008
8009
8010# HTM (Hardware Transactional Memory)
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts the -mhtm flag" >&5
8012$as_echo_n "checking if compiler accepts the -mhtm flag... " >&6; }
8013safe_CFLAGS=$CFLAGS
8014CFLAGS="-mhtm -Werror"
8015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016/* end confdefs.h. */
8017
8018
8019int
8020main ()
8021{
8022
8023 return 0;
8024
8025 ;
8026 return 0;
8027}
8028_ACEOF
8029if ac_fn_c_try_compile "$LINENO"; then :
8030
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8032$as_echo "yes" >&6; }
8033ac_compiler_supports_htm=yes
8034
8035else
8036
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038$as_echo "no" >&6; }
8039ac_compiler_supports_htm=no
8040
8041fi
8042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8043CFLAGS=$safe_CFLAGS
8044
8045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler can find the htm builtins" >&5
8046$as_echo_n "checking if compiler can find the htm builtins... " >&6; }
8047safe_CFLAGS=$CFLAGS
8048CFLAGS="-mhtm -Werror"
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050/* end confdefs.h. */
8051
8052
8053int
8054main ()
8055{
8056
8057 if (__builtin_tbegin (0))
8058 __builtin_tend (0);
8059
8060 ;
8061 return 0;
8062}
8063_ACEOF
8064if ac_fn_c_try_compile "$LINENO"; then :
8065
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8067$as_echo "yes" >&6; }
8068ac_compiler_sees_htm_builtins=yes
8069
8070else
8071
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073$as_echo "no" >&6; }
8074ac_compiler_sees_htm_builtins=no
8075
8076fi
8077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078CFLAGS=$safe_CFLAGS
8079
8080 if test x$ac_compiler_supports_htm = xyes \
8081 -a x$ac_compiler_sees_htm_builtins = xyes \
8082 -a x$HWCAP_HAS_HTM = xyes ; then
8083 SUPPORTS_HTM_TRUE=
8084 SUPPORTS_HTM_FALSE='#'
8085else
8086 SUPPORTS_HTM_TRUE='#'
8087 SUPPORTS_HTM_FALSE=
8088fi
8089
8090
8091# isa 3.0 checking
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that assembler knows ISA 3.00 " >&5
8093$as_echo_n "checking that assembler knows ISA 3.00 ... " >&6; }
8094
8095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096/* end confdefs.h. */
8097
8098
8099int
8100main ()
8101{
8102
8103 __asm__ __volatile__("cnttzw 1,2 ");
8104
8105 ;
8106 return 0;
8107}
8108_ACEOF
8109if ac_fn_c_try_compile "$LINENO"; then :
8110
8111ac_asm_have_isa_3_00=yes
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8113$as_echo "yes" >&6; }
8114
8115else
8116
8117ac_asm_have_isa_3_00=no
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119$as_echo "no" >&6; }
8120
8121fi
8122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123
8124 if test x$ac_asm_have_isa_3_00 = xyes \
8125 -a x$HWCAP_HAS_ISA_3_00 = xyes]; then
8126 HAS_ISA_3_00_TRUE=
8127 HAS_ISA_3_00_FALSE='#'
8128else
8129 HAS_ISA_3_00_TRUE='#'
8130 HAS_ISA_3_00_FALSE=
8131fi
8132
8133
8134# Check for pthread_create@GLIBC2.0
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create@GLIBC2.0()" >&5
8136$as_echo_n "checking for pthread_create@GLIBC2.0()... " >&6; }
8137
8138safe_CFLAGS=$CFLAGS
8139CFLAGS="-lpthread -Werror"
8140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141/* end confdefs.h. */
8142
8143extern int pthread_create_glibc_2_0(void*, const void*,
8144 void *(*)(void*), void*);
8145__asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
8146
8147int
8148main ()
8149{
8150
8151#ifdef __powerpc__
8152/*
8153 * Apparently on PowerPC linking this program succeeds and generates an
8154 * executable with the undefined symbol pthread_create@GLIBC_2.0.
8155 */
8156#error This test does not work properly on PowerPC.
8157#else
8158 pthread_create_glibc_2_0(0, 0, 0, 0);
8159#endif
8160 return 0;
8161
8162 ;
8163 return 0;
8164}
8165_ACEOF
8166if ac_fn_c_try_link "$LINENO"; then :
8167
8168ac_have_pthread_create_glibc_2_0=yes
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8170$as_echo "yes" >&6; }
8171
8172$as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
8173
8174
8175else
8176
8177ac_have_pthread_create_glibc_2_0=no
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179$as_echo "no" >&6; }
8180
8181fi
8182rm -f core conftest.err conftest.$ac_objext \
8183 conftest$ac_exeext conftest.$ac_ext
8184CFLAGS=$safe_CFLAGS
8185
8186 if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
8187 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
8188 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
8189else
8190 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
8191 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
8192fi
8193
8194
8195
8196# Check for dlinfo RTLD_DI_TLS_MODID
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlinfo RTLD_DI_TLS_MODID" >&5
8198$as_echo_n "checking for dlinfo RTLD_DI_TLS_MODID... " >&6; }
8199
8200safe_LIBS="$LIBS"
8201LIBS="-ldl"
8202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203/* end confdefs.h. */
8204
8205#ifndef _GNU_SOURCE
8206#define _GNU_SOURCE
8207#endif
8208#include <link.h>
8209#include <dlfcn.h>
8210
8211int
8212main ()
8213{
8214
8215 size_t sizes[10000];
8216 size_t modid_offset;
8217 (void) dlinfo ((void*)sizes, RTLD_DI_TLS_MODID, &modid_offset);
8218 return 0;
8219
8220 ;
8221 return 0;
8222}
8223_ACEOF
8224if ac_fn_c_try_link "$LINENO"; then :
8225
8226ac_have_dlinfo_rtld_di_tls_modid=yes
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8228$as_echo "yes" >&6; }
8229
8230$as_echo "#define HAVE_DLINFO_RTLD_DI_TLS_MODID 1" >>confdefs.h
8231
8232
8233else
8234
8235ac_have_dlinfo_rtld_di_tls_modid=no
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237$as_echo "no" >&6; }
8238
8239fi
8240rm -f core conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242LIBS=$safe_LIBS
8243
8244 if test x$ac_have_dlinfo_rtld_di_tls_modid = xyes; then
8245 HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE=
8246 HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE='#'
8247else
8248 HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE='#'
8249 HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE=
8250fi
8251
8252
8253
8254# Check for eventfd_t, eventfd() and eventfd_read()
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
8256$as_echo_n "checking for eventfd()... " >&6; }
8257
8258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259/* end confdefs.h. */
8260
8261#include <sys/eventfd.h>
8262
8263int
8264main ()
8265{
8266
8267 eventfd_t ev;
8268 int fd;
8269
8270 fd = eventfd(5, 0);
8271 eventfd_read(fd, &ev);
8272 return 0;
8273
8274 ;
8275 return 0;
8276}
8277_ACEOF
8278if ac_fn_c_try_link "$LINENO"; then :
8279
8280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8281$as_echo "yes" >&6; }
8282
8283$as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
8284
8285
8286$as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h
8287
8288
8289else
8290
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292$as_echo "no" >&6; }
8293
8294fi
8295rm -f core conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
8297
8298# Check whether compiler can process #include <thread> without errors
8299# clang 3.3 cannot process <thread> from e.g.
8300# gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
8301
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that C++ compiler can include <thread> header file" >&5
8303$as_echo_n "checking that C++ compiler can include <thread> header file... " >&6; }
8304ac_ext=cpp
8305ac_cpp='$CXXCPP $CPPFLAGS'
8306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8309
8310safe_CXXFLAGS=$CXXFLAGS
8311CXXFLAGS=-std=c++0x
8312
8313
8314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315/* end confdefs.h. */
8316
8317#include <thread>
8318
8319_ACEOF
8320if ac_fn_cxx_try_compile "$LINENO"; then :
8321
8322ac_cxx_can_include_thread_header=yes
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8324$as_echo "yes" >&6; }
8325
8326else
8327
8328ac_cxx_can_include_thread_header=no
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330$as_echo "no" >&6; }
8331
8332fi
8333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334CXXFLAGS=$safe_CXXFLAGS
8335ac_ext=c
8336ac_cpp='$CPP $CPPFLAGS'
8337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8339ac_compiler_gnu=$ac_cv_c_compiler_gnu
8340
8341
8342 if test x$ac_cxx_can_include_thread_header = xyes; then
8343 CXX_CAN_INCLUDE_THREAD_HEADER_TRUE=
8344 CXX_CAN_INCLUDE_THREAD_HEADER_FALSE='#'
8345else
8346 CXX_CAN_INCLUDE_THREAD_HEADER_TRUE='#'
8347 CXX_CAN_INCLUDE_THREAD_HEADER_FALSE=
8348fi
8349
8350
8351
8352# On aarch64 before glibc 2.20 we would get the kernel user_pt_regs instead
8353# of the user_regs_struct from sys/user.h. They are structurally the same
8354# but we get either one or the other.
8355
8356ac_fn_c_check_type "$LINENO" "struct user_regs_struct" "ac_cv_type_struct_user_regs_struct" "#include <sys/ptrace.h>
8357 #include <sys/time.h>
8358 #include <sys/user.h>
8359"
8360if test "x$ac_cv_type_struct_user_regs_struct" = xyes; then :
8361 sys_user_has_user_regs=yes
8362else
8363 sys_user_has_user_regs=no
8364fi
8365
8366if test "$sys_user_has_user_regs" = "yes"; then
8367
8368$as_echo "#define HAVE_SYS_USER_REGS 1" >>confdefs.h
8369
8370fi
8371
8372
8373#----------------------------------------------------------------------------
8374# Checking for supported compiler flags.
8375#----------------------------------------------------------------------------
8376
8377# does this compiler support -m32 ?
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
8379$as_echo_n "checking if gcc accepts -m32... " >&6; }
8380
8381safe_CFLAGS=$CFLAGS
8382CFLAGS="-m32 -Werror"
8383
8384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385/* end confdefs.h. */
8386
8387int
8388main ()
8389{
8390
8391 return 0;
8392
8393 ;
8394 return 0;
8395}
8396_ACEOF
8397if ac_fn_c_try_compile "$LINENO"; then :
8398
8399FLAG_M32="-m32"
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8401$as_echo "yes" >&6; }
8402
8403else
8404
8405FLAG_M32=""
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407$as_echo "no" >&6; }
8408
8409fi
8410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411CFLAGS=$safe_CFLAGS
8412
8413
8414
8415
8416# does this compiler support -m64 ?
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
8418$as_echo_n "checking if gcc accepts -m64... " >&6; }
8419
8420safe_CFLAGS=$CFLAGS
8421CFLAGS="-m64 -Werror"
8422
8423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424/* end confdefs.h. */
8425
8426int
8427main ()
8428{
8429
8430 return 0;
8431
8432 ;
8433 return 0;
8434}
8435_ACEOF
8436if ac_fn_c_try_compile "$LINENO"; then :
8437
8438FLAG_M64="-m64"
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8440$as_echo "yes" >&6; }
8441
8442else
8443
8444FLAG_M64=""
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446$as_echo "no" >&6; }
8447
8448fi
8449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450CFLAGS=$safe_CFLAGS
8451
8452
8453
8454
8455# does this compiler support -march=mips32 (mips32 default) ?
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=mips32" >&5
8457$as_echo_n "checking if gcc accepts -march=mips32... " >&6; }
8458
8459safe_CFLAGS=$CFLAGS
8460CFLAGS="$CFLAGS -march=mips32 -Werror"
8461
8462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463/* end confdefs.h. */
8464
8465int
8466main ()
8467{
8468
8469 return 0;
8470
8471 ;
8472 return 0;
8473}
8474_ACEOF
8475if ac_fn_c_try_compile "$LINENO"; then :
8476
8477FLAG_MIPS32="-march=mips32"
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8479$as_echo "yes" >&6; }
8480
8481else
8482
8483FLAG_MIPS32=""
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485$as_echo "no" >&6; }
8486
8487fi
8488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489CFLAGS=$safe_CFLAGS
8490
8491
8492
8493
8494# does this compiler support -march=mips64 (mips64 default) ?
8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=mips64" >&5
8496$as_echo_n "checking if gcc accepts -march=mips64... " >&6; }
8497
8498safe_CFLAGS=$CFLAGS
8499CFLAGS="$CFLAGS -march=mips64 -Werror"
8500
8501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502/* end confdefs.h. */
8503
8504int
8505main ()
8506{
8507
8508 return 0;
8509
8510 ;
8511 return 0;
8512}
8513_ACEOF
8514if ac_fn_c_try_compile "$LINENO"; then :
8515
8516FLAG_MIPS64="-march=mips64"
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8518$as_echo "yes" >&6; }
8519
8520else
8521
8522FLAG_MIPS64=""
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524$as_echo "no" >&6; }
8525
8526fi
8527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528CFLAGS=$safe_CFLAGS
8529
8530
8531
8532
8533# does this compiler support -march=octeon (Cavium OCTEON I Specific) ?
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=octeon" >&5
8535$as_echo_n "checking if gcc accepts -march=octeon... " >&6; }
8536
8537safe_CFLAGS=$CFLAGS
8538CFLAGS="$CFLAGS -march=octeon -Werror"
8539
8540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541/* end confdefs.h. */
8542
8543int
8544main ()
8545{
8546
8547 return 0;
8548
8549 ;
8550 return 0;
8551}
8552_ACEOF
8553if ac_fn_c_try_compile "$LINENO"; then :
8554
8555FLAG_OCTEON="-march=octeon"
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8557$as_echo "yes" >&6; }
8558
8559else
8560
8561FLAG_OCTEON=""
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563$as_echo "no" >&6; }
8564
8565fi
8566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8567CFLAGS=$safe_CFLAGS
8568
8569
8570
8571
8572# does this compiler support -march=octeon2 (Cavium OCTEON II Specific) ?
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=octeon2" >&5
8574$as_echo_n "checking if gcc accepts -march=octeon2... " >&6; }
8575
8576safe_CFLAGS=$CFLAGS
8577CFLAGS="$CFLAGS -march=octeon2 -Werror"
8578
8579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580/* end confdefs.h. */
8581
8582int
8583main ()
8584{
8585
8586 return 0;
8587
8588 ;
8589 return 0;
8590}
8591_ACEOF
8592if ac_fn_c_try_compile "$LINENO"; then :
8593
8594FLAG_OCTEON2="-march=octeon2"
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8596$as_echo "yes" >&6; }
8597
8598else
8599
8600FLAG_OCTEON2=""
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602$as_echo "no" >&6; }
8603
8604fi
8605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606CFLAGS=$safe_CFLAGS
8607
8608
8609
8610
8611# does this compiler support -mmmx ?
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
8613$as_echo_n "checking if gcc accepts -mmmx... " >&6; }
8614
8615safe_CFLAGS=$CFLAGS
8616CFLAGS="-mmmx -Werror"
8617
8618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619/* end confdefs.h. */
8620
8621int
8622main ()
8623{
8624
8625 return 0;
8626
8627 ;
8628 return 0;
8629}
8630_ACEOF
8631if ac_fn_c_try_compile "$LINENO"; then :
8632
8633FLAG_MMMX="-mmmx"
8634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8635$as_echo "yes" >&6; }
8636
8637else
8638
8639FLAG_MMMX=""
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641$as_echo "no" >&6; }
8642
8643fi
8644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645CFLAGS=$safe_CFLAGS
8646
8647
8648
8649
8650# does this compiler support -msse ?
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
8652$as_echo_n "checking if gcc accepts -msse... " >&6; }
8653
8654safe_CFLAGS=$CFLAGS
8655CFLAGS="-msse -Werror"
8656
8657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h. */
8659
8660int
8661main ()
8662{
8663
8664 return 0;
8665
8666 ;
8667 return 0;
8668}
8669_ACEOF
8670if ac_fn_c_try_compile "$LINENO"; then :
8671
8672FLAG_MSSE="-msse"
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8674$as_echo "yes" >&6; }
8675
8676else
8677
8678FLAG_MSSE=""
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680$as_echo "no" >&6; }
8681
8682fi
8683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684CFLAGS=$safe_CFLAGS
8685
8686
8687
8688
8689# does this compiler support -mpreferred-stack-boundary=2 when
8690# generating code for a 32-bit target? Note that we only care about
8691# this when generating code for (32-bit) x86, so if the compiler
8692# doesn't recognise -m32 it's no big deal. We'll just get code for
8693# the Memcheck and other helper functions, that is a bit slower than
8694# it could be, on x86; and no difference at all on any other platform.
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary=2 -m32" >&5
8696$as_echo_n "checking if gcc accepts -mpreferred-stack-boundary=2 -m32... " >&6; }
8697
8698safe_CFLAGS=$CFLAGS
8699CFLAGS="-mpreferred-stack-boundary=2 -m32 -Werror"
8700
8701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702/* end confdefs.h. */
8703
8704int
8705main ()
8706{
8707
8708 return 0;
8709
8710 ;
8711 return 0;
8712}
8713_ACEOF
8714if ac_fn_c_try_compile "$LINENO"; then :
8715
8716PREFERRED_STACK_BOUNDARY_2="-mpreferred-stack-boundary=2"
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8718$as_echo "yes" >&6; }
8719
8720else
8721
8722PREFERRED_STACK_BOUNDARY_2=""
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724$as_echo "no" >&6; }
8725
8726fi
8727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728CFLAGS=$safe_CFLAGS
8729
8730
8731
8732
8733# does this compiler support -mlong-double-128 ?
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mlong-double-128" >&5
8735$as_echo_n "checking if gcc accepts -mlong-double-128... " >&6; }
8736safe_CFLAGS=$CFLAGS
8737CFLAGS="-mlong-double-128 -Werror"
8738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739/* end confdefs.h. */
8740
8741int
8742main ()
8743{
8744
8745 return 0;
8746
8747 ;
8748 return 0;
8749}
8750_ACEOF
8751if ac_fn_c_try_compile "$LINENO"; then :
8752
8753ac_compiler_supports_mlong_double_128=yes
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8755$as_echo "yes" >&6; }
8756
8757else
8758
8759ac_compiler_supports_mlong_double_128=no
8760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761$as_echo "no" >&6; }
8762
8763fi
8764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765CFLAGS=$safe_CFLAGS
8766 if test x$ac_compiler_supports_mlong_double_128 = xyes; then
8767 HAS_MLONG_DOUBLE_128_TRUE=
8768 HAS_MLONG_DOUBLE_128_FALSE='#'
8769else
8770 HAS_MLONG_DOUBLE_128_TRUE='#'
8771 HAS_MLONG_DOUBLE_128_FALSE=
8772fi
8773
8774FLAG_MLONG_DOUBLE_128="-mlong-double-128"
8775
8776
8777
8778# Convenience function to check whether GCC supports a particular
8779# warning option. Takes two arguments,
8780# first the warning flag name to check (without -W), then the
8781# substitution name to set with -Wno-warning-flag if the flag exists,
8782# or the empty string if the compiler doesn't accept the flag. Note
8783# that checking is done against the warning flag itself, but the
8784# substitution is then done to cancel the warning flag.
8785
8786
8787# Convenience function. Like AC_GCC_WARNING_SUBST_NO, except it substitutes
8788# -W$1 (instead of -Wno-$1).
8789
8790
8791
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wmemset-transposed-args" >&5
8793$as_echo_n "checking if gcc accepts -Wmemset-transposed-args... " >&6; }
8794 safe_CFLAGS=$CFLAGS
8795 CFLAGS="-Wmemset-transposed-args -Werror"
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797/* end confdefs.h. */
8798
8799int
8800main ()
8801{
8802;
8803 ;
8804 return 0;
8805}
8806_ACEOF
8807if ac_fn_c_try_compile "$LINENO"; then :
8808
8809 FLAG_W_NO_MEMSET_TRANSPOSED_ARGS=-Wno-memset-transposed-args
8810
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8812$as_echo "yes" >&6; }
8813else
8814
8815
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817$as_echo "no" >&6; }
8818fi
8819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820 CFLAGS=$safe_CFLAGS
8821
8822
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wnonnull" >&5
8824$as_echo_n "checking if gcc accepts -Wnonnull... " >&6; }
8825 safe_CFLAGS=$CFLAGS
8826 CFLAGS="-Wnonnull -Werror"
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828/* end confdefs.h. */
8829
8830int
8831main ()
8832{
8833;
8834 ;
8835 return 0;
8836}
8837_ACEOF
8838if ac_fn_c_try_compile "$LINENO"; then :
8839
8840 FLAG_W_NO_NONNULL=-Wno-nonnull
8841
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8843$as_echo "yes" >&6; }
8844else
8845
8846
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848$as_echo "no" >&6; }
8849fi
8850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851 CFLAGS=$safe_CFLAGS
8852
8853
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Woverflow" >&5
8855$as_echo_n "checking if gcc accepts -Woverflow... " >&6; }
8856 safe_CFLAGS=$CFLAGS
8857 CFLAGS="-Woverflow -Werror"
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859/* end confdefs.h. */
8860
8861int
8862main ()
8863{
8864;
8865 ;
8866 return 0;
8867}
8868_ACEOF
8869if ac_fn_c_try_compile "$LINENO"; then :
8870
8871 FLAG_W_NO_OVERFLOW=-Wno-overflow
8872
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8874$as_echo "yes" >&6; }
8875else
8876
8877
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8879$as_echo "no" >&6; }
8880fi
8881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 CFLAGS=$safe_CFLAGS
8883
8884
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wpointer-sign" >&5
8886$as_echo_n "checking if gcc accepts -Wpointer-sign... " >&6; }
8887 safe_CFLAGS=$CFLAGS
8888 CFLAGS="-Wpointer-sign -Werror"
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890/* end confdefs.h. */
8891
8892int
8893main ()
8894{
8895;
8896 ;
8897 return 0;
8898}
8899_ACEOF
8900if ac_fn_c_try_compile "$LINENO"; then :
8901
8902 FLAG_W_NO_POINTER_SIGN=-Wno-pointer-sign
8903
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8905$as_echo "yes" >&6; }
8906else
8907
8908
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
8911fi
8912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913 CFLAGS=$safe_CFLAGS
8914
8915
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wuninitialized" >&5
8917$as_echo_n "checking if gcc accepts -Wuninitialized... " >&6; }
8918 safe_CFLAGS=$CFLAGS
8919 CFLAGS="-Wuninitialized -Werror"
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921/* end confdefs.h. */
8922
8923int
8924main ()
8925{
8926;
8927 ;
8928 return 0;
8929}
8930_ACEOF
8931if ac_fn_c_try_compile "$LINENO"; then :
8932
8933 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
8934
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8936$as_echo "yes" >&6; }
8937else
8938
8939
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8941$as_echo "no" >&6; }
8942fi
8943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 CFLAGS=$safe_CFLAGS
8945
8946
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wunused-function" >&5
8948$as_echo_n "checking if gcc accepts -Wunused-function... " >&6; }
8949 safe_CFLAGS=$CFLAGS
8950 CFLAGS="-Wunused-function -Werror"
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952/* end confdefs.h. */
8953
8954int
8955main ()
8956{
8957;
8958 ;
8959 return 0;
8960}
8961_ACEOF
8962if ac_fn_c_try_compile "$LINENO"; then :
8963
8964 FLAG_W_NO_UNUSED_FUNCTION=-Wno-unused-function
8965
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8967$as_echo "yes" >&6; }
8968else
8969
8970
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972$as_echo "no" >&6; }
8973fi
8974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975 CFLAGS=$safe_CFLAGS
8976
8977
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wstatic-local-in-inline" >&5
8979$as_echo_n "checking if gcc accepts -Wstatic-local-in-inline... " >&6; }
8980 safe_CFLAGS=$CFLAGS
8981 CFLAGS="-Wstatic-local-in-inline -Werror"
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983/* end confdefs.h. */
8984
8985int
8986main ()
8987{
8988;
8989 ;
8990 return 0;
8991}
8992_ACEOF
8993if ac_fn_c_try_compile "$LINENO"; then :
8994
8995 FLAG_W_NO_STATIC_LOCAL_IN_INLINE=-Wno-static-local-in-inline
8996
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8998$as_echo "yes" >&6; }
8999else
9000
9001
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003$as_echo "no" >&6; }
9004fi
9005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006 CFLAGS=$safe_CFLAGS
9007
9008
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wmismatched-new-delete" >&5
9010$as_echo_n "checking if gcc accepts -Wmismatched-new-delete... " >&6; }
9011 safe_CFLAGS=$CFLAGS
9012 CFLAGS="-Wmismatched-new-delete -Werror"
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014/* end confdefs.h. */
9015
9016int
9017main ()
9018{
9019;
9020 ;
9021 return 0;
9022}
9023_ACEOF
9024if ac_fn_c_try_compile "$LINENO"; then :
9025
9026 FLAG_W_NO_MISMATCHED_NEW_DELETE=-Wno-mismatched-new-delete
9027
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9029$as_echo "yes" >&6; }
9030else
9031
9032
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034$as_echo "no" >&6; }
9035fi
9036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9037 CFLAGS=$safe_CFLAGS
9038
9039
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Winfinite-recursion" >&5
9041$as_echo_n "checking if gcc accepts -Winfinite-recursion... " >&6; }
9042 safe_CFLAGS=$CFLAGS
9043 CFLAGS="-Winfinite-recursion -Werror"
9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045/* end confdefs.h. */
9046
9047int
9048main ()
9049{
9050;
9051 ;
9052 return 0;
9053}
9054_ACEOF
9055if ac_fn_c_try_compile "$LINENO"; then :
9056
9057 FLAG_W_NO_INFINITE_RECURSION=-Wno-infinite-recursion
9058
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9060$as_echo "yes" >&6; }
9061else
9062
9063
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065$as_echo "no" >&6; }
9066fi
9067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068 CFLAGS=$safe_CFLAGS
9069
9070
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wwrite-strings" >&5
9072$as_echo_n "checking if gcc accepts -Wwrite-strings... " >&6; }
9073 safe_CFLAGS=$CFLAGS
9074 CFLAGS="-Wwrite-strings -Werror"
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076/* end confdefs.h. */
9077
9078int
9079main ()
9080{
9081;
9082 ;
9083 return 0;
9084}
9085_ACEOF
9086if ac_fn_c_try_compile "$LINENO"; then :
9087
9088 FLAG_W_WRITE_STRINGS=-Wwrite-strings
9089
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9091$as_echo "yes" >&6; }
9092else
9093
9094
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096$as_echo "no" >&6; }
9097fi
9098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099 CFLAGS=$safe_CFLAGS
9100
9101
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wempty-body" >&5
9103$as_echo_n "checking if gcc accepts -Wempty-body... " >&6; }
9104 safe_CFLAGS=$CFLAGS
9105 CFLAGS="-Wempty-body -Werror"
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107/* end confdefs.h. */
9108
9109int
9110main ()
9111{
9112;
9113 ;
9114 return 0;
9115}
9116_ACEOF
9117if ac_fn_c_try_compile "$LINENO"; then :
9118
9119 FLAG_W_EMPTY_BODY=-Wempty-body
9120
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9122$as_echo "yes" >&6; }
9123else
9124
9125
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127$as_echo "no" >&6; }
9128fi
9129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130 CFLAGS=$safe_CFLAGS
9131
9132
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wformat" >&5
9134$as_echo_n "checking if gcc accepts -Wformat... " >&6; }
9135 safe_CFLAGS=$CFLAGS
9136 CFLAGS="-Wformat -Werror"
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138/* end confdefs.h. */
9139
9140int
9141main ()
9142{
9143;
9144 ;
9145 return 0;
9146}
9147_ACEOF
9148if ac_fn_c_try_compile "$LINENO"; then :
9149
9150 FLAG_W_FORMAT=-Wformat
9151
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9153$as_echo "yes" >&6; }
9154else
9155
9156
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158$as_echo "no" >&6; }
9159fi
9160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161 CFLAGS=$safe_CFLAGS
9162
9163# Disabled for now until all platforms are clean
9164format_checking_enabled=no
9165#format_checking_enabled=yes
9166if test "$format_checking_enabled" = "yes"; then
9167
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wformat-signedness" >&5
9169$as_echo_n "checking if gcc accepts -Wformat-signedness... " >&6; }
9170 safe_CFLAGS=$CFLAGS
9171 CFLAGS="-Wformat-signedness -Werror"
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173/* end confdefs.h. */
9174
9175int
9176main ()
9177{
9178;
9179 ;
9180 return 0;
9181}
9182_ACEOF
9183if ac_fn_c_try_compile "$LINENO"; then :
9184
9185 FLAG_W_FORMAT_SIGNEDNESS=-Wformat-signedness
9186
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9188$as_echo "yes" >&6; }
9189else
9190
9191
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193$as_echo "no" >&6; }
9194fi
9195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9196 CFLAGS=$safe_CFLAGS
9197
9198else
9199 dumy_assignment_to_avoid_syntax_errors=1
9200
9201fi
9202
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wcast-qual" >&5
9204$as_echo_n "checking if gcc accepts -Wcast-qual... " >&6; }
9205 safe_CFLAGS=$CFLAGS
9206 CFLAGS="-Wcast-qual -Werror"
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208/* end confdefs.h. */
9209
9210int
9211main ()
9212{
9213;
9214 ;
9215 return 0;
9216}
9217_ACEOF
9218if ac_fn_c_try_compile "$LINENO"; then :
9219
9220 FLAG_W_CAST_QUAL=-Wcast-qual
9221
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9223$as_echo "yes" >&6; }
9224else
9225
9226
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228$as_echo "no" >&6; }
9229fi
9230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231 CFLAGS=$safe_CFLAGS
9232
9233
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wold-style-declaration" >&5
9235$as_echo_n "checking if gcc accepts -Wold-style-declaration... " >&6; }
9236 safe_CFLAGS=$CFLAGS
9237 CFLAGS="-Wold-style-declaration -Werror"
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239/* end confdefs.h. */
9240
9241int
9242main ()
9243{
9244;
9245 ;
9246 return 0;
9247}
9248_ACEOF
9249if ac_fn_c_try_compile "$LINENO"; then :
9250
9251 FLAG_W_OLD_STYLE_DECLARATION=-Wold-style-declaration
9252
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9254$as_echo "yes" >&6; }
9255else
9256
9257
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259$as_echo "no" >&6; }
9260fi
9261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9262 CFLAGS=$safe_CFLAGS
9263
9264
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wignored-qualifiers" >&5
9266$as_echo_n "checking if gcc accepts -Wignored-qualifiers... " >&6; }
9267 safe_CFLAGS=$CFLAGS
9268 CFLAGS="-Wignored-qualifiers -Werror"
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270/* end confdefs.h. */
9271
9272int
9273main ()
9274{
9275;
9276 ;
9277 return 0;
9278}
9279_ACEOF
9280if ac_fn_c_try_compile "$LINENO"; then :
9281
9282 FLAG_W_IGNORED_QUALIFIERS=-Wignored-qualifiers
9283
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9285$as_echo "yes" >&6; }
9286else
9287
9288
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290$as_echo "no" >&6; }
9291fi
9292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9293 CFLAGS=$safe_CFLAGS
9294
9295
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wmissing-parameter-type" >&5
9297$as_echo_n "checking if gcc accepts -Wmissing-parameter-type... " >&6; }
9298 safe_CFLAGS=$CFLAGS
9299 CFLAGS="-Wmissing-parameter-type -Werror"
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301/* end confdefs.h. */
9302
9303int
9304main ()
9305{
9306;
9307 ;
9308 return 0;
9309}
9310_ACEOF
9311if ac_fn_c_try_compile "$LINENO"; then :
9312
9313 FLAG_W_MISSING_PARAMETER_TYPE=-Wmissing-parameter-type
9314
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9316$as_echo "yes" >&6; }
9317else
9318
9319
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321$as_echo "no" >&6; }
9322fi
9323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9324 CFLAGS=$safe_CFLAGS
9325
9326
9327# Does this compiler support -Wformat-security ?
9328# Special handling is needed, because certain GCC versions require -Wformat
9329# being present if -Wformat-security is given. Otherwise a warning is issued.
9330# However, AC_GCC_WARNING_SUBST will stick in -Werror (see r15323 for rationale).
9331# And with that the warning will be turned into an error with the result
9332# that -Wformat-security is believed to be unsupported when in fact it is.
9333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wformat-security" >&5
9334$as_echo_n "checking if gcc accepts -Wformat-security... " >&6; }
9335safe_CFLAGS=$CFLAGS
9336CFLAGS="-Wformat -Wformat-security -Werror"
9337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338/* end confdefs.h. */
9339
9340int
9341main ()
9342{
9343;
9344 ;
9345 return 0;
9346}
9347_ACEOF
9348if ac_fn_c_try_compile "$LINENO"; then :
9349
9350FLAG_W_FORMAT_SECURITY=-Wformat-security
9351
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9353$as_echo "yes" >&6; }
9354else
9355
9356
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358$as_echo "no" >&6; }
9359fi
9360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361CFLAGS=$safe_CFLAGS
9362
9363# does this compiler support -Wextra or the older -W ?
9364
9365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
9366$as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; }
9367
9368safe_CFLAGS=$CFLAGS
9369CFLAGS="-Wextra -Werror"
9370
9371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372/* end confdefs.h. */
9373
9374int
9375main ()
9376{
9377
9378 return 0;
9379
9380 ;
9381 return 0;
9382}
9383_ACEOF
9384if ac_fn_c_try_compile "$LINENO"; then :
9385
9386FLAG_W_EXTRA=-Wextra
9387
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
9389$as_echo "-Wextra" >&6; }
9390
9391else
9392
9393 CFLAGS="-W -Werror"
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395/* end confdefs.h. */
9396
9397int
9398main ()
9399{
9400
9401 return 0;
9402
9403 ;
9404 return 0;
9405}
9406_ACEOF
9407if ac_fn_c_try_compile "$LINENO"; then :
9408
9409 FLAG_W_EXTRA=-W
9410
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5
9412$as_echo "-W" >&6; }
9413
9414else
9415
9416
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
9418$as_echo "not supported" >&6; }
9419
9420fi
9421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9422
9423fi
9424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425CFLAGS=$safe_CFLAGS
9426
9427# On ARM we do not want to pass -Wcast-align as that produces loads
9428# of warnings. GCC is just being conservative. See here:
9429# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65459#c4
9430if test "X$VGCONF_ARCH_PRI" = "Xarm"; then
9431 FLAG_W_CAST_ALIGN=""
9432
9433else
9434 FLAG_W_CAST_ALIGN=-Wcast-align
9435
9436fi
9437
9438# does this compiler support -fno-stack-protector ?
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
9440$as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; }
9441
9442safe_CFLAGS=$CFLAGS
9443CFLAGS="-fno-stack-protector -Werror"
9444
9445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446/* end confdefs.h. */
9447
9448int
9449main ()
9450{
9451
9452 return 0;
9453
9454 ;
9455 return 0;
9456}
9457_ACEOF
9458if ac_fn_c_try_compile "$LINENO"; then :
9459
9460no_stack_protector=yes
9461FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9463$as_echo "yes" >&6; }
9464
9465else
9466
9467no_stack_protector=no
9468FLAG_FNO_STACK_PROTECTOR=""
9469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470$as_echo "no" >&6; }
9471
9472fi
9473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9474CFLAGS=$safe_CFLAGS
9475
9476
9477
9478# Does GCC support disabling Identical Code Folding?
9479# We want to disabled Identical Code Folding for the
9480# tools preload shared objects to get better backraces.
9481# For GCC 5.1+ -fipa-icf is enabled by default at -O2.
9482# "The optimization reduces code size and may disturb
9483# unwind stacks by replacing a function by equivalent
9484# one with a different name."
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-ipa-icf" >&5
9486$as_echo_n "checking if gcc accepts -fno-ipa-icf... " >&6; }
9487
9488safe_CFLAGS=$CFLAGS
9489CFLAGS="-fno-ipa-icf -Werror"
9490
9491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492/* end confdefs.h. */
9493
9494int
9495main ()
9496{
9497
9498 return 0;
9499
9500 ;
9501 return 0;
9502}
9503_ACEOF
9504if ac_fn_c_try_compile "$LINENO"; then :
9505
9506no_ipa_icf=yes
9507FLAG_FNO_IPA_ICF="-fno-ipa-icf"
9508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9509$as_echo "yes" >&6; }
9510
9511else
9512
9513no_ipa_icf=no
9514FLAG_FNO_IPA_ICF=""
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516$as_echo "no" >&6; }
9517
9518fi
9519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520CFLAGS=$safe_CFLAGS
9521
9522
9523
9524
9525# Does this compiler support -fsanitize=undefined. This is true for
9526# GCC 4.9 and newer. However, the undefined behaviour sanitiser in GCC 5.1
9527# also checks for alignment violations on memory accesses which the valgrind
9528# code base is sprinkled (if not littered) with. As those alignment issues
9529# don't pose a problem we want to suppress warnings about them.
9530# In GCC 5.1 this can be done by passing -fno-sanitize=alignment. Earlier
9531# GCCs do not support that.
9532#
9533# Only checked for if --enable-ubsan was given.
9534if test "x${vg_cv_ubsan}" = "xyes"; then
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fsanitize=undefined -fno-sanitize=alignment" >&5
9536$as_echo_n "checking if gcc accepts -fsanitize=undefined -fno-sanitize=alignment... " >&6; }
9537safe_CFLAGS=$CFLAGS
9538CFLAGS="-fsanitize=undefined -fno-sanitize=alignment -Werror"
9539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h. */
9541
9542int
9543main ()
9544{
9545
9546 return 0;
9547
9548 ;
9549 return 0;
9550}
9551_ACEOF
9552if ac_fn_c_try_compile "$LINENO"; then :
9553
9554FLAG_FSANITIZE="-fsanitize=undefined -fno-sanitize=alignment"
9555LIB_UBSAN="-static-libubsan"
9556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9557$as_echo "yes" >&6; }
9558
9559else
9560
9561CFLAGS="-fsanitize=undefined -Werror"
9562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563/* end confdefs.h. */
9564
9565int
9566main ()
9567{
9568
9569 return 0;
9570
9571 ;
9572 return 0;
9573}
9574_ACEOF
9575if ac_fn_c_try_compile "$LINENO"; then :
9576
9577FLAG_FSANITIZE="-fsanitize=undefined"
9578LIB_UBSAN="-static-libubsan"
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9580$as_echo "yes" >&6; }
9581
9582else
9583
9584FLAG_FSANITIZE=""
9585LIB_UBSAN=""
9586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587$as_echo "no" >&6; }
9588
9589fi
9590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9591
9592fi
9593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594CFLAGS=$safe_CFLAGS
9595
9596
9597fi
9598# does this compiler support --param inline-unit-growth=... ?
9599
9600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
9601$as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; }
9602
9603safe_CFLAGS=$CFLAGS
9604CFLAGS="--param inline-unit-growth=900 -Werror"
9605
9606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607/* end confdefs.h. */
9608
9609int
9610main ()
9611{
9612
9613 return 0;
9614
9615 ;
9616 return 0;
9617}
9618_ACEOF
9619if ac_fn_c_try_compile "$LINENO"; then :
9620
9621FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
9622
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9624$as_echo "yes" >&6; }
9625
9626else
9627
9628FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
9629
9630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631$as_echo "no" >&6; }
9632
9633fi
9634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9635CFLAGS=$safe_CFLAGS
9636
9637
9638# does this compiler support -gdwarf-4 -fdebug-types-section ?
9639
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -gdwarf-4 -fdebug-types-section" >&5
9641$as_echo_n "checking if gcc accepts -gdwarf-4 -fdebug-types-section... " >&6; }
9642
9643safe_CFLAGS=$CFLAGS
9644CFLAGS="-gdwarf-4 -fdebug-types-section -Werror"
9645
9646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647/* end confdefs.h. */
9648
9649int
9650main ()
9651{
9652
9653 return 0;
9654
9655 ;
9656 return 0;
9657}
9658_ACEOF
9659if ac_fn_c_try_compile "$LINENO"; then :
9660
9661ac_have_dwarf4=yes
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9663$as_echo "yes" >&6; }
9664
9665else
9666
9667ac_have_dwarf4=no
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669$as_echo "no" >&6; }
9670
9671fi
9672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9673 if test x$ac_have_dwarf4 = xyes; then
9674 DWARF4_TRUE=
9675 DWARF4_FALSE='#'
9676else
9677 DWARF4_TRUE='#'
9678 DWARF4_FALSE=
9679fi
9680
9681CFLAGS=$safe_CFLAGS
9682
9683
9684# does this compiler support -g -gz=zlib ?
9685
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -g -gz=zlib" >&5
9687$as_echo_n "checking if gcc accepts -g -gz=zlib... " >&6; }
9688
9689safe_CFLAGS=$CFLAGS
9690CFLAGS="-g -gz=zlib"
9691
9692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693/* end confdefs.h. */
9694
9695int
9696main ()
9697{
9698
9699 return 0;
9700
9701 ;
9702 return 0;
9703}
9704_ACEOF
9705if ac_fn_c_try_compile "$LINENO"; then :
9706
9707ac_have_gz_zlib=yes
9708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9709$as_echo "yes" >&6; }
9710
9711else
9712
9713ac_have_gz_zlib=no
9714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715$as_echo "no" >&6; }
9716
9717fi
9718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9719 if test x$ac_have_gz_zlib = xyes; then
9720 GZ_ZLIB_TRUE=
9721 GZ_ZLIB_FALSE='#'
9722else
9723 GZ_ZLIB_TRUE='#'
9724 GZ_ZLIB_FALSE=
9725fi
9726
9727CFLAGS=$safe_CFLAGS
9728
9729
9730# does this compiler support -g -gz=zlib-gnu ?
9731
9732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -g -gz=zlib-gnu" >&5
9733$as_echo_n "checking if gcc accepts -g -gz=zlib-gnu... " >&6; }
9734
9735safe_CFLAGS=$CFLAGS
9736CFLAGS="-g -gz=zlib-gnu"
9737
9738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739/* end confdefs.h. */
9740
9741int
9742main ()
9743{
9744
9745 return 0;
9746
9747 ;
9748 return 0;
9749}
9750_ACEOF
9751if ac_fn_c_try_compile "$LINENO"; then :
9752
9753ac_have_gz_zlib_gnu=yes
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9755$as_echo "yes" >&6; }
9756
9757else
9758
9759ac_have_gz_zlib_gnu=no
9760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761$as_echo "no" >&6; }
9762
9763fi
9764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9765 if test x$ac_have_gz_zlib_gnu = xyes; then
9766 GZ_ZLIB_GNU_TRUE=
9767 GZ_ZLIB_GNU_FALSE='#'
9768else
9769 GZ_ZLIB_GNU_TRUE='#'
9770 GZ_ZLIB_GNU_FALSE=
9771fi
9772
9773CFLAGS=$safe_CFLAGS
9774
9775
9776# does this compiler support nested functions ?
9777
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts nested functions" >&5
9779$as_echo_n "checking if gcc accepts nested functions... " >&6; }
9780
9781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782/* end confdefs.h. */
9783
9784int
9785main ()
9786{
9787
9788 int foo() { return 1; }
9789 return foo();
9790
9791 ;
9792 return 0;
9793}
9794_ACEOF
9795if ac_fn_c_try_compile "$LINENO"; then :
9796
9797ac_have_nested_functions=yes
9798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9799$as_echo "yes" >&6; }
9800
9801else
9802
9803ac_have_nested_functions=no
9804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805$as_echo "no" >&6; }
9806
9807fi
9808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9809 if test x$ac_have_nested_functions = xyes; then
9810 HAVE_NESTED_FUNCTIONS_TRUE=
9811 HAVE_NESTED_FUNCTIONS_FALSE='#'
9812else
9813 HAVE_NESTED_FUNCTIONS_TRUE='#'
9814 HAVE_NESTED_FUNCTIONS_FALSE=
9815fi
9816
9817
9818
9819# does this compiler support the 'p' constraint in ASM statements ?
9820
9821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts the 'p' constraint in asm statements" >&5
9822$as_echo_n "checking if gcc accepts the 'p' constraint in asm statements... " >&6; }
9823
9824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825/* end confdefs.h. */
9826
9827int
9828main ()
9829{
9830
9831 char *p;
9832 __asm__ __volatile__ ("movdqa (%0),%%xmm6\n" : "=p" (p));
9833
9834 ;
9835 return 0;
9836}
9837_ACEOF
9838if ac_fn_c_try_compile "$LINENO"; then :
9839
9840ac_have_asm_constraint_p=yes
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9842$as_echo "yes" >&6; }
9843
9844else
9845
9846ac_have_asm_constraint_p=no
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848$as_echo "no" >&6; }
9849
9850fi
9851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 if test x$ac_have_asm_constraint_p = xyes; then
9853 HAVE_ASM_CONSTRAINT_P_TRUE=
9854 HAVE_ASM_CONSTRAINT_P_FALSE='#'
9855else
9856 HAVE_ASM_CONSTRAINT_P_TRUE='#'
9857 HAVE_ASM_CONSTRAINT_P_FALSE=
9858fi
9859
9860
9861
9862# We want to use use the -Ttext-segment option to the linker.
9863# GNU (bfd) ld supports this directly. Newer GNU gold linkers
9864# support it as an alias of -Ttext. Sadly GNU (bfd) ld's -Ttext
9865# semantics are NOT what we want (GNU gold -Ttext is fine).
9866#
9867# For GNU (bfd) ld -Ttext-segment chooses the base at which ELF headers
9868# will reside. -Ttext aligns just the .text section start (but not any
9869# other section).
9870#
9871# So test for -Ttext-segment which is supported by all bfd ld versions
9872# and use that if it exists. If it doesn't exist it must be an older
9873# version of gold and we can fall back to using -Ttext which has the
9874# right semantics.
9875
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,-Ttext-segment" >&5
9877$as_echo_n "checking if the linker accepts -Wl,-Ttext-segment... " >&6; }
9878
9879safe_CFLAGS=$CFLAGS
9880CFLAGS="-static -nodefaultlibs -nostartfiles -Wl,-Ttext-segment=$valt_load_address_pri_norml -Werror"
9881
9882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883/* end confdefs.h. */
9884int _start () { return 0; }
9885_ACEOF
9886if ac_fn_c_try_link "$LINENO"; then :
9887
9888 linker_using_t_text="no"
9889 FLAG_T_TEXT="-Ttext-segment"
9890
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9892$as_echo "yes" >&6; }
9893
9894else
9895
9896 linker_using_t_text="yes"
9897 FLAG_T_TEXT="-Ttext"
9898
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900$as_echo "no" >&6; }
9901
9902fi
9903rm -f core conftest.err conftest.$ac_objext \
9904 conftest$ac_exeext conftest.$ac_ext
9905CFLAGS=$safe_CFLAGS
9906
9907# If the linker only supports -Ttext (not -Ttext-segment) then we will
9908# have to strip any build-id ELF NOTEs from the staticly linked tools.
9909# Otherwise the build-id NOTE might end up at the default load address.
9910# (Pedantically if the linker is gold then -Ttext is fine, but newer
9911# gold versions also support -Ttext-segment. So just assume that unless
9912# we can use -Ttext-segment we need to strip the build-id NOTEs.
9913if test "x${linker_using_t_text}" = "xyes"; then
9914{ $as_echo "$as_me:${as_lineno-$LINENO}: ld -Ttext used, need to strip build-id NOTEs." >&5
9915$as_echo "$as_me: ld -Ttext used, need to strip build-id NOTEs." >&6;}
9916# does the linker support -Wl,--build-id=none ? Note, it's
9917# important that we test indirectly via whichever C compiler
9918# is selected, rather than testing /usr/bin/ld or whatever
9919# directly.
9920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5
9921$as_echo_n "checking if the linker accepts -Wl,--build-id=none... " >&6; }
9922safe_CFLAGS=$CFLAGS
9923CFLAGS="-Wl,--build-id=none -Werror"
9924
9925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926/* end confdefs.h. */
9927
9928int
9929main ()
9930{
9931return 0;
9932 ;
9933 return 0;
9934}
9935_ACEOF
9936if ac_fn_c_try_link "$LINENO"; then :
9937
9938 FLAG_NO_BUILD_ID="-Wl,--build-id=none"
9939
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9941$as_echo "yes" >&6; }
9942
9943else
9944
9945 FLAG_NO_BUILD_ID=""
9946
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948$as_echo "no" >&6; }
9949
9950fi
9951rm -f core conftest.err conftest.$ac_objext \
9952 conftest$ac_exeext conftest.$ac_ext
9953else
9954{ $as_echo "$as_me:${as_lineno-$LINENO}: ld -Ttext-segment used, no need to strip build-id NOTEs." >&5
9955$as_echo "$as_me: ld -Ttext-segment used, no need to strip build-id NOTEs." >&6;}
9956FLAG_NO_BUILD_ID=""
9957
9958fi
9959CFLAGS=$safe_CFLAGS
9960
9961# does the ppc assembler support "mtocrf" et al?
9962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
9963$as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
9964
9965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966/* end confdefs.h. */
9967
9968int
9969main ()
9970{
9971
9972__asm__ __volatile__("mtocrf 4,0");
9973__asm__ __volatile__("mfocrf 0,4");
9974
9975 ;
9976 return 0;
9977}
9978_ACEOF
9979if ac_fn_c_try_compile "$LINENO"; then :
9980
9981ac_have_as_ppc_mftocrf=yes
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9983$as_echo "yes" >&6; }
9984
9985else
9986
9987ac_have_as_ppc_mftocrf=no
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989$as_echo "no" >&6; }
9990
9991fi
9992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9993if test x$ac_have_as_ppc_mftocrf = xyes ; then
9994
9995$as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
9996
9997fi
9998
9999
10000# does the ppc assembler support "lfdp" and other phased out floating point insns?
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 asm supports phased out floating point instructions" >&5
10002$as_echo_n "checking if ppc32/64 asm supports phased out floating point instructions... " >&6; }
10003
10004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005/* end confdefs.h. */
10006
10007int
10008main ()
10009{
10010
10011 do { typedef struct {
10012 double hi;
10013 double lo;
10014 } dbl_pair_t;
10015 dbl_pair_t dbl_pair[3];
10016 __asm__ volatile ("lfdp 10, %0"::"m" (dbl_pair[0]));
10017 } while (0)
10018
10019 ;
10020 return 0;
10021}
10022_ACEOF
10023if ac_fn_c_try_compile "$LINENO"; then :
10024
10025ac_have_as_ppc_fpPO=yes
10026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10027$as_echo "yes" >&6; }
10028
10029else
10030
10031ac_have_as_ppc_fpPO=no
10032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033$as_echo "no" >&6; }
10034
10035fi
10036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10037if test x$ac_have_as_ppc_fpPO = xyes ; then
10038
10039$as_echo "#define HAVE_AS_PPC_FPPO 1" >>confdefs.h
10040
10041fi
10042
10043
10044# does the amd64 assembler understand "fxsave64" and "fxrstor64"?
10045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler supports fxsave64/fxrstor64" >&5
10046$as_echo_n "checking if amd64 assembler supports fxsave64/fxrstor64... " >&6; }
10047
10048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049/* end confdefs.h. */
10050
10051int
10052main ()
10053{
10054
10055void* p;
10056asm __volatile__("fxsave64 (%0)" : : "r" (p) : "memory" );
10057asm __volatile__("fxrstor64 (%0)" : : "r" (p) : "memory" );
10058
10059 ;
10060 return 0;
10061}
10062_ACEOF
10063if ac_fn_c_try_compile "$LINENO"; then :
10064
10065ac_have_as_amd64_fxsave64=yes
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10067$as_echo "yes" >&6; }
10068
10069else
10070
10071ac_have_as_amd64_fxsave64=no
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073$as_echo "no" >&6; }
10074
10075fi
10076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10077if test x$ac_have_as_amd64_fxsave64 = xyes ; then
10078
10079$as_echo "#define HAVE_AS_AMD64_FXSAVE64 1" >>confdefs.h
10080
10081fi
10082
10083# does the x86/amd64 assembler understand SSE3 instructions?
10084# Note, this doesn't generate a C-level symbol. It generates a
10085# automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
10086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
10087$as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; }
10088
10089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090/* end confdefs.h. */
10091
10092int
10093main ()
10094{
10095
10096 do { long long int x;
10097 __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
10098 while (0)
10099
10100 ;
10101 return 0;
10102}
10103_ACEOF
10104if ac_fn_c_try_compile "$LINENO"; then :
10105
10106ac_have_as_sse3=yes
10107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10108$as_echo "yes" >&6; }
10109
10110else
10111
10112ac_have_as_sse3=no
10113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114$as_echo "no" >&6; }
10115
10116fi
10117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118
10119 if test x$ac_have_as_sse3 = xyes; then
10120 BUILD_SSE3_TESTS_TRUE=
10121 BUILD_SSE3_TESTS_FALSE='#'
10122else
10123 BUILD_SSE3_TESTS_TRUE='#'
10124 BUILD_SSE3_TESTS_FALSE=
10125fi
10126
10127
10128
10129# Ditto for SSSE3 instructions (note extra S)
10130# Note, this doesn't generate a C-level symbol. It generates a
10131# automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
10132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
10133$as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
10134
10135save_CFLAGS="$CFLAGS"
10136CFLAGS="$CFLAGS -msse -Werror"
10137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138/* end confdefs.h. */
10139
10140int
10141main ()
10142{
10143
10144 do { long long int x;
10145 __asm__ __volatile__(
10146 "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
10147 while (0)
10148
10149 ;
10150 return 0;
10151}
10152_ACEOF
10153if ac_fn_c_try_compile "$LINENO"; then :
10154
10155ac_have_as_ssse3=yes
10156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10157$as_echo "yes" >&6; }
10158
10159else
10160
10161ac_have_as_ssse3=no
10162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163$as_echo "no" >&6; }
10164
10165fi
10166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10167CFLAGS="$save_CFLAGS"
10168
10169 if test x$ac_have_as_ssse3 = xyes; then
10170 BUILD_SSSE3_TESTS_TRUE=
10171 BUILD_SSSE3_TESTS_FALSE='#'
10172else
10173 BUILD_SSSE3_TESTS_TRUE='#'
10174 BUILD_SSSE3_TESTS_FALSE=
10175fi
10176
10177
10178
10179# does the x86/amd64 assembler understand the PCLMULQDQ instruction?
10180# Note, this doesn't generate a C-level symbol. It generates a
10181# automake-level symbol (BUILD_PCLMULQDQ_TESTS), used in test Makefile.am's
10182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'pclmulqdq'" >&5
10183$as_echo_n "checking if x86/amd64 assembler supports 'pclmulqdq'... " >&6; }
10184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185/* end confdefs.h. */
10186
10187int
10188main ()
10189{
10190
10191 do {
10192 __asm__ __volatile__(
10193 "pclmulqdq \$17,%%xmm6,%%xmm7" : : : "xmm6", "xmm7" ); }
10194 while (0)
10195
10196 ;
10197 return 0;
10198}
10199_ACEOF
10200if ac_fn_c_try_compile "$LINENO"; then :
10201
10202ac_have_as_pclmulqdq=yes
10203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10204$as_echo "yes" >&6; }
10205
10206else
10207
10208ac_have_as_pclmulqdq=no
10209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210$as_echo "no" >&6; }
10211
10212fi
10213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214
10215 if test x$ac_have_as_pclmulqdq = xyes; then
10216 BUILD_PCLMULQDQ_TESTS_TRUE=
10217 BUILD_PCLMULQDQ_TESTS_FALSE='#'
10218else
10219 BUILD_PCLMULQDQ_TESTS_TRUE='#'
10220 BUILD_PCLMULQDQ_TESTS_FALSE=
10221fi
10222
10223
10224
10225# does the x86/amd64 assembler understand the VPCLMULQDQ instruction?
10226# Note, this doesn't generate a C-level symbol. It generates a
10227# automake-level symbol (BUILD_VPCLMULQDQ_TESTS), used in test Makefile.am's
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'vpclmulqdq'" >&5
10229$as_echo_n "checking if x86/amd64 assembler supports 'vpclmulqdq'... " >&6; }
10230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231/* end confdefs.h. */
10232
10233int
10234main ()
10235{
10236
10237 do {
10238 /*
10239 * Carry-less multiplication of xmm1 with xmm2 and store the result in
10240 * xmm3. The immediate is used to determine which quadwords of xmm1 and
10241 * xmm2 should be used.
10242 */
10243 __asm__ __volatile__(
10244 "vpclmulqdq \$0,%%xmm1,%%xmm2,%%xmm3" : : : );
10245 } while (0)
10246
10247 ;
10248 return 0;
10249}
10250_ACEOF
10251if ac_fn_c_try_compile "$LINENO"; then :
10252
10253ac_have_as_vpclmulqdq=yes
10254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10255$as_echo "yes" >&6; }
10256
10257else
10258
10259ac_have_as_vpclmulqdq=no
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261$as_echo "no" >&6; }
10262
10263fi
10264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10265
10266 if test x$ac_have_as_vpclmulqdq = xyes; then
10267 BUILD_VPCLMULQDQ_TESTS_TRUE=
10268 BUILD_VPCLMULQDQ_TESTS_FALSE='#'
10269else
10270 BUILD_VPCLMULQDQ_TESTS_TRUE='#'
10271 BUILD_VPCLMULQDQ_TESTS_FALSE=
10272fi
10273
10274
10275
10276# does the x86/amd64 assembler understand FMA4 instructions?
10277# Note, this doesn't generate a C-level symbol. It generates a
10278# automake-level symbol (BUILD_AFM4_TESTS), used in test Makefile.am's
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports FMA4 'vfmaddpd'" >&5
10280$as_echo_n "checking if x86/amd64 assembler supports FMA4 'vfmaddpd'... " >&6; }
10281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282/* end confdefs.h. */
10283
10284int
10285main ()
10286{
10287
10288 do {
10289 __asm__ __volatile__(
10290 "vfmaddpd %%xmm7,%%xmm8,%%xmm6,%%xmm9" : : : );
10291 } while (0)
10292
10293 ;
10294 return 0;
10295}
10296_ACEOF
10297if ac_fn_c_try_compile "$LINENO"; then :
10298
10299ac_have_as_vfmaddpd=yes
10300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10301$as_echo "yes" >&6; }
10302
10303else
10304
10305ac_have_as_vfmaddpd=no
10306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307$as_echo "no" >&6; }
10308
10309fi
10310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311
10312 if test x$ac_have_as_vfmaddpd = xyes; then
10313 BUILD_FMA4_TESTS_TRUE=
10314 BUILD_FMA4_TESTS_FALSE='#'
10315else
10316 BUILD_FMA4_TESTS_TRUE='#'
10317 BUILD_FMA4_TESTS_FALSE=
10318fi
10319
10320
10321
10322# does the x86/amd64 assembler understand the LZCNT instruction?
10323# Note, this doesn't generate a C-level symbol. It generates a
10324# automake-level symbol (BUILD_LZCNT_TESTS), used in test Makefile.am's
10325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'lzcnt'" >&5
10326$as_echo_n "checking if x86/amd64 assembler supports 'lzcnt'... " >&6; }
10327
10328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329/* end confdefs.h. */
10330
10331int
10332main ()
10333{
10334
10335 do {
10336 __asm__ __volatile__("lzcnt %%rax,%%rax" : : : "rax");
10337 } while (0)
10338
10339 ;
10340 return 0;
10341}
10342_ACEOF
10343if ac_fn_c_try_compile "$LINENO"; then :
10344
10345 ac_have_as_lzcnt=yes
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10347$as_echo "yes" >&6; }
10348
10349else
10350
10351 ac_have_as_lzcnt=no
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353$as_echo "no" >&6; }
10354
10355fi
10356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357
10358 if test x$ac_have_as_lzcnt = xyes; then
10359 BUILD_LZCNT_TESTS_TRUE=
10360 BUILD_LZCNT_TESTS_FALSE='#'
10361else
10362 BUILD_LZCNT_TESTS_TRUE='#'
10363 BUILD_LZCNT_TESTS_FALSE=
10364fi
10365
10366
10367
10368# does the x86/amd64 assembler understand the LOOPNEL instruction?
10369# Note, this doesn't generate a C-level symbol. It generates a
10370# automake-level symbol (BUILD_LOOPNEL_TESTS), used in test Makefile.am's
10371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'loopnel'" >&5
10372$as_echo_n "checking if x86/amd64 assembler supports 'loopnel'... " >&6; }
10373
10374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375/* end confdefs.h. */
10376
10377int
10378main ()
10379{
10380
10381 do {
10382 __asm__ __volatile__("1: loopnel 1b\n");
10383 } while (0)
10384
10385 ;
10386 return 0;
10387}
10388_ACEOF
10389if ac_fn_c_try_compile "$LINENO"; then :
10390
10391 ac_have_as_loopnel=yes
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10393$as_echo "yes" >&6; }
10394
10395else
10396
10397 ac_have_as_loopnel=no
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399$as_echo "no" >&6; }
10400
10401fi
10402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10403
10404 if test x$ac_have_as_loopnel = xyes; then
10405 BUILD_LOOPNEL_TESTS_TRUE=
10406 BUILD_LOOPNEL_TESTS_FALSE='#'
10407else
10408 BUILD_LOOPNEL_TESTS_TRUE='#'
10409 BUILD_LOOPNEL_TESTS_FALSE=
10410fi
10411
10412
10413
10414# does the x86/amd64 assembler understand ADDR32 ?
10415# Note, this doesn't generate a C-level symbol. It generates a
10416# automake-level symbol (BUILD_ADDR32_TESTS), used in test Makefile.am's
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'addr32'" >&5
10418$as_echo_n "checking if x86/amd64 assembler supports 'addr32'... " >&6; }
10419
10420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421/* end confdefs.h. */
10422
10423int
10424main ()
10425{
10426
10427 do {
10428 asm volatile ("addr32 rep movsb");
10429 } while (0)
10430
10431 ;
10432 return 0;
10433}
10434_ACEOF
10435if ac_fn_c_try_compile "$LINENO"; then :
10436
10437 ac_have_as_addr32=yes
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10439$as_echo "yes" >&6; }
10440
10441else
10442
10443 ac_have_as_addr32=no
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445$as_echo "no" >&6; }
10446
10447fi
10448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449
10450 if test x$ac_have_as_addr32 = xyes; then
10451 BUILD_ADDR32_TESTS_TRUE=
10452 BUILD_ADDR32_TESTS_FALSE='#'
10453else
10454 BUILD_ADDR32_TESTS_TRUE='#'
10455 BUILD_ADDR32_TESTS_FALSE=
10456fi
10457
10458
10459
10460# does the x86/amd64 assembler understand SSE 4.2 instructions?
10461# Note, this doesn't generate a C-level symbol. It generates a
10462# automake-level symbol (BUILD_SSE42_TESTS), used in test Makefile.am's
10463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE4.2" >&5
10464$as_echo_n "checking if x86/amd64 assembler speaks SSE4.2... " >&6; }
10465
10466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467/* end confdefs.h. */
10468
10469int
10470main ()
10471{
10472
10473 do { long long int x;
10474 __asm__ __volatile__(
10475 "crc32q %%r15,%%r15" : : : "r15" );
10476 __asm__ __volatile__(
10477 "pblendvb (%%rcx), %%xmm11" : : : "memory", "xmm11");
10478 __asm__ __volatile__(
10479 "aesdec %%xmm2, %%xmm1" : : : "xmm2", "xmm1"); }
10480 while (0)
10481
10482 ;
10483 return 0;
10484}
10485_ACEOF
10486if ac_fn_c_try_compile "$LINENO"; then :
10487
10488ac_have_as_sse42=yes
10489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10490$as_echo "yes" >&6; }
10491
10492else
10493
10494ac_have_as_sse42=no
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496$as_echo "no" >&6; }
10497
10498fi
10499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10500
10501 if test x$ac_have_as_sse42 = xyes; then
10502 BUILD_SSE42_TESTS_TRUE=
10503 BUILD_SSE42_TESTS_FALSE='#'
10504else
10505 BUILD_SSE42_TESTS_TRUE='#'
10506 BUILD_SSE42_TESTS_FALSE=
10507fi
10508
10509
10510
10511# does the x86/amd64 assembler understand AVX instructions?
10512# Note, this doesn't generate a C-level symbol. It generates a
10513# automake-level symbol (BUILD_AVX_TESTS), used in test Makefile.am's
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks AVX" >&5
10515$as_echo_n "checking if x86/amd64 assembler speaks AVX... " >&6; }
10516
10517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518/* end confdefs.h. */
10519
10520int
10521main ()
10522{
10523
10524 do { long long int x;
10525 __asm__ __volatile__(
10526 "vmovupd (%%rsp), %%ymm7" : : : "xmm7" );
10527 __asm__ __volatile__(
10528 "vaddpd %%ymm6,%%ymm7,%%ymm8" : : : "xmm6","xmm7","xmm8"); }
10529 while (0)
10530
10531 ;
10532 return 0;
10533}
10534_ACEOF
10535if ac_fn_c_try_compile "$LINENO"; then :
10536
10537ac_have_as_avx=yes
10538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539$as_echo "yes" >&6; }
10540
10541else
10542
10543ac_have_as_avx=no
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545$as_echo "no" >&6; }
10546
10547fi
10548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549
10550 if test x$ac_have_as_avx = xyes; then
10551 BUILD_AVX_TESTS_TRUE=
10552 BUILD_AVX_TESTS_FALSE='#'
10553else
10554 BUILD_AVX_TESTS_TRUE='#'
10555 BUILD_AVX_TESTS_FALSE=
10556fi
10557
10558
10559
10560# does the x86/amd64 assembler understand AVX2 instructions?
10561# Note, this doesn't generate a C-level symbol. It generates a
10562# automake-level symbol (BUILD_AVX2_TESTS), used in test Makefile.am's
10563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks AVX2" >&5
10564$as_echo_n "checking if x86/amd64 assembler speaks AVX2... " >&6; }
10565
10566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567/* end confdefs.h. */
10568
10569int
10570main ()
10571{
10572
10573 do { long long int x;
10574 __asm__ __volatile__(
10575 "vpsravd (%%rsp), %%ymm8, %%ymm7" : : : "xmm7", "xmm8" );
10576 __asm__ __volatile__(
10577 "vpaddb %%ymm6,%%ymm7,%%ymm8" : : : "xmm6","xmm7","xmm8"); }
10578 while (0)
10579
10580 ;
10581 return 0;
10582}
10583_ACEOF
10584if ac_fn_c_try_compile "$LINENO"; then :
10585
10586ac_have_as_avx2=yes
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10588$as_echo "yes" >&6; }
10589
10590else
10591
10592ac_have_as_avx2=no
10593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594$as_echo "no" >&6; }
10595
10596fi
10597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10598
10599 if test x$ac_have_as_avx2 = xyes; then
10600 BUILD_AVX2_TESTS_TRUE=
10601 BUILD_AVX2_TESTS_FALSE='#'
10602else
10603 BUILD_AVX2_TESTS_TRUE='#'
10604 BUILD_AVX2_TESTS_FALSE=
10605fi
10606
10607
10608
10609# does the x86/amd64 assembler understand TSX instructions and
10610# the XACQUIRE/XRELEASE prefixes?
10611# Note, this doesn't generate a C-level symbol. It generates a
10612# automake-level symbol (BUILD_TSX_TESTS), used in test Makefile.am's
10613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks TSX" >&5
10614$as_echo_n "checking if x86/amd64 assembler speaks TSX... " >&6; }
10615
10616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617/* end confdefs.h. */
10618
10619int
10620main ()
10621{
10622
10623 do {
10624 __asm__ __volatile__(
10625 " xbegin Lfoo \n\t"
10626 "Lfoo: xend \n\t"
10627 " xacquire lock incq 0(%rsp) \n\t"
10628 " xrelease lock incq 0(%rsp) \n"
10629 );
10630 } while (0)
10631
10632 ;
10633 return 0;
10634}
10635_ACEOF
10636if ac_fn_c_try_compile "$LINENO"; then :
10637
10638ac_have_as_tsx=yes
10639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10640$as_echo "yes" >&6; }
10641
10642else
10643
10644ac_have_as_tsx=no
10645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646$as_echo "no" >&6; }
10647
10648fi
10649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10650
10651 if test x$ac_have_as_tsx = xyes; then
10652 BUILD_TSX_TESTS_TRUE=
10653 BUILD_TSX_TESTS_FALSE='#'
10654else
10655 BUILD_TSX_TESTS_TRUE='#'
10656 BUILD_TSX_TESTS_FALSE=
10657fi
10658
10659
10660
10661# does the x86/amd64 assembler understand BMI1 and BMI2 instructions?
10662# Note, this doesn't generate a C-level symbol. It generates a
10663# automake-level symbol (BUILD_BMI_TESTS), used in test Makefile.am's
10664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks BMI1 and BMI2" >&5
10665$as_echo_n "checking if x86/amd64 assembler speaks BMI1 and BMI2... " >&6; }
10666
10667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668/* end confdefs.h. */
10669
10670int
10671main ()
10672{
10673
10674 do { unsigned int h, l;
10675 __asm__ __volatile__( "mulx %rax,%rcx,%r8" );
10676 __asm__ __volatile__(
10677 "andn %2, %1, %0" : "=r" (h) : "r" (0x1234567), "r" (0x7654321) );
10678 __asm__ __volatile__(
10679 "movl %2, %%edx; mulx %3, %1, %0" : "=r" (h), "=r" (l) : "g" (0x1234567), "rm" (0x7654321) : "edx" ); }
10680 while (0)
10681
10682 ;
10683 return 0;
10684}
10685_ACEOF
10686if ac_fn_c_try_compile "$LINENO"; then :
10687
10688ac_have_as_bmi=yes
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10690$as_echo "yes" >&6; }
10691
10692else
10693
10694ac_have_as_bmi=no
10695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696$as_echo "no" >&6; }
10697
10698fi
10699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10700
10701 if test x$ac_have_as_bmi = xyes; then
10702 BUILD_BMI_TESTS_TRUE=
10703 BUILD_BMI_TESTS_FALSE='#'
10704else
10705 BUILD_BMI_TESTS_TRUE='#'
10706 BUILD_BMI_TESTS_FALSE=
10707fi
10708
10709
10710
10711# does the x86/amd64 assembler understand FMA instructions?
10712# Note, this doesn't generate a C-level symbol. It generates a
10713# automake-level symbol (BUILD_FMA_TESTS), used in test Makefile.am's
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks FMA" >&5
10715$as_echo_n "checking if x86/amd64 assembler speaks FMA... " >&6; }
10716
10717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718/* end confdefs.h. */
10719
10720int
10721main ()
10722{
10723
10724 do { unsigned int h, l;
10725 __asm__ __volatile__(
10726 "vfmadd132ps (%%rsp), %%ymm8, %%ymm7" : : : "xmm7", "xmm8" );
10727 __asm__ __volatile__(
10728 "vfnmsub231sd (%%rsp), %%xmm8, %%xmm7" : : : "xmm7", "xmm8" );
10729 __asm__ __volatile__(
10730 "vfmsubadd213pd (%%rsp), %%xmm8, %%xmm7" : : : "xmm7", "xmm8" ); }
10731 while (0)
10732
10733 ;
10734 return 0;
10735}
10736_ACEOF
10737if ac_fn_c_try_compile "$LINENO"; then :
10738
10739ac_have_as_fma=yes
10740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10741$as_echo "yes" >&6; }
10742
10743else
10744
10745ac_have_as_fma=no
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10747$as_echo "no" >&6; }
10748
10749fi
10750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751
10752 if test x$ac_have_as_fma = xyes; then
10753 BUILD_FMA_TESTS_TRUE=
10754 BUILD_FMA_TESTS_FALSE='#'
10755else
10756 BUILD_FMA_TESTS_TRUE='#'
10757 BUILD_FMA_TESTS_FALSE=
10758fi
10759
10760
10761
10762# does the amd64 assembler understand MPX instructions?
10763# Note, this doesn't generate a C-level symbol. It generates a
10764# automake-level symbol (BUILD_MPX_TESTS), used in test Makefile.am's
10765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler knows the MPX instructions" >&5
10766$as_echo_n "checking if amd64 assembler knows the MPX instructions... " >&6; }
10767
10768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769/* end confdefs.h. */
10770
10771int
10772main ()
10773{
10774
10775 do {
10776 asm ("bndmov %bnd0,(%rsp)");
10777 asm ("bndldx 3(%rbx,%rdx), %bnd2");
10778 asm ("bnd call foo\n"
10779 bnd jmp end\n"
10780 foo: bnd ret\n"
10781 end: nop");
10782 } while (0)
10783
10784 ;
10785 return 0;
10786}
10787_ACEOF
10788if ac_fn_c_try_compile "$LINENO"; then :
10789
10790ac_have_as_mpx=yes
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10792$as_echo "yes" >&6; }
10793
10794else
10795
10796ac_have_as_mpx=no
10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798$as_echo "no" >&6; }
10799
10800fi
10801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802
10803 if test x$ac_have_as_mpx = xyes; then
10804 BUILD_MPX_TESTS_TRUE=
10805 BUILD_MPX_TESTS_FALSE='#'
10806else
10807 BUILD_MPX_TESTS_TRUE='#'
10808 BUILD_MPX_TESTS_FALSE=
10809fi
10810
10811
10812
10813# Does the C compiler support the "ifunc" attribute
10814# Note, this doesn't generate a C-level symbol. It generates a
10815# automake-level symbol (BUILD_IFUNC_TESTS), used in test Makefile.am's
10816# does the x86/amd64 assembler understand MOVBE?
10817# Note, this doesn't generate a C-level symbol. It generates a
10818# automake-level symbol (BUILD_MOVBE_TESTS), used in test Makefile.am's
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler knows the MOVBE insn" >&5
10820$as_echo_n "checking if x86/amd64 assembler knows the MOVBE insn... " >&6; }
10821
10822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823/* end confdefs.h. */
10824
10825int
10826main ()
10827{
10828
10829 do { long long int x;
10830 __asm__ __volatile__(
10831 "movbe (%%rsp), %%r15" : : : "memory", "r15" ); }
10832 while (0)
10833
10834 ;
10835 return 0;
10836}
10837_ACEOF
10838if ac_fn_c_try_compile "$LINENO"; then :
10839
10840ac_have_as_movbe=yes
10841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842$as_echo "yes" >&6; }
10843
10844else
10845
10846ac_have_as_movbe=no
10847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848$as_echo "no" >&6; }
10849
10850fi
10851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10852
10853 if test x$ac_have_as_movbe = xyes; then
10854 BUILD_MOVBE_TESTS_TRUE=
10855 BUILD_MOVBE_TESTS_FALSE='#'
10856else
10857 BUILD_MOVBE_TESTS_TRUE='#'
10858 BUILD_MOVBE_TESTS_FALSE=
10859fi
10860
10861
10862
10863# Does the C compiler support the "ifunc" attribute
10864# Note, this doesn't generate a C-level symbol. It generates a
10865# automake-level symbol (BUILD_IFUNC_TESTS), used in test Makefile.am's
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports the ifunc attribute" >&5
10867$as_echo_n "checking if gcc supports the ifunc attribute... " >&6; }
10868
10869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870/* end confdefs.h. */
10871
10872static void mytest(void) {}
10873
10874static void (*resolve_test(void))(void)
10875{
10876 return (void (*)(void))&mytest;
10877}
10878
10879void test(void) __attribute__((ifunc("resolve_test")));
10880
10881int main()
10882{
10883 test();
10884 return 0;
10885}
10886
10887_ACEOF
10888if ac_fn_c_try_link "$LINENO"; then :
10889
10890ac_have_ifunc_attr=yes
10891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10892$as_echo "yes" >&6; }
10893
10894else
10895
10896ac_have_ifunc_attr=no
10897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898$as_echo "no" >&6; }
10899
10900fi
10901rm -f core conftest.err conftest.$ac_objext \
10902 conftest$ac_exeext conftest.$ac_ext
10903
10904 if test x$ac_have_ifunc_attr = xyes; then
10905 BUILD_IFUNC_TESTS_TRUE=
10906 BUILD_IFUNC_TESTS_FALSE='#'
10907else
10908 BUILD_IFUNC_TESTS_TRUE='#'
10909 BUILD_IFUNC_TESTS_FALSE=
10910fi
10911
10912
10913# Does the C compiler support the armv8 crc feature flag
10914# Note, this doesn't generate a C-level symbol. It generates a
10915# automake-level symbol (BUILD_ARMV8_CRC_TESTS), used in test Makefile.am's
10916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports the armv8 crc feature flag" >&5
10917$as_echo_n "checking if gcc supports the armv8 crc feature flag... " >&6; }
10918
10919save_CFLAGS="$CFLAGS"
10920CFLAGS="$CFLAGS -march=armv8-a+crc -Werror"
10921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922/* end confdefs.h. */
10923
10924int main()
10925{
10926 return 0;
10927}
10928
10929_ACEOF
10930if ac_fn_c_try_compile "$LINENO"; then :
10931
10932ac_have_armv8_crc_feature=yes
10933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10934$as_echo "yes" >&6; }
10935
10936else
10937
10938ac_have_armv8_crc_feature=no
10939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10940$as_echo "no" >&6; }
10941
10942fi
10943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10944CFLAGS="$save_CFLAGS"
10945
10946 if test x$ac_have_armv8_crc_feature = xyes; then
10947 BUILD_ARMV8_CRC_TESTS_TRUE=
10948 BUILD_ARMV8_CRC_TESTS_FALSE='#'
10949else
10950 BUILD_ARMV8_CRC_TESTS_TRUE='#'
10951 BUILD_ARMV8_CRC_TESTS_FALSE=
10952fi
10953
10954
10955
10956# XXX JRS 2010 Oct 13: what is this for? For sure, we don't need this
10957# when building the tool executables. I think we should get rid of it.
10958#
10959# Check for TLS support in the compiler and linker
10960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961/* end confdefs.h. */
10962static __thread int foo;
10963int
10964main ()
10965{
10966return foo;
10967 ;
10968 return 0;
10969}
10970_ACEOF
10971if ac_fn_c_try_link "$LINENO"; then :
10972 vg_cv_linktime_tls=yes
10973else
10974 vg_cv_linktime_tls=no
10975fi
10976rm -f core conftest.err conftest.$ac_objext \
10977 conftest$ac_exeext conftest.$ac_ext
10978# Native compilation: check whether running a program using TLS succeeds.
10979# Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
10980# succeeds but running programs using TLS fails.
10981# Cross-compiling: check whether linking a program using TLS succeeds.
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
10983$as_echo_n "checking for TLS support... " >&6; }
10984if ${vg_cv_tls+:} false; then :
10985 $as_echo_n "(cached) " >&6
10986else
10987 # Check whether --enable-tls was given.
10988if test "${enable_tls+set}" = set; then :
10989 enableval=$enable_tls; vg_cv_tls=$enableval
10990else
10991 if test "$cross_compiling" = yes; then :
10992 vg_cv_tls=$vg_cv_linktime_tls
10993else
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995/* end confdefs.h. */
10996static __thread int foo;
10997int
10998main ()
10999{
11000return foo;
11001 ;
11002 return 0;
11003}
11004_ACEOF
11005if ac_fn_c_try_run "$LINENO"; then :
11006 vg_cv_tls=yes
11007else
11008 vg_cv_tls=no
11009fi
11010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11011 conftest.$ac_objext conftest.beam conftest.$ac_ext
11012fi
11013
11014fi
11015
11016fi
11017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
11018$as_echo "$vg_cv_tls" >&6; }
11019
11020if test "$vg_cv_tls" = yes -a $is_clang != applellvm; then
11021
11022$as_echo "#define HAVE_TLS 1" >>confdefs.h
11023
11024fi
11025
11026
11027#----------------------------------------------------------------------------
11028# Solaris-specific checks.
11029#----------------------------------------------------------------------------
11030
11031if test "$VGCONF_OS" = "solaris" ; then
11032# Solaris-specific check determining if the Sun Studio Assembler is used to
11033# build Valgrind. The test checks if the x86/amd64 assembler understands the
11034# cmovl.l instruction, if yes then it's Sun Assembler.
11035#
11036# C-level symbol: none
11037# Automake-level symbol: SOLARIS_SUN_STUDIO_AS
11038#
11039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks cmovl.l (Solaris-specific)" >&5
11040$as_echo_n "checking if x86/amd64 assembler speaks cmovl.l (Solaris-specific)... " >&6; }
11041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042/* end confdefs.h. */
11043
11044
11045int
11046main ()
11047{
11048
11049 __asm__ __volatile__("cmovl.l %edx, %eax");
11050
11051 ;
11052 return 0;
11053}
11054_ACEOF
11055if ac_fn_c_try_compile "$LINENO"; then :
11056
11057solaris_have_sun_studio_as=yes
11058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11059$as_echo "yes" >&6; }
11060
11061else
11062
11063solaris_have_sun_studio_as=no
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065$as_echo "no" >&6; }
11066
11067fi
11068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069 if test x$solaris_have_sun_studio_as = xyes; then
11070 SOLARIS_SUN_STUDIO_AS_TRUE=
11071 SOLARIS_SUN_STUDIO_AS_FALSE='#'
11072else
11073 SOLARIS_SUN_STUDIO_AS_TRUE='#'
11074 SOLARIS_SUN_STUDIO_AS_FALSE=
11075fi
11076
11077
11078# Solaris-specific check determining if symbols __xpg4 and __xpg6
11079# are present in linked elfs when gcc is invoked with -std=gnu99.
11080# See solaris/vgpreload-solaris.mapfile for details.
11081# gcc on Solaris instructs linker to include these symbols,
11082# gcc on illumos does not.
11083#
11084# C-level symbol: none
11085# Automake-level symbol: SOLARIS_XPG_SYMBOLS_PRESENT
11086#
11087save_CFLAGS="$CFLAGS"
11088CFLAGS="$CFLAGS -std=gnu99"
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if xpg symbols are present with -std=gnu99 (Solaris-specific)" >&5
11090$as_echo_n "checking if xpg symbols are present with -std=gnu99 (Solaris-specific)... " >&6; }
11091if test "$cross_compiling" = yes; then :
11092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11094as_fn_error $? "cannot run test program while cross compiling
11095See \`config.log' for more details" "$LINENO" 5; }
11096else
11097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11098/* end confdefs.h. */
11099
11100#include <limits.h>
11101#include <stdio.h>
11102#include <stdlib.h>
11103
11104int main(int argc, const char *argv[]) {
11105 char command[PATH_MAX + 50];
11106 snprintf(command, sizeof(command), "nm %s | egrep '__xpg[4,6]'", argv[0]);
11107
11108 FILE *output = popen(command, "r");
11109 if (output == NULL) return -1;
11110
11111 char buf[100];
11112 if (fgets(buf, sizeof(buf), output) != NULL) {
11113 pclose(output);
11114 return 0;
11115 } else {
11116 pclose(output);
11117 return 1;
11118 }
11119}
11120
11121_ACEOF
11122if ac_fn_c_try_run "$LINENO"; then :
11123
11124solaris_xpg_symbols_present=yes
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11126$as_echo "yes" >&6; }
11127
11128else
11129
11130solaris_xpg_symbols_present=no
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132$as_echo "no" >&6; }
11133
11134fi
11135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11136 conftest.$ac_objext conftest.beam conftest.$ac_ext
11137fi
11138
11139 if test x$solaris_xpg_symbols_present = xyes; then
11140 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE=
11141 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE='#'
11142else
11143 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE='#'
11144 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE=
11145fi
11146
11147CFLAGS="$save_CFLAGS"
11148
11149
11150# Solaris-specific check determining if gcc enables largefile support by
11151# default for 32-bit executables. If it does, then set SOLARIS_UNDEF_LARGESOURCE
11152# variable with gcc flags which disable it.
11153#
11154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc enables largefile support for 32-bit apps (Solaris-specific)" >&5
11155$as_echo_n "checking if gcc enables largefile support for 32-bit apps (Solaris-specific)... " >&6; }
11156save_CFLAGS="$CFLAGS"
11157CFLAGS="$CFLAGS -m32"
11158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159/* end confdefs.h. */
11160
11161int
11162main ()
11163{
11164
11165 return _LARGEFILE_SOURCE;
11166
11167 ;
11168 return 0;
11169}
11170_ACEOF
11171if ac_fn_c_try_compile "$LINENO"; then :
11172
11173SOLARIS_UNDEF_LARGESOURCE="-U_LARGEFILE_SOURCE -U_LARGEFILE64_SOURCE -U_FILE_OFFSET_BITS"
11174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11175$as_echo "yes" >&6; }
11176
11177else
11178
11179SOLARIS_UNDEF_LARGESOURCE=""
11180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181$as_echo "no" >&6; }
11182
11183fi
11184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11185CFLAGS=$safe_CFLAGS
11186
11187
11188
11189# Solaris-specific check determining if /proc/self/cmdline
11190# or /proc/<pid>/cmdline is supported.
11191#
11192# C-level symbol: SOLARIS_PROC_CMDLINE
11193# Automake-level symbol: SOLARIS_PROC_CMDLINE
11194#
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/cmdline" >&5
11196$as_echo_n "checking for /proc/self/cmdline... " >&6; }
11197if ${ac_cv_file__proc_self_cmdline+:} false; then :
11198 $as_echo_n "(cached) " >&6
11199else
11200 test "$cross_compiling" = yes &&
11201 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11202if test -r "/proc/self/cmdline"; then
11203 ac_cv_file__proc_self_cmdline=yes
11204else
11205 ac_cv_file__proc_self_cmdline=no
11206fi
11207fi
11208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_cmdline" >&5
11209$as_echo "$ac_cv_file__proc_self_cmdline" >&6; }
11210if test "x$ac_cv_file__proc_self_cmdline" = xyes; then :
11211
11212solaris_proc_cmdline=yes
11213
11214$as_echo "#define SOLARIS_PROC_CMDLINE 1" >>confdefs.h
11215
11216
11217else
11218
11219solaris_proc_cmdline=no
11220
11221fi
11222
11223 if test x$solaris_proc_cmdline = xyes; then
11224 SOLARIS_PROC_CMDLINE_TRUE=
11225 SOLARIS_PROC_CMDLINE_FALSE='#'
11226else
11227 SOLARIS_PROC_CMDLINE_TRUE='#'
11228 SOLARIS_PROC_CMDLINE_FALSE=
11229fi
11230
11231
11232
11233# Solaris-specific check determining default platform for the Valgrind launcher.
11234# Used in case the launcher cannot select platform by looking at the client
11235# image (for example because the executable is a shell script).
11236#
11237# C-level symbol: SOLARIS_LAUNCHER_DEFAULT_PLATFORM
11238# Automake-level symbol: none
11239#
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default platform of Valgrind launcher (Solaris-specific)" >&5
11241$as_echo_n "checking for default platform of Valgrind launcher (Solaris-specific)... " >&6; }
11242# Get the ELF class of /bin/sh first.
11243if ! test -f /bin/sh; then
11244 as_fn_error $? "Shell interpreter \`/bin/sh' not found." "$LINENO" 5
11245fi
11246elf_class=$( /usr/bin/file /bin/sh | sed -n 's/.*ELF \(..\)-bit.*/\1/p' )
11247case "$elf_class" in
11248 64)
11249 default_arch="$VGCONF_ARCH_PRI";
11250 ;;
11251 32)
11252 if test "x$VGCONF_ARCH_SEC" != "x"; then
11253 default_arch="$VGCONF_ARCH_SEC"
11254 else
11255 default_arch="$VGCONF_ARCH_PRI";
11256 fi
11257 ;;
11258 *)
11259 as_fn_error $? "Cannot determine ELF class of \`/bin/sh'." "$LINENO" 5
11260 ;;
11261esac
11262default_platform="$default_arch-$VGCONF_OS"
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_platform" >&5
11264$as_echo "$default_platform" >&6; }
11265
11266cat >>confdefs.h <<_ACEOF
11267#define SOLARIS_LAUNCHER_DEFAULT_PLATFORM "$default_platform"
11268_ACEOF
11269
11270
11271
11272# Solaris-specific check determining if the old syscalls are available.
11273#
11274# C-level symbol: SOLARIS_OLD_SYSCALLS
11275# Automake-level symbol: SOLARIS_OLD_SYSCALLS
11276#
11277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the old Solaris syscalls (Solaris-specific)" >&5
11278$as_echo_n "checking for the old Solaris syscalls (Solaris-specific)... " >&6; }
11279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280/* end confdefs.h. */
11281
11282#include <sys/syscall.h>
11283
11284int
11285main ()
11286{
11287
11288 return !SYS_open;
11289
11290 ;
11291 return 0;
11292}
11293_ACEOF
11294if ac_fn_c_try_compile "$LINENO"; then :
11295
11296solaris_old_syscalls=yes
11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11298$as_echo "yes" >&6; }
11299
11300$as_echo "#define SOLARIS_OLD_SYSCALLS 1" >>confdefs.h
11301
11302
11303else
11304
11305solaris_old_syscalls=no
11306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307$as_echo "no" >&6; }
11308
11309fi
11310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11311 if test x$solaris_old_syscalls = xyes; then
11312 SOLARIS_OLD_SYSCALLS_TRUE=
11313 SOLARIS_OLD_SYSCALLS_FALSE='#'
11314else
11315 SOLARIS_OLD_SYSCALLS_TRUE='#'
11316 SOLARIS_OLD_SYSCALLS_FALSE=
11317fi
11318
11319
11320
11321# Solaris-specific check determining if the new accept() syscall is available.
11322#
11323# Old syscall:
11324# int accept(int sock, struct sockaddr *name, socklen_t *namelenp,
11325# int version);
11326#
11327# New syscall (available on illumos):
11328# int accept(int sock, struct sockaddr *name, socklen_t *namelenp,
11329# int version, int flags);
11330#
11331# If the old syscall is present then the following syscall will fail with
11332# ENOTSOCK (because file descriptor 0 is not a socket), if the new syscall is
11333# available then it will fail with EINVAL (because the flags parameter is
11334# invalid).
11335#
11336# C-level symbol: SOLARIS_NEW_ACCEPT_SYSCALL
11337# Automake-level symbol: none
11338#
11339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`accept' syscall (Solaris-specific)" >&5
11340$as_echo_n "checking for the new \`accept' syscall (Solaris-specific)... " >&6; }
11341if test "$cross_compiling" = yes; then :
11342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11344as_fn_error $? "cannot run test program while cross compiling
11345See \`config.log' for more details" "$LINENO" 5; }
11346else
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348/* end confdefs.h. */
11349
11350#include <sys/syscall.h>
11351#include <errno.h>
11352
11353int
11354main ()
11355{
11356
11357 errno = 0;
11358 syscall(SYS_accept, 0, 0, 0, 0, -1);
11359 return !(errno == EINVAL);
11360
11361 ;
11362 return 0;
11363}
11364_ACEOF
11365if ac_fn_c_try_run "$LINENO"; then :
11366
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11368$as_echo "yes" >&6; }
11369
11370$as_echo "#define SOLARIS_NEW_ACCEPT_SYSCALL 1" >>confdefs.h
11371
11372
11373else
11374
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376$as_echo "no" >&6; }
11377
11378fi
11379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11380 conftest.$ac_objext conftest.beam conftest.$ac_ext
11381fi
11382
11383
11384
11385# Solaris-specific check determining if the new illumos pipe() syscall is
11386# available.
11387#
11388# Old syscall:
11389# longlong_t pipe();
11390#
11391# New syscall (available on illumos):
11392# int pipe(intptr_t arg, int flags);
11393#
11394# If the old syscall is present then the following call will succeed, if the
11395# new syscall is available then it will fail with EFAULT (because address 0
11396# cannot be accessed).
11397#
11398# C-level symbol: SOLARIS_NEW_PIPE_SYSCALL
11399# Automake-level symbol: none
11400#
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`pipe' syscall (Solaris-specific)" >&5
11402$as_echo_n "checking for the new \`pipe' syscall (Solaris-specific)... " >&6; }
11403if test "$cross_compiling" = yes; then :
11404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11406as_fn_error $? "cannot run test program while cross compiling
11407See \`config.log' for more details" "$LINENO" 5; }
11408else
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410/* end confdefs.h. */
11411
11412#include <sys/syscall.h>
11413#include <errno.h>
11414
11415int
11416main ()
11417{
11418
11419 errno = 0;
11420 syscall(SYS_pipe, 0, 0);
11421 return !(errno == EFAULT);
11422
11423 ;
11424 return 0;
11425}
11426_ACEOF
11427if ac_fn_c_try_run "$LINENO"; then :
11428
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11430$as_echo "yes" >&6; }
11431
11432$as_echo "#define SOLARIS_NEW_PIPE_SYSCALL 1" >>confdefs.h
11433
11434
11435else
11436
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438$as_echo "no" >&6; }
11439
11440fi
11441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11442 conftest.$ac_objext conftest.beam conftest.$ac_ext
11443fi
11444
11445
11446
11447# Solaris-specific check determining if the new lwp_sigqueue() syscall is
11448# available.
11449#
11450# Old syscall:
11451# int lwp_kill(id_t lwpid, int sig);
11452#
11453# New syscall (available on Solaris 11):
11454# int lwp_sigqueue(id_t lwpid, int sig, void *value,
11455# int si_code, timespec_t *timeout);
11456#
11457# C-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL
11458# Automake-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL
11459#
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`lwp_sigqueue' syscall (Solaris-specific)" >&5
11461$as_echo_n "checking for the new \`lwp_sigqueue' syscall (Solaris-specific)... " >&6; }
11462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463/* end confdefs.h. */
11464
11465#include <sys/syscall.h>
11466
11467int
11468main ()
11469{
11470
11471 return !SYS_lwp_sigqueue;
11472
11473 ;
11474 return 0;
11475}
11476_ACEOF
11477if ac_fn_c_try_compile "$LINENO"; then :
11478
11479solaris_lwp_sigqueue_syscall=yes
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11481$as_echo "yes" >&6; }
11482
11483$as_echo "#define SOLARIS_LWP_SIGQUEUE_SYSCALL 1" >>confdefs.h
11484
11485
11486else
11487
11488solaris_lwp_sigqueue_syscall=no
11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490$as_echo "no" >&6; }
11491
11492fi
11493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494 if test x$solaris_lwp_sigqueue_syscall = xyes; then
11495 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE=
11496 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE='#'
11497else
11498 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE='#'
11499 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE=
11500fi
11501
11502
11503
11504# Solaris-specific check determining if the lwp_sigqueue() syscall
11505# takes both pid and thread id arguments or just thread id.
11506#
11507# Old syscall (available on Solaris 11.x):
11508# int lwp_sigqueue(id_t lwpid, int sig, void *value,
11509# int si_code, timespec_t *timeout);
11510#
11511# New syscall (available on Solaris 12):
11512# int lwp_sigqueue(pid_t pid, id_t lwpid, int sig, void *value,
11513# int si_code, timespec_t *timeout);
11514#
11515# If the old syscall is present then the following syscall will fail with
11516# EINVAL (because signal is out of range); if the new syscall is available
11517# then it will fail with ESRCH (because it would not find such thread in the
11518# current process).
11519#
11520# C-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID
11521# Automake-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID
11522#
11523
11524if test -z "$SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE"; then :
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the \`lwp_sigqueue' syscall accepts pid (Solaris-specific)" >&5
11526$as_echo_n "checking if the \`lwp_sigqueue' syscall accepts pid (Solaris-specific)... " >&6; }
11527if test "$cross_compiling" = yes; then :
11528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11530as_fn_error $? "cannot run test program while cross compiling
11531See \`config.log' for more details" "$LINENO" 5; }
11532else
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h. */
11535
11536#include <sys/syscall.h>
11537#include <errno.h>
11538
11539int
11540main ()
11541{
11542
11543 errno = 0;
11544 syscall(SYS_lwp_sigqueue, 0, 101, 0, 0, 0, 0);
11545 return !(errno == ESRCH);
11546
11547 ;
11548 return 0;
11549}
11550_ACEOF
11551if ac_fn_c_try_run "$LINENO"; then :
11552
11553solaris_lwp_sigqueue_syscall_takes_pid=yes
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11555$as_echo "yes" >&6; }
11556
11557$as_echo "#define SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID 1" >>confdefs.h
11558
11559
11560else
11561
11562solaris_lwp_sigqueue_syscall_takes_pid=no
11563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564$as_echo "no" >&6; }
11565
11566fi
11567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11568 conftest.$ac_objext conftest.beam conftest.$ac_ext
11569fi
11570
11571 if test x$solaris_lwp_sigqueue_syscall_takes_pid = xyes; then
11572 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE=
11573 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE='#'
11574else
11575 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE='#'
11576 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE=
11577fi
11578
11579
11580else
11581 if test x = y; then
11582 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE=
11583 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE='#'
11584else
11585 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE='#'
11586 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE=
11587fi
11588
11589
11590fi
11591
11592
11593# Solaris-specific check determining if the new lwp_name() syscall is
11594# available.
11595#
11596# New syscall (available on Solaris 11):
11597# int lwp_name(int opcode, id_t lwpid, char *name, size_t len);
11598#
11599# C-level symbol: SOLARIS_LWP_NAME_SYSCALL
11600# Automake-level symbol: SOLARIS_LWP_NAME_SYSCALL
11601#
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`lwp_name' syscall (Solaris-specific)" >&5
11603$as_echo_n "checking for the new \`lwp_name' syscall (Solaris-specific)... " >&6; }
11604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605/* end confdefs.h. */
11606
11607#include <sys/syscall.h>
11608
11609int
11610main ()
11611{
11612
11613 return !SYS_lwp_name;
11614
11615 ;
11616 return 0;
11617}
11618_ACEOF
11619if ac_fn_c_try_compile "$LINENO"; then :
11620
11621solaris_lwp_name_syscall=yes
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623$as_echo "yes" >&6; }
11624
11625$as_echo "#define SOLARIS_LWP_NAME_SYSCALL 1" >>confdefs.h
11626
11627
11628else
11629
11630solaris_lwp_name_syscall=no
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632$as_echo "no" >&6; }
11633
11634fi
11635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636 if test x$solaris_lwp_name_syscall = xyes; then
11637 SOLARIS_LWP_NAME_SYSCALL_TRUE=
11638 SOLARIS_LWP_NAME_SYSCALL_FALSE='#'
11639else
11640 SOLARIS_LWP_NAME_SYSCALL_TRUE='#'
11641 SOLARIS_LWP_NAME_SYSCALL_FALSE=
11642fi
11643
11644
11645
11646# Solaris-specific check determining if the new getrandom() syscall is
11647# available.
11648#
11649# New syscall (available on Solaris 11):
11650# int getrandom(void *buf, size_t buflen, uint_t flags);
11651#
11652# C-level symbol: SOLARIS_GETRANDOM_SYSCALL
11653# Automake-level symbol: SOLARIS_GETRANDOM_SYSCALL
11654#
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`getrandom' syscall (Solaris-specific)" >&5
11656$as_echo_n "checking for the new \`getrandom' syscall (Solaris-specific)... " >&6; }
11657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658/* end confdefs.h. */
11659
11660#include <sys/syscall.h>
11661
11662int
11663main ()
11664{
11665
11666 return !SYS_getrandom;
11667
11668 ;
11669 return 0;
11670}
11671_ACEOF
11672if ac_fn_c_try_compile "$LINENO"; then :
11673
11674solaris_getrandom_syscall=yes
11675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11676$as_echo "yes" >&6; }
11677
11678$as_echo "#define SOLARIS_GETRANDOM_SYSCALL 1" >>confdefs.h
11679
11680
11681else
11682
11683solaris_getrandom_syscall=no
11684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685$as_echo "no" >&6; }
11686
11687fi
11688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11689 if test x$solaris_getrandom_syscall = xyes; then
11690 SOLARIS_GETRANDOM_SYSCALL_TRUE=
11691 SOLARIS_GETRANDOM_SYSCALL_FALSE='#'
11692else
11693 SOLARIS_GETRANDOM_SYSCALL_TRUE='#'
11694 SOLARIS_GETRANDOM_SYSCALL_FALSE=
11695fi
11696
11697
11698
11699# Solaris-specific check determining if the new zone() syscall subcodes
11700# ZONE_LIST_DEFUNCT and ZONE_GETATTR_DEFUNCT are available. These subcodes
11701# were added in Solaris 11 but are missing on illumos.
11702#
11703# C-level symbol: SOLARIS_ZONE_DEFUNCT
11704# Automake-level symbol: SOLARIS_ZONE_DEFUNCT
11705#
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZONE_LIST_DEFUNCT and ZONE_GETATTR_DEFUNCT (Solaris-specific)" >&5
11707$as_echo_n "checking for ZONE_LIST_DEFUNCT and ZONE_GETATTR_DEFUNCT (Solaris-specific)... " >&6; }
11708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709/* end confdefs.h. */
11710
11711#include <sys/zone.h>
11712
11713int
11714main ()
11715{
11716
11717 return !(ZONE_LIST_DEFUNCT && ZONE_GETATTR_DEFUNCT);
11718
11719 ;
11720 return 0;
11721}
11722_ACEOF
11723if ac_fn_c_try_compile "$LINENO"; then :
11724
11725solaris_zone_defunct=yes
11726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11727$as_echo "yes" >&6; }
11728
11729$as_echo "#define SOLARIS_ZONE_DEFUNCT 1" >>confdefs.h
11730
11731
11732else
11733
11734solaris_zone_defunct=no
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736$as_echo "no" >&6; }
11737
11738fi
11739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 if test x$solaris_zone_defunct = xyes; then
11741 SOLARIS_ZONE_DEFUNCT_TRUE=
11742 SOLARIS_ZONE_DEFUNCT_FALSE='#'
11743else
11744 SOLARIS_ZONE_DEFUNCT_TRUE='#'
11745 SOLARIS_ZONE_DEFUNCT_FALSE=
11746fi
11747
11748
11749
11750# Solaris-specific check determining if commands A_GETSTAT and A_SETSTAT
11751# for auditon(2) subcode of the auditsys() syscall are available.
11752# These commands are available in Solaris 11 and illumos but were removed
11753# in Solaris 12.
11754#
11755# C-level symbol: SOLARIS_AUDITON_STAT
11756# Automake-level symbol: SOLARIS_AUDITON_STAT
11757#
11758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for A_GETSTAT and A_SETSTAT auditon(2) commands (Solaris-specific)" >&5
11759$as_echo_n "checking for A_GETSTAT and A_SETSTAT auditon(2) commands (Solaris-specific)... " >&6; }
11760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761/* end confdefs.h. */
11762
11763#include <bsm/audit.h>
11764
11765int
11766main ()
11767{
11768
11769 return !(A_GETSTAT && A_SETSTAT);
11770
11771 ;
11772 return 0;
11773}
11774_ACEOF
11775if ac_fn_c_try_compile "$LINENO"; then :
11776
11777solaris_auditon_stat=yes
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11779$as_echo "yes" >&6; }
11780
11781$as_echo "#define SOLARIS_AUDITON_STAT 1" >>confdefs.h
11782
11783
11784else
11785
11786solaris_auditon_stat=no
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788$as_echo "no" >&6; }
11789
11790fi
11791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11792 if test x$solaris_auditon_stat = xyes; then
11793 SOLARIS_AUDITON_STAT_TRUE=
11794 SOLARIS_AUDITON_STAT_FALSE='#'
11795else
11796 SOLARIS_AUDITON_STAT_TRUE='#'
11797 SOLARIS_AUDITON_STAT_FALSE=
11798fi
11799
11800
11801
11802# Solaris-specific check determining if the new shmsys() syscall subcodes
11803# IPC_XSTAT64, SHMADV, SHM_ADV_GET, SHM_ADV_SET and SHMGET_OSM are available.
11804# These subcodes were added in Solaris 11 but are missing on illumos.
11805#
11806# C-level symbol: SOLARIS_SHM_NEW
11807# Automake-level symbol: SOLARIS_SHM_NEW
11808#
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHMADV, SHM_ADV_GET, SHM_ADV_SET and SHMGET_OSM (Solaris-specific)" >&5
11810$as_echo_n "checking for SHMADV, SHM_ADV_GET, SHM_ADV_SET and SHMGET_OSM (Solaris-specific)... " >&6; }
11811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812/* end confdefs.h. */
11813
11814#include <sys/ipc_impl.h>
11815#include <sys/shm.h>
11816#include <sys/shm_impl.h>
11817
11818int
11819main ()
11820{
11821
11822 return !(IPC_XSTAT64 && SHMADV && SHM_ADV_GET && SHM_ADV_SET && SHMGET_OSM);
11823
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828if ac_fn_c_try_compile "$LINENO"; then :
11829
11830solaris_shm_new=yes
11831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11832$as_echo "yes" >&6; }
11833
11834$as_echo "#define SOLARIS_SHM_NEW 1" >>confdefs.h
11835
11836
11837else
11838
11839solaris_shm_new=no
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841$as_echo "no" >&6; }
11842
11843fi
11844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 if test x$solaris_shm_new = xyes; then
11846 SOLARIS_SHM_NEW_TRUE=
11847 SOLARIS_SHM_NEW_FALSE='#'
11848else
11849 SOLARIS_SHM_NEW_TRUE='#'
11850 SOLARIS_SHM_NEW_FALSE=
11851fi
11852
11853
11854
11855# Solaris-specific check determining if prxregset_t is available. Illumos
11856# currently does not define it on the x86 platform.
11857#
11858# C-level symbol: SOLARIS_PRXREGSET_T
11859# Automake-level symbol: SOLARIS_PRXREGSET_T
11860#
11861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`prxregset_t' type (Solaris-specific)" >&5
11862$as_echo_n "checking for the \`prxregset_t' type (Solaris-specific)... " >&6; }
11863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864/* end confdefs.h. */
11865
11866#include <sys/procfs_isa.h>
11867
11868int
11869main ()
11870{
11871
11872 return !sizeof(prxregset_t);
11873
11874 ;
11875 return 0;
11876}
11877_ACEOF
11878if ac_fn_c_try_compile "$LINENO"; then :
11879
11880solaris_prxregset_t=yes
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11882$as_echo "yes" >&6; }
11883
11884$as_echo "#define SOLARIS_PRXREGSET_T 1" >>confdefs.h
11885
11886
11887else
11888
11889solaris_prxregset_t=no
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
11892
11893fi
11894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 if test x$solaris_prxregset_t = xyes; then
11896 SOLARIS_PRXREGSET_T_TRUE=
11897 SOLARIS_PRXREGSET_T_FALSE='#'
11898else
11899 SOLARIS_PRXREGSET_T_TRUE='#'
11900 SOLARIS_PRXREGSET_T_FALSE=
11901fi
11902
11903
11904
11905# Solaris-specific check determining if the new frealpathat() syscall is
11906# available.
11907#
11908# New syscall (available on Solaris 11.1):
11909# int frealpathat(int fd, char *path, char *buf, size_t buflen);
11910#
11911# C-level symbol: SOLARIS_FREALPATHAT_SYSCALL
11912# Automake-level symbol: SOLARIS_FREALPATHAT_SYSCALL
11913#
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`frealpathat' syscall (Solaris-specific)" >&5
11915$as_echo_n "checking for the new \`frealpathat' syscall (Solaris-specific)... " >&6; }
11916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11917/* end confdefs.h. */
11918
11919#include <sys/syscall.h>
11920
11921int
11922main ()
11923{
11924
11925 return !SYS_frealpathat;
11926
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931if ac_fn_c_try_compile "$LINENO"; then :
11932
11933solaris_frealpathat_syscall=yes
11934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11935$as_echo "yes" >&6; }
11936
11937$as_echo "#define SOLARIS_FREALPATHAT_SYSCALL 1" >>confdefs.h
11938
11939
11940else
11941
11942solaris_frealpathat_syscall=no
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
11945
11946fi
11947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948 if test x$solaris_frealpathat_syscall = xyes; then
11949 SOLARIS_FREALPATHAT_SYSCALL_TRUE=
11950 SOLARIS_FREALPATHAT_SYSCALL_FALSE='#'
11951else
11952 SOLARIS_FREALPATHAT_SYSCALL_TRUE='#'
11953 SOLARIS_FREALPATHAT_SYSCALL_FALSE=
11954fi
11955
11956
11957
11958# Solaris-specific check determining if the new uuidsys() syscall is
11959# available.
11960#
11961# New syscall (available on newer Solaris):
11962# int uuidsys(struct uuid *uuid);
11963#
11964# C-level symbol: SOLARIS_UUIDSYS_SYSCALL
11965# Automake-level symbol: SOLARIS_UUIDSYS_SYSCALL
11966#
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`uuidsys' syscall (Solaris-specific)" >&5
11968$as_echo_n "checking for the new \`uuidsys' syscall (Solaris-specific)... " >&6; }
11969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970/* end confdefs.h. */
11971
11972#include <sys/syscall.h>
11973
11974int
11975main ()
11976{
11977
11978 return !SYS_uuidsys;
11979
11980 ;
11981 return 0;
11982}
11983_ACEOF
11984if ac_fn_c_try_compile "$LINENO"; then :
11985
11986solaris_uuidsys_syscall=yes
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988$as_echo "yes" >&6; }
11989
11990$as_echo "#define SOLARIS_UUIDSYS_SYSCALL 1" >>confdefs.h
11991
11992
11993else
11994
11995solaris_uuidsys_syscall=no
11996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997$as_echo "no" >&6; }
11998
11999fi
12000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001 if test x$solaris_uuidsys_syscall = xyes; then
12002 SOLARIS_UUIDSYS_SYSCALL_TRUE=
12003 SOLARIS_UUIDSYS_SYSCALL_FALSE='#'
12004else
12005 SOLARIS_UUIDSYS_SYSCALL_TRUE='#'
12006 SOLARIS_UUIDSYS_SYSCALL_FALSE=
12007fi
12008
12009
12010
12011# Solaris-specific check determining if the new labelsys() syscall subcode
12012# TNDB_GET_TNIP is available. This subcode was added in Solaris 11 but is
12013# missing on illumos.
12014#
12015# C-level symbol: SOLARIS_TNDB_GET_TNIP
12016# Automake-level symbol: SOLARIS_TNDB_GET_TNIP
12017#
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TNDB_GET_TNIP (Solaris-specific)" >&5
12019$as_echo_n "checking for TNDB_GET_TNIP (Solaris-specific)... " >&6; }
12020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021/* end confdefs.h. */
12022
12023#include <sys/tsol/tndb.h>
12024
12025int
12026main ()
12027{
12028
12029 return !TNDB_GET_TNIP;
12030
12031 ;
12032 return 0;
12033}
12034_ACEOF
12035if ac_fn_c_try_compile "$LINENO"; then :
12036
12037solaris_tndb_get_tnip=yes
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12039$as_echo "yes" >&6; }
12040
12041$as_echo "#define SOLARIS_TNDB_GET_TNIP 1" >>confdefs.h
12042
12043
12044else
12045
12046solaris_tndb_get_tnip=no
12047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048$as_echo "no" >&6; }
12049
12050fi
12051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12052 if test x$solaris_tndb_get_tnip = xyes; then
12053 SOLARIS_TNDB_GET_TNIP_TRUE=
12054 SOLARIS_TNDB_GET_TNIP_FALSE='#'
12055else
12056 SOLARIS_TNDB_GET_TNIP_TRUE='#'
12057 SOLARIS_TNDB_GET_TNIP_FALSE=
12058fi
12059
12060
12061
12062# Solaris-specific check determining if the new labelsys() syscall opcodes
12063# TSOL_GETCLEARANCE and TSOL_SETCLEARANCE are available. These opcodes were
12064# added in Solaris 11 but are missing on illumos.
12065#
12066# C-level symbol: SOLARIS_TSOL_CLEARANCE
12067# Automake-level symbol: SOLARIS_TSOL_CLEARANCE
12068#
12069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSOL_GETCLEARANCE and TSOL_SETCLEARANCE (Solaris-specific)" >&5
12070$as_echo_n "checking for TSOL_GETCLEARANCE and TSOL_SETCLEARANCE (Solaris-specific)... " >&6; }
12071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072/* end confdefs.h. */
12073
12074#include <sys/tsol/tsyscall.h>
12075
12076int
12077main ()
12078{
12079
12080 return !(TSOL_GETCLEARANCE && TSOL_SETCLEARANCE);
12081
12082 ;
12083 return 0;
12084}
12085_ACEOF
12086if ac_fn_c_try_compile "$LINENO"; then :
12087
12088solaris_tsol_clearance=yes
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12090$as_echo "yes" >&6; }
12091
12092$as_echo "#define SOLARIS_TSOL_CLEARANCE 1" >>confdefs.h
12093
12094
12095else
12096
12097solaris_tsol_clearance=no
12098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099$as_echo "no" >&6; }
12100
12101fi
12102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12103 if test x$solaris_tsol_clearance = xyes; then
12104 SOLARIS_TSOL_CLEARANCE_TRUE=
12105 SOLARIS_TSOL_CLEARANCE_FALSE='#'
12106else
12107 SOLARIS_TSOL_CLEARANCE_TRUE='#'
12108 SOLARIS_TSOL_CLEARANCE_FALSE=
12109fi
12110
12111
12112
12113# Solaris-specific check determining if the new pset() syscall subcode
12114# PSET_GET_NAME is available. This subcode was added in Solaris 12 but
12115# is missing on illumos and Solaris 11.
12116#
12117# C-level symbol: SOLARIS_PSET_GET_NAME
12118# Automake-level symbol: SOLARIS_PSET_GET_NAME
12119#
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PSET_GET_NAME (Solaris-specific)" >&5
12121$as_echo_n "checking for PSET_GET_NAME (Solaris-specific)... " >&6; }
12122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123/* end confdefs.h. */
12124
12125#include <sys/pset.h>
12126
12127int
12128main ()
12129{
12130
12131 return !(PSET_GET_NAME);
12132
12133 ;
12134 return 0;
12135}
12136_ACEOF
12137if ac_fn_c_try_compile "$LINENO"; then :
12138
12139solaris_pset_get_name=yes
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12141$as_echo "yes" >&6; }
12142
12143$as_echo "#define SOLARIS_PSET_GET_NAME 1" >>confdefs.h
12144
12145
12146else
12147
12148solaris_pset_get_name=no
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
12151
12152fi
12153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154 if test x$solaris_pset_get_name = xyes; then
12155 SOLARIS_PSET_GET_NAME_TRUE=
12156 SOLARIS_PSET_GET_NAME_FALSE='#'
12157else
12158 SOLARIS_PSET_GET_NAME_TRUE='#'
12159 SOLARIS_PSET_GET_NAME_FALSE=
12160fi
12161
12162
12163
12164# Solaris-specific check determining if the utimesys() syscall is
12165# available (on illumos and older Solaris).
12166#
12167# C-level symbol: SOLARIS_UTIMESYS_SYSCALL
12168# Automake-level symbol: SOLARIS_UTIMESYS_SYSCALL
12169#
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`utimesys' syscall (Solaris-specific)" >&5
12171$as_echo_n "checking for the \`utimesys' syscall (Solaris-specific)... " >&6; }
12172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173/* end confdefs.h. */
12174
12175#include <sys/syscall.h>
12176
12177int
12178main ()
12179{
12180
12181 return !SYS_utimesys;
12182
12183 ;
12184 return 0;
12185}
12186_ACEOF
12187if ac_fn_c_try_compile "$LINENO"; then :
12188
12189solaris_utimesys_syscall=yes
12190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12191$as_echo "yes" >&6; }
12192
12193$as_echo "#define SOLARIS_UTIMESYS_SYSCALL 1" >>confdefs.h
12194
12195
12196else
12197
12198solaris_utimesys_syscall=no
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200$as_echo "no" >&6; }
12201
12202fi
12203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 if test x$solaris_utimesys_syscall = xyes; then
12205 SOLARIS_UTIMESYS_SYSCALL_TRUE=
12206 SOLARIS_UTIMESYS_SYSCALL_FALSE='#'
12207else
12208 SOLARIS_UTIMESYS_SYSCALL_TRUE='#'
12209 SOLARIS_UTIMESYS_SYSCALL_FALSE=
12210fi
12211
12212
12213
12214# Solaris-specific check determining if the utimensat() syscall is
12215# available (on newer Solaris).
12216#
12217# C-level symbol: SOLARIS_UTIMENSAT_SYSCALL
12218# Automake-level symbol: SOLARIS_UTIMENSAT_SYSCALL
12219#
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`utimensat' syscall (Solaris-specific)" >&5
12221$as_echo_n "checking for the \`utimensat' syscall (Solaris-specific)... " >&6; }
12222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223/* end confdefs.h. */
12224
12225#include <sys/syscall.h>
12226
12227int
12228main ()
12229{
12230
12231 return !SYS_utimensat;
12232
12233 ;
12234 return 0;
12235}
12236_ACEOF
12237if ac_fn_c_try_compile "$LINENO"; then :
12238
12239solaris_utimensat_syscall=yes
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12241$as_echo "yes" >&6; }
12242
12243$as_echo "#define SOLARIS_UTIMENSAT_SYSCALL 1" >>confdefs.h
12244
12245
12246else
12247
12248solaris_utimensat_syscall=no
12249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250$as_echo "no" >&6; }
12251
12252fi
12253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 if test x$solaris_utimensat_syscall = xyes; then
12255 SOLARIS_UTIMENSAT_SYSCALL_TRUE=
12256 SOLARIS_UTIMENSAT_SYSCALL_FALSE='#'
12257else
12258 SOLARIS_UTIMENSAT_SYSCALL_TRUE='#'
12259 SOLARIS_UTIMENSAT_SYSCALL_FALSE=
12260fi
12261
12262
12263
12264# Solaris-specific check determining if the spawn() syscall is available
12265# (on newer Solaris).
12266#
12267# C-level symbol: SOLARIS_SPAWN_SYSCALL
12268# Automake-level symbol: SOLARIS_SPAWN_SYSCALL
12269#
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`spawn' syscall (Solaris-specific)" >&5
12271$as_echo_n "checking for the \`spawn' syscall (Solaris-specific)... " >&6; }
12272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273/* end confdefs.h. */
12274
12275#include <sys/syscall.h>
12276
12277int
12278main ()
12279{
12280
12281 return !SYS_spawn;
12282
12283 ;
12284 return 0;
12285}
12286_ACEOF
12287if ac_fn_c_try_compile "$LINENO"; then :
12288
12289solaris_spawn_syscall=yes
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12291$as_echo "yes" >&6; }
12292
12293$as_echo "#define SOLARIS_SPAWN_SYSCALL 1" >>confdefs.h
12294
12295
12296else
12297
12298solaris_spawn_syscall=no
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300$as_echo "no" >&6; }
12301
12302fi
12303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 if test x$solaris_spawn_syscall = xyes; then
12305 SOLARIS_SPAWN_SYSCALL_TRUE=
12306 SOLARIS_SPAWN_SYSCALL_FALSE='#'
12307else
12308 SOLARIS_SPAWN_SYSCALL_TRUE='#'
12309 SOLARIS_SPAWN_SYSCALL_FALSE=
12310fi
12311
12312
12313
12314# Solaris-specific check determining if commands MODNVL_CTRLMAP through
12315# MODDEVINFO_CACHE_TS for modctl() syscall are available (on newer Solaris).
12316#
12317# C-level symbol: SOLARIS_MODCTL_MODNVL
12318# Automake-level symbol: SOLARIS_MODCTL_MODNVL
12319#
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MODNVL_CTRLMAP through MODDEVINFO_CACHE_TS modctl(2) commands (Solaris-specific)" >&5
12321$as_echo_n "checking for MODNVL_CTRLMAP through MODDEVINFO_CACHE_TS modctl(2) commands (Solaris-specific)... " >&6; }
12322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323/* end confdefs.h. */
12324
12325#include <sys/modctl.h>
12326
12327int
12328main ()
12329{
12330
12331 return !(MODNVL_CTRLMAP && MODDEVINFO_CACHE_TS);
12332
12333 ;
12334 return 0;
12335}
12336_ACEOF
12337if ac_fn_c_try_compile "$LINENO"; then :
12338
12339solaris_modctl_modnvl=yes
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12341$as_echo "yes" >&6; }
12342
12343$as_echo "#define SOLARIS_MODCTL_MODNVL 1" >>confdefs.h
12344
12345
12346else
12347
12348solaris_modctl_modnvl=no
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350$as_echo "no" >&6; }
12351
12352fi
12353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12354 if test x$solaris_modctl_modnvl = xyes; then
12355 SOLARIS_MODCTL_MODNVL_TRUE=
12356 SOLARIS_MODCTL_MODNVL_FALSE='#'
12357else
12358 SOLARIS_MODCTL_MODNVL_TRUE='#'
12359 SOLARIS_MODCTL_MODNVL_FALSE=
12360fi
12361
12362
12363
12364# Solaris-specific check determining whether nscd (name switch cache daemon)
12365# attaches its door at /system/volatile/name_service_door (Solaris)
12366# or at /var/run/name_service_door (illumos).
12367#
12368# Note that /var/run is a symlink to /system/volatile on Solaris
12369# but not vice versa on illumos.
12370#
12371# C-level symbol: SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE
12372# Automake-level symbol: SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE
12373#
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nscd door location (Solaris-specific)" >&5
12375$as_echo_n "checking for nscd door location (Solaris-specific)... " >&6; }
12376if test -e /system/volatile/name_service_door; then
12377 solaris_nscd_door_system_volatile=yes
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /system/volatile/name_service_door" >&5
12379$as_echo "/system/volatile/name_service_door" >&6; }
12380
12381$as_echo "#define SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE 1" >>confdefs.h
12382
12383else
12384 solaris_nscd_door_system_volatile=no
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/run/name_service_door" >&5
12386$as_echo "/var/run/name_service_door" >&6; }
12387fi
12388 if test x$solaris_nscd_door_system_volatile = xyes; then
12389 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE=
12390 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE='#'
12391else
12392 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE='#'
12393 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE=
12394fi
12395
12396
12397
12398# Solaris-specific check determining if the new gethrt() fasttrap is available.
12399#
12400# New fasttrap (available on Solaris 11):
12401# hrt_t *gethrt(void);
12402#
12403# C-level symbol: SOLARIS_GETHRT_FASTTRAP
12404# Automake-level symbol: SOLARIS_GETHRT_FASTTRAP
12405#
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`gethrt' fasttrap (Solaris-specific)" >&5
12407$as_echo_n "checking for the new \`gethrt' fasttrap (Solaris-specific)... " >&6; }
12408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409/* end confdefs.h. */
12410
12411#include <sys/trap.h>
12412
12413int
12414main ()
12415{
12416
12417 return !T_GETHRT;
12418
12419 ;
12420 return 0;
12421}
12422_ACEOF
12423if ac_fn_c_try_compile "$LINENO"; then :
12424
12425solaris_gethrt_fasttrap=yes
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12427$as_echo "yes" >&6; }
12428
12429$as_echo "#define SOLARIS_GETHRT_FASTTRAP 1" >>confdefs.h
12430
12431
12432else
12433
12434solaris_gethrt_fasttrap=no
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436$as_echo "no" >&6; }
12437
12438fi
12439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12440 if test x$solaris_gethrt_fasttrap = xyes; then
12441 SOLARIS_GETHRT_FASTTRAP_TRUE=
12442 SOLARIS_GETHRT_FASTTRAP_FALSE='#'
12443else
12444 SOLARIS_GETHRT_FASTTRAP_TRUE='#'
12445 SOLARIS_GETHRT_FASTTRAP_FALSE=
12446fi
12447
12448
12449
12450# Solaris-specific check determining if the new get_zone_offset() fasttrap
12451# is available.
12452#
12453# New fasttrap (available on Solaris 11):
12454# zonehrtoffset_t *get_zone_offset(void);
12455#
12456# C-level symbol: SOLARIS_GETZONEOFFSET_FASTTRAP
12457# Automake-level symbol: SOLARIS_GETZONEOFFSET_FASTTRAP
12458#
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`get_zone_offset' fasttrap (Solaris-specific)" >&5
12460$as_echo_n "checking for the new \`get_zone_offset' fasttrap (Solaris-specific)... " >&6; }
12461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462/* end confdefs.h. */
12463
12464#include <sys/trap.h>
12465
12466int
12467main ()
12468{
12469
12470 return !T_GETZONEOFFSET;
12471
12472 ;
12473 return 0;
12474}
12475_ACEOF
12476if ac_fn_c_try_compile "$LINENO"; then :
12477
12478solaris_getzoneoffset_fasttrap=yes
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12480$as_echo "yes" >&6; }
12481
12482$as_echo "#define SOLARIS_GETZONEOFFSET_FASTTRAP 1" >>confdefs.h
12483
12484
12485else
12486
12487solaris_getzoneoffset_fasttrap=no
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489$as_echo "no" >&6; }
12490
12491fi
12492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12493 if test x$solaris_getzoneoffset_fasttrap = xyes; then
12494 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE=
12495 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE='#'
12496else
12497 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE='#'
12498 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE=
12499fi
12500
12501
12502
12503# Solaris-specific check determining if the execve() syscall
12504# takes fourth argument (flags) or not.
12505#
12506# Old syscall (available on illumos):
12507# int execve(const char *fname, const char **argv, const char **envp);
12508#
12509# New syscall (available on Solaris):
12510# int execve(uintptr_t file, const char **argv, const char **envp, int flags);
12511#
12512# If the new syscall is present then it will fail with EINVAL (because flags
12513# are invalid); if the old syscall is available then it will fail with ENOENT
12514# (because the file could not be found).
12515#
12516# C-level symbol: SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS
12517# Automake-level symbol: SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS
12518#
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the \`execve' syscall accepts flags (Solaris-specific)" >&5
12520$as_echo_n "checking if the \`execve' syscall accepts flags (Solaris-specific)... " >&6; }
12521if test "$cross_compiling" = yes; then :
12522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12524as_fn_error $? "cannot run test program while cross compiling
12525See \`config.log' for more details" "$LINENO" 5; }
12526else
12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528/* end confdefs.h. */
12529
12530#include <sys/syscall.h>
12531#include <errno.h>
12532
12533int
12534main ()
12535{
12536
12537 errno = 0;
12538 syscall(SYS_execve, "/no/existing/path", 0, 0, 0xdeadbeef, 0, 0);
12539 return !(errno == EINVAL);
12540
12541 ;
12542 return 0;
12543}
12544_ACEOF
12545if ac_fn_c_try_run "$LINENO"; then :
12546
12547solaris_execve_syscall_takes_flags=yes
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12549$as_echo "yes" >&6; }
12550
12551$as_echo "#define SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS 1" >>confdefs.h
12552
12553
12554else
12555
12556solaris_execve_syscall_takes_flags=no
12557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558$as_echo "no" >&6; }
12559
12560fi
12561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12562 conftest.$ac_objext conftest.beam conftest.$ac_ext
12563fi
12564
12565 if test x$solaris_execve_syscall_takes_flags = xyes; then
12566 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE=
12567 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE='#'
12568else
12569 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE='#'
12570 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE=
12571fi
12572
12573
12574
12575# Solaris-specific check determining version of the repository cache protocol.
12576# Every Solaris version uses a different one, ranging from 21 to current 25.
12577# The check is very ugly, though.
12578#
12579# C-level symbol: SOLARIS_REPCACHE_PROTOCOL_VERSION vv
12580# Automake-level symbol: none
12581#
12582# Extract the first word of "dis", so it can be a program name with args.
12583set dummy dis; ac_word=$2
12584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12585$as_echo_n "checking for $ac_word... " >&6; }
12586if ${ac_cv_path_DIS_PATH+:} false; then :
12587 $as_echo_n "(cached) " >&6
12588else
12589 case $DIS_PATH in
12590 [\\/]* | ?:[\\/]*)
12591 ac_cv_path_DIS_PATH="$DIS_PATH" # Let the user override the test with a path.
12592 ;;
12593 *)
12594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595for as_dir in $PATH
12596do
12597 IFS=$as_save_IFS
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12601 ac_cv_path_DIS_PATH="$as_dir/$ac_word$ac_exec_ext"
12602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12603 break 2
12604 fi
12605done
12606 done
12607IFS=$as_save_IFS
12608
12609 test -z "$ac_cv_path_DIS_PATH" && ac_cv_path_DIS_PATH="false"
12610 ;;
12611esac
12612fi
12613DIS_PATH=$ac_cv_path_DIS_PATH
12614if test -n "$DIS_PATH"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIS_PATH" >&5
12616$as_echo "$DIS_PATH" >&6; }
12617else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619$as_echo "no" >&6; }
12620fi
12621
12622
12623if test "x$DIS_PATH" = "xfalse"; then
12624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12626as_fn_error $? "Object code disassembler (\`dis') not found.
12627See \`config.log' for more details" "$LINENO" 5; }
12628fi
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scf_handle_bind in -lscf" >&5
12630$as_echo_n "checking for scf_handle_bind in -lscf... " >&6; }
12631if ${ac_cv_lib_scf_scf_handle_bind+:} false; then :
12632 $as_echo_n "(cached) " >&6
12633else
12634 ac_check_lib_save_LIBS=$LIBS
12635LIBS="-lscf $LIBS"
12636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637/* end confdefs.h. */
12638
12639/* Override any GCC internal prototype to avoid an error.
12640 Use char because int might match the return type of a GCC
12641 builtin and then its argument prototype would still apply. */
12642#ifdef __cplusplus
12643extern "C"
12644#endif
12645char scf_handle_bind ();
12646int
12647main ()
12648{
12649return scf_handle_bind ();
12650 ;
12651 return 0;
12652}
12653_ACEOF
12654if ac_fn_c_try_link "$LINENO"; then :
12655 ac_cv_lib_scf_scf_handle_bind=yes
12656else
12657 ac_cv_lib_scf_scf_handle_bind=no
12658fi
12659rm -f core conftest.err conftest.$ac_objext \
12660 conftest$ac_exeext conftest.$ac_ext
12661LIBS=$ac_check_lib_save_LIBS
12662fi
12663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_scf_handle_bind" >&5
12664$as_echo "$ac_cv_lib_scf_scf_handle_bind" >&6; }
12665if test "x$ac_cv_lib_scf_scf_handle_bind" = xyes; then :
12666 cat >>confdefs.h <<_ACEOF
12667#define HAVE_LIBSCF 1
12668_ACEOF
12669
12670 LIBS="-lscf $LIBS"
12671
12672else
12673
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Function \`scf_handle_bind' was not found in \`libscf'." >&5
12675$as_echo "$as_me: WARNING: Function \`scf_handle_bind' was not found in \`libscf'." >&2;}
12676 as_fn_error $? "Cannot determine version of the repository cache protocol." "$LINENO" 5
12677
12678fi
12679
12680
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of the repository cache protocol (Solaris-specific)" >&5
12682$as_echo_n "checking for version of the repository cache protocol (Solaris-specific)... " >&6; }
12683if test "X$VGCONF_ARCH_PRI" = "Xamd64"; then
12684 libscf=/usr/lib/64/libscf.so.1
12685else
12686 libscf=/usr/lib/libscf.so.1
12687fi
12688if ! $DIS_PATH -F scf_handle_bind $libscf | grep -q 0x526570; then
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Function \`scf_handle_bind' does not contain repository cache protocol version." >&5
12690$as_echo "$as_me: WARNING: Function \`scf_handle_bind' does not contain repository cache protocol version." >&2;}
12691 as_fn_error $? "Cannot determine version of the repository cache protocol." "$LINENO" 5
12692fi
12693hex=$( $DIS_PATH -F scf_handle_bind $libscf | sed -n 's/.*0x526570\(..\).*/\1/p' )
12694if test -z "$hex"; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Version of the repository cache protocol is empty?!" >&5
12696$as_echo "$as_me: WARNING: Version of the repository cache protocol is empty?!" >&2;}
12697 as_fn_error $? "Cannot determine version of the repository cache protocol." "$LINENO" 5
12698fi
12699version=$( printf "%d\n" 0x$hex )
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
12701$as_echo "$version" >&6; }
12702
12703cat >>confdefs.h <<_ACEOF
12704#define SOLARIS_REPCACHE_PROTOCOL_VERSION $version
12705_ACEOF
12706
12707
12708
12709# Solaris-specific check determining if "sysstat" segment reservation type
12710# is available.
12711#
12712# New "sysstat" segment reservation (available on Solaris 12):
12713# - program header type: PT_SUNW_SYSSTAT
12714# - auxiliary vector entry: AT_SUN_SYSSTAT_ADDR
12715#
12716# C-level symbol: SOLARIS_RESERVE_SYSSTAT_ADDR
12717# Automake-level symbol: SOLARIS_RESERVE_SYSSTAT_ADDR
12718#
12719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`sysstat' segment reservation (Solaris-specific)" >&5
12720$as_echo_n "checking for the new \`sysstat' segment reservation (Solaris-specific)... " >&6; }
12721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722/* end confdefs.h. */
12723
12724#include <sys/auxv.h>
12725
12726int
12727main ()
12728{
12729
12730 return !AT_SUN_SYSSTAT_ADDR;
12731
12732 ;
12733 return 0;
12734}
12735_ACEOF
12736if ac_fn_c_try_compile "$LINENO"; then :
12737
12738solaris_reserve_sysstat_addr=yes
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12740$as_echo "yes" >&6; }
12741
12742$as_echo "#define SOLARIS_RESERVE_SYSSTAT_ADDR 1" >>confdefs.h
12743
12744
12745else
12746
12747solaris_reserve_sysstat_addr=no
12748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749$as_echo "no" >&6; }
12750
12751fi
12752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 if test x$solaris_reserve_sysstat_addr = xyes; then
12754 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE=
12755 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE='#'
12756else
12757 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE='#'
12758 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE=
12759fi
12760
12761
12762
12763# Solaris-specific check determining if "sysstat_zone" segment reservation type
12764# is available.
12765#
12766# New "sysstat_zone" segment reservation (available on Solaris 12):
12767# - program header type: PT_SUNW_SYSSTAT_ZONE
12768# - auxiliary vector entry: AT_SUN_SYSSTAT_ZONE_ADDR
12769#
12770# C-level symbol: SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR
12771# Automake-level symbol: SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR
12772#
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`sysstat_zone' segment reservation (Solaris-specific)" >&5
12774$as_echo_n "checking for the new \`sysstat_zone' segment reservation (Solaris-specific)... " >&6; }
12775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776/* end confdefs.h. */
12777
12778#include <sys/auxv.h>
12779
12780int
12781main ()
12782{
12783
12784 return !AT_SUN_SYSSTAT_ZONE_ADDR;
12785
12786 ;
12787 return 0;
12788}
12789_ACEOF
12790if ac_fn_c_try_compile "$LINENO"; then :
12791
12792solaris_reserve_sysstat_zone_addr=yes
12793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12794$as_echo "yes" >&6; }
12795
12796$as_echo "#define SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR 1" >>confdefs.h
12797
12798
12799else
12800
12801solaris_reserve_sysstat_zone_addr=no
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803$as_echo "no" >&6; }
12804
12805fi
12806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807 if test x$solaris_reserve_sysstat_zone_addr = xyes; then
12808 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE=
12809 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE='#'
12810else
12811 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE='#'
12812 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE=
12813fi
12814
12815
12816
12817# Solaris-specific check determining if the system_stats() syscall is available
12818# (on newer Solaris).
12819#
12820# C-level symbol: SOLARIS_SYSTEM_STATS_SYSCALL
12821# Automake-level symbol: SOLARIS_SYSTEM_STATS_SYSCALL
12822#
12823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`system_stats' syscall (Solaris-specific)" >&5
12824$as_echo_n "checking for the \`system_stats' syscall (Solaris-specific)... " >&6; }
12825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826/* end confdefs.h. */
12827
12828#include <sys/syscall.h>
12829
12830int
12831main ()
12832{
12833
12834 return !SYS_system_stats;
12835
12836 ;
12837 return 0;
12838}
12839_ACEOF
12840if ac_fn_c_try_compile "$LINENO"; then :
12841
12842solaris_system_stats_syscall=yes
12843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12844$as_echo "yes" >&6; }
12845
12846$as_echo "#define SOLARIS_SYSTEM_STATS_SYSCALL 1" >>confdefs.h
12847
12848
12849else
12850
12851solaris_system_stats_syscall=no
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853$as_echo "no" >&6; }
12854
12855fi
12856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12857 if test x$solaris_system_stats_syscall = xyes; then
12858 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE=
12859 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE='#'
12860else
12861 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE='#'
12862 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE=
12863fi
12864
12865
12866
12867# Solaris-specific check determining if fpregset_t defines struct _fpchip_state
12868# (on newer illumos) or struct fpchip_state (Solaris, older illumos).
12869#
12870# C-level symbol: SOLARIS_FPCHIP_STATE_TAKES_UNDERSCORE
12871# Automake-level symbol: none
12872#
12873ac_fn_c_check_type "$LINENO" "struct _fpchip_state" "ac_cv_type_struct__fpchip_state" "#include <sys/regset.h>
12874"
12875if test "x$ac_cv_type_struct__fpchip_state" = xyes; then :
12876 solaris_fpchip_state_takes_underscore=yes
12877else
12878 solaris_fpchip_state_takes_underscore=no
12879fi
12880
12881if test "$solaris_fpchip_state_takes_underscore" = "yes"; then
12882
12883$as_echo "#define SOLARIS_FPCHIP_STATE_TAKES_UNDERSCORE 1" >>confdefs.h
12884
12885fi
12886
12887
12888# Solaris-specific check determining if schedctl page shared between kernel
12889# and userspace program is executable (illumos, older Solaris) or not (newer
12890# Solaris).
12891#
12892# C-level symbol: SOLARIS_SCHEDCTL_PAGE_EXEC
12893# Automake-level symbol: none
12894#
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if schedctl page is executable (Solaris-specific)" >&5
12896$as_echo_n "checking if schedctl page is executable (Solaris-specific)... " >&6; }
12897if test "$cross_compiling" = yes; then :
12898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12900as_fn_error $? "cannot run test program while cross compiling
12901See \`config.log' for more details" "$LINENO" 5; }
12902else
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904/* end confdefs.h. */
12905
12906#include <assert.h>
12907#include <fcntl.h>
12908#include <procfs.h>
12909#include <schedctl.h>
12910#include <stdio.h>
12911#include <unistd.h>
12912
12913int
12914main ()
12915{
12916
12917 schedctl_t *scp = schedctl_init();
12918 if (scp == NULL)
12919 return 1;
12920
12921 int fd = open("/proc/self/map", O_RDONLY);
12922 assert(fd >= 0);
12923
12924 prmap_t map;
12925 ssize_t rd;
12926 while ((rd = read(fd, &map, sizeof(map))) == sizeof(map)) {
12927 if (map.pr_vaddr == ((uintptr_t) scp & PAGEMASK)) {
12928 fprintf(stderr, "%#lx [%zu] %s\n", map.pr_vaddr, map.pr_size,
12929 (map.pr_mflags & MA_EXEC) ? "x" : "no-x");
12930 return (map.pr_mflags & MA_EXEC);
12931 }
12932 }
12933
12934 return 1;
12935
12936 ;
12937 return 0;
12938}
12939_ACEOF
12940if ac_fn_c_try_run "$LINENO"; then :
12941
12942solaris_schedctl_page_exec=no
12943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944$as_echo "no" >&6; }
12945
12946else
12947
12948solaris_schedctl_page_exec=yes
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12950$as_echo "yes" >&6; }
12951
12952$as_echo "#define SOLARIS_SCHEDCTL_PAGE_EXEC 1" >>confdefs.h
12953
12954
12955fi
12956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12957 conftest.$ac_objext conftest.beam conftest.$ac_ext
12958fi
12959
12960
12961
12962# Solaris-specific check determining if PT_SUNWDTRACE program header provides
12963# scratch space for DTrace fasttrap provider (illumos, older Solaris) or just
12964# an initial thread pointer for libc (newer Solaris).
12965#
12966# C-level symbol: SOLARIS_PT_SUNDWTRACE_THRP
12967# Automake-level symbol: none
12968#
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if PT_SUNWDTRACE serves for initial thread pointer (Solaris-specific)" >&5
12970$as_echo_n "checking if PT_SUNWDTRACE serves for initial thread pointer (Solaris-specific)... " >&6; }
12971if test "$cross_compiling" = yes; then :
12972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12974as_fn_error $? "cannot run test program while cross compiling
12975See \`config.log' for more details" "$LINENO" 5; }
12976else
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978/* end confdefs.h. */
12979
12980#include <sys/fasttrap_isa.h>
12981
12982int
12983main ()
12984{
12985
12986 return !FT_SCRATCHSIZE;
12987
12988 ;
12989 return 0;
12990}
12991_ACEOF
12992if ac_fn_c_try_run "$LINENO"; then :
12993
12994solaris_pt_sunwdtrace_thrp=yes
12995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12996$as_echo "yes" >&6; }
12997
12998$as_echo "#define SOLARIS_PT_SUNDWTRACE_THRP 1" >>confdefs.h
12999
13000
13001else
13002
13003solaris_pt_sunwdtrace_thrp=no
13004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005$as_echo "no" >&6; }
13006
13007fi
13008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13009 conftest.$ac_objext conftest.beam conftest.$ac_ext
13010fi
13011
13012
13013else
13014 if false; then
13015 SOLARIS_SUN_STUDIO_AS_TRUE=
13016 SOLARIS_SUN_STUDIO_AS_FALSE='#'
13017else
13018 SOLARIS_SUN_STUDIO_AS_TRUE='#'
13019 SOLARIS_SUN_STUDIO_AS_FALSE=
13020fi
13021
13022 if false; then
13023 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE=
13024 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE='#'
13025else
13026 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE='#'
13027 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE=
13028fi
13029
13030 if false; then
13031 SOLARIS_PROC_CMDLINE_TRUE=
13032 SOLARIS_PROC_CMDLINE_FALSE='#'
13033else
13034 SOLARIS_PROC_CMDLINE_TRUE='#'
13035 SOLARIS_PROC_CMDLINE_FALSE=
13036fi
13037
13038 if false; then
13039 SOLARIS_OLD_SYSCALLS_TRUE=
13040 SOLARIS_OLD_SYSCALLS_FALSE='#'
13041else
13042 SOLARIS_OLD_SYSCALLS_TRUE='#'
13043 SOLARIS_OLD_SYSCALLS_FALSE=
13044fi
13045
13046 if false; then
13047 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE=
13048 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE='#'
13049else
13050 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE='#'
13051 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE=
13052fi
13053
13054 if false; then
13055 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE=
13056 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE='#'
13057else
13058 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE='#'
13059 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE=
13060fi
13061
13062 if false; then
13063 SOLARIS_LWP_NAME_SYSCALL_TRUE=
13064 SOLARIS_LWP_NAME_SYSCALL_FALSE='#'
13065else
13066 SOLARIS_LWP_NAME_SYSCALL_TRUE='#'
13067 SOLARIS_LWP_NAME_SYSCALL_FALSE=
13068fi
13069
13070 if false; then
13071 SOLARIS_GETRANDOM_SYSCALL_TRUE=
13072 SOLARIS_GETRANDOM_SYSCALL_FALSE='#'
13073else
13074 SOLARIS_GETRANDOM_SYSCALL_TRUE='#'
13075 SOLARIS_GETRANDOM_SYSCALL_FALSE=
13076fi
13077
13078 if false; then
13079 SOLARIS_ZONE_DEFUNCT_TRUE=
13080 SOLARIS_ZONE_DEFUNCT_FALSE='#'
13081else
13082 SOLARIS_ZONE_DEFUNCT_TRUE='#'
13083 SOLARIS_ZONE_DEFUNCT_FALSE=
13084fi
13085
13086 if false; then
13087 SOLARIS_AUDITON_STAT_TRUE=
13088 SOLARIS_AUDITON_STAT_FALSE='#'
13089else
13090 SOLARIS_AUDITON_STAT_TRUE='#'
13091 SOLARIS_AUDITON_STAT_FALSE=
13092fi
13093
13094 if false; then
13095 SOLARIS_SHM_NEW_TRUE=
13096 SOLARIS_SHM_NEW_FALSE='#'
13097else
13098 SOLARIS_SHM_NEW_TRUE='#'
13099 SOLARIS_SHM_NEW_FALSE=
13100fi
13101
13102 if false; then
13103 SOLARIS_PRXREGSET_T_TRUE=
13104 SOLARIS_PRXREGSET_T_FALSE='#'
13105else
13106 SOLARIS_PRXREGSET_T_TRUE='#'
13107 SOLARIS_PRXREGSET_T_FALSE=
13108fi
13109
13110 if false; then
13111 SOLARIS_FREALPATHAT_SYSCALL_TRUE=
13112 SOLARIS_FREALPATHAT_SYSCALL_FALSE='#'
13113else
13114 SOLARIS_FREALPATHAT_SYSCALL_TRUE='#'
13115 SOLARIS_FREALPATHAT_SYSCALL_FALSE=
13116fi
13117
13118 if false; then
13119 SOLARIS_UUIDSYS_SYSCALL_TRUE=
13120 SOLARIS_UUIDSYS_SYSCALL_FALSE='#'
13121else
13122 SOLARIS_UUIDSYS_SYSCALL_TRUE='#'
13123 SOLARIS_UUIDSYS_SYSCALL_FALSE=
13124fi
13125
13126 if false; then
13127 SOLARIS_TNDB_GET_TNIP_TRUE=
13128 SOLARIS_TNDB_GET_TNIP_FALSE='#'
13129else
13130 SOLARIS_TNDB_GET_TNIP_TRUE='#'
13131 SOLARIS_TNDB_GET_TNIP_FALSE=
13132fi
13133
13134 if false; then
13135 SOLARIS_TSOL_CLEARANCE_TRUE=
13136 SOLARIS_TSOL_CLEARANCE_FALSE='#'
13137else
13138 SOLARIS_TSOL_CLEARANCE_TRUE='#'
13139 SOLARIS_TSOL_CLEARANCE_FALSE=
13140fi
13141
13142 if false; then
13143 SOLARIS_PSET_GET_NAME_TRUE=
13144 SOLARIS_PSET_GET_NAME_FALSE='#'
13145else
13146 SOLARIS_PSET_GET_NAME_TRUE='#'
13147 SOLARIS_PSET_GET_NAME_FALSE=
13148fi
13149
13150 if false; then
13151 SOLARIS_UTIMESYS_SYSCALL_TRUE=
13152 SOLARIS_UTIMESYS_SYSCALL_FALSE='#'
13153else
13154 SOLARIS_UTIMESYS_SYSCALL_TRUE='#'
13155 SOLARIS_UTIMESYS_SYSCALL_FALSE=
13156fi
13157
13158 if false; then
13159 SOLARIS_UTIMENSAT_SYSCALL_TRUE=
13160 SOLARIS_UTIMENSAT_SYSCALL_FALSE='#'
13161else
13162 SOLARIS_UTIMENSAT_SYSCALL_TRUE='#'
13163 SOLARIS_UTIMENSAT_SYSCALL_FALSE=
13164fi
13165
13166 if false; then
13167 SOLARIS_SPAWN_SYSCALL_TRUE=
13168 SOLARIS_SPAWN_SYSCALL_FALSE='#'
13169else
13170 SOLARIS_SPAWN_SYSCALL_TRUE='#'
13171 SOLARIS_SPAWN_SYSCALL_FALSE=
13172fi
13173
13174 if false; then
13175 SOLARIS_MODCTL_MODNVL_TRUE=
13176 SOLARIS_MODCTL_MODNVL_FALSE='#'
13177else
13178 SOLARIS_MODCTL_MODNVL_TRUE='#'
13179 SOLARIS_MODCTL_MODNVL_FALSE=
13180fi
13181
13182 if false; then
13183 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE=
13184 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE='#'
13185else
13186 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE='#'
13187 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE=
13188fi
13189
13190 if false; then
13191 SOLARIS_GETHRT_FASTTRAP_TRUE=
13192 SOLARIS_GETHRT_FASTTRAP_FALSE='#'
13193else
13194 SOLARIS_GETHRT_FASTTRAP_TRUE='#'
13195 SOLARIS_GETHRT_FASTTRAP_FALSE=
13196fi
13197
13198 if false; then
13199 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE=
13200 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE='#'
13201else
13202 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE='#'
13203 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE=
13204fi
13205
13206 if false; then
13207 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE=
13208 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE='#'
13209else
13210 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE='#'
13211 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE=
13212fi
13213
13214 if false; then
13215 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE=
13216 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE='#'
13217else
13218 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE='#'
13219 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE=
13220fi
13221
13222 if false; then
13223 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE=
13224 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE='#'
13225else
13226 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE='#'
13227 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE=
13228fi
13229
13230 if false; then
13231 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE=
13232 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE='#'
13233else
13234 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE='#'
13235 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE=
13236fi
13237
13238fi # test "$VGCONF_OS" = "solaris"
13239
13240
13241#----------------------------------------------------------------------------
13242# Checks for C header files.
13243#----------------------------------------------------------------------------
13244
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13246$as_echo_n "checking for ANSI C header files... " >&6; }
13247if ${ac_cv_header_stdc+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249else
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251/* end confdefs.h. */
13252#include <stdlib.h>
13253#include <stdarg.h>
13254#include <string.h>
13255#include <float.h>
13256
13257int
13258main ()
13259{
13260
13261 ;
13262 return 0;
13263}
13264_ACEOF
13265if ac_fn_c_try_compile "$LINENO"; then :
13266 ac_cv_header_stdc=yes
13267else
13268 ac_cv_header_stdc=no
13269fi
13270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13271
13272if test $ac_cv_header_stdc = yes; then
13273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275/* end confdefs.h. */
13276#include <string.h>
13277
13278_ACEOF
13279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13280 $EGREP "memchr" >/dev/null 2>&1; then :
13281
13282else
13283 ac_cv_header_stdc=no
13284fi
13285rm -f conftest*
13286
13287fi
13288
13289if test $ac_cv_header_stdc = yes; then
13290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292/* end confdefs.h. */
13293#include <stdlib.h>
13294
13295_ACEOF
13296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13297 $EGREP "free" >/dev/null 2>&1; then :
13298
13299else
13300 ac_cv_header_stdc=no
13301fi
13302rm -f conftest*
13303
13304fi
13305
13306if test $ac_cv_header_stdc = yes; then
13307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13308 if test "$cross_compiling" = yes; then :
13309 :
13310else
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312/* end confdefs.h. */
13313#include <ctype.h>
13314#include <stdlib.h>
13315#if ((' ' & 0x0FF) == 0x020)
13316# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13317# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13318#else
13319# define ISLOWER(c) \
13320 (('a' <= (c) && (c) <= 'i') \
13321 || ('j' <= (c) && (c) <= 'r') \
13322 || ('s' <= (c) && (c) <= 'z'))
13323# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13324#endif
13325
13326#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13327int
13328main ()
13329{
13330 int i;
13331 for (i = 0; i < 256; i++)
13332 if (XOR (islower (i), ISLOWER (i))
13333 || toupper (i) != TOUPPER (i))
13334 return 2;
13335 return 0;
13336}
13337_ACEOF
13338if ac_fn_c_try_run "$LINENO"; then :
13339
13340else
13341 ac_cv_header_stdc=no
13342fi
13343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13344 conftest.$ac_objext conftest.beam conftest.$ac_ext
13345fi
13346
13347fi
13348fi
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13350$as_echo "$ac_cv_header_stdc" >&6; }
13351if test $ac_cv_header_stdc = yes; then
13352
13353$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13354
13355fi
13356
13357for ac_header in \
13358 asm/unistd.h \
13359 endian.h \
13360 mqueue.h \
13361 sys/endian.h \
13362 sys/epoll.h \
13363 sys/eventfd.h \
13364 sys/klog.h \
13365 sys/poll.h \
13366 sys/prctl.h \
13367 sys/signal.h \
13368 sys/signalfd.h \
13369 sys/syscall.h \
13370 sys/sysnvl.h \
13371 sys/time.h \
13372 sys/types.h \
13373
13374do :
13375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13376ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13377if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13378 cat >>confdefs.h <<_ACEOF
13379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13380_ACEOF
13381
13382fi
13383
13384done
13385
13386
13387# Verify whether the <linux/futex.h> header is usable.
13388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if <linux/futex.h> is usable" >&5
13389$as_echo_n "checking if <linux/futex.h> is usable... " >&6; }
13390
13391save_CFLAGS="$CFLAGS"
13392CFLAGS="$CFLAGS -D__user="
13393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394/* end confdefs.h. */
13395
13396#include <linux/futex.h>
13397
13398int
13399main ()
13400{
13401
13402 return FUTEX_WAIT;
13403
13404 ;
13405 return 0;
13406}
13407_ACEOF
13408if ac_fn_c_try_compile "$LINENO"; then :
13409
13410ac_have_usable_linux_futex_h=yes
13411
13412$as_echo "#define HAVE_USABLE_LINUX_FUTEX_H 1" >>confdefs.h
13413
13414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13415$as_echo "yes" >&6; }
13416
13417else
13418
13419ac_have_usable_linux_futex_h=no
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421$as_echo "no" >&6; }
13422
13423fi
13424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13425CFLAGS="$save_CFLAGS"
13426
13427
13428#----------------------------------------------------------------------------
13429# Checks for typedefs, structures, and compiler characteristics.
13430#----------------------------------------------------------------------------
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13432$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13433if ${ac_cv_type_uid_t+:} false; then :
13434 $as_echo_n "(cached) " >&6
13435else
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437/* end confdefs.h. */
13438#include <sys/types.h>
13439
13440_ACEOF
13441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13442 $EGREP "uid_t" >/dev/null 2>&1; then :
13443 ac_cv_type_uid_t=yes
13444else
13445 ac_cv_type_uid_t=no
13446fi
13447rm -f conftest*
13448
13449fi
13450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13451$as_echo "$ac_cv_type_uid_t" >&6; }
13452if test $ac_cv_type_uid_t = no; then
13453
13454$as_echo "#define uid_t int" >>confdefs.h
13455
13456
13457$as_echo "#define gid_t int" >>confdefs.h
13458
13459fi
13460
13461ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13462if test "x$ac_cv_type_off_t" = xyes; then :
13463
13464else
13465
13466cat >>confdefs.h <<_ACEOF
13467#define off_t long int
13468_ACEOF
13469
13470fi
13471
13472ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13473if test "x$ac_cv_type_size_t" = xyes; then :
13474
13475else
13476
13477cat >>confdefs.h <<_ACEOF
13478#define size_t unsigned int
13479_ACEOF
13480
13481fi
13482
13483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13484$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13485if ${ac_cv_header_time+:} false; then :
13486 $as_echo_n "(cached) " >&6
13487else
13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489/* end confdefs.h. */
13490#include <sys/types.h>
13491#include <sys/time.h>
13492#include <time.h>
13493
13494int
13495main ()
13496{
13497if ((struct tm *) 0)
13498return 0;
13499 ;
13500 return 0;
13501}
13502_ACEOF
13503if ac_fn_c_try_compile "$LINENO"; then :
13504 ac_cv_header_time=yes
13505else
13506 ac_cv_header_time=no
13507fi
13508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13509fi
13510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13511$as_echo "$ac_cv_header_time" >&6; }
13512if test $ac_cv_header_time = yes; then
13513
13514$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13515
13516fi
13517
13518
13519
13520#----------------------------------------------------------------------------
13521# Checks for library functions.
13522#----------------------------------------------------------------------------
13523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
13524$as_echo_n "checking for working memcmp... " >&6; }
13525if ${ac_cv_func_memcmp_working+:} false; then :
13526 $as_echo_n "(cached) " >&6
13527else
13528 if test "$cross_compiling" = yes; then :
13529 ac_cv_func_memcmp_working=no
13530else
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532/* end confdefs.h. */
13533$ac_includes_default
13534int
13535main ()
13536{
13537
13538 /* Some versions of memcmp are not 8-bit clean. */
13539 char c0 = '\100', c1 = '\200', c2 = '\201';
13540 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13541 return 1;
13542
13543 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13544 or more and with at least one buffer not starting on a 4-byte boundary.
13545 William Lewis provided this test program. */
13546 {
13547 char foo[21];
13548 char bar[21];
13549 int i;
13550 for (i = 0; i < 4; i++)
13551 {
13552 char *a = foo + i;
13553 char *b = bar + i;
13554 strcpy (a, "--------01111111");
13555 strcpy (b, "--------10000000");
13556 if (memcmp (a, b, 16) >= 0)
13557 return 1;
13558 }
13559 return 0;
13560 }
13561
13562 ;
13563 return 0;
13564}
13565_ACEOF
13566if ac_fn_c_try_run "$LINENO"; then :
13567 ac_cv_func_memcmp_working=yes
13568else
13569 ac_cv_func_memcmp_working=no
13570fi
13571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13572 conftest.$ac_objext conftest.beam conftest.$ac_ext
13573fi
13574
13575fi
13576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
13577$as_echo "$ac_cv_func_memcmp_working" >&6; }
13578test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13579 *" memcmp.$ac_objext "* ) ;;
13580 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13581 ;;
13582esac
13583
13584
13585
13586
13587
13588 for ac_header in $ac_header_list
13589do :
13590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13591ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13592"
13593if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13594 cat >>confdefs.h <<_ACEOF
13595#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13596_ACEOF
13597
13598fi
13599
13600done
13601
13602
13603
13604
13605
13606
13607
13608
13609for ac_func in getpagesize
13610do :
13611 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13612if test "x$ac_cv_func_getpagesize" = xyes; then :
13613 cat >>confdefs.h <<_ACEOF
13614#define HAVE_GETPAGESIZE 1
13615_ACEOF
13616
13617fi
13618done
13619
13620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13621$as_echo_n "checking for working mmap... " >&6; }
13622if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13623 $as_echo_n "(cached) " >&6
13624else
13625 if test "$cross_compiling" = yes; then :
13626 ac_cv_func_mmap_fixed_mapped=no
13627else
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629/* end confdefs.h. */
13630$ac_includes_default
13631/* malloc might have been renamed as rpl_malloc. */
13632#undef malloc
13633
13634/* Thanks to Mike Haertel and Jim Avera for this test.
13635 Here is a matrix of mmap possibilities:
13636 mmap private not fixed
13637 mmap private fixed at somewhere currently unmapped
13638 mmap private fixed at somewhere already mapped
13639 mmap shared not fixed
13640 mmap shared fixed at somewhere currently unmapped
13641 mmap shared fixed at somewhere already mapped
13642 For private mappings, we should verify that changes cannot be read()
13643 back from the file, nor mmap's back from the file at a different
13644 address. (There have been systems where private was not correctly
13645 implemented like the infamous i386 svr4.0, and systems where the
13646 VM page cache was not coherent with the file system buffer cache
13647 like early versions of FreeBSD and possibly contemporary NetBSD.)
13648 For shared mappings, we should conversely verify that changes get
13649 propagated back to all the places they're supposed to be.
13650
13651 Grep wants private fixed already mapped.
13652 The main things grep needs to know about mmap are:
13653 * does it exist and is it safe to write into the mmap'd area
13654 * how to use it (BSD variants) */
13655
13656#include <fcntl.h>
13657#include <sys/mman.h>
13658
13659#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13660char *malloc ();
13661#endif
13662
13663/* This mess was copied from the GNU getpagesize.h. */
13664#ifndef HAVE_GETPAGESIZE
13665# ifdef _SC_PAGESIZE
13666# define getpagesize() sysconf(_SC_PAGESIZE)
13667# else /* no _SC_PAGESIZE */
13668# ifdef HAVE_SYS_PARAM_H
13669# include <sys/param.h>
13670# ifdef EXEC_PAGESIZE
13671# define getpagesize() EXEC_PAGESIZE
13672# else /* no EXEC_PAGESIZE */
13673# ifdef NBPG
13674# define getpagesize() NBPG * CLSIZE
13675# ifndef CLSIZE
13676# define CLSIZE 1
13677# endif /* no CLSIZE */
13678# else /* no NBPG */
13679# ifdef NBPC
13680# define getpagesize() NBPC
13681# else /* no NBPC */
13682# ifdef PAGESIZE
13683# define getpagesize() PAGESIZE
13684# endif /* PAGESIZE */
13685# endif /* no NBPC */
13686# endif /* no NBPG */
13687# endif /* no EXEC_PAGESIZE */
13688# else /* no HAVE_SYS_PARAM_H */
13689# define getpagesize() 8192 /* punt totally */
13690# endif /* no HAVE_SYS_PARAM_H */
13691# endif /* no _SC_PAGESIZE */
13692
13693#endif /* no HAVE_GETPAGESIZE */
13694
13695int
13696main ()
13697{
13698 char *data, *data2, *data3;
13699 const char *cdata2;
13700 int i, pagesize;
13701 int fd, fd2;
13702
13703 pagesize = getpagesize ();
13704
13705 /* First, make a file with some known garbage in it. */
13706 data = (char *) malloc (pagesize);
13707 if (!data)
13708 return 1;
13709 for (i = 0; i < pagesize; ++i)
13710 *(data + i) = rand ();
13711 umask (0);
13712 fd = creat ("conftest.mmap", 0600);
13713 if (fd < 0)
13714 return 2;
13715 if (write (fd, data, pagesize) != pagesize)
13716 return 3;
13717 close (fd);
13718
13719 /* Next, check that the tail of a page is zero-filled. File must have
13720 non-zero length, otherwise we risk SIGBUS for entire page. */
13721 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13722 if (fd2 < 0)
13723 return 4;
13724 cdata2 = "";
13725 if (write (fd2, cdata2, 1) != 1)
13726 return 5;
13727 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13728 if (data2 == MAP_FAILED)
13729 return 6;
13730 for (i = 0; i < pagesize; ++i)
13731 if (*(data2 + i))
13732 return 7;
13733 close (fd2);
13734 if (munmap (data2, pagesize))
13735 return 8;
13736
13737 /* Next, try to mmap the file at a fixed address which already has
13738 something else allocated at it. If we can, also make sure that
13739 we see the same garbage. */
13740 fd = open ("conftest.mmap", O_RDWR);
13741 if (fd < 0)
13742 return 9;
13743 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13744 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13745 return 10;
13746 for (i = 0; i < pagesize; ++i)
13747 if (*(data + i) != *(data2 + i))
13748 return 11;
13749
13750 /* Finally, make sure that changes to the mapped area do not
13751 percolate back to the file as seen by read(). (This is a bug on
13752 some variants of i386 svr4.0.) */
13753 for (i = 0; i < pagesize; ++i)
13754 *(data2 + i) = *(data2 + i) + 1;
13755 data3 = (char *) malloc (pagesize);
13756 if (!data3)
13757 return 12;
13758 if (read (fd, data3, pagesize) != pagesize)
13759 return 13;
13760 for (i = 0; i < pagesize; ++i)
13761 if (*(data + i) != *(data3 + i))
13762 return 14;
13763 close (fd);
13764 return 0;
13765}
13766_ACEOF
13767if ac_fn_c_try_run "$LINENO"; then :
13768 ac_cv_func_mmap_fixed_mapped=yes
13769else
13770 ac_cv_func_mmap_fixed_mapped=no
13771fi
13772rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13773 conftest.$ac_objext conftest.beam conftest.$ac_ext
13774fi
13775
13776fi
13777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13778$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13779if test $ac_cv_func_mmap_fixed_mapped = yes; then
13780
13781$as_echo "#define HAVE_MMAP 1" >>confdefs.h
13782
13783fi
13784rm -f conftest.mmap conftest.txt
13785
13786
13787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13788$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13789if ${ac_cv_lib_pthread_pthread_create+:} false; then :
13790 $as_echo_n "(cached) " >&6
13791else
13792 ac_check_lib_save_LIBS=$LIBS
13793LIBS="-lpthread $LIBS"
13794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795/* end confdefs.h. */
13796
13797/* Override any GCC internal prototype to avoid an error.
13798 Use char because int might match the return type of a GCC
13799 builtin and then its argument prototype would still apply. */
13800#ifdef __cplusplus
13801extern "C"
13802#endif
13803char pthread_create ();
13804int
13805main ()
13806{
13807return pthread_create ();
13808 ;
13809 return 0;
13810}
13811_ACEOF
13812if ac_fn_c_try_link "$LINENO"; then :
13813 ac_cv_lib_pthread_pthread_create=yes
13814else
13815 ac_cv_lib_pthread_pthread_create=no
13816fi
13817rm -f core conftest.err conftest.$ac_objext \
13818 conftest$ac_exeext conftest.$ac_ext
13819LIBS=$ac_check_lib_save_LIBS
13820fi
13821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13822$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13823if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
13824 cat >>confdefs.h <<_ACEOF
13825#define HAVE_LIBPTHREAD 1
13826_ACEOF
13827
13828 LIBS="-lpthread $LIBS"
13829
13830fi
13831
13832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13833$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13834if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13835 $as_echo_n "(cached) " >&6
13836else
13837 ac_check_lib_save_LIBS=$LIBS
13838LIBS="-lrt $LIBS"
13839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840/* end confdefs.h. */
13841
13842/* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13845#ifdef __cplusplus
13846extern "C"
13847#endif
13848char clock_gettime ();
13849int
13850main ()
13851{
13852return clock_gettime ();
13853 ;
13854 return 0;
13855}
13856_ACEOF
13857if ac_fn_c_try_link "$LINENO"; then :
13858 ac_cv_lib_rt_clock_gettime=yes
13859else
13860 ac_cv_lib_rt_clock_gettime=no
13861fi
13862rm -f core conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864LIBS=$ac_check_lib_save_LIBS
13865fi
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13867$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13868if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13869 cat >>confdefs.h <<_ACEOF
13870#define HAVE_LIBRT 1
13871_ACEOF
13872
13873 LIBS="-lrt $LIBS"
13874
13875fi
13876
13877
13878for ac_func in \
13879 clock_gettime\
13880 epoll_create \
13881 epoll_pwait \
13882 klogctl \
13883 mallinfo \
13884 memchr \
13885 memset \
13886 mkdir \
13887 mremap \
13888 ppoll \
13889 pthread_barrier_init \
13890 pthread_condattr_setclock \
13891 pthread_mutex_timedlock \
13892 pthread_rwlock_timedrdlock \
13893 pthread_rwlock_timedwrlock \
13894 pthread_spin_lock \
13895 pthread_yield \
13896 pthread_setname_np \
13897 readlinkat \
13898 semtimedop \
13899 signalfd \
13900 sigwaitinfo \
13901 strchr \
13902 strdup \
13903 strpbrk \
13904 strrchr \
13905 strstr \
13906 syscall \
13907 utimensat \
13908 process_vm_readv \
13909 process_vm_writev \
13910
13911do :
13912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13913ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13914if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13915 cat >>confdefs.h <<_ACEOF
13916#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13917_ACEOF
13918
13919fi
13920done
13921
13922
13923# AC_CHECK_LIB adds any library found to the variable LIBS, and links these
13924# libraries with any shared object and/or executable. This is NOT what we
13925# want for e.g. vgpreload_core-x86-linux.so
13926LIBS=""
13927
13928 if test x$ac_cv_func_pthread_barrier_init = xyes; then
13929 HAVE_PTHREAD_BARRIER_TRUE=
13930 HAVE_PTHREAD_BARRIER_FALSE='#'
13931else
13932 HAVE_PTHREAD_BARRIER_TRUE='#'
13933 HAVE_PTHREAD_BARRIER_FALSE=
13934fi
13935
13936 if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
13937 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
13938 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
13939else
13940 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
13941 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
13942fi
13943
13944 if test x$ac_cv_func_pthread_spin_lock = xyes; then
13945 HAVE_PTHREAD_SPINLOCK_TRUE=
13946 HAVE_PTHREAD_SPINLOCK_FALSE='#'
13947else
13948 HAVE_PTHREAD_SPINLOCK_TRUE='#'
13949 HAVE_PTHREAD_SPINLOCK_FALSE=
13950fi
13951
13952 if test x$ac_cv_func_pthread_setname_np = xyes; then
13953 HAVE_PTHREAD_SETNAME_NP_TRUE=
13954 HAVE_PTHREAD_SETNAME_NP_FALSE='#'
13955else
13956 HAVE_PTHREAD_SETNAME_NP_TRUE='#'
13957 HAVE_PTHREAD_SETNAME_NP_FALSE=
13958fi
13959
13960
13961if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \
13962 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX ; then
13963
13964$as_echo "#define DISABLE_PTHREAD_SPINLOCK_INTERCEPT 1" >>confdefs.h
13965
13966fi
13967
13968#----------------------------------------------------------------------------
13969# MPI checks
13970#----------------------------------------------------------------------------
13971# Do we have a useable MPI setup on the primary and/or secondary targets?
13972# On Linux, by default, assumes mpicc and -m32/-m64
13973# Note: this is a kludge in that it assumes the specified mpicc
13974# understands -m32/-m64 regardless of what is specified using
13975# --with-mpicc=.
13976# Extract the first word of "mpicc", so it can be a program name with args.
13977set dummy mpicc; ac_word=$2
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13979$as_echo_n "checking for $ac_word... " >&6; }
13980if ${ac_cv_path_MPI_CC+:} false; then :
13981 $as_echo_n "(cached) " >&6
13982else
13983 case $MPI_CC in
13984 [\\/]* | ?:[\\/]*)
13985 ac_cv_path_MPI_CC="$MPI_CC" # Let the user override the test with a path.
13986 ;;
13987 *)
13988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13989as_dummy="$PATH:/usr/lib/openmpi/bin:/usr/lib64/openmpi/bin"
13990for as_dir in $as_dummy
13991do
13992 IFS=$as_save_IFS
13993 test -z "$as_dir" && as_dir=.
13994 for ac_exec_ext in '' $ac_executable_extensions; do
13995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13996 ac_cv_path_MPI_CC="$as_dir/$ac_word$ac_exec_ext"
13997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13998 break 2
13999 fi
14000done
14001 done
14002IFS=$as_save_IFS
14003
14004 test -z "$ac_cv_path_MPI_CC" && ac_cv_path_MPI_CC="mpicc"
14005 ;;
14006esac
14007fi
14008MPI_CC=$ac_cv_path_MPI_CC
14009if test -n "$MPI_CC"; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPI_CC" >&5
14011$as_echo "$MPI_CC" >&6; }
14012else
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014$as_echo "no" >&6; }
14015fi
14016
14017
14018
14019mflag_primary=
14020if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
14021 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
14022 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
14023 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \
14024 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX \
14025 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS ; then
14026 mflag_primary=$FLAG_M32
14027elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
14028 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
14029 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX \
14030 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
14031 mflag_primary=$FLAG_M64
14032elif test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN ; then
14033 mflag_primary="$FLAG_M32 -arch i386"
14034elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
14035 mflag_primary="$FLAG_M64 -arch x86_64"
14036fi
14037
14038mflag_secondary=
14039if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
14040 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
14041 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_SOLARIS ; then
14042 mflag_secondary=$FLAG_M32
14043elif test x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
14044 mflag_secondary="$FLAG_M32 -arch i386"
14045fi
14046
14047
14048
14049# Check whether --with-mpicc was given.
14050if test "${with_mpicc+set}" = set; then :
14051 withval=$with_mpicc; MPI_CC=$withval
14052
14053fi
14054
14055
14056
14057## We AM_COND_IF here instead of automake "if" in mpi/Makefile.am so that we can
14058## use these values in the check for a functioning mpicc.
14059##
14060## We leave the MPI_FLAG_M3264_ logic in mpi/Makefile.am and assume that
14061## mflag_primary/mflag_secondary are sufficient approximations of that behavior
14062
14063if test -z "$VGCONF_OS_IS_LINUX_TRUE"; then :
14064 CFLAGS_MPI="-g -O -fno-omit-frame-pointer -Wall -fpic"
14065 LDFLAGS_MPI="-fpic -shared"
14066fi
14067
14068if test -z "$VGCONF_OS_IS_DARWIN_TRUE"; then :
14069 CFLAGS_MPI="-g -O -fno-omit-frame-pointer -Wall -dynamic"
14070 LDFLAGS_MPI="-dynamic -dynamiclib -all_load"
14071fi
14072
14073if test -z "$VGCONF_OS_IS_SOLARIS_TRUE"; then :
14074 CFLAGS_MPI="-g -O -fno-omit-frame-pointer -Wall -fpic"
14075 LDFLAGS_MPI="-fpic -shared"
14076fi
14077
14078
14079
14080
14081
14082## See if MPI_CC works for the primary target
14083##
14084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
14085$as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
14086saved_CC=$CC
14087saved_CFLAGS=$CFLAGS
14088CC=$MPI_CC
14089CFLAGS="$CFLAGS_MPI $mflag_primary"
14090saved_LDFLAGS="$LDFLAGS"
14091LDFLAGS="$LDFLAGS_MPI $mflag_primary"
14092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14093/* end confdefs.h. */
14094
14095#include <mpi.h>
14096#include <stdio.h>
14097
14098int
14099main ()
14100{
14101
14102 int ni, na, nd, comb;
14103 int r = MPI_Init(NULL,NULL);
14104 r |= MPI_Type_get_envelope( MPI_INT, &ni, &na, &nd, &comb );
14105 r |= MPI_Finalize();
14106 return r;
14107
14108 ;
14109 return 0;
14110}
14111_ACEOF
14112if ac_fn_c_try_link "$LINENO"; then :
14113
14114ac_have_mpi2_pri=yes
14115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
14116$as_echo "yes, $MPI_CC" >&6; }
14117
14118else
14119
14120ac_have_mpi2_pri=no
14121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14122$as_echo "no" >&6; }
14123
14124fi
14125rm -f core conftest.err conftest.$ac_objext \
14126 conftest$ac_exeext conftest.$ac_ext
14127CC=$saved_CC
14128CFLAGS=$saved_CFLAGS
14129LDFLAGS="$saved_LDFLAGS"
14130 if test x$ac_have_mpi2_pri = xyes; then
14131 BUILD_MPIWRAP_PRI_TRUE=
14132 BUILD_MPIWRAP_PRI_FALSE='#'
14133else
14134 BUILD_MPIWRAP_PRI_TRUE='#'
14135 BUILD_MPIWRAP_PRI_FALSE=
14136fi
14137
14138
14139## See if MPI_CC works for the secondary target. Complication: what if
14140## there is no secondary target? We need this to then fail.
14141## Kludge this by making MPI_CC something which will surely fail in
14142## such a case.
14143##
14144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
14145$as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
14146saved_CC=$CC
14147saved_CFLAGS=$CFLAGS
14148saved_LDFLAGS="$LDFLAGS"
14149LDFLAGS="$LDFLAGS_MPI $mflag_secondary"
14150if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
14151 CC="$MPI_CC this will surely fail"
14152else
14153 CC=$MPI_CC
14154fi
14155CFLAGS="$CFLAGS_MPI $mflag_secondary"
14156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157/* end confdefs.h. */
14158
14159#include <mpi.h>
14160#include <stdio.h>
14161
14162int
14163main ()
14164{
14165
14166 int ni, na, nd, comb;
14167 int r = MPI_Init(NULL,NULL);
14168 r |= MPI_Type_get_envelope( MPI_INT, &ni, &na, &nd, &comb );
14169 r |= MPI_Finalize();
14170 return r;
14171
14172 ;
14173 return 0;
14174}
14175_ACEOF
14176if ac_fn_c_try_link "$LINENO"; then :
14177
14178ac_have_mpi2_sec=yes
14179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
14180$as_echo "yes, $MPI_CC" >&6; }
14181
14182else
14183
14184ac_have_mpi2_sec=no
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14186$as_echo "no" >&6; }
14187
14188fi
14189rm -f core conftest.err conftest.$ac_objext \
14190 conftest$ac_exeext conftest.$ac_ext
14191CC=$saved_CC
14192CFLAGS=$saved_CFLAGS
14193LDFLAGS="$saved_LDFLAGS"
14194 if test x$ac_have_mpi2_sec = xyes; then
14195 BUILD_MPIWRAP_SEC_TRUE=
14196 BUILD_MPIWRAP_SEC_FALSE='#'
14197else
14198 BUILD_MPIWRAP_SEC_TRUE='#'
14199 BUILD_MPIWRAP_SEC_FALSE=
14200fi
14201
14202
14203
14204#----------------------------------------------------------------------------
14205# Other library checks
14206#----------------------------------------------------------------------------
14207# There now follow some tests for Boost, and OpenMP. These
14208# tests are present because Drd has some regression tests that use
14209# these packages. All regression test programs all compiled only
14210# for the primary target. And so it is important that the configure
14211# checks that follow, use the correct -m32 or -m64 flag for the
14212# primary target (called $mflag_primary). Otherwise, we can end up
14213# in a situation (eg) where, on amd64-linux, the test for Boost checks
14214# for usable 64-bit Boost facilities, but because we are doing a 32-bit
14215# only build (meaning, the primary target is x86-linux), the build
14216# of the regtest programs that use Boost fails, because they are
14217# build as 32-bit (IN THIS EXAMPLE).
14218#
14219# Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
14220# NEEDED BY THE REGRESSION TEST PROGRAMS.
14221
14222
14223# Check whether the boost library 1.35 or later has been installed.
14224# The Boost.Threads library has undergone a major rewrite in version 1.35.0.
14225
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
14227$as_echo_n "checking for boost... " >&6; }
14228
14229ac_ext=cpp
14230ac_cpp='$CXXCPP $CPPFLAGS'
14231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14234
14235safe_CXXFLAGS=$CXXFLAGS
14236CXXFLAGS="$mflag_primary"
14237safe_LIBS="$LIBS"
14238LIBS="-lboost_thread-mt -lboost_system-mt $LIBS"
14239
14240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241/* end confdefs.h. */
14242
14243#include <boost/thread.hpp>
14244static void thread_func(void)
14245{ }
14246int main(int argc, char** argv)
14247{
14248 boost::thread t(thread_func);
14249 return 0;
14250}
14251
14252_ACEOF
14253if ac_fn_cxx_try_link "$LINENO"; then :
14254
14255ac_have_boost_1_35=yes
14256
14257BOOST_LIBS="-lboost_thread-mt -lboost_system-mt"
14258
14259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14260$as_echo "yes" >&6; }
14261
14262else
14263
14264ac_have_boost_1_35=no
14265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266$as_echo "no" >&6; }
14267
14268fi
14269rm -f core conftest.err conftest.$ac_objext \
14270 conftest$ac_exeext conftest.$ac_ext
14271
14272LIBS="$safe_LIBS"
14273CXXFLAGS=$safe_CXXFLAGS
14274ac_ext=c
14275ac_cpp='$CPP $CPPFLAGS'
14276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14278ac_compiler_gnu=$ac_cv_c_compiler_gnu
14279
14280
14281 if test x$ac_have_boost_1_35 = xyes; then
14282 HAVE_BOOST_1_35_TRUE=
14283 HAVE_BOOST_1_35_FALSE='#'
14284else
14285 HAVE_BOOST_1_35_TRUE='#'
14286 HAVE_BOOST_1_35_FALSE=
14287fi
14288
14289
14290
14291# does this compiler support -fopenmp, does it have the include file
14292# <omp.h> and does it have libgomp ?
14293
14294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
14295$as_echo_n "checking for OpenMP... " >&6; }
14296
14297safe_CFLAGS=$CFLAGS
14298CFLAGS="-fopenmp $mflag_primary -Werror"
14299
14300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301/* end confdefs.h. */
14302
14303#include <omp.h>
14304int main(int argc, char** argv)
14305{
14306 omp_set_dynamic(0);
14307 return 0;
14308}
14309
14310_ACEOF
14311if ac_fn_c_try_link "$LINENO"; then :
14312
14313ac_have_openmp=yes
14314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14315$as_echo "yes" >&6; }
14316
14317else
14318
14319ac_have_openmp=no
14320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321$as_echo "no" >&6; }
14322
14323fi
14324rm -f core conftest.err conftest.$ac_objext \
14325 conftest$ac_exeext conftest.$ac_ext
14326CFLAGS=$safe_CFLAGS
14327
14328 if test x$ac_have_openmp = xyes; then
14329 HAVE_OPENMP_TRUE=
14330 HAVE_OPENMP_FALSE='#'
14331else
14332 HAVE_OPENMP_TRUE='#'
14333 HAVE_OPENMP_FALSE=
14334fi
14335
14336
14337
14338# Check for __builtin_popcount
14339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount()" >&5
14340$as_echo_n "checking for __builtin_popcount()... " >&6; }
14341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342/* end confdefs.h. */
14343
14344
14345int
14346main ()
14347{
14348
14349 __builtin_popcount(2);
14350 return 0;
14351
14352 ;
14353 return 0;
14354}
14355_ACEOF
14356if ac_fn_c_try_link "$LINENO"; then :
14357
14358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14359$as_echo "yes" >&6; }
14360
14361$as_echo "#define HAVE_BUILTIN_POPCOUT 1" >>confdefs.h
14362
14363
14364else
14365
14366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367$as_echo "no" >&6; }
14368
14369fi
14370rm -f core conftest.err conftest.$ac_objext \
14371 conftest$ac_exeext conftest.$ac_ext
14372
14373# Check for __builtin_clz
14374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz()" >&5
14375$as_echo_n "checking for __builtin_clz()... " >&6; }
14376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377/* end confdefs.h. */
14378
14379
14380int
14381main ()
14382{
14383
14384 __builtin_clz(2);
14385 return 0;
14386
14387 ;
14388 return 0;
14389}
14390_ACEOF
14391if ac_fn_c_try_link "$LINENO"; then :
14392
14393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14394$as_echo "yes" >&6; }
14395
14396$as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
14397
14398
14399else
14400
14401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14402$as_echo "no" >&6; }
14403
14404fi
14405rm -f core conftest.err conftest.$ac_objext \
14406 conftest$ac_exeext conftest.$ac_ext
14407
14408# Check for __builtin_ctz
14409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz()" >&5
14410$as_echo_n "checking for __builtin_ctz()... " >&6; }
14411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412/* end confdefs.h. */
14413
14414
14415int
14416main ()
14417{
14418
14419 __builtin_ctz(2);
14420 return 0;
14421
14422 ;
14423 return 0;
14424}
14425_ACEOF
14426if ac_fn_c_try_link "$LINENO"; then :
14427
14428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14429$as_echo "yes" >&6; }
14430
14431$as_echo "#define HAVE_BUILTIN_CTZ 1" >>confdefs.h
14432
14433
14434else
14435
14436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14437$as_echo "no" >&6; }
14438
14439fi
14440rm -f core conftest.err conftest.$ac_objext \
14441 conftest$ac_exeext conftest.$ac_ext
14442
14443# does this compiler have built-in functions for atomic memory access for the
14444# primary target ?
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_add_and_fetch for the primary target" >&5
14446$as_echo_n "checking if gcc supports __sync_add_and_fetch for the primary target... " >&6; }
14447
14448safe_CFLAGS=$CFLAGS
14449CFLAGS="$mflag_primary"
14450
14451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452/* end confdefs.h. */
14453
14454int
14455main ()
14456{
14457
14458 int variable = 1;
14459 return (__sync_bool_compare_and_swap(&variable, 1, 2)
14460 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
14461
14462 ;
14463 return 0;
14464}
14465_ACEOF
14466if ac_fn_c_try_link "$LINENO"; then :
14467
14468 ac_have_builtin_atomic_primary=yes
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14470$as_echo "yes" >&6; }
14471
14472$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
14473
14474
14475else
14476
14477 ac_have_builtin_atomic_primary=no
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479$as_echo "no" >&6; }
14480
14481fi
14482rm -f core conftest.err conftest.$ac_objext \
14483 conftest$ac_exeext conftest.$ac_ext
14484
14485CFLAGS=$safe_CFLAGS
14486
14487 if test x$ac_have_builtin_atomic_primary = xyes; then
14488 HAVE_BUILTIN_ATOMIC_TRUE=
14489 HAVE_BUILTIN_ATOMIC_FALSE='#'
14490else
14491 HAVE_BUILTIN_ATOMIC_TRUE='#'
14492 HAVE_BUILTIN_ATOMIC_FALSE=
14493fi
14494
14495
14496
14497# does this compiler have built-in functions for atomic memory access for the
14498# secondary target ?
14499
14500if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
14501
14502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_add_and_fetch for the secondary target" >&5
14503$as_echo_n "checking if gcc supports __sync_add_and_fetch for the secondary target... " >&6; }
14504
14505safe_CFLAGS=$CFLAGS
14506CFLAGS="$mflag_secondary"
14507
14508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509/* end confdefs.h. */
14510
14511int
14512main ()
14513{
14514
14515 int variable = 1;
14516 return (__sync_add_and_fetch(&variable, 1) ? 1 : 0)
14517
14518 ;
14519 return 0;
14520}
14521_ACEOF
14522if ac_fn_c_try_link "$LINENO"; then :
14523
14524 ac_have_builtin_atomic_secondary=yes
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14526$as_echo "yes" >&6; }
14527
14528else
14529
14530 ac_have_builtin_atomic_secondary=no
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14532$as_echo "no" >&6; }
14533
14534fi
14535rm -f core conftest.err conftest.$ac_objext \
14536 conftest$ac_exeext conftest.$ac_ext
14537
14538CFLAGS=$safe_CFLAGS
14539
14540fi
14541
14542 if test x$ac_have_builtin_atomic_secondary = xyes; then
14543 HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE=
14544 HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE='#'
14545else
14546 HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE='#'
14547 HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE=
14548fi
14549
14550
14551# does this compiler have built-in functions for atomic memory access on
14552# 64-bit integers for all targets ?
14553
14554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_add_and_fetch on uint64_t for all targets" >&5
14555$as_echo_n "checking if gcc supports __sync_add_and_fetch on uint64_t for all targets... " >&6; }
14556
14557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558/* end confdefs.h. */
14559
14560 #include <stdint.h>
14561
14562int
14563main ()
14564{
14565
14566 uint64_t variable = 1;
14567 return __sync_add_and_fetch(&variable, 1)
14568
14569 ;
14570 return 0;
14571}
14572_ACEOF
14573if ac_fn_c_try_link "$LINENO"; then :
14574
14575 ac_have_builtin_atomic64_primary=yes
14576
14577else
14578
14579 ac_have_builtin_atomic64_primary=no
14580
14581fi
14582rm -f core conftest.err conftest.$ac_objext \
14583 conftest$ac_exeext conftest.$ac_ext
14584
14585if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
14586
14587safe_CFLAGS=$CFLAGS
14588CFLAGS="$mflag_secondary"
14589
14590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591/* end confdefs.h. */
14592
14593 #include <stdint.h>
14594
14595int
14596main ()
14597{
14598
14599 uint64_t variable = 1;
14600 return __sync_add_and_fetch(&variable, 1)
14601
14602 ;
14603 return 0;
14604}
14605_ACEOF
14606if ac_fn_c_try_link "$LINENO"; then :
14607
14608 ac_have_builtin_atomic64_secondary=yes
14609
14610else
14611
14612 ac_have_builtin_atomic64_secondary=no
14613
14614fi
14615rm -f core conftest.err conftest.$ac_objext \
14616 conftest$ac_exeext conftest.$ac_ext
14617
14618CFLAGS=$safe_CFLAGS
14619
14620fi
14621
14622if test x$ac_have_builtin_atomic64_primary = xyes && \
14623 test x$VGCONF_PLATFORM_SEC_CAPS = x \
14624 -o x$ac_have_builtin_atomic64_secondary = xyes; then
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14626$as_echo "yes" >&6; }
14627 ac_have_builtin_atomic64=yes
14628else
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630$as_echo "no" >&6; }
14631 ac_have_builtin_atomic64=no
14632fi
14633
14634 if test x$ac_have_builtin_atomic64 = xyes; then
14635 HAVE_BUILTIN_ATOMIC64_TRUE=
14636 HAVE_BUILTIN_ATOMIC64_FALSE='#'
14637else
14638 HAVE_BUILTIN_ATOMIC64_TRUE='#'
14639 HAVE_BUILTIN_ATOMIC64_FALSE=
14640fi
14641
14642
14643
14644# does g++ have built-in functions for atomic memory access ?
14645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports __sync_add_and_fetch" >&5
14646$as_echo_n "checking if g++ supports __sync_add_and_fetch... " >&6; }
14647
14648safe_CXXFLAGS=$CXXFLAGS
14649CXXFLAGS="$mflag_primary"
14650
14651ac_ext=cpp
14652ac_cpp='$CXXCPP $CPPFLAGS'
14653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14656
14657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658/* end confdefs.h. */
14659
14660int
14661main ()
14662{
14663
14664 int variable = 1;
14665 return (__sync_bool_compare_and_swap(&variable, 1, 2)
14666 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
14667
14668 ;
14669 return 0;
14670}
14671_ACEOF
14672if ac_fn_cxx_try_link "$LINENO"; then :
14673
14674 ac_have_builtin_atomic_cxx=yes
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14676$as_echo "yes" >&6; }
14677
14678$as_echo "#define HAVE_BUILTIN_ATOMIC_CXX 1" >>confdefs.h
14679
14680
14681else
14682
14683 ac_have_builtin_atomic_cxx=no
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14685$as_echo "no" >&6; }
14686
14687fi
14688rm -f core conftest.err conftest.$ac_objext \
14689 conftest$ac_exeext conftest.$ac_ext
14690ac_ext=c
14691ac_cpp='$CPP $CPPFLAGS'
14692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14694ac_compiler_gnu=$ac_cv_c_compiler_gnu
14695
14696
14697CXXFLAGS=$safe_CXXFLAGS
14698
14699 if test x$ac_have_builtin_atomic_cxx = xyes; then
14700 HAVE_BUILTIN_ATOMIC_CXX_TRUE=
14701 HAVE_BUILTIN_ATOMIC_CXX_FALSE='#'
14702else
14703 HAVE_BUILTIN_ATOMIC_CXX_TRUE='#'
14704 HAVE_BUILTIN_ATOMIC_CXX_FALSE=
14705fi
14706
14707
14708
14709if test x$ac_have_usable_linux_futex_h = xyes \
14710 -a x$ac_have_builtin_atomic_primary = xyes; then
14711 ac_enable_linux_ticket_lock_primary=yes
14712fi
14713 if test x$ac_enable_linux_ticket_lock_primary = xyes; then
14714 ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE=
14715 ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE='#'
14716else
14717 ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE='#'
14718 ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE=
14719fi
14720
14721
14722if test x$VGCONF_PLATFORM_SEC_CAPS != x \
14723 -a x$ac_have_usable_linux_futex_h = xyes \
14724 -a x$ac_have_builtin_atomic_secondary = xyes; then
14725 ac_enable_linux_ticket_lock_secondary=yes
14726fi
14727 if test x$ac_enable_linux_ticket_lock_secondary = xyes; then
14728 ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE=
14729 ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE='#'
14730else
14731 ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE='#'
14732 ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE=
14733fi
14734
14735
14736
14737# does libstdc++ support annotating shared pointers ?
14738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libstdc++ supports annotating shared pointers" >&5
14739$as_echo_n "checking if libstdc++ supports annotating shared pointers... " >&6; }
14740
14741safe_CXXFLAGS=$CXXFLAGS
14742CXXFLAGS="-std=c++0x"
14743
14744ac_ext=cpp
14745ac_cpp='$CXXCPP $CPPFLAGS'
14746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14749
14750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751/* end confdefs.h. */
14752
14753 #include <memory>
14754
14755int
14756main ()
14757{
14758
14759 std::shared_ptr<int> p
14760
14761 ;
14762 return 0;
14763}
14764_ACEOF
14765if ac_fn_cxx_try_link "$LINENO"; then :
14766
14767 ac_have_shared_ptr=yes
14768
14769else
14770
14771 ac_have_shared_ptr=no
14772
14773fi
14774rm -f core conftest.err conftest.$ac_objext \
14775 conftest$ac_exeext conftest.$ac_ext
14776if test x$ac_have_shared_ptr = xyes; then
14777 # If compilation of the program below fails because of a syntax error
14778 # triggered by substituting one of the annotation macros then that
14779 # means that libstdc++ supports these macros.
14780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781/* end confdefs.h. */
14782
14783 #define _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(a) (a)----
14784 #define _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(a) (a)----
14785 #include <memory>
14786
14787int
14788main ()
14789{
14790
14791 std::shared_ptr<int> p
14792
14793 ;
14794 return 0;
14795}
14796_ACEOF
14797if ac_fn_cxx_try_link "$LINENO"; then :
14798
14799 ac_have_shared_pointer_annotation=no
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14801$as_echo "no" >&6; }
14802
14803else
14804
14805 ac_have_shared_pointer_annotation=yes
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14807$as_echo "yes" >&6; }
14808
14809$as_echo "#define HAVE_SHARED_POINTER_ANNOTATION 1" >>confdefs.h
14810
14811
14812fi
14813rm -f core conftest.err conftest.$ac_objext \
14814 conftest$ac_exeext conftest.$ac_ext
14815else
14816 ac_have_shared_pointer_annotation=no
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14818$as_echo "no" >&6; }
14819fi
14820ac_ext=c
14821ac_cpp='$CPP $CPPFLAGS'
14822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14824ac_compiler_gnu=$ac_cv_c_compiler_gnu
14825
14826
14827CXXFLAGS=$safe_CXXFLAGS
14828
14829 if test x$ac_have_shared_pointer_annotation = xyes; then
14830 HAVE_SHARED_POINTER_ANNOTATION_TRUE=
14831 HAVE_SHARED_POINTER_ANNOTATION_FALSE='#'
14832else
14833 HAVE_SHARED_POINTER_ANNOTATION_TRUE='#'
14834 HAVE_SHARED_POINTER_ANNOTATION_FALSE=
14835fi
14836
14837
14838
14839#----------------------------------------------------------------------------
14840# Ok. We're done checking.
14841#----------------------------------------------------------------------------
14842
14843# Nb: VEX/Makefile is generated from Makefile.vex.in.
14844ac_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 gdbserver_tests/Makefile gdbserver_tests/solaris/Makefile include/Makefile auxprogs/Makefile mpi/Makefile coregrind/Makefile memcheck/Makefile memcheck/tests/Makefile memcheck/tests/common/Makefile memcheck/tests/amd64/Makefile memcheck/tests/x86/Makefile memcheck/tests/linux/Makefile memcheck/tests/darwin/Makefile memcheck/tests/solaris/Makefile memcheck/tests/amd64-linux/Makefile memcheck/tests/arm64-linux/Makefile memcheck/tests/x86-linux/Makefile memcheck/tests/amd64-solaris/Makefile memcheck/tests/x86-solaris/Makefile memcheck/tests/ppc32/Makefile memcheck/tests/ppc64/Makefile memcheck/tests/s390x/Makefile memcheck/tests/vbit-test/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/ms_print lackey/Makefile lackey/tests/Makefile none/Makefile none/tests/Makefile none/tests/scripts/Makefile none/tests/amd64/Makefile none/tests/ppc32/Makefile none/tests/ppc64/Makefile none/tests/x86/Makefile none/tests/arm/Makefile none/tests/arm64/Makefile none/tests/s390x/Makefile none/tests/mips32/Makefile none/tests/mips64/Makefile none/tests/tilegx/Makefile none/tests/linux/Makefile none/tests/darwin/Makefile none/tests/solaris/Makefile none/tests/amd64-linux/Makefile none/tests/x86-linux/Makefile none/tests/amd64-darwin/Makefile none/tests/x86-darwin/Makefile none/tests/amd64-solaris/Makefile none/tests/x86-solaris/Makefile exp-sgcheck/Makefile exp-sgcheck/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 exp-bbv/tests/arm-linux/Makefile exp-dhat/Makefile exp-dhat/tests/Makefile shared/Makefile solaris/Makefile"
14845
14846ac_config_files="$ac_config_files coregrind/link_tool_exe_linux"
14847
14848ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin"
14849
14850ac_config_files="$ac_config_files coregrind/link_tool_exe_solaris"
14851
14852cat >confcache <<\_ACEOF
14853# This file is a shell script that caches the results of configure
14854# tests run on this system so they can be shared between configure
14855# scripts and configure runs, see configure's option --config-cache.
14856# It is not useful on other systems. If it contains results you don't
14857# want to keep, you may remove or edit it.
14858#
14859# config.status only pays attention to the cache file if you give it
14860# the --recheck option to rerun configure.
14861#
14862# `ac_cv_env_foo' variables (set or unset) will be overridden when
14863# loading this file, other *unset* `ac_cv_foo' will be assigned the
14864# following values.
14865
14866_ACEOF
14867
14868# The following way of writing the cache mishandles newlines in values,
14869# but we know of no workaround that is simple, portable, and efficient.
14870# So, we kill variables containing newlines.
14871# Ultrix sh set writes to stderr and can't be redirected directly,
14872# and sets the high bit in the cache file unless we assign to the vars.
14873(
14874 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14875 eval ac_val=\$$ac_var
14876 case $ac_val in #(
14877 *${as_nl}*)
14878 case $ac_var in #(
14879 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14880$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14881 esac
14882 case $ac_var in #(
14883 _ | IFS | as_nl) ;; #(
14884 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14885 *) { eval $ac_var=; unset $ac_var;} ;;
14886 esac ;;
14887 esac
14888 done
14889
14890 (set) 2>&1 |
14891 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14892 *${as_nl}ac_space=\ *)
14893 # `set' does not quote correctly, so add quotes: double-quote
14894 # substitution turns \\\\ into \\, and sed turns \\ into \.
14895 sed -n \
14896 "s/'/'\\\\''/g;
14897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14898 ;; #(
14899 *)
14900 # `set' quotes correctly as required by POSIX, so do not add quotes.
14901 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14902 ;;
14903 esac |
14904 sort
14905) |
14906 sed '
14907 /^ac_cv_env_/b end
14908 t clear
14909 :clear
14910 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14911 t end
14912 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14913 :end' >>confcache
14914if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14915 if test -w "$cache_file"; then
14916 if test "x$cache_file" != "x/dev/null"; then
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14918$as_echo "$as_me: updating cache $cache_file" >&6;}
14919 if test ! -f "$cache_file" || test -h "$cache_file"; then
14920 cat confcache >"$cache_file"
14921 else
14922 case $cache_file in #(
14923 */* | ?:*)
14924 mv -f confcache "$cache_file"$$ &&
14925 mv -f "$cache_file"$$ "$cache_file" ;; #(
14926 *)
14927 mv -f confcache "$cache_file" ;;
14928 esac
14929 fi
14930 fi
14931 else
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14933$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14934 fi
14935fi
14936rm -f confcache
14937
14938test "x$prefix" = xNONE && prefix=$ac_default_prefix
14939# Let make expand exec_prefix.
14940test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14941
14942DEFS=-DHAVE_CONFIG_H
14943
14944ac_libobjs=
14945ac_ltlibobjs=
14946U=
14947for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14948 # 1. Remove the extension, and $U if already installed.
14949 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14950 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14951 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14952 # will be set to the directory where LIBOBJS objects are built.
14953 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14954 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14955done
14956LIBOBJS=$ac_libobjs
14957
14958LTLIBOBJS=$ac_ltlibobjs
14959
14960
14961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14962$as_echo_n "checking that generated files are newer than configure... " >&6; }
14963 if test -n "$am_sleep_pid"; then
14964 # Hide warnings about reused PIDs.
14965 wait $am_sleep_pid 2>/dev/null
14966 fi
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14968$as_echo "done" >&6; }
14969 if test -n "$EXEEXT"; then
14970 am__EXEEXT_TRUE=
14971 am__EXEEXT_FALSE='#'
14972else
14973 am__EXEEXT_TRUE='#'
14974 am__EXEEXT_FALSE=
14975fi
14976
14977if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14978 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14979Usually this means the macro was only invoked conditionally." "$LINENO" 5
14980fi
14981if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14982 as_fn_error $? "conditional \"AMDEP\" was never defined.
14983Usually this means the macro was only invoked conditionally." "$LINENO" 5
14984fi
14985if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14986 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14987Usually this means the macro was only invoked conditionally." "$LINENO" 5
14988fi
14989if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14990 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
14991Usually this means the macro was only invoked conditionally." "$LINENO" 5
14992fi
14993if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14994 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14995Usually this means the macro was only invoked conditionally." "$LINENO" 5
14996fi
14997if test -z "${COMPILER_IS_CLANG_TRUE}" && test -z "${COMPILER_IS_CLANG_FALSE}"; then
14998 as_fn_error $? "conditional \"COMPILER_IS_CLANG\" was never defined.
14999Usually this means the macro was only invoked conditionally." "$LINENO" 5
15000fi
15001if test -z "${COMPILER_IS_ICC_TRUE}" && test -z "${COMPILER_IS_ICC_FALSE}"; then
15002 as_fn_error $? "conditional \"COMPILER_IS_ICC\" was never defined.
15003Usually this means the macro was only invoked conditionally." "$LINENO" 5
15004fi
15005if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
15006 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
15007Usually this means the macro was only invoked conditionally." "$LINENO" 5
15008fi
15009if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
15010 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
15011Usually this means the macro was only invoked conditionally." "$LINENO" 5
15012fi
15013if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
15014 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
15015Usually this means the macro was only invoked conditionally." "$LINENO" 5
15016fi
15017if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
15018 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
15019Usually this means the macro was only invoked conditionally." "$LINENO" 5
15020fi
15021if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
15022 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
15023Usually this means the macro was only invoked conditionally." "$LINENO" 5
15024fi
15025if test -z "${VGCONF_ARCHS_INCLUDE_ARM64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM64_FALSE}"; then
15026 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM64\" was never defined.
15027Usually this means the macro was only invoked conditionally." "$LINENO" 5
15028fi
15029if test -z "${VGCONF_ARCHS_INCLUDE_S390X_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_S390X_FALSE}"; then
15030 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_S390X\" was never defined.
15031Usually this means the macro was only invoked conditionally." "$LINENO" 5
15032fi
15033if test -z "${VGCONF_ARCHS_INCLUDE_MIPS32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_MIPS32_FALSE}"; then
15034 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_MIPS32\" was never defined.
15035Usually this means the macro was only invoked conditionally." "$LINENO" 5
15036fi
15037if test -z "${VGCONF_ARCHS_INCLUDE_MIPS64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_MIPS64_FALSE}"; then
15038 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_MIPS64\" was never defined.
15039Usually this means the macro was only invoked conditionally." "$LINENO" 5
15040fi
15041if test -z "${VGCONF_ARCHS_INCLUDE_TILEGX_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_TILEGX_FALSE}"; then
15042 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_TILEGX\" was never defined.
15043Usually this means the macro was only invoked conditionally." "$LINENO" 5
15044fi
15045if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
15046 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
15047Usually this means the macro was only invoked conditionally." "$LINENO" 5
15048fi
15049if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
15050 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
15051Usually this means the macro was only invoked conditionally." "$LINENO" 5
15052fi
15053if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
15054 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
15055Usually this means the macro was only invoked conditionally." "$LINENO" 5
15056fi
15057if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE}"; then
15058 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX\" was never defined.
15059Usually this means the macro was only invoked conditionally." "$LINENO" 5
15060fi
15061if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE}"; then
15062 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX\" was never defined.
15063Usually this means the macro was only invoked conditionally." "$LINENO" 5
15064fi
15065if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
15066 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
15067Usually this means the macro was only invoked conditionally." "$LINENO" 5
15068fi
15069if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE}"; then
15070 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX\" was never defined.
15071Usually this means the macro was only invoked conditionally." "$LINENO" 5
15072fi
15073if test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE}"; then
15074 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_S390X_LINUX\" was never defined.
15075Usually this means the macro was only invoked conditionally." "$LINENO" 5
15076fi
15077if test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE}"; then
15078 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX\" was never defined.
15079Usually this means the macro was only invoked conditionally." "$LINENO" 5
15080fi
15081if test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE}"; then
15082 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX\" was never defined.
15083Usually this means the macro was only invoked conditionally." "$LINENO" 5
15084fi
15085if test -z "${VGCONF_PLATFORMS_INCLUDE_TILEGX_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_TILEGX_LINUX_FALSE}"; then
15086 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_TILEGX_LINUX\" was never defined.
15087Usually this means the macro was only invoked conditionally." "$LINENO" 5
15088fi
15089if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
15090 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
15091Usually this means the macro was only invoked conditionally." "$LINENO" 5
15092fi
15093if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
15094 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
15095Usually this means the macro was only invoked conditionally." "$LINENO" 5
15096fi
15097if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE}"; then
15098 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS\" was never defined.
15099Usually this means the macro was only invoked conditionally." "$LINENO" 5
15100fi
15101if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE}"; then
15102 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS\" was never defined.
15103Usually this means the macro was only invoked conditionally." "$LINENO" 5
15104fi
15105if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
15106 as_fn_error $? "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
15107Usually this means the macro was only invoked conditionally." "$LINENO" 5
15108fi
15109if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
15110 as_fn_error $? "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
15111Usually this means the macro was only invoked conditionally." "$LINENO" 5
15112fi
15113if test -z "${VGCONF_OS_IS_SOLARIS_TRUE}" && test -z "${VGCONF_OS_IS_SOLARIS_FALSE}"; then
15114 as_fn_error $? "conditional \"VGCONF_OS_IS_SOLARIS\" was never defined.
15115Usually this means the macro was only invoked conditionally." "$LINENO" 5
15116fi
15117if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
15118 as_fn_error $? "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
15119Usually this means the macro was only invoked conditionally." "$LINENO" 5
15120fi
15121if test -z "${VGCONF_PLATVARIANT_IS_VANILLA_TRUE}" && test -z "${VGCONF_PLATVARIANT_IS_VANILLA_FALSE}"; then
15122 as_fn_error $? "conditional \"VGCONF_PLATVARIANT_IS_VANILLA\" was never defined.
15123Usually this means the macro was only invoked conditionally." "$LINENO" 5
15124fi
15125if test -z "${VGCONF_PLATVARIANT_IS_ANDROID_TRUE}" && test -z "${VGCONF_PLATVARIANT_IS_ANDROID_FALSE}"; then
15126 as_fn_error $? "conditional \"VGCONF_PLATVARIANT_IS_ANDROID\" was never defined.
15127Usually this means the macro was only invoked conditionally." "$LINENO" 5
15128fi
15129if test -z "${HAVE_AT_FDCWD_TRUE}" && test -z "${HAVE_AT_FDCWD_FALSE}"; then
15130 as_fn_error $? "conditional \"HAVE_AT_FDCWD\" was never defined.
15131Usually this means the macro was only invoked conditionally." "$LINENO" 5
15132fi
15133if test -z "${HAVE_GNU_STPNCPY_TRUE}" && test -z "${HAVE_GNU_STPNCPY_FALSE}"; then
15134 as_fn_error $? "conditional \"HAVE_GNU_STPNCPY\" was never defined.
15135Usually this means the macro was only invoked conditionally." "$LINENO" 5
15136fi
15137if test -z "${HAS_ISA_2_05_TRUE}" && test -z "${HAS_ISA_2_05_FALSE}"; then
15138 as_fn_error $? "conditional \"HAS_ISA_2_05\" was never defined.
15139Usually this means the macro was only invoked conditionally." "$LINENO" 5
15140fi
15141if test -z "${HAS_ISA_2_06_TRUE}" && test -z "${HAS_ISA_2_06_FALSE}"; then
15142 as_fn_error $? "conditional \"HAS_ISA_2_06\" was never defined.
15143Usually this means the macro was only invoked conditionally." "$LINENO" 5
15144fi
15145if test -z "${HAS_ISA_2_07_TRUE}" && test -z "${HAS_ISA_2_07_FALSE}"; then
15146 as_fn_error $? "conditional \"HAS_ISA_2_07\" was never defined.
15147Usually this means the macro was only invoked conditionally." "$LINENO" 5
15148fi
15149if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
15150 as_fn_error $? "conditional \"HAS_ALTIVEC\" was never defined.
15151Usually this means the macro was only invoked conditionally." "$LINENO" 5
15152fi
15153if test -z "${HAS_VSX_TRUE}" && test -z "${HAS_VSX_FALSE}"; then
15154 as_fn_error $? "conditional \"HAS_VSX\" was never defined.
15155Usually this means the macro was only invoked conditionally." "$LINENO" 5
15156fi
15157if test -z "${HAS_DFP_TRUE}" && test -z "${HAS_DFP_FALSE}"; then
15158 as_fn_error $? "conditional \"HAS_DFP\" was never defined.
15159Usually this means the macro was only invoked conditionally." "$LINENO" 5
15160fi
15161if test -z "${BUILD_DFP_TESTS_TRUE}" && test -z "${BUILD_DFP_TESTS_FALSE}"; then
15162 as_fn_error $? "conditional \"BUILD_DFP_TESTS\" was never defined.
15163Usually this means the macro was only invoked conditionally." "$LINENO" 5
15164fi
15165if test -z "${SUPPORTS_HTM_TRUE}" && test -z "${SUPPORTS_HTM_FALSE}"; then
15166 as_fn_error $? "conditional \"SUPPORTS_HTM\" was never defined.
15167Usually this means the macro was only invoked conditionally." "$LINENO" 5
15168fi
15169if test -z "${HAS_ISA_3_00_TRUE}" && test -z "${HAS_ISA_3_00_FALSE}"; then
15170 as_fn_error $? "conditional \"HAS_ISA_3_00\" was never defined.
15171Usually this means the macro was only invoked conditionally." "$LINENO" 5
15172fi
15173if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
15174 as_fn_error $? "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
15175Usually this means the macro was only invoked conditionally." "$LINENO" 5
15176fi
15177if test -z "${HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE}" && test -z "${HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE}"; then
15178 as_fn_error $? "conditional \"HAVE_DLINFO_RTLD_DI_TLS_MODID\" was never defined.
15179Usually this means the macro was only invoked conditionally." "$LINENO" 5
15180fi
15181if test -z "${CXX_CAN_INCLUDE_THREAD_HEADER_TRUE}" && test -z "${CXX_CAN_INCLUDE_THREAD_HEADER_FALSE}"; then
15182 as_fn_error $? "conditional \"CXX_CAN_INCLUDE_THREAD_HEADER\" was never defined.
15183Usually this means the macro was only invoked conditionally." "$LINENO" 5
15184fi
15185if test -z "${HAS_MLONG_DOUBLE_128_TRUE}" && test -z "${HAS_MLONG_DOUBLE_128_FALSE}"; then
15186 as_fn_error $? "conditional \"HAS_MLONG_DOUBLE_128\" was never defined.
15187Usually this means the macro was only invoked conditionally." "$LINENO" 5
15188fi
15189if test -z "${DWARF4_TRUE}" && test -z "${DWARF4_FALSE}"; then
15190 as_fn_error $? "conditional \"DWARF4\" was never defined.
15191Usually this means the macro was only invoked conditionally." "$LINENO" 5
15192fi
15193if test -z "${GZ_ZLIB_TRUE}" && test -z "${GZ_ZLIB_FALSE}"; then
15194 as_fn_error $? "conditional \"GZ_ZLIB\" was never defined.
15195Usually this means the macro was only invoked conditionally." "$LINENO" 5
15196fi
15197if test -z "${GZ_ZLIB_GNU_TRUE}" && test -z "${GZ_ZLIB_GNU_FALSE}"; then
15198 as_fn_error $? "conditional \"GZ_ZLIB_GNU\" was never defined.
15199Usually this means the macro was only invoked conditionally." "$LINENO" 5
15200fi
15201if test -z "${HAVE_NESTED_FUNCTIONS_TRUE}" && test -z "${HAVE_NESTED_FUNCTIONS_FALSE}"; then
15202 as_fn_error $? "conditional \"HAVE_NESTED_FUNCTIONS\" was never defined.
15203Usually this means the macro was only invoked conditionally." "$LINENO" 5
15204fi
15205if test -z "${HAVE_ASM_CONSTRAINT_P_TRUE}" && test -z "${HAVE_ASM_CONSTRAINT_P_FALSE}"; then
15206 as_fn_error $? "conditional \"HAVE_ASM_CONSTRAINT_P\" was never defined.
15207Usually this means the macro was only invoked conditionally." "$LINENO" 5
15208fi
15209if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
15210 as_fn_error $? "conditional \"BUILD_SSE3_TESTS\" was never defined.
15211Usually this means the macro was only invoked conditionally." "$LINENO" 5
15212fi
15213if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
15214 as_fn_error $? "conditional \"BUILD_SSSE3_TESTS\" was never defined.
15215Usually this means the macro was only invoked conditionally." "$LINENO" 5
15216fi
15217if test -z "${BUILD_PCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_PCLMULQDQ_TESTS_FALSE}"; then
15218 as_fn_error $? "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
15219Usually this means the macro was only invoked conditionally." "$LINENO" 5
15220fi
15221if test -z "${BUILD_VPCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_VPCLMULQDQ_TESTS_FALSE}"; then
15222 as_fn_error $? "conditional \"BUILD_VPCLMULQDQ_TESTS\" was never defined.
15223Usually this means the macro was only invoked conditionally." "$LINENO" 5
15224fi
15225if test -z "${BUILD_FMA4_TESTS_TRUE}" && test -z "${BUILD_FMA4_TESTS_FALSE}"; then
15226 as_fn_error $? "conditional \"BUILD_FMA4_TESTS\" was never defined.
15227Usually this means the macro was only invoked conditionally." "$LINENO" 5
15228fi
15229if test -z "${BUILD_LZCNT_TESTS_TRUE}" && test -z "${BUILD_LZCNT_TESTS_FALSE}"; then
15230 as_fn_error $? "conditional \"BUILD_LZCNT_TESTS\" was never defined.
15231Usually this means the macro was only invoked conditionally." "$LINENO" 5
15232fi
15233if test -z "${BUILD_LOOPNEL_TESTS_TRUE}" && test -z "${BUILD_LOOPNEL_TESTS_FALSE}"; then
15234 as_fn_error $? "conditional \"BUILD_LOOPNEL_TESTS\" was never defined.
15235Usually this means the macro was only invoked conditionally." "$LINENO" 5
15236fi
15237if test -z "${BUILD_ADDR32_TESTS_TRUE}" && test -z "${BUILD_ADDR32_TESTS_FALSE}"; then
15238 as_fn_error $? "conditional \"BUILD_ADDR32_TESTS\" was never defined.
15239Usually this means the macro was only invoked conditionally." "$LINENO" 5
15240fi
15241if test -z "${BUILD_SSE42_TESTS_TRUE}" && test -z "${BUILD_SSE42_TESTS_FALSE}"; then
15242 as_fn_error $? "conditional \"BUILD_SSE42_TESTS\" was never defined.
15243Usually this means the macro was only invoked conditionally." "$LINENO" 5
15244fi
15245if test -z "${BUILD_AVX_TESTS_TRUE}" && test -z "${BUILD_AVX_TESTS_FALSE}"; then
15246 as_fn_error $? "conditional \"BUILD_AVX_TESTS\" was never defined.
15247Usually this means the macro was only invoked conditionally." "$LINENO" 5
15248fi
15249if test -z "${BUILD_AVX2_TESTS_TRUE}" && test -z "${BUILD_AVX2_TESTS_FALSE}"; then
15250 as_fn_error $? "conditional \"BUILD_AVX2_TESTS\" was never defined.
15251Usually this means the macro was only invoked conditionally." "$LINENO" 5
15252fi
15253if test -z "${BUILD_TSX_TESTS_TRUE}" && test -z "${BUILD_TSX_TESTS_FALSE}"; then
15254 as_fn_error $? "conditional \"BUILD_TSX_TESTS\" was never defined.
15255Usually this means the macro was only invoked conditionally." "$LINENO" 5
15256fi
15257if test -z "${BUILD_BMI_TESTS_TRUE}" && test -z "${BUILD_BMI_TESTS_FALSE}"; then
15258 as_fn_error $? "conditional \"BUILD_BMI_TESTS\" was never defined.
15259Usually this means the macro was only invoked conditionally." "$LINENO" 5
15260fi
15261if test -z "${BUILD_FMA_TESTS_TRUE}" && test -z "${BUILD_FMA_TESTS_FALSE}"; then
15262 as_fn_error $? "conditional \"BUILD_FMA_TESTS\" was never defined.
15263Usually this means the macro was only invoked conditionally." "$LINENO" 5
15264fi
15265if test -z "${BUILD_MPX_TESTS_TRUE}" && test -z "${BUILD_MPX_TESTS_FALSE}"; then
15266 as_fn_error $? "conditional \"BUILD_MPX_TESTS\" was never defined.
15267Usually this means the macro was only invoked conditionally." "$LINENO" 5
15268fi
15269if test -z "${BUILD_MOVBE_TESTS_TRUE}" && test -z "${BUILD_MOVBE_TESTS_FALSE}"; then
15270 as_fn_error $? "conditional \"BUILD_MOVBE_TESTS\" was never defined.
15271Usually this means the macro was only invoked conditionally." "$LINENO" 5
15272fi
15273if test -z "${BUILD_IFUNC_TESTS_TRUE}" && test -z "${BUILD_IFUNC_TESTS_FALSE}"; then
15274 as_fn_error $? "conditional \"BUILD_IFUNC_TESTS\" was never defined.
15275Usually this means the macro was only invoked conditionally." "$LINENO" 5
15276fi
15277if test -z "${BUILD_ARMV8_CRC_TESTS_TRUE}" && test -z "${BUILD_ARMV8_CRC_TESTS_FALSE}"; then
15278 as_fn_error $? "conditional \"BUILD_ARMV8_CRC_TESTS\" was never defined.
15279Usually this means the macro was only invoked conditionally." "$LINENO" 5
15280fi
15281if test -z "${SOLARIS_SUN_STUDIO_AS_TRUE}" && test -z "${SOLARIS_SUN_STUDIO_AS_FALSE}"; then
15282 as_fn_error $? "conditional \"SOLARIS_SUN_STUDIO_AS\" was never defined.
15283Usually this means the macro was only invoked conditionally." "$LINENO" 5
15284fi
15285if test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_TRUE}" && test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_FALSE}"; then
15286 as_fn_error $? "conditional \"SOLARIS_XPG_SYMBOLS_PRESENT\" was never defined.
15287Usually this means the macro was only invoked conditionally." "$LINENO" 5
15288fi
15289if test -z "${SOLARIS_PROC_CMDLINE_TRUE}" && test -z "${SOLARIS_PROC_CMDLINE_FALSE}"; then
15290 as_fn_error $? "conditional \"SOLARIS_PROC_CMDLINE\" was never defined.
15291Usually this means the macro was only invoked conditionally." "$LINENO" 5
15292fi
15293if test -z "${SOLARIS_OLD_SYSCALLS_TRUE}" && test -z "${SOLARIS_OLD_SYSCALLS_FALSE}"; then
15294 as_fn_error $? "conditional \"SOLARIS_OLD_SYSCALLS\" was never defined.
15295Usually this means the macro was only invoked conditionally." "$LINENO" 5
15296fi
15297if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE}"; then
15298 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL\" was never defined.
15299Usually this means the macro was only invoked conditionally." "$LINENO" 5
15300fi
15301if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE}"; then
15302 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID\" was never defined.
15303Usually this means the macro was only invoked conditionally." "$LINENO" 5
15304fi
15305if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE}"; then
15306 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID\" was never defined.
15307Usually this means the macro was only invoked conditionally." "$LINENO" 5
15308fi
15309if test -z "${SOLARIS_LWP_NAME_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_NAME_SYSCALL_FALSE}"; then
15310 as_fn_error $? "conditional \"SOLARIS_LWP_NAME_SYSCALL\" was never defined.
15311Usually this means the macro was only invoked conditionally." "$LINENO" 5
15312fi
15313if test -z "${SOLARIS_GETRANDOM_SYSCALL_TRUE}" && test -z "${SOLARIS_GETRANDOM_SYSCALL_FALSE}"; then
15314 as_fn_error $? "conditional \"SOLARIS_GETRANDOM_SYSCALL\" was never defined.
15315Usually this means the macro was only invoked conditionally." "$LINENO" 5
15316fi
15317if test -z "${SOLARIS_ZONE_DEFUNCT_TRUE}" && test -z "${SOLARIS_ZONE_DEFUNCT_FALSE}"; then
15318 as_fn_error $? "conditional \"SOLARIS_ZONE_DEFUNCT\" was never defined.
15319Usually this means the macro was only invoked conditionally." "$LINENO" 5
15320fi
15321if test -z "${SOLARIS_AUDITON_STAT_TRUE}" && test -z "${SOLARIS_AUDITON_STAT_FALSE}"; then
15322 as_fn_error $? "conditional \"SOLARIS_AUDITON_STAT\" was never defined.
15323Usually this means the macro was only invoked conditionally." "$LINENO" 5
15324fi
15325if test -z "${SOLARIS_SHM_NEW_TRUE}" && test -z "${SOLARIS_SHM_NEW_FALSE}"; then
15326 as_fn_error $? "conditional \"SOLARIS_SHM_NEW\" was never defined.
15327Usually this means the macro was only invoked conditionally." "$LINENO" 5
15328fi
15329if test -z "${SOLARIS_PRXREGSET_T_TRUE}" && test -z "${SOLARIS_PRXREGSET_T_FALSE}"; then
15330 as_fn_error $? "conditional \"SOLARIS_PRXREGSET_T\" was never defined.
15331Usually this means the macro was only invoked conditionally." "$LINENO" 5
15332fi
15333if test -z "${SOLARIS_FREALPATHAT_SYSCALL_TRUE}" && test -z "${SOLARIS_FREALPATHAT_SYSCALL_FALSE}"; then
15334 as_fn_error $? "conditional \"SOLARIS_FREALPATHAT_SYSCALL\" was never defined.
15335Usually this means the macro was only invoked conditionally." "$LINENO" 5
15336fi
15337if test -z "${SOLARIS_UUIDSYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UUIDSYS_SYSCALL_FALSE}"; then
15338 as_fn_error $? "conditional \"SOLARIS_UUIDSYS_SYSCALL\" was never defined.
15339Usually this means the macro was only invoked conditionally." "$LINENO" 5
15340fi
15341if test -z "${SOLARIS_TNDB_GET_TNIP_TRUE}" && test -z "${SOLARIS_TNDB_GET_TNIP_FALSE}"; then
15342 as_fn_error $? "conditional \"SOLARIS_TNDB_GET_TNIP\" was never defined.
15343Usually this means the macro was only invoked conditionally." "$LINENO" 5
15344fi
15345if test -z "${SOLARIS_TSOL_CLEARANCE_TRUE}" && test -z "${SOLARIS_TSOL_CLEARANCE_FALSE}"; then
15346 as_fn_error $? "conditional \"SOLARIS_TSOL_CLEARANCE\" was never defined.
15347Usually this means the macro was only invoked conditionally." "$LINENO" 5
15348fi
15349if test -z "${SOLARIS_PSET_GET_NAME_TRUE}" && test -z "${SOLARIS_PSET_GET_NAME_FALSE}"; then
15350 as_fn_error $? "conditional \"SOLARIS_PSET_GET_NAME\" was never defined.
15351Usually this means the macro was only invoked conditionally." "$LINENO" 5
15352fi
15353if test -z "${SOLARIS_UTIMESYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMESYS_SYSCALL_FALSE}"; then
15354 as_fn_error $? "conditional \"SOLARIS_UTIMESYS_SYSCALL\" was never defined.
15355Usually this means the macro was only invoked conditionally." "$LINENO" 5
15356fi
15357if test -z "${SOLARIS_UTIMENSAT_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMENSAT_SYSCALL_FALSE}"; then
15358 as_fn_error $? "conditional \"SOLARIS_UTIMENSAT_SYSCALL\" was never defined.
15359Usually this means the macro was only invoked conditionally." "$LINENO" 5
15360fi
15361if test -z "${SOLARIS_SPAWN_SYSCALL_TRUE}" && test -z "${SOLARIS_SPAWN_SYSCALL_FALSE}"; then
15362 as_fn_error $? "conditional \"SOLARIS_SPAWN_SYSCALL\" was never defined.
15363Usually this means the macro was only invoked conditionally." "$LINENO" 5
15364fi
15365if test -z "${SOLARIS_MODCTL_MODNVL_TRUE}" && test -z "${SOLARIS_MODCTL_MODNVL_FALSE}"; then
15366 as_fn_error $? "conditional \"SOLARIS_MODCTL_MODNVL\" was never defined.
15367Usually this means the macro was only invoked conditionally." "$LINENO" 5
15368fi
15369if test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE}" && test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE}"; then
15370 as_fn_error $? "conditional \"SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE\" was never defined.
15371Usually this means the macro was only invoked conditionally." "$LINENO" 5
15372fi
15373if test -z "${SOLARIS_GETHRT_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETHRT_FASTTRAP_FALSE}"; then
15374 as_fn_error $? "conditional \"SOLARIS_GETHRT_FASTTRAP\" was never defined.
15375Usually this means the macro was only invoked conditionally." "$LINENO" 5
15376fi
15377if test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE}"; then
15378 as_fn_error $? "conditional \"SOLARIS_GETZONEOFFSET_FASTTRAP\" was never defined.
15379Usually this means the macro was only invoked conditionally." "$LINENO" 5
15380fi
15381if test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE}" && test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE}"; then
15382 as_fn_error $? "conditional \"SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS\" was never defined.
15383Usually this means the macro was only invoked conditionally." "$LINENO" 5
15384fi
15385if test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE}"; then
15386 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ADDR\" was never defined.
15387Usually this means the macro was only invoked conditionally." "$LINENO" 5
15388fi
15389if test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE}"; then
15390 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR\" was never defined.
15391Usually this means the macro was only invoked conditionally." "$LINENO" 5
15392fi
15393if test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_TRUE}" && test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_FALSE}"; then
15394 as_fn_error $? "conditional \"SOLARIS_SYSTEM_STATS_SYSCALL\" was never defined.
15395Usually this means the macro was only invoked conditionally." "$LINENO" 5
15396fi
15397if test -z "${SOLARIS_SUN_STUDIO_AS_TRUE}" && test -z "${SOLARIS_SUN_STUDIO_AS_FALSE}"; then
15398 as_fn_error $? "conditional \"SOLARIS_SUN_STUDIO_AS\" was never defined.
15399Usually this means the macro was only invoked conditionally." "$LINENO" 5
15400fi
15401if test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_TRUE}" && test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_FALSE}"; then
15402 as_fn_error $? "conditional \"SOLARIS_XPG_SYMBOLS_PRESENT\" was never defined.
15403Usually this means the macro was only invoked conditionally." "$LINENO" 5
15404fi
15405if test -z "${SOLARIS_PROC_CMDLINE_TRUE}" && test -z "${SOLARIS_PROC_CMDLINE_FALSE}"; then
15406 as_fn_error $? "conditional \"SOLARIS_PROC_CMDLINE\" was never defined.
15407Usually this means the macro was only invoked conditionally." "$LINENO" 5
15408fi
15409if test -z "${SOLARIS_OLD_SYSCALLS_TRUE}" && test -z "${SOLARIS_OLD_SYSCALLS_FALSE}"; then
15410 as_fn_error $? "conditional \"SOLARIS_OLD_SYSCALLS\" was never defined.
15411Usually this means the macro was only invoked conditionally." "$LINENO" 5
15412fi
15413if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE}"; then
15414 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL\" was never defined.
15415Usually this means the macro was only invoked conditionally." "$LINENO" 5
15416fi
15417if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE}"; then
15418 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID\" was never defined.
15419Usually this means the macro was only invoked conditionally." "$LINENO" 5
15420fi
15421if test -z "${SOLARIS_LWP_NAME_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_NAME_SYSCALL_FALSE}"; then
15422 as_fn_error $? "conditional \"SOLARIS_LWP_NAME_SYSCALL\" was never defined.
15423Usually this means the macro was only invoked conditionally." "$LINENO" 5
15424fi
15425if test -z "${SOLARIS_GETRANDOM_SYSCALL_TRUE}" && test -z "${SOLARIS_GETRANDOM_SYSCALL_FALSE}"; then
15426 as_fn_error $? "conditional \"SOLARIS_GETRANDOM_SYSCALL\" was never defined.
15427Usually this means the macro was only invoked conditionally." "$LINENO" 5
15428fi
15429if test -z "${SOLARIS_ZONE_DEFUNCT_TRUE}" && test -z "${SOLARIS_ZONE_DEFUNCT_FALSE}"; then
15430 as_fn_error $? "conditional \"SOLARIS_ZONE_DEFUNCT\" was never defined.
15431Usually this means the macro was only invoked conditionally." "$LINENO" 5
15432fi
15433if test -z "${SOLARIS_AUDITON_STAT_TRUE}" && test -z "${SOLARIS_AUDITON_STAT_FALSE}"; then
15434 as_fn_error $? "conditional \"SOLARIS_AUDITON_STAT\" was never defined.
15435Usually this means the macro was only invoked conditionally." "$LINENO" 5
15436fi
15437if test -z "${SOLARIS_SHM_NEW_TRUE}" && test -z "${SOLARIS_SHM_NEW_FALSE}"; then
15438 as_fn_error $? "conditional \"SOLARIS_SHM_NEW\" was never defined.
15439Usually this means the macro was only invoked conditionally." "$LINENO" 5
15440fi
15441if test -z "${SOLARIS_PRXREGSET_T_TRUE}" && test -z "${SOLARIS_PRXREGSET_T_FALSE}"; then
15442 as_fn_error $? "conditional \"SOLARIS_PRXREGSET_T\" was never defined.
15443Usually this means the macro was only invoked conditionally." "$LINENO" 5
15444fi
15445if test -z "${SOLARIS_FREALPATHAT_SYSCALL_TRUE}" && test -z "${SOLARIS_FREALPATHAT_SYSCALL_FALSE}"; then
15446 as_fn_error $? "conditional \"SOLARIS_FREALPATHAT_SYSCALL\" was never defined.
15447Usually this means the macro was only invoked conditionally." "$LINENO" 5
15448fi
15449if test -z "${SOLARIS_UUIDSYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UUIDSYS_SYSCALL_FALSE}"; then
15450 as_fn_error $? "conditional \"SOLARIS_UUIDSYS_SYSCALL\" was never defined.
15451Usually this means the macro was only invoked conditionally." "$LINENO" 5
15452fi
15453if test -z "${SOLARIS_TNDB_GET_TNIP_TRUE}" && test -z "${SOLARIS_TNDB_GET_TNIP_FALSE}"; then
15454 as_fn_error $? "conditional \"SOLARIS_TNDB_GET_TNIP\" was never defined.
15455Usually this means the macro was only invoked conditionally." "$LINENO" 5
15456fi
15457if test -z "${SOLARIS_TSOL_CLEARANCE_TRUE}" && test -z "${SOLARIS_TSOL_CLEARANCE_FALSE}"; then
15458 as_fn_error $? "conditional \"SOLARIS_TSOL_CLEARANCE\" was never defined.
15459Usually this means the macro was only invoked conditionally." "$LINENO" 5
15460fi
15461if test -z "${SOLARIS_PSET_GET_NAME_TRUE}" && test -z "${SOLARIS_PSET_GET_NAME_FALSE}"; then
15462 as_fn_error $? "conditional \"SOLARIS_PSET_GET_NAME\" was never defined.
15463Usually this means the macro was only invoked conditionally." "$LINENO" 5
15464fi
15465if test -z "${SOLARIS_UTIMESYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMESYS_SYSCALL_FALSE}"; then
15466 as_fn_error $? "conditional \"SOLARIS_UTIMESYS_SYSCALL\" was never defined.
15467Usually this means the macro was only invoked conditionally." "$LINENO" 5
15468fi
15469if test -z "${SOLARIS_UTIMENSAT_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMENSAT_SYSCALL_FALSE}"; then
15470 as_fn_error $? "conditional \"SOLARIS_UTIMENSAT_SYSCALL\" was never defined.
15471Usually this means the macro was only invoked conditionally." "$LINENO" 5
15472fi
15473if test -z "${SOLARIS_SPAWN_SYSCALL_TRUE}" && test -z "${SOLARIS_SPAWN_SYSCALL_FALSE}"; then
15474 as_fn_error $? "conditional \"SOLARIS_SPAWN_SYSCALL\" was never defined.
15475Usually this means the macro was only invoked conditionally." "$LINENO" 5
15476fi
15477if test -z "${SOLARIS_MODCTL_MODNVL_TRUE}" && test -z "${SOLARIS_MODCTL_MODNVL_FALSE}"; then
15478 as_fn_error $? "conditional \"SOLARIS_MODCTL_MODNVL\" was never defined.
15479Usually this means the macro was only invoked conditionally." "$LINENO" 5
15480fi
15481if test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE}" && test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE}"; then
15482 as_fn_error $? "conditional \"SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE\" was never defined.
15483Usually this means the macro was only invoked conditionally." "$LINENO" 5
15484fi
15485if test -z "${SOLARIS_GETHRT_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETHRT_FASTTRAP_FALSE}"; then
15486 as_fn_error $? "conditional \"SOLARIS_GETHRT_FASTTRAP\" was never defined.
15487Usually this means the macro was only invoked conditionally." "$LINENO" 5
15488fi
15489if test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE}"; then
15490 as_fn_error $? "conditional \"SOLARIS_GETZONEOFFSET_FASTTRAP\" was never defined.
15491Usually this means the macro was only invoked conditionally." "$LINENO" 5
15492fi
15493if test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE}" && test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE}"; then
15494 as_fn_error $? "conditional \"SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS\" was never defined.
15495Usually this means the macro was only invoked conditionally." "$LINENO" 5
15496fi
15497if test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE}"; then
15498 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ADDR\" was never defined.
15499Usually this means the macro was only invoked conditionally." "$LINENO" 5
15500fi
15501if test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE}"; then
15502 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR\" was never defined.
15503Usually this means the macro was only invoked conditionally." "$LINENO" 5
15504fi
15505if test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_TRUE}" && test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_FALSE}"; then
15506 as_fn_error $? "conditional \"SOLARIS_SYSTEM_STATS_SYSCALL\" was never defined.
15507Usually this means the macro was only invoked conditionally." "$LINENO" 5
15508fi
15509if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
15510 as_fn_error $? "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
15511Usually this means the macro was only invoked conditionally." "$LINENO" 5
15512fi
15513if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
15514 as_fn_error $? "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
15515Usually this means the macro was only invoked conditionally." "$LINENO" 5
15516fi
15517if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
15518 as_fn_error $? "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
15519Usually this means the macro was only invoked conditionally." "$LINENO" 5
15520fi
15521if test -z "${HAVE_PTHREAD_SETNAME_NP_TRUE}" && test -z "${HAVE_PTHREAD_SETNAME_NP_FALSE}"; then
15522 as_fn_error $? "conditional \"HAVE_PTHREAD_SETNAME_NP\" was never defined.
15523Usually this means the macro was only invoked conditionally." "$LINENO" 5
15524fi
15525if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
15526 as_fn_error $? "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
15527Usually this means the macro was only invoked conditionally." "$LINENO" 5
15528fi
15529if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
15530 as_fn_error $? "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
15531Usually this means the macro was only invoked conditionally." "$LINENO" 5
15532fi
15533if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
15534 as_fn_error $? "conditional \"HAVE_BOOST_1_35\" was never defined.
15535Usually this means the macro was only invoked conditionally." "$LINENO" 5
15536fi
15537if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
15538 as_fn_error $? "conditional \"HAVE_OPENMP\" was never defined.
15539Usually this means the macro was only invoked conditionally." "$LINENO" 5
15540fi
15541if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
15542 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
15543Usually this means the macro was only invoked conditionally." "$LINENO" 5
15544fi
15545if test -z "${HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE}"; then
15546 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_SECONDARY\" was never defined.
15547Usually this means the macro was only invoked conditionally." "$LINENO" 5
15548fi
15549if test -z "${HAVE_BUILTIN_ATOMIC64_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC64_FALSE}"; then
15550 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC64\" was never defined.
15551Usually this means the macro was only invoked conditionally." "$LINENO" 5
15552fi
15553if test -z "${HAVE_BUILTIN_ATOMIC_CXX_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_CXX_FALSE}"; then
15554 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_CXX\" was never defined.
15555Usually this means the macro was only invoked conditionally." "$LINENO" 5
15556fi
15557if test -z "${ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE}" && test -z "${ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE}"; then
15558 as_fn_error $? "conditional \"ENABLE_LINUX_TICKET_LOCK_PRIMARY\" was never defined.
15559Usually this means the macro was only invoked conditionally." "$LINENO" 5
15560fi
15561if test -z "${ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE}" && test -z "${ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE}"; then
15562 as_fn_error $? "conditional \"ENABLE_LINUX_TICKET_LOCK_SECONDARY\" was never defined.
15563Usually this means the macro was only invoked conditionally." "$LINENO" 5
15564fi
15565if test -z "${HAVE_SHARED_POINTER_ANNOTATION_TRUE}" && test -z "${HAVE_SHARED_POINTER_ANNOTATION_FALSE}"; then
15566 as_fn_error $? "conditional \"HAVE_SHARED_POINTER_ANNOTATION\" was never defined.
15567Usually this means the macro was only invoked conditionally." "$LINENO" 5
15568fi
15569
15570: "${CONFIG_STATUS=./config.status}"
15571ac_write_fail=0
15572ac_clean_files_save=$ac_clean_files
15573ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15574{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15575$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15576as_write_fail=0
15577cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15578#! $SHELL
15579# Generated by $as_me.
15580# Run this file to recreate the current configuration.
15581# Compiler output produced by configure, useful for debugging
15582# configure, is in config.log if it exists.
15583
15584debug=false
15585ac_cs_recheck=false
15586ac_cs_silent=false
15587
15588SHELL=\${CONFIG_SHELL-$SHELL}
15589export SHELL
15590_ASEOF
15591cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15592## -------------------- ##
15593## M4sh Initialization. ##
15594## -------------------- ##
15595
15596# Be more Bourne compatible
15597DUALCASE=1; export DUALCASE # for MKS sh
15598if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15599 emulate sh
15600 NULLCMD=:
15601 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15602 # is contrary to our usage. Disable this feature.
15603 alias -g '${1+"$@"}'='"$@"'
15604 setopt NO_GLOB_SUBST
15605else
15606 case `(set -o) 2>/dev/null` in #(
15607 *posix*) :
15608 set -o posix ;; #(
15609 *) :
15610 ;;
15611esac
15612fi
15613
15614
15615as_nl='
15616'
15617export as_nl
15618# Printing a long string crashes Solaris 7 /usr/bin/printf.
15619as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15620as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15621as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15622# Prefer a ksh shell builtin over an external printf program on Solaris,
15623# but without wasting forks for bash or zsh.
15624if test -z "$BASH_VERSION$ZSH_VERSION" \
15625 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15626 as_echo='print -r --'
15627 as_echo_n='print -rn --'
15628elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15629 as_echo='printf %s\n'
15630 as_echo_n='printf %s'
15631else
15632 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15633 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15634 as_echo_n='/usr/ucb/echo -n'
15635 else
15636 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15637 as_echo_n_body='eval
15638 arg=$1;
15639 case $arg in #(
15640 *"$as_nl"*)
15641 expr "X$arg" : "X\\(.*\\)$as_nl";
15642 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15643 esac;
15644 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15645 '
15646 export as_echo_n_body
15647 as_echo_n='sh -c $as_echo_n_body as_echo'
15648 fi
15649 export as_echo_body
15650 as_echo='sh -c $as_echo_body as_echo'
15651fi
15652
15653# The user is always right.
15654if test "${PATH_SEPARATOR+set}" != set; then
15655 PATH_SEPARATOR=:
15656 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15657 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15658 PATH_SEPARATOR=';'
15659 }
15660fi
15661
15662
15663# IFS
15664# We need space, tab and new line, in precisely that order. Quoting is
15665# there to prevent editors from complaining about space-tab.
15666# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15667# splitting by setting IFS to empty value.)
15668IFS=" "" $as_nl"
15669
15670# Find who we are. Look in the path if we contain no directory separator.
15671as_myself=
15672case $0 in #((
15673 *[\\/]* ) as_myself=$0 ;;
15674 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15675for as_dir in $PATH
15676do
15677 IFS=$as_save_IFS
15678 test -z "$as_dir" && as_dir=.
15679 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15680 done
15681IFS=$as_save_IFS
15682
15683 ;;
15684esac
15685# We did not find ourselves, most probably we were run as `sh COMMAND'
15686# in which case we are not to be found in the path.
15687if test "x$as_myself" = x; then
15688 as_myself=$0
15689fi
15690if test ! -f "$as_myself"; then
15691 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15692 exit 1
15693fi
15694
15695# Unset variables that we do not need and which cause bugs (e.g. in
15696# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15697# suppresses any "Segmentation fault" message there. '((' could
15698# trigger a bug in pdksh 5.2.14.
15699for as_var in BASH_ENV ENV MAIL MAILPATH
15700do eval test x\${$as_var+set} = xset \
15701 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15702done
15703PS1='$ '
15704PS2='> '
15705PS4='+ '
15706
15707# NLS nuisances.
15708LC_ALL=C
15709export LC_ALL
15710LANGUAGE=C
15711export LANGUAGE
15712
15713# CDPATH.
15714(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15715
15716
15717# as_fn_error STATUS ERROR [LINENO LOG_FD]
15718# ----------------------------------------
15719# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15720# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15721# script with STATUS, using 1 if that was 0.
15722as_fn_error ()
15723{
15724 as_status=$1; test $as_status -eq 0 && as_status=1
15725 if test "$4"; then
15726 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15727 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15728 fi
15729 $as_echo "$as_me: error: $2" >&2
15730 as_fn_exit $as_status
15731} # as_fn_error
15732
15733
15734# as_fn_set_status STATUS
15735# -----------------------
15736# Set $? to STATUS, without forking.
15737as_fn_set_status ()
15738{
15739 return $1
15740} # as_fn_set_status
15741
15742# as_fn_exit STATUS
15743# -----------------
15744# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15745as_fn_exit ()
15746{
15747 set +e
15748 as_fn_set_status $1
15749 exit $1
15750} # as_fn_exit
15751
15752# as_fn_unset VAR
15753# ---------------
15754# Portably unset VAR.
15755as_fn_unset ()
15756{
15757 { eval $1=; unset $1;}
15758}
15759as_unset=as_fn_unset
15760# as_fn_append VAR VALUE
15761# ----------------------
15762# Append the text in VALUE to the end of the definition contained in VAR. Take
15763# advantage of any shell optimizations that allow amortized linear growth over
15764# repeated appends, instead of the typical quadratic growth present in naive
15765# implementations.
15766if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15767 eval 'as_fn_append ()
15768 {
15769 eval $1+=\$2
15770 }'
15771else
15772 as_fn_append ()
15773 {
15774 eval $1=\$$1\$2
15775 }
15776fi # as_fn_append
15777
15778# as_fn_arith ARG...
15779# ------------------
15780# Perform arithmetic evaluation on the ARGs, and store the result in the
15781# global $as_val. Take advantage of shells that can avoid forks. The arguments
15782# must be portable across $(()) and expr.
15783if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15784 eval 'as_fn_arith ()
15785 {
15786 as_val=$(( $* ))
15787 }'
15788else
15789 as_fn_arith ()
15790 {
15791 as_val=`expr "$@" || test $? -eq 1`
15792 }
15793fi # as_fn_arith
15794
15795
15796if expr a : '\(a\)' >/dev/null 2>&1 &&
15797 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15798 as_expr=expr
15799else
15800 as_expr=false
15801fi
15802
15803if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15804 as_basename=basename
15805else
15806 as_basename=false
15807fi
15808
15809if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15810 as_dirname=dirname
15811else
15812 as_dirname=false
15813fi
15814
15815as_me=`$as_basename -- "$0" ||
15816$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15817 X"$0" : 'X\(//\)$' \| \
15818 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15819$as_echo X/"$0" |
15820 sed '/^.*\/\([^/][^/]*\)\/*$/{
15821 s//\1/
15822 q
15823 }
15824 /^X\/\(\/\/\)$/{
15825 s//\1/
15826 q
15827 }
15828 /^X\/\(\/\).*/{
15829 s//\1/
15830 q
15831 }
15832 s/.*/./; q'`
15833
15834# Avoid depending upon Character Ranges.
15835as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15836as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15837as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15838as_cr_digits='0123456789'
15839as_cr_alnum=$as_cr_Letters$as_cr_digits
15840
15841ECHO_C= ECHO_N= ECHO_T=
15842case `echo -n x` in #(((((
15843-n*)
15844 case `echo 'xy\c'` in
15845 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15846 xy) ECHO_C='\c';;
15847 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15848 ECHO_T=' ';;
15849 esac;;
15850*)
15851 ECHO_N='-n';;
15852esac
15853
15854rm -f conf$$ conf$$.exe conf$$.file
15855if test -d conf$$.dir; then
15856 rm -f conf$$.dir/conf$$.file
15857else
15858 rm -f conf$$.dir
15859 mkdir conf$$.dir 2>/dev/null
15860fi
15861if (echo >conf$$.file) 2>/dev/null; then
15862 if ln -s conf$$.file conf$$ 2>/dev/null; then
15863 as_ln_s='ln -s'
15864 # ... but there are two gotchas:
15865 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15866 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15867 # In both cases, we have to default to `cp -pR'.
15868 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15869 as_ln_s='cp -pR'
15870 elif ln conf$$.file conf$$ 2>/dev/null; then
15871 as_ln_s=ln
15872 else
15873 as_ln_s='cp -pR'
15874 fi
15875else
15876 as_ln_s='cp -pR'
15877fi
15878rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15879rmdir conf$$.dir 2>/dev/null
15880
15881
15882# as_fn_mkdir_p
15883# -------------
15884# Create "$as_dir" as a directory, including parents if necessary.
15885as_fn_mkdir_p ()
15886{
15887
15888 case $as_dir in #(
15889 -*) as_dir=./$as_dir;;
15890 esac
15891 test -d "$as_dir" || eval $as_mkdir_p || {
15892 as_dirs=
15893 while :; do
15894 case $as_dir in #(
15895 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15896 *) as_qdir=$as_dir;;
15897 esac
15898 as_dirs="'$as_qdir' $as_dirs"
15899 as_dir=`$as_dirname -- "$as_dir" ||
15900$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15901 X"$as_dir" : 'X\(//\)[^/]' \| \
15902 X"$as_dir" : 'X\(//\)$' \| \
15903 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15904$as_echo X"$as_dir" |
15905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15906 s//\1/
15907 q
15908 }
15909 /^X\(\/\/\)[^/].*/{
15910 s//\1/
15911 q
15912 }
15913 /^X\(\/\/\)$/{
15914 s//\1/
15915 q
15916 }
15917 /^X\(\/\).*/{
15918 s//\1/
15919 q
15920 }
15921 s/.*/./; q'`
15922 test -d "$as_dir" && break
15923 done
15924 test -z "$as_dirs" || eval "mkdir $as_dirs"
15925 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15926
15927
15928} # as_fn_mkdir_p
15929if mkdir -p . 2>/dev/null; then
15930 as_mkdir_p='mkdir -p "$as_dir"'
15931else
15932 test -d ./-p && rmdir ./-p
15933 as_mkdir_p=false
15934fi
15935
15936
15937# as_fn_executable_p FILE
15938# -----------------------
15939# Test if FILE is an executable regular file.
15940as_fn_executable_p ()
15941{
15942 test -f "$1" && test -x "$1"
15943} # as_fn_executable_p
15944as_test_x='test -x'
15945as_executable_p=as_fn_executable_p
15946
15947# Sed expression to map a string onto a valid CPP name.
15948as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15949
15950# Sed expression to map a string onto a valid variable name.
15951as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15952
15953
15954exec 6>&1
15955## ----------------------------------- ##
15956## Main body of $CONFIG_STATUS script. ##
15957## ----------------------------------- ##
15958_ASEOF
15959test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15960
15961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15962# Save the log message, to keep $0 and so on meaningful, and to
15963# report actual input values of CONFIG_FILES etc. instead of their
15964# values after options handling.
15965ac_log="
15966This file was extended by Valgrind $as_me 3.12.0, which was
15967generated by GNU Autoconf 2.69. Invocation command line was
15968
15969 CONFIG_FILES = $CONFIG_FILES
15970 CONFIG_HEADERS = $CONFIG_HEADERS
15971 CONFIG_LINKS = $CONFIG_LINKS
15972 CONFIG_COMMANDS = $CONFIG_COMMANDS
15973 $ $0 $@
15974
15975on `(hostname || uname -n) 2>/dev/null | sed 1q`
15976"
15977
15978_ACEOF
15979
15980case $ac_config_files in *"
15981"*) set x $ac_config_files; shift; ac_config_files=$*;;
15982esac
15983
15984case $ac_config_headers in *"
15985"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15986esac
15987
15988
15989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15990# Files that config.status was made for.
15991config_files="$ac_config_files"
15992config_headers="$ac_config_headers"
15993config_commands="$ac_config_commands"
15994
15995_ACEOF
15996
15997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15998ac_cs_usage="\
15999\`$as_me' instantiates files and other configuration actions
16000from templates according to the current configuration. Unless the files
16001and actions are specified as TAGs, all are instantiated by default.
16002
16003Usage: $0 [OPTION]... [TAG]...
16004
16005 -h, --help print this help, then exit
16006 -V, --version print version number and configuration settings, then exit
16007 --config print configuration, then exit
16008 -q, --quiet, --silent
16009 do not print progress messages
16010 -d, --debug don't remove temporary files
16011 --recheck update $as_me by reconfiguring in the same conditions
16012 --file=FILE[:TEMPLATE]
16013 instantiate the configuration file FILE
16014 --header=FILE[:TEMPLATE]
16015 instantiate the configuration header FILE
16016
16017Configuration files:
16018$config_files
16019
16020Configuration headers:
16021$config_headers
16022
16023Configuration commands:
16024$config_commands
16025
16026Report bugs to <valgrind-users@lists.sourceforge.net>."
16027
16028_ACEOF
16029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16030ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16031ac_cs_version="\\
16032Valgrind config.status 3.12.0
16033configured by $0, generated by GNU Autoconf 2.69,
16034 with options \\"\$ac_cs_config\\"
16035
16036Copyright (C) 2012 Free Software Foundation, Inc.
16037This config.status script is free software; the Free Software Foundation
16038gives unlimited permission to copy, distribute and modify it."
16039
16040ac_pwd='$ac_pwd'
16041srcdir='$srcdir'
16042INSTALL='$INSTALL'
16043MKDIR_P='$MKDIR_P'
16044AWK='$AWK'
16045test -n "\$AWK" || AWK=awk
16046_ACEOF
16047
16048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16049# The default lists apply if the user does not specify any file.
16050ac_need_defaults=:
16051while test $# != 0
16052do
16053 case $1 in
16054 --*=?*)
16055 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16056 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16057 ac_shift=:
16058 ;;
16059 --*=)
16060 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16061 ac_optarg=
16062 ac_shift=:
16063 ;;
16064 *)
16065 ac_option=$1
16066 ac_optarg=$2
16067 ac_shift=shift
16068 ;;
16069 esac
16070
16071 case $ac_option in
16072 # Handling of the options.
16073 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16074 ac_cs_recheck=: ;;
16075 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16076 $as_echo "$ac_cs_version"; exit ;;
16077 --config | --confi | --conf | --con | --co | --c )
16078 $as_echo "$ac_cs_config"; exit ;;
16079 --debug | --debu | --deb | --de | --d | -d )
16080 debug=: ;;
16081 --file | --fil | --fi | --f )
16082 $ac_shift
16083 case $ac_optarg in
16084 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16085 '') as_fn_error $? "missing file argument" ;;
16086 esac
16087 as_fn_append CONFIG_FILES " '$ac_optarg'"
16088 ac_need_defaults=false;;
16089 --header | --heade | --head | --hea )
16090 $ac_shift
16091 case $ac_optarg in
16092 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16093 esac
16094 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16095 ac_need_defaults=false;;
16096 --he | --h)
16097 # Conflict between --help and --header
16098 as_fn_error $? "ambiguous option: \`$1'
16099Try \`$0 --help' for more information.";;
16100 --help | --hel | -h )
16101 $as_echo "$ac_cs_usage"; exit ;;
16102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16103 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16104 ac_cs_silent=: ;;
16105
16106 # This is an error.
16107 -*) as_fn_error $? "unrecognized option: \`$1'
16108Try \`$0 --help' for more information." ;;
16109
16110 *) as_fn_append ac_config_targets " $1"
16111 ac_need_defaults=false ;;
16112
16113 esac
16114 shift
16115done
16116
16117ac_configure_extra_args=
16118
16119if $ac_cs_silent; then
16120 exec 6>/dev/null
16121 ac_configure_extra_args="$ac_configure_extra_args --silent"
16122fi
16123
16124_ACEOF
16125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16126if \$ac_cs_recheck; then
16127 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16128 shift
16129 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16130 CONFIG_SHELL='$SHELL'
16131 export CONFIG_SHELL
16132 exec "\$@"
16133fi
16134
16135_ACEOF
16136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16137exec 5>>config.log
16138{
16139 echo
16140 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16141## Running $as_me. ##
16142_ASBOX
16143 $as_echo "$ac_log"
16144} >&5
16145
16146_ACEOF
16147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16148#
16149# INIT-COMMANDS
16150#
16151AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16152
16153_ACEOF
16154
16155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16156
16157# Handling of arguments.
16158for ac_config_target in $ac_config_targets
16159do
16160 case $ac_config_target in
16161 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16162 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16163 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16164 "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
16165 "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
16166 "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
16167 "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
16168 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16169 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16170 "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
16171 "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
16172 "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
16173 "gdbserver_tests/Makefile") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/Makefile" ;;
16174 "gdbserver_tests/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/solaris/Makefile" ;;
16175 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16176 "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
16177 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
16178 "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
16179 "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
16180 "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
16181 "memcheck/tests/common/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/common/Makefile" ;;
16182 "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
16183 "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
16184 "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
16185 "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
16186 "memcheck/tests/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/solaris/Makefile" ;;
16187 "memcheck/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-linux/Makefile" ;;
16188 "memcheck/tests/arm64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/arm64-linux/Makefile" ;;
16189 "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
16190 "memcheck/tests/amd64-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-solaris/Makefile" ;;
16191 "memcheck/tests/x86-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-solaris/Makefile" ;;
16192 "memcheck/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc32/Makefile" ;;
16193 "memcheck/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc64/Makefile" ;;
16194 "memcheck/tests/s390x/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/s390x/Makefile" ;;
16195 "memcheck/tests/vbit-test/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/vbit-test/Makefile" ;;
16196 "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
16197 "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
16198 "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
16199 "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
16200 "cachegrind/cg_diff") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_diff" ;;
16201 "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
16202 "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
16203 "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
16204 "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
16205 "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
16206 "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
16207 "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
16208 "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
16209 "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
16210 "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
16211 "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
16212 "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
16213 "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
16214 "none/tests/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/scripts/Makefile" ;;
16215 "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
16216 "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
16217 "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
16218 "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
16219 "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
16220 "none/tests/arm64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm64/Makefile" ;;
16221 "none/tests/s390x/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/s390x/Makefile" ;;
16222 "none/tests/mips32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/mips32/Makefile" ;;
16223 "none/tests/mips64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/mips64/Makefile" ;;
16224 "none/tests/tilegx/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/tilegx/Makefile" ;;
16225 "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
16226 "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
16227 "none/tests/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/solaris/Makefile" ;;
16228 "none/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64-linux/Makefile" ;;
16229 "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
16230 "none/tests/amd64-darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64-darwin/Makefile" ;;
16231 "none/tests/x86-darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-darwin/Makefile" ;;
16232 "none/tests/amd64-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64-solaris/Makefile" ;;
16233 "none/tests/x86-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-solaris/Makefile" ;;
16234 "exp-sgcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/Makefile" ;;
16235 "exp-sgcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/tests/Makefile" ;;
16236 "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
16237 "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
16238 "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
16239 "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
16240 "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
16241 "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
16242 "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
16243 "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
16244 "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
16245 "exp-bbv/tests/arm-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/arm-linux/Makefile" ;;
16246 "exp-dhat/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/Makefile" ;;
16247 "exp-dhat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/tests/Makefile" ;;
16248 "shared/Makefile") CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;;
16249 "solaris/Makefile") CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;;
16250 "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
16251 "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
16252 "coregrind/link_tool_exe_solaris") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_solaris" ;;
16253
16254 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16255 esac
16256done
16257
16258
16259# If the user did not use the arguments to specify the items to instantiate,
16260# then the envvar interface is used. Set only those that are not.
16261# We use the long form for the default assignment because of an extremely
16262# bizarre bug on SunOS 4.1.3.
16263if $ac_need_defaults; then
16264 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16265 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16266 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16267fi
16268
16269# Have a temporary directory for convenience. Make it in the build tree
16270# simply because there is no reason against having it here, and in addition,
16271# creating and moving files from /tmp can sometimes cause problems.
16272# Hook for its removal unless debugging.
16273# Note that there is a small window in which the directory will not be cleaned:
16274# after its creation but before its name has been assigned to `$tmp'.
16275$debug ||
16276{
16277 tmp= ac_tmp=
16278 trap 'exit_status=$?
16279 : "${ac_tmp:=$tmp}"
16280 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16281' 0
16282 trap 'as_fn_exit 1' 1 2 13 15
16283}
16284# Create a (secure) tmp directory for tmp files.
16285
16286{
16287 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16288 test -d "$tmp"
16289} ||
16290{
16291 tmp=./conf$$-$RANDOM
16292 (umask 077 && mkdir "$tmp")
16293} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16294ac_tmp=$tmp
16295
16296# Set up the scripts for CONFIG_FILES section.
16297# No need to generate them if there are no CONFIG_FILES.
16298# This happens for instance with `./config.status config.h'.
16299if test -n "$CONFIG_FILES"; then
16300
16301
16302ac_cr=`echo X | tr X '\015'`
16303# On cygwin, bash can eat \r inside `` if the user requested igncr.
16304# But we know of no other shell where ac_cr would be empty at this
16305# point, so we can use a bashism as a fallback.
16306if test "x$ac_cr" = x; then
16307 eval ac_cr=\$\'\\r\'
16308fi
16309ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16310if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16311 ac_cs_awk_cr='\\r'
16312else
16313 ac_cs_awk_cr=$ac_cr
16314fi
16315
16316echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16317_ACEOF
16318
16319
16320{
16321 echo "cat >conf$$subs.awk <<_ACEOF" &&
16322 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16323 echo "_ACEOF"
16324} >conf$$subs.sh ||
16325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16326ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16327ac_delim='%!_!# '
16328for ac_last_try in false false false false false :; do
16329 . ./conf$$subs.sh ||
16330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16331
16332 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16333 if test $ac_delim_n = $ac_delim_num; then
16334 break
16335 elif $ac_last_try; then
16336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16337 else
16338 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16339 fi
16340done
16341rm -f conf$$subs.sh
16342
16343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16345_ACEOF
16346sed -n '
16347h
16348s/^/S["/; s/!.*/"]=/
16349p
16350g
16351s/^[^!]*!//
16352:repl
16353t repl
16354s/'"$ac_delim"'$//
16355t delim
16356:nl
16357h
16358s/\(.\{148\}\)..*/\1/
16359t more1
16360s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16361p
16362n
16363b repl
16364:more1
16365s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16366p
16367g
16368s/.\{148\}//
16369t nl
16370:delim
16371h
16372s/\(.\{148\}\)..*/\1/
16373t more2
16374s/["\\]/\\&/g; s/^/"/; s/$/"/
16375p
16376b
16377:more2
16378s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16379p
16380g
16381s/.\{148\}//
16382t delim
16383' <conf$$subs.awk | sed '
16384/^[^""]/{
16385 N
16386 s/\n//
16387}
16388' >>$CONFIG_STATUS || ac_write_fail=1
16389rm -f conf$$subs.awk
16390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16391_ACAWK
16392cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16393 for (key in S) S_is_set[key] = 1
16394 FS = ""
16395
16396}
16397{
16398 line = $ 0
16399 nfields = split(line, field, "@")
16400 substed = 0
16401 len = length(field[1])
16402 for (i = 2; i < nfields; i++) {
16403 key = field[i]
16404 keylen = length(key)
16405 if (S_is_set[key]) {
16406 value = S[key]
16407 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16408 len += length(value) + length(field[++i])
16409 substed = 1
16410 } else
16411 len += 1 + keylen
16412 }
16413
16414 print line
16415}
16416
16417_ACAWK
16418_ACEOF
16419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16420if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16421 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16422else
16423 cat
16424fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16425 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16426_ACEOF
16427
16428# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16429# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16430# trailing colons and then remove the whole line if VPATH becomes empty
16431# (actually we leave an empty line to preserve line numbers).
16432if test "x$srcdir" = x.; then
16433 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16434h
16435s///
16436s/^/:/
16437s/[ ]*$/:/
16438s/:\$(srcdir):/:/g
16439s/:\${srcdir}:/:/g
16440s/:@srcdir@:/:/g
16441s/^:*//
16442s/:*$//
16443x
16444s/\(=[ ]*\).*/\1/
16445G
16446s/\n//
16447s/^[^=]*=[ ]*$//
16448}'
16449fi
16450
16451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16452fi # test -n "$CONFIG_FILES"
16453
16454# Set up the scripts for CONFIG_HEADERS section.
16455# No need to generate them if there are no CONFIG_HEADERS.
16456# This happens for instance with `./config.status Makefile'.
16457if test -n "$CONFIG_HEADERS"; then
16458cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16459BEGIN {
16460_ACEOF
16461
16462# Transform confdefs.h into an awk script `defines.awk', embedded as
16463# here-document in config.status, that substitutes the proper values into
16464# config.h.in to produce config.h.
16465
16466# Create a delimiter string that does not exist in confdefs.h, to ease
16467# handling of long lines.
16468ac_delim='%!_!# '
16469for ac_last_try in false false :; do
16470 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16471 if test -z "$ac_tt"; then
16472 break
16473 elif $ac_last_try; then
16474 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16475 else
16476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16477 fi
16478done
16479
16480# For the awk script, D is an array of macro values keyed by name,
16481# likewise P contains macro parameters if any. Preserve backslash
16482# newline sequences.
16483
16484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16485sed -n '
16486s/.\{148\}/&'"$ac_delim"'/g
16487t rset
16488:rset
16489s/^[ ]*#[ ]*define[ ][ ]*/ /
16490t def
16491d
16492:def
16493s/\\$//
16494t bsnl
16495s/["\\]/\\&/g
16496s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16497D["\1"]=" \3"/p
16498s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16499d
16500:bsnl
16501s/["\\]/\\&/g
16502s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16503D["\1"]=" \3\\\\\\n"\\/p
16504t cont
16505s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16506t cont
16507d
16508:cont
16509n
16510s/.\{148\}/&'"$ac_delim"'/g
16511t clear
16512:clear
16513s/\\$//
16514t bsnlc
16515s/["\\]/\\&/g; s/^/"/; s/$/"/p
16516d
16517:bsnlc
16518s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16519b cont
16520' <confdefs.h | sed '
16521s/'"$ac_delim"'/"\\\
16522"/g' >>$CONFIG_STATUS || ac_write_fail=1
16523
16524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16525 for (key in D) D_is_set[key] = 1
16526 FS = ""
16527}
16528/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16529 line = \$ 0
16530 split(line, arg, " ")
16531 if (arg[1] == "#") {
16532 defundef = arg[2]
16533 mac1 = arg[3]
16534 } else {
16535 defundef = substr(arg[1], 2)
16536 mac1 = arg[2]
16537 }
16538 split(mac1, mac2, "(") #)
16539 macro = mac2[1]
16540 prefix = substr(line, 1, index(line, defundef) - 1)
16541 if (D_is_set[macro]) {
16542 # Preserve the white space surrounding the "#".
16543 print prefix "define", macro P[macro] D[macro]
16544 next
16545 } else {
16546 # Replace #undef with comments. This is necessary, for example,
16547 # in the case of _POSIX_SOURCE, which is predefined and required
16548 # on some systems where configure will not decide to define it.
16549 if (defundef == "undef") {
16550 print "/*", prefix defundef, macro, "*/"
16551 next
16552 }
16553 }
16554}
16555{ print }
16556_ACAWK
16557_ACEOF
16558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16559 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16560fi # test -n "$CONFIG_HEADERS"
16561
16562
16563eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16564shift
16565for ac_tag
16566do
16567 case $ac_tag in
16568 :[FHLC]) ac_mode=$ac_tag; continue;;
16569 esac
16570 case $ac_mode$ac_tag in
16571 :[FHL]*:*);;
16572 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16573 :[FH]-) ac_tag=-:-;;
16574 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16575 esac
16576 ac_save_IFS=$IFS
16577 IFS=:
16578 set x $ac_tag
16579 IFS=$ac_save_IFS
16580 shift
16581 ac_file=$1
16582 shift
16583
16584 case $ac_mode in
16585 :L) ac_source=$1;;
16586 :[FH])
16587 ac_file_inputs=
16588 for ac_f
16589 do
16590 case $ac_f in
16591 -) ac_f="$ac_tmp/stdin";;
16592 *) # Look for the file first in the build tree, then in the source tree
16593 # (if the path is not absolute). The absolute path cannot be DOS-style,
16594 # because $ac_f cannot contain `:'.
16595 test -f "$ac_f" ||
16596 case $ac_f in
16597 [\\/$]*) false;;
16598 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16599 esac ||
16600 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16601 esac
16602 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16603 as_fn_append ac_file_inputs " '$ac_f'"
16604 done
16605
16606 # Let's still pretend it is `configure' which instantiates (i.e., don't
16607 # use $as_me), people would be surprised to read:
16608 # /* config.h. Generated by config.status. */
16609 configure_input='Generated from '`
16610 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16611 `' by configure.'
16612 if test x"$ac_file" != x-; then
16613 configure_input="$ac_file. $configure_input"
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16615$as_echo "$as_me: creating $ac_file" >&6;}
16616 fi
16617 # Neutralize special characters interpreted by sed in replacement strings.
16618 case $configure_input in #(
16619 *\&* | *\|* | *\\* )
16620 ac_sed_conf_input=`$as_echo "$configure_input" |
16621 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16622 *) ac_sed_conf_input=$configure_input;;
16623 esac
16624
16625 case $ac_tag in
16626 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16628 esac
16629 ;;
16630 esac
16631
16632 ac_dir=`$as_dirname -- "$ac_file" ||
16633$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16634 X"$ac_file" : 'X\(//\)[^/]' \| \
16635 X"$ac_file" : 'X\(//\)$' \| \
16636 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16637$as_echo X"$ac_file" |
16638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16639 s//\1/
16640 q
16641 }
16642 /^X\(\/\/\)[^/].*/{
16643 s//\1/
16644 q
16645 }
16646 /^X\(\/\/\)$/{
16647 s//\1/
16648 q
16649 }
16650 /^X\(\/\).*/{
16651 s//\1/
16652 q
16653 }
16654 s/.*/./; q'`
16655 as_dir="$ac_dir"; as_fn_mkdir_p
16656 ac_builddir=.
16657
16658case "$ac_dir" in
16659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16660*)
16661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16662 # A ".." for each directory in $ac_dir_suffix.
16663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16664 case $ac_top_builddir_sub in
16665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16667 esac ;;
16668esac
16669ac_abs_top_builddir=$ac_pwd
16670ac_abs_builddir=$ac_pwd$ac_dir_suffix
16671# for backward compatibility:
16672ac_top_builddir=$ac_top_build_prefix
16673
16674case $srcdir in
16675 .) # We are building in place.
16676 ac_srcdir=.
16677 ac_top_srcdir=$ac_top_builddir_sub
16678 ac_abs_top_srcdir=$ac_pwd ;;
16679 [\\/]* | ?:[\\/]* ) # Absolute name.
16680 ac_srcdir=$srcdir$ac_dir_suffix;
16681 ac_top_srcdir=$srcdir
16682 ac_abs_top_srcdir=$srcdir ;;
16683 *) # Relative name.
16684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16685 ac_top_srcdir=$ac_top_build_prefix$srcdir
16686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16687esac
16688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16689
16690
16691 case $ac_mode in
16692 :F)
16693 #
16694 # CONFIG_FILE
16695 #
16696
16697 case $INSTALL in
16698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16700 esac
16701 ac_MKDIR_P=$MKDIR_P
16702 case $MKDIR_P in
16703 [\\/$]* | ?:[\\/]* ) ;;
16704 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16705 esac
16706_ACEOF
16707
16708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16709# If the template does not know about datarootdir, expand it.
16710# FIXME: This hack should be removed a few years after 2.60.
16711ac_datarootdir_hack=; ac_datarootdir_seen=
16712ac_sed_dataroot='
16713/datarootdir/ {
16714 p
16715 q
16716}
16717/@datadir@/p
16718/@docdir@/p
16719/@infodir@/p
16720/@localedir@/p
16721/@mandir@/p'
16722case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16723*datarootdir*) ac_datarootdir_seen=yes;;
16724*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16726$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16727_ACEOF
16728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16729 ac_datarootdir_hack='
16730 s&@datadir@&$datadir&g
16731 s&@docdir@&$docdir&g
16732 s&@infodir@&$infodir&g
16733 s&@localedir@&$localedir&g
16734 s&@mandir@&$mandir&g
16735 s&\\\${datarootdir}&$datarootdir&g' ;;
16736esac
16737_ACEOF
16738
16739# Neutralize VPATH when `$srcdir' = `.'.
16740# Shell code in configure.ac might set extrasub.
16741# FIXME: do we really want to maintain this feature?
16742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16743ac_sed_extra="$ac_vpsub
16744$extrasub
16745_ACEOF
16746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16747:t
16748/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16749s|@configure_input@|$ac_sed_conf_input|;t t
16750s&@top_builddir@&$ac_top_builddir_sub&;t t
16751s&@top_build_prefix@&$ac_top_build_prefix&;t t
16752s&@srcdir@&$ac_srcdir&;t t
16753s&@abs_srcdir@&$ac_abs_srcdir&;t t
16754s&@top_srcdir@&$ac_top_srcdir&;t t
16755s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16756s&@builddir@&$ac_builddir&;t t
16757s&@abs_builddir@&$ac_abs_builddir&;t t
16758s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16759s&@INSTALL@&$ac_INSTALL&;t t
16760s&@MKDIR_P@&$ac_MKDIR_P&;t t
16761$ac_datarootdir_hack
16762"
16763eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16764 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16765
16766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16767 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16769 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16771which seems to be undefined. Please make sure it is defined" >&5
16772$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16773which seems to be undefined. Please make sure it is defined" >&2;}
16774
16775 rm -f "$ac_tmp/stdin"
16776 case $ac_file in
16777 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16778 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16779 esac \
16780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16781 ;;
16782 :H)
16783 #
16784 # CONFIG_HEADER
16785 #
16786 if test x"$ac_file" != x-; then
16787 {
16788 $as_echo "/* $configure_input */" \
16789 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16790 } >"$ac_tmp/config.h" \
16791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16792 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16794$as_echo "$as_me: $ac_file is unchanged" >&6;}
16795 else
16796 rm -f "$ac_file"
16797 mv "$ac_tmp/config.h" "$ac_file" \
16798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16799 fi
16800 else
16801 $as_echo "/* $configure_input */" \
16802 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16803 || as_fn_error $? "could not create -" "$LINENO" 5
16804 fi
16805# Compute "$ac_file"'s index in $config_headers.
16806_am_arg="$ac_file"
16807_am_stamp_count=1
16808for _am_header in $config_headers :; do
16809 case $_am_header in
16810 $_am_arg | $_am_arg:* )
16811 break ;;
16812 * )
16813 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16814 esac
16815done
16816echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16817$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16818 X"$_am_arg" : 'X\(//\)[^/]' \| \
16819 X"$_am_arg" : 'X\(//\)$' \| \
16820 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16821$as_echo X"$_am_arg" |
16822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16823 s//\1/
16824 q
16825 }
16826 /^X\(\/\/\)[^/].*/{
16827 s//\1/
16828 q
16829 }
16830 /^X\(\/\/\)$/{
16831 s//\1/
16832 q
16833 }
16834 /^X\(\/\).*/{
16835 s//\1/
16836 q
16837 }
16838 s/.*/./; q'`/stamp-h$_am_stamp_count
16839 ;;
16840
16841 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16842$as_echo "$as_me: executing $ac_file commands" >&6;}
16843 ;;
16844 esac
16845
16846
16847 case $ac_file$ac_mode in
16848 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16849 # Older Autoconf quotes --file arguments for eval, but not when files
16850 # are listed without --file. Let's play safe and only enable the eval
16851 # if we detect the quoting.
16852 case $CONFIG_FILES in
16853 *\'*) eval set x "$CONFIG_FILES" ;;
16854 *) set x $CONFIG_FILES ;;
16855 esac
16856 shift
16857 for mf
16858 do
16859 # Strip MF so we end up with the name of the file.
16860 mf=`echo "$mf" | sed -e 's/:.*$//'`
16861 # Check whether this is an Automake generated Makefile or not.
16862 # We used to match only the files named 'Makefile.in', but
16863 # some people rename them; so instead we look at the file content.
16864 # Grep'ing the first line is not enough: some people post-process
16865 # each Makefile.in and add a new line on top of each file to say so.
16866 # Grep'ing the whole file is not good either: AIX grep has a line
16867 # limit of 2048, but all sed's we know have understand at least 4000.
16868 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16869 dirpart=`$as_dirname -- "$mf" ||
16870$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16871 X"$mf" : 'X\(//\)[^/]' \| \
16872 X"$mf" : 'X\(//\)$' \| \
16873 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16874$as_echo X"$mf" |
16875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16876 s//\1/
16877 q
16878 }
16879 /^X\(\/\/\)[^/].*/{
16880 s//\1/
16881 q
16882 }
16883 /^X\(\/\/\)$/{
16884 s//\1/
16885 q
16886 }
16887 /^X\(\/\).*/{
16888 s//\1/
16889 q
16890 }
16891 s/.*/./; q'`
16892 else
16893 continue
16894 fi
16895 # Extract the definition of DEPDIR, am__include, and am__quote
16896 # from the Makefile without running 'make'.
16897 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16898 test -z "$DEPDIR" && continue
16899 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16900 test -z "$am__include" && continue
16901 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16902 # Find all dependency output files, they are included files with
16903 # $(DEPDIR) in their names. We invoke sed twice because it is the
16904 # simplest approach to changing $(DEPDIR) to its actual value in the
16905 # expansion.
16906 for file in `sed -n "
16907 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16908 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16909 # Make sure the directory exists.
16910 test -f "$dirpart/$file" && continue
16911 fdir=`$as_dirname -- "$file" ||
16912$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16913 X"$file" : 'X\(//\)[^/]' \| \
16914 X"$file" : 'X\(//\)$' \| \
16915 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16916$as_echo X"$file" |
16917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16918 s//\1/
16919 q
16920 }
16921 /^X\(\/\/\)[^/].*/{
16922 s//\1/
16923 q
16924 }
16925 /^X\(\/\/\)$/{
16926 s//\1/
16927 q
16928 }
16929 /^X\(\/\).*/{
16930 s//\1/
16931 q
16932 }
16933 s/.*/./; q'`
16934 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16935 # echo "creating $dirpart/$file"
16936 echo '# dummy' > "$dirpart/$file"
16937 done
16938 done
16939}
16940 ;;
16941 "coregrind/link_tool_exe_linux":F) chmod +x coregrind/link_tool_exe_linux ;;
16942 "coregrind/link_tool_exe_darwin":F) chmod +x coregrind/link_tool_exe_darwin ;;
16943 "coregrind/link_tool_exe_solaris":F) chmod +x coregrind/link_tool_exe_solaris ;;
16944
16945 esac
16946done # for ac_tag
16947
16948
16949as_fn_exit 0
16950_ACEOF
16951ac_clean_files=$ac_clean_files_save
16952
16953test $ac_write_fail = 0 ||
16954 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16955
16956
16957# configure is writing to config.log, and then calls config.status.
16958# config.status does its own redirection, appending to config.log.
16959# Unfortunately, on DOS this fails, as config.log is still kept open
16960# by configure, so config.status won't be able to write to it; its
16961# output is simply discarded. So we exec the FD to /dev/null,
16962# effectively closing config.log, so it can be properly (re)opened and
16963# appended to by config.status. When coming back to configure, we
16964# need to make the FD available again.
16965if test "$no_create" != yes; then
16966 ac_cs_success=:
16967 ac_config_status_args=
16968 test "$silent" = yes &&
16969 ac_config_status_args="$ac_config_status_args --quiet"
16970 exec 5>/dev/null
16971 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16972 exec 5>>config.log
16973 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16974 # would make configure fail if this is the last instruction.
16975 $ac_cs_success || as_fn_exit 1
16976fi
16977if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16979$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16980fi
16981
16982
16983cat<<EOF
16984
16985 Maximum build arch: ${ARCH_MAX}
16986 Primary build arch: ${VGCONF_ARCH_PRI}
16987 Secondary build arch: ${VGCONF_ARCH_SEC}
16988 Build OS: ${VGCONF_OS}
16989 Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
16990 Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
16991 Platform variant: ${VGCONF_PLATVARIANT}
16992 Primary -DVGPV string: -DVGPV_${VGCONF_ARCH_PRI}_${VGCONF_OS}_${VGCONF_PLATVARIANT}=1
16993 Default supp files: ${DEFAULT_SUPP}
16994
16995EOF