blob: c2e319d4edad350c6b0e91818d977647deb160d6 [file] [log] [blame]
Elliott Hughesa0664b92017-04-18 17:46:52 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Elliott Hughesed398002017-06-21 14:41:24 -07003# Generated by GNU Autoconf 2.69 for Valgrind 3.13.0.
Elliott Hughesa0664b92017-04-18 17:46:52 -07004#
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'
Elliott Hughesed398002017-06-21 14:41:24 -0700583PACKAGE_VERSION='3.13.0'
584PACKAGE_STRING='Valgrind 3.13.0'
Elliott Hughesa0664b92017-04-18 17:46:52 -0700585PACKAGE_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
Elliott Hughesed398002017-06-21 14:41:24 -0700729BUILD_ADX_TESTS_FALSE
730BUILD_ADX_TESTS_TRUE
Elliott Hughesa0664b92017-04-18 17:46:52 -0700731BUILD_MPX_TESTS_FALSE
732BUILD_MPX_TESTS_TRUE
733BUILD_FMA_TESTS_FALSE
734BUILD_FMA_TESTS_TRUE
735BUILD_BMI_TESTS_FALSE
736BUILD_BMI_TESTS_TRUE
737BUILD_TSX_TESTS_FALSE
738BUILD_TSX_TESTS_TRUE
739BUILD_AVX2_TESTS_FALSE
740BUILD_AVX2_TESTS_TRUE
741BUILD_AVX_TESTS_FALSE
742BUILD_AVX_TESTS_TRUE
743BUILD_SSE42_TESTS_FALSE
744BUILD_SSE42_TESTS_TRUE
745BUILD_ADDR32_TESTS_FALSE
746BUILD_ADDR32_TESTS_TRUE
747BUILD_LOOPNEL_TESTS_FALSE
748BUILD_LOOPNEL_TESTS_TRUE
749BUILD_LZCNT_TESTS_FALSE
750BUILD_LZCNT_TESTS_TRUE
751BUILD_FMA4_TESTS_FALSE
752BUILD_FMA4_TESTS_TRUE
753BUILD_VPCLMULQDQ_TESTS_FALSE
754BUILD_VPCLMULQDQ_TESTS_TRUE
755BUILD_PCLMULQDQ_TESTS_FALSE
756BUILD_PCLMULQDQ_TESTS_TRUE
757BUILD_SSSE3_TESTS_FALSE
758BUILD_SSSE3_TESTS_TRUE
759BUILD_SSE3_TESTS_FALSE
760BUILD_SSE3_TESTS_TRUE
761FLAG_NO_BUILD_ID
762FLAG_T_TEXT
Elliott Hughesed398002017-06-21 14:41:24 -0700763FLAG_NO_PIE
Elliott Hughesa0664b92017-04-18 17:46:52 -0700764HAVE_ASM_CONSTRAINT_P_FALSE
765HAVE_ASM_CONSTRAINT_P_TRUE
766HAVE_NESTED_FUNCTIONS_FALSE
767HAVE_NESTED_FUNCTIONS_TRUE
768GZ_ZLIB_GNU_FALSE
769GZ_ZLIB_GNU_TRUE
770GZ_ZLIB_FALSE
771GZ_ZLIB_TRUE
772DWARF4_FALSE
773DWARF4_TRUE
774FLAG_UNLIMITED_INLINE_UNIT_GROWTH
775LIB_UBSAN
776FLAG_FSANITIZE
777FLAG_FNO_IPA_ICF
778FLAG_FNO_STACK_PROTECTOR
779FLAG_W_CAST_ALIGN
780FLAG_W_EXTRA
781FLAG_W_FORMAT_SECURITY
782FLAG_W_MISSING_PARAMETER_TYPE
783FLAG_W_IGNORED_QUALIFIERS
784FLAG_W_OLD_STYLE_DECLARATION
785FLAG_W_CAST_QUAL
786FLAG_W_FORMAT_SIGNEDNESS
787FLAG_W_FORMAT
788FLAG_W_EMPTY_BODY
789FLAG_W_WRITE_STRINGS
790FLAG_W_NO_INFINITE_RECURSION
791FLAG_W_NO_MISMATCHED_NEW_DELETE
792FLAG_W_NO_STATIC_LOCAL_IN_INLINE
793FLAG_W_NO_UNUSED_FUNCTION
794FLAG_W_NO_UNINITIALIZED
795FLAG_W_NO_POINTER_SIGN
796FLAG_W_NO_OVERFLOW
797FLAG_W_NO_NONNULL
798FLAG_W_NO_MEMSET_TRANSPOSED_ARGS
799FLAG_MLONG_DOUBLE_128
800HAS_MLONG_DOUBLE_128_FALSE
801HAS_MLONG_DOUBLE_128_TRUE
802PREFERRED_STACK_BOUNDARY_2
803FLAG_MSSE
804FLAG_MMMX
805FLAG_OCTEON2
806FLAG_OCTEON
807FLAG_MIPS64
808FLAG_MIPS32
809FLAG_M64
810FLAG_M32
811CXX_CAN_INCLUDE_THREAD_HEADER_FALSE
812CXX_CAN_INCLUDE_THREAD_HEADER_TRUE
813HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE
814HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE
815HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
816HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
817HAS_ISA_3_00_FALSE
818HAS_ISA_3_00_TRUE
819SUPPORTS_HTM_FALSE
820SUPPORTS_HTM_TRUE
821BUILD_DFP_TESTS_FALSE
822BUILD_DFP_TESTS_TRUE
823HAS_DFP_FALSE
824HAS_DFP_TRUE
825HAS_VSX_FALSE
826HAS_VSX_TRUE
827HAS_ALTIVEC_FALSE
828HAS_ALTIVEC_TRUE
829HAS_ISA_2_07_FALSE
830HAS_ISA_2_07_TRUE
831HAS_ISA_2_06_FALSE
832HAS_ISA_2_06_TRUE
833HAS_ISA_2_05_FALSE
834HAS_ISA_2_05_TRUE
835HWCAP_HAS_HTM
836HWCAP_HAS_ISA_3_00
837HWCAP_HAS_ISA_2_07
838HWCAP_HAS_ISA_2_06
839HWCAP_HAS_ISA_2_05
840HWCAP_HAS_DFP
841HWCAP_HAS_VSX
842HWCAP_HAS_ALTIVEC
843HAVE_GNU_STPNCPY_FALSE
844HAVE_GNU_STPNCPY_TRUE
845HAVE_AT_FDCWD_FALSE
846HAVE_AT_FDCWD_TRUE
847VGCONF_PLATVARIANT_IS_ANDROID_FALSE
848VGCONF_PLATVARIANT_IS_ANDROID_TRUE
849VGCONF_PLATVARIANT_IS_VANILLA_FALSE
850VGCONF_PLATVARIANT_IS_VANILLA_TRUE
851VGCONF_PLATVARIANT
852GLIBC_VERSION
853EGREP
854GREP
855DEFAULT_SUPP
856VG_TMPDIR
857VALT_LOAD_ADDRESS_SEC
858VALT_LOAD_ADDRESS_PRI
859VGCONF_HAVE_PLATFORM_SEC_FALSE
860VGCONF_HAVE_PLATFORM_SEC_TRUE
861VGCONF_OS_IS_SOLARIS_FALSE
862VGCONF_OS_IS_SOLARIS_TRUE
863VGCONF_OS_IS_DARWIN_FALSE
864VGCONF_OS_IS_DARWIN_TRUE
865VGCONF_OS_IS_LINUX_FALSE
866VGCONF_OS_IS_LINUX_TRUE
867VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE
868VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE
869VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE
870VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE
871VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
872VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
873VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
874VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
Elliott Hughesa0664b92017-04-18 17:46:52 -0700875VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE
876VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE
877VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE
878VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE
879VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE
880VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE
881VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE
882VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE
883VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
884VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
885VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE
886VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE
887VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE
888VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE
889VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
890VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
891VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
892VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
893VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
894VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
Elliott Hughesa0664b92017-04-18 17:46:52 -0700895VGCONF_ARCHS_INCLUDE_MIPS64_FALSE
896VGCONF_ARCHS_INCLUDE_MIPS64_TRUE
897VGCONF_ARCHS_INCLUDE_MIPS32_FALSE
898VGCONF_ARCHS_INCLUDE_MIPS32_TRUE
899VGCONF_ARCHS_INCLUDE_S390X_FALSE
900VGCONF_ARCHS_INCLUDE_S390X_TRUE
901VGCONF_ARCHS_INCLUDE_ARM64_FALSE
902VGCONF_ARCHS_INCLUDE_ARM64_TRUE
903VGCONF_ARCHS_INCLUDE_ARM_FALSE
904VGCONF_ARCHS_INCLUDE_ARM_TRUE
905VGCONF_ARCHS_INCLUDE_PPC64_FALSE
906VGCONF_ARCHS_INCLUDE_PPC64_TRUE
907VGCONF_ARCHS_INCLUDE_PPC32_FALSE
908VGCONF_ARCHS_INCLUDE_PPC32_TRUE
909VGCONF_ARCHS_INCLUDE_AMD64_FALSE
910VGCONF_ARCHS_INCLUDE_AMD64_TRUE
911VGCONF_ARCHS_INCLUDE_X86_FALSE
912VGCONF_ARCHS_INCLUDE_X86_TRUE
913VGCONF_PLATFORM_SEC_CAPS
914VGCONF_PLATFORM_PRI_CAPS
915VGCONF_ARCH_SEC
916VGCONF_ARCH_PRI
917VGCONF_OS
918host_os
919host_vendor
920host_cpu
921host
922build_os
923build_vendor
924build_cpu
925build
926COMPILER_IS_ICC_FALSE
927COMPILER_IS_ICC_TRUE
928COMPILER_IS_CLANG_FALSE
929COMPILER_IS_CLANG_TRUE
930DIFF
931am__fastdepCCAS_FALSE
932am__fastdepCCAS_TRUE
933CCASDEPMODE
934CCASFLAGS
935CCAS
936GDB
937PERL
938AR
939SED
940RANLIB
941am__fastdepCXX_FALSE
942am__fastdepCXX_TRUE
943CXXDEPMODE
944ac_ct_CXX
945CXXFLAGS
946CXX
947CPP
948am__fastdepCC_FALSE
949am__fastdepCC_TRUE
950CCDEPMODE
951am__nodep
952AMDEPBACKSLASH
953AMDEP_FALSE
954AMDEP_TRUE
955am__quote
956am__include
957DEPDIR
958OBJEXT
959EXEEXT
960ac_ct_CC
961CPPFLAGS
962LDFLAGS
963CFLAGS
964CC
965LN_S
966MAINT
967MAINTAINER_MODE_FALSE
968MAINTAINER_MODE_TRUE
969AM_BACKSLASH
970AM_DEFAULT_VERBOSITY
971AM_DEFAULT_V
972AM_V
973am__untar
974am__tar
975AMTAR
976am__leading_dot
977SET_MAKE
978AWK
979mkdir_p
980MKDIR_P
981INSTALL_STRIP_PROGRAM
982STRIP
983install_sh
984MAKEINFO
985AUTOHEADER
986AUTOMAKE
987AUTOCONF
988ACLOCAL
989VERSION
990PACKAGE
991CYGPATH_W
992am__isrc
993INSTALL_DATA
994INSTALL_SCRIPT
995INSTALL_PROGRAM
996target_alias
997host_alias
998build_alias
999LIBS
1000ECHO_T
1001ECHO_N
1002ECHO_C
1003DEFS
1004mandir
1005localedir
1006libdir
1007psdir
1008pdfdir
1009dvidir
1010htmldir
1011infodir
1012docdir
1013oldincludedir
1014includedir
1015localstatedir
1016sharedstatedir
1017sysconfdir
1018datadir
1019datarootdir
1020libexecdir
1021sbindir
1022bindir
1023program_transform_name
1024prefix
1025exec_prefix
1026PACKAGE_URL
1027PACKAGE_BUGREPORT
1028PACKAGE_STRING
1029PACKAGE_VERSION
1030PACKAGE_TARNAME
1031PACKAGE_NAME
1032PATH_SEPARATOR
1033SHELL'
1034ac_subst_files=''
1035ac_user_opts='
1036enable_option_checking
1037enable_silent_rules
1038enable_maintainer_mode
1039enable_dependency_tracking
1040enable_only64bit
1041enable_only32bit
1042enable_inner
1043enable_ubsan
1044with_tmpdir
1045enable_tls
1046with_mpicc
1047'
1048 ac_precious_vars='build_alias
1049host_alias
1050target_alias
1051CC
1052CFLAGS
1053LDFLAGS
1054LIBS
1055CPPFLAGS
1056CPP
1057CXX
1058CXXFLAGS
1059CCC
1060AR
1061CCAS
1062CCASFLAGS'
1063
1064
1065# Initialize some variables set by options.
1066ac_init_help=
1067ac_init_version=false
1068ac_unrecognized_opts=
1069ac_unrecognized_sep=
1070# The variables have the same names as the options, with
1071# dashes changed to underlines.
1072cache_file=/dev/null
1073exec_prefix=NONE
1074no_create=
1075no_recursion=
1076prefix=NONE
1077program_prefix=NONE
1078program_suffix=NONE
1079program_transform_name=s,x,x,
1080silent=
1081site=
1082srcdir=
1083verbose=
1084x_includes=NONE
1085x_libraries=NONE
1086
1087# Installation directory options.
1088# These are left unexpanded so users can "make install exec_prefix=/foo"
1089# and all the variables that are supposed to be based on exec_prefix
1090# by default will actually change.
1091# Use braces instead of parens because sh, perl, etc. also accept them.
1092# (The list follows the same order as the GNU Coding Standards.)
1093bindir='${exec_prefix}/bin'
1094sbindir='${exec_prefix}/sbin'
1095libexecdir='${exec_prefix}/libexec'
1096datarootdir='${prefix}/share'
1097datadir='${datarootdir}'
1098sysconfdir='${prefix}/etc'
1099sharedstatedir='${prefix}/com'
1100localstatedir='${prefix}/var'
1101includedir='${prefix}/include'
1102oldincludedir='/usr/include'
1103docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1104infodir='${datarootdir}/info'
1105htmldir='${docdir}'
1106dvidir='${docdir}'
1107pdfdir='${docdir}'
1108psdir='${docdir}'
1109libdir='${exec_prefix}/lib'
1110localedir='${datarootdir}/locale'
1111mandir='${datarootdir}/man'
1112
1113ac_prev=
1114ac_dashdash=
1115for ac_option
1116do
1117 # If the previous option needs an argument, assign it.
1118 if test -n "$ac_prev"; then
1119 eval $ac_prev=\$ac_option
1120 ac_prev=
1121 continue
1122 fi
1123
1124 case $ac_option in
1125 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1126 *=) ac_optarg= ;;
1127 *) ac_optarg=yes ;;
1128 esac
1129
1130 # Accept the important Cygnus configure options, so we can diagnose typos.
1131
1132 case $ac_dashdash$ac_option in
1133 --)
1134 ac_dashdash=yes ;;
1135
1136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1137 ac_prev=bindir ;;
1138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1139 bindir=$ac_optarg ;;
1140
1141 -build | --build | --buil | --bui | --bu)
1142 ac_prev=build_alias ;;
1143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1144 build_alias=$ac_optarg ;;
1145
1146 -cache-file | --cache-file | --cache-fil | --cache-fi \
1147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1148 ac_prev=cache_file ;;
1149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1151 cache_file=$ac_optarg ;;
1152
1153 --config-cache | -C)
1154 cache_file=config.cache ;;
1155
1156 -datadir | --datadir | --datadi | --datad)
1157 ac_prev=datadir ;;
1158 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1159 datadir=$ac_optarg ;;
1160
1161 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1162 | --dataroo | --dataro | --datar)
1163 ac_prev=datarootdir ;;
1164 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1165 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1166 datarootdir=$ac_optarg ;;
1167
1168 -disable-* | --disable-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid feature name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177"enable_$ac_useropt"
1178"*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval enable_$ac_useropt=no ;;
1183
1184 -docdir | --docdir | --docdi | --doc | --do)
1185 ac_prev=docdir ;;
1186 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1187 docdir=$ac_optarg ;;
1188
1189 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1190 ac_prev=dvidir ;;
1191 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1192 dvidir=$ac_optarg ;;
1193
1194 -enable-* | --enable-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid feature name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203"enable_$ac_useropt"
1204"*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval enable_$ac_useropt=\$ac_optarg ;;
1209
1210 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1211 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1212 | --exec | --exe | --ex)
1213 ac_prev=exec_prefix ;;
1214 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1215 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1216 | --exec=* | --exe=* | --ex=*)
1217 exec_prefix=$ac_optarg ;;
1218
1219 -gas | --gas | --ga | --g)
1220 # Obsolete; use --with-gas.
1221 with_gas=yes ;;
1222
1223 -help | --help | --hel | --he | -h)
1224 ac_init_help=long ;;
1225 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1226 ac_init_help=recursive ;;
1227 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1228 ac_init_help=short ;;
1229
1230 -host | --host | --hos | --ho)
1231 ac_prev=host_alias ;;
1232 -host=* | --host=* | --hos=* | --ho=*)
1233 host_alias=$ac_optarg ;;
1234
1235 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1236 ac_prev=htmldir ;;
1237 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1238 | --ht=*)
1239 htmldir=$ac_optarg ;;
1240
1241 -includedir | --includedir | --includedi | --included | --include \
1242 | --includ | --inclu | --incl | --inc)
1243 ac_prev=includedir ;;
1244 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1245 | --includ=* | --inclu=* | --incl=* | --inc=*)
1246 includedir=$ac_optarg ;;
1247
1248 -infodir | --infodir | --infodi | --infod | --info | --inf)
1249 ac_prev=infodir ;;
1250 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1251 infodir=$ac_optarg ;;
1252
1253 -libdir | --libdir | --libdi | --libd)
1254 ac_prev=libdir ;;
1255 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1256 libdir=$ac_optarg ;;
1257
1258 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1259 | --libexe | --libex | --libe)
1260 ac_prev=libexecdir ;;
1261 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1262 | --libexe=* | --libex=* | --libe=*)
1263 libexecdir=$ac_optarg ;;
1264
1265 -localedir | --localedir | --localedi | --localed | --locale)
1266 ac_prev=localedir ;;
1267 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1268 localedir=$ac_optarg ;;
1269
1270 -localstatedir | --localstatedir | --localstatedi | --localstated \
1271 | --localstate | --localstat | --localsta | --localst | --locals)
1272 ac_prev=localstatedir ;;
1273 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1274 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1275 localstatedir=$ac_optarg ;;
1276
1277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1278 ac_prev=mandir ;;
1279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1280 mandir=$ac_optarg ;;
1281
1282 -nfp | --nfp | --nf)
1283 # Obsolete; use --without-fp.
1284 with_fp=no ;;
1285
1286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1287 | --no-cr | --no-c | -n)
1288 no_create=yes ;;
1289
1290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1292 no_recursion=yes ;;
1293
1294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1296 | --oldin | --oldi | --old | --ol | --o)
1297 ac_prev=oldincludedir ;;
1298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1301 oldincludedir=$ac_optarg ;;
1302
1303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1304 ac_prev=prefix ;;
1305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1306 prefix=$ac_optarg ;;
1307
1308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1309 | --program-pre | --program-pr | --program-p)
1310 ac_prev=program_prefix ;;
1311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1313 program_prefix=$ac_optarg ;;
1314
1315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1316 | --program-suf | --program-su | --program-s)
1317 ac_prev=program_suffix ;;
1318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1320 program_suffix=$ac_optarg ;;
1321
1322 -program-transform-name | --program-transform-name \
1323 | --program-transform-nam | --program-transform-na \
1324 | --program-transform-n | --program-transform- \
1325 | --program-transform | --program-transfor \
1326 | --program-transfo | --program-transf \
1327 | --program-trans | --program-tran \
1328 | --progr-tra | --program-tr | --program-t)
1329 ac_prev=program_transform_name ;;
1330 -program-transform-name=* | --program-transform-name=* \
1331 | --program-transform-nam=* | --program-transform-na=* \
1332 | --program-transform-n=* | --program-transform-=* \
1333 | --program-transform=* | --program-transfor=* \
1334 | --program-transfo=* | --program-transf=* \
1335 | --program-trans=* | --program-tran=* \
1336 | --progr-tra=* | --program-tr=* | --program-t=*)
1337 program_transform_name=$ac_optarg ;;
1338
1339 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1340 ac_prev=pdfdir ;;
1341 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1342 pdfdir=$ac_optarg ;;
1343
1344 -psdir | --psdir | --psdi | --psd | --ps)
1345 ac_prev=psdir ;;
1346 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1347 psdir=$ac_optarg ;;
1348
1349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1350 | -silent | --silent | --silen | --sile | --sil)
1351 silent=yes ;;
1352
1353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1354 ac_prev=sbindir ;;
1355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1356 | --sbi=* | --sb=*)
1357 sbindir=$ac_optarg ;;
1358
1359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1361 | --sharedst | --shareds | --shared | --share | --shar \
1362 | --sha | --sh)
1363 ac_prev=sharedstatedir ;;
1364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1367 | --sha=* | --sh=*)
1368 sharedstatedir=$ac_optarg ;;
1369
1370 -site | --site | --sit)
1371 ac_prev=site ;;
1372 -site=* | --site=* | --sit=*)
1373 site=$ac_optarg ;;
1374
1375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1376 ac_prev=srcdir ;;
1377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1378 srcdir=$ac_optarg ;;
1379
1380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1381 | --syscon | --sysco | --sysc | --sys | --sy)
1382 ac_prev=sysconfdir ;;
1383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1385 sysconfdir=$ac_optarg ;;
1386
1387 -target | --target | --targe | --targ | --tar | --ta | --t)
1388 ac_prev=target_alias ;;
1389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1390 target_alias=$ac_optarg ;;
1391
1392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1393 verbose=yes ;;
1394
1395 -version | --version | --versio | --versi | --vers | -V)
1396 ac_init_version=: ;;
1397
1398 -with-* | --with-*)
1399 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1400 # Reject names that are not valid shell variable names.
1401 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1402 as_fn_error $? "invalid package name: $ac_useropt"
1403 ac_useropt_orig=$ac_useropt
1404 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1405 case $ac_user_opts in
1406 *"
1407"with_$ac_useropt"
1408"*) ;;
1409 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1410 ac_unrecognized_sep=', ';;
1411 esac
1412 eval with_$ac_useropt=\$ac_optarg ;;
1413
1414 -without-* | --without-*)
1415 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1416 # Reject names that are not valid shell variable names.
1417 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1418 as_fn_error $? "invalid package name: $ac_useropt"
1419 ac_useropt_orig=$ac_useropt
1420 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1421 case $ac_user_opts in
1422 *"
1423"with_$ac_useropt"
1424"*) ;;
1425 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1426 ac_unrecognized_sep=', ';;
1427 esac
1428 eval with_$ac_useropt=no ;;
1429
1430 --x)
1431 # Obsolete; use --with-x.
1432 with_x=yes ;;
1433
1434 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1435 | --x-incl | --x-inc | --x-in | --x-i)
1436 ac_prev=x_includes ;;
1437 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1438 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1439 x_includes=$ac_optarg ;;
1440
1441 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1442 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1443 ac_prev=x_libraries ;;
1444 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1445 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1446 x_libraries=$ac_optarg ;;
1447
1448 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1449Try \`$0 --help' for more information"
1450 ;;
1451
1452 *=*)
1453 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1454 # Reject names that are not valid shell variable names.
1455 case $ac_envvar in #(
1456 '' | [0-9]* | *[!_$as_cr_alnum]* )
1457 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1458 esac
1459 eval $ac_envvar=\$ac_optarg
1460 export $ac_envvar ;;
1461
1462 *)
1463 # FIXME: should be removed in autoconf 3.0.
1464 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1465 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1466 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1467 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1468 ;;
1469
1470 esac
1471done
1472
1473if test -n "$ac_prev"; then
1474 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1475 as_fn_error $? "missing argument to $ac_option"
1476fi
1477
1478if test -n "$ac_unrecognized_opts"; then
1479 case $enable_option_checking in
1480 no) ;;
1481 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1482 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1483 esac
1484fi
1485
1486# Check all directory arguments for consistency.
1487for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1488 datadir sysconfdir sharedstatedir localstatedir includedir \
1489 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1490 libdir localedir mandir
1491do
1492 eval ac_val=\$$ac_var
1493 # Remove trailing slashes.
1494 case $ac_val in
1495 */ )
1496 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1497 eval $ac_var=\$ac_val;;
1498 esac
1499 # Be sure to have absolute directory names.
1500 case $ac_val in
1501 [\\/$]* | ?:[\\/]* ) continue;;
1502 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1503 esac
1504 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1505done
1506
1507# There might be people who depend on the old broken behavior: `$host'
1508# used to hold the argument of --host etc.
1509# FIXME: To remove some day.
1510build=$build_alias
1511host=$host_alias
1512target=$target_alias
1513
1514# FIXME: To remove some day.
1515if test "x$host_alias" != x; then
1516 if test "x$build_alias" = x; then
1517 cross_compiling=maybe
1518 elif test "x$build_alias" != "x$host_alias"; then
1519 cross_compiling=yes
1520 fi
1521fi
1522
1523ac_tool_prefix=
1524test -n "$host_alias" && ac_tool_prefix=$host_alias-
1525
1526test "$silent" = yes && exec 6>/dev/null
1527
1528
1529ac_pwd=`pwd` && test -n "$ac_pwd" &&
1530ac_ls_di=`ls -di .` &&
1531ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1532 as_fn_error $? "working directory cannot be determined"
1533test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1534 as_fn_error $? "pwd does not report name of working directory"
1535
1536
1537# Find the source files, if location was not specified.
1538if test -z "$srcdir"; then
1539 ac_srcdir_defaulted=yes
1540 # Try the directory containing this script, then the parent directory.
1541 ac_confdir=`$as_dirname -- "$as_myself" ||
1542$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1543 X"$as_myself" : 'X\(//\)[^/]' \| \
1544 X"$as_myself" : 'X\(//\)$' \| \
1545 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1546$as_echo X"$as_myself" |
1547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1548 s//\1/
1549 q
1550 }
1551 /^X\(\/\/\)[^/].*/{
1552 s//\1/
1553 q
1554 }
1555 /^X\(\/\/\)$/{
1556 s//\1/
1557 q
1558 }
1559 /^X\(\/\).*/{
1560 s//\1/
1561 q
1562 }
1563 s/.*/./; q'`
1564 srcdir=$ac_confdir
1565 if test ! -r "$srcdir/$ac_unique_file"; then
1566 srcdir=..
1567 fi
1568else
1569 ac_srcdir_defaulted=no
1570fi
1571if test ! -r "$srcdir/$ac_unique_file"; then
1572 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1573 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1574fi
1575ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1576ac_abs_confdir=`(
1577 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1578 pwd)`
1579# When building in place, set srcdir=.
1580if test "$ac_abs_confdir" = "$ac_pwd"; then
1581 srcdir=.
1582fi
1583# Remove unnecessary trailing slashes from srcdir.
1584# Double slashes in file names in object file debugging info
1585# mess up M-x gdb in Emacs.
1586case $srcdir in
1587*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1588esac
1589for ac_var in $ac_precious_vars; do
1590 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1591 eval ac_env_${ac_var}_value=\$${ac_var}
1592 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1593 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1594done
1595
1596#
1597# Report the --help message.
1598#
1599if test "$ac_init_help" = "long"; then
1600 # Omit some internal or obsolete options to make the list less imposing.
1601 # This message is too long to be a string in the A/UX 3.1 sh.
1602 cat <<_ACEOF
Elliott Hughesed398002017-06-21 14:41:24 -07001603\`configure' configures Valgrind 3.13.0 to adapt to many kinds of systems.
Elliott Hughesa0664b92017-04-18 17:46:52 -07001604
1605Usage: $0 [OPTION]... [VAR=VALUE]...
1606
1607To assign environment variables (e.g., CC, CFLAGS...), specify them as
1608VAR=VALUE. See below for descriptions of some of the useful variables.
1609
1610Defaults for the options are specified in brackets.
1611
1612Configuration:
1613 -h, --help display this help and exit
1614 --help=short display options specific to this package
1615 --help=recursive display the short help of all the included packages
1616 -V, --version display version information and exit
1617 -q, --quiet, --silent do not print \`checking ...' messages
1618 --cache-file=FILE cache test results in FILE [disabled]
1619 -C, --config-cache alias for \`--cache-file=config.cache'
1620 -n, --no-create do not create output files
1621 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1622
1623Installation directories:
1624 --prefix=PREFIX install architecture-independent files in PREFIX
1625 [$ac_default_prefix]
1626 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1627 [PREFIX]
1628
1629By default, \`make install' will install all the files in
1630\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1631an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1632for instance \`--prefix=\$HOME'.
1633
1634For better control, use the options below.
1635
1636Fine tuning of the installation directories:
1637 --bindir=DIR user executables [EPREFIX/bin]
1638 --sbindir=DIR system admin executables [EPREFIX/sbin]
1639 --libexecdir=DIR program executables [EPREFIX/libexec]
1640 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1641 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1642 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1643 --libdir=DIR object code libraries [EPREFIX/lib]
1644 --includedir=DIR C header files [PREFIX/include]
1645 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1646 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1647 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1648 --infodir=DIR info documentation [DATAROOTDIR/info]
1649 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1650 --mandir=DIR man documentation [DATAROOTDIR/man]
1651 --docdir=DIR documentation root [DATAROOTDIR/doc/valgrind]
1652 --htmldir=DIR html documentation [DOCDIR]
1653 --dvidir=DIR dvi documentation [DOCDIR]
1654 --pdfdir=DIR pdf documentation [DOCDIR]
1655 --psdir=DIR ps documentation [DOCDIR]
1656_ACEOF
1657
1658 cat <<\_ACEOF
1659
1660Program names:
1661 --program-prefix=PREFIX prepend PREFIX to installed program names
1662 --program-suffix=SUFFIX append SUFFIX to installed program names
1663 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1664
1665System types:
1666 --build=BUILD configure for building on BUILD [guessed]
1667 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1668_ACEOF
1669fi
1670
1671if test -n "$ac_init_help"; then
1672 case $ac_init_help in
Elliott Hughesed398002017-06-21 14:41:24 -07001673 short | recursive ) echo "Configuration of Valgrind 3.13.0:";;
Elliott Hughesa0664b92017-04-18 17:46:52 -07001674 esac
1675 cat <<\_ACEOF
1676
1677Optional Features:
1678 --disable-option-checking ignore unrecognized --enable/--with options
1679 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1680 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1681 --enable-silent-rules less verbose build output (undo: "make V=1")
1682 --disable-silent-rules verbose build output (undo: "make V=0")
1683 --enable-maintainer-mode
1684 enable make rules and dependencies not useful (and
1685 sometimes confusing) to the casual installer
1686 --enable-dependency-tracking
1687 do not reject slow dependency extractors
1688 --disable-dependency-tracking
1689 speeds up one-time build
1690 --enable-only64bit do a 64-bit only build
1691 --enable-only32bit do a 32-bit only build
1692 --enable-inner enables self-hosting
1693 --enable-ubsan enables the undefined behaviour sanitiser
1694 --enable-tls platform supports TLS
1695
1696Optional Packages:
1697 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1698 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1699 --with-tmpdir=PATH Specify path for temporary files
1700 --with-mpicc= Specify name of MPI2-ised C compiler
1701
1702Some influential environment variables:
1703 CC C compiler command
1704 CFLAGS C compiler flags
1705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1706 nonstandard directory <lib dir>
1707 LIBS libraries to pass to the linker, e.g. -l<library>
1708 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1709 you have headers in a nonstandard directory <include dir>
1710 CPP C preprocessor
1711 CXX C++ compiler command
1712 CXXFLAGS C++ compiler flags
1713 AR Archiver command
1714 CCAS assembler compiler command (defaults to CC)
1715 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1716
1717Use these variables to override the choices made by `configure' or to help
1718it to find libraries and programs with nonstandard names/locations.
1719
1720Report bugs to <valgrind-users@lists.sourceforge.net>.
1721_ACEOF
1722ac_status=$?
1723fi
1724
1725if test "$ac_init_help" = "recursive"; then
1726 # If there are subdirs, report their specific --help.
1727 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1728 test -d "$ac_dir" ||
1729 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1730 continue
1731 ac_builddir=.
1732
1733case "$ac_dir" in
1734.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735*)
1736 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1737 # A ".." for each directory in $ac_dir_suffix.
1738 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1739 case $ac_top_builddir_sub in
1740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1742 esac ;;
1743esac
1744ac_abs_top_builddir=$ac_pwd
1745ac_abs_builddir=$ac_pwd$ac_dir_suffix
1746# for backward compatibility:
1747ac_top_builddir=$ac_top_build_prefix
1748
1749case $srcdir in
1750 .) # We are building in place.
1751 ac_srcdir=.
1752 ac_top_srcdir=$ac_top_builddir_sub
1753 ac_abs_top_srcdir=$ac_pwd ;;
1754 [\\/]* | ?:[\\/]* ) # Absolute name.
1755 ac_srcdir=$srcdir$ac_dir_suffix;
1756 ac_top_srcdir=$srcdir
1757 ac_abs_top_srcdir=$srcdir ;;
1758 *) # Relative name.
1759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1760 ac_top_srcdir=$ac_top_build_prefix$srcdir
1761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1762esac
1763ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1764
1765 cd "$ac_dir" || { ac_status=$?; continue; }
1766 # Check for guested configure.
1767 if test -f "$ac_srcdir/configure.gnu"; then
1768 echo &&
1769 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1770 elif test -f "$ac_srcdir/configure"; then
1771 echo &&
1772 $SHELL "$ac_srcdir/configure" --help=recursive
1773 else
1774 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1775 fi || ac_status=$?
1776 cd "$ac_pwd" || { ac_status=$?; break; }
1777 done
1778fi
1779
1780test -n "$ac_init_help" && exit $ac_status
1781if $ac_init_version; then
1782 cat <<\_ACEOF
Elliott Hughesed398002017-06-21 14:41:24 -07001783Valgrind configure 3.13.0
Elliott Hughesa0664b92017-04-18 17:46:52 -07001784generated by GNU Autoconf 2.69
1785
1786Copyright (C) 2012 Free Software Foundation, Inc.
1787This configure script is free software; the Free Software Foundation
1788gives unlimited permission to copy, distribute and modify it.
1789_ACEOF
1790 exit
1791fi
1792
1793## ------------------------ ##
1794## Autoconf initialization. ##
1795## ------------------------ ##
1796
1797# ac_fn_c_try_compile LINENO
1798# --------------------------
1799# Try to compile conftest.$ac_ext, and return whether this succeeded.
1800ac_fn_c_try_compile ()
1801{
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext
1804 if { { ac_try="$ac_compile"
1805case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808esac
1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810$as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_compile") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest.$ac_objext; then :
1823 ac_retval=0
1824else
1825 $as_echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=1
1829fi
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1832
1833} # ac_fn_c_try_compile
1834
1835# ac_fn_c_try_cpp LINENO
1836# ----------------------
1837# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1838ac_fn_c_try_cpp ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 if { { ac_try="$ac_cpp conftest.$ac_ext"
1842case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } > conftest.i && {
1857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 }; then :
1860 ac_retval=0
1861else
1862 $as_echo "$as_me: failed program was:" >&5
1863sed 's/^/| /' conftest.$ac_ext >&5
1864
1865 ac_retval=1
1866fi
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1869
1870} # ac_fn_c_try_cpp
1871
1872# ac_fn_cxx_try_compile LINENO
1873# ----------------------------
1874# Try to compile conftest.$ac_ext, and return whether this succeeded.
1875ac_fn_cxx_try_compile ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 rm -f conftest.$ac_objext
1879 if { { ac_try="$ac_compile"
1880case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883esac
1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885$as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_compile") 2>conftest.err
1887 ac_status=$?
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1892 fi
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_cxx_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest.$ac_objext; then :
1898 ac_retval=0
1899else
1900 $as_echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_retval=1
1904fi
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1907
1908} # ac_fn_cxx_try_compile
1909
1910# ac_fn_c_try_link LINENO
1911# -----------------------
1912# Try to link conftest.$ac_ext, and return whether this succeeded.
1913ac_fn_c_try_link ()
1914{
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 rm -f conftest.$ac_objext conftest$ac_exeext
1917 if { { ac_try="$ac_link"
1918case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921esac
1922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923$as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_link") 2>conftest.err
1925 ac_status=$?
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1930 fi
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && {
1933 test -z "$ac_c_werror_flag" ||
1934 test ! -s conftest.err
1935 } && test -s conftest$ac_exeext && {
1936 test "$cross_compiling" = yes ||
1937 test -x conftest$ac_exeext
1938 }; then :
1939 ac_retval=0
1940else
1941 $as_echo "$as_me: failed program was:" >&5
1942sed 's/^/| /' conftest.$ac_ext >&5
1943
1944 ac_retval=1
1945fi
1946 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948 # interfere with the next link command; also delete a directory that is
1949 # left behind by Apple's compiler. We do this before executing the actions.
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1953
1954} # ac_fn_c_try_link
1955
1956# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1957# -------------------------------------------------------
1958# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1959# the include files in INCLUDES and setting the cache variable VAR
1960# accordingly.
1961ac_fn_c_check_header_mongrel ()
1962{
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if eval \${$3+:} false; then :
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966$as_echo_n "checking for $2... " >&6; }
1967if eval \${$3+:} false; then :
1968 $as_echo_n "(cached) " >&6
1969fi
1970eval ac_res=\$$3
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973else
1974 # Is the header compilable?
1975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1976$as_echo_n "checking $2 usability... " >&6; }
1977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h. */
1979$4
1980#include <$2>
1981_ACEOF
1982if ac_fn_c_try_compile "$LINENO"; then :
1983 ac_header_compiler=yes
1984else
1985 ac_header_compiler=no
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1989$as_echo "$ac_header_compiler" >&6; }
1990
1991# Is the header present?
1992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1993$as_echo_n "checking $2 presence... " >&6; }
1994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h. */
1996#include <$2>
1997_ACEOF
1998if ac_fn_c_try_cpp "$LINENO"; then :
1999 ac_header_preproc=yes
2000else
2001 ac_header_preproc=no
2002fi
2003rm -f conftest.err conftest.i conftest.$ac_ext
2004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2005$as_echo "$ac_header_preproc" >&6; }
2006
2007# So? What about this header?
2008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2009 yes:no: )
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2011$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2013$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 ;;
2015 no:yes:* )
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2017$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2019$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2021$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2023$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2025$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026( $as_echo "## --------------------------------------------------- ##
2027## Report this to valgrind-users@lists.sourceforge.net ##
2028## --------------------------------------------------- ##"
2029 ) | sed "s/^/$as_me: WARNING: /" >&2
2030 ;;
2031esac
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033$as_echo_n "checking for $2... " >&6; }
2034if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2036else
2037 eval "$3=\$ac_header_compiler"
2038fi
2039eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041$as_echo "$ac_res" >&6; }
2042fi
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044
2045} # ac_fn_c_check_header_mongrel
2046
2047# ac_fn_c_try_run LINENO
2048# ----------------------
2049# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2050# that executables *can* be run.
2051ac_fn_c_try_run ()
2052{
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 if { { ac_try="$ac_link"
2055case "(($ac_try" in
2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057 *) ac_try_echo=$ac_try;;
2058esac
2059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060$as_echo "$ac_try_echo"; } >&5
2061 (eval "$ac_link") 2>&5
2062 ac_status=$?
2063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2065 { { case "(($ac_try" in
2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067 *) ac_try_echo=$ac_try;;
2068esac
2069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070$as_echo "$ac_try_echo"; } >&5
2071 (eval "$ac_try") 2>&5
2072 ac_status=$?
2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074 test $ac_status = 0; }; }; then :
2075 ac_retval=0
2076else
2077 $as_echo "$as_me: program exited with status $ac_status" >&5
2078 $as_echo "$as_me: failed program was:" >&5
2079sed 's/^/| /' conftest.$ac_ext >&5
2080
2081 ac_retval=$ac_status
2082fi
2083 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085 as_fn_set_status $ac_retval
2086
2087} # ac_fn_c_try_run
2088
2089# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2090# -------------------------------------------------------
2091# Tests whether HEADER exists and can be compiled using the include files in
2092# INCLUDES, setting the cache variable VAR accordingly.
2093ac_fn_c_check_header_compile ()
2094{
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097$as_echo_n "checking for $2... " >&6; }
2098if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2100else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h. */
2103$4
2104#include <$2>
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
2107 eval "$3=yes"
2108else
2109 eval "$3=no"
2110fi
2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112fi
2113eval ac_res=\$$3
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115$as_echo "$ac_res" >&6; }
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117
2118} # ac_fn_c_check_header_compile
2119
2120# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2121# -------------------------------------------
2122# Tests whether TYPE exists after having included INCLUDES, setting cache
2123# variable VAR accordingly.
2124ac_fn_c_check_type ()
2125{
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2128$as_echo_n "checking for $2... " >&6; }
2129if eval \${$3+:} false; then :
2130 $as_echo_n "(cached) " >&6
2131else
2132 eval "$3=no"
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134/* end confdefs.h. */
2135$4
2136int
2137main ()
2138{
2139if (sizeof ($2))
2140 return 0;
2141 ;
2142 return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147/* end confdefs.h. */
2148$4
2149int
2150main ()
2151{
2152if (sizeof (($2)))
2153 return 0;
2154 ;
2155 return 0;
2156}
2157_ACEOF
2158if ac_fn_c_try_compile "$LINENO"; then :
2159
2160else
2161 eval "$3=yes"
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164fi
2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166fi
2167eval ac_res=\$$3
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169$as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171
2172} # ac_fn_c_check_type
2173
2174# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2175# ----------------------------------------------------
2176# Tries to find if the field MEMBER exists in type AGGR, after including
2177# INCLUDES, setting cache variable VAR accordingly.
2178ac_fn_c_check_member ()
2179{
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2182$as_echo_n "checking for $2.$3... " >&6; }
2183if eval \${$4+:} false; then :
2184 $as_echo_n "(cached) " >&6
2185else
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187/* end confdefs.h. */
2188$5
2189int
2190main ()
2191{
2192static $2 ac_aggr;
2193if (ac_aggr.$3)
2194return 0;
2195 ;
2196 return 0;
2197}
2198_ACEOF
2199if ac_fn_c_try_compile "$LINENO"; then :
2200 eval "$4=yes"
2201else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203/* end confdefs.h. */
2204$5
2205int
2206main ()
2207{
2208static $2 ac_aggr;
2209if (sizeof ac_aggr.$3)
2210return 0;
2211 ;
2212 return 0;
2213}
2214_ACEOF
2215if ac_fn_c_try_compile "$LINENO"; then :
2216 eval "$4=yes"
2217else
2218 eval "$4=no"
2219fi
2220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223fi
2224eval ac_res=\$$4
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226$as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228
2229} # ac_fn_c_check_member
2230
2231# ac_fn_c_check_func LINENO FUNC VAR
2232# ----------------------------------
2233# Tests whether FUNC exists, setting the cache variable VAR accordingly
2234ac_fn_c_check_func ()
2235{
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238$as_echo_n "checking for $2... " >&6; }
2239if eval \${$3+:} false; then :
2240 $as_echo_n "(cached) " >&6
2241else
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243/* end confdefs.h. */
2244/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2246#define $2 innocuous_$2
2247
2248/* System header to define __stub macros and hopefully few prototypes,
2249 which can conflict with char $2 (); below.
2250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2251 <limits.h> exists even on freestanding compilers. */
2252
2253#ifdef __STDC__
2254# include <limits.h>
2255#else
2256# include <assert.h>
2257#endif
2258
2259#undef $2
2260
2261/* Override any GCC internal prototype to avoid an error.
2262 Use char because int might match the return type of a GCC
2263 builtin and then its argument prototype would still apply. */
2264#ifdef __cplusplus
2265extern "C"
2266#endif
2267char $2 ();
2268/* The GNU C library defines this for functions which it implements
2269 to always fail with ENOSYS. Some functions are actually named
2270 something starting with __ and the normal name is an alias. */
2271#if defined __stub_$2 || defined __stub___$2
2272choke me
2273#endif
2274
2275int
2276main ()
2277{
2278return $2 ();
2279 ;
2280 return 0;
2281}
2282_ACEOF
2283if ac_fn_c_try_link "$LINENO"; then :
2284 eval "$3=yes"
2285else
2286 eval "$3=no"
2287fi
2288rm -f core conftest.err conftest.$ac_objext \
2289 conftest$ac_exeext conftest.$ac_ext
2290fi
2291eval ac_res=\$$3
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293$as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295
2296} # ac_fn_c_check_func
2297
2298# ac_fn_cxx_try_link LINENO
2299# -------------------------
2300# Try to link conftest.$ac_ext, and return whether this succeeded.
2301ac_fn_cxx_try_link ()
2302{
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 rm -f conftest.$ac_objext conftest$ac_exeext
2305 if { { ac_try="$ac_link"
2306case "(($ac_try" in
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2309esac
2310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2311$as_echo "$ac_try_echo"; } >&5
2312 (eval "$ac_link") 2>conftest.err
2313 ac_status=$?
2314 if test -s conftest.err; then
2315 grep -v '^ *+' conftest.err >conftest.er1
2316 cat conftest.er1 >&5
2317 mv -f conftest.er1 conftest.err
2318 fi
2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; } && {
2321 test -z "$ac_cxx_werror_flag" ||
2322 test ! -s conftest.err
2323 } && test -s conftest$ac_exeext && {
2324 test "$cross_compiling" = yes ||
2325 test -x conftest$ac_exeext
2326 }; then :
2327 ac_retval=0
2328else
2329 $as_echo "$as_me: failed program was:" >&5
2330sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 ac_retval=1
2333fi
2334 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2335 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2336 # interfere with the next link command; also delete a directory that is
2337 # left behind by Apple's compiler. We do this before executing the actions.
2338 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340 as_fn_set_status $ac_retval
2341
2342} # ac_fn_cxx_try_link
2343cat >config.log <<_ACEOF
2344This file contains any messages produced by compilers while
2345running configure, to aid debugging if configure makes a mistake.
2346
Elliott Hughesed398002017-06-21 14:41:24 -07002347It was created by Valgrind $as_me 3.13.0, which was
Elliott Hughesa0664b92017-04-18 17:46:52 -07002348generated by GNU Autoconf 2.69. Invocation command line was
2349
2350 $ $0 $@
2351
2352_ACEOF
2353exec 5>>config.log
2354{
2355cat <<_ASUNAME
2356## --------- ##
2357## Platform. ##
2358## --------- ##
2359
2360hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2361uname -m = `(uname -m) 2>/dev/null || echo unknown`
2362uname -r = `(uname -r) 2>/dev/null || echo unknown`
2363uname -s = `(uname -s) 2>/dev/null || echo unknown`
2364uname -v = `(uname -v) 2>/dev/null || echo unknown`
2365
2366/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2367/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2368
2369/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2370/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2371/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2372/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2373/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2374/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2375/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2376
2377_ASUNAME
2378
2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH
2381do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 $as_echo "PATH: $as_dir"
2385 done
2386IFS=$as_save_IFS
2387
2388} >&5
2389
2390cat >&5 <<_ACEOF
2391
2392
2393## ----------- ##
2394## Core tests. ##
2395## ----------- ##
2396
2397_ACEOF
2398
2399
2400# Keep a trace of the command line.
2401# Strip out --no-create and --no-recursion so they do not pile up.
2402# Strip out --silent because we don't want to record it for future runs.
2403# Also quote any args containing shell meta-characters.
2404# Make two passes to allow for proper duplicate-argument suppression.
2405ac_configure_args=
2406ac_configure_args0=
2407ac_configure_args1=
2408ac_must_keep_next=false
2409for ac_pass in 1 2
2410do
2411 for ac_arg
2412 do
2413 case $ac_arg in
2414 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2416 | -silent | --silent | --silen | --sile | --sil)
2417 continue ;;
2418 *\'*)
2419 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2420 esac
2421 case $ac_pass in
2422 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2423 2)
2424 as_fn_append ac_configure_args1 " '$ac_arg'"
2425 if test $ac_must_keep_next = true; then
2426 ac_must_keep_next=false # Got value, back to normal.
2427 else
2428 case $ac_arg in
2429 *=* | --config-cache | -C | -disable-* | --disable-* \
2430 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2431 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2432 | -with-* | --with-* | -without-* | --without-* | --x)
2433 case "$ac_configure_args0 " in
2434 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2435 esac
2436 ;;
2437 -* ) ac_must_keep_next=true ;;
2438 esac
2439 fi
2440 as_fn_append ac_configure_args " '$ac_arg'"
2441 ;;
2442 esac
2443 done
2444done
2445{ ac_configure_args0=; unset ac_configure_args0;}
2446{ ac_configure_args1=; unset ac_configure_args1;}
2447
2448# When interrupted or exit'd, cleanup temporary files, and complete
2449# config.log. We remove comments because anyway the quotes in there
2450# would cause problems or look ugly.
2451# WARNING: Use '\'' to represent an apostrophe within the trap.
2452# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2453trap 'exit_status=$?
2454 # Save into config.log some information that might help in debugging.
2455 {
2456 echo
2457
2458 $as_echo "## ---------------- ##
2459## Cache variables. ##
2460## ---------------- ##"
2461 echo
2462 # The following way of writing the cache mishandles newlines in values,
2463(
2464 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2465 eval ac_val=\$$ac_var
2466 case $ac_val in #(
2467 *${as_nl}*)
2468 case $ac_var in #(
2469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2470$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2471 esac
2472 case $ac_var in #(
2473 _ | IFS | as_nl) ;; #(
2474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2475 *) { eval $ac_var=; unset $ac_var;} ;;
2476 esac ;;
2477 esac
2478 done
2479 (set) 2>&1 |
2480 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2481 *${as_nl}ac_space=\ *)
2482 sed -n \
2483 "s/'\''/'\''\\\\'\'''\''/g;
2484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2485 ;; #(
2486 *)
2487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2488 ;;
2489 esac |
2490 sort
2491)
2492 echo
2493
2494 $as_echo "## ----------------- ##
2495## Output variables. ##
2496## ----------------- ##"
2497 echo
2498 for ac_var in $ac_subst_vars
2499 do
2500 eval ac_val=\$$ac_var
2501 case $ac_val in
2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2503 esac
2504 $as_echo "$ac_var='\''$ac_val'\''"
2505 done | sort
2506 echo
2507
2508 if test -n "$ac_subst_files"; then
2509 $as_echo "## ------------------- ##
2510## File substitutions. ##
2511## ------------------- ##"
2512 echo
2513 for ac_var in $ac_subst_files
2514 do
2515 eval ac_val=\$$ac_var
2516 case $ac_val in
2517 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2518 esac
2519 $as_echo "$ac_var='\''$ac_val'\''"
2520 done | sort
2521 echo
2522 fi
2523
2524 if test -s confdefs.h; then
2525 $as_echo "## ----------- ##
2526## confdefs.h. ##
2527## ----------- ##"
2528 echo
2529 cat confdefs.h
2530 echo
2531 fi
2532 test "$ac_signal" != 0 &&
2533 $as_echo "$as_me: caught signal $ac_signal"
2534 $as_echo "$as_me: exit $exit_status"
2535 } >&5
2536 rm -f core *.core core.conftest.* &&
2537 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2538 exit $exit_status
2539' 0
2540for ac_signal in 1 2 13 15; do
2541 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2542done
2543ac_signal=0
2544
2545# confdefs.h avoids OS command line length limits that DEFS can exceed.
2546rm -f -r conftest* confdefs.h
2547
2548$as_echo "/* confdefs.h */" > confdefs.h
2549
2550# Predefined preprocessor variables.
2551
2552cat >>confdefs.h <<_ACEOF
2553#define PACKAGE_NAME "$PACKAGE_NAME"
2554_ACEOF
2555
2556cat >>confdefs.h <<_ACEOF
2557#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2558_ACEOF
2559
2560cat >>confdefs.h <<_ACEOF
2561#define PACKAGE_VERSION "$PACKAGE_VERSION"
2562_ACEOF
2563
2564cat >>confdefs.h <<_ACEOF
2565#define PACKAGE_STRING "$PACKAGE_STRING"
2566_ACEOF
2567
2568cat >>confdefs.h <<_ACEOF
2569#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2570_ACEOF
2571
2572cat >>confdefs.h <<_ACEOF
2573#define PACKAGE_URL "$PACKAGE_URL"
2574_ACEOF
2575
2576
2577# Let the site file select an alternate cache file if it wants to.
2578# Prefer an explicitly selected file to automatically selected ones.
2579ac_site_file1=NONE
2580ac_site_file2=NONE
2581if test -n "$CONFIG_SITE"; then
2582 # We do not want a PATH search for config.site.
2583 case $CONFIG_SITE in #((
2584 -*) ac_site_file1=./$CONFIG_SITE;;
2585 */*) ac_site_file1=$CONFIG_SITE;;
2586 *) ac_site_file1=./$CONFIG_SITE;;
2587 esac
2588elif test "x$prefix" != xNONE; then
2589 ac_site_file1=$prefix/share/config.site
2590 ac_site_file2=$prefix/etc/config.site
2591else
2592 ac_site_file1=$ac_default_prefix/share/config.site
2593 ac_site_file2=$ac_default_prefix/etc/config.site
2594fi
2595for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2596do
2597 test "x$ac_site_file" = xNONE && continue
2598 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2600$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2601 sed 's/^/| /' "$ac_site_file" >&5
2602 . "$ac_site_file" \
2603 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605as_fn_error $? "failed to load site script $ac_site_file
2606See \`config.log' for more details" "$LINENO" 5; }
2607 fi
2608done
2609
2610if test -r "$cache_file"; then
2611 # Some versions of bash will fail to source /dev/null (special files
2612 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2613 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2615$as_echo "$as_me: loading cache $cache_file" >&6;}
2616 case $cache_file in
2617 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2618 *) . "./$cache_file";;
2619 esac
2620 fi
2621else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2623$as_echo "$as_me: creating cache $cache_file" >&6;}
2624 >$cache_file
2625fi
2626
2627as_fn_append ac_header_list " stdlib.h"
2628as_fn_append ac_header_list " unistd.h"
2629as_fn_append ac_header_list " sys/param.h"
2630# Check that the precious variables saved in the cache have kept the same
2631# value.
2632ac_cache_corrupted=false
2633for ac_var in $ac_precious_vars; do
2634 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2635 eval ac_new_set=\$ac_env_${ac_var}_set
2636 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2637 eval ac_new_val=\$ac_env_${ac_var}_value
2638 case $ac_old_set,$ac_new_set in
2639 set,)
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2641$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2642 ac_cache_corrupted=: ;;
2643 ,set)
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2645$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2646 ac_cache_corrupted=: ;;
2647 ,);;
2648 *)
2649 if test "x$ac_old_val" != "x$ac_new_val"; then
2650 # differences in whitespace do not lead to failure.
2651 ac_old_val_w=`echo x $ac_old_val`
2652 ac_new_val_w=`echo x $ac_new_val`
2653 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2655$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2656 ac_cache_corrupted=:
2657 else
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2659$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2660 eval $ac_var=\$ac_old_val
2661 fi
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2663$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2665$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2666 fi;;
2667 esac
2668 # Pass precious variables to config.status.
2669 if test "$ac_new_set" = set; then
2670 case $ac_new_val in
2671 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2672 *) ac_arg=$ac_var=$ac_new_val ;;
2673 esac
2674 case " $ac_configure_args " in
2675 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2676 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2677 esac
2678 fi
2679done
2680if $ac_cache_corrupted; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2684$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2685 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2686fi
2687## -------------------- ##
2688## Main body of script. ##
2689## -------------------- ##
2690
2691ac_ext=c
2692ac_cpp='$CPP $CPPFLAGS'
2693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696
2697
2698
2699ac_config_headers="$ac_config_headers config.h"
2700
2701am__api_version='1.15'
2702
2703ac_aux_dir=
2704for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2705 if test -f "$ac_dir/install-sh"; then
2706 ac_aux_dir=$ac_dir
2707 ac_install_sh="$ac_aux_dir/install-sh -c"
2708 break
2709 elif test -f "$ac_dir/install.sh"; then
2710 ac_aux_dir=$ac_dir
2711 ac_install_sh="$ac_aux_dir/install.sh -c"
2712 break
2713 elif test -f "$ac_dir/shtool"; then
2714 ac_aux_dir=$ac_dir
2715 ac_install_sh="$ac_aux_dir/shtool install -c"
2716 break
2717 fi
2718done
2719if test -z "$ac_aux_dir"; then
2720 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2721fi
2722
2723# These three variables are undocumented and unsupported,
2724# and are intended to be withdrawn in a future Autoconf release.
2725# They can cause serious problems if a builder's source tree is in a directory
2726# whose full name contains unusual characters.
2727ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2728ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2729ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2730
2731
2732# Find a good install program. We prefer a C program (faster),
2733# so one script is as good as another. But avoid the broken or
2734# incompatible versions:
2735# SysV /etc/install, /usr/sbin/install
2736# SunOS /usr/etc/install
2737# IRIX /sbin/install
2738# AIX /bin/install
2739# AmigaOS /C/install, which installs bootblocks on floppy discs
2740# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2741# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2742# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2743# OS/2's system install, which has a completely different semantic
2744# ./install, which can be erroneously created by make from ./install.sh.
2745# Reject install programs that cannot install multiple files.
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2747$as_echo_n "checking for a BSD-compatible install... " >&6; }
2748if test -z "$INSTALL"; then
2749if ${ac_cv_path_install+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 # Account for people who put trailing slashes in PATH elements.
2758case $as_dir/ in #((
2759 ./ | .// | /[cC]/* | \
2760 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2761 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2762 /usr/ucb/* ) ;;
2763 *)
2764 # OSF1 and SCO ODT 3.0 have their own names for install.
2765 # Don't use installbsd from OSF since it installs stuff as root
2766 # by default.
2767 for ac_prog in ginstall scoinst install; do
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2770 if test $ac_prog = install &&
2771 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2772 # AIX install. It has an incompatible calling convention.
2773 :
2774 elif test $ac_prog = install &&
2775 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2776 # program-specific install script used by HP pwplus--don't use.
2777 :
2778 else
2779 rm -rf conftest.one conftest.two conftest.dir
2780 echo one > conftest.one
2781 echo two > conftest.two
2782 mkdir conftest.dir
2783 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2784 test -s conftest.one && test -s conftest.two &&
2785 test -s conftest.dir/conftest.one &&
2786 test -s conftest.dir/conftest.two
2787 then
2788 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2789 break 3
2790 fi
2791 fi
2792 fi
2793 done
2794 done
2795 ;;
2796esac
2797
2798 done
2799IFS=$as_save_IFS
2800
2801rm -rf conftest.one conftest.two conftest.dir
2802
2803fi
2804 if test "${ac_cv_path_install+set}" = set; then
2805 INSTALL=$ac_cv_path_install
2806 else
2807 # As a last resort, use the slow shell script. Don't cache a
2808 # value for INSTALL within a source directory, because that will
2809 # break other packages using the cache if that directory is
2810 # removed, or if the value is a relative name.
2811 INSTALL=$ac_install_sh
2812 fi
2813fi
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2815$as_echo "$INSTALL" >&6; }
2816
2817# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2818# It thinks the first close brace ends the variable substitution.
2819test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2820
2821test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2822
2823test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2824
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2826$as_echo_n "checking whether build environment is sane... " >&6; }
2827# Reject unsafe characters in $srcdir or the absolute working directory
2828# name. Accept space and tab only in the latter.
2829am_lf='
2830'
2831case `pwd` in
2832 *[\\\"\#\$\&\'\`$am_lf]*)
2833 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2834esac
2835case $srcdir in
2836 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2837 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2838esac
2839
2840# Do 'set' in a subshell so we don't clobber the current shell's
2841# arguments. Must try -L first in case configure is actually a
2842# symlink; some systems play weird games with the mod time of symlinks
2843# (eg FreeBSD returns the mod time of the symlink's containing
2844# directory).
2845if (
2846 am_has_slept=no
2847 for am_try in 1 2; do
2848 echo "timestamp, slept: $am_has_slept" > conftest.file
2849 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2850 if test "$*" = "X"; then
2851 # -L didn't work.
2852 set X `ls -t "$srcdir/configure" conftest.file`
2853 fi
2854 if test "$*" != "X $srcdir/configure conftest.file" \
2855 && test "$*" != "X conftest.file $srcdir/configure"; then
2856
2857 # If neither matched, then we have a broken ls. This can happen
2858 # if, for instance, CONFIG_SHELL is bash and it inherits a
2859 # broken ls alias from the environment. This has actually
2860 # happened. Such a system could not be considered "sane".
2861 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2862 alias in your environment" "$LINENO" 5
2863 fi
2864 if test "$2" = conftest.file || test $am_try -eq 2; then
2865 break
2866 fi
2867 # Just in case.
2868 sleep 1
2869 am_has_slept=yes
2870 done
2871 test "$2" = conftest.file
2872 )
2873then
2874 # Ok.
2875 :
2876else
2877 as_fn_error $? "newly created file is older than distributed files!
2878Check your system clock" "$LINENO" 5
2879fi
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881$as_echo "yes" >&6; }
2882# If we didn't sleep, we still need to ensure time stamps of config.status and
2883# generated files are strictly newer.
2884am_sleep_pid=
2885if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2886 ( sleep 1 ) &
2887 am_sleep_pid=$!
2888fi
2889
2890rm -f conftest.file
2891
2892test "$program_prefix" != NONE &&
2893 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2894# Use a double $ so make ignores it.
2895test "$program_suffix" != NONE &&
2896 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2897# Double any \ or $.
2898# By default was `s,x,x', remove it if useless.
2899ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2900program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2901
2902# Expand $ac_aux_dir to an absolute path.
2903am_aux_dir=`cd "$ac_aux_dir" && pwd`
2904
2905if test x"${MISSING+set}" != xset; then
2906 case $am_aux_dir in
2907 *\ * | *\ *)
2908 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2909 *)
2910 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2911 esac
2912fi
2913# Use eval to expand $SHELL
2914if eval "$MISSING --is-lightweight"; then
2915 am_missing_run="$MISSING "
2916else
2917 am_missing_run=
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2919$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2920fi
2921
2922if test x"${install_sh+set}" != xset; then
2923 case $am_aux_dir in
2924 *\ * | *\ *)
2925 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2926 *)
2927 install_sh="\${SHELL} $am_aux_dir/install-sh"
2928 esac
2929fi
2930
2931# Installed binaries are usually stripped using 'strip' when the user
2932# run "make install-strip". However 'strip' might not be the right
2933# tool to use in cross-compilation environments, therefore Automake
2934# will honor the 'STRIP' environment variable to overrule this program.
2935if test "$cross_compiling" != no; then
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2938set dummy ${ac_tool_prefix}strip; ac_word=$2
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if ${ac_cv_prog_STRIP+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943else
2944 if test -n "$STRIP"; then
2945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2946else
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958done
2959 done
2960IFS=$as_save_IFS
2961
2962fi
2963fi
2964STRIP=$ac_cv_prog_STRIP
2965if test -n "$STRIP"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2967$as_echo "$STRIP" >&6; }
2968else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970$as_echo "no" >&6; }
2971fi
2972
2973
2974fi
2975if test -z "$ac_cv_prog_STRIP"; then
2976 ac_ct_STRIP=$STRIP
2977 # Extract the first word of "strip", so it can be a program name with args.
2978set dummy strip; ac_word=$2
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980$as_echo_n "checking for $ac_word... " >&6; }
2981if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983else
2984 if test -n "$ac_ct_STRIP"; then
2985 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2986else
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_ac_ct_STRIP="strip"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998done
2999 done
3000IFS=$as_save_IFS
3001
3002fi
3003fi
3004ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3005if test -n "$ac_ct_STRIP"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3007$as_echo "$ac_ct_STRIP" >&6; }
3008else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010$as_echo "no" >&6; }
3011fi
3012
3013 if test "x$ac_ct_STRIP" = x; then
3014 STRIP=":"
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017yes:)
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020ac_tool_warned=yes ;;
3021esac
3022 STRIP=$ac_ct_STRIP
3023 fi
3024else
3025 STRIP="$ac_cv_prog_STRIP"
3026fi
3027
3028fi
3029INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3030
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3032$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3033if test -z "$MKDIR_P"; then
3034 if ${ac_cv_path_mkdir+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3039do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_prog in mkdir gmkdir; do
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3045 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3046 'mkdir (GNU coreutils) '* | \
3047 'mkdir (coreutils) '* | \
3048 'mkdir (fileutils) '4.1*)
3049 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3050 break 3;;
3051 esac
3052 done
3053 done
3054 done
3055IFS=$as_save_IFS
3056
3057fi
3058
3059 test -d ./--version && rmdir ./--version
3060 if test "${ac_cv_path_mkdir+set}" = set; then
3061 MKDIR_P="$ac_cv_path_mkdir -p"
3062 else
3063 # As a last resort, use the slow shell script. Don't cache a
3064 # value for MKDIR_P within a source directory, because that will
3065 # break other packages using the cache if that directory is
3066 # removed, or if the value is a relative name.
3067 MKDIR_P="$ac_install_sh -d"
3068 fi
3069fi
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3071$as_echo "$MKDIR_P" >&6; }
3072
3073for ac_prog in gawk mawk nawk awk
3074do
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076set dummy $ac_prog; ac_word=$2
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078$as_echo_n "checking for $ac_word... " >&6; }
3079if ${ac_cv_prog_AWK+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081else
3082 if test -n "$AWK"; then
3083 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3084else
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_AWK="$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096done
3097 done
3098IFS=$as_save_IFS
3099
3100fi
3101fi
3102AWK=$ac_cv_prog_AWK
3103if test -n "$AWK"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3105$as_echo "$AWK" >&6; }
3106else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109fi
3110
3111
3112 test -n "$AWK" && break
3113done
3114
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3116$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3117set x ${MAKE-make}
3118ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3119if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121else
3122 cat >conftest.make <<\_ACEOF
3123SHELL = /bin/sh
3124all:
3125 @echo '@@@%%%=$(MAKE)=@@@%%%'
3126_ACEOF
3127# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3128case `${MAKE-make} -f conftest.make 2>/dev/null` in
3129 *@@@%%%=?*=@@@%%%*)
3130 eval ac_cv_prog_make_${ac_make}_set=yes;;
3131 *)
3132 eval ac_cv_prog_make_${ac_make}_set=no;;
3133esac
3134rm -f conftest.make
3135fi
3136if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138$as_echo "yes" >&6; }
3139 SET_MAKE=
3140else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142$as_echo "no" >&6; }
3143 SET_MAKE="MAKE=${MAKE-make}"
3144fi
3145
3146rm -rf .tst 2>/dev/null
3147mkdir .tst 2>/dev/null
3148if test -d .tst; then
3149 am__leading_dot=.
3150else
3151 am__leading_dot=_
3152fi
3153rmdir .tst 2>/dev/null
3154
3155# Check whether --enable-silent-rules was given.
3156if test "${enable_silent_rules+set}" = set; then :
3157 enableval=$enable_silent_rules;
3158fi
3159
3160case $enable_silent_rules in # (((
3161 yes) AM_DEFAULT_VERBOSITY=0;;
3162 no) AM_DEFAULT_VERBOSITY=1;;
3163 *) AM_DEFAULT_VERBOSITY=1;;
3164esac
3165am_make=${MAKE-make}
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3167$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3168if ${am_cv_make_support_nested_variables+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170else
3171 if $as_echo 'TRUE=$(BAR$(V))
3172BAR0=false
3173BAR1=true
3174V=1
3175am__doit:
3176 @$(TRUE)
3177.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3178 am_cv_make_support_nested_variables=yes
3179else
3180 am_cv_make_support_nested_variables=no
3181fi
3182fi
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3184$as_echo "$am_cv_make_support_nested_variables" >&6; }
3185if test $am_cv_make_support_nested_variables = yes; then
3186 AM_V='$(V)'
3187 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3188else
3189 AM_V=$AM_DEFAULT_VERBOSITY
3190 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3191fi
3192AM_BACKSLASH='\'
3193
3194if test "`cd $srcdir && pwd`" != "`pwd`"; then
3195 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3196 # is not polluted with repeated "-I."
3197 am__isrc=' -I$(srcdir)'
3198 # test to see if srcdir already configured
3199 if test -f $srcdir/config.status; then
3200 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3201 fi
3202fi
3203
3204# test whether we have cygpath
3205if test -z "$CYGPATH_W"; then
3206 if (cygpath --version) >/dev/null 2>/dev/null; then
3207 CYGPATH_W='cygpath -w'
3208 else
3209 CYGPATH_W=echo
3210 fi
3211fi
3212
3213
3214# Define the identity of the package.
3215 PACKAGE='valgrind'
Elliott Hughesed398002017-06-21 14:41:24 -07003216 VERSION='3.13.0'
Elliott Hughesa0664b92017-04-18 17:46:52 -07003217
3218
3219cat >>confdefs.h <<_ACEOF
3220#define PACKAGE "$PACKAGE"
3221_ACEOF
3222
3223
3224cat >>confdefs.h <<_ACEOF
3225#define VERSION "$VERSION"
3226_ACEOF
3227
3228# Some tools Automake needs.
3229
3230ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3231
3232
3233AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3234
3235
3236AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3237
3238
3239AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3240
3241
3242MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3243
3244# For better backward compatibility. To be removed once Automake 1.9.x
3245# dies out for good. For more background, see:
3246# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3247# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3248mkdir_p='$(MKDIR_P)'
3249
3250# We need awk for the "check" target (and possibly the TAP driver). The
3251# system "awk" is bad on some platforms.
3252# Always define AMTAR for backward compatibility. Yes, it's still used
3253# in the wild :-( We should find a proper way to deprecate it ...
3254AMTAR='$${TAR-tar}'
3255
3256
3257# We'll loop over all known methods to create a tar archive until one works.
3258_am_tools='gnutar pax cpio none'
3259
3260am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3261
3262
3263
3264
3265
3266
3267# POSIX will say in a future version that running "rm -f" with no argument
3268# is OK; and we want to be able to make that assumption in our Makefile
3269# recipes. So use an aggressive probe to check that the usage we want is
3270# actually supported "in the wild" to an acceptable degree.
3271# See automake bug#10828.
3272# To make any issue more visible, cause the running configure to be aborted
3273# by default if the 'rm' program in use doesn't match our expectations; the
3274# user can still override this though.
3275if rm -f && rm -fr && rm -rf; then : OK; else
3276 cat >&2 <<'END'
3277Oops!
3278
3279Your 'rm' program seems unable to run without file operands specified
3280on the command line, even when the '-f' option is present. This is contrary
3281to the behaviour of most rm programs out there, and not conforming with
3282the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3283
3284Please tell bug-automake@gnu.org about your system, including the value
3285of your $PATH and any error possibly output before this message. This
3286can help us improve future automake versions.
3287
3288END
3289 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3290 echo 'Configuration will proceed anyway, since you have set the' >&2
3291 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3292 echo >&2
3293 else
3294 cat >&2 <<'END'
3295Aborting the configuration process, to ensure you take notice of the issue.
3296
3297You can download and install GNU coreutils to get an 'rm' implementation
3298that behaves properly: <http://www.gnu.org/software/coreutils/>.
3299
3300If you want to complete the configuration process using your problematic
3301'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3302to "yes", and re-run configure.
3303
3304END
3305 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3306 fi
3307fi
3308
3309
3310
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3312$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3313 # Check whether --enable-maintainer-mode was given.
3314if test "${enable_maintainer_mode+set}" = set; then :
3315 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3316else
3317 USE_MAINTAINER_MODE=no
3318fi
3319
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3321$as_echo "$USE_MAINTAINER_MODE" >&6; }
3322 if test $USE_MAINTAINER_MODE = yes; then
3323 MAINTAINER_MODE_TRUE=
3324 MAINTAINER_MODE_FALSE='#'
3325else
3326 MAINTAINER_MODE_TRUE='#'
3327 MAINTAINER_MODE_FALSE=
3328fi
3329
3330 MAINT=$MAINTAINER_MODE_TRUE
3331
3332
3333
3334#----------------------------------------------------------------------------
3335# Do NOT modify these flags here. Except in feature tests in which case
3336# the original values must be properly restored.
3337#----------------------------------------------------------------------------
3338CFLAGS="$CFLAGS"
3339CXXFLAGS="$CXXFLAGS"
3340
3341#----------------------------------------------------------------------------
3342# Checks for various programs.
3343#----------------------------------------------------------------------------
3344
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3346$as_echo_n "checking whether ln -s works... " >&6; }
3347LN_S=$as_ln_s
3348if test "$LN_S" = "ln -s"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350$as_echo "yes" >&6; }
3351else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3353$as_echo "no, using $LN_S" >&6; }
3354fi
3355
3356ac_ext=c
3357ac_cpp='$CPP $CPPFLAGS'
3358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3363set dummy ${ac_tool_prefix}gcc; ac_word=$2
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365$as_echo_n "checking for $ac_word... " >&6; }
3366if ${ac_cv_prog_CC+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371else
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383done
3384 done
3385IFS=$as_save_IFS
3386
3387fi
3388fi
3389CC=$ac_cv_prog_CC
3390if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392$as_echo "$CC" >&6; }
3393else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395$as_echo "no" >&6; }
3396fi
3397
3398
3399fi
3400if test -z "$ac_cv_prog_CC"; then
3401 ac_ct_CC=$CC
3402 # Extract the first word of "gcc", so it can be a program name with args.
3403set dummy gcc; ac_word=$2
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405$as_echo_n "checking for $ac_word... " >&6; }
3406if ${ac_cv_prog_ac_ct_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408else
3409 if test -n "$ac_ct_CC"; then
3410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3411else
3412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413for as_dir in $PATH
3414do
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_ac_ct_CC="gcc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423done
3424 done
3425IFS=$as_save_IFS
3426
3427fi
3428fi
3429ac_ct_CC=$ac_cv_prog_ac_ct_CC
3430if test -n "$ac_ct_CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3432$as_echo "$ac_ct_CC" >&6; }
3433else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435$as_echo "no" >&6; }
3436fi
3437
3438 if test "x$ac_ct_CC" = x; then
3439 CC=""
3440 else
3441 case $cross_compiling:$ac_tool_warned in
3442yes:)
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3445ac_tool_warned=yes ;;
3446esac
3447 CC=$ac_ct_CC
3448 fi
3449else
3450 CC="$ac_cv_prog_CC"
3451fi
3452
3453if test -z "$CC"; then
3454 if test -n "$ac_tool_prefix"; then
3455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3456set dummy ${ac_tool_prefix}cc; ac_word=$2
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458$as_echo_n "checking for $ac_word... " >&6; }
3459if ${ac_cv_prog_CC+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461else
3462 if test -n "$CC"; then
3463 ac_cv_prog_CC="$CC" # Let the user override the test.
3464else
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_CC="${ac_tool_prefix}cc"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3475 fi
3476done
3477 done
3478IFS=$as_save_IFS
3479
3480fi
3481fi
3482CC=$ac_cv_prog_CC
3483if test -n "$CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485$as_echo "$CC" >&6; }
3486else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488$as_echo "no" >&6; }
3489fi
3490
3491
3492 fi
3493fi
3494if test -z "$CC"; then
3495 # Extract the first word of "cc", so it can be a program name with args.
3496set dummy cc; ac_word=$2
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498$as_echo_n "checking for $ac_word... " >&6; }
3499if ${ac_cv_prog_CC+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504else
3505 ac_prog_rejected=no
3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3514 ac_prog_rejected=yes
3515 continue
3516 fi
3517 ac_cv_prog_CC="cc"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3520 fi
3521done
3522 done
3523IFS=$as_save_IFS
3524
3525if test $ac_prog_rejected = yes; then
3526 # We found a bogon in the path, so make sure we never use it.
3527 set dummy $ac_cv_prog_CC
3528 shift
3529 if test $# != 0; then
3530 # We chose a different compiler from the bogus one.
3531 # However, it has the same basename, so the bogon will be chosen
3532 # first if we set CC to just the basename; use the full file name.
3533 shift
3534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3535 fi
3536fi
3537fi
3538fi
3539CC=$ac_cv_prog_CC
3540if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542$as_echo "$CC" >&6; }
3543else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545$as_echo "no" >&6; }
3546fi
3547
3548
3549fi
3550if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 for ac_prog in cl.exe
3553 do
3554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3555set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557$as_echo_n "checking for $ac_word... " >&6; }
3558if ${ac_cv_prog_CC+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560else
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3563else
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575done
3576 done
3577IFS=$as_save_IFS
3578
3579fi
3580fi
3581CC=$ac_cv_prog_CC
3582if test -n "$CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584$as_echo "$CC" >&6; }
3585else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587$as_echo "no" >&6; }
3588fi
3589
3590
3591 test -n "$CC" && break
3592 done
3593fi
3594if test -z "$CC"; then
3595 ac_ct_CC=$CC
3596 for ac_prog in cl.exe
3597do
3598 # Extract the first word of "$ac_prog", so it can be a program name with args.
3599set dummy $ac_prog; ac_word=$2
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601$as_echo_n "checking for $ac_word... " >&6; }
3602if ${ac_cv_prog_ac_ct_CC+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604else
3605 if test -n "$ac_ct_CC"; then
3606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3607else
3608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609for as_dir in $PATH
3610do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615 ac_cv_prog_ac_ct_CC="$ac_prog"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3618 fi
3619done
3620 done
3621IFS=$as_save_IFS
3622
3623fi
3624fi
3625ac_ct_CC=$ac_cv_prog_ac_ct_CC
3626if test -n "$ac_ct_CC"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3628$as_echo "$ac_ct_CC" >&6; }
3629else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631$as_echo "no" >&6; }
3632fi
3633
3634
3635 test -n "$ac_ct_CC" && break
3636done
3637
3638 if test "x$ac_ct_CC" = x; then
3639 CC=""
3640 else
3641 case $cross_compiling:$ac_tool_warned in
3642yes:)
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3645ac_tool_warned=yes ;;
3646esac
3647 CC=$ac_ct_CC
3648 fi
3649fi
3650
3651fi
3652
3653
3654test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656as_fn_error $? "no acceptable C compiler found in \$PATH
3657See \`config.log' for more details" "$LINENO" 5; }
3658
3659# Provide some information about the compiler.
3660$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3661set X $ac_compile
3662ac_compiler=$2
3663for ac_option in --version -v -V -qversion; do
3664 { { ac_try="$ac_compiler $ac_option >&5"
3665case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668esac
3669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670$as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3672 ac_status=$?
3673 if test -s conftest.err; then
3674 sed '10a\
3675... rest of stderr output deleted ...
3676 10q' conftest.err >conftest.er1
3677 cat conftest.er1 >&5
3678 fi
3679 rm -f conftest.er1 conftest.err
3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }
3682done
3683
3684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685/* end confdefs.h. */
3686
3687int
3688main ()
3689{
3690
3691 ;
3692 return 0;
3693}
3694_ACEOF
3695ac_clean_files_save=$ac_clean_files
3696ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3697# Try to create an executable without -o first, disregard a.out.
3698# It will help us diagnose broken compilers, and finding out an intuition
3699# of exeext.
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3701$as_echo_n "checking whether the C compiler works... " >&6; }
3702ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3703
3704# The possible output files:
3705ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3706
3707ac_rmfiles=
3708for ac_file in $ac_files
3709do
3710 case $ac_file in
3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3712 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3713 esac
3714done
3715rm -f $ac_rmfiles
3716
3717if { { ac_try="$ac_link_default"
3718case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721esac
3722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723$as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_link_default") 2>&5
3725 ac_status=$?
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }; then :
3728 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3729# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3730# in a Makefile. We should not override ac_cv_exeext if it was cached,
3731# so that the user can short-circuit this test for compilers unknown to
3732# Autoconf.
3733for ac_file in $ac_files ''
3734do
3735 test -f "$ac_file" || continue
3736 case $ac_file in
3737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3738 ;;
3739 [ab].out )
3740 # We found the default executable, but exeext='' is most
3741 # certainly right.
3742 break;;
3743 *.* )
3744 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3745 then :; else
3746 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3747 fi
3748 # We set ac_cv_exeext here because the later test for it is not
3749 # safe: cross compilers may not add the suffix if given an `-o'
3750 # argument, so we may need to know it at that point already.
3751 # Even if this section looks crufty: it has the advantage of
3752 # actually working.
3753 break;;
3754 * )
3755 break;;
3756 esac
3757done
3758test "$ac_cv_exeext" = no && ac_cv_exeext=
3759
3760else
3761 ac_file=''
3762fi
3763if test -z "$ac_file"; then :
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765$as_echo "no" >&6; }
3766$as_echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3771as_fn_error 77 "C compiler cannot create executables
3772See \`config.log' for more details" "$LINENO" 5; }
3773else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3775$as_echo "yes" >&6; }
3776fi
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3778$as_echo_n "checking for C compiler default output file name... " >&6; }
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3780$as_echo "$ac_file" >&6; }
3781ac_exeext=$ac_cv_exeext
3782
3783rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3784ac_clean_files=$ac_clean_files_save
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3786$as_echo_n "checking for suffix of executables... " >&6; }
3787if { { ac_try="$ac_link"
3788case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791esac
3792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793$as_echo "$ac_try_echo"; } >&5
3794 (eval "$ac_link") 2>&5
3795 ac_status=$?
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }; then :
3798 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3799# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3800# work properly (i.e., refer to `conftest.exe'), while it won't with
3801# `rm'.
3802for ac_file in conftest.exe conftest conftest.*; do
3803 test -f "$ac_file" || continue
3804 case $ac_file in
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3807 break;;
3808 * ) break;;
3809 esac
3810done
3811else
3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3815See \`config.log' for more details" "$LINENO" 5; }
3816fi
3817rm -f conftest conftest$ac_cv_exeext
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3819$as_echo "$ac_cv_exeext" >&6; }
3820
3821rm -f conftest.$ac_ext
3822EXEEXT=$ac_cv_exeext
3823ac_exeext=$EXEEXT
3824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h. */
3826#include <stdio.h>
3827int
3828main ()
3829{
3830FILE *f = fopen ("conftest.out", "w");
3831 return ferror (f) || fclose (f) != 0;
3832
3833 ;
3834 return 0;
3835}
3836_ACEOF
3837ac_clean_files="$ac_clean_files conftest.out"
3838# Check that the compiler produces executables we can run. If not, either
3839# the compiler is broken, or we cross compile.
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3841$as_echo_n "checking whether we are cross compiling... " >&6; }
3842if test "$cross_compiling" != yes; then
3843 { { ac_try="$ac_link"
3844case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847esac
3848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849$as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_link") 2>&5
3851 ac_status=$?
3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }
3854 if { ac_try='./conftest$ac_cv_exeext'
3855 { { case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858esac
3859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860$as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_try") 2>&5
3862 ac_status=$?
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }; }; then
3865 cross_compiling=no
3866 else
3867 if test "$cross_compiling" = maybe; then
3868 cross_compiling=yes
3869 else
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872as_fn_error $? "cannot run C compiled programs.
3873If you meant to cross compile, use \`--host'.
3874See \`config.log' for more details" "$LINENO" 5; }
3875 fi
3876 fi
3877fi
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3879$as_echo "$cross_compiling" >&6; }
3880
3881rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3882ac_clean_files=$ac_clean_files_save
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3884$as_echo_n "checking for suffix of object files... " >&6; }
3885if ${ac_cv_objext+:} false; then :
3886 $as_echo_n "(cached) " >&6
3887else
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889/* end confdefs.h. */
3890
3891int
3892main ()
3893{
3894
3895 ;
3896 return 0;
3897}
3898_ACEOF
3899rm -f conftest.o conftest.obj
3900if { { ac_try="$ac_compile"
3901case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904esac
3905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906$as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_compile") 2>&5
3908 ac_status=$?
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }; then :
3911 for ac_file in conftest.o conftest.obj conftest.*; do
3912 test -f "$ac_file" || continue;
3913 case $ac_file in
3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3915 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3916 break;;
3917 esac
3918done
3919else
3920 $as_echo "$as_me: failed program was:" >&5
3921sed 's/^/| /' conftest.$ac_ext >&5
3922
3923{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925as_fn_error $? "cannot compute suffix of object files: cannot compile
3926See \`config.log' for more details" "$LINENO" 5; }
3927fi
3928rm -f conftest.$ac_cv_objext conftest.$ac_ext
3929fi
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3931$as_echo "$ac_cv_objext" >&6; }
3932OBJEXT=$ac_cv_objext
3933ac_objext=$OBJEXT
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3935$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3936if ${ac_cv_c_compiler_gnu+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938else
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h. */
3941
3942int
3943main ()
3944{
3945#ifndef __GNUC__
3946 choke me
3947#endif
3948
3949 ;
3950 return 0;
3951}
3952_ACEOF
3953if ac_fn_c_try_compile "$LINENO"; then :
3954 ac_compiler_gnu=yes
3955else
3956 ac_compiler_gnu=no
3957fi
3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959ac_cv_c_compiler_gnu=$ac_compiler_gnu
3960
3961fi
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3963$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3964if test $ac_compiler_gnu = yes; then
3965 GCC=yes
3966else
3967 GCC=
3968fi
3969ac_test_CFLAGS=${CFLAGS+set}
3970ac_save_CFLAGS=$CFLAGS
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3972$as_echo_n "checking whether $CC accepts -g... " >&6; }
3973if ${ac_cv_prog_cc_g+:} false; then :
3974 $as_echo_n "(cached) " >&6
3975else
3976 ac_save_c_werror_flag=$ac_c_werror_flag
3977 ac_c_werror_flag=yes
3978 ac_cv_prog_cc_g=no
3979 CFLAGS="-g"
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h. */
3982
3983int
3984main ()
3985{
3986
3987 ;
3988 return 0;
3989}
3990_ACEOF
3991if ac_fn_c_try_compile "$LINENO"; then :
3992 ac_cv_prog_cc_g=yes
3993else
3994 CFLAGS=""
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996/* end confdefs.h. */
3997
3998int
3999main ()
4000{
4001
4002 ;
4003 return 0;
4004}
4005_ACEOF
4006if ac_fn_c_try_compile "$LINENO"; then :
4007
4008else
4009 ac_c_werror_flag=$ac_save_c_werror_flag
4010 CFLAGS="-g"
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h. */
4013
4014int
4015main ()
4016{
4017
4018 ;
4019 return 0;
4020}
4021_ACEOF
4022if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_prog_cc_g=yes
4024fi
4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026fi
4027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028fi
4029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_c_werror_flag=$ac_save_c_werror_flag
4031fi
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4033$as_echo "$ac_cv_prog_cc_g" >&6; }
4034if test "$ac_test_CFLAGS" = set; then
4035 CFLAGS=$ac_save_CFLAGS
4036elif test $ac_cv_prog_cc_g = yes; then
4037 if test "$GCC" = yes; then
4038 CFLAGS="-g -O2"
4039 else
4040 CFLAGS="-g"
4041 fi
4042else
4043 if test "$GCC" = yes; then
4044 CFLAGS="-O2"
4045 else
4046 CFLAGS=
4047 fi
4048fi
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4050$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4051if ${ac_cv_prog_cc_c89+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053else
4054 ac_cv_prog_cc_c89=no
4055ac_save_CC=$CC
4056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057/* end confdefs.h. */
4058#include <stdarg.h>
4059#include <stdio.h>
4060struct stat;
4061/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4062struct buf { int x; };
4063FILE * (*rcsopen) (struct buf *, struct stat *, int);
4064static char *e (p, i)
4065 char **p;
4066 int i;
4067{
4068 return p[i];
4069}
4070static char *f (char * (*g) (char **, int), char **p, ...)
4071{
4072 char *s;
4073 va_list v;
4074 va_start (v,p);
4075 s = g (p, va_arg (v,int));
4076 va_end (v);
4077 return s;
4078}
4079
4080/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4081 function prototypes and stuff, but not '\xHH' hex character constants.
4082 These don't provoke an error unfortunately, instead are silently treated
4083 as 'x'. The following induces an error, until -std is added to get
4084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4085 array size at least. It's necessary to write '\x00'==0 to get something
4086 that's true only with -std. */
4087int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4088
4089/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4090 inside strings and character constants. */
4091#define FOO(x) 'x'
4092int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4093
4094int test (int i, double x);
4095struct s1 {int (*f) (int a);};
4096struct s2 {int (*f) (double a);};
4097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4098int argc;
4099char **argv;
4100int
4101main ()
4102{
4103return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4104 ;
4105 return 0;
4106}
4107_ACEOF
4108for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4109 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4110do
4111 CC="$ac_save_CC $ac_arg"
4112 if ac_fn_c_try_compile "$LINENO"; then :
4113 ac_cv_prog_cc_c89=$ac_arg
4114fi
4115rm -f core conftest.err conftest.$ac_objext
4116 test "x$ac_cv_prog_cc_c89" != "xno" && break
4117done
4118rm -f conftest.$ac_ext
4119CC=$ac_save_CC
4120
4121fi
4122# AC_CACHE_VAL
4123case "x$ac_cv_prog_cc_c89" in
4124 x)
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4126$as_echo "none needed" >&6; } ;;
4127 xno)
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4129$as_echo "unsupported" >&6; } ;;
4130 *)
4131 CC="$CC $ac_cv_prog_cc_c89"
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4133$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4134esac
4135if test "x$ac_cv_prog_cc_c89" != xno; then :
4136
4137fi
4138
4139ac_ext=c
4140ac_cpp='$CPP $CPPFLAGS'
4141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144
4145ac_ext=c
4146ac_cpp='$CPP $CPPFLAGS'
4147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4151$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4152if ${am_cv_prog_cc_c_o+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154else
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156/* end confdefs.h. */
4157
4158int
4159main ()
4160{
4161
4162 ;
4163 return 0;
4164}
4165_ACEOF
4166 # Make sure it works both with $CC and with simple cc.
4167 # Following AC_PROG_CC_C_O, we do the test twice because some
4168 # compilers refuse to overwrite an existing .o file with -o,
4169 # though they will create one.
4170 am_cv_prog_cc_c_o=yes
4171 for am_i in 1 2; do
4172 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4173 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } \
4177 && test -f conftest2.$ac_objext; then
4178 : OK
4179 else
4180 am_cv_prog_cc_c_o=no
4181 break
4182 fi
4183 done
4184 rm -f core conftest*
4185 unset am_i
4186fi
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4188$as_echo "$am_cv_prog_cc_c_o" >&6; }
4189if test "$am_cv_prog_cc_c_o" != yes; then
4190 # Losing compiler, so override with the script.
4191 # FIXME: It is wrong to rewrite CC.
4192 # But if we don't then we get into trouble of one sort or another.
4193 # A longer-term fix would be to have automake use am__CC in this case,
4194 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4195 CC="$am_aux_dir/compile $CC"
4196fi
4197ac_ext=c
4198ac_cpp='$CPP $CPPFLAGS'
4199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202
4203DEPDIR="${am__leading_dot}deps"
4204
4205ac_config_commands="$ac_config_commands depfiles"
4206
4207
4208am_make=${MAKE-make}
4209cat > confinc << 'END'
4210am__doit:
4211 @echo this is the am__doit target
4212.PHONY: am__doit
4213END
4214# If we don't find an include directive, just comment out the code.
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4216$as_echo_n "checking for style of include used by $am_make... " >&6; }
4217am__include="#"
4218am__quote=
4219_am_result=none
4220# First try GNU make style include.
4221echo "include confinc" > confmf
4222# Ignore all kinds of additional output from 'make'.
4223case `$am_make -s -f confmf 2> /dev/null` in #(
4224*the\ am__doit\ target*)
4225 am__include=include
4226 am__quote=
4227 _am_result=GNU
4228 ;;
4229esac
4230# Now try BSD make style include.
4231if test "$am__include" = "#"; then
4232 echo '.include "confinc"' > confmf
4233 case `$am_make -s -f confmf 2> /dev/null` in #(
4234 *the\ am__doit\ target*)
4235 am__include=.include
4236 am__quote="\""
4237 _am_result=BSD
4238 ;;
4239 esac
4240fi
4241
4242
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4244$as_echo "$_am_result" >&6; }
4245rm -f confinc confmf
4246
4247# Check whether --enable-dependency-tracking was given.
4248if test "${enable_dependency_tracking+set}" = set; then :
4249 enableval=$enable_dependency_tracking;
4250fi
4251
4252if test "x$enable_dependency_tracking" != xno; then
4253 am_depcomp="$ac_aux_dir/depcomp"
4254 AMDEPBACKSLASH='\'
4255 am__nodep='_no'
4256fi
4257 if test "x$enable_dependency_tracking" != xno; then
4258 AMDEP_TRUE=
4259 AMDEP_FALSE='#'
4260else
4261 AMDEP_TRUE='#'
4262 AMDEP_FALSE=
4263fi
4264
4265
4266
4267depcc="$CC" am_compiler_list=
4268
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4270$as_echo_n "checking dependency style of $depcc... " >&6; }
4271if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273else
4274 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4275 # We make a subdir and do the tests there. Otherwise we can end up
4276 # making bogus files that we don't know about and never remove. For
4277 # instance it was reported that on HP-UX the gcc test will end up
4278 # making a dummy file named 'D' -- because '-MD' means "put the output
4279 # in D".
4280 rm -rf conftest.dir
4281 mkdir conftest.dir
4282 # Copy depcomp to subdir because otherwise we won't find it if we're
4283 # using a relative directory.
4284 cp "$am_depcomp" conftest.dir
4285 cd conftest.dir
4286 # We will build objects and dependencies in a subdirectory because
4287 # it helps to detect inapplicable dependency modes. For instance
4288 # both Tru64's cc and ICC support -MD to output dependencies as a
4289 # side effect of compilation, but ICC will put the dependencies in
4290 # the current directory while Tru64 will put them in the object
4291 # directory.
4292 mkdir sub
4293
4294 am_cv_CC_dependencies_compiler_type=none
4295 if test "$am_compiler_list" = ""; then
4296 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4297 fi
4298 am__universal=false
4299 case " $depcc " in #(
4300 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4301 esac
4302
4303 for depmode in $am_compiler_list; do
4304 # Setup a source with many dependencies, because some compilers
4305 # like to wrap large dependency lists on column 80 (with \), and
4306 # we should not choose a depcomp mode which is confused by this.
4307 #
4308 # We need to recreate these files for each test, as the compiler may
4309 # overwrite some of them when testing with obscure command lines.
4310 # This happens at least with the AIX C compiler.
4311 : > sub/conftest.c
4312 for i in 1 2 3 4 5 6; do
4313 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4314 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4315 # Solaris 10 /bin/sh.
4316 echo '/* dummy */' > sub/conftst$i.h
4317 done
4318 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4319
4320 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4321 # mode. It turns out that the SunPro C++ compiler does not properly
4322 # handle '-M -o', and we need to detect this. Also, some Intel
4323 # versions had trouble with output in subdirs.
4324 am__obj=sub/conftest.${OBJEXT-o}
4325 am__minus_obj="-o $am__obj"
4326 case $depmode in
4327 gcc)
4328 # This depmode causes a compiler race in universal mode.
4329 test "$am__universal" = false || continue
4330 ;;
4331 nosideeffect)
4332 # After this tag, mechanisms are not by side-effect, so they'll
4333 # only be used when explicitly requested.
4334 if test "x$enable_dependency_tracking" = xyes; then
4335 continue
4336 else
4337 break
4338 fi
4339 ;;
4340 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4341 # This compiler won't grok '-c -o', but also, the minuso test has
4342 # not run yet. These depmodes are late enough in the game, and
4343 # so weak that their functioning should not be impacted.
4344 am__obj=conftest.${OBJEXT-o}
4345 am__minus_obj=
4346 ;;
4347 none) break ;;
4348 esac
4349 if depmode=$depmode \
4350 source=sub/conftest.c object=$am__obj \
4351 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4352 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4353 >/dev/null 2>conftest.err &&
4354 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4355 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4356 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4357 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4358 # icc doesn't choke on unknown options, it will just issue warnings
4359 # or remarks (even with -Werror). So we grep stderr for any message
4360 # that says an option was ignored or not supported.
4361 # When given -MP, icc 7.0 and 7.1 complain thusly:
4362 # icc: Command line warning: ignoring option '-M'; no argument required
4363 # The diagnosis changed in icc 8.0:
4364 # icc: Command line remark: option '-MP' not supported
4365 if (grep 'ignoring option' conftest.err ||
4366 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4367 am_cv_CC_dependencies_compiler_type=$depmode
4368 break
4369 fi
4370 fi
4371 done
4372
4373 cd ..
4374 rm -rf conftest.dir
4375else
4376 am_cv_CC_dependencies_compiler_type=none
4377fi
4378
4379fi
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4381$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4382CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4383
4384 if
4385 test "x$enable_dependency_tracking" != xno \
4386 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4387 am__fastdepCC_TRUE=
4388 am__fastdepCC_FALSE='#'
4389else
4390 am__fastdepCC_TRUE='#'
4391 am__fastdepCC_FALSE=
4392fi
4393
4394
4395
4396ac_ext=c
4397ac_cpp='$CPP $CPPFLAGS'
4398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4402$as_echo_n "checking how to run the C preprocessor... " >&6; }
4403# On Suns, sometimes $CPP names a directory.
4404if test -n "$CPP" && test -d "$CPP"; then
4405 CPP=
4406fi
4407if test -z "$CPP"; then
4408 if ${ac_cv_prog_CPP+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410else
4411 # Double quotes because CPP needs to be expanded
4412 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4413 do
4414 ac_preproc_ok=false
4415for ac_c_preproc_warn_flag in '' yes
4416do
4417 # Use a header file that comes with gcc, so configuring glibc
4418 # with a fresh cross-compiler works.
4419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4420 # <limits.h> exists even on freestanding compilers.
4421 # On the NeXT, cc -E runs the code through the compiler's parser,
4422 # not just through cpp. "Syntax error" is here to catch this case.
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424/* end confdefs.h. */
4425#ifdef __STDC__
4426# include <limits.h>
4427#else
4428# include <assert.h>
4429#endif
4430 Syntax error
4431_ACEOF
4432if ac_fn_c_try_cpp "$LINENO"; then :
4433
4434else
4435 # Broken: fails on valid input.
4436continue
4437fi
4438rm -f conftest.err conftest.i conftest.$ac_ext
4439
4440 # OK, works on sane cases. Now check whether nonexistent headers
4441 # can be detected and how.
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443/* end confdefs.h. */
4444#include <ac_nonexistent.h>
4445_ACEOF
4446if ac_fn_c_try_cpp "$LINENO"; then :
4447 # Broken: success on invalid input.
4448continue
4449else
4450 # Passes both tests.
4451ac_preproc_ok=:
4452break
4453fi
4454rm -f conftest.err conftest.i conftest.$ac_ext
4455
4456done
4457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4458rm -f conftest.i conftest.err conftest.$ac_ext
4459if $ac_preproc_ok; then :
4460 break
4461fi
4462
4463 done
4464 ac_cv_prog_CPP=$CPP
4465
4466fi
4467 CPP=$ac_cv_prog_CPP
4468else
4469 ac_cv_prog_CPP=$CPP
4470fi
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4472$as_echo "$CPP" >&6; }
4473ac_preproc_ok=false
4474for ac_c_preproc_warn_flag in '' yes
4475do
4476 # Use a header file that comes with gcc, so configuring glibc
4477 # with a fresh cross-compiler works.
4478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4479 # <limits.h> exists even on freestanding compilers.
4480 # On the NeXT, cc -E runs the code through the compiler's parser,
4481 # not just through cpp. "Syntax error" is here to catch this case.
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483/* end confdefs.h. */
4484#ifdef __STDC__
4485# include <limits.h>
4486#else
4487# include <assert.h>
4488#endif
4489 Syntax error
4490_ACEOF
4491if ac_fn_c_try_cpp "$LINENO"; then :
4492
4493else
4494 # Broken: fails on valid input.
4495continue
4496fi
4497rm -f conftest.err conftest.i conftest.$ac_ext
4498
4499 # OK, works on sane cases. Now check whether nonexistent headers
4500 # can be detected and how.
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h. */
4503#include <ac_nonexistent.h>
4504_ACEOF
4505if ac_fn_c_try_cpp "$LINENO"; then :
4506 # Broken: success on invalid input.
4507continue
4508else
4509 # Passes both tests.
4510ac_preproc_ok=:
4511break
4512fi
4513rm -f conftest.err conftest.i conftest.$ac_ext
4514
4515done
4516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4517rm -f conftest.i conftest.err conftest.$ac_ext
4518if $ac_preproc_ok; then :
4519
4520else
4521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4523as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4524See \`config.log' for more details" "$LINENO" 5; }
4525fi
4526
4527ac_ext=c
4528ac_cpp='$CPP $CPPFLAGS'
4529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532
4533ac_ext=cpp
4534ac_cpp='$CXXCPP $CPPFLAGS'
4535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4538if test -z "$CXX"; then
4539 if test -n "$CCC"; then
4540 CXX=$CCC
4541 else
4542 if test -n "$ac_tool_prefix"; then
4543 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4544 do
4545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4546set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548$as_echo_n "checking for $ac_word... " >&6; }
4549if ${ac_cv_prog_CXX+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551else
4552 if test -n "$CXX"; then
4553 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4565 fi
4566done
4567 done
4568IFS=$as_save_IFS
4569
4570fi
4571fi
4572CXX=$ac_cv_prog_CXX
4573if test -n "$CXX"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4575$as_echo "$CXX" >&6; }
4576else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578$as_echo "no" >&6; }
4579fi
4580
4581
4582 test -n "$CXX" && break
4583 done
4584fi
4585if test -z "$CXX"; then
4586 ac_ct_CXX=$CXX
4587 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4588do
4589 # Extract the first word of "$ac_prog", so it can be a program name with args.
4590set dummy $ac_prog; ac_word=$2
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592$as_echo_n "checking for $ac_word... " >&6; }
4593if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595else
4596 if test -n "$ac_ct_CXX"; then
4597 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4598else
4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_ac_ct_CXX="$ac_prog"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610done
4611 done
4612IFS=$as_save_IFS
4613
4614fi
4615fi
4616ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4617if test -n "$ac_ct_CXX"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4619$as_echo "$ac_ct_CXX" >&6; }
4620else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622$as_echo "no" >&6; }
4623fi
4624
4625
4626 test -n "$ac_ct_CXX" && break
4627done
4628
4629 if test "x$ac_ct_CXX" = x; then
4630 CXX="g++"
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633yes:)
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636ac_tool_warned=yes ;;
4637esac
4638 CXX=$ac_ct_CXX
4639 fi
4640fi
4641
4642 fi
4643fi
4644# Provide some information about the compiler.
4645$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4646set X $ac_compile
4647ac_compiler=$2
4648for ac_option in --version -v -V -qversion; do
4649 { { ac_try="$ac_compiler $ac_option >&5"
4650case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4653esac
4654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4655$as_echo "$ac_try_echo"; } >&5
4656 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4657 ac_status=$?
4658 if test -s conftest.err; then
4659 sed '10a\
4660... rest of stderr output deleted ...
4661 10q' conftest.err >conftest.er1
4662 cat conftest.er1 >&5
4663 fi
4664 rm -f conftest.er1 conftest.err
4665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4666 test $ac_status = 0; }
4667done
4668
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4670$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4671if ${ac_cv_cxx_compiler_gnu+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673else
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675/* end confdefs.h. */
4676
4677int
4678main ()
4679{
4680#ifndef __GNUC__
4681 choke me
4682#endif
4683
4684 ;
4685 return 0;
4686}
4687_ACEOF
4688if ac_fn_cxx_try_compile "$LINENO"; then :
4689 ac_compiler_gnu=yes
4690else
4691 ac_compiler_gnu=no
4692fi
4693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4695
4696fi
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4698$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4699if test $ac_compiler_gnu = yes; then
4700 GXX=yes
4701else
4702 GXX=
4703fi
4704ac_test_CXXFLAGS=${CXXFLAGS+set}
4705ac_save_CXXFLAGS=$CXXFLAGS
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4707$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4708if ${ac_cv_prog_cxx_g+:} false; then :
4709 $as_echo_n "(cached) " >&6
4710else
4711 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4712 ac_cxx_werror_flag=yes
4713 ac_cv_prog_cxx_g=no
4714 CXXFLAGS="-g"
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716/* end confdefs.h. */
4717
4718int
4719main ()
4720{
4721
4722 ;
4723 return 0;
4724}
4725_ACEOF
4726if ac_fn_cxx_try_compile "$LINENO"; then :
4727 ac_cv_prog_cxx_g=yes
4728else
4729 CXXFLAGS=""
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731/* end confdefs.h. */
4732
4733int
4734main ()
4735{
4736
4737 ;
4738 return 0;
4739}
4740_ACEOF
4741if ac_fn_cxx_try_compile "$LINENO"; then :
4742
4743else
4744 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4745 CXXFLAGS="-g"
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747/* end confdefs.h. */
4748
4749int
4750main ()
4751{
4752
4753 ;
4754 return 0;
4755}
4756_ACEOF
4757if ac_fn_cxx_try_compile "$LINENO"; then :
4758 ac_cv_prog_cxx_g=yes
4759fi
4760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761fi
4762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763fi
4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4766fi
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4768$as_echo "$ac_cv_prog_cxx_g" >&6; }
4769if test "$ac_test_CXXFLAGS" = set; then
4770 CXXFLAGS=$ac_save_CXXFLAGS
4771elif test $ac_cv_prog_cxx_g = yes; then
4772 if test "$GXX" = yes; then
4773 CXXFLAGS="-g -O2"
4774 else
4775 CXXFLAGS="-g"
4776 fi
4777else
4778 if test "$GXX" = yes; then
4779 CXXFLAGS="-O2"
4780 else
4781 CXXFLAGS=
4782 fi
4783fi
4784ac_ext=c
4785ac_cpp='$CPP $CPPFLAGS'
4786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789
4790depcc="$CXX" am_compiler_list=
4791
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4793$as_echo_n "checking dependency style of $depcc... " >&6; }
4794if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796else
4797 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4798 # We make a subdir and do the tests there. Otherwise we can end up
4799 # making bogus files that we don't know about and never remove. For
4800 # instance it was reported that on HP-UX the gcc test will end up
4801 # making a dummy file named 'D' -- because '-MD' means "put the output
4802 # in D".
4803 rm -rf conftest.dir
4804 mkdir conftest.dir
4805 # Copy depcomp to subdir because otherwise we won't find it if we're
4806 # using a relative directory.
4807 cp "$am_depcomp" conftest.dir
4808 cd conftest.dir
4809 # We will build objects and dependencies in a subdirectory because
4810 # it helps to detect inapplicable dependency modes. For instance
4811 # both Tru64's cc and ICC support -MD to output dependencies as a
4812 # side effect of compilation, but ICC will put the dependencies in
4813 # the current directory while Tru64 will put them in the object
4814 # directory.
4815 mkdir sub
4816
4817 am_cv_CXX_dependencies_compiler_type=none
4818 if test "$am_compiler_list" = ""; then
4819 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4820 fi
4821 am__universal=false
4822 case " $depcc " in #(
4823 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4824 esac
4825
4826 for depmode in $am_compiler_list; do
4827 # Setup a source with many dependencies, because some compilers
4828 # like to wrap large dependency lists on column 80 (with \), and
4829 # we should not choose a depcomp mode which is confused by this.
4830 #
4831 # We need to recreate these files for each test, as the compiler may
4832 # overwrite some of them when testing with obscure command lines.
4833 # This happens at least with the AIX C compiler.
4834 : > sub/conftest.c
4835 for i in 1 2 3 4 5 6; do
4836 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4837 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4838 # Solaris 10 /bin/sh.
4839 echo '/* dummy */' > sub/conftst$i.h
4840 done
4841 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4842
4843 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4844 # mode. It turns out that the SunPro C++ compiler does not properly
4845 # handle '-M -o', and we need to detect this. Also, some Intel
4846 # versions had trouble with output in subdirs.
4847 am__obj=sub/conftest.${OBJEXT-o}
4848 am__minus_obj="-o $am__obj"
4849 case $depmode in
4850 gcc)
4851 # This depmode causes a compiler race in universal mode.
4852 test "$am__universal" = false || continue
4853 ;;
4854 nosideeffect)
4855 # After this tag, mechanisms are not by side-effect, so they'll
4856 # only be used when explicitly requested.
4857 if test "x$enable_dependency_tracking" = xyes; then
4858 continue
4859 else
4860 break
4861 fi
4862 ;;
4863 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4864 # This compiler won't grok '-c -o', but also, the minuso test has
4865 # not run yet. These depmodes are late enough in the game, and
4866 # so weak that their functioning should not be impacted.
4867 am__obj=conftest.${OBJEXT-o}
4868 am__minus_obj=
4869 ;;
4870 none) break ;;
4871 esac
4872 if depmode=$depmode \
4873 source=sub/conftest.c object=$am__obj \
4874 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4875 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4876 >/dev/null 2>conftest.err &&
4877 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4878 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4879 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4880 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4881 # icc doesn't choke on unknown options, it will just issue warnings
4882 # or remarks (even with -Werror). So we grep stderr for any message
4883 # that says an option was ignored or not supported.
4884 # When given -MP, icc 7.0 and 7.1 complain thusly:
4885 # icc: Command line warning: ignoring option '-M'; no argument required
4886 # The diagnosis changed in icc 8.0:
4887 # icc: Command line remark: option '-MP' not supported
4888 if (grep 'ignoring option' conftest.err ||
4889 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4890 am_cv_CXX_dependencies_compiler_type=$depmode
4891 break
4892 fi
4893 fi
4894 done
4895
4896 cd ..
4897 rm -rf conftest.dir
4898else
4899 am_cv_CXX_dependencies_compiler_type=none
4900fi
4901
4902fi
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4904$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4905CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4906
4907 if
4908 test "x$enable_dependency_tracking" != xno \
4909 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4910 am__fastdepCXX_TRUE=
4911 am__fastdepCXX_FALSE='#'
4912else
4913 am__fastdepCXX_TRUE='#'
4914 am__fastdepCXX_FALSE=
4915fi
4916
4917
4918# AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with
4919# autoconf 2.59). If we ever have any Objective-C code in the Valgrind code
4920# base (eg. most likely as Darwin-specific tests) we'll need one of the
4921# following:
4922# - put AC_PROG_OBJC in a Darwin-specific part of this file
4923# - Use AC_PROG_OBJC here and up the minimum autoconf version
4924# - Use the following, which is apparently equivalent:
4925# m4_ifdef([AC_PROG_OBJC],
4926# [AC_PROG_OBJC],
4927# [AC_CHECK_TOOL([OBJC], [gcc])
4928# AC_SUBST([OBJC])
4929# AC_SUBST([OBJCFLAGS])
4930# ])
4931if test -n "$ac_tool_prefix"; then
4932 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4933set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935$as_echo_n "checking for $ac_word... " >&6; }
4936if ${ac_cv_prog_RANLIB+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938else
4939 if test -n "$RANLIB"; then
4940 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4941else
4942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943for as_dir in $PATH
4944do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4952 fi
4953done
4954 done
4955IFS=$as_save_IFS
4956
4957fi
4958fi
4959RANLIB=$ac_cv_prog_RANLIB
4960if test -n "$RANLIB"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4962$as_echo "$RANLIB" >&6; }
4963else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965$as_echo "no" >&6; }
4966fi
4967
4968
4969fi
4970if test -z "$ac_cv_prog_RANLIB"; then
4971 ac_ct_RANLIB=$RANLIB
4972 # Extract the first word of "ranlib", so it can be a program name with args.
4973set dummy ranlib; ac_word=$2
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975$as_echo_n "checking for $ac_word... " >&6; }
4976if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978else
4979 if test -n "$ac_ct_RANLIB"; then
4980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4981else
4982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983for as_dir in $PATH
4984do
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989 ac_cv_prog_ac_ct_RANLIB="ranlib"
4990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 break 2
4992 fi
4993done
4994 done
4995IFS=$as_save_IFS
4996
4997fi
4998fi
4999ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5000if test -n "$ac_ct_RANLIB"; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5002$as_echo "$ac_ct_RANLIB" >&6; }
5003else
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005$as_echo "no" >&6; }
5006fi
5007
5008 if test "x$ac_ct_RANLIB" = x; then
5009 RANLIB=":"
5010 else
5011 case $cross_compiling:$ac_tool_warned in
5012yes:)
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5015ac_tool_warned=yes ;;
5016esac
5017 RANLIB=$ac_ct_RANLIB
5018 fi
5019else
5020 RANLIB="$ac_cv_prog_RANLIB"
5021fi
5022
5023# provide a very basic definition for AC_PROG_SED if it's not provided by
5024# autoconf (as e.g. in autoconf 2.59).
5025
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5027$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5028if ${ac_cv_path_SED+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030else
5031 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5032 for ac_i in 1 2 3 4 5 6 7; do
5033 ac_script="$ac_script$as_nl$ac_script"
5034 done
5035 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5036 { ac_script=; unset ac_script;}
5037 if test -z "$SED"; then
5038 ac_path_SED_found=false
5039 # Loop through the user's path and test for each of PROGNAME-LIST
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041for as_dir in $PATH
5042do
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_prog in sed gsed; do
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5048 as_fn_executable_p "$ac_path_SED" || continue
5049# Check for GNU ac_path_SED and select it if it is found.
5050 # Check for GNU $ac_path_SED
5051case `"$ac_path_SED" --version 2>&1` in
5052*GNU*)
5053 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5054*)
5055 ac_count=0
5056 $as_echo_n 0123456789 >"conftest.in"
5057 while :
5058 do
5059 cat "conftest.in" "conftest.in" >"conftest.tmp"
5060 mv "conftest.tmp" "conftest.in"
5061 cp "conftest.in" "conftest.nl"
5062 $as_echo '' >> "conftest.nl"
5063 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5064 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5065 as_fn_arith $ac_count + 1 && ac_count=$as_val
5066 if test $ac_count -gt ${ac_path_SED_max-0}; then
5067 # Best one so far, save it but keep looking for a better one
5068 ac_cv_path_SED="$ac_path_SED"
5069 ac_path_SED_max=$ac_count
5070 fi
5071 # 10*(2^10) chars as input seems more than enough
5072 test $ac_count -gt 10 && break
5073 done
5074 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5075esac
5076
5077 $ac_path_SED_found && break 3
5078 done
5079 done
5080 done
5081IFS=$as_save_IFS
5082 if test -z "$ac_cv_path_SED"; then
5083 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5084 fi
5085else
5086 ac_cv_path_SED=$SED
5087fi
5088
5089fi
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5091$as_echo "$ac_cv_path_SED" >&6; }
5092 SED="$ac_cv_path_SED"
5093 rm -f conftest.sed
5094
5095
5096# If no AR variable was specified, look up the name of the archiver. Otherwise
5097# do not touch the AR variable.
5098if test "x$AR" = "x"; then
5099 for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar"
5100do
5101 # Extract the first word of "$ac_prog", so it can be a program name with args.
5102set dummy $ac_prog; ac_word=$2
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104$as_echo_n "checking for $ac_word... " >&6; }
5105if ${ac_cv_path_AR+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107else
5108 case $AR in
5109 [\\/]* | ?:[\\/]*)
5110 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5111 ;;
5112 *)
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124done
5125 done
5126IFS=$as_save_IFS
5127
5128 ;;
5129esac
5130fi
5131AR=$ac_cv_path_AR
5132if test -n "$AR"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5134$as_echo "$AR" >&6; }
5135else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137$as_echo "no" >&6; }
5138fi
5139
5140
5141 test -n "$AR" && break
5142done
5143test -n "$AR" || AR="ar"
5144
5145fi
5146
5147
5148# Check for the compiler support
5149if test "${GCC}" != "yes" ; then
5150 as_fn_error $? "Valgrind relies on GCC to be compiled" "$LINENO" 5
5151fi
5152
5153# figure out where perl lives
5154# Extract the first word of "perl", so it can be a program name with args.
5155set dummy perl; ac_word=$2
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157$as_echo_n "checking for $ac_word... " >&6; }
5158if ${ac_cv_path_PERL+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160else
5161 case $PERL in
5162 [\\/]* | ?:[\\/]*)
5163 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5164 ;;
5165 *)
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177done
5178 done
5179IFS=$as_save_IFS
5180
5181 ;;
5182esac
5183fi
5184PERL=$ac_cv_path_PERL
5185if test -n "$PERL"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5187$as_echo "$PERL" >&6; }
5188else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190$as_echo "no" >&6; }
5191fi
5192
5193
5194
5195# figure out where gdb lives
5196# Extract the first word of "gdb", so it can be a program name with args.
5197set dummy gdb; ac_word=$2
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199$as_echo_n "checking for $ac_word... " >&6; }
5200if ${ac_cv_path_GDB+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202else
5203 case $GDB in
5204 [\\/]* | ?:[\\/]*)
5205 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
5206 ;;
5207 *)
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219done
5220 done
5221IFS=$as_save_IFS
5222
5223 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
5224 ;;
5225esac
5226fi
5227GDB=$ac_cv_path_GDB
5228if test -n "$GDB"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
5230$as_echo "$GDB" >&6; }
5231else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233$as_echo "no" >&6; }
5234fi
5235
5236
5237
5238cat >>confdefs.h <<_ACEOF
5239#define GDB_PATH "$GDB"
5240_ACEOF
5241
5242
5243# some older automake's don't have it so try something on our own
5244# By default we simply use the C compiler to build assembly code.
5245
5246test "${CCAS+set}" = set || CCAS=$CC
5247test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5248
5249
5250
5251depcc="$CCAS" am_compiler_list=
5252
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5254$as_echo_n "checking dependency style of $depcc... " >&6; }
5255if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257else
5258 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5259 # We make a subdir and do the tests there. Otherwise we can end up
5260 # making bogus files that we don't know about and never remove. For
5261 # instance it was reported that on HP-UX the gcc test will end up
5262 # making a dummy file named 'D' -- because '-MD' means "put the output
5263 # in D".
5264 rm -rf conftest.dir
5265 mkdir conftest.dir
5266 # Copy depcomp to subdir because otherwise we won't find it if we're
5267 # using a relative directory.
5268 cp "$am_depcomp" conftest.dir
5269 cd conftest.dir
5270 # We will build objects and dependencies in a subdirectory because
5271 # it helps to detect inapplicable dependency modes. For instance
5272 # both Tru64's cc and ICC support -MD to output dependencies as a
5273 # side effect of compilation, but ICC will put the dependencies in
5274 # the current directory while Tru64 will put them in the object
5275 # directory.
5276 mkdir sub
5277
5278 am_cv_CCAS_dependencies_compiler_type=none
5279 if test "$am_compiler_list" = ""; then
5280 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5281 fi
5282 am__universal=false
5283
5284
5285 for depmode in $am_compiler_list; do
5286 # Setup a source with many dependencies, because some compilers
5287 # like to wrap large dependency lists on column 80 (with \), and
5288 # we should not choose a depcomp mode which is confused by this.
5289 #
5290 # We need to recreate these files for each test, as the compiler may
5291 # overwrite some of them when testing with obscure command lines.
5292 # This happens at least with the AIX C compiler.
5293 : > sub/conftest.c
5294 for i in 1 2 3 4 5 6; do
5295 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5296 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5297 # Solaris 10 /bin/sh.
5298 echo '/* dummy */' > sub/conftst$i.h
5299 done
5300 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5301
5302 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5303 # mode. It turns out that the SunPro C++ compiler does not properly
5304 # handle '-M -o', and we need to detect this. Also, some Intel
5305 # versions had trouble with output in subdirs.
5306 am__obj=sub/conftest.${OBJEXT-o}
5307 am__minus_obj="-o $am__obj"
5308 case $depmode in
5309 gcc)
5310 # This depmode causes a compiler race in universal mode.
5311 test "$am__universal" = false || continue
5312 ;;
5313 nosideeffect)
5314 # After this tag, mechanisms are not by side-effect, so they'll
5315 # only be used when explicitly requested.
5316 if test "x$enable_dependency_tracking" = xyes; then
5317 continue
5318 else
5319 break
5320 fi
5321 ;;
5322 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5323 # This compiler won't grok '-c -o', but also, the minuso test has
5324 # not run yet. These depmodes are late enough in the game, and
5325 # so weak that their functioning should not be impacted.
5326 am__obj=conftest.${OBJEXT-o}
5327 am__minus_obj=
5328 ;;
5329 none) break ;;
5330 esac
5331 if depmode=$depmode \
5332 source=sub/conftest.c object=$am__obj \
5333 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5334 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5335 >/dev/null 2>conftest.err &&
5336 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5337 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5338 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5339 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5340 # icc doesn't choke on unknown options, it will just issue warnings
5341 # or remarks (even with -Werror). So we grep stderr for any message
5342 # that says an option was ignored or not supported.
5343 # When given -MP, icc 7.0 and 7.1 complain thusly:
5344 # icc: Command line warning: ignoring option '-M'; no argument required
5345 # The diagnosis changed in icc 8.0:
5346 # icc: Command line remark: option '-MP' not supported
5347 if (grep 'ignoring option' conftest.err ||
5348 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5349 am_cv_CCAS_dependencies_compiler_type=$depmode
5350 break
5351 fi
5352 fi
5353 done
5354
5355 cd ..
5356 rm -rf conftest.dir
5357else
5358 am_cv_CCAS_dependencies_compiler_type=none
5359fi
5360
5361fi
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5363$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5364CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5365
5366 if
5367 test "x$enable_dependency_tracking" != xno \
5368 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5369 am__fastdepCCAS_TRUE=
5370 am__fastdepCCAS_FALSE='#'
5371else
5372 am__fastdepCCAS_TRUE='#'
5373 am__fastdepCCAS_FALSE=
5374fi
5375
5376
5377
5378
5379# Check if 'diff' supports -u (universal diffs) and use it if possible.
5380
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
5382$as_echo_n "checking for diff -u... " >&6; }
5383
5384
5385# Comparing two identical files results in 0.
5386tmpfile="tmp-xxx-yyy-zzz"
5387touch $tmpfile;
5388if diff -u $tmpfile $tmpfile ; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5390$as_echo "yes" >&6; }
5391 DIFF="diff -u"
5392else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394$as_echo "no" >&6; }
5395 DIFF="diff"
5396fi
5397rm $tmpfile
5398
5399
5400# We don't want gcc < 3.0
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
5402$as_echo_n "checking for a supported version of gcc... " >&6; }
5403
5404# Obtain the compiler version.
5405#
5406# A few examples of how the ${CC} --version output looks like:
5407#
5408# ######## gcc variants ########
5409# Arch Linux: i686-pc-linux-gnu-gcc (GCC) 4.6.2
5410# Debian Linux: gcc (Debian 4.3.2-1.1) 4.3.2
5411# openSUSE: gcc (SUSE Linux) 4.5.1 20101208 [gcc-4_5-branch revision 167585]
5412# Exherbo Linux: x86_64-pc-linux-gnu-gcc (Exherbo gcc-4.6.2) 4.6.2
5413# MontaVista Linux for ARM: arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q1-203) 4.3.3
5414# OS/X 10.6: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
5415# 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)
5416#
5417# ######## clang variants ########
5418# Clang: clang version 2.9 (tags/RELEASE_29/final)
5419# Apple clang: Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
5420# FreeBSD clang: FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
5421#
5422# ######## Apple LLVM variants ########
5423# Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
5424# Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
5425#
5426
5427if test "x`${CC} --version | $SED -n -e 's/.*\Apple \(LLVM\) version.*clang.*/\1/p'`" = "xLLVM" ;
5428then
5429 is_clang="applellvm"
5430 gcc_version=`${CC} --version | $SED -n -e 's/.*LLVM version \([0-9.]*\).*$/\1/p'`
5431elif test "x`${CC} --version | $SED -n -e 's/.*\(clang\) version.*/\1/p'`" = "xclang" ;
5432then
5433 is_clang="clang"
5434 # Don't use -dumpversion with clang: it will always produce "4.2.1".
5435 gcc_version=`${CC} --version | $SED -n -e 's/.*clang version \([0-9.]*\).*$/\1/p'`
5436elif test "x`${CC} --version | $SED -n -e 's/icc.*\(ICC\).*/\1/p'`" = "xICC" ;
5437then
5438 is_clang="icc"
5439 gcc_version=`${CC} -dumpversion 2>/dev/null`
5440else
5441 is_clang="notclang"
5442 gcc_version=`${CC} -dumpversion 2>/dev/null`
5443 if test "x$gcc_version" = x; then
5444 gcc_version=`${CC} --version | $SED -n -e 's/[^ ]*gcc[^ ]* ([^)]*) \([0-9.]*\).*$/\1/p'`
5445 fi
5446fi
5447
5448 if test $is_clang = clang -o $is_clang = applellvm; then
5449 COMPILER_IS_CLANG_TRUE=
5450 COMPILER_IS_CLANG_FALSE='#'
5451else
5452 COMPILER_IS_CLANG_TRUE='#'
5453 COMPILER_IS_CLANG_FALSE=
5454fi
5455
5456 if test $is_clang = icc; then
5457 COMPILER_IS_ICC_TRUE=
5458 COMPILER_IS_ICC_FALSE='#'
5459else
5460 COMPILER_IS_ICC_TRUE='#'
5461 COMPILER_IS_ICC_FALSE=
5462fi
5463
5464
5465# Note: m4 arguments are quoted with [ and ] so square brackets in shell
5466# statements have to be quoted.
5467case "${is_clang}-${gcc_version}" in
5468 applellvm-5.1|applellvm-6.*|applellvm-7.*|applellvm-8.*)
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (Apple LLVM version ${gcc_version})" >&5
5470$as_echo "ok (Apple LLVM version ${gcc_version})" >&6; }
5471 ;;
5472 icc-1[3-9].*)
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (ICC version ${gcc_version})" >&5
5474$as_echo "ok (ICC version ${gcc_version})" >&6; }
5475 ;;
5476 notclang-[3-9]|notclang-[3-9].*|notclang-[1-9][0-9]*)
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
5478$as_echo "ok (${gcc_version})" >&6; }
5479 ;;
5480 clang-2.9|clang-[3-9].*|clang-[1-9][0-9]*)
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (clang-${gcc_version})" >&5
5482$as_echo "ok (clang-${gcc_version})" >&6; }
5483 ;;
5484 *)
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${is_clang}-${gcc_version})" >&5
5486$as_echo "no (${is_clang}-${gcc_version})" >&6; }
5487 as_fn_error $? "please use gcc >= 3.0 or clang >= 2.9 or icc >= 13.0" "$LINENO" 5
5488 ;;
5489esac
5490
5491#----------------------------------------------------------------------------
5492# Arch/OS/platform tests.
5493#----------------------------------------------------------------------------
5494# We create a number of arch/OS/platform-related variables. We prefix them
5495# all with "VGCONF_" which indicates that they are defined at
5496# configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
5497# variables used when compiling C files.
5498
5499# Make sure we can run config.sub.
5500$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5501 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5502
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5504$as_echo_n "checking build system type... " >&6; }
5505if ${ac_cv_build+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507else
5508 ac_build_alias=$build_alias
5509test "x$ac_build_alias" = x &&
5510 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5511test "x$ac_build_alias" = x &&
5512 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5513ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5514 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5515
5516fi
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5518$as_echo "$ac_cv_build" >&6; }
5519case $ac_cv_build in
5520*-*-*) ;;
5521*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5522esac
5523build=$ac_cv_build
5524ac_save_IFS=$IFS; IFS='-'
5525set x $ac_cv_build
5526shift
5527build_cpu=$1
5528build_vendor=$2
5529shift; shift
5530# Remember, the first character of IFS is used to create $*,
5531# except with old shells:
5532build_os=$*
5533IFS=$ac_save_IFS
5534case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5535
5536
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5538$as_echo_n "checking host system type... " >&6; }
5539if ${ac_cv_host+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541else
5542 if test "x$host_alias" = x; then
5543 ac_cv_host=$ac_cv_build
5544else
5545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5546 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5547fi
5548
5549fi
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5551$as_echo "$ac_cv_host" >&6; }
5552case $ac_cv_host in
5553*-*-*) ;;
5554*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5555esac
5556host=$ac_cv_host
5557ac_save_IFS=$IFS; IFS='-'
5558set x $ac_cv_host
5559shift
5560host_cpu=$1
5561host_vendor=$2
5562shift; shift
5563# Remember, the first character of IFS is used to create $*,
5564# except with old shells:
5565host_os=$*
5566IFS=$ac_save_IFS
5567case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5568
5569
5570
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
5572$as_echo_n "checking for a supported CPU... " >&6; }
5573
5574# ARCH_MAX reflects the most that this CPU can do: for example if it
5575# is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
5576# Ditto for amd64. It is used for more configuration below, but is not used
5577# outside this file.
5578#
5579# Power PC returns powerpc for Big Endian. This was not changed when Little
5580# Endian support was added to the 64-bit architecture. The 64-bit Little
5581# Endian systems explicitly state le in the host_cpu. For clarity in the
Elliott Hughesed398002017-06-21 14:41:24 -07005582# Valgrind code, the ARCH_MAX name will state LE or BE for the endianness of
Elliott Hughesa0664b92017-04-18 17:46:52 -07005583# the 64-bit system. Big Endian is the only mode supported on 32-bit Power PC.
5584# The abreviation PPC or ppc refers to 32-bit and 64-bit systems with either
Elliott Hughesed398002017-06-21 14:41:24 -07005585# Endianness. The name PPC64 or ppc64 to 64-bit systems of either Endianness.
Elliott Hughesa0664b92017-04-18 17:46:52 -07005586# The names ppc64be or PPC64BE refer to only 64-bit systems that are Big
5587# Endian. Similarly, ppc64le or PPC64LE refer to only 64-bit systems that are
5588# Little Endian.
5589
5590case "${host_cpu}" in
5591 i?86)
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5593$as_echo "ok (${host_cpu})" >&6; }
5594 ARCH_MAX="x86"
5595 ;;
5596
5597 x86_64)
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5599$as_echo "ok (${host_cpu})" >&6; }
5600 ARCH_MAX="amd64"
5601 ;;
5602
5603 powerpc64)
5604 # this only referrs to 64-bit Big Endian
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5606$as_echo "ok (${host_cpu})" >&6; }
5607 ARCH_MAX="ppc64be"
5608 ;;
5609
5610 powerpc64le)
5611 # this only referrs to 64-bit Little Endian
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5613$as_echo "ok (${host_cpu})" >&6; }
5614 ARCH_MAX="ppc64le"
5615 ;;
5616
5617 powerpc)
5618 # On Linux this means only a 32-bit capable CPU.
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5620$as_echo "ok (${host_cpu})" >&6; }
5621 ARCH_MAX="ppc32"
5622 ;;
5623
5624 s390x)
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5626$as_echo "ok (${host_cpu})" >&6; }
5627 ARCH_MAX="s390x"
5628 ;;
5629
5630 armv7*)
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5632$as_echo "ok (${host_cpu})" >&6; }
5633 ARCH_MAX="arm"
5634 ;;
5635
5636 aarch64*)
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5638$as_echo "ok (${host_cpu})" >&6; }
5639 ARCH_MAX="arm64"
5640 ;;
5641
5642 mips)
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5644$as_echo "ok (${host_cpu})" >&6; }
5645 ARCH_MAX="mips32"
5646 ;;
5647
5648 mipsel)
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5650$as_echo "ok (${host_cpu})" >&6; }
5651 ARCH_MAX="mips32"
5652 ;;
5653
5654 mipsisa32r2)
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5656$as_echo "ok (${host_cpu})" >&6; }
5657 ARCH_MAX="mips32"
5658 ;;
5659
5660 mips64*)
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5662$as_echo "ok (${host_cpu})" >&6; }
5663 ARCH_MAX="mips64"
5664 ;;
5665
5666 mipsisa64*)
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5668$as_echo "ok (${host_cpu})" >&6; }
5669 ARCH_MAX="mips64"
5670 ;;
5671
Elliott Hughesa0664b92017-04-18 17:46:52 -07005672 *)
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
5674$as_echo "no (${host_cpu})" >&6; }
5675 as_fn_error $? "Unsupported host architecture. Sorry" "$LINENO" 5
5676 ;;
5677esac
5678
5679#----------------------------------------------------------------------------
5680
5681# Sometimes it's convenient to subvert the bi-arch build system and
5682# just have a single build even though the underlying platform is
5683# capable of both. Hence handle --enable-only64bit and
5684# --enable-only32bit. Complain if both are issued :-)
5685# [Actually, if either of these options are used, I think both get built,
5686# but only one gets installed. So if you use an in-place build, both can be
5687# used. --njn]
5688
5689# Check if a 64-bit only build has been requested
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
5691$as_echo_n "checking for a 64-bit only build... " >&6; }
5692if ${vg_cv_only64bit+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694else
5695 # Check whether --enable-only64bit was given.
5696if test "${enable_only64bit+set}" = set; then :
5697 enableval=$enable_only64bit; vg_cv_only64bit=$enableval
5698else
5699 vg_cv_only64bit=no
5700fi
5701
5702fi
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
5704$as_echo "$vg_cv_only64bit" >&6; }
5705
5706# Check if a 32-bit only build has been requested
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
5708$as_echo_n "checking for a 32-bit only build... " >&6; }
5709if ${vg_cv_only32bit+:} false; then :
5710 $as_echo_n "(cached) " >&6
5711else
5712 # Check whether --enable-only32bit was given.
5713if test "${enable_only32bit+set}" = set; then :
5714 enableval=$enable_only32bit; vg_cv_only32bit=$enableval
5715else
5716 vg_cv_only32bit=no
5717fi
5718
5719fi
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
5721$as_echo "$vg_cv_only32bit" >&6; }
5722
5723# Stay sane
5724if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5725 as_fn_error $? "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
5726fi
5727
5728#----------------------------------------------------------------------------
5729
5730# VGCONF_OS is the primary build OS, eg. "linux". It is passed in to
5731# compilation of many C files via -VGO_$(VGCONF_OS) and
5732# -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
5734$as_echo_n "checking for a supported OS... " >&6; }
5735
5736
5737DEFAULT_SUPP=""
5738
5739case "${host_os}" in
5740 *linux*)
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5742$as_echo "ok (${host_os})" >&6; }
5743 VGCONF_OS="linux"
5744
5745 # Ok, this is linux. Check the kernel version
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5747$as_echo_n "checking for the kernel version... " >&6; }
5748
5749 kernel=`uname -r`
5750
5751 case "${kernel}" in
5752 0.*|1.*|2.0.*|2.1.*|2.2.*|2.3.*|2.4.*|2.5.*)
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5754$as_echo "unsupported (${kernel})" >&6; }
5755 as_fn_error $? "Valgrind needs a Linux kernel >= 2.6" "$LINENO" 5
5756 ;;
5757
5758 *)
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 or later (${kernel})" >&5
5760$as_echo "2.6 or later (${kernel})" >&6; }
5761 ;;
5762 esac
5763
5764 ;;
5765
5766 *darwin*)
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5768$as_echo "ok (${host_os})" >&6; }
5769 VGCONF_OS="darwin"
5770
5771$as_echo "#define DARWIN_10_5 100500" >>confdefs.h
5772
5773
5774$as_echo "#define DARWIN_10_6 100600" >>confdefs.h
5775
5776
5777$as_echo "#define DARWIN_10_7 100700" >>confdefs.h
5778
5779
5780$as_echo "#define DARWIN_10_8 100800" >>confdefs.h
5781
5782
5783$as_echo "#define DARWIN_10_9 100900" >>confdefs.h
5784
5785
5786$as_echo "#define DARWIN_10_10 101000" >>confdefs.h
5787
5788
5789$as_echo "#define DARWIN_10_11 101100" >>confdefs.h
5790
5791
5792$as_echo "#define DARWIN_10_12 101200" >>confdefs.h
5793
5794
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5796$as_echo_n "checking for the kernel version... " >&6; }
5797 kernel=`uname -r`
5798
5799 # Nb: for Darwin we set DEFAULT_SUPP here. That's because Darwin
5800 # has only one relevant version, the OS version. The `uname` check
5801 # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
5802 # X 10.5.6, and "Darwin 10.x" is Mac OS X 10.6.x Snow Leopard,
5803 # and possibly "Darwin 11.x" is Mac OS X 10.7.x Lion),
5804 # and we don't know of an macros similar to __GLIBC__ to get that info.
5805 #
5806 # XXX: `uname -r` won't do the right thing for cross-compiles, but
5807 # that's not a problem yet.
5808 #
5809 # jseward 21 Sept 2011: I seriously doubt whether V 3.7.0 will work
5810 # on OS X 10.5.x; I haven't tested yet, and only plan to test 3.7.0
5811 # on 10.6.8 and 10.7.1. Although tempted to delete the configure
5812 # time support for 10.5 (the 9.* pattern just below), I'll leave it
5813 # in for now, just in case anybody wants to give it a try. But I'm
5814 # assuming that 3.7.0 is a Snow Leopard and Lion-only release.
5815 case "${kernel}" in
5816 9.*)
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
5818$as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
5819
5820$as_echo "#define DARWIN_VERS DARWIN_10_5" >>confdefs.h
5821
5822 DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}"
5823 DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}"
5824 ;;
5825 10.*)
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&5
5827$as_echo "Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&6; }
5828
5829$as_echo "#define DARWIN_VERS DARWIN_10_6" >>confdefs.h
5830
5831 DEFAULT_SUPP="darwin10.supp ${DEFAULT_SUPP}"
5832 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5833 ;;
5834 11.*)
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 11.x (${kernel}) / Mac OS X 10.7 Lion" >&5
5836$as_echo "Darwin 11.x (${kernel}) / Mac OS X 10.7 Lion" >&6; }
5837
5838$as_echo "#define DARWIN_VERS DARWIN_10_7" >>confdefs.h
5839
5840 DEFAULT_SUPP="darwin11.supp ${DEFAULT_SUPP}"
5841 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5842 ;;
5843 12.*)
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 12.x (${kernel}) / Mac OS X 10.8 Mountain Lion" >&5
5845$as_echo "Darwin 12.x (${kernel}) / Mac OS X 10.8 Mountain Lion" >&6; }
5846
5847$as_echo "#define DARWIN_VERS DARWIN_10_8" >>confdefs.h
5848
5849 DEFAULT_SUPP="darwin12.supp ${DEFAULT_SUPP}"
5850 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5851 ;;
5852 13.*)
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 13.x (${kernel}) / Mac OS X 10.9 Mavericks" >&5
5854$as_echo "Darwin 13.x (${kernel}) / Mac OS X 10.9 Mavericks" >&6; }
5855
5856$as_echo "#define DARWIN_VERS DARWIN_10_9" >>confdefs.h
5857
5858 DEFAULT_SUPP="darwin13.supp ${DEFAULT_SUPP}"
5859 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5860 ;;
5861 14.*)
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 14.x (${kernel}) / Mac OS X 10.10 Yosemite" >&5
5863$as_echo "Darwin 14.x (${kernel}) / Mac OS X 10.10 Yosemite" >&6; }
5864
5865$as_echo "#define DARWIN_VERS DARWIN_10_10" >>confdefs.h
5866
5867 DEFAULT_SUPP="darwin14.supp ${DEFAULT_SUPP}"
5868 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5869 ;;
5870 15.*)
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 15.x (${kernel}) / Mac OS X 10.11 El Capitan" >&5
5872$as_echo "Darwin 15.x (${kernel}) / Mac OS X 10.11 El Capitan" >&6; }
5873
5874$as_echo "#define DARWIN_VERS DARWIN_10_11" >>confdefs.h
5875
5876 DEFAULT_SUPP="darwin15.supp ${DEFAULT_SUPP}"
5877 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5878 ;;
5879 16.*)
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 16.x (${kernel}) / macOS 10.12 Sierra" >&5
5881$as_echo "Darwin 16.x (${kernel}) / macOS 10.12 Sierra" >&6; }
5882
5883$as_echo "#define DARWIN_VERS DARWIN_10_12" >>confdefs.h
5884
5885 DEFAULT_SUPP="darwin16.supp ${DEFAULT_SUPP}"
5886 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}"
5887 ;;
5888 *)
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5890$as_echo "unsupported (${kernel})" >&6; }
5891 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
5892 ;;
5893 esac
5894 ;;
5895
5896 solaris2.11*)
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5898$as_echo "ok (${host_os})" >&6; }
5899 VGCONF_OS="solaris"
5900 DEFAULT_SUPP="solaris11.supp ${DEFAULT_SUPP}"
5901 ;;
5902
5903 solaris2.12*)
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="solaris12.supp ${DEFAULT_SUPP}"
5908 ;;
5909
5910 *)
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
5912$as_echo "no (${host_os})" >&6; }
5913 as_fn_error $? "Valgrind is operating system specific. Sorry." "$LINENO" 5
5914 ;;
5915esac
5916
5917#----------------------------------------------------------------------------
5918
5919# If we are building on a 64 bit platform test to see if the system
5920# supports building 32 bit programs and disable 32 bit support if it
5921# does not support building 32 bit programs
5922
5923case "$ARCH_MAX-$VGCONF_OS" in
5924 amd64-linux|ppc64be-linux|arm64-linux|amd64-solaris)
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
5926$as_echo_n "checking for 32 bit build support... " >&6; }
5927 safe_CFLAGS=$CFLAGS
5928 CFLAGS="-m32"
5929
5930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h. */
5932
5933int
5934main ()
5935{
5936
5937 return 0;
5938
5939 ;
5940 return 0;
5941}
5942_ACEOF
5943if ac_fn_c_try_link "$LINENO"; then :
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5946$as_echo "yes" >&6; }
5947
5948else
5949
5950 vg_cv_only64bit="yes"
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953
5954fi
5955rm -f core conftest.err conftest.$ac_objext \
5956 conftest$ac_exeext conftest.$ac_ext
5957 CFLAGS=$safe_CFLAGS;;
5958esac
5959
5960if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5961 as_fn_error $? "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
5962fi
5963
5964#----------------------------------------------------------------------------
5965
5966# VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64". By
5967# default it's the same as ARCH_MAX. But if, say, we do a build on an amd64
5968# machine, but --enable-only32bit has been requested, then ARCH_MAX (see
5969# above) will be "amd64" since that reflects the most that this cpu can do,
5970# but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
5971# arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS). It is
5972# passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
5973# -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5974
5975
5976# VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
5977# It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
5978# and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
5979# It is empty if there is no secondary target.
5980
5981
5982# VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
5983# The entire system, including regression and performance tests, will be
5984# built for this target. The "_CAPS" indicates that the name is in capital
5985# letters, and it also uses '_' rather than '-' as a separator, because it's
5986# used to create various Makefile variables, which are all in caps by
5987# convention and cannot contain '-' characters. This is in contrast to
5988# VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
5989
5990
5991# VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
5992# Valgrind and tools will also be built for this target, but not the
5993# regression or performance tests.
5994#
5995# By default, the primary arch is the same as the "max" arch, as commented
5996# above (at the definition of ARCH_MAX). We may choose to downgrade it in
5997# the big case statement just below here, in the case where we're building
5998# on a 64 bit machine but have been requested only to do a 32 bit build.
5999
6000
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
6002$as_echo_n "checking for a supported CPU/OS combination... " >&6; }
6003
6004# NB. The load address for a given platform may be specified in more
6005# than one place, in some cases, depending on whether we're doing a biarch,
6006# 32-bit only or 64-bit only build. eg see case for amd64-linux below.
6007# Be careful to give consistent values in all subcases. Also, all four
6008# valt_load_addres_{pri,sec}_{norml,inner} values must always be set,
6009# even if it is to "0xUNSET".
6010#
6011case "$ARCH_MAX-$VGCONF_OS" in
6012 x86-linux)
6013 VGCONF_ARCH_PRI="x86"
6014 VGCONF_ARCH_SEC=""
6015 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
6016 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006017 valt_load_address_pri_norml="0x58000000"
6018 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006019 valt_load_address_sec_norml="0xUNSET"
6020 valt_load_address_sec_inner="0xUNSET"
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6022$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6023 ;;
6024 amd64-linux)
6025 valt_load_address_sec_norml="0xUNSET"
6026 valt_load_address_sec_inner="0xUNSET"
6027 if test x$vg_cv_only64bit = xyes; then
6028 VGCONF_ARCH_PRI="amd64"
6029 VGCONF_ARCH_SEC=""
6030 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
6031 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006032 valt_load_address_pri_norml="0x58000000"
6033 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006034 elif test x$vg_cv_only32bit = xyes; then
6035 VGCONF_ARCH_PRI="x86"
6036 VGCONF_ARCH_SEC=""
6037 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
6038 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006039 valt_load_address_pri_norml="0x58000000"
6040 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006041 else
6042 VGCONF_ARCH_PRI="amd64"
6043 VGCONF_ARCH_SEC="x86"
6044 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
6045 VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
Elliott Hughesed398002017-06-21 14:41:24 -07006046 valt_load_address_pri_norml="0x58000000"
6047 valt_load_address_pri_inner="0x38000000"
6048 valt_load_address_sec_norml="0x58000000"
6049 valt_load_address_sec_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006050 fi
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6052$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6053 ;;
6054 ppc32-linux)
6055 VGCONF_ARCH_PRI="ppc32"
6056 VGCONF_ARCH_SEC=""
6057 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
6058 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006059 valt_load_address_pri_norml="0x58000000"
6060 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006061 valt_load_address_sec_norml="0xUNSET"
6062 valt_load_address_sec_inner="0xUNSET"
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6064$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6065 ;;
6066 ppc64be-linux)
6067 valt_load_address_sec_norml="0xUNSET"
6068 valt_load_address_sec_inner="0xUNSET"
6069 if test x$vg_cv_only64bit = xyes; then
6070 VGCONF_ARCH_PRI="ppc64be"
6071 VGCONF_ARCH_SEC=""
6072 VGCONF_PLATFORM_PRI_CAPS="PPC64BE_LINUX"
6073 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006074 valt_load_address_pri_norml="0x58000000"
6075 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006076 elif test x$vg_cv_only32bit = xyes; then
6077 VGCONF_ARCH_PRI="ppc32"
6078 VGCONF_ARCH_SEC=""
6079 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
6080 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006081 valt_load_address_pri_norml="0x58000000"
6082 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006083 else
6084 VGCONF_ARCH_PRI="ppc64be"
6085 VGCONF_ARCH_SEC="ppc32"
6086 VGCONF_PLATFORM_PRI_CAPS="PPC64BE_LINUX"
6087 VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
Elliott Hughesed398002017-06-21 14:41:24 -07006088 valt_load_address_pri_norml="0x58000000"
6089 valt_load_address_pri_inner="0x38000000"
6090 valt_load_address_sec_norml="0x58000000"
6091 valt_load_address_sec_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006092 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6094$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6095 ;;
6096 ppc64le-linux)
6097 # Little Endian is only supported on PPC64
6098 valt_load_address_sec_norml="0xUNSET"
6099 valt_load_address_sec_inner="0xUNSET"
6100 VGCONF_ARCH_PRI="ppc64le"
6101 VGCONF_ARCH_SEC=""
6102 VGCONF_PLATFORM_PRI_CAPS="PPC64LE_LINUX"
6103 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006104 valt_load_address_pri_norml="0x58000000"
6105 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6107$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6108 ;;
6109 # Darwin gets identified as 32-bit even when it supports 64-bit.
6110 # (Not sure why, possibly because 'uname' returns "i386"?) Just about
6111 # all Macs support both 32-bit and 64-bit, so we just build both. If
6112 # someone has a really old 32-bit only machine they can (hopefully?)
6113 # build with --enable-only32bit. See bug 243362.
6114 x86-darwin|amd64-darwin)
6115 ARCH_MAX="amd64"
6116 valt_load_address_sec_norml="0xUNSET"
6117 valt_load_address_sec_inner="0xUNSET"
6118 if test x$vg_cv_only64bit = xyes; then
6119 VGCONF_ARCH_PRI="amd64"
6120 VGCONF_ARCH_SEC=""
6121 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
6122 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006123 valt_load_address_pri_norml="0x158000000"
6124 valt_load_address_pri_inner="0x138000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006125 elif test x$vg_cv_only32bit = xyes; then
6126 VGCONF_ARCH_PRI="x86"
6127 VGCONF_ARCH_SEC=""
6128 VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
6129 VGCONF_PLATFORM_SEC_CAPS=""
6130 VGCONF_ARCH_PRI_CAPS="x86"
Elliott Hughesed398002017-06-21 14:41:24 -07006131 valt_load_address_pri_norml="0x58000000"
6132 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006133 else
6134 VGCONF_ARCH_PRI="amd64"
6135 VGCONF_ARCH_SEC="x86"
6136 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
6137 VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
Elliott Hughesed398002017-06-21 14:41:24 -07006138 valt_load_address_pri_norml="0x158000000"
6139 valt_load_address_pri_inner="0x138000000"
6140 valt_load_address_sec_norml="0x58000000"
6141 valt_load_address_sec_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006142 fi
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6144$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6145 ;;
6146 arm-linux)
6147 VGCONF_ARCH_PRI="arm"
6148 VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
6149 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006150 valt_load_address_pri_norml="0x58000000"
6151 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006152 valt_load_address_sec_norml="0xUNSET"
6153 valt_load_address_sec_inner="0xUNSET"
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
6155$as_echo "ok (${host_cpu}-${host_os})" >&6; }
6156 ;;
6157 arm64-linux)
6158 valt_load_address_sec_norml="0xUNSET"
6159 valt_load_address_sec_inner="0xUNSET"
6160 if test x$vg_cv_only64bit = xyes; then
6161 VGCONF_ARCH_PRI="arm64"
6162 VGCONF_ARCH_SEC=""
6163 VGCONF_PLATFORM_PRI_CAPS="ARM64_LINUX"
6164 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006165 valt_load_address_pri_norml="0x58000000"
6166 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006167 elif test x$vg_cv_only32bit = xyes; then
6168 VGCONF_ARCH_PRI="arm"
6169 VGCONF_ARCH_SEC=""
6170 VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
6171 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006172 valt_load_address_pri_norml="0x58000000"
6173 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006174 else
6175 VGCONF_ARCH_PRI="arm64"
6176 VGCONF_ARCH_SEC="arm"
6177 VGCONF_PLATFORM_PRI_CAPS="ARM64_LINUX"
6178 VGCONF_PLATFORM_SEC_CAPS="ARM_LINUX"
Elliott Hughesed398002017-06-21 14:41:24 -07006179 valt_load_address_pri_norml="0x58000000"
6180 valt_load_address_pri_inner="0x38000000"
6181 valt_load_address_sec_norml="0x58000000"
6182 valt_load_address_sec_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6185$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6186 ;;
6187 s390x-linux)
6188 VGCONF_ARCH_PRI="s390x"
6189 VGCONF_ARCH_SEC=""
6190 VGCONF_PLATFORM_PRI_CAPS="S390X_LINUX"
6191 VGCONF_PLATFORM_SEC_CAPS=""
6192 # To improve branch prediction hit rate we want to have
6193 # the generated code close to valgrind (host) code
6194 valt_load_address_pri_norml="0x800000000"
6195 valt_load_address_pri_inner="0x810000000"
6196 valt_load_address_sec_norml="0xUNSET"
6197 valt_load_address_sec_inner="0xUNSET"
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6199$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6200 ;;
6201 mips32-linux)
6202 VGCONF_ARCH_PRI="mips32"
6203 VGCONF_PLATFORM_PRI_CAPS="MIPS32_LINUX"
6204 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006205 valt_load_address_pri_norml="0x58000000"
6206 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006207 valt_load_address_sec_norml="0xUNSET"
6208 valt_load_address_sec_inner="0xUNSET"
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6210$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6211 ;;
6212 mips64-linux)
6213 VGCONF_ARCH_PRI="mips64"
6214 VGCONF_PLATFORM_PRI_CAPS="MIPS64_LINUX"
6215 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006216 valt_load_address_pri_norml="0x58000000"
6217 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006218 valt_load_address_sec_norml="0xUNSET"
6219 valt_load_address_sec_inner="0xUNSET"
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6221$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6222 ;;
6223 x86-solaris)
6224 VGCONF_ARCH_PRI="x86"
6225 VGCONF_ARCH_SEC=""
6226 VGCONF_PLATFORM_PRI_CAPS="X86_SOLARIS"
6227 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006228 valt_load_address_pri_norml="0x58000000"
6229 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006230 valt_load_address_sec_norml="0xUNSET"
6231 valt_load_address_sec_inner="0xUNSET"
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6233$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6234 ;;
6235 amd64-solaris)
6236 valt_load_address_sec_norml="0xUNSET"
6237 valt_load_address_sec_inner="0xUNSET"
6238 if test x$vg_cv_only64bit = xyes; then
6239 VGCONF_ARCH_PRI="amd64"
6240 VGCONF_ARCH_SEC=""
6241 VGCONF_PLATFORM_PRI_CAPS="AMD64_SOLARIS"
6242 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006243 valt_load_address_pri_norml="0x58000000"
6244 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006245 elif test x$vg_cv_only32bit = xyes; then
6246 VGCONF_ARCH_PRI="x86"
6247 VGCONF_ARCH_SEC=""
6248 VGCONF_PLATFORM_PRI_CAPS="X86_SOLARIS"
6249 VGCONF_PLATFORM_SEC_CAPS=""
Elliott Hughesed398002017-06-21 14:41:24 -07006250 valt_load_address_pri_norml="0x58000000"
6251 valt_load_address_pri_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006252 else
6253 VGCONF_ARCH_PRI="amd64"
6254 VGCONF_ARCH_SEC="x86"
6255 VGCONF_PLATFORM_PRI_CAPS="AMD64_SOLARIS"
6256 VGCONF_PLATFORM_SEC_CAPS="X86_SOLARIS"
Elliott Hughesed398002017-06-21 14:41:24 -07006257 valt_load_address_pri_norml="0x58000000"
6258 valt_load_address_pri_inner="0x38000000"
6259 valt_load_address_sec_norml="0x58000000"
6260 valt_load_address_sec_inner="0x38000000"
Elliott Hughesa0664b92017-04-18 17:46:52 -07006261 fi
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
6263$as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6264 ;;
6265 *)
6266 VGCONF_ARCH_PRI="unknown"
6267 VGCONF_ARCH_SEC="unknown"
6268 VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
6269 VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
6270 valt_load_address_pri_norml="0xUNSET"
6271 valt_load_address_pri_inner="0xUNSET"
6272 valt_load_address_sec_norml="0xUNSET"
6273 valt_load_address_sec_inner="0xUNSET"
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
6275$as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
6276 as_fn_error $? "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
6277 ;;
6278esac
6279
6280#----------------------------------------------------------------------------
6281
6282# Set up VGCONF_ARCHS_INCLUDE_<arch>. Either one or two of these become
6283# defined.
6284 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
6285 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
6286 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
6287 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN \
6288 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \
6289 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_SOLARIS ; then
6290 VGCONF_ARCHS_INCLUDE_X86_TRUE=
6291 VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
6292else
6293 VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
6294 VGCONF_ARCHS_INCLUDE_X86_FALSE=
6295fi
6296
6297 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
6298 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN \
6299 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS ; then
6300 VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
6301 VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
6302else
6303 VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
6304 VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
6305fi
6306
6307 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
6308 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
6309 VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
6310 VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
6311else
6312 VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
6313 VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
6314fi
6315
6316 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64BE_LINUX \
6317 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64LE_LINUX ; then
6318 VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
6319 VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
6320else
6321 VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
6322 VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
6323fi
6324
6325 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
6326 -o x$VGCONF_PLATFORM_SEC_CAPS = xARM_LINUX ; then
6327 VGCONF_ARCHS_INCLUDE_ARM_TRUE=
6328 VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
6329else
6330 VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
6331 VGCONF_ARCHS_INCLUDE_ARM_FALSE=
6332fi
6333
6334 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX ; then
6335 VGCONF_ARCHS_INCLUDE_ARM64_TRUE=
6336 VGCONF_ARCHS_INCLUDE_ARM64_FALSE='#'
6337else
6338 VGCONF_ARCHS_INCLUDE_ARM64_TRUE='#'
6339 VGCONF_ARCHS_INCLUDE_ARM64_FALSE=
6340fi
6341
6342 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
6343 VGCONF_ARCHS_INCLUDE_S390X_TRUE=
6344 VGCONF_ARCHS_INCLUDE_S390X_FALSE='#'
6345else
6346 VGCONF_ARCHS_INCLUDE_S390X_TRUE='#'
6347 VGCONF_ARCHS_INCLUDE_S390X_FALSE=
6348fi
6349
6350 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX ; then
6351 VGCONF_ARCHS_INCLUDE_MIPS32_TRUE=
6352 VGCONF_ARCHS_INCLUDE_MIPS32_FALSE='#'
6353else
6354 VGCONF_ARCHS_INCLUDE_MIPS32_TRUE='#'
6355 VGCONF_ARCHS_INCLUDE_MIPS32_FALSE=
6356fi
6357
6358 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX ; then
6359 VGCONF_ARCHS_INCLUDE_MIPS64_TRUE=
6360 VGCONF_ARCHS_INCLUDE_MIPS64_FALSE='#'
6361else
6362 VGCONF_ARCHS_INCLUDE_MIPS64_TRUE='#'
6363 VGCONF_ARCHS_INCLUDE_MIPS64_FALSE=
6364fi
6365
Elliott Hughesa0664b92017-04-18 17:46:52 -07006366
6367# Set up VGCONF_PLATFORMS_INCLUDE_<platform>. Either one or two of these
6368# become defined.
6369 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
6370 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
6371 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
6372 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
6373else
6374 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
6375 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
6376fi
6377
6378 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
6379 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
6380 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
6381else
6382 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
6383 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
6384fi
6385
6386 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
6387 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
6388 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
6389 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
6390else
6391 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
6392 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
6393fi
6394
6395 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64BE_LINUX; then
6396 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE=
6397 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE='#'
6398else
6399 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE='#'
6400 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE=
6401fi
6402
6403 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64LE_LINUX; then
6404 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE=
6405 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE='#'
6406else
6407 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE='#'
6408 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE=
6409fi
6410
6411 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
6412 -o x$VGCONF_PLATFORM_SEC_CAPS = xARM_LINUX; then
6413 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
6414 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
6415else
6416 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
6417 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
6418fi
6419
6420 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX; then
6421 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE=
6422 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE='#'
6423else
6424 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE='#'
6425 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE=
6426fi
6427
6428 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \
6429 -o x$VGCONF_PLATFORM_SEC_CAPS = xS390X_LINUX; then
6430 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE=
6431 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE='#'
6432else
6433 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE='#'
6434 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE=
6435fi
6436
6437 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX; then
6438 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE=
6439 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE='#'
6440else
6441 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE='#'
6442 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE=
6443fi
6444
6445 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX; then
6446 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE=
6447 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE='#'
6448else
6449 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE='#'
6450 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE=
6451fi
6452
Elliott Hughesa0664b92017-04-18 17:46:52 -07006453 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
6454 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
6455 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
6456 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
6457else
6458 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
6459 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
6460fi
6461
6462 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
6463 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
6464 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
6465else
6466 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
6467 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
6468fi
6469
6470 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \
6471 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_SOLARIS; then
6472 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE=
6473 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE='#'
6474else
6475 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE='#'
6476 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE=
6477fi
6478
6479 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS; then
6480 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE=
6481 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE='#'
6482else
6483 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE='#'
6484 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE=
6485fi
6486
6487
6488
6489# Similarly, set up VGCONF_OS_IS_<os>. Exactly one of these becomes defined.
6490# Relies on the assumption that the primary and secondary targets are
6491# for the same OS, so therefore only necessary to test the primary.
6492 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
6493 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
6494 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
6495 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64BE_LINUX \
6496 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64LE_LINUX \
6497 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
6498 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX \
6499 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \
6500 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \
Elliott Hughesed398002017-06-21 14:41:24 -07006501 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX; then
Elliott Hughesa0664b92017-04-18 17:46:52 -07006502 VGCONF_OS_IS_LINUX_TRUE=
6503 VGCONF_OS_IS_LINUX_FALSE='#'
6504else
6505 VGCONF_OS_IS_LINUX_TRUE='#'
6506 VGCONF_OS_IS_LINUX_FALSE=
6507fi
6508
6509 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
6510 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
6511 VGCONF_OS_IS_DARWIN_TRUE=
6512 VGCONF_OS_IS_DARWIN_FALSE='#'
6513else
6514 VGCONF_OS_IS_DARWIN_TRUE='#'
6515 VGCONF_OS_IS_DARWIN_FALSE=
6516fi
6517
6518 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \
6519 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS; then
6520 VGCONF_OS_IS_SOLARIS_TRUE=
6521 VGCONF_OS_IS_SOLARIS_FALSE='#'
6522else
6523 VGCONF_OS_IS_SOLARIS_TRUE='#'
6524 VGCONF_OS_IS_SOLARIS_FALSE=
6525fi
6526
6527
6528
6529# Sometimes, in the Makefile.am files, it's useful to know whether or not
6530# there is a secondary target.
6531 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
6532 VGCONF_HAVE_PLATFORM_SEC_TRUE=
6533 VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
6534else
6535 VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
6536 VGCONF_HAVE_PLATFORM_SEC_FALSE=
6537fi
6538
6539
6540
6541
6542#----------------------------------------------------------------------------
6543# Inner Valgrind?
6544#----------------------------------------------------------------------------
6545
6546# Check if this should be built as an inner Valgrind, to be run within
6547# another Valgrind. Choose the load address accordingly.
6548
6549
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
6551$as_echo_n "checking for use as an inner Valgrind... " >&6; }
6552if ${vg_cv_inner+:} false; then :
6553 $as_echo_n "(cached) " >&6
6554else
6555 # Check whether --enable-inner was given.
6556if test "${enable_inner+set}" = set; then :
6557 enableval=$enable_inner; vg_cv_inner=$enableval
6558else
6559 vg_cv_inner=no
6560fi
6561
6562fi
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
6564$as_echo "$vg_cv_inner" >&6; }
6565if test "$vg_cv_inner" = yes; then
6566
6567$as_echo "#define ENABLE_INNER 1" >>confdefs.h
6568
6569 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_inner
6570 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_inner
6571else
6572 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml
6573 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml
6574fi
6575
6576#----------------------------------------------------------------------------
6577# Undefined behaviour sanitiser
6578#----------------------------------------------------------------------------
6579# Check whether we should build with the undefined beahviour sanitiser.
6580
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for using the undefined behaviour sanitiser" >&5
6582$as_echo_n "checking for using the undefined behaviour sanitiser... " >&6; }
6583if ${vg_cv_ubsan+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585else
6586 # Check whether --enable-ubsan was given.
6587if test "${enable_ubsan+set}" = set; then :
6588 enableval=$enable_ubsan; vg_cv_ubsan=$enableval
6589else
6590 vg_cv_ubsan=no
6591fi
6592
6593fi
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_ubsan" >&5
6595$as_echo "$vg_cv_ubsan" >&6; }
6596
6597#----------------------------------------------------------------------------
6598# Extra fine-tuning of installation directories
6599#----------------------------------------------------------------------------
6600
6601# Check whether --with-tmpdir was given.
6602if test "${with_tmpdir+set}" = set; then :
6603 withval=$with_tmpdir; tmpdir="$withval"
6604else
6605 tmpdir="/tmp"
6606fi
6607
6608
6609cat >>confdefs.h <<_ACEOF
6610#define VG_TMPDIR "$tmpdir"
6611_ACEOF
6612
6613VG_TMPDIR=$tmpdir
6614
6615
6616
6617#----------------------------------------------------------------------------
6618# Libc and suppressions
6619#----------------------------------------------------------------------------
6620# This variable will collect the suppression files to be used.
6621
6622
6623
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6625$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6626if ${ac_cv_path_GREP+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628else
6629 if test -z "$GREP"; then
6630 ac_path_GREP_found=false
6631 # Loop through the user's path and test for each of PROGNAME-LIST
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6634do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_prog in grep ggrep; do
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6640 as_fn_executable_p "$ac_path_GREP" || continue
6641# Check for GNU ac_path_GREP and select it if it is found.
6642 # Check for GNU $ac_path_GREP
6643case `"$ac_path_GREP" --version 2>&1` in
6644*GNU*)
6645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6646*)
6647 ac_count=0
6648 $as_echo_n 0123456789 >"conftest.in"
6649 while :
6650 do
6651 cat "conftest.in" "conftest.in" >"conftest.tmp"
6652 mv "conftest.tmp" "conftest.in"
6653 cp "conftest.in" "conftest.nl"
6654 $as_echo 'GREP' >> "conftest.nl"
6655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6657 as_fn_arith $ac_count + 1 && ac_count=$as_val
6658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6659 # Best one so far, save it but keep looking for a better one
6660 ac_cv_path_GREP="$ac_path_GREP"
6661 ac_path_GREP_max=$ac_count
6662 fi
6663 # 10*(2^10) chars as input seems more than enough
6664 test $ac_count -gt 10 && break
6665 done
6666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6667esac
6668
6669 $ac_path_GREP_found && break 3
6670 done
6671 done
6672 done
6673IFS=$as_save_IFS
6674 if test -z "$ac_cv_path_GREP"; then
6675 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6676 fi
6677else
6678 ac_cv_path_GREP=$GREP
6679fi
6680
6681fi
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6683$as_echo "$ac_cv_path_GREP" >&6; }
6684 GREP="$ac_cv_path_GREP"
6685
6686
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6688$as_echo_n "checking for egrep... " >&6; }
6689if ${ac_cv_path_EGREP+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691else
6692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6693 then ac_cv_path_EGREP="$GREP -E"
6694 else
6695 if test -z "$EGREP"; then
6696 ac_path_EGREP_found=false
6697 # Loop through the user's path and test for each of PROGNAME-LIST
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6700do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_prog in egrep; do
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6706 as_fn_executable_p "$ac_path_EGREP" || continue
6707# Check for GNU ac_path_EGREP and select it if it is found.
6708 # Check for GNU $ac_path_EGREP
6709case `"$ac_path_EGREP" --version 2>&1` in
6710*GNU*)
6711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6712*)
6713 ac_count=0
6714 $as_echo_n 0123456789 >"conftest.in"
6715 while :
6716 do
6717 cat "conftest.in" "conftest.in" >"conftest.tmp"
6718 mv "conftest.tmp" "conftest.in"
6719 cp "conftest.in" "conftest.nl"
6720 $as_echo 'EGREP' >> "conftest.nl"
6721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6723 as_fn_arith $ac_count + 1 && ac_count=$as_val
6724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6725 # Best one so far, save it but keep looking for a better one
6726 ac_cv_path_EGREP="$ac_path_EGREP"
6727 ac_path_EGREP_max=$ac_count
6728 fi
6729 # 10*(2^10) chars as input seems more than enough
6730 test $ac_count -gt 10 && break
6731 done
6732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6733esac
6734
6735 $ac_path_EGREP_found && break 3
6736 done
6737 done
6738 done
6739IFS=$as_save_IFS
6740 if test -z "$ac_cv_path_EGREP"; then
6741 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6742 fi
6743else
6744 ac_cv_path_EGREP=$EGREP
6745fi
6746
6747 fi
6748fi
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6750$as_echo "$ac_cv_path_EGREP" >&6; }
6751 EGREP="$ac_cv_path_EGREP"
6752
6753
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6755$as_echo_n "checking for ANSI C header files... " >&6; }
6756if ${ac_cv_header_stdc+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758else
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760/* end confdefs.h. */
6761#include <stdlib.h>
6762#include <stdarg.h>
6763#include <string.h>
6764#include <float.h>
6765
6766int
6767main ()
6768{
6769
6770 ;
6771 return 0;
6772}
6773_ACEOF
6774if ac_fn_c_try_compile "$LINENO"; then :
6775 ac_cv_header_stdc=yes
6776else
6777 ac_cv_header_stdc=no
6778fi
6779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780
6781if test $ac_cv_header_stdc = yes; then
6782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784/* end confdefs.h. */
6785#include <string.h>
6786
6787_ACEOF
6788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6789 $EGREP "memchr" >/dev/null 2>&1; then :
6790
6791else
6792 ac_cv_header_stdc=no
6793fi
6794rm -f conftest*
6795
6796fi
6797
6798if test $ac_cv_header_stdc = yes; then
6799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801/* end confdefs.h. */
6802#include <stdlib.h>
6803
6804_ACEOF
6805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6806 $EGREP "free" >/dev/null 2>&1; then :
6807
6808else
6809 ac_cv_header_stdc=no
6810fi
6811rm -f conftest*
6812
6813fi
6814
6815if test $ac_cv_header_stdc = yes; then
6816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6817 if test "$cross_compiling" = yes; then :
6818 :
6819else
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821/* end confdefs.h. */
6822#include <ctype.h>
6823#include <stdlib.h>
6824#if ((' ' & 0x0FF) == 0x020)
6825# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6826# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6827#else
6828# define ISLOWER(c) \
6829 (('a' <= (c) && (c) <= 'i') \
6830 || ('j' <= (c) && (c) <= 'r') \
6831 || ('s' <= (c) && (c) <= 'z'))
6832# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6833#endif
6834
6835#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6836int
6837main ()
6838{
6839 int i;
6840 for (i = 0; i < 256; i++)
6841 if (XOR (islower (i), ISLOWER (i))
6842 || toupper (i) != TOUPPER (i))
6843 return 2;
6844 return 0;
6845}
6846_ACEOF
6847if ac_fn_c_try_run "$LINENO"; then :
6848
6849else
6850 ac_cv_header_stdc=no
6851fi
6852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6853 conftest.$ac_objext conftest.beam conftest.$ac_ext
6854fi
6855
6856fi
6857fi
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6859$as_echo "$ac_cv_header_stdc" >&6; }
6860if test $ac_cv_header_stdc = yes; then
6861
6862$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6863
6864fi
6865
6866# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6867for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6868 inttypes.h stdint.h unistd.h
6869do :
6870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6871ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6872"
6873if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6874 cat >>confdefs.h <<_ACEOF
6875#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6876_ACEOF
6877
6878fi
6879
6880done
6881
6882
6883ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
6884if test "x$ac_cv_header_features_h" = xyes; then :
6885
6886fi
6887
6888
6889
6890if test x$ac_cv_header_features_h = xyes; then
6891 rm -f conftest.$ac_ext
6892 cat <<_ACEOF >conftest.$ac_ext
6893#include <features.h>
6894#if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
6895glibc version is: __GLIBC__ __GLIBC_MINOR__
6896#endif
6897_ACEOF
6898 GLIBC_VERSION="`$CPP -P conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
6899fi
6900
6901# not really a version check
6902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903/* end confdefs.h. */
6904
6905#include <sys/cdefs.h>
6906#if defined(__DARWIN_VERS_1050)
6907 DARWIN_LIBC
6908#endif
6909
6910_ACEOF
6911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6912 $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
6913 GLIBC_VERSION="darwin"
6914fi
6915rm -f conftest*
6916
6917
6918# not really a version check
6919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920/* end confdefs.h. */
6921
6922#if defined(__ANDROID__)
6923 BIONIC_LIBC
6924#endif
6925
6926_ACEOF
6927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6928 $EGREP "BIONIC_LIBC" >/dev/null 2>&1; then :
6929 GLIBC_VERSION="bionic"
6930fi
6931rm -f conftest*
6932
6933
6934# there is only one version of libc on Solaris
6935if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \
6936 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS; then
6937 GLIBC_VERSION="solaris"
6938fi
6939
Elliott Hughesed398002017-06-21 14:41:24 -07006940# GLIBC_VERSION is empty if a musl libc is used, so use the toolchain tuple
6941# in this case.
6942if test x$GLIBC_VERSION = x; then
6943 if $CC -dumpmachine | grep -q musl; then
6944 GLIBC_VERSION=musl
6945 fi
6946fi
Elliott Hughesa0664b92017-04-18 17:46:52 -07006947
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the glibc version" >&5
6949$as_echo_n "checking the glibc version... " >&6; }
6950
6951case "${GLIBC_VERSION}" in
6952 2.2)
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
6954$as_echo "${GLIBC_VERSION} family" >&6; }
6955 DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
6956 DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
6957 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6958 ;;
6959 2.[3-6])
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
6961$as_echo "${GLIBC_VERSION} family" >&6; }
6962 DEFAULT_SUPP="glibc-${GLIBC_VERSION}.supp ${DEFAULT_SUPP}"
6963 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6964 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6965 ;;
6966 2.[7-9])
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
6968$as_echo "${GLIBC_VERSION} family" >&6; }
6969 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6970 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6971 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6972 ;;
6973 2.10|2.11)
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
6975$as_echo "${GLIBC_VERSION} family" >&6; }
6976
6977$as_echo "#define GLIBC_MANDATORY_STRLEN_REDIRECT 1" >>confdefs.h
6978
6979 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6980 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6981 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6982 ;;
6983 2.*)
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5
6985$as_echo "${GLIBC_VERSION} family" >&6; }
6986
6987$as_echo "#define GLIBC_MANDATORY_STRLEN_REDIRECT 1" >>confdefs.h
6988
6989
6990$as_echo "#define GLIBC_MANDATORY_INDEX_AND_STRLEN_REDIRECT 1" >>confdefs.h
6991
6992 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
6993 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6994 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6995 ;;
6996 darwin)
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
6998$as_echo "Darwin" >&6; }
6999
7000$as_echo "#define DARWIN_LIBC 1" >>confdefs.h
7001
7002 # DEFAULT_SUPP set by kernel version check above.
7003 ;;
7004 bionic)
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Bionic" >&5
7006$as_echo "Bionic" >&6; }
7007
7008$as_echo "#define BIONIC_LIBC 1" >>confdefs.h
7009
7010 DEFAULT_SUPP="bionic.supp ${DEFAULT_SUPP}"
7011 ;;
7012 solaris)
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
7014$as_echo "Solaris" >&6; }
7015 # DEFAULT_SUPP set in host_os switch-case above.
7016 # No other suppression file is used.
7017 ;;
Elliott Hughesed398002017-06-21 14:41:24 -07007018 musl)
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Musl" >&5
7020$as_echo "Musl" >&6; }
7021
7022$as_echo "#define MUSL_LIBC 1" >>confdefs.h
7023
7024 # no DEFAULT_SUPP file yet for musl libc.
7025 ;;
Elliott Hughesa0664b92017-04-18 17:46:52 -07007026 2.0|2.1|*)
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
7028$as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
Elliott Hughesed398002017-06-21 14:41:24 -07007029 as_fn_error $? "Valgrind requires glibc version 2.2 or later, uClibc," "$LINENO" 5
7030 as_fn_error $? "musl libc, Darwin libc, Bionic libc or Solaris libc" "$LINENO" 5
Elliott Hughesa0664b92017-04-18 17:46:52 -07007031 ;;
7032esac
7033
7034
7035
7036
7037if test "$VGCONF_OS" != "solaris"; then
7038 # Add default suppressions for the X client libraries. Make no
7039 # attempt to detect whether such libraries are installed on the
7040 # build machine (or even if any X facilities are present); just
7041 # add the suppressions antidisirregardless.
7042 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
7043 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
7044
7045 # Add glibc and X11 suppressions for exp-sgcheck
7046 DEFAULT_SUPP="exp-sgcheck.supp ${DEFAULT_SUPP}"
7047fi
7048
7049
7050#----------------------------------------------------------------------------
7051# Platform variants?
7052#----------------------------------------------------------------------------
7053
7054# Normally the PLAT = (ARCH, OS) characterisation of the platform is enough.
7055# But there are times where we need a bit more control. The motivating
7056# and currently only case is Android: this is almost identical to
7057# {x86,arm,mips}-linux, but not quite. So this introduces the concept of
7058# platform variant tags, which get passed in the compile as
7059# -DVGPV_<arch>_<os>_<variant> along with the main -DVGP_<arch>_<os> definition.
7060#
7061# In almost all cases, the <variant> bit is "vanilla". But for Android
7062# it is "android" instead.
7063#
7064# Consequently (eg), plain arm-linux would build with
7065#
7066# -DVGP_arm_linux -DVGPV_arm_linux_vanilla
7067#
7068# whilst an Android build would have
7069#
7070# -DVGP_arm_linux -DVGPV_arm_linux_android
7071#
7072# Same for x86. The setup of the platform variant is pushed relatively far
7073# down this file in order that we can inspect any of the variables set above.
7074
7075# In the normal case ..
7076VGCONF_PLATVARIANT="vanilla"
7077
7078# Android ?
7079if test "$GLIBC_VERSION" = "bionic";
7080then
7081 VGCONF_PLATVARIANT="android"
7082fi
7083
7084
7085
7086
7087# FIXME: do we also want to define automake variables
7088# VGCONF_PLATVARIANT_IS_<WHATEVER>, where WHATEVER is (currently)
7089# VANILLA or ANDROID ? This would be in the style of VGCONF_ARCHS_INCLUDE,
7090# VGCONF_PLATFORMS_INCLUDE and VGCONF_OS_IS above? Could easily enough
7091# do that. Problem is that we can't do and-ing in Makefile.am's, but
7092# that's what we'd need to do to use this, since what we'd want to write
7093# is something like
7094#
7095# VGCONF_PLATFORMS_INCLUDE_ARM_LINUX && VGCONF_PLATVARIANT_IS_ANDROID
7096#
7097# Hmm. Can't think of a nice clean solution to this.
7098
7099 if test x$VGCONF_PLATVARIANT = xvanilla; then
7100 VGCONF_PLATVARIANT_IS_VANILLA_TRUE=
7101 VGCONF_PLATVARIANT_IS_VANILLA_FALSE='#'
7102else
7103 VGCONF_PLATVARIANT_IS_VANILLA_TRUE='#'
7104 VGCONF_PLATVARIANT_IS_VANILLA_FALSE=
7105fi
7106
7107 if test x$VGCONF_PLATVARIANT = xandroid; then
7108 VGCONF_PLATVARIANT_IS_ANDROID_TRUE=
7109 VGCONF_PLATVARIANT_IS_ANDROID_FALSE='#'
7110else
7111 VGCONF_PLATVARIANT_IS_ANDROID_TRUE='#'
7112 VGCONF_PLATVARIANT_IS_ANDROID_FALSE=
7113fi
7114
7115
7116
7117#----------------------------------------------------------------------------
7118# Checking for various library functions and other definitions
7119#----------------------------------------------------------------------------
7120
7121# Check for AT_FDCWD
7122
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AT_FDCWD" >&5
7124$as_echo_n "checking for AT_FDCWD... " >&6; }
7125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h. */
7127
7128#define _GNU_SOURCE
7129#include <fcntl.h>
7130#include <unistd.h>
7131
7132int
7133main ()
7134{
7135
7136 int a = AT_FDCWD;
7137
7138 ;
7139 return 0;
7140}
7141_ACEOF
7142if ac_fn_c_try_compile "$LINENO"; then :
7143
7144ac_have_at_fdcwd=yes
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7146$as_echo "yes" >&6; }
7147
7148else
7149
7150ac_have_at_fdcwd=no
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152$as_echo "no" >&6; }
7153
7154fi
7155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156
7157 if test x$ac_have_at_fdcwd = xyes; then
7158 HAVE_AT_FDCWD_TRUE=
7159 HAVE_AT_FDCWD_FALSE='#'
7160else
7161 HAVE_AT_FDCWD_TRUE='#'
7162 HAVE_AT_FDCWD_FALSE=
7163fi
7164
7165
7166# Check for stpncpy function definition in string.h
7167# This explicitly checks with _GNU_SOURCE defined since that is also
7168# used in the test case (some systems might define it without anyway
7169# since stpncpy is part of The Open Group Base Specifications Issue 7
7170# IEEE Std 1003.1-2008.
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stpncpy" >&5
7172$as_echo_n "checking for stpncpy... " >&6; }
7173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174/* end confdefs.h. */
7175
7176#define _GNU_SOURCE
7177#include <string.h>
7178
7179int
7180main ()
7181{
7182
7183 char *d;
7184 char *s;
7185 size_t n = 0;
7186 char *r = stpncpy(d, s, n);
7187
7188 ;
7189 return 0;
7190}
7191_ACEOF
7192if ac_fn_c_try_link "$LINENO"; then :
7193
7194ac_have_gnu_stpncpy=yes
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7196$as_echo "yes" >&6; }
7197
7198else
7199
7200ac_have_gnu_stpncpy=no
7201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202$as_echo "no" >&6; }
7203
7204fi
7205rm -f core conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7207
7208 if test x$ac_have_gnu_stpncpy = xyes; then
7209 HAVE_GNU_STPNCPY_TRUE=
7210 HAVE_GNU_STPNCPY_FALSE='#'
7211else
7212 HAVE_GNU_STPNCPY_TRUE='#'
7213 HAVE_GNU_STPNCPY_FALSE=
7214fi
7215
7216
7217# Check for PTRACE_GETREGS
7218
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
7220$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
7221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222/* end confdefs.h. */
7223
7224#include <stdlib.h>
7225#include <stddef.h>
7226#include <sys/ptrace.h>
7227#include <sys/user.h>
7228
7229int
7230main ()
7231{
7232
7233 void *p;
7234 long res = ptrace (PTRACE_GETREGS, 0, p, p);
7235
7236 ;
7237 return 0;
7238}
7239_ACEOF
7240if ac_fn_c_try_compile "$LINENO"; then :
7241
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7243$as_echo "yes" >&6; }
7244
7245$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
7246
7247
7248else
7249
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251$as_echo "no" >&6; }
7252
7253fi
7254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255
7256
7257# Check for CLOCK_MONOTONIC
7258
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
7260$as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
7261
7262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263/* end confdefs.h. */
7264
7265#include <time.h>
7266
7267int
7268main ()
7269{
7270
7271 struct timespec t;
7272 clock_gettime(CLOCK_MONOTONIC, &t);
7273 return 0;
7274
7275 ;
7276 return 0;
7277}
7278_ACEOF
7279if ac_fn_c_try_compile "$LINENO"; then :
7280
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7282$as_echo "yes" >&6; }
7283
7284$as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
7285
7286
7287else
7288
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290$as_echo "no" >&6; }
7291
7292fi
7293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294
7295
7296# Check for ELF32/64_CHDR
7297
7298ac_fn_c_check_type "$LINENO" "Elf32_Chdr" "ac_cv_type_Elf32_Chdr" "#include <elf.h>
7299"
7300if test "x$ac_cv_type_Elf32_Chdr" = xyes; then :
7301
7302cat >>confdefs.h <<_ACEOF
7303#define HAVE_ELF32_CHDR 1
7304_ACEOF
7305
7306
7307fi
7308ac_fn_c_check_type "$LINENO" "Elf64_Chdr" "ac_cv_type_Elf64_Chdr" "#include <elf.h>
7309"
7310if test "x$ac_cv_type_Elf64_Chdr" = xyes; then :
7311
7312cat >>confdefs.h <<_ACEOF
7313#define HAVE_ELF64_CHDR 1
7314_ACEOF
7315
7316
7317fi
7318
7319
7320
7321# Check for PTHREAD_RWLOCK_T
7322
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
7324$as_echo_n "checking for pthread_rwlock_t... " >&6; }
7325
7326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327/* end confdefs.h. */
7328
7329#define _GNU_SOURCE
7330#include <pthread.h>
7331
7332int
7333main ()
7334{
7335
7336 pthread_rwlock_t rwl;
7337
7338 ;
7339 return 0;
7340}
7341_ACEOF
7342if ac_fn_c_try_compile "$LINENO"; then :
7343
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7345$as_echo "yes" >&6; }
7346
7347$as_echo "#define HAVE_PTHREAD_RWLOCK_T 1" >>confdefs.h
7348
7349
7350else
7351
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353$as_echo "no" >&6; }
7354
7355fi
7356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357
7358
7359# Check for PTHREAD_MUTEX_ADAPTIVE_NP
7360
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
7362$as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
7363
7364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h. */
7366
7367#define _GNU_SOURCE
7368#include <pthread.h>
7369
7370int
7371main ()
7372{
7373
7374 return (PTHREAD_MUTEX_ADAPTIVE_NP);
7375
7376 ;
7377 return 0;
7378}
7379_ACEOF
7380if ac_fn_c_try_compile "$LINENO"; then :
7381
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7383$as_echo "yes" >&6; }
7384
7385$as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
7386
7387
7388else
7389
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391$as_echo "no" >&6; }
7392
7393fi
7394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395
7396
7397# Check for PTHREAD_MUTEX_ERRORCHECK_NP
7398
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
7400$as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
7401
7402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403/* end confdefs.h. */
7404
7405#define _GNU_SOURCE
7406#include <pthread.h>
7407
7408int
7409main ()
7410{
7411
7412 return (PTHREAD_MUTEX_ERRORCHECK_NP);
7413
7414 ;
7415 return 0;
7416}
7417_ACEOF
7418if ac_fn_c_try_compile "$LINENO"; then :
7419
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7421$as_echo "yes" >&6; }
7422
7423$as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
7424
7425
7426else
7427
7428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429$as_echo "no" >&6; }
7430
7431fi
7432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433
7434
7435# Check for PTHREAD_MUTEX_RECURSIVE_NP
7436
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
7438$as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
7439
7440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h. */
7442
7443#define _GNU_SOURCE
7444#include <pthread.h>
7445
7446int
7447main ()
7448{
7449
7450 return (PTHREAD_MUTEX_RECURSIVE_NP);
7451
7452 ;
7453 return 0;
7454}
7455_ACEOF
7456if ac_fn_c_try_compile "$LINENO"; then :
7457
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7459$as_echo "yes" >&6; }
7460
7461$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
7462
7463
7464else
7465
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
7468
7469fi
7470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471
7472
7473# Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
7474
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
7476$as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
7477
7478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479/* end confdefs.h. */
7480
7481#define _GNU_SOURCE
7482#include <pthread.h>
7483
7484int
7485main ()
7486{
7487
7488 pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
7489 return 0;
7490
7491 ;
7492 return 0;
7493}
7494_ACEOF
7495if ac_fn_c_try_compile "$LINENO"; then :
7496
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7498$as_echo "yes" >&6; }
7499
7500$as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
7501
7502
7503else
7504
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506$as_echo "no" >&6; }
7507
7508fi
7509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510
7511
7512# Check whether pthread_mutex_t has a member called __m_kind.
7513
7514ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__m_kind" "ac_cv_member_pthread_mutex_t___m_kind" "#include <pthread.h>
7515"
7516if test "x$ac_cv_member_pthread_mutex_t___m_kind" = xyes; then :
7517
7518$as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
7519
7520
7521fi
7522
7523
7524
7525# Check whether pthread_mutex_t has a member called __data.__kind.
7526
7527ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__data.__kind" "ac_cv_member_pthread_mutex_t___data___kind" "#include <pthread.h>
7528"
7529if test "x$ac_cv_member_pthread_mutex_t___data___kind" = xyes; then :
7530
7531$as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
7532
7533
7534fi
7535
7536
7537# Convenience function. Set flags based on the existing HWCAP entries.
7538# The AT_HWCAP entries are generated by glibc, and are based on
7539# functions supported by the hardware/system/libc.
7540# Subsequent support for whether the capability will actually be utilized
7541# will also be checked against the compiler capabilities.
7542# called as
7543# AC_HWCAP_CONTAINS_FLAG[hwcap_string_to_match],[VARIABLE_TO_SET]
7544
7545
7546# gather hardware capabilities. (hardware/kernel/libc)
7547
7548 AUXV_CHECK_FOR=altivec
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7550$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7551 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7552 then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7554$as_echo "yes" >&6; }
7555 HWCAP_HAS_ALTIVEC=yes
7556
7557 else
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559$as_echo "no" >&6; }
7560
7561 fi
7562
7563
7564 AUXV_CHECK_FOR=vsx
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7566$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7567 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7568 then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7570$as_echo "yes" >&6; }
7571 HWCAP_HAS_VSX=yes
7572
7573 else
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575$as_echo "no" >&6; }
7576
7577 fi
7578
7579
7580 AUXV_CHECK_FOR=dfp
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7582$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7583 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7584 then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7586$as_echo "yes" >&6; }
7587 HWCAP_HAS_DFP=yes
7588
7589 else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591$as_echo "no" >&6; }
7592
7593 fi
7594
7595
7596 AUXV_CHECK_FOR=arch_2_05
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7598$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7599 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7600 then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7602$as_echo "yes" >&6; }
7603 HWCAP_HAS_ISA_2_05=yes
7604
7605 else
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607$as_echo "no" >&6; }
7608
7609 fi
7610
7611
7612 AUXV_CHECK_FOR=arch_2_06
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7614$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7615 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7616 then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7618$as_echo "yes" >&6; }
7619 HWCAP_HAS_ISA_2_06=yes
7620
7621 else
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623$as_echo "no" >&6; }
7624
7625 fi
7626
7627
7628 AUXV_CHECK_FOR=arch_2_07
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7630$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7631 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7632 then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7634$as_echo "yes" >&6; }
7635 HWCAP_HAS_ISA_2_07=yes
7636
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639$as_echo "no" >&6; }
7640
7641 fi
7642
7643
7644 AUXV_CHECK_FOR=arch_3_00
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7646$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7647 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7648 then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7650$as_echo "yes" >&6; }
7651 HWCAP_HAS_ISA_3_00=yes
7652
7653 else
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655$as_echo "no" >&6; }
7656
7657 fi
7658
7659
7660 AUXV_CHECK_FOR=htm
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5
7662$as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; }
7663 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR}
7664 then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7666$as_echo "yes" >&6; }
7667 HWCAP_HAS_HTM=yes
7668
7669 else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671$as_echo "no" >&6; }
7672
7673 fi
7674
7675
7676# ISA Levels
7677 if test x$HWCAP_HAS_ISA_2_05 = xyes; then
7678 HAS_ISA_2_05_TRUE=
7679 HAS_ISA_2_05_FALSE='#'
7680else
7681 HAS_ISA_2_05_TRUE='#'
7682 HAS_ISA_2_05_FALSE=
7683fi
7684
7685 if test x$HWCAP_HAS_ISA_2_06 = xyes; then
7686 HAS_ISA_2_06_TRUE=
7687 HAS_ISA_2_06_FALSE='#'
7688else
7689 HAS_ISA_2_06_TRUE='#'
7690 HAS_ISA_2_06_FALSE=
7691fi
7692
7693# compiler support for isa 2.07 level instructions
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that assembler knows ISA 2.07 instructions " >&5
7695$as_echo_n "checking that assembler knows ISA 2.07 instructions ... " >&6; }
7696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697/* end confdefs.h. */
7698
7699
7700int
7701main ()
7702{
7703
7704 __asm__ __volatile__("mtvsrd 1,2 ");
7705
7706 ;
7707 return 0;
7708}
7709_ACEOF
7710if ac_fn_c_try_compile "$LINENO"; then :
7711
7712ac_asm_have_isa_2_07=yes
7713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7714$as_echo "yes" >&6; }
7715
7716else
7717
7718ac_asm_have_isa_2_07=no
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720$as_echo "no" >&6; }
7721
7722fi
7723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 if test x$ac_asm_have_isa_2_07 = xyes \
7725 -a x$HWCAP_HAS_ISA_2_07 = xyes; then
7726 HAS_ISA_2_07_TRUE=
7727 HAS_ISA_2_07_FALSE='#'
7728else
7729 HAS_ISA_2_07_TRUE='#'
7730 HAS_ISA_2_07_FALSE=
7731fi
7732
7733
7734# altivec (vsx) support.
7735# does this compiler support -maltivec and does it have the include file
7736# <altivec.h> ?
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec support in the compiler " >&5
7738$as_echo_n "checking for Altivec support in the compiler ... " >&6; }
7739safe_CFLAGS=$CFLAGS
7740CFLAGS="-maltivec -Werror"
7741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742/* end confdefs.h. */
7743
7744#include <altivec.h>
7745
7746int
7747main ()
7748{
7749
7750 vector unsigned int v;
7751
7752 ;
7753 return 0;
7754}
7755_ACEOF
7756if ac_fn_c_try_compile "$LINENO"; then :
7757
7758ac_have_altivec=yes
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7760$as_echo "yes" >&6; }
7761
7762else
7763
7764ac_have_altivec=no
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766$as_echo "no" >&6; }
7767
7768fi
7769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770CFLAGS=$safe_CFLAGS
7771 if test x$ac_have_altivec = xyes \
7772 -a x$HWCAP_HAS_ALTIVEC = xyes; then
7773 HAS_ALTIVEC_TRUE=
7774 HAS_ALTIVEC_FALSE='#'
7775else
7776 HAS_ALTIVEC_TRUE='#'
7777 HAS_ALTIVEC_FALSE=
7778fi
7779
7780
7781# Check that both: the compiler supports -mvsx and that the assembler
7782# understands VSX instructions. If either of those doesn't work,
7783# conclude that we can't do VSX.
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VSX compiler flag support" >&5
7785$as_echo_n "checking for VSX compiler flag support... " >&6; }
7786safe_CFLAGS=$CFLAGS
7787CFLAGS="-mvsx -Werror"
7788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789/* end confdefs.h. */
7790
7791
7792int
7793main ()
7794{
7795
7796
7797 ;
7798 return 0;
7799}
7800_ACEOF
7801if ac_fn_c_try_compile "$LINENO"; then :
7802
7803ac_compiler_supports_vsx_flag=yes
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7805$as_echo "yes" >&6; }
7806
7807else
7808
7809ac_compiler_supports_vsx_flag=no
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811$as_echo "no" >&6; }
7812
7813fi
7814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815CFLAGS=$safe_CFLAGS
7816
7817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VSX support in the assembler " >&5
7818$as_echo_n "checking for VSX support in the assembler ... " >&6; }
7819safe_CFLAGS=$CFLAGS
7820CFLAGS="-mvsx -Werror"
7821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822/* end confdefs.h. */
7823
7824#include <altivec.h>
7825
7826int
7827main ()
7828{
7829
7830 vector unsigned int v;
7831 __asm__ __volatile__("xsmaddadp 32, 32, 33" ::: "memory","cc");
7832
7833 ;
7834 return 0;
7835}
7836_ACEOF
7837if ac_fn_c_try_compile "$LINENO"; then :
7838
7839ac_compiler_supports_vsx=yes
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7841$as_echo "yes" >&6; }
7842
7843else
7844
7845ac_compiler_supports_vsx=no
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847$as_echo "no" >&6; }
7848
7849fi
7850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851CFLAGS=$safe_CFLAGS
7852 if test x$ac_compiler_supports_vsx_flag = xyes \
7853 -a x$ac_compiler_supports_vsx = xyes \
7854 -a x$HWCAP_HAS_VSX = xyes ; then
7855 HAS_VSX_TRUE=
7856 HAS_VSX_FALSE='#'
7857else
7858 HAS_VSX_TRUE='#'
7859 HAS_VSX_FALSE=
7860fi
7861
7862
7863# DFP (Decimal Float)
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that assembler knows DFP" >&5
7865$as_echo_n "checking that assembler knows DFP... " >&6; }
7866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h. */
7868
7869
7870int
7871main ()
7872{
7873
7874 #ifdef __s390__
7875 __asm__ __volatile__("adtr 1, 2, 3")
7876 #else
7877 __asm__ __volatile__("dadd 1, 2, 3");
7878 __asm__ __volatile__("dcffix 1, 2");
7879 #endif
7880
7881 ;
7882 return 0;
7883}
7884_ACEOF
7885if ac_fn_c_try_compile "$LINENO"; then :
7886
7887ac_asm_have_dfp=yes
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7889$as_echo "yes" >&6; }
7890
7891else
7892
7893ac_asm_have_dfp=no
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
7896
7897fi
7898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that compiler knows -mhard-dfp switch" >&5
7900$as_echo_n "checking that compiler knows -mhard-dfp switch... " >&6; }
7901safe_CFLAGS=$CFLAGS
7902CFLAGS="-mhard-dfp -Werror"
7903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h. */
7905
7906
7907int
7908main ()
7909{
7910
7911 #ifdef __s390__
7912 __asm__ __volatile__("adtr 1, 2, 3")
7913 #else
7914 __asm__ __volatile__("dadd 1, 2, 3");
7915 __asm__ __volatile__("dcffix 1, 2");
7916 #endif
7917
7918 ;
7919 return 0;
7920}
7921_ACEOF
7922if ac_fn_c_try_compile "$LINENO"; then :
7923
7924ac_compiler_have_dfp=yes
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7926$as_echo "yes" >&6; }
7927
7928else
7929
7930ac_compiler_have_dfp=no
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932$as_echo "no" >&6; }
7933
7934fi
7935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936CFLAGS=$safe_CFLAGS
7937 if test x$ac_asm_have_dfp = xyes \
7938 -a x$ac_compiler_have_dfp = xyes \
7939 -a x$HWCAP_HAS_DFP = xyes ; then
7940 HAS_DFP_TRUE=
7941 HAS_DFP_FALSE='#'
7942else
7943 HAS_DFP_TRUE='#'
7944 HAS_DFP_FALSE=
7945fi
7946
7947
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that compiler knows DFP datatypes" >&5
7949$as_echo_n "checking that compiler knows DFP datatypes... " >&6; }
7950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951/* end confdefs.h. */
7952
7953
7954int
7955main ()
7956{
7957
7958 _Decimal64 x = 0.0DD;
7959
7960 ;
7961 return 0;
7962}
7963_ACEOF
7964if ac_fn_c_try_compile "$LINENO"; then :
7965
7966ac_compiler_have_dfp_type=yes
7967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7968$as_echo "yes" >&6; }
7969
7970else
7971
7972ac_compiler_have_dfp_type=no
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974$as_echo "no" >&6; }
7975
7976fi
7977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 if test x$ac_compiler_have_dfp_type = xyes \
7979 -a x$HWCAP_HAS_DFP = xyes ; then
7980 BUILD_DFP_TESTS_TRUE=
7981 BUILD_DFP_TESTS_FALSE='#'
7982else
7983 BUILD_DFP_TESTS_TRUE='#'
7984 BUILD_DFP_TESTS_FALSE=
7985fi
7986
7987
7988
7989# HTM (Hardware Transactional Memory)
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts the -mhtm flag" >&5
7991$as_echo_n "checking if compiler accepts the -mhtm flag... " >&6; }
7992safe_CFLAGS=$CFLAGS
7993CFLAGS="-mhtm -Werror"
7994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995/* end confdefs.h. */
7996
7997
7998int
7999main ()
8000{
8001
8002 return 0;
8003
8004 ;
8005 return 0;
8006}
8007_ACEOF
8008if ac_fn_c_try_compile "$LINENO"; then :
8009
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8011$as_echo "yes" >&6; }
8012ac_compiler_supports_htm=yes
8013
8014else
8015
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017$as_echo "no" >&6; }
8018ac_compiler_supports_htm=no
8019
8020fi
8021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022CFLAGS=$safe_CFLAGS
8023
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler can find the htm builtins" >&5
8025$as_echo_n "checking if compiler can find the htm builtins... " >&6; }
8026safe_CFLAGS=$CFLAGS
8027CFLAGS="-mhtm -Werror"
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029/* end confdefs.h. */
8030
8031
8032int
8033main ()
8034{
8035
8036 if (__builtin_tbegin (0))
8037 __builtin_tend (0);
8038
8039 ;
8040 return 0;
8041}
8042_ACEOF
8043if ac_fn_c_try_compile "$LINENO"; then :
8044
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8046$as_echo "yes" >&6; }
8047ac_compiler_sees_htm_builtins=yes
8048
8049else
8050
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052$as_echo "no" >&6; }
8053ac_compiler_sees_htm_builtins=no
8054
8055fi
8056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057CFLAGS=$safe_CFLAGS
8058
8059 if test x$ac_compiler_supports_htm = xyes \
8060 -a x$ac_compiler_sees_htm_builtins = xyes \
8061 -a x$HWCAP_HAS_HTM = xyes ; then
8062 SUPPORTS_HTM_TRUE=
8063 SUPPORTS_HTM_FALSE='#'
8064else
8065 SUPPORTS_HTM_TRUE='#'
8066 SUPPORTS_HTM_FALSE=
8067fi
8068
8069
8070# isa 3.0 checking
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that assembler knows ISA 3.00 " >&5
8072$as_echo_n "checking that assembler knows ISA 3.00 ... " >&6; }
8073
8074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075/* end confdefs.h. */
8076
8077
8078int
8079main ()
8080{
8081
8082 __asm__ __volatile__("cnttzw 1,2 ");
8083
8084 ;
8085 return 0;
8086}
8087_ACEOF
8088if ac_fn_c_try_compile "$LINENO"; then :
8089
8090ac_asm_have_isa_3_00=yes
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8092$as_echo "yes" >&6; }
8093
8094else
8095
8096ac_asm_have_isa_3_00=no
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098$as_echo "no" >&6; }
8099
8100fi
8101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102
8103 if test x$ac_asm_have_isa_3_00 = xyes \
Elliott Hughesed398002017-06-21 14:41:24 -07008104 -a x$HWCAP_HAS_ISA_3_00 = xyes; then
Elliott Hughesa0664b92017-04-18 17:46:52 -07008105 HAS_ISA_3_00_TRUE=
8106 HAS_ISA_3_00_FALSE='#'
8107else
8108 HAS_ISA_3_00_TRUE='#'
8109 HAS_ISA_3_00_FALSE=
8110fi
8111
8112
8113# Check for pthread_create@GLIBC2.0
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create@GLIBC2.0()" >&5
8115$as_echo_n "checking for pthread_create@GLIBC2.0()... " >&6; }
8116
8117safe_CFLAGS=$CFLAGS
8118CFLAGS="-lpthread -Werror"
8119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120/* end confdefs.h. */
8121
8122extern int pthread_create_glibc_2_0(void*, const void*,
8123 void *(*)(void*), void*);
8124__asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
8125
8126int
8127main ()
8128{
8129
8130#ifdef __powerpc__
8131/*
8132 * Apparently on PowerPC linking this program succeeds and generates an
8133 * executable with the undefined symbol pthread_create@GLIBC_2.0.
8134 */
8135#error This test does not work properly on PowerPC.
8136#else
8137 pthread_create_glibc_2_0(0, 0, 0, 0);
8138#endif
8139 return 0;
8140
8141 ;
8142 return 0;
8143}
8144_ACEOF
8145if ac_fn_c_try_link "$LINENO"; then :
8146
8147ac_have_pthread_create_glibc_2_0=yes
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8149$as_echo "yes" >&6; }
8150
8151$as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
8152
8153
8154else
8155
8156ac_have_pthread_create_glibc_2_0=no
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158$as_echo "no" >&6; }
8159
8160fi
8161rm -f core conftest.err conftest.$ac_objext \
8162 conftest$ac_exeext conftest.$ac_ext
8163CFLAGS=$safe_CFLAGS
8164
8165 if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
8166 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
8167 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
8168else
8169 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
8170 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
8171fi
8172
8173
8174
8175# Check for dlinfo RTLD_DI_TLS_MODID
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlinfo RTLD_DI_TLS_MODID" >&5
8177$as_echo_n "checking for dlinfo RTLD_DI_TLS_MODID... " >&6; }
8178
8179safe_LIBS="$LIBS"
8180LIBS="-ldl"
8181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182/* end confdefs.h. */
8183
8184#ifndef _GNU_SOURCE
8185#define _GNU_SOURCE
8186#endif
8187#include <link.h>
8188#include <dlfcn.h>
8189
8190int
8191main ()
8192{
8193
8194 size_t sizes[10000];
8195 size_t modid_offset;
8196 (void) dlinfo ((void*)sizes, RTLD_DI_TLS_MODID, &modid_offset);
8197 return 0;
8198
8199 ;
8200 return 0;
8201}
8202_ACEOF
8203if ac_fn_c_try_link "$LINENO"; then :
8204
8205ac_have_dlinfo_rtld_di_tls_modid=yes
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8207$as_echo "yes" >&6; }
8208
8209$as_echo "#define HAVE_DLINFO_RTLD_DI_TLS_MODID 1" >>confdefs.h
8210
8211
8212else
8213
8214ac_have_dlinfo_rtld_di_tls_modid=no
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216$as_echo "no" >&6; }
8217
8218fi
8219rm -f core conftest.err conftest.$ac_objext \
8220 conftest$ac_exeext conftest.$ac_ext
8221LIBS=$safe_LIBS
8222
8223 if test x$ac_have_dlinfo_rtld_di_tls_modid = xyes; then
8224 HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE=
8225 HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE='#'
8226else
8227 HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE='#'
8228 HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE=
8229fi
8230
8231
8232
8233# Check for eventfd_t, eventfd() and eventfd_read()
8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
8235$as_echo_n "checking for eventfd()... " >&6; }
8236
8237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h. */
8239
8240#include <sys/eventfd.h>
8241
8242int
8243main ()
8244{
8245
8246 eventfd_t ev;
8247 int fd;
8248
8249 fd = eventfd(5, 0);
8250 eventfd_read(fd, &ev);
8251 return 0;
8252
8253 ;
8254 return 0;
8255}
8256_ACEOF
8257if ac_fn_c_try_link "$LINENO"; then :
8258
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8260$as_echo "yes" >&6; }
8261
8262$as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
8263
8264
8265$as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h
8266
8267
8268else
8269
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271$as_echo "no" >&6; }
8272
8273fi
8274rm -f core conftest.err conftest.$ac_objext \
8275 conftest$ac_exeext conftest.$ac_ext
8276
8277# Check whether compiler can process #include <thread> without errors
8278# clang 3.3 cannot process <thread> from e.g.
8279# gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
8280
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that C++ compiler can include <thread> header file" >&5
8282$as_echo_n "checking that C++ compiler can include <thread> header file... " >&6; }
8283ac_ext=cpp
8284ac_cpp='$CXXCPP $CPPFLAGS'
8285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8288
8289safe_CXXFLAGS=$CXXFLAGS
8290CXXFLAGS=-std=c++0x
8291
8292
8293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294/* end confdefs.h. */
8295
8296#include <thread>
8297
8298_ACEOF
8299if ac_fn_cxx_try_compile "$LINENO"; then :
8300
8301ac_cxx_can_include_thread_header=yes
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8303$as_echo "yes" >&6; }
8304
8305else
8306
8307ac_cxx_can_include_thread_header=no
8308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309$as_echo "no" >&6; }
8310
8311fi
8312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8313CXXFLAGS=$safe_CXXFLAGS
8314ac_ext=c
8315ac_cpp='$CPP $CPPFLAGS'
8316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8318ac_compiler_gnu=$ac_cv_c_compiler_gnu
8319
8320
8321 if test x$ac_cxx_can_include_thread_header = xyes; then
8322 CXX_CAN_INCLUDE_THREAD_HEADER_TRUE=
8323 CXX_CAN_INCLUDE_THREAD_HEADER_FALSE='#'
8324else
8325 CXX_CAN_INCLUDE_THREAD_HEADER_TRUE='#'
8326 CXX_CAN_INCLUDE_THREAD_HEADER_FALSE=
8327fi
8328
8329
8330
8331# On aarch64 before glibc 2.20 we would get the kernel user_pt_regs instead
8332# of the user_regs_struct from sys/user.h. They are structurally the same
8333# but we get either one or the other.
8334
8335ac_fn_c_check_type "$LINENO" "struct user_regs_struct" "ac_cv_type_struct_user_regs_struct" "#include <sys/ptrace.h>
8336 #include <sys/time.h>
8337 #include <sys/user.h>
8338"
8339if test "x$ac_cv_type_struct_user_regs_struct" = xyes; then :
8340 sys_user_has_user_regs=yes
8341else
8342 sys_user_has_user_regs=no
8343fi
8344
8345if test "$sys_user_has_user_regs" = "yes"; then
8346
8347$as_echo "#define HAVE_SYS_USER_REGS 1" >>confdefs.h
8348
8349fi
8350
8351
8352#----------------------------------------------------------------------------
8353# Checking for supported compiler flags.
8354#----------------------------------------------------------------------------
8355
8356# does this compiler support -m32 ?
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
8358$as_echo_n "checking if gcc accepts -m32... " >&6; }
8359
8360safe_CFLAGS=$CFLAGS
8361CFLAGS="-m32 -Werror"
8362
8363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364/* end confdefs.h. */
8365
8366int
8367main ()
8368{
8369
8370 return 0;
8371
8372 ;
8373 return 0;
8374}
8375_ACEOF
8376if ac_fn_c_try_compile "$LINENO"; then :
8377
8378FLAG_M32="-m32"
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8380$as_echo "yes" >&6; }
8381
8382else
8383
8384FLAG_M32=""
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386$as_echo "no" >&6; }
8387
8388fi
8389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390CFLAGS=$safe_CFLAGS
8391
8392
8393
8394
8395# does this compiler support -m64 ?
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
8397$as_echo_n "checking if gcc accepts -m64... " >&6; }
8398
8399safe_CFLAGS=$CFLAGS
8400CFLAGS="-m64 -Werror"
8401
8402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403/* end confdefs.h. */
8404
8405int
8406main ()
8407{
8408
8409 return 0;
8410
8411 ;
8412 return 0;
8413}
8414_ACEOF
8415if ac_fn_c_try_compile "$LINENO"; then :
8416
8417FLAG_M64="-m64"
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8419$as_echo "yes" >&6; }
8420
8421else
8422
8423FLAG_M64=""
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425$as_echo "no" >&6; }
8426
8427fi
8428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429CFLAGS=$safe_CFLAGS
8430
8431
8432
8433
8434# does this compiler support -march=mips32 (mips32 default) ?
8435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=mips32" >&5
8436$as_echo_n "checking if gcc accepts -march=mips32... " >&6; }
8437
8438safe_CFLAGS=$CFLAGS
8439CFLAGS="$CFLAGS -march=mips32 -Werror"
8440
8441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442/* end confdefs.h. */
8443
8444int
8445main ()
8446{
8447
8448 return 0;
8449
8450 ;
8451 return 0;
8452}
8453_ACEOF
8454if ac_fn_c_try_compile "$LINENO"; then :
8455
8456FLAG_MIPS32="-march=mips32"
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8458$as_echo "yes" >&6; }
8459
8460else
8461
8462FLAG_MIPS32=""
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464$as_echo "no" >&6; }
8465
8466fi
8467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468CFLAGS=$safe_CFLAGS
8469
8470
8471
8472
8473# does this compiler support -march=mips64 (mips64 default) ?
8474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=mips64" >&5
8475$as_echo_n "checking if gcc accepts -march=mips64... " >&6; }
8476
8477safe_CFLAGS=$CFLAGS
8478CFLAGS="$CFLAGS -march=mips64 -Werror"
8479
8480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481/* end confdefs.h. */
8482
8483int
8484main ()
8485{
8486
8487 return 0;
8488
8489 ;
8490 return 0;
8491}
8492_ACEOF
8493if ac_fn_c_try_compile "$LINENO"; then :
8494
8495FLAG_MIPS64="-march=mips64"
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8497$as_echo "yes" >&6; }
8498
8499else
8500
8501FLAG_MIPS64=""
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503$as_echo "no" >&6; }
8504
8505fi
8506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507CFLAGS=$safe_CFLAGS
8508
8509
8510
8511
8512# does this compiler support -march=octeon (Cavium OCTEON I Specific) ?
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=octeon" >&5
8514$as_echo_n "checking if gcc accepts -march=octeon... " >&6; }
8515
8516safe_CFLAGS=$CFLAGS
8517CFLAGS="$CFLAGS -march=octeon -Werror"
8518
8519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520/* end confdefs.h. */
8521
8522int
8523main ()
8524{
8525
8526 return 0;
8527
8528 ;
8529 return 0;
8530}
8531_ACEOF
8532if ac_fn_c_try_compile "$LINENO"; then :
8533
8534FLAG_OCTEON="-march=octeon"
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8536$as_echo "yes" >&6; }
8537
8538else
8539
8540FLAG_OCTEON=""
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542$as_echo "no" >&6; }
8543
8544fi
8545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546CFLAGS=$safe_CFLAGS
8547
8548
8549
8550
8551# does this compiler support -march=octeon2 (Cavium OCTEON II Specific) ?
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=octeon2" >&5
8553$as_echo_n "checking if gcc accepts -march=octeon2... " >&6; }
8554
8555safe_CFLAGS=$CFLAGS
8556CFLAGS="$CFLAGS -march=octeon2 -Werror"
8557
8558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h. */
8560
8561int
8562main ()
8563{
8564
8565 return 0;
8566
8567 ;
8568 return 0;
8569}
8570_ACEOF
8571if ac_fn_c_try_compile "$LINENO"; then :
8572
8573FLAG_OCTEON2="-march=octeon2"
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8575$as_echo "yes" >&6; }
8576
8577else
8578
8579FLAG_OCTEON2=""
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581$as_echo "no" >&6; }
8582
8583fi
8584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585CFLAGS=$safe_CFLAGS
8586
8587
8588
8589
8590# does this compiler support -mmmx ?
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
8592$as_echo_n "checking if gcc accepts -mmmx... " >&6; }
8593
8594safe_CFLAGS=$CFLAGS
8595CFLAGS="-mmmx -Werror"
8596
8597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598/* end confdefs.h. */
8599
8600int
8601main ()
8602{
8603
8604 return 0;
8605
8606 ;
8607 return 0;
8608}
8609_ACEOF
8610if ac_fn_c_try_compile "$LINENO"; then :
8611
8612FLAG_MMMX="-mmmx"
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8614$as_echo "yes" >&6; }
8615
8616else
8617
8618FLAG_MMMX=""
8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620$as_echo "no" >&6; }
8621
8622fi
8623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624CFLAGS=$safe_CFLAGS
8625
8626
8627
8628
8629# does this compiler support -msse ?
8630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
8631$as_echo_n "checking if gcc accepts -msse... " >&6; }
8632
8633safe_CFLAGS=$CFLAGS
8634CFLAGS="-msse -Werror"
8635
8636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637/* end confdefs.h. */
8638
8639int
8640main ()
8641{
8642
8643 return 0;
8644
8645 ;
8646 return 0;
8647}
8648_ACEOF
8649if ac_fn_c_try_compile "$LINENO"; then :
8650
8651FLAG_MSSE="-msse"
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8653$as_echo "yes" >&6; }
8654
8655else
8656
8657FLAG_MSSE=""
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659$as_echo "no" >&6; }
8660
8661fi
8662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663CFLAGS=$safe_CFLAGS
8664
8665
8666
8667
8668# does this compiler support -mpreferred-stack-boundary=2 when
8669# generating code for a 32-bit target? Note that we only care about
8670# this when generating code for (32-bit) x86, so if the compiler
8671# doesn't recognise -m32 it's no big deal. We'll just get code for
8672# the Memcheck and other helper functions, that is a bit slower than
8673# it could be, on x86; and no difference at all on any other platform.
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary=2 -m32" >&5
8675$as_echo_n "checking if gcc accepts -mpreferred-stack-boundary=2 -m32... " >&6; }
8676
8677safe_CFLAGS=$CFLAGS
8678CFLAGS="-mpreferred-stack-boundary=2 -m32 -Werror"
8679
8680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681/* end confdefs.h. */
8682
8683int
8684main ()
8685{
8686
8687 return 0;
8688
8689 ;
8690 return 0;
8691}
8692_ACEOF
8693if ac_fn_c_try_compile "$LINENO"; then :
8694
8695PREFERRED_STACK_BOUNDARY_2="-mpreferred-stack-boundary=2"
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8697$as_echo "yes" >&6; }
8698
8699else
8700
8701PREFERRED_STACK_BOUNDARY_2=""
8702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703$as_echo "no" >&6; }
8704
8705fi
8706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707CFLAGS=$safe_CFLAGS
8708
8709
8710
8711
8712# does this compiler support -mlong-double-128 ?
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mlong-double-128" >&5
8714$as_echo_n "checking if gcc accepts -mlong-double-128... " >&6; }
8715safe_CFLAGS=$CFLAGS
8716CFLAGS="-mlong-double-128 -Werror"
8717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718/* end confdefs.h. */
8719
8720int
8721main ()
8722{
8723
8724 return 0;
8725
8726 ;
8727 return 0;
8728}
8729_ACEOF
8730if ac_fn_c_try_compile "$LINENO"; then :
8731
8732ac_compiler_supports_mlong_double_128=yes
8733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8734$as_echo "yes" >&6; }
8735
8736else
8737
8738ac_compiler_supports_mlong_double_128=no
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740$as_echo "no" >&6; }
8741
8742fi
8743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744CFLAGS=$safe_CFLAGS
8745 if test x$ac_compiler_supports_mlong_double_128 = xyes; then
8746 HAS_MLONG_DOUBLE_128_TRUE=
8747 HAS_MLONG_DOUBLE_128_FALSE='#'
8748else
8749 HAS_MLONG_DOUBLE_128_TRUE='#'
8750 HAS_MLONG_DOUBLE_128_FALSE=
8751fi
8752
8753FLAG_MLONG_DOUBLE_128="-mlong-double-128"
8754
8755
8756
8757# Convenience function to check whether GCC supports a particular
8758# warning option. Takes two arguments,
8759# first the warning flag name to check (without -W), then the
8760# substitution name to set with -Wno-warning-flag if the flag exists,
8761# or the empty string if the compiler doesn't accept the flag. Note
8762# that checking is done against the warning flag itself, but the
8763# substitution is then done to cancel the warning flag.
8764
8765
8766# Convenience function. Like AC_GCC_WARNING_SUBST_NO, except it substitutes
8767# -W$1 (instead of -Wno-$1).
8768
8769
8770
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wmemset-transposed-args" >&5
8772$as_echo_n "checking if gcc accepts -Wmemset-transposed-args... " >&6; }
8773 safe_CFLAGS=$CFLAGS
8774 CFLAGS="-Wmemset-transposed-args -Werror"
8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776/* end confdefs.h. */
8777
8778int
8779main ()
8780{
8781;
8782 ;
8783 return 0;
8784}
8785_ACEOF
8786if ac_fn_c_try_compile "$LINENO"; then :
8787
8788 FLAG_W_NO_MEMSET_TRANSPOSED_ARGS=-Wno-memset-transposed-args
8789
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8791$as_echo "yes" >&6; }
8792else
8793
8794
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796$as_echo "no" >&6; }
8797fi
8798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 CFLAGS=$safe_CFLAGS
8800
8801
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wnonnull" >&5
8803$as_echo_n "checking if gcc accepts -Wnonnull... " >&6; }
8804 safe_CFLAGS=$CFLAGS
8805 CFLAGS="-Wnonnull -Werror"
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h. */
8808
8809int
8810main ()
8811{
8812;
8813 ;
8814 return 0;
8815}
8816_ACEOF
8817if ac_fn_c_try_compile "$LINENO"; then :
8818
8819 FLAG_W_NO_NONNULL=-Wno-nonnull
8820
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8822$as_echo "yes" >&6; }
8823else
8824
8825
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827$as_echo "no" >&6; }
8828fi
8829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830 CFLAGS=$safe_CFLAGS
8831
8832
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Woverflow" >&5
8834$as_echo_n "checking if gcc accepts -Woverflow... " >&6; }
8835 safe_CFLAGS=$CFLAGS
8836 CFLAGS="-Woverflow -Werror"
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838/* end confdefs.h. */
8839
8840int
8841main ()
8842{
8843;
8844 ;
8845 return 0;
8846}
8847_ACEOF
8848if ac_fn_c_try_compile "$LINENO"; then :
8849
8850 FLAG_W_NO_OVERFLOW=-Wno-overflow
8851
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8853$as_echo "yes" >&6; }
8854else
8855
8856
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858$as_echo "no" >&6; }
8859fi
8860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 CFLAGS=$safe_CFLAGS
8862
8863
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wpointer-sign" >&5
8865$as_echo_n "checking if gcc accepts -Wpointer-sign... " >&6; }
8866 safe_CFLAGS=$CFLAGS
8867 CFLAGS="-Wpointer-sign -Werror"
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869/* end confdefs.h. */
8870
8871int
8872main ()
8873{
8874;
8875 ;
8876 return 0;
8877}
8878_ACEOF
8879if ac_fn_c_try_compile "$LINENO"; then :
8880
8881 FLAG_W_NO_POINTER_SIGN=-Wno-pointer-sign
8882
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8884$as_echo "yes" >&6; }
8885else
8886
8887
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889$as_echo "no" >&6; }
8890fi
8891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892 CFLAGS=$safe_CFLAGS
8893
8894
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wuninitialized" >&5
8896$as_echo_n "checking if gcc accepts -Wuninitialized... " >&6; }
8897 safe_CFLAGS=$CFLAGS
8898 CFLAGS="-Wuninitialized -Werror"
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900/* end confdefs.h. */
8901
8902int
8903main ()
8904{
8905;
8906 ;
8907 return 0;
8908}
8909_ACEOF
8910if ac_fn_c_try_compile "$LINENO"; then :
8911
8912 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
8913
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8915$as_echo "yes" >&6; }
8916else
8917
8918
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920$as_echo "no" >&6; }
8921fi
8922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8923 CFLAGS=$safe_CFLAGS
8924
8925
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wunused-function" >&5
8927$as_echo_n "checking if gcc accepts -Wunused-function... " >&6; }
8928 safe_CFLAGS=$CFLAGS
8929 CFLAGS="-Wunused-function -Werror"
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931/* end confdefs.h. */
8932
8933int
8934main ()
8935{
8936;
8937 ;
8938 return 0;
8939}
8940_ACEOF
8941if ac_fn_c_try_compile "$LINENO"; then :
8942
8943 FLAG_W_NO_UNUSED_FUNCTION=-Wno-unused-function
8944
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8946$as_echo "yes" >&6; }
8947else
8948
8949
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951$as_echo "no" >&6; }
8952fi
8953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954 CFLAGS=$safe_CFLAGS
8955
8956
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wstatic-local-in-inline" >&5
8958$as_echo_n "checking if gcc accepts -Wstatic-local-in-inline... " >&6; }
8959 safe_CFLAGS=$CFLAGS
8960 CFLAGS="-Wstatic-local-in-inline -Werror"
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962/* end confdefs.h. */
8963
8964int
8965main ()
8966{
8967;
8968 ;
8969 return 0;
8970}
8971_ACEOF
8972if ac_fn_c_try_compile "$LINENO"; then :
8973
8974 FLAG_W_NO_STATIC_LOCAL_IN_INLINE=-Wno-static-local-in-inline
8975
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8977$as_echo "yes" >&6; }
8978else
8979
8980
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982$as_echo "no" >&6; }
8983fi
8984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 CFLAGS=$safe_CFLAGS
8986
8987
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wmismatched-new-delete" >&5
8989$as_echo_n "checking if gcc accepts -Wmismatched-new-delete... " >&6; }
8990 safe_CFLAGS=$CFLAGS
8991 CFLAGS="-Wmismatched-new-delete -Werror"
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993/* end confdefs.h. */
8994
8995int
8996main ()
8997{
8998;
8999 ;
9000 return 0;
9001}
9002_ACEOF
9003if ac_fn_c_try_compile "$LINENO"; then :
9004
9005 FLAG_W_NO_MISMATCHED_NEW_DELETE=-Wno-mismatched-new-delete
9006
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9008$as_echo "yes" >&6; }
9009else
9010
9011
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013$as_echo "no" >&6; }
9014fi
9015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016 CFLAGS=$safe_CFLAGS
9017
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Winfinite-recursion" >&5
9020$as_echo_n "checking if gcc accepts -Winfinite-recursion... " >&6; }
9021 safe_CFLAGS=$CFLAGS
9022 CFLAGS="-Winfinite-recursion -Werror"
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024/* end confdefs.h. */
9025
9026int
9027main ()
9028{
9029;
9030 ;
9031 return 0;
9032}
9033_ACEOF
9034if ac_fn_c_try_compile "$LINENO"; then :
9035
9036 FLAG_W_NO_INFINITE_RECURSION=-Wno-infinite-recursion
9037
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9039$as_echo "yes" >&6; }
9040else
9041
9042
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044$as_echo "no" >&6; }
9045fi
9046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 CFLAGS=$safe_CFLAGS
9048
9049
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wwrite-strings" >&5
9051$as_echo_n "checking if gcc accepts -Wwrite-strings... " >&6; }
9052 safe_CFLAGS=$CFLAGS
9053 CFLAGS="-Wwrite-strings -Werror"
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055/* end confdefs.h. */
9056
9057int
9058main ()
9059{
9060;
9061 ;
9062 return 0;
9063}
9064_ACEOF
9065if ac_fn_c_try_compile "$LINENO"; then :
9066
9067 FLAG_W_WRITE_STRINGS=-Wwrite-strings
9068
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9070$as_echo "yes" >&6; }
9071else
9072
9073
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075$as_echo "no" >&6; }
9076fi
9077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9078 CFLAGS=$safe_CFLAGS
9079
9080
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wempty-body" >&5
9082$as_echo_n "checking if gcc accepts -Wempty-body... " >&6; }
9083 safe_CFLAGS=$CFLAGS
9084 CFLAGS="-Wempty-body -Werror"
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h. */
9087
9088int
9089main ()
9090{
9091;
9092 ;
9093 return 0;
9094}
9095_ACEOF
9096if ac_fn_c_try_compile "$LINENO"; then :
9097
9098 FLAG_W_EMPTY_BODY=-Wempty-body
9099
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9101$as_echo "yes" >&6; }
9102else
9103
9104
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106$as_echo "no" >&6; }
9107fi
9108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109 CFLAGS=$safe_CFLAGS
9110
9111
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wformat" >&5
9113$as_echo_n "checking if gcc accepts -Wformat... " >&6; }
9114 safe_CFLAGS=$CFLAGS
9115 CFLAGS="-Wformat -Werror"
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117/* end confdefs.h. */
9118
9119int
9120main ()
9121{
9122;
9123 ;
9124 return 0;
9125}
9126_ACEOF
9127if ac_fn_c_try_compile "$LINENO"; then :
9128
9129 FLAG_W_FORMAT=-Wformat
9130
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9132$as_echo "yes" >&6; }
9133else
9134
9135
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137$as_echo "no" >&6; }
9138fi
9139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 CFLAGS=$safe_CFLAGS
9141
9142# Disabled for now until all platforms are clean
9143format_checking_enabled=no
9144#format_checking_enabled=yes
9145if test "$format_checking_enabled" = "yes"; then
9146
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wformat-signedness" >&5
9148$as_echo_n "checking if gcc accepts -Wformat-signedness... " >&6; }
9149 safe_CFLAGS=$CFLAGS
9150 CFLAGS="-Wformat-signedness -Werror"
9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152/* end confdefs.h. */
9153
9154int
9155main ()
9156{
9157;
9158 ;
9159 return 0;
9160}
9161_ACEOF
9162if ac_fn_c_try_compile "$LINENO"; then :
9163
9164 FLAG_W_FORMAT_SIGNEDNESS=-Wformat-signedness
9165
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9167$as_echo "yes" >&6; }
9168else
9169
9170
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172$as_echo "no" >&6; }
9173fi
9174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9175 CFLAGS=$safe_CFLAGS
9176
9177else
9178 dumy_assignment_to_avoid_syntax_errors=1
9179
9180fi
9181
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wcast-qual" >&5
9183$as_echo_n "checking if gcc accepts -Wcast-qual... " >&6; }
9184 safe_CFLAGS=$CFLAGS
9185 CFLAGS="-Wcast-qual -Werror"
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187/* end confdefs.h. */
9188
9189int
9190main ()
9191{
9192;
9193 ;
9194 return 0;
9195}
9196_ACEOF
9197if ac_fn_c_try_compile "$LINENO"; then :
9198
9199 FLAG_W_CAST_QUAL=-Wcast-qual
9200
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9202$as_echo "yes" >&6; }
9203else
9204
9205
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207$as_echo "no" >&6; }
9208fi
9209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9210 CFLAGS=$safe_CFLAGS
9211
9212
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wold-style-declaration" >&5
9214$as_echo_n "checking if gcc accepts -Wold-style-declaration... " >&6; }
9215 safe_CFLAGS=$CFLAGS
9216 CFLAGS="-Wold-style-declaration -Werror"
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218/* end confdefs.h. */
9219
9220int
9221main ()
9222{
9223;
9224 ;
9225 return 0;
9226}
9227_ACEOF
9228if ac_fn_c_try_compile "$LINENO"; then :
9229
9230 FLAG_W_OLD_STYLE_DECLARATION=-Wold-style-declaration
9231
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9233$as_echo "yes" >&6; }
9234else
9235
9236
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238$as_echo "no" >&6; }
9239fi
9240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241 CFLAGS=$safe_CFLAGS
9242
9243
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wignored-qualifiers" >&5
9245$as_echo_n "checking if gcc accepts -Wignored-qualifiers... " >&6; }
9246 safe_CFLAGS=$CFLAGS
9247 CFLAGS="-Wignored-qualifiers -Werror"
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h. */
9250
9251int
9252main ()
9253{
9254;
9255 ;
9256 return 0;
9257}
9258_ACEOF
9259if ac_fn_c_try_compile "$LINENO"; then :
9260
9261 FLAG_W_IGNORED_QUALIFIERS=-Wignored-qualifiers
9262
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9264$as_echo "yes" >&6; }
9265else
9266
9267
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269$as_echo "no" >&6; }
9270fi
9271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272 CFLAGS=$safe_CFLAGS
9273
9274
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wmissing-parameter-type" >&5
9276$as_echo_n "checking if gcc accepts -Wmissing-parameter-type... " >&6; }
9277 safe_CFLAGS=$CFLAGS
9278 CFLAGS="-Wmissing-parameter-type -Werror"
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280/* end confdefs.h. */
9281
9282int
9283main ()
9284{
9285;
9286 ;
9287 return 0;
9288}
9289_ACEOF
9290if ac_fn_c_try_compile "$LINENO"; then :
9291
9292 FLAG_W_MISSING_PARAMETER_TYPE=-Wmissing-parameter-type
9293
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9295$as_echo "yes" >&6; }
9296else
9297
9298
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300$as_echo "no" >&6; }
9301fi
9302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9303 CFLAGS=$safe_CFLAGS
9304
9305
9306# Does this compiler support -Wformat-security ?
9307# Special handling is needed, because certain GCC versions require -Wformat
9308# being present if -Wformat-security is given. Otherwise a warning is issued.
9309# However, AC_GCC_WARNING_SUBST will stick in -Werror (see r15323 for rationale).
9310# And with that the warning will be turned into an error with the result
9311# that -Wformat-security is believed to be unsupported when in fact it is.
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wformat-security" >&5
9313$as_echo_n "checking if gcc accepts -Wformat-security... " >&6; }
9314safe_CFLAGS=$CFLAGS
9315CFLAGS="-Wformat -Wformat-security -Werror"
9316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317/* end confdefs.h. */
9318
9319int
9320main ()
9321{
9322;
9323 ;
9324 return 0;
9325}
9326_ACEOF
9327if ac_fn_c_try_compile "$LINENO"; then :
9328
9329FLAG_W_FORMAT_SECURITY=-Wformat-security
9330
9331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9332$as_echo "yes" >&6; }
9333else
9334
9335
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337$as_echo "no" >&6; }
9338fi
9339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340CFLAGS=$safe_CFLAGS
9341
9342# does this compiler support -Wextra or the older -W ?
9343
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
9345$as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; }
9346
9347safe_CFLAGS=$CFLAGS
9348CFLAGS="-Wextra -Werror"
9349
9350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351/* end confdefs.h. */
9352
9353int
9354main ()
9355{
9356
9357 return 0;
9358
9359 ;
9360 return 0;
9361}
9362_ACEOF
9363if ac_fn_c_try_compile "$LINENO"; then :
9364
9365FLAG_W_EXTRA=-Wextra
9366
9367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
9368$as_echo "-Wextra" >&6; }
9369
9370else
9371
9372 CFLAGS="-W -Werror"
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374/* end confdefs.h. */
9375
9376int
9377main ()
9378{
9379
9380 return 0;
9381
9382 ;
9383 return 0;
9384}
9385_ACEOF
9386if ac_fn_c_try_compile "$LINENO"; then :
9387
9388 FLAG_W_EXTRA=-W
9389
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5
9391$as_echo "-W" >&6; }
9392
9393else
9394
9395
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
9397$as_echo "not supported" >&6; }
9398
9399fi
9400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401
9402fi
9403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404CFLAGS=$safe_CFLAGS
9405
9406# On ARM we do not want to pass -Wcast-align as that produces loads
9407# of warnings. GCC is just being conservative. See here:
9408# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65459#c4
9409if test "X$VGCONF_ARCH_PRI" = "Xarm"; then
9410 FLAG_W_CAST_ALIGN=""
9411
9412else
9413 FLAG_W_CAST_ALIGN=-Wcast-align
9414
9415fi
9416
9417# does this compiler support -fno-stack-protector ?
9418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
9419$as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; }
9420
9421safe_CFLAGS=$CFLAGS
9422CFLAGS="-fno-stack-protector -Werror"
9423
9424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425/* end confdefs.h. */
9426
9427int
9428main ()
9429{
9430
9431 return 0;
9432
9433 ;
9434 return 0;
9435}
9436_ACEOF
9437if ac_fn_c_try_compile "$LINENO"; then :
9438
9439no_stack_protector=yes
9440FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
9441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9442$as_echo "yes" >&6; }
9443
9444else
9445
9446no_stack_protector=no
9447FLAG_FNO_STACK_PROTECTOR=""
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449$as_echo "no" >&6; }
9450
9451fi
9452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9453CFLAGS=$safe_CFLAGS
9454
9455
9456
9457# Does GCC support disabling Identical Code Folding?
9458# We want to disabled Identical Code Folding for the
9459# tools preload shared objects to get better backraces.
9460# For GCC 5.1+ -fipa-icf is enabled by default at -O2.
9461# "The optimization reduces code size and may disturb
9462# unwind stacks by replacing a function by equivalent
9463# one with a different name."
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-ipa-icf" >&5
9465$as_echo_n "checking if gcc accepts -fno-ipa-icf... " >&6; }
9466
9467safe_CFLAGS=$CFLAGS
9468CFLAGS="-fno-ipa-icf -Werror"
9469
9470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471/* end confdefs.h. */
9472
9473int
9474main ()
9475{
9476
9477 return 0;
9478
9479 ;
9480 return 0;
9481}
9482_ACEOF
9483if ac_fn_c_try_compile "$LINENO"; then :
9484
9485no_ipa_icf=yes
9486FLAG_FNO_IPA_ICF="-fno-ipa-icf"
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9488$as_echo "yes" >&6; }
9489
9490else
9491
9492no_ipa_icf=no
9493FLAG_FNO_IPA_ICF=""
9494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495$as_echo "no" >&6; }
9496
9497fi
9498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9499CFLAGS=$safe_CFLAGS
9500
9501
9502
9503
9504# Does this compiler support -fsanitize=undefined. This is true for
9505# GCC 4.9 and newer. However, the undefined behaviour sanitiser in GCC 5.1
9506# also checks for alignment violations on memory accesses which the valgrind
9507# code base is sprinkled (if not littered) with. As those alignment issues
9508# don't pose a problem we want to suppress warnings about them.
9509# In GCC 5.1 this can be done by passing -fno-sanitize=alignment. Earlier
9510# GCCs do not support that.
9511#
9512# Only checked for if --enable-ubsan was given.
9513if test "x${vg_cv_ubsan}" = "xyes"; then
9514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fsanitize=undefined -fno-sanitize=alignment" >&5
9515$as_echo_n "checking if gcc accepts -fsanitize=undefined -fno-sanitize=alignment... " >&6; }
9516safe_CFLAGS=$CFLAGS
9517CFLAGS="-fsanitize=undefined -fno-sanitize=alignment -Werror"
9518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519/* end confdefs.h. */
9520
9521int
9522main ()
9523{
9524
9525 return 0;
9526
9527 ;
9528 return 0;
9529}
9530_ACEOF
9531if ac_fn_c_try_compile "$LINENO"; then :
9532
9533FLAG_FSANITIZE="-fsanitize=undefined -fno-sanitize=alignment"
9534LIB_UBSAN="-static-libubsan"
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9536$as_echo "yes" >&6; }
9537
9538else
9539
9540CFLAGS="-fsanitize=undefined -Werror"
9541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h. */
9543
9544int
9545main ()
9546{
9547
9548 return 0;
9549
9550 ;
9551 return 0;
9552}
9553_ACEOF
9554if ac_fn_c_try_compile "$LINENO"; then :
9555
9556FLAG_FSANITIZE="-fsanitize=undefined"
9557LIB_UBSAN="-static-libubsan"
9558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9559$as_echo "yes" >&6; }
9560
9561else
9562
9563FLAG_FSANITIZE=""
9564LIB_UBSAN=""
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566$as_echo "no" >&6; }
9567
9568fi
9569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9570
9571fi
9572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573CFLAGS=$safe_CFLAGS
9574
9575
9576fi
9577# does this compiler support --param inline-unit-growth=... ?
9578
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
9580$as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; }
9581
9582safe_CFLAGS=$CFLAGS
9583CFLAGS="--param inline-unit-growth=900 -Werror"
9584
9585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h. */
9587
9588int
9589main ()
9590{
9591
9592 return 0;
9593
9594 ;
9595 return 0;
9596}
9597_ACEOF
9598if ac_fn_c_try_compile "$LINENO"; then :
9599
9600FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
9601
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9603$as_echo "yes" >&6; }
9604
9605else
9606
9607FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
9608
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610$as_echo "no" >&6; }
9611
9612fi
9613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9614CFLAGS=$safe_CFLAGS
9615
9616
9617# does this compiler support -gdwarf-4 -fdebug-types-section ?
9618
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -gdwarf-4 -fdebug-types-section" >&5
9620$as_echo_n "checking if gcc accepts -gdwarf-4 -fdebug-types-section... " >&6; }
9621
9622safe_CFLAGS=$CFLAGS
9623CFLAGS="-gdwarf-4 -fdebug-types-section -Werror"
9624
9625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626/* end confdefs.h. */
9627
9628int
9629main ()
9630{
9631
9632 return 0;
9633
9634 ;
9635 return 0;
9636}
9637_ACEOF
9638if ac_fn_c_try_compile "$LINENO"; then :
9639
9640ac_have_dwarf4=yes
9641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9642$as_echo "yes" >&6; }
9643
9644else
9645
9646ac_have_dwarf4=no
9647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648$as_echo "no" >&6; }
9649
9650fi
9651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9652 if test x$ac_have_dwarf4 = xyes; then
9653 DWARF4_TRUE=
9654 DWARF4_FALSE='#'
9655else
9656 DWARF4_TRUE='#'
9657 DWARF4_FALSE=
9658fi
9659
9660CFLAGS=$safe_CFLAGS
9661
9662
9663# does this compiler support -g -gz=zlib ?
9664
9665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -g -gz=zlib" >&5
9666$as_echo_n "checking if gcc accepts -g -gz=zlib... " >&6; }
9667
9668safe_CFLAGS=$CFLAGS
9669CFLAGS="-g -gz=zlib"
9670
9671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672/* end confdefs.h. */
9673
9674int
9675main ()
9676{
9677
9678 return 0;
9679
9680 ;
9681 return 0;
9682}
9683_ACEOF
9684if ac_fn_c_try_compile "$LINENO"; then :
9685
9686ac_have_gz_zlib=yes
9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9688$as_echo "yes" >&6; }
9689
9690else
9691
9692ac_have_gz_zlib=no
9693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694$as_echo "no" >&6; }
9695
9696fi
9697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698 if test x$ac_have_gz_zlib = xyes; then
9699 GZ_ZLIB_TRUE=
9700 GZ_ZLIB_FALSE='#'
9701else
9702 GZ_ZLIB_TRUE='#'
9703 GZ_ZLIB_FALSE=
9704fi
9705
9706CFLAGS=$safe_CFLAGS
9707
9708
9709# does this compiler support -g -gz=zlib-gnu ?
9710
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -g -gz=zlib-gnu" >&5
9712$as_echo_n "checking if gcc accepts -g -gz=zlib-gnu... " >&6; }
9713
9714safe_CFLAGS=$CFLAGS
9715CFLAGS="-g -gz=zlib-gnu"
9716
9717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718/* end confdefs.h. */
9719
9720int
9721main ()
9722{
9723
9724 return 0;
9725
9726 ;
9727 return 0;
9728}
9729_ACEOF
9730if ac_fn_c_try_compile "$LINENO"; then :
9731
9732ac_have_gz_zlib_gnu=yes
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9734$as_echo "yes" >&6; }
9735
9736else
9737
9738ac_have_gz_zlib_gnu=no
9739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740$as_echo "no" >&6; }
9741
9742fi
9743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9744 if test x$ac_have_gz_zlib_gnu = xyes; then
9745 GZ_ZLIB_GNU_TRUE=
9746 GZ_ZLIB_GNU_FALSE='#'
9747else
9748 GZ_ZLIB_GNU_TRUE='#'
9749 GZ_ZLIB_GNU_FALSE=
9750fi
9751
9752CFLAGS=$safe_CFLAGS
9753
9754
9755# does this compiler support nested functions ?
9756
9757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts nested functions" >&5
9758$as_echo_n "checking if gcc accepts nested functions... " >&6; }
9759
9760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761/* end confdefs.h. */
9762
9763int
9764main ()
9765{
9766
9767 int foo() { return 1; }
9768 return foo();
9769
9770 ;
9771 return 0;
9772}
9773_ACEOF
9774if ac_fn_c_try_compile "$LINENO"; then :
9775
9776ac_have_nested_functions=yes
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9778$as_echo "yes" >&6; }
9779
9780else
9781
9782ac_have_nested_functions=no
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784$as_echo "no" >&6; }
9785
9786fi
9787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 if test x$ac_have_nested_functions = xyes; then
9789 HAVE_NESTED_FUNCTIONS_TRUE=
9790 HAVE_NESTED_FUNCTIONS_FALSE='#'
9791else
9792 HAVE_NESTED_FUNCTIONS_TRUE='#'
9793 HAVE_NESTED_FUNCTIONS_FALSE=
9794fi
9795
9796
9797
9798# does this compiler support the 'p' constraint in ASM statements ?
9799
9800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts the 'p' constraint in asm statements" >&5
9801$as_echo_n "checking if gcc accepts the 'p' constraint in asm statements... " >&6; }
9802
9803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804/* end confdefs.h. */
9805
9806int
9807main ()
9808{
9809
9810 char *p;
9811 __asm__ __volatile__ ("movdqa (%0),%%xmm6\n" : "=p" (p));
9812
9813 ;
9814 return 0;
9815}
9816_ACEOF
9817if ac_fn_c_try_compile "$LINENO"; then :
9818
9819ac_have_asm_constraint_p=yes
9820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9821$as_echo "yes" >&6; }
9822
9823else
9824
9825ac_have_asm_constraint_p=no
9826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827$as_echo "no" >&6; }
9828
9829fi
9830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831 if test x$ac_have_asm_constraint_p = xyes; then
9832 HAVE_ASM_CONSTRAINT_P_TRUE=
9833 HAVE_ASM_CONSTRAINT_P_FALSE='#'
9834else
9835 HAVE_ASM_CONSTRAINT_P_TRUE='#'
9836 HAVE_ASM_CONSTRAINT_P_FALSE=
9837fi
9838
9839
9840
Elliott Hughesed398002017-06-21 14:41:24 -07009841# Does this compiler support -no-pie?
9842# On Ubuntu 16.10+, gcc produces position independent executables (PIE) by
9843# default. However this gets in the way with some tests, we use -no-pie
9844# for these.
9845
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -no-pie" >&5
9847$as_echo_n "checking if gcc accepts -no-pie... " >&6; }
9848
9849safe_CFLAGS=$CFLAGS
9850CFLAGS="-no-pie"
9851
9852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853/* end confdefs.h. */
9854
9855int
9856main ()
9857{
9858
9859 return 0;
9860
9861 ;
9862 return 0;
9863}
9864_ACEOF
9865if ac_fn_c_try_compile "$LINENO"; then :
9866
9867FLAG_NO_PIE="-no-pie"
9868
9869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9870$as_echo "yes" >&6; }
9871
9872else
9873
9874FLAG_NO_PIE=""
9875
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877$as_echo "no" >&6; }
9878
9879fi
9880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9881CFLAGS=$safe_CFLAGS
9882
9883
Elliott Hughesa0664b92017-04-18 17:46:52 -07009884# We want to use use the -Ttext-segment option to the linker.
9885# GNU (bfd) ld supports this directly. Newer GNU gold linkers
9886# support it as an alias of -Ttext. Sadly GNU (bfd) ld's -Ttext
9887# semantics are NOT what we want (GNU gold -Ttext is fine).
9888#
9889# For GNU (bfd) ld -Ttext-segment chooses the base at which ELF headers
9890# will reside. -Ttext aligns just the .text section start (but not any
9891# other section).
9892#
9893# So test for -Ttext-segment which is supported by all bfd ld versions
9894# and use that if it exists. If it doesn't exist it must be an older
9895# version of gold and we can fall back to using -Ttext which has the
9896# right semantics.
9897
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,-Ttext-segment" >&5
9899$as_echo_n "checking if the linker accepts -Wl,-Ttext-segment... " >&6; }
9900
9901safe_CFLAGS=$CFLAGS
9902CFLAGS="-static -nodefaultlibs -nostartfiles -Wl,-Ttext-segment=$valt_load_address_pri_norml -Werror"
9903
9904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905/* end confdefs.h. */
9906int _start () { return 0; }
9907_ACEOF
9908if ac_fn_c_try_link "$LINENO"; then :
9909
9910 linker_using_t_text="no"
9911 FLAG_T_TEXT="-Ttext-segment"
9912
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9914$as_echo "yes" >&6; }
9915
9916else
9917
9918 linker_using_t_text="yes"
9919 FLAG_T_TEXT="-Ttext"
9920
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9922$as_echo "no" >&6; }
9923
9924fi
9925rm -f core conftest.err conftest.$ac_objext \
9926 conftest$ac_exeext conftest.$ac_ext
9927CFLAGS=$safe_CFLAGS
9928
9929# If the linker only supports -Ttext (not -Ttext-segment) then we will
Elliott Hughesed398002017-06-21 14:41:24 -07009930# have to strip any build-id ELF NOTEs from the statically linked tools.
Elliott Hughesa0664b92017-04-18 17:46:52 -07009931# Otherwise the build-id NOTE might end up at the default load address.
9932# (Pedantically if the linker is gold then -Ttext is fine, but newer
9933# gold versions also support -Ttext-segment. So just assume that unless
9934# we can use -Ttext-segment we need to strip the build-id NOTEs.
9935if test "x${linker_using_t_text}" = "xyes"; then
9936{ $as_echo "$as_me:${as_lineno-$LINENO}: ld -Ttext used, need to strip build-id NOTEs." >&5
9937$as_echo "$as_me: ld -Ttext used, need to strip build-id NOTEs." >&6;}
9938# does the linker support -Wl,--build-id=none ? Note, it's
9939# important that we test indirectly via whichever C compiler
9940# is selected, rather than testing /usr/bin/ld or whatever
9941# directly.
9942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5
9943$as_echo_n "checking if the linker accepts -Wl,--build-id=none... " >&6; }
9944safe_CFLAGS=$CFLAGS
9945CFLAGS="-Wl,--build-id=none -Werror"
9946
9947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948/* end confdefs.h. */
9949
9950int
9951main ()
9952{
9953return 0;
9954 ;
9955 return 0;
9956}
9957_ACEOF
9958if ac_fn_c_try_link "$LINENO"; then :
9959
9960 FLAG_NO_BUILD_ID="-Wl,--build-id=none"
9961
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9963$as_echo "yes" >&6; }
9964
9965else
9966
9967 FLAG_NO_BUILD_ID=""
9968
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970$as_echo "no" >&6; }
9971
9972fi
9973rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975else
9976{ $as_echo "$as_me:${as_lineno-$LINENO}: ld -Ttext-segment used, no need to strip build-id NOTEs." >&5
9977$as_echo "$as_me: ld -Ttext-segment used, no need to strip build-id NOTEs." >&6;}
9978FLAG_NO_BUILD_ID=""
9979
9980fi
9981CFLAGS=$safe_CFLAGS
9982
9983# does the ppc assembler support "mtocrf" et al?
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
9985$as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
9986
9987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988/* end confdefs.h. */
9989
9990int
9991main ()
9992{
9993
9994__asm__ __volatile__("mtocrf 4,0");
9995__asm__ __volatile__("mfocrf 0,4");
9996
9997 ;
9998 return 0;
9999}
10000_ACEOF
10001if ac_fn_c_try_compile "$LINENO"; then :
10002
10003ac_have_as_ppc_mftocrf=yes
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10005$as_echo "yes" >&6; }
10006
10007else
10008
10009ac_have_as_ppc_mftocrf=no
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011$as_echo "no" >&6; }
10012
10013fi
10014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015if test x$ac_have_as_ppc_mftocrf = xyes ; then
10016
10017$as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
10018
10019fi
10020
10021
10022# does the ppc assembler support "lfdp" and other phased out floating point insns?
10023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 asm supports phased out floating point instructions" >&5
10024$as_echo_n "checking if ppc32/64 asm supports phased out floating point instructions... " >&6; }
10025
10026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027/* end confdefs.h. */
10028
10029int
10030main ()
10031{
10032
10033 do { typedef struct {
10034 double hi;
10035 double lo;
10036 } dbl_pair_t;
10037 dbl_pair_t dbl_pair[3];
10038 __asm__ volatile ("lfdp 10, %0"::"m" (dbl_pair[0]));
10039 } while (0)
10040
10041 ;
10042 return 0;
10043}
10044_ACEOF
10045if ac_fn_c_try_compile "$LINENO"; then :
10046
10047ac_have_as_ppc_fpPO=yes
10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10049$as_echo "yes" >&6; }
10050
10051else
10052
10053ac_have_as_ppc_fpPO=no
10054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055$as_echo "no" >&6; }
10056
10057fi
10058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10059if test x$ac_have_as_ppc_fpPO = xyes ; then
10060
10061$as_echo "#define HAVE_AS_PPC_FPPO 1" >>confdefs.h
10062
10063fi
10064
10065
10066# does the amd64 assembler understand "fxsave64" and "fxrstor64"?
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler supports fxsave64/fxrstor64" >&5
10068$as_echo_n "checking if amd64 assembler supports fxsave64/fxrstor64... " >&6; }
10069
10070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071/* end confdefs.h. */
10072
10073int
10074main ()
10075{
10076
10077void* p;
10078asm __volatile__("fxsave64 (%0)" : : "r" (p) : "memory" );
10079asm __volatile__("fxrstor64 (%0)" : : "r" (p) : "memory" );
10080
10081 ;
10082 return 0;
10083}
10084_ACEOF
10085if ac_fn_c_try_compile "$LINENO"; then :
10086
10087ac_have_as_amd64_fxsave64=yes
10088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10089$as_echo "yes" >&6; }
10090
10091else
10092
10093ac_have_as_amd64_fxsave64=no
10094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095$as_echo "no" >&6; }
10096
10097fi
10098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10099if test x$ac_have_as_amd64_fxsave64 = xyes ; then
10100
10101$as_echo "#define HAVE_AS_AMD64_FXSAVE64 1" >>confdefs.h
10102
10103fi
10104
10105# does the x86/amd64 assembler understand SSE3 instructions?
10106# Note, this doesn't generate a C-level symbol. It generates a
10107# automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
10108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
10109$as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; }
10110
10111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112/* end confdefs.h. */
10113
10114int
10115main ()
10116{
10117
10118 do { long long int x;
10119 __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
10120 while (0)
10121
10122 ;
10123 return 0;
10124}
10125_ACEOF
10126if ac_fn_c_try_compile "$LINENO"; then :
10127
10128ac_have_as_sse3=yes
10129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10130$as_echo "yes" >&6; }
10131
10132else
10133
10134ac_have_as_sse3=no
10135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10136$as_echo "no" >&6; }
10137
10138fi
10139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10140
10141 if test x$ac_have_as_sse3 = xyes; then
10142 BUILD_SSE3_TESTS_TRUE=
10143 BUILD_SSE3_TESTS_FALSE='#'
10144else
10145 BUILD_SSE3_TESTS_TRUE='#'
10146 BUILD_SSE3_TESTS_FALSE=
10147fi
10148
10149
10150
10151# Ditto for SSSE3 instructions (note extra S)
10152# Note, this doesn't generate a C-level symbol. It generates a
10153# automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
10154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
10155$as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
10156
10157save_CFLAGS="$CFLAGS"
10158CFLAGS="$CFLAGS -msse -Werror"
10159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160/* end confdefs.h. */
10161
10162int
10163main ()
10164{
10165
10166 do { long long int x;
10167 __asm__ __volatile__(
10168 "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
10169 while (0)
10170
10171 ;
10172 return 0;
10173}
10174_ACEOF
10175if ac_fn_c_try_compile "$LINENO"; then :
10176
10177ac_have_as_ssse3=yes
10178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10179$as_echo "yes" >&6; }
10180
10181else
10182
10183ac_have_as_ssse3=no
10184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185$as_echo "no" >&6; }
10186
10187fi
10188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10189CFLAGS="$save_CFLAGS"
10190
10191 if test x$ac_have_as_ssse3 = xyes; then
10192 BUILD_SSSE3_TESTS_TRUE=
10193 BUILD_SSSE3_TESTS_FALSE='#'
10194else
10195 BUILD_SSSE3_TESTS_TRUE='#'
10196 BUILD_SSSE3_TESTS_FALSE=
10197fi
10198
10199
10200
10201# does the x86/amd64 assembler understand the PCLMULQDQ instruction?
10202# Note, this doesn't generate a C-level symbol. It generates a
10203# automake-level symbol (BUILD_PCLMULQDQ_TESTS), used in test Makefile.am's
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'pclmulqdq'" >&5
10205$as_echo_n "checking if x86/amd64 assembler supports 'pclmulqdq'... " >&6; }
10206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207/* end confdefs.h. */
10208
10209int
10210main ()
10211{
10212
10213 do {
10214 __asm__ __volatile__(
10215 "pclmulqdq \$17,%%xmm6,%%xmm7" : : : "xmm6", "xmm7" ); }
10216 while (0)
10217
10218 ;
10219 return 0;
10220}
10221_ACEOF
10222if ac_fn_c_try_compile "$LINENO"; then :
10223
10224ac_have_as_pclmulqdq=yes
10225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10226$as_echo "yes" >&6; }
10227
10228else
10229
10230ac_have_as_pclmulqdq=no
10231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232$as_echo "no" >&6; }
10233
10234fi
10235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10236
10237 if test x$ac_have_as_pclmulqdq = xyes; then
10238 BUILD_PCLMULQDQ_TESTS_TRUE=
10239 BUILD_PCLMULQDQ_TESTS_FALSE='#'
10240else
10241 BUILD_PCLMULQDQ_TESTS_TRUE='#'
10242 BUILD_PCLMULQDQ_TESTS_FALSE=
10243fi
10244
10245
10246
10247# does the x86/amd64 assembler understand the VPCLMULQDQ instruction?
10248# Note, this doesn't generate a C-level symbol. It generates a
10249# automake-level symbol (BUILD_VPCLMULQDQ_TESTS), used in test Makefile.am's
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'vpclmulqdq'" >&5
10251$as_echo_n "checking if x86/amd64 assembler supports 'vpclmulqdq'... " >&6; }
10252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253/* end confdefs.h. */
10254
10255int
10256main ()
10257{
10258
10259 do {
10260 /*
10261 * Carry-less multiplication of xmm1 with xmm2 and store the result in
10262 * xmm3. The immediate is used to determine which quadwords of xmm1 and
10263 * xmm2 should be used.
10264 */
10265 __asm__ __volatile__(
10266 "vpclmulqdq \$0,%%xmm1,%%xmm2,%%xmm3" : : : );
10267 } while (0)
10268
10269 ;
10270 return 0;
10271}
10272_ACEOF
10273if ac_fn_c_try_compile "$LINENO"; then :
10274
10275ac_have_as_vpclmulqdq=yes
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10277$as_echo "yes" >&6; }
10278
10279else
10280
10281ac_have_as_vpclmulqdq=no
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283$as_echo "no" >&6; }
10284
10285fi
10286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10287
10288 if test x$ac_have_as_vpclmulqdq = xyes; then
10289 BUILD_VPCLMULQDQ_TESTS_TRUE=
10290 BUILD_VPCLMULQDQ_TESTS_FALSE='#'
10291else
10292 BUILD_VPCLMULQDQ_TESTS_TRUE='#'
10293 BUILD_VPCLMULQDQ_TESTS_FALSE=
10294fi
10295
10296
10297
10298# does the x86/amd64 assembler understand FMA4 instructions?
10299# Note, this doesn't generate a C-level symbol. It generates a
10300# automake-level symbol (BUILD_AFM4_TESTS), used in test Makefile.am's
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports FMA4 'vfmaddpd'" >&5
10302$as_echo_n "checking if x86/amd64 assembler supports FMA4 'vfmaddpd'... " >&6; }
10303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304/* end confdefs.h. */
10305
10306int
10307main ()
10308{
10309
10310 do {
10311 __asm__ __volatile__(
10312 "vfmaddpd %%xmm7,%%xmm8,%%xmm6,%%xmm9" : : : );
10313 } while (0)
10314
10315 ;
10316 return 0;
10317}
10318_ACEOF
10319if ac_fn_c_try_compile "$LINENO"; then :
10320
10321ac_have_as_vfmaddpd=yes
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10323$as_echo "yes" >&6; }
10324
10325else
10326
10327ac_have_as_vfmaddpd=no
10328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329$as_echo "no" >&6; }
10330
10331fi
10332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333
10334 if test x$ac_have_as_vfmaddpd = xyes; then
10335 BUILD_FMA4_TESTS_TRUE=
10336 BUILD_FMA4_TESTS_FALSE='#'
10337else
10338 BUILD_FMA4_TESTS_TRUE='#'
10339 BUILD_FMA4_TESTS_FALSE=
10340fi
10341
10342
10343
10344# does the x86/amd64 assembler understand the LZCNT instruction?
10345# Note, this doesn't generate a C-level symbol. It generates a
10346# automake-level symbol (BUILD_LZCNT_TESTS), used in test Makefile.am's
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'lzcnt'" >&5
10348$as_echo_n "checking if x86/amd64 assembler supports 'lzcnt'... " >&6; }
10349
10350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351/* end confdefs.h. */
10352
10353int
10354main ()
10355{
10356
10357 do {
10358 __asm__ __volatile__("lzcnt %%rax,%%rax" : : : "rax");
10359 } while (0)
10360
10361 ;
10362 return 0;
10363}
10364_ACEOF
10365if ac_fn_c_try_compile "$LINENO"; then :
10366
10367 ac_have_as_lzcnt=yes
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10369$as_echo "yes" >&6; }
10370
10371else
10372
10373 ac_have_as_lzcnt=no
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375$as_echo "no" >&6; }
10376
10377fi
10378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10379
10380 if test x$ac_have_as_lzcnt = xyes; then
10381 BUILD_LZCNT_TESTS_TRUE=
10382 BUILD_LZCNT_TESTS_FALSE='#'
10383else
10384 BUILD_LZCNT_TESTS_TRUE='#'
10385 BUILD_LZCNT_TESTS_FALSE=
10386fi
10387
10388
10389
10390# does the x86/amd64 assembler understand the LOOPNEL instruction?
10391# Note, this doesn't generate a C-level symbol. It generates a
10392# automake-level symbol (BUILD_LOOPNEL_TESTS), used in test Makefile.am's
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'loopnel'" >&5
10394$as_echo_n "checking if x86/amd64 assembler supports 'loopnel'... " >&6; }
10395
10396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397/* end confdefs.h. */
10398
10399int
10400main ()
10401{
10402
10403 do {
10404 __asm__ __volatile__("1: loopnel 1b\n");
10405 } while (0)
10406
10407 ;
10408 return 0;
10409}
10410_ACEOF
10411if ac_fn_c_try_compile "$LINENO"; then :
10412
10413 ac_have_as_loopnel=yes
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10415$as_echo "yes" >&6; }
10416
10417else
10418
10419 ac_have_as_loopnel=no
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10421$as_echo "no" >&6; }
10422
10423fi
10424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10425
10426 if test x$ac_have_as_loopnel = xyes; then
10427 BUILD_LOOPNEL_TESTS_TRUE=
10428 BUILD_LOOPNEL_TESTS_FALSE='#'
10429else
10430 BUILD_LOOPNEL_TESTS_TRUE='#'
10431 BUILD_LOOPNEL_TESTS_FALSE=
10432fi
10433
10434
10435
10436# does the x86/amd64 assembler understand ADDR32 ?
10437# Note, this doesn't generate a C-level symbol. It generates a
10438# automake-level symbol (BUILD_ADDR32_TESTS), used in test Makefile.am's
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'addr32'" >&5
10440$as_echo_n "checking if x86/amd64 assembler supports 'addr32'... " >&6; }
10441
10442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h. */
10444
10445int
10446main ()
10447{
10448
10449 do {
10450 asm volatile ("addr32 rep movsb");
10451 } while (0)
10452
10453 ;
10454 return 0;
10455}
10456_ACEOF
10457if ac_fn_c_try_compile "$LINENO"; then :
10458
10459 ac_have_as_addr32=yes
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10461$as_echo "yes" >&6; }
10462
10463else
10464
10465 ac_have_as_addr32=no
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467$as_echo "no" >&6; }
10468
10469fi
10470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10471
10472 if test x$ac_have_as_addr32 = xyes; then
10473 BUILD_ADDR32_TESTS_TRUE=
10474 BUILD_ADDR32_TESTS_FALSE='#'
10475else
10476 BUILD_ADDR32_TESTS_TRUE='#'
10477 BUILD_ADDR32_TESTS_FALSE=
10478fi
10479
10480
10481
10482# does the x86/amd64 assembler understand SSE 4.2 instructions?
10483# Note, this doesn't generate a C-level symbol. It generates a
10484# automake-level symbol (BUILD_SSE42_TESTS), used in test Makefile.am's
10485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE4.2" >&5
10486$as_echo_n "checking if x86/amd64 assembler speaks SSE4.2... " >&6; }
10487
10488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489/* end confdefs.h. */
10490
10491int
10492main ()
10493{
10494
10495 do { long long int x;
10496 __asm__ __volatile__(
10497 "crc32q %%r15,%%r15" : : : "r15" );
10498 __asm__ __volatile__(
10499 "pblendvb (%%rcx), %%xmm11" : : : "memory", "xmm11");
10500 __asm__ __volatile__(
10501 "aesdec %%xmm2, %%xmm1" : : : "xmm2", "xmm1"); }
10502 while (0)
10503
10504 ;
10505 return 0;
10506}
10507_ACEOF
10508if ac_fn_c_try_compile "$LINENO"; then :
10509
10510ac_have_as_sse42=yes
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10512$as_echo "yes" >&6; }
10513
10514else
10515
10516ac_have_as_sse42=no
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518$as_echo "no" >&6; }
10519
10520fi
10521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10522
10523 if test x$ac_have_as_sse42 = xyes; then
10524 BUILD_SSE42_TESTS_TRUE=
10525 BUILD_SSE42_TESTS_FALSE='#'
10526else
10527 BUILD_SSE42_TESTS_TRUE='#'
10528 BUILD_SSE42_TESTS_FALSE=
10529fi
10530
10531
10532
10533# does the x86/amd64 assembler understand AVX instructions?
10534# Note, this doesn't generate a C-level symbol. It generates a
10535# automake-level symbol (BUILD_AVX_TESTS), used in test Makefile.am's
10536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks AVX" >&5
10537$as_echo_n "checking if x86/amd64 assembler speaks AVX... " >&6; }
10538
10539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540/* end confdefs.h. */
10541
10542int
10543main ()
10544{
10545
10546 do { long long int x;
10547 __asm__ __volatile__(
10548 "vmovupd (%%rsp), %%ymm7" : : : "xmm7" );
10549 __asm__ __volatile__(
10550 "vaddpd %%ymm6,%%ymm7,%%ymm8" : : : "xmm6","xmm7","xmm8"); }
10551 while (0)
10552
10553 ;
10554 return 0;
10555}
10556_ACEOF
10557if ac_fn_c_try_compile "$LINENO"; then :
10558
10559ac_have_as_avx=yes
10560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10561$as_echo "yes" >&6; }
10562
10563else
10564
10565ac_have_as_avx=no
10566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567$as_echo "no" >&6; }
10568
10569fi
10570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10571
10572 if test x$ac_have_as_avx = xyes; then
10573 BUILD_AVX_TESTS_TRUE=
10574 BUILD_AVX_TESTS_FALSE='#'
10575else
10576 BUILD_AVX_TESTS_TRUE='#'
10577 BUILD_AVX_TESTS_FALSE=
10578fi
10579
10580
10581
10582# does the x86/amd64 assembler understand AVX2 instructions?
10583# Note, this doesn't generate a C-level symbol. It generates a
10584# automake-level symbol (BUILD_AVX2_TESTS), used in test Makefile.am's
10585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks AVX2" >&5
10586$as_echo_n "checking if x86/amd64 assembler speaks AVX2... " >&6; }
10587
10588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589/* end confdefs.h. */
10590
10591int
10592main ()
10593{
10594
10595 do { long long int x;
10596 __asm__ __volatile__(
10597 "vpsravd (%%rsp), %%ymm8, %%ymm7" : : : "xmm7", "xmm8" );
10598 __asm__ __volatile__(
10599 "vpaddb %%ymm6,%%ymm7,%%ymm8" : : : "xmm6","xmm7","xmm8"); }
10600 while (0)
10601
10602 ;
10603 return 0;
10604}
10605_ACEOF
10606if ac_fn_c_try_compile "$LINENO"; then :
10607
10608ac_have_as_avx2=yes
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10610$as_echo "yes" >&6; }
10611
10612else
10613
10614ac_have_as_avx2=no
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616$as_echo "no" >&6; }
10617
10618fi
10619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10620
10621 if test x$ac_have_as_avx2 = xyes; then
10622 BUILD_AVX2_TESTS_TRUE=
10623 BUILD_AVX2_TESTS_FALSE='#'
10624else
10625 BUILD_AVX2_TESTS_TRUE='#'
10626 BUILD_AVX2_TESTS_FALSE=
10627fi
10628
10629
10630
10631# does the x86/amd64 assembler understand TSX instructions and
10632# the XACQUIRE/XRELEASE prefixes?
10633# Note, this doesn't generate a C-level symbol. It generates a
10634# automake-level symbol (BUILD_TSX_TESTS), used in test Makefile.am's
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks TSX" >&5
10636$as_echo_n "checking if x86/amd64 assembler speaks TSX... " >&6; }
10637
10638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639/* end confdefs.h. */
10640
10641int
10642main ()
10643{
10644
10645 do {
10646 __asm__ __volatile__(
10647 " xbegin Lfoo \n\t"
10648 "Lfoo: xend \n\t"
10649 " xacquire lock incq 0(%rsp) \n\t"
10650 " xrelease lock incq 0(%rsp) \n"
10651 );
10652 } while (0)
10653
10654 ;
10655 return 0;
10656}
10657_ACEOF
10658if ac_fn_c_try_compile "$LINENO"; then :
10659
10660ac_have_as_tsx=yes
10661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10662$as_echo "yes" >&6; }
10663
10664else
10665
10666ac_have_as_tsx=no
10667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668$as_echo "no" >&6; }
10669
10670fi
10671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672
10673 if test x$ac_have_as_tsx = xyes; then
10674 BUILD_TSX_TESTS_TRUE=
10675 BUILD_TSX_TESTS_FALSE='#'
10676else
10677 BUILD_TSX_TESTS_TRUE='#'
10678 BUILD_TSX_TESTS_FALSE=
10679fi
10680
10681
10682
10683# does the x86/amd64 assembler understand BMI1 and BMI2 instructions?
10684# Note, this doesn't generate a C-level symbol. It generates a
10685# automake-level symbol (BUILD_BMI_TESTS), used in test Makefile.am's
10686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks BMI1 and BMI2" >&5
10687$as_echo_n "checking if x86/amd64 assembler speaks BMI1 and BMI2... " >&6; }
10688
10689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690/* end confdefs.h. */
10691
10692int
10693main ()
10694{
10695
10696 do { unsigned int h, l;
10697 __asm__ __volatile__( "mulx %rax,%rcx,%r8" );
10698 __asm__ __volatile__(
10699 "andn %2, %1, %0" : "=r" (h) : "r" (0x1234567), "r" (0x7654321) );
10700 __asm__ __volatile__(
10701 "movl %2, %%edx; mulx %3, %1, %0" : "=r" (h), "=r" (l) : "g" (0x1234567), "rm" (0x7654321) : "edx" ); }
10702 while (0)
10703
10704 ;
10705 return 0;
10706}
10707_ACEOF
10708if ac_fn_c_try_compile "$LINENO"; then :
10709
10710ac_have_as_bmi=yes
10711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10712$as_echo "yes" >&6; }
10713
10714else
10715
10716ac_have_as_bmi=no
10717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718$as_echo "no" >&6; }
10719
10720fi
10721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722
10723 if test x$ac_have_as_bmi = xyes; then
10724 BUILD_BMI_TESTS_TRUE=
10725 BUILD_BMI_TESTS_FALSE='#'
10726else
10727 BUILD_BMI_TESTS_TRUE='#'
10728 BUILD_BMI_TESTS_FALSE=
10729fi
10730
10731
10732
10733# does the x86/amd64 assembler understand FMA instructions?
10734# Note, this doesn't generate a C-level symbol. It generates a
10735# automake-level symbol (BUILD_FMA_TESTS), used in test Makefile.am's
10736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks FMA" >&5
10737$as_echo_n "checking if x86/amd64 assembler speaks FMA... " >&6; }
10738
10739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740/* end confdefs.h. */
10741
10742int
10743main ()
10744{
10745
10746 do { unsigned int h, l;
10747 __asm__ __volatile__(
10748 "vfmadd132ps (%%rsp), %%ymm8, %%ymm7" : : : "xmm7", "xmm8" );
10749 __asm__ __volatile__(
10750 "vfnmsub231sd (%%rsp), %%xmm8, %%xmm7" : : : "xmm7", "xmm8" );
10751 __asm__ __volatile__(
10752 "vfmsubadd213pd (%%rsp), %%xmm8, %%xmm7" : : : "xmm7", "xmm8" ); }
10753 while (0)
10754
10755 ;
10756 return 0;
10757}
10758_ACEOF
10759if ac_fn_c_try_compile "$LINENO"; then :
10760
10761ac_have_as_fma=yes
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10763$as_echo "yes" >&6; }
10764
10765else
10766
10767ac_have_as_fma=no
10768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769$as_echo "no" >&6; }
10770
10771fi
10772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773
10774 if test x$ac_have_as_fma = xyes; then
10775 BUILD_FMA_TESTS_TRUE=
10776 BUILD_FMA_TESTS_FALSE='#'
10777else
10778 BUILD_FMA_TESTS_TRUE='#'
10779 BUILD_FMA_TESTS_FALSE=
10780fi
10781
10782
10783
10784# does the amd64 assembler understand MPX instructions?
10785# Note, this doesn't generate a C-level symbol. It generates a
10786# automake-level symbol (BUILD_MPX_TESTS), used in test Makefile.am's
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler knows the MPX instructions" >&5
10788$as_echo_n "checking if amd64 assembler knows the MPX instructions... " >&6; }
10789
10790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791/* end confdefs.h. */
10792
10793int
10794main ()
10795{
10796
10797 do {
10798 asm ("bndmov %bnd0,(%rsp)");
10799 asm ("bndldx 3(%rbx,%rdx), %bnd2");
10800 asm ("bnd call foo\n"
10801 bnd jmp end\n"
10802 foo: bnd ret\n"
10803 end: nop");
10804 } while (0)
10805
10806 ;
10807 return 0;
10808}
10809_ACEOF
10810if ac_fn_c_try_compile "$LINENO"; then :
10811
10812ac_have_as_mpx=yes
10813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10814$as_echo "yes" >&6; }
10815
10816else
10817
10818ac_have_as_mpx=no
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820$as_echo "no" >&6; }
10821
10822fi
10823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824
10825 if test x$ac_have_as_mpx = xyes; then
10826 BUILD_MPX_TESTS_TRUE=
10827 BUILD_MPX_TESTS_FALSE='#'
10828else
10829 BUILD_MPX_TESTS_TRUE='#'
10830 BUILD_MPX_TESTS_FALSE=
10831fi
10832
10833
10834
Elliott Hughesed398002017-06-21 14:41:24 -070010835# does the amd64 assembler understand ADX instructions?
10836# Note, this doesn't generate a C-level symbol. It generates a
10837# automake-level symbol (BUILD_ADX_TESTS), used in test Makefile.am's
10838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler knows the ADX instructions" >&5
10839$as_echo_n "checking if amd64 assembler knows the ADX instructions... " >&6; }
10840
10841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842/* end confdefs.h. */
10843
10844int
10845main ()
10846{
10847
10848 do {
10849 asm ("adcxq %r14,%r8");
10850 } while (0)
10851
10852 ;
10853 return 0;
10854}
10855_ACEOF
10856if ac_fn_c_try_compile "$LINENO"; then :
10857
10858ac_have_as_adx=yes
10859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10860$as_echo "yes" >&6; }
10861
10862else
10863
10864ac_have_as_adx=no
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866$as_echo "no" >&6; }
10867
10868fi
10869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10870
10871 if test x$ac_have_as_adx = xyes; then
10872 BUILD_ADX_TESTS_TRUE=
10873 BUILD_ADX_TESTS_FALSE='#'
10874else
10875 BUILD_ADX_TESTS_TRUE='#'
10876 BUILD_ADX_TESTS_FALSE=
10877fi
10878
10879
10880
Elliott Hughesa0664b92017-04-18 17:46:52 -070010881# Does the C compiler support the "ifunc" attribute
10882# Note, this doesn't generate a C-level symbol. It generates a
10883# automake-level symbol (BUILD_IFUNC_TESTS), used in test Makefile.am's
10884# does the x86/amd64 assembler understand MOVBE?
10885# Note, this doesn't generate a C-level symbol. It generates a
10886# automake-level symbol (BUILD_MOVBE_TESTS), used in test Makefile.am's
10887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler knows the MOVBE insn" >&5
10888$as_echo_n "checking if x86/amd64 assembler knows the MOVBE insn... " >&6; }
10889
10890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891/* end confdefs.h. */
10892
10893int
10894main ()
10895{
10896
10897 do { long long int x;
10898 __asm__ __volatile__(
10899 "movbe (%%rsp), %%r15" : : : "memory", "r15" ); }
10900 while (0)
10901
10902 ;
10903 return 0;
10904}
10905_ACEOF
10906if ac_fn_c_try_compile "$LINENO"; then :
10907
10908ac_have_as_movbe=yes
10909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10910$as_echo "yes" >&6; }
10911
10912else
10913
10914ac_have_as_movbe=no
10915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916$as_echo "no" >&6; }
10917
10918fi
10919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10920
10921 if test x$ac_have_as_movbe = xyes; then
10922 BUILD_MOVBE_TESTS_TRUE=
10923 BUILD_MOVBE_TESTS_FALSE='#'
10924else
10925 BUILD_MOVBE_TESTS_TRUE='#'
10926 BUILD_MOVBE_TESTS_FALSE=
10927fi
10928
10929
10930
10931# Does the C compiler support the "ifunc" attribute
10932# Note, this doesn't generate a C-level symbol. It generates a
10933# automake-level symbol (BUILD_IFUNC_TESTS), used in test Makefile.am's
10934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports the ifunc attribute" >&5
10935$as_echo_n "checking if gcc supports the ifunc attribute... " >&6; }
10936
10937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938/* end confdefs.h. */
10939
10940static void mytest(void) {}
10941
10942static void (*resolve_test(void))(void)
10943{
10944 return (void (*)(void))&mytest;
10945}
10946
10947void test(void) __attribute__((ifunc("resolve_test")));
10948
10949int main()
10950{
10951 test();
10952 return 0;
10953}
10954
10955_ACEOF
10956if ac_fn_c_try_link "$LINENO"; then :
10957
10958ac_have_ifunc_attr=yes
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10960$as_echo "yes" >&6; }
10961
10962else
10963
10964ac_have_ifunc_attr=no
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966$as_echo "no" >&6; }
10967
10968fi
10969rm -f core conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
10971
10972 if test x$ac_have_ifunc_attr = xyes; then
10973 BUILD_IFUNC_TESTS_TRUE=
10974 BUILD_IFUNC_TESTS_FALSE='#'
10975else
10976 BUILD_IFUNC_TESTS_TRUE='#'
10977 BUILD_IFUNC_TESTS_FALSE=
10978fi
10979
10980
10981# Does the C compiler support the armv8 crc feature flag
10982# Note, this doesn't generate a C-level symbol. It generates a
10983# automake-level symbol (BUILD_ARMV8_CRC_TESTS), used in test Makefile.am's
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports the armv8 crc feature flag" >&5
10985$as_echo_n "checking if gcc supports the armv8 crc feature flag... " >&6; }
10986
10987save_CFLAGS="$CFLAGS"
10988CFLAGS="$CFLAGS -march=armv8-a+crc -Werror"
10989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990/* end confdefs.h. */
10991
10992int main()
10993{
10994 return 0;
10995}
10996
10997_ACEOF
10998if ac_fn_c_try_compile "$LINENO"; then :
10999
11000ac_have_armv8_crc_feature=yes
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11002$as_echo "yes" >&6; }
11003
11004else
11005
11006ac_have_armv8_crc_feature=no
11007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008$as_echo "no" >&6; }
11009
11010fi
11011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012CFLAGS="$save_CFLAGS"
11013
11014 if test x$ac_have_armv8_crc_feature = xyes; then
11015 BUILD_ARMV8_CRC_TESTS_TRUE=
11016 BUILD_ARMV8_CRC_TESTS_FALSE='#'
11017else
11018 BUILD_ARMV8_CRC_TESTS_TRUE='#'
11019 BUILD_ARMV8_CRC_TESTS_FALSE=
11020fi
11021
11022
11023
11024# XXX JRS 2010 Oct 13: what is this for? For sure, we don't need this
11025# when building the tool executables. I think we should get rid of it.
11026#
11027# Check for TLS support in the compiler and linker
11028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029/* end confdefs.h. */
11030static __thread int foo;
11031int
11032main ()
11033{
11034return foo;
11035 ;
11036 return 0;
11037}
11038_ACEOF
11039if ac_fn_c_try_link "$LINENO"; then :
11040 vg_cv_linktime_tls=yes
11041else
11042 vg_cv_linktime_tls=no
11043fi
11044rm -f core conftest.err conftest.$ac_objext \
11045 conftest$ac_exeext conftest.$ac_ext
11046# Native compilation: check whether running a program using TLS succeeds.
11047# Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
11048# succeeds but running programs using TLS fails.
11049# Cross-compiling: check whether linking a program using TLS succeeds.
11050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
11051$as_echo_n "checking for TLS support... " >&6; }
11052if ${vg_cv_tls+:} false; then :
11053 $as_echo_n "(cached) " >&6
11054else
11055 # Check whether --enable-tls was given.
11056if test "${enable_tls+set}" = set; then :
11057 enableval=$enable_tls; vg_cv_tls=$enableval
11058else
11059 if test "$cross_compiling" = yes; then :
11060 vg_cv_tls=$vg_cv_linktime_tls
11061else
11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063/* end confdefs.h. */
11064static __thread int foo;
11065int
11066main ()
11067{
11068return foo;
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073if ac_fn_c_try_run "$LINENO"; then :
11074 vg_cv_tls=yes
11075else
11076 vg_cv_tls=no
11077fi
11078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11079 conftest.$ac_objext conftest.beam conftest.$ac_ext
11080fi
11081
11082fi
11083
11084fi
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
11086$as_echo "$vg_cv_tls" >&6; }
11087
11088if test "$vg_cv_tls" = yes -a $is_clang != applellvm; then
11089
11090$as_echo "#define HAVE_TLS 1" >>confdefs.h
11091
11092fi
11093
11094
11095#----------------------------------------------------------------------------
11096# Solaris-specific checks.
11097#----------------------------------------------------------------------------
11098
11099if test "$VGCONF_OS" = "solaris" ; then
Elliott Hughesed398002017-06-21 14:41:24 -070011100for ac_header in sys/lgrp_user_impl.h
11101do :
11102 ac_fn_c_check_header_mongrel "$LINENO" "sys/lgrp_user_impl.h" "ac_cv_header_sys_lgrp_user_impl_h" "$ac_includes_default"
11103if test "x$ac_cv_header_sys_lgrp_user_impl_h" = xyes; then :
11104 cat >>confdefs.h <<_ACEOF
11105#define HAVE_SYS_LGRP_USER_IMPL_H 1
11106_ACEOF
11107
11108fi
11109
11110done
11111
11112
Elliott Hughesa0664b92017-04-18 17:46:52 -070011113# Solaris-specific check determining if the Sun Studio Assembler is used to
11114# build Valgrind. The test checks if the x86/amd64 assembler understands the
11115# cmovl.l instruction, if yes then it's Sun Assembler.
11116#
11117# C-level symbol: none
11118# Automake-level symbol: SOLARIS_SUN_STUDIO_AS
11119#
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks cmovl.l (Solaris-specific)" >&5
11121$as_echo_n "checking if x86/amd64 assembler speaks cmovl.l (Solaris-specific)... " >&6; }
11122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123/* end confdefs.h. */
11124
11125
11126int
11127main ()
11128{
11129
11130 __asm__ __volatile__("cmovl.l %edx, %eax");
11131
11132 ;
11133 return 0;
11134}
11135_ACEOF
11136if ac_fn_c_try_compile "$LINENO"; then :
11137
11138solaris_have_sun_studio_as=yes
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11140$as_echo "yes" >&6; }
11141
11142else
11143
11144solaris_have_sun_studio_as=no
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
11147
11148fi
11149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11150 if test x$solaris_have_sun_studio_as = xyes; then
11151 SOLARIS_SUN_STUDIO_AS_TRUE=
11152 SOLARIS_SUN_STUDIO_AS_FALSE='#'
11153else
11154 SOLARIS_SUN_STUDIO_AS_TRUE='#'
11155 SOLARIS_SUN_STUDIO_AS_FALSE=
11156fi
11157
11158
11159# Solaris-specific check determining if symbols __xpg4 and __xpg6
Elliott Hughesed398002017-06-21 14:41:24 -070011160# are present in linked shared libraries when gcc is invoked with -std=gnu99.
Elliott Hughesa0664b92017-04-18 17:46:52 -070011161# See solaris/vgpreload-solaris.mapfile for details.
Elliott Hughesed398002017-06-21 14:41:24 -070011162# gcc on older Solaris instructs linker to include these symbols,
11163# gcc on illumos and newer Solaris does not.
Elliott Hughesa0664b92017-04-18 17:46:52 -070011164#
11165# C-level symbol: none
11166# Automake-level symbol: SOLARIS_XPG_SYMBOLS_PRESENT
11167#
11168save_CFLAGS="$CFLAGS"
11169CFLAGS="$CFLAGS -std=gnu99"
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if xpg symbols are present with -std=gnu99 (Solaris-specific)" >&5
11171$as_echo_n "checking if xpg symbols are present with -std=gnu99 (Solaris-specific)... " >&6; }
Elliott Hughesed398002017-06-21 14:41:24 -070011172temp_dir=$( /usr/bin/mktemp -d )
11173cat <<_ACEOF >${temp_dir}/mylib.c
Elliott Hughesa0664b92017-04-18 17:46:52 -070011174#include <stdio.h>
Elliott Hughesed398002017-06-21 14:41:24 -070011175int myfunc(void) { printf("LaPutyka\n"); }
Elliott Hughesa0664b92017-04-18 17:46:52 -070011176_ACEOF
Elliott Hughesed398002017-06-21 14:41:24 -070011177${CC} ${CFLAGS} -fpic -shared -o ${temp_dir}/mylib.so ${temp_dir}/mylib.c
11178xpg_present=$( /usr/bin/nm ${temp_dir}/mylib.so | ${EGREP} '(__xpg4|__xpg6)' )
11179if test "x${xpg_present}" = "x" ; then
11180 solaris_xpg_symbols_present=no
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughesa0664b92017-04-18 17:46:52 -070011182$as_echo "no" >&6; }
Elliott Hughesed398002017-06-21 14:41:24 -070011183else
11184 solaris_xpg_symbols_present=yes
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11186$as_echo "yes" >&6; }
Elliott Hughesa0664b92017-04-18 17:46:52 -070011187fi
Elliott Hughesed398002017-06-21 14:41:24 -070011188rm -rf ${temp_dir}
Elliott Hughesa0664b92017-04-18 17:46:52 -070011189 if test x$solaris_xpg_symbols_present = xyes; then
11190 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE=
11191 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE='#'
11192else
11193 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE='#'
11194 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE=
11195fi
11196
11197CFLAGS="$save_CFLAGS"
11198
11199
11200# Solaris-specific check determining if gcc enables largefile support by
11201# default for 32-bit executables. If it does, then set SOLARIS_UNDEF_LARGESOURCE
11202# variable with gcc flags which disable it.
11203#
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc enables largefile support for 32-bit apps (Solaris-specific)" >&5
11205$as_echo_n "checking if gcc enables largefile support for 32-bit apps (Solaris-specific)... " >&6; }
11206save_CFLAGS="$CFLAGS"
11207CFLAGS="$CFLAGS -m32"
11208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209/* end confdefs.h. */
11210
11211int
11212main ()
11213{
11214
11215 return _LARGEFILE_SOURCE;
11216
11217 ;
11218 return 0;
11219}
11220_ACEOF
11221if ac_fn_c_try_compile "$LINENO"; then :
11222
11223SOLARIS_UNDEF_LARGESOURCE="-U_LARGEFILE_SOURCE -U_LARGEFILE64_SOURCE -U_FILE_OFFSET_BITS"
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11225$as_echo "yes" >&6; }
11226
11227else
11228
11229SOLARIS_UNDEF_LARGESOURCE=""
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231$as_echo "no" >&6; }
11232
11233fi
11234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235CFLAGS=$safe_CFLAGS
11236
11237
11238
11239# Solaris-specific check determining if /proc/self/cmdline
11240# or /proc/<pid>/cmdline is supported.
11241#
11242# C-level symbol: SOLARIS_PROC_CMDLINE
11243# Automake-level symbol: SOLARIS_PROC_CMDLINE
11244#
11245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/cmdline" >&5
11246$as_echo_n "checking for /proc/self/cmdline... " >&6; }
11247if ${ac_cv_file__proc_self_cmdline+:} false; then :
11248 $as_echo_n "(cached) " >&6
11249else
11250 test "$cross_compiling" = yes &&
11251 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11252if test -r "/proc/self/cmdline"; then
11253 ac_cv_file__proc_self_cmdline=yes
11254else
11255 ac_cv_file__proc_self_cmdline=no
11256fi
11257fi
11258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_cmdline" >&5
11259$as_echo "$ac_cv_file__proc_self_cmdline" >&6; }
11260if test "x$ac_cv_file__proc_self_cmdline" = xyes; then :
11261
11262solaris_proc_cmdline=yes
11263
11264$as_echo "#define SOLARIS_PROC_CMDLINE 1" >>confdefs.h
11265
11266
11267else
11268
11269solaris_proc_cmdline=no
11270
11271fi
11272
11273 if test x$solaris_proc_cmdline = xyes; then
11274 SOLARIS_PROC_CMDLINE_TRUE=
11275 SOLARIS_PROC_CMDLINE_FALSE='#'
11276else
11277 SOLARIS_PROC_CMDLINE_TRUE='#'
11278 SOLARIS_PROC_CMDLINE_FALSE=
11279fi
11280
11281
11282
11283# Solaris-specific check determining default platform for the Valgrind launcher.
11284# Used in case the launcher cannot select platform by looking at the client
11285# image (for example because the executable is a shell script).
11286#
11287# C-level symbol: SOLARIS_LAUNCHER_DEFAULT_PLATFORM
11288# Automake-level symbol: none
11289#
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default platform of Valgrind launcher (Solaris-specific)" >&5
11291$as_echo_n "checking for default platform of Valgrind launcher (Solaris-specific)... " >&6; }
11292# Get the ELF class of /bin/sh first.
11293if ! test -f /bin/sh; then
11294 as_fn_error $? "Shell interpreter \`/bin/sh' not found." "$LINENO" 5
11295fi
11296elf_class=$( /usr/bin/file /bin/sh | sed -n 's/.*ELF \(..\)-bit.*/\1/p' )
11297case "$elf_class" in
11298 64)
11299 default_arch="$VGCONF_ARCH_PRI";
11300 ;;
11301 32)
11302 if test "x$VGCONF_ARCH_SEC" != "x"; then
11303 default_arch="$VGCONF_ARCH_SEC"
11304 else
11305 default_arch="$VGCONF_ARCH_PRI";
11306 fi
11307 ;;
11308 *)
11309 as_fn_error $? "Cannot determine ELF class of \`/bin/sh'." "$LINENO" 5
11310 ;;
11311esac
11312default_platform="$default_arch-$VGCONF_OS"
11313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_platform" >&5
11314$as_echo "$default_platform" >&6; }
11315
11316cat >>confdefs.h <<_ACEOF
11317#define SOLARIS_LAUNCHER_DEFAULT_PLATFORM "$default_platform"
11318_ACEOF
11319
11320
11321
11322# Solaris-specific check determining if the old syscalls are available.
11323#
11324# C-level symbol: SOLARIS_OLD_SYSCALLS
11325# Automake-level symbol: SOLARIS_OLD_SYSCALLS
11326#
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the old Solaris syscalls (Solaris-specific)" >&5
11328$as_echo_n "checking for the old Solaris syscalls (Solaris-specific)... " >&6; }
11329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330/* end confdefs.h. */
11331
11332#include <sys/syscall.h>
11333
11334int
11335main ()
11336{
11337
11338 return !SYS_open;
11339
11340 ;
11341 return 0;
11342}
11343_ACEOF
11344if ac_fn_c_try_compile "$LINENO"; then :
11345
11346solaris_old_syscalls=yes
11347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11348$as_echo "yes" >&6; }
11349
11350$as_echo "#define SOLARIS_OLD_SYSCALLS 1" >>confdefs.h
11351
11352
11353else
11354
11355solaris_old_syscalls=no
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357$as_echo "no" >&6; }
11358
11359fi
11360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11361 if test x$solaris_old_syscalls = xyes; then
11362 SOLARIS_OLD_SYSCALLS_TRUE=
11363 SOLARIS_OLD_SYSCALLS_FALSE='#'
11364else
11365 SOLARIS_OLD_SYSCALLS_TRUE='#'
11366 SOLARIS_OLD_SYSCALLS_FALSE=
11367fi
11368
11369
11370
11371# Solaris-specific check determining if the new accept() syscall is available.
11372#
11373# Old syscall:
11374# int accept(int sock, struct sockaddr *name, socklen_t *namelenp,
11375# int version);
11376#
11377# New syscall (available on illumos):
11378# int accept(int sock, struct sockaddr *name, socklen_t *namelenp,
11379# int version, int flags);
11380#
11381# If the old syscall is present then the following syscall will fail with
11382# ENOTSOCK (because file descriptor 0 is not a socket), if the new syscall is
11383# available then it will fail with EINVAL (because the flags parameter is
11384# invalid).
11385#
11386# C-level symbol: SOLARIS_NEW_ACCEPT_SYSCALL
11387# Automake-level symbol: none
11388#
11389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`accept' syscall (Solaris-specific)" >&5
11390$as_echo_n "checking for the new \`accept' syscall (Solaris-specific)... " >&6; }
11391if test "$cross_compiling" = yes; then :
11392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11394as_fn_error $? "cannot run test program while cross compiling
11395See \`config.log' for more details" "$LINENO" 5; }
11396else
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398/* end confdefs.h. */
11399
11400#include <sys/syscall.h>
11401#include <errno.h>
11402
11403int
11404main ()
11405{
11406
11407 errno = 0;
11408 syscall(SYS_accept, 0, 0, 0, 0, -1);
11409 return !(errno == EINVAL);
11410
11411 ;
11412 return 0;
11413}
11414_ACEOF
11415if ac_fn_c_try_run "$LINENO"; then :
11416
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11418$as_echo "yes" >&6; }
11419
11420$as_echo "#define SOLARIS_NEW_ACCEPT_SYSCALL 1" >>confdefs.h
11421
11422
11423else
11424
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426$as_echo "no" >&6; }
11427
11428fi
11429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11430 conftest.$ac_objext conftest.beam conftest.$ac_ext
11431fi
11432
11433
11434
11435# Solaris-specific check determining if the new illumos pipe() syscall is
11436# available.
11437#
11438# Old syscall:
11439# longlong_t pipe();
11440#
11441# New syscall (available on illumos):
11442# int pipe(intptr_t arg, int flags);
11443#
11444# If the old syscall is present then the following call will succeed, if the
11445# new syscall is available then it will fail with EFAULT (because address 0
11446# cannot be accessed).
11447#
11448# C-level symbol: SOLARIS_NEW_PIPE_SYSCALL
11449# Automake-level symbol: none
11450#
11451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`pipe' syscall (Solaris-specific)" >&5
11452$as_echo_n "checking for the new \`pipe' syscall (Solaris-specific)... " >&6; }
11453if test "$cross_compiling" = yes; then :
11454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11456as_fn_error $? "cannot run test program while cross compiling
11457See \`config.log' for more details" "$LINENO" 5; }
11458else
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460/* end confdefs.h. */
11461
11462#include <sys/syscall.h>
11463#include <errno.h>
11464
11465int
11466main ()
11467{
11468
11469 errno = 0;
11470 syscall(SYS_pipe, 0, 0);
11471 return !(errno == EFAULT);
11472
11473 ;
11474 return 0;
11475}
11476_ACEOF
11477if ac_fn_c_try_run "$LINENO"; then :
11478
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11480$as_echo "yes" >&6; }
11481
11482$as_echo "#define SOLARIS_NEW_PIPE_SYSCALL 1" >>confdefs.h
11483
11484
11485else
11486
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488$as_echo "no" >&6; }
11489
11490fi
11491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11492 conftest.$ac_objext conftest.beam conftest.$ac_ext
11493fi
11494
11495
11496
11497# Solaris-specific check determining if the new lwp_sigqueue() syscall is
11498# available.
11499#
11500# Old syscall:
11501# int lwp_kill(id_t lwpid, int sig);
11502#
11503# New syscall (available on Solaris 11):
11504# int lwp_sigqueue(id_t lwpid, int sig, void *value,
11505# int si_code, timespec_t *timeout);
11506#
11507# C-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL
11508# Automake-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL
11509#
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`lwp_sigqueue' syscall (Solaris-specific)" >&5
11511$as_echo_n "checking for the new \`lwp_sigqueue' syscall (Solaris-specific)... " >&6; }
11512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513/* end confdefs.h. */
11514
11515#include <sys/syscall.h>
11516
11517int
11518main ()
11519{
11520
11521 return !SYS_lwp_sigqueue;
11522
11523 ;
11524 return 0;
11525}
11526_ACEOF
11527if ac_fn_c_try_compile "$LINENO"; then :
11528
11529solaris_lwp_sigqueue_syscall=yes
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531$as_echo "yes" >&6; }
11532
11533$as_echo "#define SOLARIS_LWP_SIGQUEUE_SYSCALL 1" >>confdefs.h
11534
11535
11536else
11537
11538solaris_lwp_sigqueue_syscall=no
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540$as_echo "no" >&6; }
11541
11542fi
11543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544 if test x$solaris_lwp_sigqueue_syscall = xyes; then
11545 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE=
11546 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE='#'
11547else
11548 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE='#'
11549 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE=
11550fi
11551
11552
11553
11554# Solaris-specific check determining if the lwp_sigqueue() syscall
11555# takes both pid and thread id arguments or just thread id.
11556#
11557# Old syscall (available on Solaris 11.x):
11558# int lwp_sigqueue(id_t lwpid, int sig, void *value,
11559# int si_code, timespec_t *timeout);
11560#
11561# New syscall (available on Solaris 12):
11562# int lwp_sigqueue(pid_t pid, id_t lwpid, int sig, void *value,
11563# int si_code, timespec_t *timeout);
11564#
11565# If the old syscall is present then the following syscall will fail with
11566# EINVAL (because signal is out of range); if the new syscall is available
11567# then it will fail with ESRCH (because it would not find such thread in the
11568# current process).
11569#
11570# C-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID
11571# Automake-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID
11572#
11573
11574if test -z "$SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE"; then :
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the \`lwp_sigqueue' syscall accepts pid (Solaris-specific)" >&5
11576$as_echo_n "checking if the \`lwp_sigqueue' syscall accepts pid (Solaris-specific)... " >&6; }
11577if test "$cross_compiling" = yes; then :
11578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11580as_fn_error $? "cannot run test program while cross compiling
11581See \`config.log' for more details" "$LINENO" 5; }
11582else
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584/* end confdefs.h. */
11585
11586#include <sys/syscall.h>
11587#include <errno.h>
11588
11589int
11590main ()
11591{
11592
11593 errno = 0;
11594 syscall(SYS_lwp_sigqueue, 0, 101, 0, 0, 0, 0);
11595 return !(errno == ESRCH);
11596
11597 ;
11598 return 0;
11599}
11600_ACEOF
11601if ac_fn_c_try_run "$LINENO"; then :
11602
11603solaris_lwp_sigqueue_syscall_takes_pid=yes
11604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11605$as_echo "yes" >&6; }
11606
11607$as_echo "#define SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID 1" >>confdefs.h
11608
11609
11610else
11611
11612solaris_lwp_sigqueue_syscall_takes_pid=no
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614$as_echo "no" >&6; }
11615
11616fi
11617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11618 conftest.$ac_objext conftest.beam conftest.$ac_ext
11619fi
11620
11621 if test x$solaris_lwp_sigqueue_syscall_takes_pid = xyes; then
11622 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE=
11623 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE='#'
11624else
11625 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE='#'
11626 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE=
11627fi
11628
11629
11630else
11631 if test x = y; then
11632 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE=
11633 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE='#'
11634else
11635 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE='#'
11636 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE=
11637fi
11638
11639
11640fi
11641
11642
11643# Solaris-specific check determining if the new lwp_name() syscall is
11644# available.
11645#
11646# New syscall (available on Solaris 11):
11647# int lwp_name(int opcode, id_t lwpid, char *name, size_t len);
11648#
11649# C-level symbol: SOLARIS_LWP_NAME_SYSCALL
11650# Automake-level symbol: SOLARIS_LWP_NAME_SYSCALL
11651#
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`lwp_name' syscall (Solaris-specific)" >&5
11653$as_echo_n "checking for the new \`lwp_name' syscall (Solaris-specific)... " >&6; }
11654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655/* end confdefs.h. */
11656
11657#include <sys/syscall.h>
11658
11659int
11660main ()
11661{
11662
11663 return !SYS_lwp_name;
11664
11665 ;
11666 return 0;
11667}
11668_ACEOF
11669if ac_fn_c_try_compile "$LINENO"; then :
11670
11671solaris_lwp_name_syscall=yes
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11673$as_echo "yes" >&6; }
11674
11675$as_echo "#define SOLARIS_LWP_NAME_SYSCALL 1" >>confdefs.h
11676
11677
11678else
11679
11680solaris_lwp_name_syscall=no
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682$as_echo "no" >&6; }
11683
11684fi
11685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686 if test x$solaris_lwp_name_syscall = xyes; then
11687 SOLARIS_LWP_NAME_SYSCALL_TRUE=
11688 SOLARIS_LWP_NAME_SYSCALL_FALSE='#'
11689else
11690 SOLARIS_LWP_NAME_SYSCALL_TRUE='#'
11691 SOLARIS_LWP_NAME_SYSCALL_FALSE=
11692fi
11693
11694
11695
11696# Solaris-specific check determining if the new getrandom() syscall is
11697# available.
11698#
11699# New syscall (available on Solaris 11):
11700# int getrandom(void *buf, size_t buflen, uint_t flags);
11701#
11702# C-level symbol: SOLARIS_GETRANDOM_SYSCALL
11703# Automake-level symbol: SOLARIS_GETRANDOM_SYSCALL
11704#
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`getrandom' syscall (Solaris-specific)" >&5
11706$as_echo_n "checking for the new \`getrandom' syscall (Solaris-specific)... " >&6; }
11707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708/* end confdefs.h. */
11709
11710#include <sys/syscall.h>
11711
11712int
11713main ()
11714{
11715
11716 return !SYS_getrandom;
11717
11718 ;
11719 return 0;
11720}
11721_ACEOF
11722if ac_fn_c_try_compile "$LINENO"; then :
11723
11724solaris_getrandom_syscall=yes
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11726$as_echo "yes" >&6; }
11727
11728$as_echo "#define SOLARIS_GETRANDOM_SYSCALL 1" >>confdefs.h
11729
11730
11731else
11732
11733solaris_getrandom_syscall=no
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11735$as_echo "no" >&6; }
11736
11737fi
11738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739 if test x$solaris_getrandom_syscall = xyes; then
11740 SOLARIS_GETRANDOM_SYSCALL_TRUE=
11741 SOLARIS_GETRANDOM_SYSCALL_FALSE='#'
11742else
11743 SOLARIS_GETRANDOM_SYSCALL_TRUE='#'
11744 SOLARIS_GETRANDOM_SYSCALL_FALSE=
11745fi
11746
11747
11748
11749# Solaris-specific check determining if the new zone() syscall subcodes
11750# ZONE_LIST_DEFUNCT and ZONE_GETATTR_DEFUNCT are available. These subcodes
11751# were added in Solaris 11 but are missing on illumos.
11752#
11753# C-level symbol: SOLARIS_ZONE_DEFUNCT
11754# Automake-level symbol: SOLARIS_ZONE_DEFUNCT
11755#
11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZONE_LIST_DEFUNCT and ZONE_GETATTR_DEFUNCT (Solaris-specific)" >&5
11757$as_echo_n "checking for ZONE_LIST_DEFUNCT and ZONE_GETATTR_DEFUNCT (Solaris-specific)... " >&6; }
11758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759/* end confdefs.h. */
11760
11761#include <sys/zone.h>
11762
11763int
11764main ()
11765{
11766
11767 return !(ZONE_LIST_DEFUNCT && ZONE_GETATTR_DEFUNCT);
11768
11769 ;
11770 return 0;
11771}
11772_ACEOF
11773if ac_fn_c_try_compile "$LINENO"; then :
11774
11775solaris_zone_defunct=yes
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11777$as_echo "yes" >&6; }
11778
11779$as_echo "#define SOLARIS_ZONE_DEFUNCT 1" >>confdefs.h
11780
11781
11782else
11783
11784solaris_zone_defunct=no
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786$as_echo "no" >&6; }
11787
11788fi
11789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790 if test x$solaris_zone_defunct = xyes; then
11791 SOLARIS_ZONE_DEFUNCT_TRUE=
11792 SOLARIS_ZONE_DEFUNCT_FALSE='#'
11793else
11794 SOLARIS_ZONE_DEFUNCT_TRUE='#'
11795 SOLARIS_ZONE_DEFUNCT_FALSE=
11796fi
11797
11798
11799
11800# Solaris-specific check determining if commands A_GETSTAT and A_SETSTAT
11801# for auditon(2) subcode of the auditsys() syscall are available.
11802# These commands are available in Solaris 11 and illumos but were removed
11803# in Solaris 12.
11804#
11805# C-level symbol: SOLARIS_AUDITON_STAT
11806# Automake-level symbol: SOLARIS_AUDITON_STAT
11807#
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for A_GETSTAT and A_SETSTAT auditon(2) commands (Solaris-specific)" >&5
11809$as_echo_n "checking for A_GETSTAT and A_SETSTAT auditon(2) commands (Solaris-specific)... " >&6; }
11810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811/* end confdefs.h. */
11812
11813#include <bsm/audit.h>
11814
11815int
11816main ()
11817{
11818
11819 return !(A_GETSTAT && A_SETSTAT);
11820
11821 ;
11822 return 0;
11823}
11824_ACEOF
11825if ac_fn_c_try_compile "$LINENO"; then :
11826
11827solaris_auditon_stat=yes
11828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11829$as_echo "yes" >&6; }
11830
11831$as_echo "#define SOLARIS_AUDITON_STAT 1" >>confdefs.h
11832
11833
11834else
11835
11836solaris_auditon_stat=no
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838$as_echo "no" >&6; }
11839
11840fi
11841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11842 if test x$solaris_auditon_stat = xyes; then
11843 SOLARIS_AUDITON_STAT_TRUE=
11844 SOLARIS_AUDITON_STAT_FALSE='#'
11845else
11846 SOLARIS_AUDITON_STAT_TRUE='#'
11847 SOLARIS_AUDITON_STAT_FALSE=
11848fi
11849
11850
11851
11852# Solaris-specific check determining if the new shmsys() syscall subcodes
11853# IPC_XSTAT64, SHMADV, SHM_ADV_GET, SHM_ADV_SET and SHMGET_OSM are available.
11854# These subcodes were added in Solaris 11 but are missing on illumos.
11855#
11856# C-level symbol: SOLARIS_SHM_NEW
11857# Automake-level symbol: SOLARIS_SHM_NEW
11858#
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHMADV, SHM_ADV_GET, SHM_ADV_SET and SHMGET_OSM (Solaris-specific)" >&5
11860$as_echo_n "checking for SHMADV, SHM_ADV_GET, SHM_ADV_SET and SHMGET_OSM (Solaris-specific)... " >&6; }
11861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862/* end confdefs.h. */
11863
11864#include <sys/ipc_impl.h>
11865#include <sys/shm.h>
11866#include <sys/shm_impl.h>
11867
11868int
11869main ()
11870{
11871
11872 return !(IPC_XSTAT64 && SHMADV && SHM_ADV_GET && SHM_ADV_SET && SHMGET_OSM);
11873
11874 ;
11875 return 0;
11876}
11877_ACEOF
11878if ac_fn_c_try_compile "$LINENO"; then :
11879
11880solaris_shm_new=yes
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11882$as_echo "yes" >&6; }
11883
11884$as_echo "#define SOLARIS_SHM_NEW 1" >>confdefs.h
11885
11886
11887else
11888
11889solaris_shm_new=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_shm_new = xyes; then
11896 SOLARIS_SHM_NEW_TRUE=
11897 SOLARIS_SHM_NEW_FALSE='#'
11898else
11899 SOLARIS_SHM_NEW_TRUE='#'
11900 SOLARIS_SHM_NEW_FALSE=
11901fi
11902
11903
11904
11905# Solaris-specific check determining if prxregset_t is available. Illumos
11906# currently does not define it on the x86 platform.
11907#
11908# C-level symbol: SOLARIS_PRXREGSET_T
11909# Automake-level symbol: SOLARIS_PRXREGSET_T
11910#
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`prxregset_t' type (Solaris-specific)" >&5
11912$as_echo_n "checking for the \`prxregset_t' type (Solaris-specific)... " >&6; }
11913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914/* end confdefs.h. */
11915
11916#include <sys/procfs_isa.h>
11917
11918int
11919main ()
11920{
11921
11922 return !sizeof(prxregset_t);
11923
11924 ;
11925 return 0;
11926}
11927_ACEOF
11928if ac_fn_c_try_compile "$LINENO"; then :
11929
11930solaris_prxregset_t=yes
11931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11932$as_echo "yes" >&6; }
11933
11934$as_echo "#define SOLARIS_PRXREGSET_T 1" >>confdefs.h
11935
11936
11937else
11938
11939solaris_prxregset_t=no
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941$as_echo "no" >&6; }
11942
11943fi
11944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11945 if test x$solaris_prxregset_t = xyes; then
11946 SOLARIS_PRXREGSET_T_TRUE=
11947 SOLARIS_PRXREGSET_T_FALSE='#'
11948else
11949 SOLARIS_PRXREGSET_T_TRUE='#'
11950 SOLARIS_PRXREGSET_T_FALSE=
11951fi
11952
11953
11954
11955# Solaris-specific check determining if the new frealpathat() syscall is
11956# available.
11957#
11958# New syscall (available on Solaris 11.1):
11959# int frealpathat(int fd, char *path, char *buf, size_t buflen);
11960#
11961# C-level symbol: SOLARIS_FREALPATHAT_SYSCALL
11962# Automake-level symbol: SOLARIS_FREALPATHAT_SYSCALL
11963#
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`frealpathat' syscall (Solaris-specific)" >&5
11965$as_echo_n "checking for the new \`frealpathat' syscall (Solaris-specific)... " >&6; }
11966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967/* end confdefs.h. */
11968
11969#include <sys/syscall.h>
11970
11971int
11972main ()
11973{
11974
11975 return !SYS_frealpathat;
11976
11977 ;
11978 return 0;
11979}
11980_ACEOF
11981if ac_fn_c_try_compile "$LINENO"; then :
11982
11983solaris_frealpathat_syscall=yes
11984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11985$as_echo "yes" >&6; }
11986
11987$as_echo "#define SOLARIS_FREALPATHAT_SYSCALL 1" >>confdefs.h
11988
11989
11990else
11991
11992solaris_frealpathat_syscall=no
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994$as_echo "no" >&6; }
11995
11996fi
11997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 if test x$solaris_frealpathat_syscall = xyes; then
11999 SOLARIS_FREALPATHAT_SYSCALL_TRUE=
12000 SOLARIS_FREALPATHAT_SYSCALL_FALSE='#'
12001else
12002 SOLARIS_FREALPATHAT_SYSCALL_TRUE='#'
12003 SOLARIS_FREALPATHAT_SYSCALL_FALSE=
12004fi
12005
12006
12007
12008# Solaris-specific check determining if the new uuidsys() syscall is
12009# available.
12010#
12011# New syscall (available on newer Solaris):
12012# int uuidsys(struct uuid *uuid);
12013#
12014# C-level symbol: SOLARIS_UUIDSYS_SYSCALL
12015# Automake-level symbol: SOLARIS_UUIDSYS_SYSCALL
12016#
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`uuidsys' syscall (Solaris-specific)" >&5
12018$as_echo_n "checking for the new \`uuidsys' syscall (Solaris-specific)... " >&6; }
12019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020/* end confdefs.h. */
12021
12022#include <sys/syscall.h>
12023
12024int
12025main ()
12026{
12027
12028 return !SYS_uuidsys;
12029
12030 ;
12031 return 0;
12032}
12033_ACEOF
12034if ac_fn_c_try_compile "$LINENO"; then :
12035
12036solaris_uuidsys_syscall=yes
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12038$as_echo "yes" >&6; }
12039
12040$as_echo "#define SOLARIS_UUIDSYS_SYSCALL 1" >>confdefs.h
12041
12042
12043else
12044
12045solaris_uuidsys_syscall=no
12046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047$as_echo "no" >&6; }
12048
12049fi
12050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051 if test x$solaris_uuidsys_syscall = xyes; then
12052 SOLARIS_UUIDSYS_SYSCALL_TRUE=
12053 SOLARIS_UUIDSYS_SYSCALL_FALSE='#'
12054else
12055 SOLARIS_UUIDSYS_SYSCALL_TRUE='#'
12056 SOLARIS_UUIDSYS_SYSCALL_FALSE=
12057fi
12058
12059
12060
12061# Solaris-specific check determining if the new labelsys() syscall subcode
12062# TNDB_GET_TNIP is available. This subcode was added in Solaris 11 but is
12063# missing on illumos.
12064#
12065# C-level symbol: SOLARIS_TNDB_GET_TNIP
12066# Automake-level symbol: SOLARIS_TNDB_GET_TNIP
12067#
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TNDB_GET_TNIP (Solaris-specific)" >&5
12069$as_echo_n "checking for TNDB_GET_TNIP (Solaris-specific)... " >&6; }
12070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071/* end confdefs.h. */
12072
12073#include <sys/tsol/tndb.h>
12074
12075int
12076main ()
12077{
12078
12079 return !TNDB_GET_TNIP;
12080
12081 ;
12082 return 0;
12083}
12084_ACEOF
12085if ac_fn_c_try_compile "$LINENO"; then :
12086
12087solaris_tndb_get_tnip=yes
12088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12089$as_echo "yes" >&6; }
12090
12091$as_echo "#define SOLARIS_TNDB_GET_TNIP 1" >>confdefs.h
12092
12093
12094else
12095
12096solaris_tndb_get_tnip=no
12097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098$as_echo "no" >&6; }
12099
12100fi
12101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102 if test x$solaris_tndb_get_tnip = xyes; then
12103 SOLARIS_TNDB_GET_TNIP_TRUE=
12104 SOLARIS_TNDB_GET_TNIP_FALSE='#'
12105else
12106 SOLARIS_TNDB_GET_TNIP_TRUE='#'
12107 SOLARIS_TNDB_GET_TNIP_FALSE=
12108fi
12109
12110
12111
12112# Solaris-specific check determining if the new labelsys() syscall opcodes
12113# TSOL_GETCLEARANCE and TSOL_SETCLEARANCE are available. These opcodes were
12114# added in Solaris 11 but are missing on illumos.
12115#
12116# C-level symbol: SOLARIS_TSOL_CLEARANCE
12117# Automake-level symbol: SOLARIS_TSOL_CLEARANCE
12118#
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSOL_GETCLEARANCE and TSOL_SETCLEARANCE (Solaris-specific)" >&5
12120$as_echo_n "checking for TSOL_GETCLEARANCE and TSOL_SETCLEARANCE (Solaris-specific)... " >&6; }
12121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122/* end confdefs.h. */
12123
12124#include <sys/tsol/tsyscall.h>
12125
12126int
12127main ()
12128{
12129
12130 return !(TSOL_GETCLEARANCE && TSOL_SETCLEARANCE);
12131
12132 ;
12133 return 0;
12134}
12135_ACEOF
12136if ac_fn_c_try_compile "$LINENO"; then :
12137
12138solaris_tsol_clearance=yes
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12140$as_echo "yes" >&6; }
12141
12142$as_echo "#define SOLARIS_TSOL_CLEARANCE 1" >>confdefs.h
12143
12144
12145else
12146
12147solaris_tsol_clearance=no
12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149$as_echo "no" >&6; }
12150
12151fi
12152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153 if test x$solaris_tsol_clearance = xyes; then
12154 SOLARIS_TSOL_CLEARANCE_TRUE=
12155 SOLARIS_TSOL_CLEARANCE_FALSE='#'
12156else
12157 SOLARIS_TSOL_CLEARANCE_TRUE='#'
12158 SOLARIS_TSOL_CLEARANCE_FALSE=
12159fi
12160
12161
12162
12163# Solaris-specific check determining if the new pset() syscall subcode
12164# PSET_GET_NAME is available. This subcode was added in Solaris 12 but
12165# is missing on illumos and Solaris 11.
12166#
12167# C-level symbol: SOLARIS_PSET_GET_NAME
12168# Automake-level symbol: SOLARIS_PSET_GET_NAME
12169#
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PSET_GET_NAME (Solaris-specific)" >&5
12171$as_echo_n "checking for PSET_GET_NAME (Solaris-specific)... " >&6; }
12172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173/* end confdefs.h. */
12174
12175#include <sys/pset.h>
12176
12177int
12178main ()
12179{
12180
12181 return !(PSET_GET_NAME);
12182
12183 ;
12184 return 0;
12185}
12186_ACEOF
12187if ac_fn_c_try_compile "$LINENO"; then :
12188
12189solaris_pset_get_name=yes
12190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12191$as_echo "yes" >&6; }
12192
12193$as_echo "#define SOLARIS_PSET_GET_NAME 1" >>confdefs.h
12194
12195
12196else
12197
12198solaris_pset_get_name=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_pset_get_name = xyes; then
12205 SOLARIS_PSET_GET_NAME_TRUE=
12206 SOLARIS_PSET_GET_NAME_FALSE='#'
12207else
12208 SOLARIS_PSET_GET_NAME_TRUE='#'
12209 SOLARIS_PSET_GET_NAME_FALSE=
12210fi
12211
12212
12213
12214# Solaris-specific check determining if the utimesys() syscall is
12215# available (on illumos and older Solaris).
12216#
12217# C-level symbol: SOLARIS_UTIMESYS_SYSCALL
12218# Automake-level symbol: SOLARIS_UTIMESYS_SYSCALL
12219#
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`utimesys' syscall (Solaris-specific)" >&5
12221$as_echo_n "checking for the \`utimesys' 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_utimesys;
12232
12233 ;
12234 return 0;
12235}
12236_ACEOF
12237if ac_fn_c_try_compile "$LINENO"; then :
12238
12239solaris_utimesys_syscall=yes
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12241$as_echo "yes" >&6; }
12242
12243$as_echo "#define SOLARIS_UTIMESYS_SYSCALL 1" >>confdefs.h
12244
12245
12246else
12247
12248solaris_utimesys_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_utimesys_syscall = xyes; then
12255 SOLARIS_UTIMESYS_SYSCALL_TRUE=
12256 SOLARIS_UTIMESYS_SYSCALL_FALSE='#'
12257else
12258 SOLARIS_UTIMESYS_SYSCALL_TRUE='#'
12259 SOLARIS_UTIMESYS_SYSCALL_FALSE=
12260fi
12261
12262
12263
12264# Solaris-specific check determining if the utimensat() syscall is
12265# available (on newer Solaris).
12266#
12267# C-level symbol: SOLARIS_UTIMENSAT_SYSCALL
12268# Automake-level symbol: SOLARIS_UTIMENSAT_SYSCALL
12269#
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`utimensat' syscall (Solaris-specific)" >&5
12271$as_echo_n "checking for the \`utimensat' 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_utimensat;
12282
12283 ;
12284 return 0;
12285}
12286_ACEOF
12287if ac_fn_c_try_compile "$LINENO"; then :
12288
12289solaris_utimensat_syscall=yes
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12291$as_echo "yes" >&6; }
12292
12293$as_echo "#define SOLARIS_UTIMENSAT_SYSCALL 1" >>confdefs.h
12294
12295
12296else
12297
12298solaris_utimensat_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_utimensat_syscall = xyes; then
12305 SOLARIS_UTIMENSAT_SYSCALL_TRUE=
12306 SOLARIS_UTIMENSAT_SYSCALL_FALSE='#'
12307else
12308 SOLARIS_UTIMENSAT_SYSCALL_TRUE='#'
12309 SOLARIS_UTIMENSAT_SYSCALL_FALSE=
12310fi
12311
12312
12313
12314# Solaris-specific check determining if the spawn() syscall is available
12315# (on newer Solaris).
12316#
12317# C-level symbol: SOLARIS_SPAWN_SYSCALL
12318# Automake-level symbol: SOLARIS_SPAWN_SYSCALL
12319#
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`spawn' syscall (Solaris-specific)" >&5
12321$as_echo_n "checking for the \`spawn' syscall (Solaris-specific)... " >&6; }
12322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323/* end confdefs.h. */
12324
12325#include <sys/syscall.h>
12326
12327int
12328main ()
12329{
12330
12331 return !SYS_spawn;
12332
12333 ;
12334 return 0;
12335}
12336_ACEOF
12337if ac_fn_c_try_compile "$LINENO"; then :
12338
12339solaris_spawn_syscall=yes
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12341$as_echo "yes" >&6; }
12342
12343$as_echo "#define SOLARIS_SPAWN_SYSCALL 1" >>confdefs.h
12344
12345
12346else
12347
12348solaris_spawn_syscall=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_spawn_syscall = xyes; then
12355 SOLARIS_SPAWN_SYSCALL_TRUE=
12356 SOLARIS_SPAWN_SYSCALL_FALSE='#'
12357else
12358 SOLARIS_SPAWN_SYSCALL_TRUE='#'
12359 SOLARIS_SPAWN_SYSCALL_FALSE=
12360fi
12361
12362
12363
12364# Solaris-specific check determining if commands MODNVL_CTRLMAP through
12365# MODDEVINFO_CACHE_TS for modctl() syscall are available (on newer Solaris).
12366#
12367# C-level symbol: SOLARIS_MODCTL_MODNVL
12368# Automake-level symbol: SOLARIS_MODCTL_MODNVL
12369#
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MODNVL_CTRLMAP through MODDEVINFO_CACHE_TS modctl(2) commands (Solaris-specific)" >&5
12371$as_echo_n "checking for MODNVL_CTRLMAP through MODDEVINFO_CACHE_TS modctl(2) commands (Solaris-specific)... " >&6; }
12372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373/* end confdefs.h. */
12374
12375#include <sys/modctl.h>
12376
12377int
12378main ()
12379{
12380
12381 return !(MODNVL_CTRLMAP && MODDEVINFO_CACHE_TS);
12382
12383 ;
12384 return 0;
12385}
12386_ACEOF
12387if ac_fn_c_try_compile "$LINENO"; then :
12388
12389solaris_modctl_modnvl=yes
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12391$as_echo "yes" >&6; }
12392
12393$as_echo "#define SOLARIS_MODCTL_MODNVL 1" >>confdefs.h
12394
12395
12396else
12397
12398solaris_modctl_modnvl=no
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400$as_echo "no" >&6; }
12401
12402fi
12403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12404 if test x$solaris_modctl_modnvl = xyes; then
12405 SOLARIS_MODCTL_MODNVL_TRUE=
12406 SOLARIS_MODCTL_MODNVL_FALSE='#'
12407else
12408 SOLARIS_MODCTL_MODNVL_TRUE='#'
12409 SOLARIS_MODCTL_MODNVL_FALSE=
12410fi
12411
12412
12413
12414# Solaris-specific check determining whether nscd (name switch cache daemon)
12415# attaches its door at /system/volatile/name_service_door (Solaris)
12416# or at /var/run/name_service_door (illumos).
12417#
12418# Note that /var/run is a symlink to /system/volatile on Solaris
12419# but not vice versa on illumos.
12420#
12421# C-level symbol: SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE
12422# Automake-level symbol: SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE
12423#
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nscd door location (Solaris-specific)" >&5
12425$as_echo_n "checking for nscd door location (Solaris-specific)... " >&6; }
12426if test -e /system/volatile/name_service_door; then
12427 solaris_nscd_door_system_volatile=yes
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /system/volatile/name_service_door" >&5
12429$as_echo "/system/volatile/name_service_door" >&6; }
12430
12431$as_echo "#define SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE 1" >>confdefs.h
12432
12433else
12434 solaris_nscd_door_system_volatile=no
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/run/name_service_door" >&5
12436$as_echo "/var/run/name_service_door" >&6; }
12437fi
12438 if test x$solaris_nscd_door_system_volatile = xyes; then
12439 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE=
12440 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE='#'
12441else
12442 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE='#'
12443 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE=
12444fi
12445
12446
12447
12448# Solaris-specific check determining if the new gethrt() fasttrap is available.
12449#
12450# New fasttrap (available on Solaris 11):
12451# hrt_t *gethrt(void);
12452#
12453# C-level symbol: SOLARIS_GETHRT_FASTTRAP
12454# Automake-level symbol: SOLARIS_GETHRT_FASTTRAP
12455#
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`gethrt' fasttrap (Solaris-specific)" >&5
12457$as_echo_n "checking for the new \`gethrt' fasttrap (Solaris-specific)... " >&6; }
12458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459/* end confdefs.h. */
12460
12461#include <sys/trap.h>
12462
12463int
12464main ()
12465{
12466
12467 return !T_GETHRT;
12468
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473if ac_fn_c_try_compile "$LINENO"; then :
12474
12475solaris_gethrt_fasttrap=yes
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12477$as_echo "yes" >&6; }
12478
12479$as_echo "#define SOLARIS_GETHRT_FASTTRAP 1" >>confdefs.h
12480
12481
12482else
12483
12484solaris_gethrt_fasttrap=no
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486$as_echo "no" >&6; }
12487
12488fi
12489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 if test x$solaris_gethrt_fasttrap = xyes; then
12491 SOLARIS_GETHRT_FASTTRAP_TRUE=
12492 SOLARIS_GETHRT_FASTTRAP_FALSE='#'
12493else
12494 SOLARIS_GETHRT_FASTTRAP_TRUE='#'
12495 SOLARIS_GETHRT_FASTTRAP_FALSE=
12496fi
12497
12498
12499
12500# Solaris-specific check determining if the new get_zone_offset() fasttrap
12501# is available.
12502#
12503# New fasttrap (available on Solaris 11):
12504# zonehrtoffset_t *get_zone_offset(void);
12505#
12506# C-level symbol: SOLARIS_GETZONEOFFSET_FASTTRAP
12507# Automake-level symbol: SOLARIS_GETZONEOFFSET_FASTTRAP
12508#
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`get_zone_offset' fasttrap (Solaris-specific)" >&5
12510$as_echo_n "checking for the new \`get_zone_offset' fasttrap (Solaris-specific)... " >&6; }
12511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512/* end confdefs.h. */
12513
12514#include <sys/trap.h>
12515
12516int
12517main ()
12518{
12519
12520 return !T_GETZONEOFFSET;
12521
12522 ;
12523 return 0;
12524}
12525_ACEOF
12526if ac_fn_c_try_compile "$LINENO"; then :
12527
12528solaris_getzoneoffset_fasttrap=yes
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12530$as_echo "yes" >&6; }
12531
12532$as_echo "#define SOLARIS_GETZONEOFFSET_FASTTRAP 1" >>confdefs.h
12533
12534
12535else
12536
12537solaris_getzoneoffset_fasttrap=no
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539$as_echo "no" >&6; }
12540
12541fi
12542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543 if test x$solaris_getzoneoffset_fasttrap = xyes; then
12544 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE=
12545 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE='#'
12546else
12547 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE='#'
12548 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE=
12549fi
12550
12551
12552
12553# Solaris-specific check determining if the execve() syscall
12554# takes fourth argument (flags) or not.
12555#
12556# Old syscall (available on illumos):
12557# int execve(const char *fname, const char **argv, const char **envp);
12558#
12559# New syscall (available on Solaris):
12560# int execve(uintptr_t file, const char **argv, const char **envp, int flags);
12561#
12562# If the new syscall is present then it will fail with EINVAL (because flags
12563# are invalid); if the old syscall is available then it will fail with ENOENT
12564# (because the file could not be found).
12565#
12566# C-level symbol: SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS
12567# Automake-level symbol: SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS
12568#
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the \`execve' syscall accepts flags (Solaris-specific)" >&5
12570$as_echo_n "checking if the \`execve' syscall accepts flags (Solaris-specific)... " >&6; }
12571if test "$cross_compiling" = yes; then :
12572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12574as_fn_error $? "cannot run test program while cross compiling
12575See \`config.log' for more details" "$LINENO" 5; }
12576else
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578/* end confdefs.h. */
12579
12580#include <sys/syscall.h>
12581#include <errno.h>
12582
12583int
12584main ()
12585{
12586
12587 errno = 0;
12588 syscall(SYS_execve, "/no/existing/path", 0, 0, 0xdeadbeef, 0, 0);
12589 return !(errno == EINVAL);
12590
12591 ;
12592 return 0;
12593}
12594_ACEOF
12595if ac_fn_c_try_run "$LINENO"; then :
12596
12597solaris_execve_syscall_takes_flags=yes
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12599$as_echo "yes" >&6; }
12600
12601$as_echo "#define SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS 1" >>confdefs.h
12602
12603
12604else
12605
12606solaris_execve_syscall_takes_flags=no
12607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608$as_echo "no" >&6; }
12609
12610fi
12611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12612 conftest.$ac_objext conftest.beam conftest.$ac_ext
12613fi
12614
12615 if test x$solaris_execve_syscall_takes_flags = xyes; then
12616 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE=
12617 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE='#'
12618else
12619 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE='#'
12620 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE=
12621fi
12622
12623
12624
12625# Solaris-specific check determining version of the repository cache protocol.
12626# Every Solaris version uses a different one, ranging from 21 to current 25.
12627# The check is very ugly, though.
12628#
12629# C-level symbol: SOLARIS_REPCACHE_PROTOCOL_VERSION vv
12630# Automake-level symbol: none
12631#
12632# Extract the first word of "dis", so it can be a program name with args.
12633set dummy dis; ac_word=$2
12634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635$as_echo_n "checking for $ac_word... " >&6; }
12636if ${ac_cv_path_DIS_PATH+:} false; then :
12637 $as_echo_n "(cached) " >&6
12638else
12639 case $DIS_PATH in
12640 [\\/]* | ?:[\\/]*)
12641 ac_cv_path_DIS_PATH="$DIS_PATH" # Let the user override the test with a path.
12642 ;;
12643 *)
12644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12645for as_dir in $PATH
12646do
12647 IFS=$as_save_IFS
12648 test -z "$as_dir" && as_dir=.
12649 for ac_exec_ext in '' $ac_executable_extensions; do
12650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12651 ac_cv_path_DIS_PATH="$as_dir/$ac_word$ac_exec_ext"
12652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12653 break 2
12654 fi
12655done
12656 done
12657IFS=$as_save_IFS
12658
12659 test -z "$ac_cv_path_DIS_PATH" && ac_cv_path_DIS_PATH="false"
12660 ;;
12661esac
12662fi
12663DIS_PATH=$ac_cv_path_DIS_PATH
12664if test -n "$DIS_PATH"; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIS_PATH" >&5
12666$as_echo "$DIS_PATH" >&6; }
12667else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669$as_echo "no" >&6; }
12670fi
12671
12672
12673if test "x$DIS_PATH" = "xfalse"; then
12674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12676as_fn_error $? "Object code disassembler (\`dis') not found.
12677See \`config.log' for more details" "$LINENO" 5; }
12678fi
12679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scf_handle_bind in -lscf" >&5
12680$as_echo_n "checking for scf_handle_bind in -lscf... " >&6; }
12681if ${ac_cv_lib_scf_scf_handle_bind+:} false; then :
12682 $as_echo_n "(cached) " >&6
12683else
12684 ac_check_lib_save_LIBS=$LIBS
12685LIBS="-lscf $LIBS"
12686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687/* end confdefs.h. */
12688
12689/* Override any GCC internal prototype to avoid an error.
12690 Use char because int might match the return type of a GCC
12691 builtin and then its argument prototype would still apply. */
12692#ifdef __cplusplus
12693extern "C"
12694#endif
12695char scf_handle_bind ();
12696int
12697main ()
12698{
12699return scf_handle_bind ();
12700 ;
12701 return 0;
12702}
12703_ACEOF
12704if ac_fn_c_try_link "$LINENO"; then :
12705 ac_cv_lib_scf_scf_handle_bind=yes
12706else
12707 ac_cv_lib_scf_scf_handle_bind=no
12708fi
12709rm -f core conftest.err conftest.$ac_objext \
12710 conftest$ac_exeext conftest.$ac_ext
12711LIBS=$ac_check_lib_save_LIBS
12712fi
12713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_scf_handle_bind" >&5
12714$as_echo "$ac_cv_lib_scf_scf_handle_bind" >&6; }
12715if test "x$ac_cv_lib_scf_scf_handle_bind" = xyes; then :
12716 cat >>confdefs.h <<_ACEOF
12717#define HAVE_LIBSCF 1
12718_ACEOF
12719
12720 LIBS="-lscf $LIBS"
12721
12722else
12723
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Function \`scf_handle_bind' was not found in \`libscf'." >&5
12725$as_echo "$as_me: WARNING: Function \`scf_handle_bind' was not found in \`libscf'." >&2;}
12726 as_fn_error $? "Cannot determine version of the repository cache protocol." "$LINENO" 5
12727
12728fi
12729
12730
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of the repository cache protocol (Solaris-specific)" >&5
12732$as_echo_n "checking for version of the repository cache protocol (Solaris-specific)... " >&6; }
12733if test "X$VGCONF_ARCH_PRI" = "Xamd64"; then
12734 libscf=/usr/lib/64/libscf.so.1
12735else
12736 libscf=/usr/lib/libscf.so.1
12737fi
12738if ! $DIS_PATH -F scf_handle_bind $libscf | grep -q 0x526570; then
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Function \`scf_handle_bind' does not contain repository cache protocol version." >&5
12740$as_echo "$as_me: WARNING: Function \`scf_handle_bind' does not contain repository cache protocol version." >&2;}
12741 as_fn_error $? "Cannot determine version of the repository cache protocol." "$LINENO" 5
12742fi
12743hex=$( $DIS_PATH -F scf_handle_bind $libscf | sed -n 's/.*0x526570\(..\).*/\1/p' )
12744if test -z "$hex"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Version of the repository cache protocol is empty?!" >&5
12746$as_echo "$as_me: WARNING: Version of the repository cache protocol is empty?!" >&2;}
12747 as_fn_error $? "Cannot determine version of the repository cache protocol." "$LINENO" 5
12748fi
12749version=$( printf "%d\n" 0x$hex )
12750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
12751$as_echo "$version" >&6; }
12752
12753cat >>confdefs.h <<_ACEOF
12754#define SOLARIS_REPCACHE_PROTOCOL_VERSION $version
12755_ACEOF
12756
12757
12758
12759# Solaris-specific check determining if "sysstat" segment reservation type
12760# is available.
12761#
12762# New "sysstat" segment reservation (available on Solaris 12):
12763# - program header type: PT_SUNW_SYSSTAT
12764# - auxiliary vector entry: AT_SUN_SYSSTAT_ADDR
12765#
12766# C-level symbol: SOLARIS_RESERVE_SYSSTAT_ADDR
12767# Automake-level symbol: SOLARIS_RESERVE_SYSSTAT_ADDR
12768#
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`sysstat' segment reservation (Solaris-specific)" >&5
12770$as_echo_n "checking for the new \`sysstat' segment reservation (Solaris-specific)... " >&6; }
12771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772/* end confdefs.h. */
12773
12774#include <sys/auxv.h>
12775
12776int
12777main ()
12778{
12779
12780 return !AT_SUN_SYSSTAT_ADDR;
12781
12782 ;
12783 return 0;
12784}
12785_ACEOF
12786if ac_fn_c_try_compile "$LINENO"; then :
12787
12788solaris_reserve_sysstat_addr=yes
12789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12790$as_echo "yes" >&6; }
12791
12792$as_echo "#define SOLARIS_RESERVE_SYSSTAT_ADDR 1" >>confdefs.h
12793
12794
12795else
12796
12797solaris_reserve_sysstat_addr=no
12798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799$as_echo "no" >&6; }
12800
12801fi
12802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803 if test x$solaris_reserve_sysstat_addr = xyes; then
12804 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE=
12805 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE='#'
12806else
12807 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE='#'
12808 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE=
12809fi
12810
12811
12812
12813# Solaris-specific check determining if "sysstat_zone" segment reservation type
12814# is available.
12815#
12816# New "sysstat_zone" segment reservation (available on Solaris 12):
12817# - program header type: PT_SUNW_SYSSTAT_ZONE
12818# - auxiliary vector entry: AT_SUN_SYSSTAT_ZONE_ADDR
12819#
12820# C-level symbol: SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR
12821# Automake-level symbol: SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR
12822#
12823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`sysstat_zone' segment reservation (Solaris-specific)" >&5
12824$as_echo_n "checking for the new \`sysstat_zone' segment reservation (Solaris-specific)... " >&6; }
12825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826/* end confdefs.h. */
12827
12828#include <sys/auxv.h>
12829
12830int
12831main ()
12832{
12833
12834 return !AT_SUN_SYSSTAT_ZONE_ADDR;
12835
12836 ;
12837 return 0;
12838}
12839_ACEOF
12840if ac_fn_c_try_compile "$LINENO"; then :
12841
12842solaris_reserve_sysstat_zone_addr=yes
12843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12844$as_echo "yes" >&6; }
12845
12846$as_echo "#define SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR 1" >>confdefs.h
12847
12848
12849else
12850
12851solaris_reserve_sysstat_zone_addr=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_reserve_sysstat_zone_addr = xyes; then
12858 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE=
12859 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE='#'
12860else
12861 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE='#'
12862 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE=
12863fi
12864
12865
12866
12867# Solaris-specific check determining if the system_stats() syscall is available
12868# (on newer Solaris).
12869#
12870# C-level symbol: SOLARIS_SYSTEM_STATS_SYSCALL
12871# Automake-level symbol: SOLARIS_SYSTEM_STATS_SYSCALL
12872#
12873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`system_stats' syscall (Solaris-specific)" >&5
12874$as_echo_n "checking for the \`system_stats' syscall (Solaris-specific)... " >&6; }
12875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876/* end confdefs.h. */
12877
12878#include <sys/syscall.h>
12879
12880int
12881main ()
12882{
12883
12884 return !SYS_system_stats;
12885
12886 ;
12887 return 0;
12888}
12889_ACEOF
12890if ac_fn_c_try_compile "$LINENO"; then :
12891
12892solaris_system_stats_syscall=yes
12893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12894$as_echo "yes" >&6; }
12895
12896$as_echo "#define SOLARIS_SYSTEM_STATS_SYSCALL 1" >>confdefs.h
12897
12898
12899else
12900
12901solaris_system_stats_syscall=no
12902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903$as_echo "no" >&6; }
12904
12905fi
12906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12907 if test x$solaris_system_stats_syscall = xyes; then
12908 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE=
12909 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE='#'
12910else
12911 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE='#'
12912 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE=
12913fi
12914
12915
12916
12917# Solaris-specific check determining if fpregset_t defines struct _fpchip_state
12918# (on newer illumos) or struct fpchip_state (Solaris, older illumos).
12919#
12920# C-level symbol: SOLARIS_FPCHIP_STATE_TAKES_UNDERSCORE
12921# Automake-level symbol: none
12922#
12923ac_fn_c_check_type "$LINENO" "struct _fpchip_state" "ac_cv_type_struct__fpchip_state" "#include <sys/regset.h>
12924"
12925if test "x$ac_cv_type_struct__fpchip_state" = xyes; then :
12926 solaris_fpchip_state_takes_underscore=yes
12927else
12928 solaris_fpchip_state_takes_underscore=no
12929fi
12930
12931if test "$solaris_fpchip_state_takes_underscore" = "yes"; then
12932
12933$as_echo "#define SOLARIS_FPCHIP_STATE_TAKES_UNDERSCORE 1" >>confdefs.h
12934
12935fi
12936
12937
12938# Solaris-specific check determining if schedctl page shared between kernel
12939# and userspace program is executable (illumos, older Solaris) or not (newer
12940# Solaris).
12941#
12942# C-level symbol: SOLARIS_SCHEDCTL_PAGE_EXEC
12943# Automake-level symbol: none
12944#
12945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if schedctl page is executable (Solaris-specific)" >&5
12946$as_echo_n "checking if schedctl page is executable (Solaris-specific)... " >&6; }
12947if test "$cross_compiling" = yes; then :
12948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12950as_fn_error $? "cannot run test program while cross compiling
12951See \`config.log' for more details" "$LINENO" 5; }
12952else
12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954/* end confdefs.h. */
12955
12956#include <assert.h>
12957#include <fcntl.h>
12958#include <procfs.h>
12959#include <schedctl.h>
12960#include <stdio.h>
12961#include <unistd.h>
12962
12963int
12964main ()
12965{
12966
12967 schedctl_t *scp = schedctl_init();
12968 if (scp == NULL)
12969 return 1;
12970
12971 int fd = open("/proc/self/map", O_RDONLY);
12972 assert(fd >= 0);
12973
12974 prmap_t map;
12975 ssize_t rd;
12976 while ((rd = read(fd, &map, sizeof(map))) == sizeof(map)) {
12977 if (map.pr_vaddr == ((uintptr_t) scp & PAGEMASK)) {
12978 fprintf(stderr, "%#lx [%zu] %s\n", map.pr_vaddr, map.pr_size,
12979 (map.pr_mflags & MA_EXEC) ? "x" : "no-x");
12980 return (map.pr_mflags & MA_EXEC);
12981 }
12982 }
12983
12984 return 1;
12985
12986 ;
12987 return 0;
12988}
12989_ACEOF
12990if ac_fn_c_try_run "$LINENO"; then :
12991
12992solaris_schedctl_page_exec=no
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994$as_echo "no" >&6; }
12995
12996else
12997
12998solaris_schedctl_page_exec=yes
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13000$as_echo "yes" >&6; }
13001
13002$as_echo "#define SOLARIS_SCHEDCTL_PAGE_EXEC 1" >>confdefs.h
13003
13004
13005fi
13006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13007 conftest.$ac_objext conftest.beam conftest.$ac_ext
13008fi
13009
13010
13011
13012# Solaris-specific check determining if PT_SUNWDTRACE program header provides
13013# scratch space for DTrace fasttrap provider (illumos, older Solaris) or just
13014# an initial thread pointer for libc (newer Solaris).
13015#
13016# C-level symbol: SOLARIS_PT_SUNDWTRACE_THRP
13017# Automake-level symbol: none
13018#
13019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if PT_SUNWDTRACE serves for initial thread pointer (Solaris-specific)" >&5
13020$as_echo_n "checking if PT_SUNWDTRACE serves for initial thread pointer (Solaris-specific)... " >&6; }
13021if test "$cross_compiling" = yes; then :
13022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13024as_fn_error $? "cannot run test program while cross compiling
13025See \`config.log' for more details" "$LINENO" 5; }
13026else
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028/* end confdefs.h. */
13029
13030#include <sys/fasttrap_isa.h>
13031
13032int
13033main ()
13034{
13035
13036 return !FT_SCRATCHSIZE;
13037
13038 ;
13039 return 0;
13040}
13041_ACEOF
13042if ac_fn_c_try_run "$LINENO"; then :
13043
13044solaris_pt_sunwdtrace_thrp=yes
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13046$as_echo "yes" >&6; }
13047
13048$as_echo "#define SOLARIS_PT_SUNDWTRACE_THRP 1" >>confdefs.h
13049
13050
13051else
13052
13053solaris_pt_sunwdtrace_thrp=no
13054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055$as_echo "no" >&6; }
13056
13057fi
13058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13059 conftest.$ac_objext conftest.beam conftest.$ac_ext
13060fi
13061
13062
13063else
13064 if false; then
13065 SOLARIS_SUN_STUDIO_AS_TRUE=
13066 SOLARIS_SUN_STUDIO_AS_FALSE='#'
13067else
13068 SOLARIS_SUN_STUDIO_AS_TRUE='#'
13069 SOLARIS_SUN_STUDIO_AS_FALSE=
13070fi
13071
13072 if false; then
13073 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE=
13074 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE='#'
13075else
13076 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE='#'
13077 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE=
13078fi
13079
13080 if false; then
13081 SOLARIS_PROC_CMDLINE_TRUE=
13082 SOLARIS_PROC_CMDLINE_FALSE='#'
13083else
13084 SOLARIS_PROC_CMDLINE_TRUE='#'
13085 SOLARIS_PROC_CMDLINE_FALSE=
13086fi
13087
13088 if false; then
13089 SOLARIS_OLD_SYSCALLS_TRUE=
13090 SOLARIS_OLD_SYSCALLS_FALSE='#'
13091else
13092 SOLARIS_OLD_SYSCALLS_TRUE='#'
13093 SOLARIS_OLD_SYSCALLS_FALSE=
13094fi
13095
13096 if false; then
13097 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE=
13098 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE='#'
13099else
13100 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE='#'
13101 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE=
13102fi
13103
13104 if false; then
13105 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE=
13106 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE='#'
13107else
13108 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE='#'
13109 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE=
13110fi
13111
13112 if false; then
13113 SOLARIS_LWP_NAME_SYSCALL_TRUE=
13114 SOLARIS_LWP_NAME_SYSCALL_FALSE='#'
13115else
13116 SOLARIS_LWP_NAME_SYSCALL_TRUE='#'
13117 SOLARIS_LWP_NAME_SYSCALL_FALSE=
13118fi
13119
13120 if false; then
13121 SOLARIS_GETRANDOM_SYSCALL_TRUE=
13122 SOLARIS_GETRANDOM_SYSCALL_FALSE='#'
13123else
13124 SOLARIS_GETRANDOM_SYSCALL_TRUE='#'
13125 SOLARIS_GETRANDOM_SYSCALL_FALSE=
13126fi
13127
13128 if false; then
13129 SOLARIS_ZONE_DEFUNCT_TRUE=
13130 SOLARIS_ZONE_DEFUNCT_FALSE='#'
13131else
13132 SOLARIS_ZONE_DEFUNCT_TRUE='#'
13133 SOLARIS_ZONE_DEFUNCT_FALSE=
13134fi
13135
13136 if false; then
13137 SOLARIS_AUDITON_STAT_TRUE=
13138 SOLARIS_AUDITON_STAT_FALSE='#'
13139else
13140 SOLARIS_AUDITON_STAT_TRUE='#'
13141 SOLARIS_AUDITON_STAT_FALSE=
13142fi
13143
13144 if false; then
13145 SOLARIS_SHM_NEW_TRUE=
13146 SOLARIS_SHM_NEW_FALSE='#'
13147else
13148 SOLARIS_SHM_NEW_TRUE='#'
13149 SOLARIS_SHM_NEW_FALSE=
13150fi
13151
13152 if false; then
13153 SOLARIS_PRXREGSET_T_TRUE=
13154 SOLARIS_PRXREGSET_T_FALSE='#'
13155else
13156 SOLARIS_PRXREGSET_T_TRUE='#'
13157 SOLARIS_PRXREGSET_T_FALSE=
13158fi
13159
13160 if false; then
13161 SOLARIS_FREALPATHAT_SYSCALL_TRUE=
13162 SOLARIS_FREALPATHAT_SYSCALL_FALSE='#'
13163else
13164 SOLARIS_FREALPATHAT_SYSCALL_TRUE='#'
13165 SOLARIS_FREALPATHAT_SYSCALL_FALSE=
13166fi
13167
13168 if false; then
13169 SOLARIS_UUIDSYS_SYSCALL_TRUE=
13170 SOLARIS_UUIDSYS_SYSCALL_FALSE='#'
13171else
13172 SOLARIS_UUIDSYS_SYSCALL_TRUE='#'
13173 SOLARIS_UUIDSYS_SYSCALL_FALSE=
13174fi
13175
13176 if false; then
13177 SOLARIS_TNDB_GET_TNIP_TRUE=
13178 SOLARIS_TNDB_GET_TNIP_FALSE='#'
13179else
13180 SOLARIS_TNDB_GET_TNIP_TRUE='#'
13181 SOLARIS_TNDB_GET_TNIP_FALSE=
13182fi
13183
13184 if false; then
13185 SOLARIS_TSOL_CLEARANCE_TRUE=
13186 SOLARIS_TSOL_CLEARANCE_FALSE='#'
13187else
13188 SOLARIS_TSOL_CLEARANCE_TRUE='#'
13189 SOLARIS_TSOL_CLEARANCE_FALSE=
13190fi
13191
13192 if false; then
13193 SOLARIS_PSET_GET_NAME_TRUE=
13194 SOLARIS_PSET_GET_NAME_FALSE='#'
13195else
13196 SOLARIS_PSET_GET_NAME_TRUE='#'
13197 SOLARIS_PSET_GET_NAME_FALSE=
13198fi
13199
13200 if false; then
13201 SOLARIS_UTIMESYS_SYSCALL_TRUE=
13202 SOLARIS_UTIMESYS_SYSCALL_FALSE='#'
13203else
13204 SOLARIS_UTIMESYS_SYSCALL_TRUE='#'
13205 SOLARIS_UTIMESYS_SYSCALL_FALSE=
13206fi
13207
13208 if false; then
13209 SOLARIS_UTIMENSAT_SYSCALL_TRUE=
13210 SOLARIS_UTIMENSAT_SYSCALL_FALSE='#'
13211else
13212 SOLARIS_UTIMENSAT_SYSCALL_TRUE='#'
13213 SOLARIS_UTIMENSAT_SYSCALL_FALSE=
13214fi
13215
13216 if false; then
13217 SOLARIS_SPAWN_SYSCALL_TRUE=
13218 SOLARIS_SPAWN_SYSCALL_FALSE='#'
13219else
13220 SOLARIS_SPAWN_SYSCALL_TRUE='#'
13221 SOLARIS_SPAWN_SYSCALL_FALSE=
13222fi
13223
13224 if false; then
13225 SOLARIS_MODCTL_MODNVL_TRUE=
13226 SOLARIS_MODCTL_MODNVL_FALSE='#'
13227else
13228 SOLARIS_MODCTL_MODNVL_TRUE='#'
13229 SOLARIS_MODCTL_MODNVL_FALSE=
13230fi
13231
13232 if false; then
13233 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE=
13234 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE='#'
13235else
13236 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE='#'
13237 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE=
13238fi
13239
13240 if false; then
13241 SOLARIS_GETHRT_FASTTRAP_TRUE=
13242 SOLARIS_GETHRT_FASTTRAP_FALSE='#'
13243else
13244 SOLARIS_GETHRT_FASTTRAP_TRUE='#'
13245 SOLARIS_GETHRT_FASTTRAP_FALSE=
13246fi
13247
13248 if false; then
13249 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE=
13250 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE='#'
13251else
13252 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE='#'
13253 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE=
13254fi
13255
13256 if false; then
13257 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE=
13258 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE='#'
13259else
13260 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE='#'
13261 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE=
13262fi
13263
13264 if false; then
13265 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE=
13266 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE='#'
13267else
13268 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE='#'
13269 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE=
13270fi
13271
13272 if false; then
13273 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE=
13274 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE='#'
13275else
13276 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE='#'
13277 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE=
13278fi
13279
13280 if false; then
13281 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE=
13282 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE='#'
13283else
13284 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE='#'
13285 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE=
13286fi
13287
13288fi # test "$VGCONF_OS" = "solaris"
13289
13290
13291#----------------------------------------------------------------------------
13292# Checks for C header files.
13293#----------------------------------------------------------------------------
13294
13295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13296$as_echo_n "checking for ANSI C header files... " >&6; }
13297if ${ac_cv_header_stdc+:} false; then :
13298 $as_echo_n "(cached) " >&6
13299else
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301/* end confdefs.h. */
13302#include <stdlib.h>
13303#include <stdarg.h>
13304#include <string.h>
13305#include <float.h>
13306
13307int
13308main ()
13309{
13310
13311 ;
13312 return 0;
13313}
13314_ACEOF
13315if ac_fn_c_try_compile "$LINENO"; then :
13316 ac_cv_header_stdc=yes
13317else
13318 ac_cv_header_stdc=no
13319fi
13320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321
13322if test $ac_cv_header_stdc = yes; then
13323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325/* end confdefs.h. */
13326#include <string.h>
13327
13328_ACEOF
13329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13330 $EGREP "memchr" >/dev/null 2>&1; then :
13331
13332else
13333 ac_cv_header_stdc=no
13334fi
13335rm -f conftest*
13336
13337fi
13338
13339if test $ac_cv_header_stdc = yes; then
13340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342/* end confdefs.h. */
13343#include <stdlib.h>
13344
13345_ACEOF
13346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13347 $EGREP "free" >/dev/null 2>&1; then :
13348
13349else
13350 ac_cv_header_stdc=no
13351fi
13352rm -f conftest*
13353
13354fi
13355
13356if test $ac_cv_header_stdc = yes; then
13357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13358 if test "$cross_compiling" = yes; then :
13359 :
13360else
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362/* end confdefs.h. */
13363#include <ctype.h>
13364#include <stdlib.h>
13365#if ((' ' & 0x0FF) == 0x020)
13366# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13367# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13368#else
13369# define ISLOWER(c) \
13370 (('a' <= (c) && (c) <= 'i') \
13371 || ('j' <= (c) && (c) <= 'r') \
13372 || ('s' <= (c) && (c) <= 'z'))
13373# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13374#endif
13375
13376#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13377int
13378main ()
13379{
13380 int i;
13381 for (i = 0; i < 256; i++)
13382 if (XOR (islower (i), ISLOWER (i))
13383 || toupper (i) != TOUPPER (i))
13384 return 2;
13385 return 0;
13386}
13387_ACEOF
13388if ac_fn_c_try_run "$LINENO"; then :
13389
13390else
13391 ac_cv_header_stdc=no
13392fi
13393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13394 conftest.$ac_objext conftest.beam conftest.$ac_ext
13395fi
13396
13397fi
13398fi
13399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13400$as_echo "$ac_cv_header_stdc" >&6; }
13401if test $ac_cv_header_stdc = yes; then
13402
13403$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13404
13405fi
13406
13407for ac_header in \
13408 asm/unistd.h \
13409 endian.h \
13410 mqueue.h \
13411 sys/endian.h \
13412 sys/epoll.h \
13413 sys/eventfd.h \
13414 sys/klog.h \
13415 sys/poll.h \
13416 sys/prctl.h \
13417 sys/signal.h \
13418 sys/signalfd.h \
13419 sys/syscall.h \
13420 sys/sysnvl.h \
13421 sys/time.h \
13422 sys/types.h \
13423
13424do :
13425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13426ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13427if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13428 cat >>confdefs.h <<_ACEOF
13429#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13430_ACEOF
13431
13432fi
13433
13434done
13435
13436
13437# Verify whether the <linux/futex.h> header is usable.
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if <linux/futex.h> is usable" >&5
13439$as_echo_n "checking if <linux/futex.h> is usable... " >&6; }
13440
13441save_CFLAGS="$CFLAGS"
13442CFLAGS="$CFLAGS -D__user="
13443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444/* end confdefs.h. */
13445
13446#include <linux/futex.h>
13447
13448int
13449main ()
13450{
13451
13452 return FUTEX_WAIT;
13453
13454 ;
13455 return 0;
13456}
13457_ACEOF
13458if ac_fn_c_try_compile "$LINENO"; then :
13459
13460ac_have_usable_linux_futex_h=yes
13461
13462$as_echo "#define HAVE_USABLE_LINUX_FUTEX_H 1" >>confdefs.h
13463
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13465$as_echo "yes" >&6; }
13466
13467else
13468
13469ac_have_usable_linux_futex_h=no
13470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471$as_echo "no" >&6; }
13472
13473fi
13474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475CFLAGS="$save_CFLAGS"
13476
13477
13478#----------------------------------------------------------------------------
13479# Checks for typedefs, structures, and compiler characteristics.
13480#----------------------------------------------------------------------------
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13482$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13483if ${ac_cv_type_uid_t+:} false; then :
13484 $as_echo_n "(cached) " >&6
13485else
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487/* end confdefs.h. */
13488#include <sys/types.h>
13489
13490_ACEOF
13491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13492 $EGREP "uid_t" >/dev/null 2>&1; then :
13493 ac_cv_type_uid_t=yes
13494else
13495 ac_cv_type_uid_t=no
13496fi
13497rm -f conftest*
13498
13499fi
13500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13501$as_echo "$ac_cv_type_uid_t" >&6; }
13502if test $ac_cv_type_uid_t = no; then
13503
13504$as_echo "#define uid_t int" >>confdefs.h
13505
13506
13507$as_echo "#define gid_t int" >>confdefs.h
13508
13509fi
13510
13511ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13512if test "x$ac_cv_type_off_t" = xyes; then :
13513
13514else
13515
13516cat >>confdefs.h <<_ACEOF
13517#define off_t long int
13518_ACEOF
13519
13520fi
13521
13522ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13523if test "x$ac_cv_type_size_t" = xyes; then :
13524
13525else
13526
13527cat >>confdefs.h <<_ACEOF
13528#define size_t unsigned int
13529_ACEOF
13530
13531fi
13532
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13534$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13535if ${ac_cv_header_time+:} false; then :
13536 $as_echo_n "(cached) " >&6
13537else
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539/* end confdefs.h. */
13540#include <sys/types.h>
13541#include <sys/time.h>
13542#include <time.h>
13543
13544int
13545main ()
13546{
13547if ((struct tm *) 0)
13548return 0;
13549 ;
13550 return 0;
13551}
13552_ACEOF
13553if ac_fn_c_try_compile "$LINENO"; then :
13554 ac_cv_header_time=yes
13555else
13556 ac_cv_header_time=no
13557fi
13558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13559fi
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13561$as_echo "$ac_cv_header_time" >&6; }
13562if test $ac_cv_header_time = yes; then
13563
13564$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13565
13566fi
13567
13568
13569
13570#----------------------------------------------------------------------------
13571# Checks for library functions.
13572#----------------------------------------------------------------------------
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
13574$as_echo_n "checking for working memcmp... " >&6; }
13575if ${ac_cv_func_memcmp_working+:} false; then :
13576 $as_echo_n "(cached) " >&6
13577else
13578 if test "$cross_compiling" = yes; then :
13579 ac_cv_func_memcmp_working=no
13580else
13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582/* end confdefs.h. */
13583$ac_includes_default
13584int
13585main ()
13586{
13587
13588 /* Some versions of memcmp are not 8-bit clean. */
13589 char c0 = '\100', c1 = '\200', c2 = '\201';
13590 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13591 return 1;
13592
13593 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13594 or more and with at least one buffer not starting on a 4-byte boundary.
13595 William Lewis provided this test program. */
13596 {
13597 char foo[21];
13598 char bar[21];
13599 int i;
13600 for (i = 0; i < 4; i++)
13601 {
13602 char *a = foo + i;
13603 char *b = bar + i;
13604 strcpy (a, "--------01111111");
13605 strcpy (b, "--------10000000");
13606 if (memcmp (a, b, 16) >= 0)
13607 return 1;
13608 }
13609 return 0;
13610 }
13611
13612 ;
13613 return 0;
13614}
13615_ACEOF
13616if ac_fn_c_try_run "$LINENO"; then :
13617 ac_cv_func_memcmp_working=yes
13618else
13619 ac_cv_func_memcmp_working=no
13620fi
13621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13622 conftest.$ac_objext conftest.beam conftest.$ac_ext
13623fi
13624
13625fi
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
13627$as_echo "$ac_cv_func_memcmp_working" >&6; }
13628test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13629 *" memcmp.$ac_objext "* ) ;;
13630 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13631 ;;
13632esac
13633
13634
13635
13636
13637
13638 for ac_header in $ac_header_list
13639do :
13640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13641ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13642"
13643if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13644 cat >>confdefs.h <<_ACEOF
13645#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13646_ACEOF
13647
13648fi
13649
13650done
13651
13652
13653
13654
13655
13656
13657
13658
13659for ac_func in getpagesize
13660do :
13661 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13662if test "x$ac_cv_func_getpagesize" = xyes; then :
13663 cat >>confdefs.h <<_ACEOF
13664#define HAVE_GETPAGESIZE 1
13665_ACEOF
13666
13667fi
13668done
13669
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13671$as_echo_n "checking for working mmap... " >&6; }
13672if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13673 $as_echo_n "(cached) " >&6
13674else
13675 if test "$cross_compiling" = yes; then :
13676 ac_cv_func_mmap_fixed_mapped=no
13677else
13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679/* end confdefs.h. */
13680$ac_includes_default
13681/* malloc might have been renamed as rpl_malloc. */
13682#undef malloc
13683
13684/* Thanks to Mike Haertel and Jim Avera for this test.
13685 Here is a matrix of mmap possibilities:
13686 mmap private not fixed
13687 mmap private fixed at somewhere currently unmapped
13688 mmap private fixed at somewhere already mapped
13689 mmap shared not fixed
13690 mmap shared fixed at somewhere currently unmapped
13691 mmap shared fixed at somewhere already mapped
13692 For private mappings, we should verify that changes cannot be read()
13693 back from the file, nor mmap's back from the file at a different
13694 address. (There have been systems where private was not correctly
13695 implemented like the infamous i386 svr4.0, and systems where the
13696 VM page cache was not coherent with the file system buffer cache
13697 like early versions of FreeBSD and possibly contemporary NetBSD.)
13698 For shared mappings, we should conversely verify that changes get
13699 propagated back to all the places they're supposed to be.
13700
13701 Grep wants private fixed already mapped.
13702 The main things grep needs to know about mmap are:
13703 * does it exist and is it safe to write into the mmap'd area
13704 * how to use it (BSD variants) */
13705
13706#include <fcntl.h>
13707#include <sys/mman.h>
13708
13709#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13710char *malloc ();
13711#endif
13712
13713/* This mess was copied from the GNU getpagesize.h. */
13714#ifndef HAVE_GETPAGESIZE
13715# ifdef _SC_PAGESIZE
13716# define getpagesize() sysconf(_SC_PAGESIZE)
13717# else /* no _SC_PAGESIZE */
13718# ifdef HAVE_SYS_PARAM_H
13719# include <sys/param.h>
13720# ifdef EXEC_PAGESIZE
13721# define getpagesize() EXEC_PAGESIZE
13722# else /* no EXEC_PAGESIZE */
13723# ifdef NBPG
13724# define getpagesize() NBPG * CLSIZE
13725# ifndef CLSIZE
13726# define CLSIZE 1
13727# endif /* no CLSIZE */
13728# else /* no NBPG */
13729# ifdef NBPC
13730# define getpagesize() NBPC
13731# else /* no NBPC */
13732# ifdef PAGESIZE
13733# define getpagesize() PAGESIZE
13734# endif /* PAGESIZE */
13735# endif /* no NBPC */
13736# endif /* no NBPG */
13737# endif /* no EXEC_PAGESIZE */
13738# else /* no HAVE_SYS_PARAM_H */
13739# define getpagesize() 8192 /* punt totally */
13740# endif /* no HAVE_SYS_PARAM_H */
13741# endif /* no _SC_PAGESIZE */
13742
13743#endif /* no HAVE_GETPAGESIZE */
13744
13745int
13746main ()
13747{
13748 char *data, *data2, *data3;
13749 const char *cdata2;
13750 int i, pagesize;
13751 int fd, fd2;
13752
13753 pagesize = getpagesize ();
13754
13755 /* First, make a file with some known garbage in it. */
13756 data = (char *) malloc (pagesize);
13757 if (!data)
13758 return 1;
13759 for (i = 0; i < pagesize; ++i)
13760 *(data + i) = rand ();
13761 umask (0);
13762 fd = creat ("conftest.mmap", 0600);
13763 if (fd < 0)
13764 return 2;
13765 if (write (fd, data, pagesize) != pagesize)
13766 return 3;
13767 close (fd);
13768
13769 /* Next, check that the tail of a page is zero-filled. File must have
13770 non-zero length, otherwise we risk SIGBUS for entire page. */
13771 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13772 if (fd2 < 0)
13773 return 4;
13774 cdata2 = "";
13775 if (write (fd2, cdata2, 1) != 1)
13776 return 5;
13777 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13778 if (data2 == MAP_FAILED)
13779 return 6;
13780 for (i = 0; i < pagesize; ++i)
13781 if (*(data2 + i))
13782 return 7;
13783 close (fd2);
13784 if (munmap (data2, pagesize))
13785 return 8;
13786
13787 /* Next, try to mmap the file at a fixed address which already has
13788 something else allocated at it. If we can, also make sure that
13789 we see the same garbage. */
13790 fd = open ("conftest.mmap", O_RDWR);
13791 if (fd < 0)
13792 return 9;
13793 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13794 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13795 return 10;
13796 for (i = 0; i < pagesize; ++i)
13797 if (*(data + i) != *(data2 + i))
13798 return 11;
13799
13800 /* Finally, make sure that changes to the mapped area do not
13801 percolate back to the file as seen by read(). (This is a bug on
13802 some variants of i386 svr4.0.) */
13803 for (i = 0; i < pagesize; ++i)
13804 *(data2 + i) = *(data2 + i) + 1;
13805 data3 = (char *) malloc (pagesize);
13806 if (!data3)
13807 return 12;
13808 if (read (fd, data3, pagesize) != pagesize)
13809 return 13;
13810 for (i = 0; i < pagesize; ++i)
13811 if (*(data + i) != *(data3 + i))
13812 return 14;
13813 close (fd);
13814 return 0;
13815}
13816_ACEOF
13817if ac_fn_c_try_run "$LINENO"; then :
13818 ac_cv_func_mmap_fixed_mapped=yes
13819else
13820 ac_cv_func_mmap_fixed_mapped=no
13821fi
13822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13823 conftest.$ac_objext conftest.beam conftest.$ac_ext
13824fi
13825
13826fi
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13828$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13829if test $ac_cv_func_mmap_fixed_mapped = yes; then
13830
13831$as_echo "#define HAVE_MMAP 1" >>confdefs.h
13832
13833fi
13834rm -f conftest.mmap conftest.txt
13835
13836
13837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13838$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13839if ${ac_cv_lib_pthread_pthread_create+:} false; then :
13840 $as_echo_n "(cached) " >&6
13841else
13842 ac_check_lib_save_LIBS=$LIBS
13843LIBS="-lpthread $LIBS"
13844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845/* end confdefs.h. */
13846
13847/* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13850#ifdef __cplusplus
13851extern "C"
13852#endif
13853char pthread_create ();
13854int
13855main ()
13856{
13857return pthread_create ();
13858 ;
13859 return 0;
13860}
13861_ACEOF
13862if ac_fn_c_try_link "$LINENO"; then :
13863 ac_cv_lib_pthread_pthread_create=yes
13864else
13865 ac_cv_lib_pthread_pthread_create=no
13866fi
13867rm -f core conftest.err conftest.$ac_objext \
13868 conftest$ac_exeext conftest.$ac_ext
13869LIBS=$ac_check_lib_save_LIBS
13870fi
13871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13872$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13873if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
13874 cat >>confdefs.h <<_ACEOF
13875#define HAVE_LIBPTHREAD 1
13876_ACEOF
13877
13878 LIBS="-lpthread $LIBS"
13879
13880fi
13881
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13883$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13884if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13885 $as_echo_n "(cached) " >&6
13886else
13887 ac_check_lib_save_LIBS=$LIBS
13888LIBS="-lrt $LIBS"
13889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890/* end confdefs.h. */
13891
13892/* Override any GCC internal prototype to avoid an error.
13893 Use char because int might match the return type of a GCC
13894 builtin and then its argument prototype would still apply. */
13895#ifdef __cplusplus
13896extern "C"
13897#endif
13898char clock_gettime ();
13899int
13900main ()
13901{
13902return clock_gettime ();
13903 ;
13904 return 0;
13905}
13906_ACEOF
13907if ac_fn_c_try_link "$LINENO"; then :
13908 ac_cv_lib_rt_clock_gettime=yes
13909else
13910 ac_cv_lib_rt_clock_gettime=no
13911fi
13912rm -f core conftest.err conftest.$ac_objext \
13913 conftest$ac_exeext conftest.$ac_ext
13914LIBS=$ac_check_lib_save_LIBS
13915fi
13916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13917$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13918if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13919 cat >>confdefs.h <<_ACEOF
13920#define HAVE_LIBRT 1
13921_ACEOF
13922
13923 LIBS="-lrt $LIBS"
13924
13925fi
13926
13927
13928for ac_func in \
13929 clock_gettime\
13930 epoll_create \
13931 epoll_pwait \
13932 klogctl \
13933 mallinfo \
13934 memchr \
13935 memset \
13936 mkdir \
13937 mremap \
13938 ppoll \
13939 pthread_barrier_init \
13940 pthread_condattr_setclock \
13941 pthread_mutex_timedlock \
13942 pthread_rwlock_timedrdlock \
13943 pthread_rwlock_timedwrlock \
13944 pthread_spin_lock \
13945 pthread_yield \
13946 pthread_setname_np \
13947 readlinkat \
13948 semtimedop \
13949 signalfd \
13950 sigwaitinfo \
13951 strchr \
13952 strdup \
13953 strpbrk \
13954 strrchr \
13955 strstr \
13956 syscall \
13957 utimensat \
13958 process_vm_readv \
13959 process_vm_writev \
13960
13961do :
13962 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13963ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13964if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13965 cat >>confdefs.h <<_ACEOF
13966#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13967_ACEOF
13968
13969fi
13970done
13971
13972
13973# AC_CHECK_LIB adds any library found to the variable LIBS, and links these
13974# libraries with any shared object and/or executable. This is NOT what we
13975# want for e.g. vgpreload_core-x86-linux.so
13976LIBS=""
13977
13978 if test x$ac_cv_func_pthread_barrier_init = xyes; then
13979 HAVE_PTHREAD_BARRIER_TRUE=
13980 HAVE_PTHREAD_BARRIER_FALSE='#'
13981else
13982 HAVE_PTHREAD_BARRIER_TRUE='#'
13983 HAVE_PTHREAD_BARRIER_FALSE=
13984fi
13985
13986 if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
13987 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
13988 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
13989else
13990 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
13991 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
13992fi
13993
13994 if test x$ac_cv_func_pthread_spin_lock = xyes; then
13995 HAVE_PTHREAD_SPINLOCK_TRUE=
13996 HAVE_PTHREAD_SPINLOCK_FALSE='#'
13997else
13998 HAVE_PTHREAD_SPINLOCK_TRUE='#'
13999 HAVE_PTHREAD_SPINLOCK_FALSE=
14000fi
14001
14002 if test x$ac_cv_func_pthread_setname_np = xyes; then
14003 HAVE_PTHREAD_SETNAME_NP_TRUE=
14004 HAVE_PTHREAD_SETNAME_NP_FALSE='#'
14005else
14006 HAVE_PTHREAD_SETNAME_NP_TRUE='#'
14007 HAVE_PTHREAD_SETNAME_NP_FALSE=
14008fi
14009
14010
14011if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \
14012 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX ; then
14013
14014$as_echo "#define DISABLE_PTHREAD_SPINLOCK_INTERCEPT 1" >>confdefs.h
14015
14016fi
14017
14018#----------------------------------------------------------------------------
14019# MPI checks
14020#----------------------------------------------------------------------------
14021# Do we have a useable MPI setup on the primary and/or secondary targets?
14022# On Linux, by default, assumes mpicc and -m32/-m64
14023# Note: this is a kludge in that it assumes the specified mpicc
14024# understands -m32/-m64 regardless of what is specified using
14025# --with-mpicc=.
14026# Extract the first word of "mpicc", so it can be a program name with args.
14027set dummy mpicc; ac_word=$2
14028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14029$as_echo_n "checking for $ac_word... " >&6; }
14030if ${ac_cv_path_MPI_CC+:} false; then :
14031 $as_echo_n "(cached) " >&6
14032else
14033 case $MPI_CC in
14034 [\\/]* | ?:[\\/]*)
14035 ac_cv_path_MPI_CC="$MPI_CC" # Let the user override the test with a path.
14036 ;;
14037 *)
14038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14039as_dummy="$PATH:/usr/lib/openmpi/bin:/usr/lib64/openmpi/bin"
14040for as_dir in $as_dummy
14041do
14042 IFS=$as_save_IFS
14043 test -z "$as_dir" && as_dir=.
14044 for ac_exec_ext in '' $ac_executable_extensions; do
14045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14046 ac_cv_path_MPI_CC="$as_dir/$ac_word$ac_exec_ext"
14047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14048 break 2
14049 fi
14050done
14051 done
14052IFS=$as_save_IFS
14053
14054 test -z "$ac_cv_path_MPI_CC" && ac_cv_path_MPI_CC="mpicc"
14055 ;;
14056esac
14057fi
14058MPI_CC=$ac_cv_path_MPI_CC
14059if test -n "$MPI_CC"; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPI_CC" >&5
14061$as_echo "$MPI_CC" >&6; }
14062else
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14064$as_echo "no" >&6; }
14065fi
14066
14067
14068
14069mflag_primary=
14070if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
14071 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
14072 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \
14073 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \
14074 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX \
14075 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS ; then
14076 mflag_primary=$FLAG_M32
14077elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
14078 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
14079 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX \
14080 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then
14081 mflag_primary=$FLAG_M64
14082elif test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN ; then
14083 mflag_primary="$FLAG_M32 -arch i386"
14084elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
14085 mflag_primary="$FLAG_M64 -arch x86_64"
14086fi
14087
14088mflag_secondary=
14089if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
14090 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
14091 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_SOLARIS ; then
14092 mflag_secondary=$FLAG_M32
14093elif test x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
14094 mflag_secondary="$FLAG_M32 -arch i386"
14095fi
14096
14097
14098
14099# Check whether --with-mpicc was given.
14100if test "${with_mpicc+set}" = set; then :
14101 withval=$with_mpicc; MPI_CC=$withval
14102
14103fi
14104
14105
14106
14107## We AM_COND_IF here instead of automake "if" in mpi/Makefile.am so that we can
14108## use these values in the check for a functioning mpicc.
14109##
14110## We leave the MPI_FLAG_M3264_ logic in mpi/Makefile.am and assume that
14111## mflag_primary/mflag_secondary are sufficient approximations of that behavior
14112
14113if test -z "$VGCONF_OS_IS_LINUX_TRUE"; then :
14114 CFLAGS_MPI="-g -O -fno-omit-frame-pointer -Wall -fpic"
14115 LDFLAGS_MPI="-fpic -shared"
14116fi
14117
14118if test -z "$VGCONF_OS_IS_DARWIN_TRUE"; then :
14119 CFLAGS_MPI="-g -O -fno-omit-frame-pointer -Wall -dynamic"
14120 LDFLAGS_MPI="-dynamic -dynamiclib -all_load"
14121fi
14122
14123if test -z "$VGCONF_OS_IS_SOLARIS_TRUE"; then :
14124 CFLAGS_MPI="-g -O -fno-omit-frame-pointer -Wall -fpic"
14125 LDFLAGS_MPI="-fpic -shared"
14126fi
14127
14128
14129
14130
14131
14132## See if MPI_CC works for the primary target
14133##
14134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
14135$as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
14136saved_CC=$CC
14137saved_CFLAGS=$CFLAGS
14138CC=$MPI_CC
14139CFLAGS="$CFLAGS_MPI $mflag_primary"
14140saved_LDFLAGS="$LDFLAGS"
14141LDFLAGS="$LDFLAGS_MPI $mflag_primary"
14142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143/* end confdefs.h. */
14144
14145#include <mpi.h>
14146#include <stdio.h>
14147
14148int
14149main ()
14150{
14151
14152 int ni, na, nd, comb;
14153 int r = MPI_Init(NULL,NULL);
14154 r |= MPI_Type_get_envelope( MPI_INT, &ni, &na, &nd, &comb );
14155 r |= MPI_Finalize();
14156 return r;
14157
14158 ;
14159 return 0;
14160}
14161_ACEOF
14162if ac_fn_c_try_link "$LINENO"; then :
14163
14164ac_have_mpi2_pri=yes
14165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
14166$as_echo "yes, $MPI_CC" >&6; }
14167
14168else
14169
14170ac_have_mpi2_pri=no
14171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172$as_echo "no" >&6; }
14173
14174fi
14175rm -f core conftest.err conftest.$ac_objext \
14176 conftest$ac_exeext conftest.$ac_ext
14177CC=$saved_CC
14178CFLAGS=$saved_CFLAGS
14179LDFLAGS="$saved_LDFLAGS"
14180 if test x$ac_have_mpi2_pri = xyes; then
14181 BUILD_MPIWRAP_PRI_TRUE=
14182 BUILD_MPIWRAP_PRI_FALSE='#'
14183else
14184 BUILD_MPIWRAP_PRI_TRUE='#'
14185 BUILD_MPIWRAP_PRI_FALSE=
14186fi
14187
14188
14189## See if MPI_CC works for the secondary target. Complication: what if
14190## there is no secondary target? We need this to then fail.
14191## Kludge this by making MPI_CC something which will surely fail in
14192## such a case.
14193##
14194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
14195$as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
14196saved_CC=$CC
14197saved_CFLAGS=$CFLAGS
14198saved_LDFLAGS="$LDFLAGS"
14199LDFLAGS="$LDFLAGS_MPI $mflag_secondary"
14200if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
14201 CC="$MPI_CC this will surely fail"
14202else
14203 CC=$MPI_CC
14204fi
14205CFLAGS="$CFLAGS_MPI $mflag_secondary"
14206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207/* end confdefs.h. */
14208
14209#include <mpi.h>
14210#include <stdio.h>
14211
14212int
14213main ()
14214{
14215
14216 int ni, na, nd, comb;
14217 int r = MPI_Init(NULL,NULL);
14218 r |= MPI_Type_get_envelope( MPI_INT, &ni, &na, &nd, &comb );
14219 r |= MPI_Finalize();
14220 return r;
14221
14222 ;
14223 return 0;
14224}
14225_ACEOF
14226if ac_fn_c_try_link "$LINENO"; then :
14227
14228ac_have_mpi2_sec=yes
14229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
14230$as_echo "yes, $MPI_CC" >&6; }
14231
14232else
14233
14234ac_have_mpi2_sec=no
14235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14236$as_echo "no" >&6; }
14237
14238fi
14239rm -f core conftest.err conftest.$ac_objext \
14240 conftest$ac_exeext conftest.$ac_ext
14241CC=$saved_CC
14242CFLAGS=$saved_CFLAGS
14243LDFLAGS="$saved_LDFLAGS"
14244 if test x$ac_have_mpi2_sec = xyes; then
14245 BUILD_MPIWRAP_SEC_TRUE=
14246 BUILD_MPIWRAP_SEC_FALSE='#'
14247else
14248 BUILD_MPIWRAP_SEC_TRUE='#'
14249 BUILD_MPIWRAP_SEC_FALSE=
14250fi
14251
14252
14253
14254#----------------------------------------------------------------------------
14255# Other library checks
14256#----------------------------------------------------------------------------
14257# There now follow some tests for Boost, and OpenMP. These
14258# tests are present because Drd has some regression tests that use
14259# these packages. All regression test programs all compiled only
14260# for the primary target. And so it is important that the configure
14261# checks that follow, use the correct -m32 or -m64 flag for the
14262# primary target (called $mflag_primary). Otherwise, we can end up
14263# in a situation (eg) where, on amd64-linux, the test for Boost checks
14264# for usable 64-bit Boost facilities, but because we are doing a 32-bit
14265# only build (meaning, the primary target is x86-linux), the build
14266# of the regtest programs that use Boost fails, because they are
14267# build as 32-bit (IN THIS EXAMPLE).
14268#
14269# Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
14270# NEEDED BY THE REGRESSION TEST PROGRAMS.
14271
14272
14273# Check whether the boost library 1.35 or later has been installed.
14274# The Boost.Threads library has undergone a major rewrite in version 1.35.0.
14275
14276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
14277$as_echo_n "checking for boost... " >&6; }
14278
14279ac_ext=cpp
14280ac_cpp='$CXXCPP $CPPFLAGS'
14281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14284
14285safe_CXXFLAGS=$CXXFLAGS
14286CXXFLAGS="$mflag_primary"
14287safe_LIBS="$LIBS"
14288LIBS="-lboost_thread-mt -lboost_system-mt $LIBS"
14289
14290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291/* end confdefs.h. */
14292
14293#include <boost/thread.hpp>
14294static void thread_func(void)
14295{ }
14296int main(int argc, char** argv)
14297{
14298 boost::thread t(thread_func);
14299 return 0;
14300}
14301
14302_ACEOF
14303if ac_fn_cxx_try_link "$LINENO"; then :
14304
14305ac_have_boost_1_35=yes
14306
14307BOOST_LIBS="-lboost_thread-mt -lboost_system-mt"
14308
14309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14310$as_echo "yes" >&6; }
14311
14312else
14313
14314ac_have_boost_1_35=no
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14316$as_echo "no" >&6; }
14317
14318fi
14319rm -f core conftest.err conftest.$ac_objext \
14320 conftest$ac_exeext conftest.$ac_ext
14321
14322LIBS="$safe_LIBS"
14323CXXFLAGS=$safe_CXXFLAGS
14324ac_ext=c
14325ac_cpp='$CPP $CPPFLAGS'
14326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14328ac_compiler_gnu=$ac_cv_c_compiler_gnu
14329
14330
14331 if test x$ac_have_boost_1_35 = xyes; then
14332 HAVE_BOOST_1_35_TRUE=
14333 HAVE_BOOST_1_35_FALSE='#'
14334else
14335 HAVE_BOOST_1_35_TRUE='#'
14336 HAVE_BOOST_1_35_FALSE=
14337fi
14338
14339
14340
14341# does this compiler support -fopenmp, does it have the include file
14342# <omp.h> and does it have libgomp ?
14343
14344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
14345$as_echo_n "checking for OpenMP... " >&6; }
14346
14347safe_CFLAGS=$CFLAGS
14348CFLAGS="-fopenmp $mflag_primary -Werror"
14349
14350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351/* end confdefs.h. */
14352
14353#include <omp.h>
14354int main(int argc, char** argv)
14355{
14356 omp_set_dynamic(0);
14357 return 0;
14358}
14359
14360_ACEOF
14361if ac_fn_c_try_link "$LINENO"; then :
14362
14363ac_have_openmp=yes
14364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14365$as_echo "yes" >&6; }
14366
14367else
14368
14369ac_have_openmp=no
14370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371$as_echo "no" >&6; }
14372
14373fi
14374rm -f core conftest.err conftest.$ac_objext \
14375 conftest$ac_exeext conftest.$ac_ext
14376CFLAGS=$safe_CFLAGS
14377
14378 if test x$ac_have_openmp = xyes; then
14379 HAVE_OPENMP_TRUE=
14380 HAVE_OPENMP_FALSE='#'
14381else
14382 HAVE_OPENMP_TRUE='#'
14383 HAVE_OPENMP_FALSE=
14384fi
14385
14386
14387
14388# Check for __builtin_popcount
14389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount()" >&5
14390$as_echo_n "checking for __builtin_popcount()... " >&6; }
14391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392/* end confdefs.h. */
14393
14394
14395int
14396main ()
14397{
14398
14399 __builtin_popcount(2);
14400 return 0;
14401
14402 ;
14403 return 0;
14404}
14405_ACEOF
14406if ac_fn_c_try_link "$LINENO"; then :
14407
14408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14409$as_echo "yes" >&6; }
14410
14411$as_echo "#define HAVE_BUILTIN_POPCOUT 1" >>confdefs.h
14412
14413
14414else
14415
14416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417$as_echo "no" >&6; }
14418
14419fi
14420rm -f core conftest.err conftest.$ac_objext \
14421 conftest$ac_exeext conftest.$ac_ext
14422
14423# Check for __builtin_clz
14424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz()" >&5
14425$as_echo_n "checking for __builtin_clz()... " >&6; }
14426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427/* end confdefs.h. */
14428
14429
14430int
14431main ()
14432{
14433
14434 __builtin_clz(2);
14435 return 0;
14436
14437 ;
14438 return 0;
14439}
14440_ACEOF
14441if ac_fn_c_try_link "$LINENO"; then :
14442
14443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14444$as_echo "yes" >&6; }
14445
14446$as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
14447
14448
14449else
14450
14451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14452$as_echo "no" >&6; }
14453
14454fi
14455rm -f core conftest.err conftest.$ac_objext \
14456 conftest$ac_exeext conftest.$ac_ext
14457
14458# Check for __builtin_ctz
14459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz()" >&5
14460$as_echo_n "checking for __builtin_ctz()... " >&6; }
14461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462/* end confdefs.h. */
14463
14464
14465int
14466main ()
14467{
14468
14469 __builtin_ctz(2);
14470 return 0;
14471
14472 ;
14473 return 0;
14474}
14475_ACEOF
14476if ac_fn_c_try_link "$LINENO"; then :
14477
14478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14479$as_echo "yes" >&6; }
14480
14481$as_echo "#define HAVE_BUILTIN_CTZ 1" >>confdefs.h
14482
14483
14484else
14485
14486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14487$as_echo "no" >&6; }
14488
14489fi
14490rm -f core conftest.err conftest.$ac_objext \
14491 conftest$ac_exeext conftest.$ac_ext
14492
14493# does this compiler have built-in functions for atomic memory access for the
14494# primary target ?
14495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_add_and_fetch for the primary target" >&5
14496$as_echo_n "checking if gcc supports __sync_add_and_fetch for the primary target... " >&6; }
14497
14498safe_CFLAGS=$CFLAGS
14499CFLAGS="$mflag_primary"
14500
14501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502/* end confdefs.h. */
14503
14504int
14505main ()
14506{
14507
14508 int variable = 1;
14509 return (__sync_bool_compare_and_swap(&variable, 1, 2)
14510 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
14511
14512 ;
14513 return 0;
14514}
14515_ACEOF
14516if ac_fn_c_try_link "$LINENO"; then :
14517
14518 ac_have_builtin_atomic_primary=yes
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14520$as_echo "yes" >&6; }
14521
14522$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
14523
14524
14525else
14526
14527 ac_have_builtin_atomic_primary=no
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14529$as_echo "no" >&6; }
14530
14531fi
14532rm -f core conftest.err conftest.$ac_objext \
14533 conftest$ac_exeext conftest.$ac_ext
14534
14535CFLAGS=$safe_CFLAGS
14536
14537 if test x$ac_have_builtin_atomic_primary = xyes; then
14538 HAVE_BUILTIN_ATOMIC_TRUE=
14539 HAVE_BUILTIN_ATOMIC_FALSE='#'
14540else
14541 HAVE_BUILTIN_ATOMIC_TRUE='#'
14542 HAVE_BUILTIN_ATOMIC_FALSE=
14543fi
14544
14545
14546
14547# does this compiler have built-in functions for atomic memory access for the
14548# secondary target ?
14549
14550if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
14551
14552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_add_and_fetch for the secondary target" >&5
14553$as_echo_n "checking if gcc supports __sync_add_and_fetch for the secondary target... " >&6; }
14554
14555safe_CFLAGS=$CFLAGS
14556CFLAGS="$mflag_secondary"
14557
14558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559/* end confdefs.h. */
14560
14561int
14562main ()
14563{
14564
14565 int variable = 1;
14566 return (__sync_add_and_fetch(&variable, 1) ? 1 : 0)
14567
14568 ;
14569 return 0;
14570}
14571_ACEOF
14572if ac_fn_c_try_link "$LINENO"; then :
14573
14574 ac_have_builtin_atomic_secondary=yes
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14576$as_echo "yes" >&6; }
14577
14578else
14579
14580 ac_have_builtin_atomic_secondary=no
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582$as_echo "no" >&6; }
14583
14584fi
14585rm -f core conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext conftest.$ac_ext
14587
14588CFLAGS=$safe_CFLAGS
14589
14590fi
14591
14592 if test x$ac_have_builtin_atomic_secondary = xyes; then
14593 HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE=
14594 HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE='#'
14595else
14596 HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE='#'
14597 HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE=
14598fi
14599
14600
14601# does this compiler have built-in functions for atomic memory access on
14602# 64-bit integers for all targets ?
14603
14604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_add_and_fetch on uint64_t for all targets" >&5
14605$as_echo_n "checking if gcc supports __sync_add_and_fetch on uint64_t for all targets... " >&6; }
14606
14607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608/* end confdefs.h. */
14609
14610 #include <stdint.h>
14611
14612int
14613main ()
14614{
14615
14616 uint64_t variable = 1;
14617 return __sync_add_and_fetch(&variable, 1)
14618
14619 ;
14620 return 0;
14621}
14622_ACEOF
14623if ac_fn_c_try_link "$LINENO"; then :
14624
14625 ac_have_builtin_atomic64_primary=yes
14626
14627else
14628
14629 ac_have_builtin_atomic64_primary=no
14630
14631fi
14632rm -f core conftest.err conftest.$ac_objext \
14633 conftest$ac_exeext conftest.$ac_ext
14634
14635if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
14636
14637safe_CFLAGS=$CFLAGS
14638CFLAGS="$mflag_secondary"
14639
14640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641/* end confdefs.h. */
14642
14643 #include <stdint.h>
14644
14645int
14646main ()
14647{
14648
14649 uint64_t variable = 1;
14650 return __sync_add_and_fetch(&variable, 1)
14651
14652 ;
14653 return 0;
14654}
14655_ACEOF
14656if ac_fn_c_try_link "$LINENO"; then :
14657
14658 ac_have_builtin_atomic64_secondary=yes
14659
14660else
14661
14662 ac_have_builtin_atomic64_secondary=no
14663
14664fi
14665rm -f core conftest.err conftest.$ac_objext \
14666 conftest$ac_exeext conftest.$ac_ext
14667
14668CFLAGS=$safe_CFLAGS
14669
14670fi
14671
14672if test x$ac_have_builtin_atomic64_primary = xyes && \
14673 test x$VGCONF_PLATFORM_SEC_CAPS = x \
14674 -o x$ac_have_builtin_atomic64_secondary = xyes; then
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14676$as_echo "yes" >&6; }
14677 ac_have_builtin_atomic64=yes
14678else
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14680$as_echo "no" >&6; }
14681 ac_have_builtin_atomic64=no
14682fi
14683
14684 if test x$ac_have_builtin_atomic64 = xyes; then
14685 HAVE_BUILTIN_ATOMIC64_TRUE=
14686 HAVE_BUILTIN_ATOMIC64_FALSE='#'
14687else
14688 HAVE_BUILTIN_ATOMIC64_TRUE='#'
14689 HAVE_BUILTIN_ATOMIC64_FALSE=
14690fi
14691
14692
14693
14694# does g++ have built-in functions for atomic memory access ?
14695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports __sync_add_and_fetch" >&5
14696$as_echo_n "checking if g++ supports __sync_add_and_fetch... " >&6; }
14697
14698safe_CXXFLAGS=$CXXFLAGS
14699CXXFLAGS="$mflag_primary"
14700
14701ac_ext=cpp
14702ac_cpp='$CXXCPP $CPPFLAGS'
14703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14706
14707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708/* end confdefs.h. */
14709
14710int
14711main ()
14712{
14713
14714 int variable = 1;
14715 return (__sync_bool_compare_and_swap(&variable, 1, 2)
14716 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
14717
14718 ;
14719 return 0;
14720}
14721_ACEOF
14722if ac_fn_cxx_try_link "$LINENO"; then :
14723
14724 ac_have_builtin_atomic_cxx=yes
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14726$as_echo "yes" >&6; }
14727
14728$as_echo "#define HAVE_BUILTIN_ATOMIC_CXX 1" >>confdefs.h
14729
14730
14731else
14732
14733 ac_have_builtin_atomic_cxx=no
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14735$as_echo "no" >&6; }
14736
14737fi
14738rm -f core conftest.err conftest.$ac_objext \
14739 conftest$ac_exeext conftest.$ac_ext
14740ac_ext=c
14741ac_cpp='$CPP $CPPFLAGS'
14742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14744ac_compiler_gnu=$ac_cv_c_compiler_gnu
14745
14746
14747CXXFLAGS=$safe_CXXFLAGS
14748
14749 if test x$ac_have_builtin_atomic_cxx = xyes; then
14750 HAVE_BUILTIN_ATOMIC_CXX_TRUE=
14751 HAVE_BUILTIN_ATOMIC_CXX_FALSE='#'
14752else
14753 HAVE_BUILTIN_ATOMIC_CXX_TRUE='#'
14754 HAVE_BUILTIN_ATOMIC_CXX_FALSE=
14755fi
14756
14757
14758
14759if test x$ac_have_usable_linux_futex_h = xyes \
14760 -a x$ac_have_builtin_atomic_primary = xyes; then
14761 ac_enable_linux_ticket_lock_primary=yes
14762fi
14763 if test x$ac_enable_linux_ticket_lock_primary = xyes; then
14764 ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE=
14765 ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE='#'
14766else
14767 ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE='#'
14768 ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE=
14769fi
14770
14771
14772if test x$VGCONF_PLATFORM_SEC_CAPS != x \
14773 -a x$ac_have_usable_linux_futex_h = xyes \
14774 -a x$ac_have_builtin_atomic_secondary = xyes; then
14775 ac_enable_linux_ticket_lock_secondary=yes
14776fi
14777 if test x$ac_enable_linux_ticket_lock_secondary = xyes; then
14778 ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE=
14779 ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE='#'
14780else
14781 ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE='#'
14782 ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE=
14783fi
14784
14785
14786
14787# does libstdc++ support annotating shared pointers ?
14788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libstdc++ supports annotating shared pointers" >&5
14789$as_echo_n "checking if libstdc++ supports annotating shared pointers... " >&6; }
14790
14791safe_CXXFLAGS=$CXXFLAGS
14792CXXFLAGS="-std=c++0x"
14793
14794ac_ext=cpp
14795ac_cpp='$CXXCPP $CPPFLAGS'
14796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14799
14800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801/* end confdefs.h. */
14802
14803 #include <memory>
14804
14805int
14806main ()
14807{
14808
14809 std::shared_ptr<int> p
14810
14811 ;
14812 return 0;
14813}
14814_ACEOF
14815if ac_fn_cxx_try_link "$LINENO"; then :
14816
14817 ac_have_shared_ptr=yes
14818
14819else
14820
14821 ac_have_shared_ptr=no
14822
14823fi
14824rm -f core conftest.err conftest.$ac_objext \
14825 conftest$ac_exeext conftest.$ac_ext
14826if test x$ac_have_shared_ptr = xyes; then
14827 # If compilation of the program below fails because of a syntax error
14828 # triggered by substituting one of the annotation macros then that
14829 # means that libstdc++ supports these macros.
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831/* end confdefs.h. */
14832
14833 #define _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(a) (a)----
14834 #define _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(a) (a)----
14835 #include <memory>
14836
14837int
14838main ()
14839{
14840
14841 std::shared_ptr<int> p
14842
14843 ;
14844 return 0;
14845}
14846_ACEOF
14847if ac_fn_cxx_try_link "$LINENO"; then :
14848
14849 ac_have_shared_pointer_annotation=no
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14851$as_echo "no" >&6; }
14852
14853else
14854
14855 ac_have_shared_pointer_annotation=yes
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14857$as_echo "yes" >&6; }
14858
14859$as_echo "#define HAVE_SHARED_POINTER_ANNOTATION 1" >>confdefs.h
14860
14861
14862fi
14863rm -f core conftest.err conftest.$ac_objext \
14864 conftest$ac_exeext conftest.$ac_ext
14865else
14866 ac_have_shared_pointer_annotation=no
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14868$as_echo "no" >&6; }
14869fi
14870ac_ext=c
14871ac_cpp='$CPP $CPPFLAGS'
14872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14874ac_compiler_gnu=$ac_cv_c_compiler_gnu
14875
14876
14877CXXFLAGS=$safe_CXXFLAGS
14878
14879 if test x$ac_have_shared_pointer_annotation = xyes; then
14880 HAVE_SHARED_POINTER_ANNOTATION_TRUE=
14881 HAVE_SHARED_POINTER_ANNOTATION_FALSE='#'
14882else
14883 HAVE_SHARED_POINTER_ANNOTATION_TRUE='#'
14884 HAVE_SHARED_POINTER_ANNOTATION_FALSE=
14885fi
14886
14887
14888
14889#----------------------------------------------------------------------------
14890# Ok. We're done checking.
14891#----------------------------------------------------------------------------
14892
14893# Nb: VEX/Makefile is generated from Makefile.vex.in.
Elliott Hughesed398002017-06-21 14:41:24 -070014894ac_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/mips32/Makefile memcheck/tests/mips64/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/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"
Elliott Hughesa0664b92017-04-18 17:46:52 -070014895
14896ac_config_files="$ac_config_files coregrind/link_tool_exe_linux"
14897
14898ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin"
14899
14900ac_config_files="$ac_config_files coregrind/link_tool_exe_solaris"
14901
14902cat >confcache <<\_ACEOF
14903# This file is a shell script that caches the results of configure
14904# tests run on this system so they can be shared between configure
14905# scripts and configure runs, see configure's option --config-cache.
14906# It is not useful on other systems. If it contains results you don't
14907# want to keep, you may remove or edit it.
14908#
14909# config.status only pays attention to the cache file if you give it
14910# the --recheck option to rerun configure.
14911#
14912# `ac_cv_env_foo' variables (set or unset) will be overridden when
14913# loading this file, other *unset* `ac_cv_foo' will be assigned the
14914# following values.
14915
14916_ACEOF
14917
14918# The following way of writing the cache mishandles newlines in values,
14919# but we know of no workaround that is simple, portable, and efficient.
14920# So, we kill variables containing newlines.
14921# Ultrix sh set writes to stderr and can't be redirected directly,
14922# and sets the high bit in the cache file unless we assign to the vars.
14923(
14924 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14925 eval ac_val=\$$ac_var
14926 case $ac_val in #(
14927 *${as_nl}*)
14928 case $ac_var in #(
14929 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14930$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14931 esac
14932 case $ac_var in #(
14933 _ | IFS | as_nl) ;; #(
14934 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14935 *) { eval $ac_var=; unset $ac_var;} ;;
14936 esac ;;
14937 esac
14938 done
14939
14940 (set) 2>&1 |
14941 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14942 *${as_nl}ac_space=\ *)
14943 # `set' does not quote correctly, so add quotes: double-quote
14944 # substitution turns \\\\ into \\, and sed turns \\ into \.
14945 sed -n \
14946 "s/'/'\\\\''/g;
14947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14948 ;; #(
14949 *)
14950 # `set' quotes correctly as required by POSIX, so do not add quotes.
14951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14952 ;;
14953 esac |
14954 sort
14955) |
14956 sed '
14957 /^ac_cv_env_/b end
14958 t clear
14959 :clear
14960 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14961 t end
14962 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14963 :end' >>confcache
14964if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14965 if test -w "$cache_file"; then
14966 if test "x$cache_file" != "x/dev/null"; then
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14968$as_echo "$as_me: updating cache $cache_file" >&6;}
14969 if test ! -f "$cache_file" || test -h "$cache_file"; then
14970 cat confcache >"$cache_file"
14971 else
14972 case $cache_file in #(
14973 */* | ?:*)
14974 mv -f confcache "$cache_file"$$ &&
14975 mv -f "$cache_file"$$ "$cache_file" ;; #(
14976 *)
14977 mv -f confcache "$cache_file" ;;
14978 esac
14979 fi
14980 fi
14981 else
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14983$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14984 fi
14985fi
14986rm -f confcache
14987
14988test "x$prefix" = xNONE && prefix=$ac_default_prefix
14989# Let make expand exec_prefix.
14990test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14991
14992DEFS=-DHAVE_CONFIG_H
14993
14994ac_libobjs=
14995ac_ltlibobjs=
14996U=
14997for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14998 # 1. Remove the extension, and $U if already installed.
14999 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15000 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15001 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15002 # will be set to the directory where LIBOBJS objects are built.
15003 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15004 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15005done
15006LIBOBJS=$ac_libobjs
15007
15008LTLIBOBJS=$ac_ltlibobjs
15009
15010
15011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15012$as_echo_n "checking that generated files are newer than configure... " >&6; }
15013 if test -n "$am_sleep_pid"; then
15014 # Hide warnings about reused PIDs.
15015 wait $am_sleep_pid 2>/dev/null
15016 fi
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15018$as_echo "done" >&6; }
15019 if test -n "$EXEEXT"; then
15020 am__EXEEXT_TRUE=
15021 am__EXEEXT_FALSE='#'
15022else
15023 am__EXEEXT_TRUE='#'
15024 am__EXEEXT_FALSE=
15025fi
15026
15027if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15028 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15029Usually this means the macro was only invoked conditionally." "$LINENO" 5
15030fi
15031if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15032 as_fn_error $? "conditional \"AMDEP\" was never defined.
15033Usually this means the macro was only invoked conditionally." "$LINENO" 5
15034fi
15035if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15036 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15037Usually this means the macro was only invoked conditionally." "$LINENO" 5
15038fi
15039if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15040 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15041Usually this means the macro was only invoked conditionally." "$LINENO" 5
15042fi
15043if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15044 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15045Usually this means the macro was only invoked conditionally." "$LINENO" 5
15046fi
15047if test -z "${COMPILER_IS_CLANG_TRUE}" && test -z "${COMPILER_IS_CLANG_FALSE}"; then
15048 as_fn_error $? "conditional \"COMPILER_IS_CLANG\" was never defined.
15049Usually this means the macro was only invoked conditionally." "$LINENO" 5
15050fi
15051if test -z "${COMPILER_IS_ICC_TRUE}" && test -z "${COMPILER_IS_ICC_FALSE}"; then
15052 as_fn_error $? "conditional \"COMPILER_IS_ICC\" was never defined.
15053Usually this means the macro was only invoked conditionally." "$LINENO" 5
15054fi
15055if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
15056 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
15057Usually this means the macro was only invoked conditionally." "$LINENO" 5
15058fi
15059if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
15060 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
15061Usually this means the macro was only invoked conditionally." "$LINENO" 5
15062fi
15063if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
15064 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
15065Usually this means the macro was only invoked conditionally." "$LINENO" 5
15066fi
15067if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
15068 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
15069Usually this means the macro was only invoked conditionally." "$LINENO" 5
15070fi
15071if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
15072 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
15073Usually this means the macro was only invoked conditionally." "$LINENO" 5
15074fi
15075if test -z "${VGCONF_ARCHS_INCLUDE_ARM64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM64_FALSE}"; then
15076 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM64\" was never defined.
15077Usually this means the macro was only invoked conditionally." "$LINENO" 5
15078fi
15079if test -z "${VGCONF_ARCHS_INCLUDE_S390X_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_S390X_FALSE}"; then
15080 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_S390X\" was never defined.
15081Usually this means the macro was only invoked conditionally." "$LINENO" 5
15082fi
15083if test -z "${VGCONF_ARCHS_INCLUDE_MIPS32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_MIPS32_FALSE}"; then
15084 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_MIPS32\" was never defined.
15085Usually this means the macro was only invoked conditionally." "$LINENO" 5
15086fi
15087if test -z "${VGCONF_ARCHS_INCLUDE_MIPS64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_MIPS64_FALSE}"; then
15088 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_MIPS64\" was never defined.
15089Usually this means the macro was only invoked conditionally." "$LINENO" 5
15090fi
Elliott Hughesa0664b92017-04-18 17:46:52 -070015091if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
15092 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
15093Usually this means the macro was only invoked conditionally." "$LINENO" 5
15094fi
15095if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
15096 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
15097Usually this means the macro was only invoked conditionally." "$LINENO" 5
15098fi
15099if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
15100 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
15101Usually this means the macro was only invoked conditionally." "$LINENO" 5
15102fi
15103if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE}"; then
15104 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX\" was never defined.
15105Usually this means the macro was only invoked conditionally." "$LINENO" 5
15106fi
15107if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE}"; then
15108 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX\" was never defined.
15109Usually this means the macro was only invoked conditionally." "$LINENO" 5
15110fi
15111if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
15112 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
15113Usually this means the macro was only invoked conditionally." "$LINENO" 5
15114fi
15115if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE}"; then
15116 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX\" was never defined.
15117Usually this means the macro was only invoked conditionally." "$LINENO" 5
15118fi
15119if test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE}"; then
15120 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_S390X_LINUX\" was never defined.
15121Usually this means the macro was only invoked conditionally." "$LINENO" 5
15122fi
15123if test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE}"; then
15124 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX\" was never defined.
15125Usually this means the macro was only invoked conditionally." "$LINENO" 5
15126fi
15127if test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE}"; then
15128 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX\" was never defined.
15129Usually this means the macro was only invoked conditionally." "$LINENO" 5
15130fi
Elliott Hughesa0664b92017-04-18 17:46:52 -070015131if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
15132 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
15133Usually this means the macro was only invoked conditionally." "$LINENO" 5
15134fi
15135if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
15136 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
15137Usually this means the macro was only invoked conditionally." "$LINENO" 5
15138fi
15139if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE}"; then
15140 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS\" was never defined.
15141Usually this means the macro was only invoked conditionally." "$LINENO" 5
15142fi
15143if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE}"; then
15144 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS\" was never defined.
15145Usually this means the macro was only invoked conditionally." "$LINENO" 5
15146fi
15147if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
15148 as_fn_error $? "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
15149Usually this means the macro was only invoked conditionally." "$LINENO" 5
15150fi
15151if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
15152 as_fn_error $? "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
15153Usually this means the macro was only invoked conditionally." "$LINENO" 5
15154fi
15155if test -z "${VGCONF_OS_IS_SOLARIS_TRUE}" && test -z "${VGCONF_OS_IS_SOLARIS_FALSE}"; then
15156 as_fn_error $? "conditional \"VGCONF_OS_IS_SOLARIS\" was never defined.
15157Usually this means the macro was only invoked conditionally." "$LINENO" 5
15158fi
15159if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
15160 as_fn_error $? "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
15161Usually this means the macro was only invoked conditionally." "$LINENO" 5
15162fi
15163if test -z "${VGCONF_PLATVARIANT_IS_VANILLA_TRUE}" && test -z "${VGCONF_PLATVARIANT_IS_VANILLA_FALSE}"; then
15164 as_fn_error $? "conditional \"VGCONF_PLATVARIANT_IS_VANILLA\" was never defined.
15165Usually this means the macro was only invoked conditionally." "$LINENO" 5
15166fi
15167if test -z "${VGCONF_PLATVARIANT_IS_ANDROID_TRUE}" && test -z "${VGCONF_PLATVARIANT_IS_ANDROID_FALSE}"; then
15168 as_fn_error $? "conditional \"VGCONF_PLATVARIANT_IS_ANDROID\" was never defined.
15169Usually this means the macro was only invoked conditionally." "$LINENO" 5
15170fi
15171if test -z "${HAVE_AT_FDCWD_TRUE}" && test -z "${HAVE_AT_FDCWD_FALSE}"; then
15172 as_fn_error $? "conditional \"HAVE_AT_FDCWD\" was never defined.
15173Usually this means the macro was only invoked conditionally." "$LINENO" 5
15174fi
15175if test -z "${HAVE_GNU_STPNCPY_TRUE}" && test -z "${HAVE_GNU_STPNCPY_FALSE}"; then
15176 as_fn_error $? "conditional \"HAVE_GNU_STPNCPY\" was never defined.
15177Usually this means the macro was only invoked conditionally." "$LINENO" 5
15178fi
15179if test -z "${HAS_ISA_2_05_TRUE}" && test -z "${HAS_ISA_2_05_FALSE}"; then
15180 as_fn_error $? "conditional \"HAS_ISA_2_05\" was never defined.
15181Usually this means the macro was only invoked conditionally." "$LINENO" 5
15182fi
15183if test -z "${HAS_ISA_2_06_TRUE}" && test -z "${HAS_ISA_2_06_FALSE}"; then
15184 as_fn_error $? "conditional \"HAS_ISA_2_06\" was never defined.
15185Usually this means the macro was only invoked conditionally." "$LINENO" 5
15186fi
15187if test -z "${HAS_ISA_2_07_TRUE}" && test -z "${HAS_ISA_2_07_FALSE}"; then
15188 as_fn_error $? "conditional \"HAS_ISA_2_07\" was never defined.
15189Usually this means the macro was only invoked conditionally." "$LINENO" 5
15190fi
15191if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
15192 as_fn_error $? "conditional \"HAS_ALTIVEC\" was never defined.
15193Usually this means the macro was only invoked conditionally." "$LINENO" 5
15194fi
15195if test -z "${HAS_VSX_TRUE}" && test -z "${HAS_VSX_FALSE}"; then
15196 as_fn_error $? "conditional \"HAS_VSX\" was never defined.
15197Usually this means the macro was only invoked conditionally." "$LINENO" 5
15198fi
15199if test -z "${HAS_DFP_TRUE}" && test -z "${HAS_DFP_FALSE}"; then
15200 as_fn_error $? "conditional \"HAS_DFP\" was never defined.
15201Usually this means the macro was only invoked conditionally." "$LINENO" 5
15202fi
15203if test -z "${BUILD_DFP_TESTS_TRUE}" && test -z "${BUILD_DFP_TESTS_FALSE}"; then
15204 as_fn_error $? "conditional \"BUILD_DFP_TESTS\" was never defined.
15205Usually this means the macro was only invoked conditionally." "$LINENO" 5
15206fi
15207if test -z "${SUPPORTS_HTM_TRUE}" && test -z "${SUPPORTS_HTM_FALSE}"; then
15208 as_fn_error $? "conditional \"SUPPORTS_HTM\" was never defined.
15209Usually this means the macro was only invoked conditionally." "$LINENO" 5
15210fi
15211if test -z "${HAS_ISA_3_00_TRUE}" && test -z "${HAS_ISA_3_00_FALSE}"; then
15212 as_fn_error $? "conditional \"HAS_ISA_3_00\" was never defined.
15213Usually this means the macro was only invoked conditionally." "$LINENO" 5
15214fi
15215if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
15216 as_fn_error $? "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
15217Usually this means the macro was only invoked conditionally." "$LINENO" 5
15218fi
15219if test -z "${HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE}" && test -z "${HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE}"; then
15220 as_fn_error $? "conditional \"HAVE_DLINFO_RTLD_DI_TLS_MODID\" was never defined.
15221Usually this means the macro was only invoked conditionally." "$LINENO" 5
15222fi
15223if test -z "${CXX_CAN_INCLUDE_THREAD_HEADER_TRUE}" && test -z "${CXX_CAN_INCLUDE_THREAD_HEADER_FALSE}"; then
15224 as_fn_error $? "conditional \"CXX_CAN_INCLUDE_THREAD_HEADER\" was never defined.
15225Usually this means the macro was only invoked conditionally." "$LINENO" 5
15226fi
15227if test -z "${HAS_MLONG_DOUBLE_128_TRUE}" && test -z "${HAS_MLONG_DOUBLE_128_FALSE}"; then
15228 as_fn_error $? "conditional \"HAS_MLONG_DOUBLE_128\" was never defined.
15229Usually this means the macro was only invoked conditionally." "$LINENO" 5
15230fi
15231if test -z "${DWARF4_TRUE}" && test -z "${DWARF4_FALSE}"; then
15232 as_fn_error $? "conditional \"DWARF4\" was never defined.
15233Usually this means the macro was only invoked conditionally." "$LINENO" 5
15234fi
15235if test -z "${GZ_ZLIB_TRUE}" && test -z "${GZ_ZLIB_FALSE}"; then
15236 as_fn_error $? "conditional \"GZ_ZLIB\" was never defined.
15237Usually this means the macro was only invoked conditionally." "$LINENO" 5
15238fi
15239if test -z "${GZ_ZLIB_GNU_TRUE}" && test -z "${GZ_ZLIB_GNU_FALSE}"; then
15240 as_fn_error $? "conditional \"GZ_ZLIB_GNU\" was never defined.
15241Usually this means the macro was only invoked conditionally." "$LINENO" 5
15242fi
15243if test -z "${HAVE_NESTED_FUNCTIONS_TRUE}" && test -z "${HAVE_NESTED_FUNCTIONS_FALSE}"; then
15244 as_fn_error $? "conditional \"HAVE_NESTED_FUNCTIONS\" was never defined.
15245Usually this means the macro was only invoked conditionally." "$LINENO" 5
15246fi
15247if test -z "${HAVE_ASM_CONSTRAINT_P_TRUE}" && test -z "${HAVE_ASM_CONSTRAINT_P_FALSE}"; then
15248 as_fn_error $? "conditional \"HAVE_ASM_CONSTRAINT_P\" was never defined.
15249Usually this means the macro was only invoked conditionally." "$LINENO" 5
15250fi
15251if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
15252 as_fn_error $? "conditional \"BUILD_SSE3_TESTS\" was never defined.
15253Usually this means the macro was only invoked conditionally." "$LINENO" 5
15254fi
15255if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
15256 as_fn_error $? "conditional \"BUILD_SSSE3_TESTS\" was never defined.
15257Usually this means the macro was only invoked conditionally." "$LINENO" 5
15258fi
15259if test -z "${BUILD_PCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_PCLMULQDQ_TESTS_FALSE}"; then
15260 as_fn_error $? "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined.
15261Usually this means the macro was only invoked conditionally." "$LINENO" 5
15262fi
15263if test -z "${BUILD_VPCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_VPCLMULQDQ_TESTS_FALSE}"; then
15264 as_fn_error $? "conditional \"BUILD_VPCLMULQDQ_TESTS\" was never defined.
15265Usually this means the macro was only invoked conditionally." "$LINENO" 5
15266fi
15267if test -z "${BUILD_FMA4_TESTS_TRUE}" && test -z "${BUILD_FMA4_TESTS_FALSE}"; then
15268 as_fn_error $? "conditional \"BUILD_FMA4_TESTS\" was never defined.
15269Usually this means the macro was only invoked conditionally." "$LINENO" 5
15270fi
15271if test -z "${BUILD_LZCNT_TESTS_TRUE}" && test -z "${BUILD_LZCNT_TESTS_FALSE}"; then
15272 as_fn_error $? "conditional \"BUILD_LZCNT_TESTS\" was never defined.
15273Usually this means the macro was only invoked conditionally." "$LINENO" 5
15274fi
15275if test -z "${BUILD_LOOPNEL_TESTS_TRUE}" && test -z "${BUILD_LOOPNEL_TESTS_FALSE}"; then
15276 as_fn_error $? "conditional \"BUILD_LOOPNEL_TESTS\" was never defined.
15277Usually this means the macro was only invoked conditionally." "$LINENO" 5
15278fi
15279if test -z "${BUILD_ADDR32_TESTS_TRUE}" && test -z "${BUILD_ADDR32_TESTS_FALSE}"; then
15280 as_fn_error $? "conditional \"BUILD_ADDR32_TESTS\" was never defined.
15281Usually this means the macro was only invoked conditionally." "$LINENO" 5
15282fi
15283if test -z "${BUILD_SSE42_TESTS_TRUE}" && test -z "${BUILD_SSE42_TESTS_FALSE}"; then
15284 as_fn_error $? "conditional \"BUILD_SSE42_TESTS\" was never defined.
15285Usually this means the macro was only invoked conditionally." "$LINENO" 5
15286fi
15287if test -z "${BUILD_AVX_TESTS_TRUE}" && test -z "${BUILD_AVX_TESTS_FALSE}"; then
15288 as_fn_error $? "conditional \"BUILD_AVX_TESTS\" was never defined.
15289Usually this means the macro was only invoked conditionally." "$LINENO" 5
15290fi
15291if test -z "${BUILD_AVX2_TESTS_TRUE}" && test -z "${BUILD_AVX2_TESTS_FALSE}"; then
15292 as_fn_error $? "conditional \"BUILD_AVX2_TESTS\" was never defined.
15293Usually this means the macro was only invoked conditionally." "$LINENO" 5
15294fi
15295if test -z "${BUILD_TSX_TESTS_TRUE}" && test -z "${BUILD_TSX_TESTS_FALSE}"; then
15296 as_fn_error $? "conditional \"BUILD_TSX_TESTS\" was never defined.
15297Usually this means the macro was only invoked conditionally." "$LINENO" 5
15298fi
15299if test -z "${BUILD_BMI_TESTS_TRUE}" && test -z "${BUILD_BMI_TESTS_FALSE}"; then
15300 as_fn_error $? "conditional \"BUILD_BMI_TESTS\" was never defined.
15301Usually this means the macro was only invoked conditionally." "$LINENO" 5
15302fi
15303if test -z "${BUILD_FMA_TESTS_TRUE}" && test -z "${BUILD_FMA_TESTS_FALSE}"; then
15304 as_fn_error $? "conditional \"BUILD_FMA_TESTS\" was never defined.
15305Usually this means the macro was only invoked conditionally." "$LINENO" 5
15306fi
15307if test -z "${BUILD_MPX_TESTS_TRUE}" && test -z "${BUILD_MPX_TESTS_FALSE}"; then
15308 as_fn_error $? "conditional \"BUILD_MPX_TESTS\" was never defined.
15309Usually this means the macro was only invoked conditionally." "$LINENO" 5
15310fi
Elliott Hughesed398002017-06-21 14:41:24 -070015311if test -z "${BUILD_ADX_TESTS_TRUE}" && test -z "${BUILD_ADX_TESTS_FALSE}"; then
15312 as_fn_error $? "conditional \"BUILD_ADX_TESTS\" was never defined.
15313Usually this means the macro was only invoked conditionally." "$LINENO" 5
15314fi
Elliott Hughesa0664b92017-04-18 17:46:52 -070015315if test -z "${BUILD_MOVBE_TESTS_TRUE}" && test -z "${BUILD_MOVBE_TESTS_FALSE}"; then
15316 as_fn_error $? "conditional \"BUILD_MOVBE_TESTS\" was never defined.
15317Usually this means the macro was only invoked conditionally." "$LINENO" 5
15318fi
15319if test -z "${BUILD_IFUNC_TESTS_TRUE}" && test -z "${BUILD_IFUNC_TESTS_FALSE}"; then
15320 as_fn_error $? "conditional \"BUILD_IFUNC_TESTS\" was never defined.
15321Usually this means the macro was only invoked conditionally." "$LINENO" 5
15322fi
15323if test -z "${BUILD_ARMV8_CRC_TESTS_TRUE}" && test -z "${BUILD_ARMV8_CRC_TESTS_FALSE}"; then
15324 as_fn_error $? "conditional \"BUILD_ARMV8_CRC_TESTS\" was never defined.
15325Usually this means the macro was only invoked conditionally." "$LINENO" 5
15326fi
15327if test -z "${SOLARIS_SUN_STUDIO_AS_TRUE}" && test -z "${SOLARIS_SUN_STUDIO_AS_FALSE}"; then
15328 as_fn_error $? "conditional \"SOLARIS_SUN_STUDIO_AS\" was never defined.
15329Usually this means the macro was only invoked conditionally." "$LINENO" 5
15330fi
15331if test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_TRUE}" && test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_FALSE}"; then
15332 as_fn_error $? "conditional \"SOLARIS_XPG_SYMBOLS_PRESENT\" was never defined.
15333Usually this means the macro was only invoked conditionally." "$LINENO" 5
15334fi
15335if test -z "${SOLARIS_PROC_CMDLINE_TRUE}" && test -z "${SOLARIS_PROC_CMDLINE_FALSE}"; then
15336 as_fn_error $? "conditional \"SOLARIS_PROC_CMDLINE\" was never defined.
15337Usually this means the macro was only invoked conditionally." "$LINENO" 5
15338fi
15339if test -z "${SOLARIS_OLD_SYSCALLS_TRUE}" && test -z "${SOLARIS_OLD_SYSCALLS_FALSE}"; then
15340 as_fn_error $? "conditional \"SOLARIS_OLD_SYSCALLS\" was never defined.
15341Usually this means the macro was only invoked conditionally." "$LINENO" 5
15342fi
15343if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE}"; then
15344 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL\" was never defined.
15345Usually this means the macro was only invoked conditionally." "$LINENO" 5
15346fi
15347if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE}"; then
15348 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID\" was never defined.
15349Usually this means the macro was only invoked conditionally." "$LINENO" 5
15350fi
15351if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE}"; then
15352 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID\" was never defined.
15353Usually this means the macro was only invoked conditionally." "$LINENO" 5
15354fi
15355if test -z "${SOLARIS_LWP_NAME_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_NAME_SYSCALL_FALSE}"; then
15356 as_fn_error $? "conditional \"SOLARIS_LWP_NAME_SYSCALL\" was never defined.
15357Usually this means the macro was only invoked conditionally." "$LINENO" 5
15358fi
15359if test -z "${SOLARIS_GETRANDOM_SYSCALL_TRUE}" && test -z "${SOLARIS_GETRANDOM_SYSCALL_FALSE}"; then
15360 as_fn_error $? "conditional \"SOLARIS_GETRANDOM_SYSCALL\" was never defined.
15361Usually this means the macro was only invoked conditionally." "$LINENO" 5
15362fi
15363if test -z "${SOLARIS_ZONE_DEFUNCT_TRUE}" && test -z "${SOLARIS_ZONE_DEFUNCT_FALSE}"; then
15364 as_fn_error $? "conditional \"SOLARIS_ZONE_DEFUNCT\" was never defined.
15365Usually this means the macro was only invoked conditionally." "$LINENO" 5
15366fi
15367if test -z "${SOLARIS_AUDITON_STAT_TRUE}" && test -z "${SOLARIS_AUDITON_STAT_FALSE}"; then
15368 as_fn_error $? "conditional \"SOLARIS_AUDITON_STAT\" was never defined.
15369Usually this means the macro was only invoked conditionally." "$LINENO" 5
15370fi
15371if test -z "${SOLARIS_SHM_NEW_TRUE}" && test -z "${SOLARIS_SHM_NEW_FALSE}"; then
15372 as_fn_error $? "conditional \"SOLARIS_SHM_NEW\" was never defined.
15373Usually this means the macro was only invoked conditionally." "$LINENO" 5
15374fi
15375if test -z "${SOLARIS_PRXREGSET_T_TRUE}" && test -z "${SOLARIS_PRXREGSET_T_FALSE}"; then
15376 as_fn_error $? "conditional \"SOLARIS_PRXREGSET_T\" was never defined.
15377Usually this means the macro was only invoked conditionally." "$LINENO" 5
15378fi
15379if test -z "${SOLARIS_FREALPATHAT_SYSCALL_TRUE}" && test -z "${SOLARIS_FREALPATHAT_SYSCALL_FALSE}"; then
15380 as_fn_error $? "conditional \"SOLARIS_FREALPATHAT_SYSCALL\" was never defined.
15381Usually this means the macro was only invoked conditionally." "$LINENO" 5
15382fi
15383if test -z "${SOLARIS_UUIDSYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UUIDSYS_SYSCALL_FALSE}"; then
15384 as_fn_error $? "conditional \"SOLARIS_UUIDSYS_SYSCALL\" was never defined.
15385Usually this means the macro was only invoked conditionally." "$LINENO" 5
15386fi
15387if test -z "${SOLARIS_TNDB_GET_TNIP_TRUE}" && test -z "${SOLARIS_TNDB_GET_TNIP_FALSE}"; then
15388 as_fn_error $? "conditional \"SOLARIS_TNDB_GET_TNIP\" was never defined.
15389Usually this means the macro was only invoked conditionally." "$LINENO" 5
15390fi
15391if test -z "${SOLARIS_TSOL_CLEARANCE_TRUE}" && test -z "${SOLARIS_TSOL_CLEARANCE_FALSE}"; then
15392 as_fn_error $? "conditional \"SOLARIS_TSOL_CLEARANCE\" was never defined.
15393Usually this means the macro was only invoked conditionally." "$LINENO" 5
15394fi
15395if test -z "${SOLARIS_PSET_GET_NAME_TRUE}" && test -z "${SOLARIS_PSET_GET_NAME_FALSE}"; then
15396 as_fn_error $? "conditional \"SOLARIS_PSET_GET_NAME\" was never defined.
15397Usually this means the macro was only invoked conditionally." "$LINENO" 5
15398fi
15399if test -z "${SOLARIS_UTIMESYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMESYS_SYSCALL_FALSE}"; then
15400 as_fn_error $? "conditional \"SOLARIS_UTIMESYS_SYSCALL\" was never defined.
15401Usually this means the macro was only invoked conditionally." "$LINENO" 5
15402fi
15403if test -z "${SOLARIS_UTIMENSAT_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMENSAT_SYSCALL_FALSE}"; then
15404 as_fn_error $? "conditional \"SOLARIS_UTIMENSAT_SYSCALL\" was never defined.
15405Usually this means the macro was only invoked conditionally." "$LINENO" 5
15406fi
15407if test -z "${SOLARIS_SPAWN_SYSCALL_TRUE}" && test -z "${SOLARIS_SPAWN_SYSCALL_FALSE}"; then
15408 as_fn_error $? "conditional \"SOLARIS_SPAWN_SYSCALL\" was never defined.
15409Usually this means the macro was only invoked conditionally." "$LINENO" 5
15410fi
15411if test -z "${SOLARIS_MODCTL_MODNVL_TRUE}" && test -z "${SOLARIS_MODCTL_MODNVL_FALSE}"; then
15412 as_fn_error $? "conditional \"SOLARIS_MODCTL_MODNVL\" was never defined.
15413Usually this means the macro was only invoked conditionally." "$LINENO" 5
15414fi
15415if test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE}" && test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE}"; then
15416 as_fn_error $? "conditional \"SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE\" was never defined.
15417Usually this means the macro was only invoked conditionally." "$LINENO" 5
15418fi
15419if test -z "${SOLARIS_GETHRT_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETHRT_FASTTRAP_FALSE}"; then
15420 as_fn_error $? "conditional \"SOLARIS_GETHRT_FASTTRAP\" was never defined.
15421Usually this means the macro was only invoked conditionally." "$LINENO" 5
15422fi
15423if test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE}"; then
15424 as_fn_error $? "conditional \"SOLARIS_GETZONEOFFSET_FASTTRAP\" was never defined.
15425Usually this means the macro was only invoked conditionally." "$LINENO" 5
15426fi
15427if test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE}" && test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE}"; then
15428 as_fn_error $? "conditional \"SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS\" was never defined.
15429Usually this means the macro was only invoked conditionally." "$LINENO" 5
15430fi
15431if test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE}"; then
15432 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ADDR\" was never defined.
15433Usually this means the macro was only invoked conditionally." "$LINENO" 5
15434fi
15435if test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE}"; then
15436 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR\" was never defined.
15437Usually this means the macro was only invoked conditionally." "$LINENO" 5
15438fi
15439if test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_TRUE}" && test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_FALSE}"; then
15440 as_fn_error $? "conditional \"SOLARIS_SYSTEM_STATS_SYSCALL\" was never defined.
15441Usually this means the macro was only invoked conditionally." "$LINENO" 5
15442fi
15443if test -z "${SOLARIS_SUN_STUDIO_AS_TRUE}" && test -z "${SOLARIS_SUN_STUDIO_AS_FALSE}"; then
15444 as_fn_error $? "conditional \"SOLARIS_SUN_STUDIO_AS\" was never defined.
15445Usually this means the macro was only invoked conditionally." "$LINENO" 5
15446fi
15447if test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_TRUE}" && test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_FALSE}"; then
15448 as_fn_error $? "conditional \"SOLARIS_XPG_SYMBOLS_PRESENT\" was never defined.
15449Usually this means the macro was only invoked conditionally." "$LINENO" 5
15450fi
15451if test -z "${SOLARIS_PROC_CMDLINE_TRUE}" && test -z "${SOLARIS_PROC_CMDLINE_FALSE}"; then
15452 as_fn_error $? "conditional \"SOLARIS_PROC_CMDLINE\" was never defined.
15453Usually this means the macro was only invoked conditionally." "$LINENO" 5
15454fi
15455if test -z "${SOLARIS_OLD_SYSCALLS_TRUE}" && test -z "${SOLARIS_OLD_SYSCALLS_FALSE}"; then
15456 as_fn_error $? "conditional \"SOLARIS_OLD_SYSCALLS\" was never defined.
15457Usually this means the macro was only invoked conditionally." "$LINENO" 5
15458fi
15459if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE}"; then
15460 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL\" was never defined.
15461Usually this means the macro was only invoked conditionally." "$LINENO" 5
15462fi
15463if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE}"; then
15464 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID\" was never defined.
15465Usually this means the macro was only invoked conditionally." "$LINENO" 5
15466fi
15467if test -z "${SOLARIS_LWP_NAME_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_NAME_SYSCALL_FALSE}"; then
15468 as_fn_error $? "conditional \"SOLARIS_LWP_NAME_SYSCALL\" was never defined.
15469Usually this means the macro was only invoked conditionally." "$LINENO" 5
15470fi
15471if test -z "${SOLARIS_GETRANDOM_SYSCALL_TRUE}" && test -z "${SOLARIS_GETRANDOM_SYSCALL_FALSE}"; then
15472 as_fn_error $? "conditional \"SOLARIS_GETRANDOM_SYSCALL\" was never defined.
15473Usually this means the macro was only invoked conditionally." "$LINENO" 5
15474fi
15475if test -z "${SOLARIS_ZONE_DEFUNCT_TRUE}" && test -z "${SOLARIS_ZONE_DEFUNCT_FALSE}"; then
15476 as_fn_error $? "conditional \"SOLARIS_ZONE_DEFUNCT\" was never defined.
15477Usually this means the macro was only invoked conditionally." "$LINENO" 5
15478fi
15479if test -z "${SOLARIS_AUDITON_STAT_TRUE}" && test -z "${SOLARIS_AUDITON_STAT_FALSE}"; then
15480 as_fn_error $? "conditional \"SOLARIS_AUDITON_STAT\" was never defined.
15481Usually this means the macro was only invoked conditionally." "$LINENO" 5
15482fi
15483if test -z "${SOLARIS_SHM_NEW_TRUE}" && test -z "${SOLARIS_SHM_NEW_FALSE}"; then
15484 as_fn_error $? "conditional \"SOLARIS_SHM_NEW\" was never defined.
15485Usually this means the macro was only invoked conditionally." "$LINENO" 5
15486fi
15487if test -z "${SOLARIS_PRXREGSET_T_TRUE}" && test -z "${SOLARIS_PRXREGSET_T_FALSE}"; then
15488 as_fn_error $? "conditional \"SOLARIS_PRXREGSET_T\" was never defined.
15489Usually this means the macro was only invoked conditionally." "$LINENO" 5
15490fi
15491if test -z "${SOLARIS_FREALPATHAT_SYSCALL_TRUE}" && test -z "${SOLARIS_FREALPATHAT_SYSCALL_FALSE}"; then
15492 as_fn_error $? "conditional \"SOLARIS_FREALPATHAT_SYSCALL\" was never defined.
15493Usually this means the macro was only invoked conditionally." "$LINENO" 5
15494fi
15495if test -z "${SOLARIS_UUIDSYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UUIDSYS_SYSCALL_FALSE}"; then
15496 as_fn_error $? "conditional \"SOLARIS_UUIDSYS_SYSCALL\" was never defined.
15497Usually this means the macro was only invoked conditionally." "$LINENO" 5
15498fi
15499if test -z "${SOLARIS_TNDB_GET_TNIP_TRUE}" && test -z "${SOLARIS_TNDB_GET_TNIP_FALSE}"; then
15500 as_fn_error $? "conditional \"SOLARIS_TNDB_GET_TNIP\" was never defined.
15501Usually this means the macro was only invoked conditionally." "$LINENO" 5
15502fi
15503if test -z "${SOLARIS_TSOL_CLEARANCE_TRUE}" && test -z "${SOLARIS_TSOL_CLEARANCE_FALSE}"; then
15504 as_fn_error $? "conditional \"SOLARIS_TSOL_CLEARANCE\" was never defined.
15505Usually this means the macro was only invoked conditionally." "$LINENO" 5
15506fi
15507if test -z "${SOLARIS_PSET_GET_NAME_TRUE}" && test -z "${SOLARIS_PSET_GET_NAME_FALSE}"; then
15508 as_fn_error $? "conditional \"SOLARIS_PSET_GET_NAME\" was never defined.
15509Usually this means the macro was only invoked conditionally." "$LINENO" 5
15510fi
15511if test -z "${SOLARIS_UTIMESYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMESYS_SYSCALL_FALSE}"; then
15512 as_fn_error $? "conditional \"SOLARIS_UTIMESYS_SYSCALL\" was never defined.
15513Usually this means the macro was only invoked conditionally." "$LINENO" 5
15514fi
15515if test -z "${SOLARIS_UTIMENSAT_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMENSAT_SYSCALL_FALSE}"; then
15516 as_fn_error $? "conditional \"SOLARIS_UTIMENSAT_SYSCALL\" was never defined.
15517Usually this means the macro was only invoked conditionally." "$LINENO" 5
15518fi
15519if test -z "${SOLARIS_SPAWN_SYSCALL_TRUE}" && test -z "${SOLARIS_SPAWN_SYSCALL_FALSE}"; then
15520 as_fn_error $? "conditional \"SOLARIS_SPAWN_SYSCALL\" was never defined.
15521Usually this means the macro was only invoked conditionally." "$LINENO" 5
15522fi
15523if test -z "${SOLARIS_MODCTL_MODNVL_TRUE}" && test -z "${SOLARIS_MODCTL_MODNVL_FALSE}"; then
15524 as_fn_error $? "conditional \"SOLARIS_MODCTL_MODNVL\" was never defined.
15525Usually this means the macro was only invoked conditionally." "$LINENO" 5
15526fi
15527if test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE}" && test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE}"; then
15528 as_fn_error $? "conditional \"SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE\" was never defined.
15529Usually this means the macro was only invoked conditionally." "$LINENO" 5
15530fi
15531if test -z "${SOLARIS_GETHRT_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETHRT_FASTTRAP_FALSE}"; then
15532 as_fn_error $? "conditional \"SOLARIS_GETHRT_FASTTRAP\" was never defined.
15533Usually this means the macro was only invoked conditionally." "$LINENO" 5
15534fi
15535if test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE}"; then
15536 as_fn_error $? "conditional \"SOLARIS_GETZONEOFFSET_FASTTRAP\" was never defined.
15537Usually this means the macro was only invoked conditionally." "$LINENO" 5
15538fi
15539if test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE}" && test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE}"; then
15540 as_fn_error $? "conditional \"SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS\" was never defined.
15541Usually this means the macro was only invoked conditionally." "$LINENO" 5
15542fi
15543if test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE}"; then
15544 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ADDR\" was never defined.
15545Usually this means the macro was only invoked conditionally." "$LINENO" 5
15546fi
15547if test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE}"; then
15548 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR\" was never defined.
15549Usually this means the macro was only invoked conditionally." "$LINENO" 5
15550fi
15551if test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_TRUE}" && test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_FALSE}"; then
15552 as_fn_error $? "conditional \"SOLARIS_SYSTEM_STATS_SYSCALL\" was never defined.
15553Usually this means the macro was only invoked conditionally." "$LINENO" 5
15554fi
15555if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
15556 as_fn_error $? "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
15557Usually this means the macro was only invoked conditionally." "$LINENO" 5
15558fi
15559if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
15560 as_fn_error $? "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
15561Usually this means the macro was only invoked conditionally." "$LINENO" 5
15562fi
15563if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
15564 as_fn_error $? "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
15565Usually this means the macro was only invoked conditionally." "$LINENO" 5
15566fi
15567if test -z "${HAVE_PTHREAD_SETNAME_NP_TRUE}" && test -z "${HAVE_PTHREAD_SETNAME_NP_FALSE}"; then
15568 as_fn_error $? "conditional \"HAVE_PTHREAD_SETNAME_NP\" was never defined.
15569Usually this means the macro was only invoked conditionally." "$LINENO" 5
15570fi
15571if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
15572 as_fn_error $? "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
15573Usually this means the macro was only invoked conditionally." "$LINENO" 5
15574fi
15575if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
15576 as_fn_error $? "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
15577Usually this means the macro was only invoked conditionally." "$LINENO" 5
15578fi
15579if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
15580 as_fn_error $? "conditional \"HAVE_BOOST_1_35\" was never defined.
15581Usually this means the macro was only invoked conditionally." "$LINENO" 5
15582fi
15583if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
15584 as_fn_error $? "conditional \"HAVE_OPENMP\" was never defined.
15585Usually this means the macro was only invoked conditionally." "$LINENO" 5
15586fi
15587if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
15588 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
15589Usually this means the macro was only invoked conditionally." "$LINENO" 5
15590fi
15591if test -z "${HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE}"; then
15592 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_SECONDARY\" was never defined.
15593Usually this means the macro was only invoked conditionally." "$LINENO" 5
15594fi
15595if test -z "${HAVE_BUILTIN_ATOMIC64_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC64_FALSE}"; then
15596 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC64\" was never defined.
15597Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598fi
15599if test -z "${HAVE_BUILTIN_ATOMIC_CXX_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_CXX_FALSE}"; then
15600 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_CXX\" was never defined.
15601Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602fi
15603if test -z "${ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE}" && test -z "${ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE}"; then
15604 as_fn_error $? "conditional \"ENABLE_LINUX_TICKET_LOCK_PRIMARY\" was never defined.
15605Usually this means the macro was only invoked conditionally." "$LINENO" 5
15606fi
15607if test -z "${ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE}" && test -z "${ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE}"; then
15608 as_fn_error $? "conditional \"ENABLE_LINUX_TICKET_LOCK_SECONDARY\" was never defined.
15609Usually this means the macro was only invoked conditionally." "$LINENO" 5
15610fi
15611if test -z "${HAVE_SHARED_POINTER_ANNOTATION_TRUE}" && test -z "${HAVE_SHARED_POINTER_ANNOTATION_FALSE}"; then
15612 as_fn_error $? "conditional \"HAVE_SHARED_POINTER_ANNOTATION\" was never defined.
15613Usually this means the macro was only invoked conditionally." "$LINENO" 5
15614fi
15615
15616: "${CONFIG_STATUS=./config.status}"
15617ac_write_fail=0
15618ac_clean_files_save=$ac_clean_files
15619ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15620{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15621$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15622as_write_fail=0
15623cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15624#! $SHELL
15625# Generated by $as_me.
15626# Run this file to recreate the current configuration.
15627# Compiler output produced by configure, useful for debugging
15628# configure, is in config.log if it exists.
15629
15630debug=false
15631ac_cs_recheck=false
15632ac_cs_silent=false
15633
15634SHELL=\${CONFIG_SHELL-$SHELL}
15635export SHELL
15636_ASEOF
15637cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15638## -------------------- ##
15639## M4sh Initialization. ##
15640## -------------------- ##
15641
15642# Be more Bourne compatible
15643DUALCASE=1; export DUALCASE # for MKS sh
15644if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15645 emulate sh
15646 NULLCMD=:
15647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15648 # is contrary to our usage. Disable this feature.
15649 alias -g '${1+"$@"}'='"$@"'
15650 setopt NO_GLOB_SUBST
15651else
15652 case `(set -o) 2>/dev/null` in #(
15653 *posix*) :
15654 set -o posix ;; #(
15655 *) :
15656 ;;
15657esac
15658fi
15659
15660
15661as_nl='
15662'
15663export as_nl
15664# Printing a long string crashes Solaris 7 /usr/bin/printf.
15665as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15666as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15667as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15668# Prefer a ksh shell builtin over an external printf program on Solaris,
15669# but without wasting forks for bash or zsh.
15670if test -z "$BASH_VERSION$ZSH_VERSION" \
15671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15672 as_echo='print -r --'
15673 as_echo_n='print -rn --'
15674elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15675 as_echo='printf %s\n'
15676 as_echo_n='printf %s'
15677else
15678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15680 as_echo_n='/usr/ucb/echo -n'
15681 else
15682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15683 as_echo_n_body='eval
15684 arg=$1;
15685 case $arg in #(
15686 *"$as_nl"*)
15687 expr "X$arg" : "X\\(.*\\)$as_nl";
15688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15689 esac;
15690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15691 '
15692 export as_echo_n_body
15693 as_echo_n='sh -c $as_echo_n_body as_echo'
15694 fi
15695 export as_echo_body
15696 as_echo='sh -c $as_echo_body as_echo'
15697fi
15698
15699# The user is always right.
15700if test "${PATH_SEPARATOR+set}" != set; then
15701 PATH_SEPARATOR=:
15702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15704 PATH_SEPARATOR=';'
15705 }
15706fi
15707
15708
15709# IFS
15710# We need space, tab and new line, in precisely that order. Quoting is
15711# there to prevent editors from complaining about space-tab.
15712# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15713# splitting by setting IFS to empty value.)
15714IFS=" "" $as_nl"
15715
15716# Find who we are. Look in the path if we contain no directory separator.
15717as_myself=
15718case $0 in #((
15719 *[\\/]* ) as_myself=$0 ;;
15720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15721for as_dir in $PATH
15722do
15723 IFS=$as_save_IFS
15724 test -z "$as_dir" && as_dir=.
15725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15726 done
15727IFS=$as_save_IFS
15728
15729 ;;
15730esac
15731# We did not find ourselves, most probably we were run as `sh COMMAND'
15732# in which case we are not to be found in the path.
15733if test "x$as_myself" = x; then
15734 as_myself=$0
15735fi
15736if test ! -f "$as_myself"; then
15737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15738 exit 1
15739fi
15740
15741# Unset variables that we do not need and which cause bugs (e.g. in
15742# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15743# suppresses any "Segmentation fault" message there. '((' could
15744# trigger a bug in pdksh 5.2.14.
15745for as_var in BASH_ENV ENV MAIL MAILPATH
15746do eval test x\${$as_var+set} = xset \
15747 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15748done
15749PS1='$ '
15750PS2='> '
15751PS4='+ '
15752
15753# NLS nuisances.
15754LC_ALL=C
15755export LC_ALL
15756LANGUAGE=C
15757export LANGUAGE
15758
15759# CDPATH.
15760(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15761
15762
15763# as_fn_error STATUS ERROR [LINENO LOG_FD]
15764# ----------------------------------------
15765# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15766# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15767# script with STATUS, using 1 if that was 0.
15768as_fn_error ()
15769{
15770 as_status=$1; test $as_status -eq 0 && as_status=1
15771 if test "$4"; then
15772 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15774 fi
15775 $as_echo "$as_me: error: $2" >&2
15776 as_fn_exit $as_status
15777} # as_fn_error
15778
15779
15780# as_fn_set_status STATUS
15781# -----------------------
15782# Set $? to STATUS, without forking.
15783as_fn_set_status ()
15784{
15785 return $1
15786} # as_fn_set_status
15787
15788# as_fn_exit STATUS
15789# -----------------
15790# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15791as_fn_exit ()
15792{
15793 set +e
15794 as_fn_set_status $1
15795 exit $1
15796} # as_fn_exit
15797
15798# as_fn_unset VAR
15799# ---------------
15800# Portably unset VAR.
15801as_fn_unset ()
15802{
15803 { eval $1=; unset $1;}
15804}
15805as_unset=as_fn_unset
15806# as_fn_append VAR VALUE
15807# ----------------------
15808# Append the text in VALUE to the end of the definition contained in VAR. Take
15809# advantage of any shell optimizations that allow amortized linear growth over
15810# repeated appends, instead of the typical quadratic growth present in naive
15811# implementations.
15812if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15813 eval 'as_fn_append ()
15814 {
15815 eval $1+=\$2
15816 }'
15817else
15818 as_fn_append ()
15819 {
15820 eval $1=\$$1\$2
15821 }
15822fi # as_fn_append
15823
15824# as_fn_arith ARG...
15825# ------------------
15826# Perform arithmetic evaluation on the ARGs, and store the result in the
15827# global $as_val. Take advantage of shells that can avoid forks. The arguments
15828# must be portable across $(()) and expr.
15829if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15830 eval 'as_fn_arith ()
15831 {
15832 as_val=$(( $* ))
15833 }'
15834else
15835 as_fn_arith ()
15836 {
15837 as_val=`expr "$@" || test $? -eq 1`
15838 }
15839fi # as_fn_arith
15840
15841
15842if expr a : '\(a\)' >/dev/null 2>&1 &&
15843 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15844 as_expr=expr
15845else
15846 as_expr=false
15847fi
15848
15849if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15850 as_basename=basename
15851else
15852 as_basename=false
15853fi
15854
15855if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15856 as_dirname=dirname
15857else
15858 as_dirname=false
15859fi
15860
15861as_me=`$as_basename -- "$0" ||
15862$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15863 X"$0" : 'X\(//\)$' \| \
15864 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15865$as_echo X/"$0" |
15866 sed '/^.*\/\([^/][^/]*\)\/*$/{
15867 s//\1/
15868 q
15869 }
15870 /^X\/\(\/\/\)$/{
15871 s//\1/
15872 q
15873 }
15874 /^X\/\(\/\).*/{
15875 s//\1/
15876 q
15877 }
15878 s/.*/./; q'`
15879
15880# Avoid depending upon Character Ranges.
15881as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15882as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15883as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15884as_cr_digits='0123456789'
15885as_cr_alnum=$as_cr_Letters$as_cr_digits
15886
15887ECHO_C= ECHO_N= ECHO_T=
15888case `echo -n x` in #(((((
15889-n*)
15890 case `echo 'xy\c'` in
15891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15892 xy) ECHO_C='\c';;
15893 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15894 ECHO_T=' ';;
15895 esac;;
15896*)
15897 ECHO_N='-n';;
15898esac
15899
15900rm -f conf$$ conf$$.exe conf$$.file
15901if test -d conf$$.dir; then
15902 rm -f conf$$.dir/conf$$.file
15903else
15904 rm -f conf$$.dir
15905 mkdir conf$$.dir 2>/dev/null
15906fi
15907if (echo >conf$$.file) 2>/dev/null; then
15908 if ln -s conf$$.file conf$$ 2>/dev/null; then
15909 as_ln_s='ln -s'
15910 # ... but there are two gotchas:
15911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15913 # In both cases, we have to default to `cp -pR'.
15914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15915 as_ln_s='cp -pR'
15916 elif ln conf$$.file conf$$ 2>/dev/null; then
15917 as_ln_s=ln
15918 else
15919 as_ln_s='cp -pR'
15920 fi
15921else
15922 as_ln_s='cp -pR'
15923fi
15924rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15925rmdir conf$$.dir 2>/dev/null
15926
15927
15928# as_fn_mkdir_p
15929# -------------
15930# Create "$as_dir" as a directory, including parents if necessary.
15931as_fn_mkdir_p ()
15932{
15933
15934 case $as_dir in #(
15935 -*) as_dir=./$as_dir;;
15936 esac
15937 test -d "$as_dir" || eval $as_mkdir_p || {
15938 as_dirs=
15939 while :; do
15940 case $as_dir in #(
15941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15942 *) as_qdir=$as_dir;;
15943 esac
15944 as_dirs="'$as_qdir' $as_dirs"
15945 as_dir=`$as_dirname -- "$as_dir" ||
15946$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15947 X"$as_dir" : 'X\(//\)[^/]' \| \
15948 X"$as_dir" : 'X\(//\)$' \| \
15949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15950$as_echo X"$as_dir" |
15951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15952 s//\1/
15953 q
15954 }
15955 /^X\(\/\/\)[^/].*/{
15956 s//\1/
15957 q
15958 }
15959 /^X\(\/\/\)$/{
15960 s//\1/
15961 q
15962 }
15963 /^X\(\/\).*/{
15964 s//\1/
15965 q
15966 }
15967 s/.*/./; q'`
15968 test -d "$as_dir" && break
15969 done
15970 test -z "$as_dirs" || eval "mkdir $as_dirs"
15971 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15972
15973
15974} # as_fn_mkdir_p
15975if mkdir -p . 2>/dev/null; then
15976 as_mkdir_p='mkdir -p "$as_dir"'
15977else
15978 test -d ./-p && rmdir ./-p
15979 as_mkdir_p=false
15980fi
15981
15982
15983# as_fn_executable_p FILE
15984# -----------------------
15985# Test if FILE is an executable regular file.
15986as_fn_executable_p ()
15987{
15988 test -f "$1" && test -x "$1"
15989} # as_fn_executable_p
15990as_test_x='test -x'
15991as_executable_p=as_fn_executable_p
15992
15993# Sed expression to map a string onto a valid CPP name.
15994as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15995
15996# Sed expression to map a string onto a valid variable name.
15997as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15998
15999
16000exec 6>&1
16001## ----------------------------------- ##
16002## Main body of $CONFIG_STATUS script. ##
16003## ----------------------------------- ##
16004_ASEOF
16005test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16006
16007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16008# Save the log message, to keep $0 and so on meaningful, and to
16009# report actual input values of CONFIG_FILES etc. instead of their
16010# values after options handling.
16011ac_log="
Elliott Hughesed398002017-06-21 14:41:24 -070016012This file was extended by Valgrind $as_me 3.13.0, which was
Elliott Hughesa0664b92017-04-18 17:46:52 -070016013generated by GNU Autoconf 2.69. Invocation command line was
16014
16015 CONFIG_FILES = $CONFIG_FILES
16016 CONFIG_HEADERS = $CONFIG_HEADERS
16017 CONFIG_LINKS = $CONFIG_LINKS
16018 CONFIG_COMMANDS = $CONFIG_COMMANDS
16019 $ $0 $@
16020
16021on `(hostname || uname -n) 2>/dev/null | sed 1q`
16022"
16023
16024_ACEOF
16025
16026case $ac_config_files in *"
16027"*) set x $ac_config_files; shift; ac_config_files=$*;;
16028esac
16029
16030case $ac_config_headers in *"
16031"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16032esac
16033
16034
16035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16036# Files that config.status was made for.
16037config_files="$ac_config_files"
16038config_headers="$ac_config_headers"
16039config_commands="$ac_config_commands"
16040
16041_ACEOF
16042
16043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16044ac_cs_usage="\
16045\`$as_me' instantiates files and other configuration actions
16046from templates according to the current configuration. Unless the files
16047and actions are specified as TAGs, all are instantiated by default.
16048
16049Usage: $0 [OPTION]... [TAG]...
16050
16051 -h, --help print this help, then exit
16052 -V, --version print version number and configuration settings, then exit
16053 --config print configuration, then exit
16054 -q, --quiet, --silent
16055 do not print progress messages
16056 -d, --debug don't remove temporary files
16057 --recheck update $as_me by reconfiguring in the same conditions
16058 --file=FILE[:TEMPLATE]
16059 instantiate the configuration file FILE
16060 --header=FILE[:TEMPLATE]
16061 instantiate the configuration header FILE
16062
16063Configuration files:
16064$config_files
16065
16066Configuration headers:
16067$config_headers
16068
16069Configuration commands:
16070$config_commands
16071
16072Report bugs to <valgrind-users@lists.sourceforge.net>."
16073
16074_ACEOF
16075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16076ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16077ac_cs_version="\\
Elliott Hughesed398002017-06-21 14:41:24 -070016078Valgrind config.status 3.13.0
Elliott Hughesa0664b92017-04-18 17:46:52 -070016079configured by $0, generated by GNU Autoconf 2.69,
16080 with options \\"\$ac_cs_config\\"
16081
16082Copyright (C) 2012 Free Software Foundation, Inc.
16083This config.status script is free software; the Free Software Foundation
16084gives unlimited permission to copy, distribute and modify it."
16085
16086ac_pwd='$ac_pwd'
16087srcdir='$srcdir'
16088INSTALL='$INSTALL'
16089MKDIR_P='$MKDIR_P'
16090AWK='$AWK'
16091test -n "\$AWK" || AWK=awk
16092_ACEOF
16093
16094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16095# The default lists apply if the user does not specify any file.
16096ac_need_defaults=:
16097while test $# != 0
16098do
16099 case $1 in
16100 --*=?*)
16101 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16102 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16103 ac_shift=:
16104 ;;
16105 --*=)
16106 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16107 ac_optarg=
16108 ac_shift=:
16109 ;;
16110 *)
16111 ac_option=$1
16112 ac_optarg=$2
16113 ac_shift=shift
16114 ;;
16115 esac
16116
16117 case $ac_option in
16118 # Handling of the options.
16119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16120 ac_cs_recheck=: ;;
16121 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16122 $as_echo "$ac_cs_version"; exit ;;
16123 --config | --confi | --conf | --con | --co | --c )
16124 $as_echo "$ac_cs_config"; exit ;;
16125 --debug | --debu | --deb | --de | --d | -d )
16126 debug=: ;;
16127 --file | --fil | --fi | --f )
16128 $ac_shift
16129 case $ac_optarg in
16130 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16131 '') as_fn_error $? "missing file argument" ;;
16132 esac
16133 as_fn_append CONFIG_FILES " '$ac_optarg'"
16134 ac_need_defaults=false;;
16135 --header | --heade | --head | --hea )
16136 $ac_shift
16137 case $ac_optarg in
16138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16139 esac
16140 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16141 ac_need_defaults=false;;
16142 --he | --h)
16143 # Conflict between --help and --header
16144 as_fn_error $? "ambiguous option: \`$1'
16145Try \`$0 --help' for more information.";;
16146 --help | --hel | -h )
16147 $as_echo "$ac_cs_usage"; exit ;;
16148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16150 ac_cs_silent=: ;;
16151
16152 # This is an error.
16153 -*) as_fn_error $? "unrecognized option: \`$1'
16154Try \`$0 --help' for more information." ;;
16155
16156 *) as_fn_append ac_config_targets " $1"
16157 ac_need_defaults=false ;;
16158
16159 esac
16160 shift
16161done
16162
16163ac_configure_extra_args=
16164
16165if $ac_cs_silent; then
16166 exec 6>/dev/null
16167 ac_configure_extra_args="$ac_configure_extra_args --silent"
16168fi
16169
16170_ACEOF
16171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16172if \$ac_cs_recheck; then
16173 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16174 shift
16175 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16176 CONFIG_SHELL='$SHELL'
16177 export CONFIG_SHELL
16178 exec "\$@"
16179fi
16180
16181_ACEOF
16182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16183exec 5>>config.log
16184{
16185 echo
16186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16187## Running $as_me. ##
16188_ASBOX
16189 $as_echo "$ac_log"
16190} >&5
16191
16192_ACEOF
16193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16194#
16195# INIT-COMMANDS
16196#
16197AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16198
16199_ACEOF
16200
16201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16202
16203# Handling of arguments.
16204for ac_config_target in $ac_config_targets
16205do
16206 case $ac_config_target in
16207 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16208 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16209 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16210 "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
16211 "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
16212 "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
16213 "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
16214 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16215 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16216 "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
16217 "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
16218 "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
16219 "gdbserver_tests/Makefile") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/Makefile" ;;
16220 "gdbserver_tests/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/solaris/Makefile" ;;
16221 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16222 "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
16223 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
16224 "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
16225 "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
16226 "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
16227 "memcheck/tests/common/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/common/Makefile" ;;
16228 "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
16229 "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
16230 "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
16231 "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
16232 "memcheck/tests/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/solaris/Makefile" ;;
16233 "memcheck/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-linux/Makefile" ;;
16234 "memcheck/tests/arm64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/arm64-linux/Makefile" ;;
16235 "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
16236 "memcheck/tests/amd64-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-solaris/Makefile" ;;
16237 "memcheck/tests/x86-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-solaris/Makefile" ;;
16238 "memcheck/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc32/Makefile" ;;
16239 "memcheck/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc64/Makefile" ;;
16240 "memcheck/tests/s390x/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/s390x/Makefile" ;;
Elliott Hughesed398002017-06-21 14:41:24 -070016241 "memcheck/tests/mips32/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/mips32/Makefile" ;;
16242 "memcheck/tests/mips64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/mips64/Makefile" ;;
Elliott Hughesa0664b92017-04-18 17:46:52 -070016243 "memcheck/tests/vbit-test/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/vbit-test/Makefile" ;;
16244 "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
16245 "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
16246 "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
16247 "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
16248 "cachegrind/cg_diff") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_diff" ;;
16249 "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
16250 "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
16251 "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
16252 "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
16253 "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
16254 "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
16255 "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
16256 "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
16257 "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
16258 "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
16259 "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
16260 "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
16261 "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
16262 "none/tests/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/scripts/Makefile" ;;
16263 "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
16264 "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
16265 "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
16266 "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
16267 "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
16268 "none/tests/arm64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm64/Makefile" ;;
16269 "none/tests/s390x/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/s390x/Makefile" ;;
16270 "none/tests/mips32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/mips32/Makefile" ;;
16271 "none/tests/mips64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/mips64/Makefile" ;;
Elliott Hughesa0664b92017-04-18 17:46:52 -070016272 "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
16273 "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
16274 "none/tests/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/solaris/Makefile" ;;
16275 "none/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64-linux/Makefile" ;;
16276 "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
16277 "none/tests/amd64-darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64-darwin/Makefile" ;;
16278 "none/tests/x86-darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-darwin/Makefile" ;;
16279 "none/tests/amd64-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64-solaris/Makefile" ;;
16280 "none/tests/x86-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-solaris/Makefile" ;;
16281 "exp-sgcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/Makefile" ;;
16282 "exp-sgcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/tests/Makefile" ;;
16283 "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
16284 "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
16285 "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
16286 "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
16287 "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
16288 "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
16289 "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
16290 "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
16291 "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
16292 "exp-bbv/tests/arm-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/arm-linux/Makefile" ;;
16293 "exp-dhat/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/Makefile" ;;
16294 "exp-dhat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/tests/Makefile" ;;
16295 "shared/Makefile") CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;;
16296 "solaris/Makefile") CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;;
16297 "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;;
16298 "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;;
16299 "coregrind/link_tool_exe_solaris") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_solaris" ;;
16300
16301 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16302 esac
16303done
16304
16305
16306# If the user did not use the arguments to specify the items to instantiate,
16307# then the envvar interface is used. Set only those that are not.
16308# We use the long form for the default assignment because of an extremely
16309# bizarre bug on SunOS 4.1.3.
16310if $ac_need_defaults; then
16311 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16312 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16313 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16314fi
16315
16316# Have a temporary directory for convenience. Make it in the build tree
16317# simply because there is no reason against having it here, and in addition,
16318# creating and moving files from /tmp can sometimes cause problems.
16319# Hook for its removal unless debugging.
16320# Note that there is a small window in which the directory will not be cleaned:
16321# after its creation but before its name has been assigned to `$tmp'.
16322$debug ||
16323{
16324 tmp= ac_tmp=
16325 trap 'exit_status=$?
16326 : "${ac_tmp:=$tmp}"
16327 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16328' 0
16329 trap 'as_fn_exit 1' 1 2 13 15
16330}
16331# Create a (secure) tmp directory for tmp files.
16332
16333{
16334 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16335 test -d "$tmp"
16336} ||
16337{
16338 tmp=./conf$$-$RANDOM
16339 (umask 077 && mkdir "$tmp")
16340} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16341ac_tmp=$tmp
16342
16343# Set up the scripts for CONFIG_FILES section.
16344# No need to generate them if there are no CONFIG_FILES.
16345# This happens for instance with `./config.status config.h'.
16346if test -n "$CONFIG_FILES"; then
16347
16348
16349ac_cr=`echo X | tr X '\015'`
16350# On cygwin, bash can eat \r inside `` if the user requested igncr.
16351# But we know of no other shell where ac_cr would be empty at this
16352# point, so we can use a bashism as a fallback.
16353if test "x$ac_cr" = x; then
16354 eval ac_cr=\$\'\\r\'
16355fi
16356ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16357if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16358 ac_cs_awk_cr='\\r'
16359else
16360 ac_cs_awk_cr=$ac_cr
16361fi
16362
16363echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16364_ACEOF
16365
16366
16367{
16368 echo "cat >conf$$subs.awk <<_ACEOF" &&
16369 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16370 echo "_ACEOF"
16371} >conf$$subs.sh ||
16372 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16373ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16374ac_delim='%!_!# '
16375for ac_last_try in false false false false false :; do
16376 . ./conf$$subs.sh ||
16377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16378
16379 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16380 if test $ac_delim_n = $ac_delim_num; then
16381 break
16382 elif $ac_last_try; then
16383 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16384 else
16385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16386 fi
16387done
16388rm -f conf$$subs.sh
16389
16390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16391cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16392_ACEOF
16393sed -n '
16394h
16395s/^/S["/; s/!.*/"]=/
16396p
16397g
16398s/^[^!]*!//
16399:repl
16400t repl
16401s/'"$ac_delim"'$//
16402t delim
16403:nl
16404h
16405s/\(.\{148\}\)..*/\1/
16406t more1
16407s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16408p
16409n
16410b repl
16411:more1
16412s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16413p
16414g
16415s/.\{148\}//
16416t nl
16417:delim
16418h
16419s/\(.\{148\}\)..*/\1/
16420t more2
16421s/["\\]/\\&/g; s/^/"/; s/$/"/
16422p
16423b
16424:more2
16425s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16426p
16427g
16428s/.\{148\}//
16429t delim
16430' <conf$$subs.awk | sed '
16431/^[^""]/{
16432 N
16433 s/\n//
16434}
16435' >>$CONFIG_STATUS || ac_write_fail=1
16436rm -f conf$$subs.awk
16437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16438_ACAWK
16439cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16440 for (key in S) S_is_set[key] = 1
16441 FS = ""
16442
16443}
16444{
16445 line = $ 0
16446 nfields = split(line, field, "@")
16447 substed = 0
16448 len = length(field[1])
16449 for (i = 2; i < nfields; i++) {
16450 key = field[i]
16451 keylen = length(key)
16452 if (S_is_set[key]) {
16453 value = S[key]
16454 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16455 len += length(value) + length(field[++i])
16456 substed = 1
16457 } else
16458 len += 1 + keylen
16459 }
16460
16461 print line
16462}
16463
16464_ACAWK
16465_ACEOF
16466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16467if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16468 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16469else
16470 cat
16471fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16472 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16473_ACEOF
16474
16475# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16476# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16477# trailing colons and then remove the whole line if VPATH becomes empty
16478# (actually we leave an empty line to preserve line numbers).
16479if test "x$srcdir" = x.; then
16480 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16481h
16482s///
16483s/^/:/
16484s/[ ]*$/:/
16485s/:\$(srcdir):/:/g
16486s/:\${srcdir}:/:/g
16487s/:@srcdir@:/:/g
16488s/^:*//
16489s/:*$//
16490x
16491s/\(=[ ]*\).*/\1/
16492G
16493s/\n//
16494s/^[^=]*=[ ]*$//
16495}'
16496fi
16497
16498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16499fi # test -n "$CONFIG_FILES"
16500
16501# Set up the scripts for CONFIG_HEADERS section.
16502# No need to generate them if there are no CONFIG_HEADERS.
16503# This happens for instance with `./config.status Makefile'.
16504if test -n "$CONFIG_HEADERS"; then
16505cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16506BEGIN {
16507_ACEOF
16508
16509# Transform confdefs.h into an awk script `defines.awk', embedded as
16510# here-document in config.status, that substitutes the proper values into
16511# config.h.in to produce config.h.
16512
16513# Create a delimiter string that does not exist in confdefs.h, to ease
16514# handling of long lines.
16515ac_delim='%!_!# '
16516for ac_last_try in false false :; do
16517 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16518 if test -z "$ac_tt"; then
16519 break
16520 elif $ac_last_try; then
16521 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16522 else
16523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16524 fi
16525done
16526
16527# For the awk script, D is an array of macro values keyed by name,
16528# likewise P contains macro parameters if any. Preserve backslash
16529# newline sequences.
16530
16531ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16532sed -n '
16533s/.\{148\}/&'"$ac_delim"'/g
16534t rset
16535:rset
16536s/^[ ]*#[ ]*define[ ][ ]*/ /
16537t def
16538d
16539:def
16540s/\\$//
16541t bsnl
16542s/["\\]/\\&/g
16543s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16544D["\1"]=" \3"/p
16545s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16546d
16547:bsnl
16548s/["\\]/\\&/g
16549s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16550D["\1"]=" \3\\\\\\n"\\/p
16551t cont
16552s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16553t cont
16554d
16555:cont
16556n
16557s/.\{148\}/&'"$ac_delim"'/g
16558t clear
16559:clear
16560s/\\$//
16561t bsnlc
16562s/["\\]/\\&/g; s/^/"/; s/$/"/p
16563d
16564:bsnlc
16565s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16566b cont
16567' <confdefs.h | sed '
16568s/'"$ac_delim"'/"\\\
16569"/g' >>$CONFIG_STATUS || ac_write_fail=1
16570
16571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16572 for (key in D) D_is_set[key] = 1
16573 FS = ""
16574}
16575/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16576 line = \$ 0
16577 split(line, arg, " ")
16578 if (arg[1] == "#") {
16579 defundef = arg[2]
16580 mac1 = arg[3]
16581 } else {
16582 defundef = substr(arg[1], 2)
16583 mac1 = arg[2]
16584 }
16585 split(mac1, mac2, "(") #)
16586 macro = mac2[1]
16587 prefix = substr(line, 1, index(line, defundef) - 1)
16588 if (D_is_set[macro]) {
16589 # Preserve the white space surrounding the "#".
16590 print prefix "define", macro P[macro] D[macro]
16591 next
16592 } else {
16593 # Replace #undef with comments. This is necessary, for example,
16594 # in the case of _POSIX_SOURCE, which is predefined and required
16595 # on some systems where configure will not decide to define it.
16596 if (defundef == "undef") {
16597 print "/*", prefix defundef, macro, "*/"
16598 next
16599 }
16600 }
16601}
16602{ print }
16603_ACAWK
16604_ACEOF
16605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16606 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16607fi # test -n "$CONFIG_HEADERS"
16608
16609
16610eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16611shift
16612for ac_tag
16613do
16614 case $ac_tag in
16615 :[FHLC]) ac_mode=$ac_tag; continue;;
16616 esac
16617 case $ac_mode$ac_tag in
16618 :[FHL]*:*);;
16619 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16620 :[FH]-) ac_tag=-:-;;
16621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16622 esac
16623 ac_save_IFS=$IFS
16624 IFS=:
16625 set x $ac_tag
16626 IFS=$ac_save_IFS
16627 shift
16628 ac_file=$1
16629 shift
16630
16631 case $ac_mode in
16632 :L) ac_source=$1;;
16633 :[FH])
16634 ac_file_inputs=
16635 for ac_f
16636 do
16637 case $ac_f in
16638 -) ac_f="$ac_tmp/stdin";;
16639 *) # Look for the file first in the build tree, then in the source tree
16640 # (if the path is not absolute). The absolute path cannot be DOS-style,
16641 # because $ac_f cannot contain `:'.
16642 test -f "$ac_f" ||
16643 case $ac_f in
16644 [\\/$]*) false;;
16645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16646 esac ||
16647 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16648 esac
16649 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16650 as_fn_append ac_file_inputs " '$ac_f'"
16651 done
16652
16653 # Let's still pretend it is `configure' which instantiates (i.e., don't
16654 # use $as_me), people would be surprised to read:
16655 # /* config.h. Generated by config.status. */
16656 configure_input='Generated from '`
16657 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16658 `' by configure.'
16659 if test x"$ac_file" != x-; then
16660 configure_input="$ac_file. $configure_input"
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16662$as_echo "$as_me: creating $ac_file" >&6;}
16663 fi
16664 # Neutralize special characters interpreted by sed in replacement strings.
16665 case $configure_input in #(
16666 *\&* | *\|* | *\\* )
16667 ac_sed_conf_input=`$as_echo "$configure_input" |
16668 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16669 *) ac_sed_conf_input=$configure_input;;
16670 esac
16671
16672 case $ac_tag in
16673 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16675 esac
16676 ;;
16677 esac
16678
16679 ac_dir=`$as_dirname -- "$ac_file" ||
16680$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16681 X"$ac_file" : 'X\(//\)[^/]' \| \
16682 X"$ac_file" : 'X\(//\)$' \| \
16683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16684$as_echo X"$ac_file" |
16685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16686 s//\1/
16687 q
16688 }
16689 /^X\(\/\/\)[^/].*/{
16690 s//\1/
16691 q
16692 }
16693 /^X\(\/\/\)$/{
16694 s//\1/
16695 q
16696 }
16697 /^X\(\/\).*/{
16698 s//\1/
16699 q
16700 }
16701 s/.*/./; q'`
16702 as_dir="$ac_dir"; as_fn_mkdir_p
16703 ac_builddir=.
16704
16705case "$ac_dir" in
16706.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16707*)
16708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16709 # A ".." for each directory in $ac_dir_suffix.
16710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16711 case $ac_top_builddir_sub in
16712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16714 esac ;;
16715esac
16716ac_abs_top_builddir=$ac_pwd
16717ac_abs_builddir=$ac_pwd$ac_dir_suffix
16718# for backward compatibility:
16719ac_top_builddir=$ac_top_build_prefix
16720
16721case $srcdir in
16722 .) # We are building in place.
16723 ac_srcdir=.
16724 ac_top_srcdir=$ac_top_builddir_sub
16725 ac_abs_top_srcdir=$ac_pwd ;;
16726 [\\/]* | ?:[\\/]* ) # Absolute name.
16727 ac_srcdir=$srcdir$ac_dir_suffix;
16728 ac_top_srcdir=$srcdir
16729 ac_abs_top_srcdir=$srcdir ;;
16730 *) # Relative name.
16731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16732 ac_top_srcdir=$ac_top_build_prefix$srcdir
16733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16734esac
16735ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16736
16737
16738 case $ac_mode in
16739 :F)
16740 #
16741 # CONFIG_FILE
16742 #
16743
16744 case $INSTALL in
16745 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16746 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16747 esac
16748 ac_MKDIR_P=$MKDIR_P
16749 case $MKDIR_P in
16750 [\\/$]* | ?:[\\/]* ) ;;
16751 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16752 esac
16753_ACEOF
16754
16755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16756# If the template does not know about datarootdir, expand it.
16757# FIXME: This hack should be removed a few years after 2.60.
16758ac_datarootdir_hack=; ac_datarootdir_seen=
16759ac_sed_dataroot='
16760/datarootdir/ {
16761 p
16762 q
16763}
16764/@datadir@/p
16765/@docdir@/p
16766/@infodir@/p
16767/@localedir@/p
16768/@mandir@/p'
16769case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16770*datarootdir*) ac_datarootdir_seen=yes;;
16771*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16773$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16774_ACEOF
16775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16776 ac_datarootdir_hack='
16777 s&@datadir@&$datadir&g
16778 s&@docdir@&$docdir&g
16779 s&@infodir@&$infodir&g
16780 s&@localedir@&$localedir&g
16781 s&@mandir@&$mandir&g
16782 s&\\\${datarootdir}&$datarootdir&g' ;;
16783esac
16784_ACEOF
16785
16786# Neutralize VPATH when `$srcdir' = `.'.
16787# Shell code in configure.ac might set extrasub.
16788# FIXME: do we really want to maintain this feature?
16789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16790ac_sed_extra="$ac_vpsub
16791$extrasub
16792_ACEOF
16793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16794:t
16795/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16796s|@configure_input@|$ac_sed_conf_input|;t t
16797s&@top_builddir@&$ac_top_builddir_sub&;t t
16798s&@top_build_prefix@&$ac_top_build_prefix&;t t
16799s&@srcdir@&$ac_srcdir&;t t
16800s&@abs_srcdir@&$ac_abs_srcdir&;t t
16801s&@top_srcdir@&$ac_top_srcdir&;t t
16802s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16803s&@builddir@&$ac_builddir&;t t
16804s&@abs_builddir@&$ac_abs_builddir&;t t
16805s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16806s&@INSTALL@&$ac_INSTALL&;t t
16807s&@MKDIR_P@&$ac_MKDIR_P&;t t
16808$ac_datarootdir_hack
16809"
16810eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16811 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16812
16813test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16814 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16815 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16816 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16818which seems to be undefined. Please make sure it is defined" >&5
16819$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16820which seems to be undefined. Please make sure it is defined" >&2;}
16821
16822 rm -f "$ac_tmp/stdin"
16823 case $ac_file in
16824 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16825 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16826 esac \
16827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16828 ;;
16829 :H)
16830 #
16831 # CONFIG_HEADER
16832 #
16833 if test x"$ac_file" != x-; then
16834 {
16835 $as_echo "/* $configure_input */" \
16836 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16837 } >"$ac_tmp/config.h" \
16838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16839 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16841$as_echo "$as_me: $ac_file is unchanged" >&6;}
16842 else
16843 rm -f "$ac_file"
16844 mv "$ac_tmp/config.h" "$ac_file" \
16845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16846 fi
16847 else
16848 $as_echo "/* $configure_input */" \
16849 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16850 || as_fn_error $? "could not create -" "$LINENO" 5
16851 fi
16852# Compute "$ac_file"'s index in $config_headers.
16853_am_arg="$ac_file"
16854_am_stamp_count=1
16855for _am_header in $config_headers :; do
16856 case $_am_header in
16857 $_am_arg | $_am_arg:* )
16858 break ;;
16859 * )
16860 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16861 esac
16862done
16863echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16864$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16865 X"$_am_arg" : 'X\(//\)[^/]' \| \
16866 X"$_am_arg" : 'X\(//\)$' \| \
16867 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16868$as_echo X"$_am_arg" |
16869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16870 s//\1/
16871 q
16872 }
16873 /^X\(\/\/\)[^/].*/{
16874 s//\1/
16875 q
16876 }
16877 /^X\(\/\/\)$/{
16878 s//\1/
16879 q
16880 }
16881 /^X\(\/\).*/{
16882 s//\1/
16883 q
16884 }
16885 s/.*/./; q'`/stamp-h$_am_stamp_count
16886 ;;
16887
16888 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16889$as_echo "$as_me: executing $ac_file commands" >&6;}
16890 ;;
16891 esac
16892
16893
16894 case $ac_file$ac_mode in
16895 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16896 # Older Autoconf quotes --file arguments for eval, but not when files
16897 # are listed without --file. Let's play safe and only enable the eval
16898 # if we detect the quoting.
16899 case $CONFIG_FILES in
16900 *\'*) eval set x "$CONFIG_FILES" ;;
16901 *) set x $CONFIG_FILES ;;
16902 esac
16903 shift
16904 for mf
16905 do
16906 # Strip MF so we end up with the name of the file.
16907 mf=`echo "$mf" | sed -e 's/:.*$//'`
16908 # Check whether this is an Automake generated Makefile or not.
16909 # We used to match only the files named 'Makefile.in', but
16910 # some people rename them; so instead we look at the file content.
16911 # Grep'ing the first line is not enough: some people post-process
16912 # each Makefile.in and add a new line on top of each file to say so.
16913 # Grep'ing the whole file is not good either: AIX grep has a line
16914 # limit of 2048, but all sed's we know have understand at least 4000.
16915 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16916 dirpart=`$as_dirname -- "$mf" ||
16917$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16918 X"$mf" : 'X\(//\)[^/]' \| \
16919 X"$mf" : 'X\(//\)$' \| \
16920 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16921$as_echo X"$mf" |
16922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16923 s//\1/
16924 q
16925 }
16926 /^X\(\/\/\)[^/].*/{
16927 s//\1/
16928 q
16929 }
16930 /^X\(\/\/\)$/{
16931 s//\1/
16932 q
16933 }
16934 /^X\(\/\).*/{
16935 s//\1/
16936 q
16937 }
16938 s/.*/./; q'`
16939 else
16940 continue
16941 fi
16942 # Extract the definition of DEPDIR, am__include, and am__quote
16943 # from the Makefile without running 'make'.
16944 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16945 test -z "$DEPDIR" && continue
16946 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16947 test -z "$am__include" && continue
16948 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16949 # Find all dependency output files, they are included files with
16950 # $(DEPDIR) in their names. We invoke sed twice because it is the
16951 # simplest approach to changing $(DEPDIR) to its actual value in the
16952 # expansion.
16953 for file in `sed -n "
16954 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16955 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16956 # Make sure the directory exists.
16957 test -f "$dirpart/$file" && continue
16958 fdir=`$as_dirname -- "$file" ||
16959$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16960 X"$file" : 'X\(//\)[^/]' \| \
16961 X"$file" : 'X\(//\)$' \| \
16962 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16963$as_echo X"$file" |
16964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16965 s//\1/
16966 q
16967 }
16968 /^X\(\/\/\)[^/].*/{
16969 s//\1/
16970 q
16971 }
16972 /^X\(\/\/\)$/{
16973 s//\1/
16974 q
16975 }
16976 /^X\(\/\).*/{
16977 s//\1/
16978 q
16979 }
16980 s/.*/./; q'`
16981 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16982 # echo "creating $dirpart/$file"
16983 echo '# dummy' > "$dirpart/$file"
16984 done
16985 done
16986}
16987 ;;
16988 "coregrind/link_tool_exe_linux":F) chmod +x coregrind/link_tool_exe_linux ;;
16989 "coregrind/link_tool_exe_darwin":F) chmod +x coregrind/link_tool_exe_darwin ;;
16990 "coregrind/link_tool_exe_solaris":F) chmod +x coregrind/link_tool_exe_solaris ;;
16991
16992 esac
16993done # for ac_tag
16994
16995
16996as_fn_exit 0
16997_ACEOF
16998ac_clean_files=$ac_clean_files_save
16999
17000test $ac_write_fail = 0 ||
17001 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17002
17003
17004# configure is writing to config.log, and then calls config.status.
17005# config.status does its own redirection, appending to config.log.
17006# Unfortunately, on DOS this fails, as config.log is still kept open
17007# by configure, so config.status won't be able to write to it; its
17008# output is simply discarded. So we exec the FD to /dev/null,
17009# effectively closing config.log, so it can be properly (re)opened and
17010# appended to by config.status. When coming back to configure, we
17011# need to make the FD available again.
17012if test "$no_create" != yes; then
17013 ac_cs_success=:
17014 ac_config_status_args=
17015 test "$silent" = yes &&
17016 ac_config_status_args="$ac_config_status_args --quiet"
17017 exec 5>/dev/null
17018 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17019 exec 5>>config.log
17020 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17021 # would make configure fail if this is the last instruction.
17022 $ac_cs_success || as_fn_exit 1
17023fi
17024if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17026$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17027fi
17028
17029
17030cat<<EOF
17031
17032 Maximum build arch: ${ARCH_MAX}
17033 Primary build arch: ${VGCONF_ARCH_PRI}
17034 Secondary build arch: ${VGCONF_ARCH_SEC}
17035 Build OS: ${VGCONF_OS}
17036 Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
17037 Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
17038 Platform variant: ${VGCONF_PLATVARIANT}
17039 Primary -DVGPV string: -DVGPV_${VGCONF_ARCH_PRI}_${VGCONF_OS}_${VGCONF_PLATVARIANT}=1
17040 Default supp files: ${DEFAULT_SUPP}
17041
17042EOF