blob: f04f4e01d319802a3930af7c4aaf49c32b9572c7 [file] [log] [blame]
menderico4861bb82009-09-29 00:31:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003# Generated by GNU Autoconf 2.69 for stressapptest 1.0.9_autoconf.
menderico4861bb82009-09-29 00:31:36 +00004#
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00005# Report bugs to <opensource@google.com>.
menderico4861bb82009-09-29 00:31:36 +00006#
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007#
Nick Sandersfb72e5e2018-08-09 17:01:01 -07008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00009#
10#
menderico4861bb82009-09-29 00:31:36 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
nick.j.sanders3f2289d2011-11-11 00:34:37 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
menderico4861bb82009-09-29 00:31:36 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
nick.j.sanders3f2289d2011-11-11 00:34:37 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
menderico4861bb82009-09-29 00:31:36 +000020 emulate sh
21 NULLCMD=:
nick.j.sanders3f2289d2011-11-11 00:34:37 +000022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
menderico4861bb82009-09-29 00:31:36 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
nick.j.sanders3f2289d2011-11-11 00:34:37 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
menderico4861bb82009-09-29 00:31:36 +000032esac
menderico4861bb82009-09-29 00:31:36 +000033fi
34
35
nick.j.sanders3f2289d2011-11-11 00:34:37 +000036as_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
menderico4861bb82009-09-29 00:31:36 +000073
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +000076 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 }
menderico4861bb82009-09-29 00:31:36 +000081fi
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.)
menderico4861bb82009-09-29 00:31:36 +000089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Nick Sandersfb72e5e2018-08-09 17:01:01 -070092as_myself=
nick.j.sanders3f2289d2011-11-11 00:34:37 +000093case $0 in #((
menderico4861bb82009-09-29 00:31:36 +000094 *[\\/]* ) 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=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
menderico4861bb82009-09-29 00:31:36 +0000102IFS=$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
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
menderico4861bb82009-09-29 00:31:36 +0000114fi
115
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000116# 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 || :
menderico4861bb82009-09-29 00:31:36 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
menderico4861bb82009-09-29 00:31:36 +0000133
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700137# 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;}
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000162if 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
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000197 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 :
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700241 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
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000260fi
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: opensource@google.com about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: 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"
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000359
360
361} # as_fn_mkdir_p
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700362
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
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000370# 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
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000408# 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
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700410# script with STATUS, using 1 if that was 0.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000411as_fn_error ()
412{
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700413 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
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000417 fi
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700418 $as_echo "$as_me: error: $2" >&2
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000419 as_fn_exit $as_status
420} # as_fn_error
421
menderico4861bb82009-09-29 00:31:36 +0000422if 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
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
menderico4861bb82009-09-29 00:31:36 +0000440
menderico4861bb82009-09-29 00:31:36 +0000441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000445$as_echo X/"$0" |
menderico4861bb82009-09-29 00:31:36 +0000446 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
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000460# 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
menderico4861bb82009-09-29 00:31:36 +0000466
467
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000468 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. :-)
menderico4861bb82009-09-29 00:31:36 +0000473 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" ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
menderico4861bb82009-09-29 00:31:36 +0000490
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700491 # 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
menderico4861bb82009-09-29 00:31:36 +0000495 # 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
menderico4861bb82009-09-29 00:31:36 +0000503ECHO_C= ECHO_N= ECHO_T=
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000504case `echo -n x` in #(((((
menderico4861bb82009-09-29 00:31:36 +0000505-n*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000506 case `echo 'xy\c'` in
menderico4861bb82009-09-29 00:31:36 +0000507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
menderico4861bb82009-09-29 00:31:36 +0000511 esac;;
512*)
513 ECHO_N='-n';;
514esac
515
menderico4861bb82009-09-29 00:31:36 +0000516rm -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
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000521 mkdir conf$$.dir 2>/dev/null
menderico4861bb82009-09-29 00:31:36 +0000522fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000523if (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.
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700529 # In both cases, we have to default to `cp -pR'.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700531 as_ln_s='cp -pR'
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700535 as_ln_s='cp -pR'
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000536 fi
menderico4861bb82009-09-29 00:31:36 +0000537else
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700538 as_ln_s='cp -pR'
menderico4861bb82009-09-29 00:31:36 +0000539fi
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
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000544 as_mkdir_p='mkdir -p "$as_dir"'
menderico4861bb82009-09-29 00:31:36 +0000545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
menderico4861bb82009-09-29 00:31:36 +0000552
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
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
menderico4861bb82009-09-29 00:31:36 +0000562
563# Name of the host.
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
menderico4861bb82009-09-29 00:31:36 +0000565# 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=
menderico4861bb82009-09-29 00:31:36 +0000579
580# Identity of this package.
581PACKAGE_NAME='stressapptest'
582PACKAGE_TARNAME='stressapptest'
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700583PACKAGE_VERSION='1.0.9_autoconf'
584PACKAGE_STRING='stressapptest 1.0.9_autoconf'
nick.j.sandersb4c2ce32009-10-27 05:56:42 +0000585PACKAGE_BUGREPORT='opensource@google.com'
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000586PACKAGE_URL=''
menderico4861bb82009-09-29 00:31:36 +0000587
588ac_unique_file="src/"
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
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
menderico4861bb82009-09-29 00:31:36 +0000628LIBOBJS
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000629EGREP
630GREP
631CPP
632am__fastdepCC_FALSE
633am__fastdepCC_TRUE
634CCDEPMODE
635ac_ct_CC
636CFLAGS
637CC
638am__fastdepCXX_FALSE
639am__fastdepCXX_TRUE
640CXXDEPMODE
641AMDEPBACKSLASH
642AMDEP_FALSE
643AMDEP_TRUE
644am__quote
645am__include
646DEPDIR
647OBJEXT
648EXEEXT
649ac_ct_CXX
650CPPFLAGS
651LDFLAGS
652CXXFLAGS
653CXX
654am__untar
655am__tar
656AMTAR
657am__leading_dot
658SET_MAKE
659AWK
660mkdir_p
661MKDIR_P
662INSTALL_STRIP_PROGRAM
663STRIP
664install_sh
665MAKEINFO
666AUTOHEADER
667AUTOMAKE
668AUTOCONF
669ACLOCAL
670VERSION
671PACKAGE
672CYGPATH_W
673am__isrc
674INSTALL_DATA
675INSTALL_SCRIPT
676INSTALL_PROGRAM
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000677host_os
678host_vendor
679host_cpu
680host
681build_os
682build_vendor
683build_cpu
684build
685target_alias
686host_alias
687build_alias
688LIBS
689ECHO_T
690ECHO_N
691ECHO_C
692DEFS
693mandir
694localedir
695libdir
696psdir
697pdfdir
698dvidir
699htmldir
700infodir
701docdir
702oldincludedir
703includedir
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700704runstatedir
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000705localstatedir
706sharedstatedir
707sysconfdir
708datadir
709datarootdir
710libexecdir
711sbindir
712bindir
713program_transform_name
714prefix
715exec_prefix
716PACKAGE_URL
717PACKAGE_BUGREPORT
718PACKAGE_STRING
719PACKAGE_VERSION
720PACKAGE_TARNAME
721PACKAGE_NAME
722PATH_SEPARATOR
723SHELL'
menderico4861bb82009-09-29 00:31:36 +0000724ac_subst_files=''
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000725ac_user_opts='
726enable_option_checking
727with_static
728enable_dependency_tracking
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000729enable_default_optimizations
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000730'
menderico4861bb82009-09-29 00:31:36 +0000731 ac_precious_vars='build_alias
732host_alias
733target_alias
734CXX
735CXXFLAGS
736LDFLAGS
737LIBS
738CPPFLAGS
739CCC
740CC
741CFLAGS
742CPP'
743
744
745# Initialize some variables set by options.
746ac_init_help=
747ac_init_version=false
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000748ac_unrecognized_opts=
749ac_unrecognized_sep=
menderico4861bb82009-09-29 00:31:36 +0000750# The variables have the same names as the options, with
751# dashes changed to underlines.
752cache_file=/dev/null
753exec_prefix=NONE
754no_create=
755no_recursion=
756prefix=NONE
757program_prefix=NONE
758program_suffix=NONE
759program_transform_name=s,x,x,
760silent=
761site=
762srcdir=
763verbose=
764x_includes=NONE
765x_libraries=NONE
766
767# Installation directory options.
768# These are left unexpanded so users can "make install exec_prefix=/foo"
769# and all the variables that are supposed to be based on exec_prefix
770# by default will actually change.
771# Use braces instead of parens because sh, perl, etc. also accept them.
772# (The list follows the same order as the GNU Coding Standards.)
773bindir='${exec_prefix}/bin'
774sbindir='${exec_prefix}/sbin'
775libexecdir='${exec_prefix}/libexec'
776datarootdir='${prefix}/share'
777datadir='${datarootdir}'
778sysconfdir='${prefix}/etc'
779sharedstatedir='${prefix}/com'
780localstatedir='${prefix}/var'
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700781runstatedir='${localstatedir}/run'
menderico4861bb82009-09-29 00:31:36 +0000782includedir='${prefix}/include'
783oldincludedir='/usr/include'
784docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785infodir='${datarootdir}/info'
786htmldir='${docdir}'
787dvidir='${docdir}'
788pdfdir='${docdir}'
789psdir='${docdir}'
790libdir='${exec_prefix}/lib'
791localedir='${datarootdir}/locale'
792mandir='${datarootdir}/man'
793
794ac_prev=
795ac_dashdash=
796for ac_option
797do
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\$ac_option
801 ac_prev=
802 continue
803 fi
804
805 case $ac_option in
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700806 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 *=) ac_optarg= ;;
808 *) ac_optarg=yes ;;
menderico4861bb82009-09-29 00:31:36 +0000809 esac
810
811 # Accept the important Cygnus configure options, so we can diagnose typos.
812
813 case $ac_dashdash$ac_option in
814 --)
815 ac_dashdash=yes ;;
816
817 -bindir | --bindir | --bindi | --bind | --bin | --bi)
818 ac_prev=bindir ;;
819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820 bindir=$ac_optarg ;;
821
822 -build | --build | --buil | --bui | --bu)
823 ac_prev=build_alias ;;
824 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825 build_alias=$ac_optarg ;;
826
827 -cache-file | --cache-file | --cache-fil | --cache-fi \
828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829 ac_prev=cache_file ;;
830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832 cache_file=$ac_optarg ;;
833
834 --config-cache | -C)
835 cache_file=config.cache ;;
836
837 -datadir | --datadir | --datadi | --datad)
838 ac_prev=datadir ;;
839 -datadir=* | --datadir=* | --datadi=* | --datad=*)
840 datadir=$ac_optarg ;;
841
842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843 | --dataroo | --dataro | --datar)
844 ac_prev=datarootdir ;;
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;;
848
849 -disable-* | --disable-*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000850 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
menderico4861bb82009-09-29 00:31:36 +0000851 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700853 as_fn_error $? "invalid feature name: $ac_useropt"
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000854 ac_useropt_orig=$ac_useropt
855 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
857 *"
858"enable_$ac_useropt"
859"*) ;;
860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
861 ac_unrecognized_sep=', ';;
862 esac
863 eval enable_$ac_useropt=no ;;
menderico4861bb82009-09-29 00:31:36 +0000864
865 -docdir | --docdir | --docdi | --doc | --do)
866 ac_prev=docdir ;;
867 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
868 docdir=$ac_optarg ;;
869
870 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
871 ac_prev=dvidir ;;
872 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
873 dvidir=$ac_optarg ;;
874
875 -enable-* | --enable-*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000876 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
menderico4861bb82009-09-29 00:31:36 +0000877 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Nick Sandersfb72e5e2018-08-09 17:01:01 -0700879 as_fn_error $? "invalid feature name: $ac_useropt"
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
883 *"
884"enable_$ac_useropt"
885"*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=\$ac_optarg ;;
menderico4861bb82009-09-29 00:31:36 +0000890
891 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893 | --exec | --exe | --ex)
894 ac_prev=exec_prefix ;;
895 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897 | --exec=* | --exe=* | --ex=*)
898 exec_prefix=$ac_optarg ;;
899
900 -gas | --gas | --ga | --g)
901 # Obsolete; use --with-gas.
902 with_gas=yes ;;
903
904 -help | --help | --hel | --he | -h)
905 ac_init_help=long ;;
906 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907 ac_init_help=recursive ;;
908 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909 ac_init_help=short ;;
910
911 -host | --host | --hos | --ho)
912 ac_prev=host_alias ;;
913 -host=* | --host=* | --hos=* | --ho=*)
914 host_alias=$ac_optarg ;;
915
916 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
917 ac_prev=htmldir ;;
918 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
919 | --ht=*)
920 htmldir=$ac_optarg ;;
921
922 -includedir | --includedir | --includedi | --included | --include \
923 | --includ | --inclu | --incl | --inc)
924 ac_prev=includedir ;;
925 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926 | --includ=* | --inclu=* | --incl=* | --inc=*)
927 includedir=$ac_optarg ;;
928
929 -infodir | --infodir | --infodi | --infod | --info | --inf)
930 ac_prev=infodir ;;
931 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932 infodir=$ac_optarg ;;
933
934 -libdir | --libdir | --libdi | --libd)
935 ac_prev=libdir ;;
936 -libdir=* | --libdir=* | --libdi=* | --libd=*)
937 libdir=$ac_optarg ;;
938
939 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940 | --libexe | --libex | --libe)
941 ac_prev=libexecdir ;;
942 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943 | --libexe=* | --libex=* | --libe=*)
944 libexecdir=$ac_optarg ;;
945
946 -localedir | --localedir | --localedi | --localed | --locale)
947 ac_prev=localedir ;;
948 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949 localedir=$ac_optarg ;;
950
951 -localstatedir | --localstatedir | --localstatedi | --localstated \
952 | --localstate | --localstat | --localsta | --localst | --locals)
953 ac_prev=localstatedir ;;
954 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956 localstatedir=$ac_optarg ;;
957
958 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959 ac_prev=mandir ;;
960 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
961 mandir=$ac_optarg ;;
962
963 -nfp | --nfp | --nf)
964 # Obsolete; use --without-fp.
965 with_fp=no ;;
966
967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 | --no-cr | --no-c | -n)
969 no_create=yes ;;
970
971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973 no_recursion=yes ;;
974
975 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977 | --oldin | --oldi | --old | --ol | --o)
978 ac_prev=oldincludedir ;;
979 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982 oldincludedir=$ac_optarg ;;
983
984 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985 ac_prev=prefix ;;
986 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987 prefix=$ac_optarg ;;
988
989 -program-prefix | --program-prefix | --program-prefi | --program-pref \
990 | --program-pre | --program-pr | --program-p)
991 ac_prev=program_prefix ;;
992 -program-prefix=* | --program-prefix=* | --program-prefi=* \
993 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994 program_prefix=$ac_optarg ;;
995
996 -program-suffix | --program-suffix | --program-suffi | --program-suff \
997 | --program-suf | --program-su | --program-s)
998 ac_prev=program_suffix ;;
999 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001 program_suffix=$ac_optarg ;;
1002
1003 -program-transform-name | --program-transform-name \
1004 | --program-transform-nam | --program-transform-na \
1005 | --program-transform-n | --program-transform- \
1006 | --program-transform | --program-transfor \
1007 | --program-transfo | --program-transf \
1008 | --program-trans | --program-tran \
1009 | --progr-tra | --program-tr | --program-t)
1010 ac_prev=program_transform_name ;;
1011 -program-transform-name=* | --program-transform-name=* \
1012 | --program-transform-nam=* | --program-transform-na=* \
1013 | --program-transform-n=* | --program-transform-=* \
1014 | --program-transform=* | --program-transfor=* \
1015 | --program-transfo=* | --program-transf=* \
1016 | --program-trans=* | --program-tran=* \
1017 | --progr-tra=* | --program-tr=* | --program-t=*)
1018 program_transform_name=$ac_optarg ;;
1019
1020 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021 ac_prev=pdfdir ;;
1022 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023 pdfdir=$ac_optarg ;;
1024
1025 -psdir | --psdir | --psdi | --psd | --ps)
1026 ac_prev=psdir ;;
1027 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1028 psdir=$ac_optarg ;;
1029
1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031 | -silent | --silent | --silen | --sile | --sil)
1032 silent=yes ;;
1033
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001034 -runstatedir | --runstatedir | --runstatedi | --runstated \
1035 | --runstate | --runstat | --runsta | --runst | --runs \
1036 | --run | --ru | --r)
1037 ac_prev=runstatedir ;;
1038 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1039 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1040 | --run=* | --ru=* | --r=*)
1041 runstatedir=$ac_optarg ;;
1042
menderico4861bb82009-09-29 00:31:36 +00001043 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044 ac_prev=sbindir ;;
1045 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046 | --sbi=* | --sb=*)
1047 sbindir=$ac_optarg ;;
1048
1049 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051 | --sharedst | --shareds | --shared | --share | --shar \
1052 | --sha | --sh)
1053 ac_prev=sharedstatedir ;;
1054 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057 | --sha=* | --sh=*)
1058 sharedstatedir=$ac_optarg ;;
1059
1060 -site | --site | --sit)
1061 ac_prev=site ;;
1062 -site=* | --site=* | --sit=*)
1063 site=$ac_optarg ;;
1064
1065 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066 ac_prev=srcdir ;;
1067 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068 srcdir=$ac_optarg ;;
1069
1070 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071 | --syscon | --sysco | --sysc | --sys | --sy)
1072 ac_prev=sysconfdir ;;
1073 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075 sysconfdir=$ac_optarg ;;
1076
1077 -target | --target | --targe | --targ | --tar | --ta | --t)
1078 ac_prev=target_alias ;;
1079 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080 target_alias=$ac_optarg ;;
1081
1082 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083 verbose=yes ;;
1084
1085 -version | --version | --versio | --versi | --vers | -V)
1086 ac_init_version=: ;;
1087
1088 -with-* | --with-*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001089 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
menderico4861bb82009-09-29 00:31:36 +00001090 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001092 as_fn_error $? "invalid package name: $ac_useropt"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097"with_$ac_useropt"
1098"*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=\$ac_optarg ;;
menderico4861bb82009-09-29 00:31:36 +00001103
1104 -without-* | --without-*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001105 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
menderico4861bb82009-09-29 00:31:36 +00001106 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001108 as_fn_error $? "invalid package name: $ac_useropt"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113"with_$ac_useropt"
1114"*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=no ;;
menderico4861bb82009-09-29 00:31:36 +00001119
1120 --x)
1121 # Obsolete; use --with-x.
1122 with_x=yes ;;
1123
1124 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125 | --x-incl | --x-inc | --x-in | --x-i)
1126 ac_prev=x_includes ;;
1127 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129 x_includes=$ac_optarg ;;
1130
1131 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133 ac_prev=x_libraries ;;
1134 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136 x_libraries=$ac_optarg ;;
1137
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001138 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1139Try \`$0 --help' for more information"
menderico4861bb82009-09-29 00:31:36 +00001140 ;;
1141
1142 *=*)
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001145 case $ac_envvar in #(
1146 '' | [0-9]* | *[!_$as_cr_alnum]* )
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001147 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001148 esac
menderico4861bb82009-09-29 00:31:36 +00001149 eval $ac_envvar=\$ac_optarg
1150 export $ac_envvar ;;
1151
1152 *)
1153 # FIXME: should be removed in autoconf 3.0.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001154 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
menderico4861bb82009-09-29 00:31:36 +00001155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001156 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001157 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
menderico4861bb82009-09-29 00:31:36 +00001158 ;;
1159
1160 esac
1161done
1162
1163if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001165 as_fn_error $? "missing argument to $ac_option"
menderico4861bb82009-09-29 00:31:36 +00001166fi
1167
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001168if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1170 no) ;;
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001171 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173 esac
1174fi
1175
1176# Check all directory arguments for consistency.
menderico4861bb82009-09-29 00:31:36 +00001177for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001180 libdir localedir mandir runstatedir
menderico4861bb82009-09-29 00:31:36 +00001181do
1182 eval ac_val=\$$ac_var
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001183 # Remove trailing slashes.
1184 case $ac_val in
1185 */ )
1186 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\$ac_val;;
1188 esac
1189 # Be sure to have absolute directory names.
menderico4861bb82009-09-29 00:31:36 +00001190 case $ac_val in
1191 [\\/$]* | ?:[\\/]* ) continue;;
1192 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193 esac
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001194 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
menderico4861bb82009-09-29 00:31:36 +00001195done
1196
1197# There might be people who depend on the old broken behavior: `$host'
1198# used to hold the argument of --host etc.
1199# FIXME: To remove some day.
1200build=$build_alias
1201host=$host_alias
1202target=$target_alias
1203
1204# FIXME: To remove some day.
1205if test "x$host_alias" != x; then
1206 if test "x$build_alias" = x; then
1207 cross_compiling=maybe
menderico4861bb82009-09-29 00:31:36 +00001208 elif test "x$build_alias" != "x$host_alias"; then
1209 cross_compiling=yes
1210 fi
1211fi
1212
1213ac_tool_prefix=
1214test -n "$host_alias" && ac_tool_prefix=$host_alias-
1215
1216test "$silent" = yes && exec 6>/dev/null
1217
1218
1219ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220ac_ls_di=`ls -di .` &&
1221ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001222 as_fn_error $? "working directory cannot be determined"
menderico4861bb82009-09-29 00:31:36 +00001223test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001224 as_fn_error $? "pwd does not report name of working directory"
menderico4861bb82009-09-29 00:31:36 +00001225
1226
1227# Find the source files, if location was not specified.
1228if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001231 ac_confdir=`$as_dirname -- "$as_myself" ||
1232$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236$as_echo X"$as_myself" |
menderico4861bb82009-09-29 00:31:36 +00001237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\).*/{
1250 s//\1/
1251 q
1252 }
1253 s/.*/./; q'`
1254 srcdir=$ac_confdir
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 srcdir=..
1257 fi
1258else
1259 ac_srcdir_defaulted=no
1260fi
1261if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001263 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
menderico4861bb82009-09-29 00:31:36 +00001264fi
1265ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266ac_abs_confdir=`(
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
menderico4861bb82009-09-29 00:31:36 +00001268 pwd)`
1269# When building in place, set srcdir=.
1270if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 srcdir=.
1272fi
1273# Remove unnecessary trailing slashes from srcdir.
1274# Double slashes in file names in object file debugging info
1275# mess up M-x gdb in Emacs.
1276case $srcdir in
1277*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278esac
1279for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284done
1285
1286#
1287# Report the --help message.
1288#
1289if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1292 cat <<_ACEOF
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001293\`configure' configures stressapptest 1.0.9_autoconf to adapt to many kinds of systems.
menderico4861bb82009-09-29 00:31:36 +00001294
1295Usage: $0 [OPTION]... [VAR=VALUE]...
1296
1297To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298VAR=VALUE. See below for descriptions of some of the useful variables.
1299
1300Defaults for the options are specified in brackets.
1301
1302Configuration:
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001307 -q, --quiet, --silent do not print \`checking ...' messages
menderico4861bb82009-09-29 00:31:36 +00001308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312
1313Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001315 [$ac_default_prefix]
menderico4861bb82009-09-29 00:31:36 +00001316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001317 [PREFIX]
menderico4861bb82009-09-29 00:31:36 +00001318
1319By default, \`make install' will install all the files in
1320\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322for instance \`--prefix=\$HOME'.
1323
1324For better control, use the options below.
1325
1326Fine tuning of the installation directories:
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001333 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/stressapptest]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
menderico4861bb82009-09-29 00:31:36 +00001347_ACEOF
1348
1349 cat <<\_ACEOF
1350
1351Program names:
1352 --program-prefix=PREFIX prepend PREFIX to installed program names
1353 --program-suffix=SUFFIX append SUFFIX to installed program names
1354 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1355
1356System types:
1357 --build=BUILD configure for building on BUILD [guessed]
1358 --host=HOST cross-compile to build programs to run on HOST [BUILD]
menderico4861bb82009-09-29 00:31:36 +00001359_ACEOF
1360fi
1361
1362if test -n "$ac_init_help"; then
1363 case $ac_init_help in
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001364 short | recursive ) echo "Configuration of stressapptest 1.0.9_autoconf:";;
menderico4861bb82009-09-29 00:31:36 +00001365 esac
1366 cat <<\_ACEOF
1367
1368Optional Features:
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001369 --disable-option-checking ignore unrecognized --enable/--with options
menderico4861bb82009-09-29 00:31:36 +00001370 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1371 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1372 --disable-dependency-tracking speeds up one-time build
1373 --enable-dependency-tracking do not reject slow dependency extractors
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001374 --disable-default-optimizations
1375 Disable default optimization flag overrides
menderico4861bb82009-09-29 00:31:36 +00001376
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001377Optional Packages:
1378 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1379 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1380 --with-static enable static linking
1381
menderico4861bb82009-09-29 00:31:36 +00001382Some influential environment variables:
1383 CXX C++ compiler command
1384 CXXFLAGS C++ compiler flags
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1386 nonstandard directory <lib dir>
1387 LIBS libraries to pass to the linker, e.g. -l<library>
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001388 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
menderico4861bb82009-09-29 00:31:36 +00001389 you have headers in a nonstandard directory <include dir>
1390 CC C compiler command
1391 CFLAGS C compiler flags
1392 CPP C preprocessor
1393
1394Use these variables to override the choices made by `configure' or to help
1395it to find libraries and programs with nonstandard names/locations.
1396
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00001397Report bugs to <opensource@google.com>.
menderico4861bb82009-09-29 00:31:36 +00001398_ACEOF
1399ac_status=$?
1400fi
1401
1402if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001405 test -d "$ac_dir" ||
1406 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1407 continue
menderico4861bb82009-09-29 00:31:36 +00001408 ac_builddir=.
1409
1410case "$ac_dir" in
1411.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001413 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
menderico4861bb82009-09-29 00:31:36 +00001414 # A ".." for each directory in $ac_dir_suffix.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001415 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
menderico4861bb82009-09-29 00:31:36 +00001416 case $ac_top_builddir_sub in
1417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1419 esac ;;
1420esac
1421ac_abs_top_builddir=$ac_pwd
1422ac_abs_builddir=$ac_pwd$ac_dir_suffix
1423# for backward compatibility:
1424ac_top_builddir=$ac_top_build_prefix
1425
1426case $srcdir in
1427 .) # We are building in place.
1428 ac_srcdir=.
1429 ac_top_srcdir=$ac_top_builddir_sub
1430 ac_abs_top_srcdir=$ac_pwd ;;
1431 [\\/]* | ?:[\\/]* ) # Absolute name.
1432 ac_srcdir=$srcdir$ac_dir_suffix;
1433 ac_top_srcdir=$srcdir
1434 ac_abs_top_srcdir=$srcdir ;;
1435 *) # Relative name.
1436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1437 ac_top_srcdir=$ac_top_build_prefix$srcdir
1438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1439esac
1440ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1441
1442 cd "$ac_dir" || { ac_status=$?; continue; }
1443 # Check for guested configure.
1444 if test -f "$ac_srcdir/configure.gnu"; then
1445 echo &&
1446 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1447 elif test -f "$ac_srcdir/configure"; then
1448 echo &&
1449 $SHELL "$ac_srcdir/configure" --help=recursive
1450 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001451 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
menderico4861bb82009-09-29 00:31:36 +00001452 fi || ac_status=$?
1453 cd "$ac_pwd" || { ac_status=$?; break; }
1454 done
1455fi
1456
1457test -n "$ac_init_help" && exit $ac_status
1458if $ac_init_version; then
1459 cat <<\_ACEOF
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001460stressapptest configure 1.0.9_autoconf
1461generated by GNU Autoconf 2.69
menderico4861bb82009-09-29 00:31:36 +00001462
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001463Copyright (C) 2012 Free Software Foundation, Inc.
menderico4861bb82009-09-29 00:31:36 +00001464This configure script is free software; the Free Software Foundation
1465gives unlimited permission to copy, distribute and modify it.
1466_ACEOF
1467 exit
1468fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001469
1470## ------------------------ ##
1471## Autoconf initialization. ##
1472## ------------------------ ##
1473
1474# ac_fn_cxx_try_compile LINENO
1475# ----------------------------
1476# Try to compile conftest.$ac_ext, and return whether this succeeded.
1477ac_fn_cxx_try_compile ()
1478{
1479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1480 rm -f conftest.$ac_objext
1481 if { { ac_try="$ac_compile"
1482case "(($ac_try" in
1483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1484 *) ac_try_echo=$ac_try;;
1485esac
1486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1487$as_echo "$ac_try_echo"; } >&5
1488 (eval "$ac_compile") 2>conftest.err
1489 ac_status=$?
1490 if test -s conftest.err; then
1491 grep -v '^ *+' conftest.err >conftest.er1
1492 cat conftest.er1 >&5
1493 mv -f conftest.er1 conftest.err
1494 fi
1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1496 test $ac_status = 0; } && {
1497 test -z "$ac_cxx_werror_flag" ||
1498 test ! -s conftest.err
1499 } && test -s conftest.$ac_objext; then :
1500 ac_retval=0
1501else
1502 $as_echo "$as_me: failed program was:" >&5
1503sed 's/^/| /' conftest.$ac_ext >&5
1504
1505 ac_retval=1
1506fi
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001508 as_fn_set_status $ac_retval
1509
1510} # ac_fn_cxx_try_compile
1511
1512# ac_fn_c_try_compile LINENO
1513# --------------------------
1514# Try to compile conftest.$ac_ext, and return whether this succeeded.
1515ac_fn_c_try_compile ()
1516{
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext
1519 if { { ac_try="$ac_compile"
1520case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523esac
1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525$as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1532 fi
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext; then :
1538 ac_retval=0
1539else
1540 $as_echo "$as_me: failed program was:" >&5
1541sed 's/^/| /' conftest.$ac_ext >&5
1542
1543 ac_retval=1
1544fi
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001546 as_fn_set_status $ac_retval
1547
1548} # ac_fn_c_try_compile
1549
1550# ac_fn_c_try_link LINENO
1551# -----------------------
1552# Try to link conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_link ()
1554{
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest$ac_exeext
1557 if { { ac_try="$ac_link"
1558case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_link") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest$ac_exeext && {
1576 test "$cross_compiling" = yes ||
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001577 test -x conftest$ac_exeext
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001578 }; then :
1579 ac_retval=0
1580else
1581 $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585fi
1586 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588 # interfere with the next link command; also delete a directory that is
1589 # left behind by Apple's compiler. We do this before executing the actions.
1590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001592 as_fn_set_status $ac_retval
1593
1594} # ac_fn_c_try_link
1595
1596# ac_fn_c_try_cpp LINENO
1597# ----------------------
1598# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599ac_fn_c_try_cpp ()
1600{
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608$as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001617 test $ac_status = 0; } > conftest.i && {
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 }; then :
1621 ac_retval=0
1622else
1623 $as_echo "$as_me: failed program was:" >&5
1624sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627fi
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001629 as_fn_set_status $ac_retval
1630
1631} # ac_fn_c_try_cpp
1632
1633# ac_fn_c_try_run LINENO
1634# ----------------------
1635# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1636# that executables *can* be run.
1637ac_fn_c_try_run ()
1638{
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { { ac_try="$ac_link"
1641case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644esac
1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646$as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>&5
1648 ac_status=$?
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1651 { { case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_try") 2>&5
1658 ac_status=$?
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; }; }; then :
1661 ac_retval=0
1662else
1663 $as_echo "$as_me: program exited with status $ac_status" >&5
1664 $as_echo "$as_me: failed program was:" >&5
1665sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=$ac_status
1668fi
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001671 as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_run
1674
1675# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1676# -------------------------------------------------------
1677# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1678# the include files in INCLUDES and setting the cache variable VAR
1679# accordingly.
1680ac_fn_c_check_header_mongrel ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001683 if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685$as_echo_n "checking for $2... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001686if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001687 $as_echo_n "(cached) " >&6
1688fi
1689eval ac_res=\$$3
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691$as_echo "$ac_res" >&6; }
1692else
1693 # Is the header compilable?
1694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1695$as_echo_n "checking $2 usability... " >&6; }
1696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697/* end confdefs.h. */
1698$4
1699#include <$2>
1700_ACEOF
1701if ac_fn_c_try_compile "$LINENO"; then :
1702 ac_header_compiler=yes
1703else
1704 ac_header_compiler=no
1705fi
1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1708$as_echo "$ac_header_compiler" >&6; }
1709
1710# Is the header present?
1711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1712$as_echo_n "checking $2 presence... " >&6; }
1713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714/* end confdefs.h. */
1715#include <$2>
1716_ACEOF
1717if ac_fn_c_try_cpp "$LINENO"; then :
1718 ac_header_preproc=yes
1719else
1720 ac_header_preproc=no
1721fi
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001722rm -f conftest.err conftest.i conftest.$ac_ext
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1724$as_echo "$ac_header_preproc" >&6; }
1725
1726# So? What about this header?
1727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1728 yes:no: )
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1730$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 ;;
1734 no:yes:* )
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1736$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1738$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1740$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1742$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001745( $as_echo "## ------------------------------------ ##
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001746## Report this to opensource@google.com ##
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001747## ------------------------------------ ##"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001748 ) | sed "s/^/$as_me: WARNING: /" >&2
1749 ;;
1750esac
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752$as_echo_n "checking for $2... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001753if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001754 $as_echo_n "(cached) " >&6
1755else
1756 eval "$3=\$ac_header_compiler"
1757fi
1758eval ac_res=\$$3
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760$as_echo "$ac_res" >&6; }
1761fi
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001763
1764} # ac_fn_c_check_header_mongrel
1765
1766# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767# -------------------------------------------------------
1768# Tests whether HEADER exists and can be compiled using the include files in
1769# INCLUDES, setting the cache variable VAR accordingly.
1770ac_fn_c_check_header_compile ()
1771{
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001775if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001776 $as_echo_n "(cached) " >&6
1777else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h. */
1780$4
1781#include <$2>
1782_ACEOF
1783if ac_fn_c_try_compile "$LINENO"; then :
1784 eval "$3=yes"
1785else
1786 eval "$3=no"
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789fi
1790eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001794
1795} # ac_fn_c_check_header_compile
1796
1797# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1798# -------------------------------------------
1799# Tests whether TYPE exists after having included INCLUDES, setting cache
1800# variable VAR accordingly.
1801ac_fn_c_check_type ()
1802{
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805$as_echo_n "checking for $2... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001806if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001807 $as_echo_n "(cached) " >&6
1808else
1809 eval "$3=no"
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h. */
1812$4
1813int
1814main ()
1815{
1816if (sizeof ($2))
1817 return 0;
1818 ;
1819 return 0;
1820}
1821_ACEOF
1822if ac_fn_c_try_compile "$LINENO"; then :
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h. */
1825$4
1826int
1827main ()
1828{
1829if (sizeof (($2)))
1830 return 0;
1831 ;
1832 return 0;
1833}
1834_ACEOF
1835if ac_fn_c_try_compile "$LINENO"; then :
1836
1837else
1838 eval "$3=yes"
1839fi
1840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841fi
1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843fi
1844eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846$as_echo "$ac_res" >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001848
1849} # ac_fn_c_check_type
1850
1851# ac_fn_c_find_uintX_t LINENO BITS VAR
1852# ------------------------------------
1853# Finds an unsigned integer type with width BITS, setting cache variable VAR
1854# accordingly.
1855ac_fn_c_find_uintX_t ()
1856{
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1859$as_echo_n "checking for uint$2_t... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001860if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001861 $as_echo_n "(cached) " >&6
1862else
1863 eval "$3=no"
1864 # Order is important - never check a type that is potentially smaller
1865 # than half of the expected target width.
1866 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1867 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h. */
1870$ac_includes_default
1871int
1872main ()
1873{
1874static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001875test_array [0] = 0;
1876return test_array [0];
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001877
1878 ;
1879 return 0;
1880}
1881_ACEOF
1882if ac_fn_c_try_compile "$LINENO"; then :
1883 case $ac_type in #(
1884 uint$2_t) :
1885 eval "$3=yes" ;; #(
1886 *) :
1887 eval "$3=\$ac_type" ;;
1888esac
1889fi
1890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001891 if eval test \"x\$"$3"\" = x"no"; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001892
1893else
1894 break
1895fi
1896 done
1897fi
1898eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900$as_echo "$ac_res" >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001902
1903} # ac_fn_c_find_uintX_t
1904
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001905# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1906# ---------------------------------------------
1907# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1908# accordingly.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001909ac_fn_c_check_decl ()
1910{
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001912 as_decl_name=`echo $2|sed 's/ *(.*//'`
1913 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1915$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1916if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001917 $as_echo_n "(cached) " >&6
1918else
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920/* end confdefs.h. */
1921$4
1922int
1923main ()
1924{
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001925#ifndef $as_decl_name
1926#ifdef __cplusplus
1927 (void) $as_decl_use;
1928#else
1929 (void) $as_decl_name;
1930#endif
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001931#endif
1932
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938 eval "$3=yes"
1939else
1940 eval "$3=no"
1941fi
1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943fi
1944eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946$as_echo "$ac_res" >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001948
1949} # ac_fn_c_check_decl
1950
1951# ac_fn_c_check_func LINENO FUNC VAR
1952# ----------------------------------
1953# Tests whether FUNC exists, setting the cache variable VAR accordingly
1954ac_fn_c_check_func ()
1955{
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958$as_echo_n "checking for $2... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07001959if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001960 $as_echo_n "(cached) " >&6
1961else
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h. */
1964/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1966#define $2 innocuous_$2
1967
1968/* System header to define __stub macros and hopefully few prototypes,
1969 which can conflict with char $2 (); below.
1970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1971 <limits.h> exists even on freestanding compilers. */
1972
1973#ifdef __STDC__
1974# include <limits.h>
1975#else
1976# include <assert.h>
1977#endif
1978
1979#undef $2
1980
1981/* Override any GCC internal prototype to avoid an error.
1982 Use char because int might match the return type of a GCC
1983 builtin and then its argument prototype would still apply. */
1984#ifdef __cplusplus
1985extern "C"
1986#endif
1987char $2 ();
1988/* The GNU C library defines this for functions which it implements
1989 to always fail with ENOSYS. Some functions are actually named
1990 something starting with __ and the normal name is an alias. */
1991#if defined __stub_$2 || defined __stub___$2
1992choke me
1993#endif
1994
1995int
1996main ()
1997{
1998return $2 ();
1999 ;
2000 return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_link "$LINENO"; then :
2004 eval "$3=yes"
2005else
2006 eval "$3=no"
2007fi
2008rm -f core conftest.err conftest.$ac_objext \
2009 conftest$ac_exeext conftest.$ac_ext
2010fi
2011eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002015
2016} # ac_fn_c_check_func
menderico4861bb82009-09-29 00:31:36 +00002017cat >config.log <<_ACEOF
2018This file contains any messages produced by compilers while
2019running configure, to aid debugging if configure makes a mistake.
2020
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002021It was created by stressapptest $as_me 1.0.9_autoconf, which was
2022generated by GNU Autoconf 2.69. Invocation command line was
menderico4861bb82009-09-29 00:31:36 +00002023
2024 $ $0 $@
2025
2026_ACEOF
2027exec 5>>config.log
2028{
2029cat <<_ASUNAME
2030## --------- ##
2031## Platform. ##
2032## --------- ##
2033
2034hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2035uname -m = `(uname -m) 2>/dev/null || echo unknown`
2036uname -r = `(uname -r) 2>/dev/null || echo unknown`
2037uname -s = `(uname -s) 2>/dev/null || echo unknown`
2038uname -v = `(uname -v) 2>/dev/null || echo unknown`
2039
2040/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2041/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2042
2043/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2044/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2045/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2046/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2047/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2048/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2049/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2050
2051_ASUNAME
2052
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002058 $as_echo "PATH: $as_dir"
2059 done
menderico4861bb82009-09-29 00:31:36 +00002060IFS=$as_save_IFS
2061
2062} >&5
2063
2064cat >&5 <<_ACEOF
2065
2066
2067## ----------- ##
2068## Core tests. ##
2069## ----------- ##
2070
2071_ACEOF
2072
2073
2074# Keep a trace of the command line.
2075# Strip out --no-create and --no-recursion so they do not pile up.
2076# Strip out --silent because we don't want to record it for future runs.
2077# Also quote any args containing shell meta-characters.
2078# Make two passes to allow for proper duplicate-argument suppression.
2079ac_configure_args=
2080ac_configure_args0=
2081ac_configure_args1=
2082ac_must_keep_next=false
2083for ac_pass in 1 2
2084do
2085 for ac_arg
2086 do
2087 case $ac_arg in
2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2090 | -silent | --silent | --silen | --sile | --sil)
2091 continue ;;
2092 *\'*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002093 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
menderico4861bb82009-09-29 00:31:36 +00002094 esac
2095 case $ac_pass in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
menderico4861bb82009-09-29 00:31:36 +00002097 2)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002098 as_fn_append ac_configure_args1 " '$ac_arg'"
menderico4861bb82009-09-29 00:31:36 +00002099 if test $ac_must_keep_next = true; then
2100 ac_must_keep_next=false # Got value, back to normal.
2101 else
2102 case $ac_arg in
2103 *=* | --config-cache | -C | -disable-* | --disable-* \
2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2106 | -with-* | --with-* | -without-* | --without-* | --x)
2107 case "$ac_configure_args0 " in
2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2109 esac
2110 ;;
2111 -* ) ac_must_keep_next=true ;;
2112 esac
2113 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002114 as_fn_append ac_configure_args " '$ac_arg'"
menderico4861bb82009-09-29 00:31:36 +00002115 ;;
2116 esac
2117 done
2118done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002119{ ac_configure_args0=; unset ac_configure_args0;}
2120{ ac_configure_args1=; unset ac_configure_args1;}
menderico4861bb82009-09-29 00:31:36 +00002121
2122# When interrupted or exit'd, cleanup temporary files, and complete
2123# config.log. We remove comments because anyway the quotes in there
2124# would cause problems or look ugly.
2125# WARNING: Use '\'' to represent an apostrophe within the trap.
2126# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2127trap 'exit_status=$?
2128 # Save into config.log some information that might help in debugging.
2129 {
2130 echo
2131
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002132 $as_echo "## ---------------- ##
menderico4861bb82009-09-29 00:31:36 +00002133## Cache variables. ##
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002134## ---------------- ##"
menderico4861bb82009-09-29 00:31:36 +00002135 echo
2136 # The following way of writing the cache mishandles newlines in values,
2137(
2138 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in #(
2141 *${as_nl}*)
2142 case $ac_var in #(
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
menderico4861bb82009-09-29 00:31:36 +00002145 esac
2146 case $ac_var in #(
2147 _ | IFS | as_nl) ;; #(
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149 *) { eval $ac_var=; unset $ac_var;} ;;
menderico4861bb82009-09-29 00:31:36 +00002150 esac ;;
2151 esac
2152 done
2153 (set) 2>&1 |
2154 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155 *${as_nl}ac_space=\ *)
2156 sed -n \
2157 "s/'\''/'\''\\\\'\'''\''/g;
2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159 ;; #(
2160 *)
2161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2162 ;;
2163 esac |
2164 sort
2165)
2166 echo
2167
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002168 $as_echo "## ----------------- ##
menderico4861bb82009-09-29 00:31:36 +00002169## Output variables. ##
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002170## ----------------- ##"
menderico4861bb82009-09-29 00:31:36 +00002171 echo
2172 for ac_var in $ac_subst_vars
2173 do
2174 eval ac_val=\$$ac_var
2175 case $ac_val in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
menderico4861bb82009-09-29 00:31:36 +00002177 esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002178 $as_echo "$ac_var='\''$ac_val'\''"
menderico4861bb82009-09-29 00:31:36 +00002179 done | sort
2180 echo
2181
2182 if test -n "$ac_subst_files"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002183 $as_echo "## ------------------- ##
menderico4861bb82009-09-29 00:31:36 +00002184## File substitutions. ##
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002185## ------------------- ##"
menderico4861bb82009-09-29 00:31:36 +00002186 echo
2187 for ac_var in $ac_subst_files
2188 do
2189 eval ac_val=\$$ac_var
2190 case $ac_val in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
menderico4861bb82009-09-29 00:31:36 +00002192 esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002193 $as_echo "$ac_var='\''$ac_val'\''"
menderico4861bb82009-09-29 00:31:36 +00002194 done | sort
2195 echo
2196 fi
2197
2198 if test -s confdefs.h; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002199 $as_echo "## ----------- ##
menderico4861bb82009-09-29 00:31:36 +00002200## confdefs.h. ##
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002201## ----------- ##"
menderico4861bb82009-09-29 00:31:36 +00002202 echo
2203 cat confdefs.h
2204 echo
2205 fi
2206 test "$ac_signal" != 0 &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002207 $as_echo "$as_me: caught signal $ac_signal"
2208 $as_echo "$as_me: exit $exit_status"
menderico4861bb82009-09-29 00:31:36 +00002209 } >&5
2210 rm -f core *.core core.conftest.* &&
2211 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2212 exit $exit_status
2213' 0
2214for ac_signal in 1 2 13 15; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002215 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
menderico4861bb82009-09-29 00:31:36 +00002216done
2217ac_signal=0
2218
2219# confdefs.h avoids OS command line length limits that DEFS can exceed.
2220rm -f -r conftest* confdefs.h
2221
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002222$as_echo "/* confdefs.h */" > confdefs.h
2223
menderico4861bb82009-09-29 00:31:36 +00002224# Predefined preprocessor variables.
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_NAME "$PACKAGE_NAME"
2228_ACEOF
2229
menderico4861bb82009-09-29 00:31:36 +00002230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2232_ACEOF
2233
menderico4861bb82009-09-29 00:31:36 +00002234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_VERSION "$PACKAGE_VERSION"
2236_ACEOF
2237
menderico4861bb82009-09-29 00:31:36 +00002238cat >>confdefs.h <<_ACEOF
2239#define PACKAGE_STRING "$PACKAGE_STRING"
2240_ACEOF
2241
menderico4861bb82009-09-29 00:31:36 +00002242cat >>confdefs.h <<_ACEOF
2243#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2244_ACEOF
2245
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_URL "$PACKAGE_URL"
2248_ACEOF
2249
menderico4861bb82009-09-29 00:31:36 +00002250
2251# Let the site file select an alternate cache file if it wants to.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002252# Prefer an explicitly selected file to automatically selected ones.
2253ac_site_file1=NONE
2254ac_site_file2=NONE
menderico4861bb82009-09-29 00:31:36 +00002255if test -n "$CONFIG_SITE"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002256 # We do not want a PATH search for config.site.
2257 case $CONFIG_SITE in #((
2258 -*) ac_site_file1=./$CONFIG_SITE;;
2259 */*) ac_site_file1=$CONFIG_SITE;;
2260 *) ac_site_file1=./$CONFIG_SITE;;
2261 esac
menderico4861bb82009-09-29 00:31:36 +00002262elif test "x$prefix" != xNONE; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
menderico4861bb82009-09-29 00:31:36 +00002265else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
menderico4861bb82009-09-29 00:31:36 +00002268fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002269for ac_site_file in "$ac_site_file1" "$ac_site_file2"
menderico4861bb82009-09-29 00:31:36 +00002270do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002271 test "x$ac_site_file" = xNONE && continue
2272 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274$as_echo "$as_me: loading site script $ac_site_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00002275 sed 's/^/| /' "$ac_site_file" >&5
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002276 . "$ac_site_file" \
2277 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279as_fn_error $? "failed to load site script $ac_site_file
2280See \`config.log' for more details" "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00002281 fi
2282done
2283
2284if test -r "$cache_file"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002285 # Some versions of bash will fail to source /dev/null (special files
2286 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289$as_echo "$as_me: loading cache $cache_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00002290 case $cache_file in
2291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292 *) . "./$cache_file";;
2293 esac
2294 fi
2295else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297$as_echo "$as_me: creating cache $cache_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00002298 >$cache_file
2299fi
2300
2301# Check that the precious variables saved in the cache have kept the same
2302# value.
2303ac_cache_corrupted=false
2304for ac_var in $ac_precious_vars; do
2305 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306 eval ac_new_set=\$ac_env_${ac_var}_set
2307 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308 eval ac_new_val=\$ac_env_${ac_var}_value
2309 case $ac_old_set,$ac_new_set in
2310 set,)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2312$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
menderico4861bb82009-09-29 00:31:36 +00002313 ac_cache_corrupted=: ;;
2314 ,set)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2316$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
menderico4861bb82009-09-29 00:31:36 +00002317 ac_cache_corrupted=: ;;
2318 ,);;
2319 *)
2320 if test "x$ac_old_val" != "x$ac_new_val"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002321 # differences in whitespace do not lead to failure.
2322 ac_old_val_w=`echo x $ac_old_val`
2323 ac_new_val_w=`echo x $ac_new_val`
2324 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2326$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2327 ac_cache_corrupted=:
2328 else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2330$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2331 eval $ac_var=\$ac_old_val
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2334$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2336$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
menderico4861bb82009-09-29 00:31:36 +00002337 fi;;
2338 esac
2339 # Pass precious variables to config.status.
2340 if test "$ac_new_set" = set; then
2341 case $ac_new_val in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002342 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
menderico4861bb82009-09-29 00:31:36 +00002343 *) ac_arg=$ac_var=$ac_new_val ;;
2344 esac
2345 case " $ac_configure_args " in
2346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002347 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
menderico4861bb82009-09-29 00:31:36 +00002348 esac
2349 fi
2350done
2351if $ac_cache_corrupted; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2355$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002356 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002357fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002358## -------------------- ##
2359## Main body of script. ##
2360## -------------------- ##
menderico4861bb82009-09-29 00:31:36 +00002361
2362ac_ext=c
2363ac_cpp='$CPP $CPPFLAGS'
2364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367
2368
2369
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002370
2371# Check whether --with-static was given.
2372if test "${with_static+set}" = set; then :
2373 withval=$with_static;
2374fi
2375
2376
nick.j.sanders00fa12e2014-08-04 21:04:06 +00002377if test "$with_static" = "yes"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002378then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002379 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with staticaly linked libraries." >&5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002380$as_echo "$as_me: Compiling with staticaly linked libraries." >&6;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002381 LIBS="$LIBS -static"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002382else
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002383 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with dynamically linked libraries." >&5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002384$as_echo "$as_me: Compiling with dynamically linked libraries." >&6;}
2385fi
2386
menderico4861bb82009-09-29 00:31:36 +00002387ac_aux_dir=
2388for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002389 if test -f "$ac_dir/install-sh"; then
2390 ac_aux_dir=$ac_dir
2391 ac_install_sh="$ac_aux_dir/install-sh -c"
2392 break
2393 elif test -f "$ac_dir/install.sh"; then
2394 ac_aux_dir=$ac_dir
2395 ac_install_sh="$ac_aux_dir/install.sh -c"
2396 break
2397 elif test -f "$ac_dir/shtool"; then
2398 ac_aux_dir=$ac_dir
2399 ac_install_sh="$ac_aux_dir/shtool install -c"
2400 break
2401 fi
menderico4861bb82009-09-29 00:31:36 +00002402done
2403if test -z "$ac_aux_dir"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002404 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002405fi
2406
2407# These three variables are undocumented and unsupported,
2408# and are intended to be withdrawn in a future Autoconf release.
2409# They can cause serious problems if a builder's source tree is in a directory
2410# whose full name contains unusual characters.
2411ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2412ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2413ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2414
2415
2416# Make sure we can run config.sub.
2417$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002418 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002419
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2421$as_echo_n "checking build system type... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002422if ${ac_cv_build+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002423 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002424else
2425 ac_build_alias=$build_alias
2426test "x$ac_build_alias" = x &&
2427 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2428test "x$ac_build_alias" = x &&
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002429 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002430ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002432
2433fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2435$as_echo "$ac_cv_build" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002436case $ac_cv_build in
2437*-*-*) ;;
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002438*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00002439esac
2440build=$ac_cv_build
2441ac_save_IFS=$IFS; IFS='-'
2442set x $ac_cv_build
2443shift
2444build_cpu=$1
2445build_vendor=$2
2446shift; shift
2447# Remember, the first character of IFS is used to create $*,
2448# except with old shells:
2449build_os=$*
2450IFS=$ac_save_IFS
2451case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2452
2453
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2455$as_echo_n "checking host system type... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002456if ${ac_cv_host+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002457 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002458else
2459 if test "x$host_alias" = x; then
2460 ac_cv_host=$ac_cv_build
2461else
2462 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002463 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002464fi
2465
2466fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2468$as_echo "$ac_cv_host" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002469case $ac_cv_host in
2470*-*-*) ;;
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002471*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00002472esac
2473host=$ac_cv_host
2474ac_save_IFS=$IFS; IFS='-'
2475set x $ac_cv_host
2476shift
2477host_cpu=$1
2478host_vendor=$2
2479shift; shift
2480# Remember, the first character of IFS is used to create $*,
2481# except with old shells:
2482host_os=$*
2483IFS=$ac_save_IFS
2484case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2485
2486
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002487# Checking for target cpu and setting custom configuration
2488# for the different platforms
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002489case "$host_cpu" in #(
2490 *x86_64*) :
menderico4861bb82009-09-29 00:31:36 +00002491
menderico4861bb82009-09-29 00:31:36 +00002492
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002493$as_echo "#define STRESSAPPTEST_CPU_X86_64 /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00002494
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002495 ;; #(
2496 *i686*) :
2497
menderico4861bb82009-09-29 00:31:36 +00002498
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002499$as_echo "#define STRESSAPPTEST_CPU_I686 /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00002500
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002501 ;; #(
2502 *powerpc*) :
2503
menderico4861bb82009-09-29 00:31:36 +00002504
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002505$as_echo "#define STRESSAPPTEST_CPU_PPC /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00002506
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002507 ;; #(
2508 *armv7a*) :
2509
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002510
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002511$as_echo "#define STRESSAPPTEST_CPU_ARMV7A /**/" >>confdefs.h
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002512
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002513 ;; #(
Wei Huang83451452017-11-20 23:40:54 -05002514 *aarch64*) :
2515
2516
2517$as_echo "#define STRESSAPPTEST_CPU_AARCH64 /**/" >>confdefs.h
2518
2519 ;; #(
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002520 *) :
Wei Huang83451452017-11-20 23:40:54 -05002521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64" >&5
2522$as_echo "$as_me: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64" >&2;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002523 ;;
menderico4861bb82009-09-29 00:31:36 +00002524esac
2525
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002526## The following allows like systems to share settings. This is not meant to
2527## imply that these OS are the same thing. From OpenOffice dmake configure.in
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002528case "$host_os" in #(
2529 *linux*) :
2530
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002531 OS_VERSION=linux
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002532
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002533$as_echo "#define STRESSAPPTEST_OS_LINUX /**/" >>confdefs.h
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002534
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002535 ;; #(
2536 *darwin*) :
2537
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002538 OS_VERSION=macosx
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002539
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002540$as_echo "#define STRESSAPPTEST_OS_DARWIN /**/" >>confdefs.h
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002541
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002542 ;; #(
2543 *freebsd*) :
2544
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002545 OS_VERSION=bsd
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002546
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002547$as_echo "#define STRESSAPPTEST_OS_BSD /**/" >>confdefs.h
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002548
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002549 ;; #(
2550 *netbsd*) :
2551
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002552 OS_VERSION=bsd
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002553
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002554$as_echo "#define STRESSAPPTEST_OS_BSD /**/" >>confdefs.h
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002555
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002556 ;; #(
2557 *) :
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported system: $host_os" >&5
2559$as_echo "$as_me: WARNING: unsupported system: $host_os" >&2;}
2560 ;;
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002561esac
2562
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002563am__api_version='1.11'
menderico4861bb82009-09-29 00:31:36 +00002564
2565# Find a good install program. We prefer a C program (faster),
2566# so one script is as good as another. But avoid the broken or
2567# incompatible versions:
2568# SysV /etc/install, /usr/sbin/install
2569# SunOS /usr/etc/install
2570# IRIX /sbin/install
2571# AIX /bin/install
2572# AmigaOS /C/install, which installs bootblocks on floppy discs
2573# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2574# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2575# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2576# OS/2's system install, which has a completely different semantic
2577# ./install, which can be erroneously created by make from ./install.sh.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002578# Reject install programs that cannot install multiple files.
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2580$as_echo_n "checking for a BSD-compatible install... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00002581if test -z "$INSTALL"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002582if ${ac_cv_path_install+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002583 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002584else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002590 # Account for people who put trailing slashes in PATH elements.
2591case $as_dir/ in #((
2592 ./ | .// | /[cC]/* | \
menderico4861bb82009-09-29 00:31:36 +00002593 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002594 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
menderico4861bb82009-09-29 00:31:36 +00002595 /usr/ucb/* ) ;;
2596 *)
2597 # OSF1 and SCO ODT 3.0 have their own names for install.
2598 # Don't use installbsd from OSF since it installs stuff as root
2599 # by default.
2600 for ac_prog in ginstall scoinst install; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002602 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
menderico4861bb82009-09-29 00:31:36 +00002603 if test $ac_prog = install &&
2604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # AIX install. It has an incompatible calling convention.
2606 :
2607 elif test $ac_prog = install &&
2608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # program-specific install script used by HP pwplus--don't use.
2610 :
2611 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002612 rm -rf conftest.one conftest.two conftest.dir
2613 echo one > conftest.one
2614 echo two > conftest.two
2615 mkdir conftest.dir
2616 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2617 test -s conftest.one && test -s conftest.two &&
2618 test -s conftest.dir/conftest.one &&
2619 test -s conftest.dir/conftest.two
2620 then
2621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2622 break 3
2623 fi
menderico4861bb82009-09-29 00:31:36 +00002624 fi
2625 fi
2626 done
2627 done
2628 ;;
2629esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002630
2631 done
menderico4861bb82009-09-29 00:31:36 +00002632IFS=$as_save_IFS
2633
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002634rm -rf conftest.one conftest.two conftest.dir
menderico4861bb82009-09-29 00:31:36 +00002635
2636fi
2637 if test "${ac_cv_path_install+set}" = set; then
2638 INSTALL=$ac_cv_path_install
2639 else
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for INSTALL within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 INSTALL=$ac_install_sh
2645 fi
2646fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2648$as_echo "$INSTALL" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002649
2650# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2651# It thinks the first close brace ends the variable substitution.
2652test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2653
2654test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2655
2656test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2657
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2659$as_echo_n "checking whether build environment is sane... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00002660# Just in case
2661sleep 1
2662echo timestamp > conftest.file
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002663# Reject unsafe characters in $srcdir or the absolute working directory
2664# name. Accept space and tab only in the latter.
2665am_lf='
2666'
2667case `pwd` in
2668 *[\\\"\#\$\&\'\`$am_lf]*)
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002669 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002670esac
2671case $srcdir in
2672 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002673 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002674esac
2675
menderico4861bb82009-09-29 00:31:36 +00002676# Do `set' in a subshell so we don't clobber the current shell's
2677# arguments. Must try -L first in case configure is actually a
2678# symlink; some systems play weird games with the mod time of symlinks
2679# (eg FreeBSD returns the mod time of the symlink's containing
2680# directory).
2681if (
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002682 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
menderico4861bb82009-09-29 00:31:36 +00002683 if test "$*" = "X"; then
2684 # -L didn't work.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002685 set X `ls -t "$srcdir/configure" conftest.file`
menderico4861bb82009-09-29 00:31:36 +00002686 fi
2687 rm -f conftest.file
2688 if test "$*" != "X $srcdir/configure conftest.file" \
2689 && test "$*" != "X conftest.file $srcdir/configure"; then
2690
2691 # If neither matched, then we have a broken ls. This can happen
2692 # if, for instance, CONFIG_SHELL is bash and it inherits a
2693 # broken ls alias from the environment. This has actually
2694 # happened. Such a system could not be considered "sane".
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002695 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002696alias in your environment" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002697 fi
2698
2699 test "$2" = conftest.file
2700 )
2701then
2702 # Ok.
2703 :
2704else
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002705 as_fn_error $? "newly created file is older than distributed files!
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002706Check your system clock" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002707fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2709$as_echo "yes" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002710test "$program_prefix" != NONE &&
2711 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2712# Use a double $ so make ignores it.
2713test "$program_suffix" != NONE &&
2714 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002715# Double any \ or $.
menderico4861bb82009-09-29 00:31:36 +00002716# By default was `s,x,x', remove it if useless.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002717ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2718program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
menderico4861bb82009-09-29 00:31:36 +00002719
2720# expand $ac_aux_dir to an absolute path
2721am_aux_dir=`cd $ac_aux_dir && pwd`
2722
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002723if test x"${MISSING+set}" != xset; then
2724 case $am_aux_dir in
2725 *\ * | *\ *)
2726 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2727 *)
2728 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2729 esac
2730fi
menderico4861bb82009-09-29 00:31:36 +00002731# Use eval to expand $SHELL
2732if eval "$MISSING --run true"; then
2733 am_missing_run="$MISSING --run "
2734else
2735 am_missing_run=
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2737$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
menderico4861bb82009-09-29 00:31:36 +00002738fi
2739
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002740if test x"${install_sh}" != xset; then
2741 case $am_aux_dir in
2742 *\ * | *\ *)
2743 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2744 *)
2745 install_sh="\${SHELL} $am_aux_dir/install-sh"
2746 esac
2747fi
2748
2749# Installed binaries are usually stripped using `strip' when the user
2750# run `make install-strip'. However `strip' might not be the right
2751# tool to use in cross-compilation environments, therefore Automake
2752# will honor the `STRIP' environment variable to overrule this program.
2753if test "$cross_compiling" != no; then
2754 if test -n "$ac_tool_prefix"; then
2755 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2756set dummy ${ac_tool_prefix}strip; ac_word=$2
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758$as_echo_n "checking for $ac_word... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002759if ${ac_cv_prog_STRIP+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002760 $as_echo_n "(cached) " >&6
2761else
2762 if test -n "$STRIP"; then
2763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2764else
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002772 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2775 fi
2776done
2777 done
2778IFS=$as_save_IFS
2779
2780fi
2781fi
2782STRIP=$ac_cv_prog_STRIP
2783if test -n "$STRIP"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2785$as_echo "$STRIP" >&6; }
2786else
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788$as_echo "no" >&6; }
2789fi
2790
2791
2792fi
2793if test -z "$ac_cv_prog_STRIP"; then
2794 ac_ct_STRIP=$STRIP
2795 # Extract the first word of "strip", so it can be a program name with args.
2796set dummy strip; ac_word=$2
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798$as_echo_n "checking for $ac_word... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002799if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002800 $as_echo_n "(cached) " >&6
2801else
2802 if test -n "$ac_ct_STRIP"; then
2803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002812 ac_cv_prog_ac_ct_STRIP="strip"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2815 fi
2816done
2817 done
2818IFS=$as_save_IFS
2819
2820fi
2821fi
2822ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2823if test -n "$ac_ct_STRIP"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2825$as_echo "$ac_ct_STRIP" >&6; }
2826else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828$as_echo "no" >&6; }
2829fi
2830
2831 if test "x$ac_ct_STRIP" = x; then
2832 STRIP=":"
2833 else
2834 case $cross_compiling:$ac_tool_warned in
2835yes:)
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2838ac_tool_warned=yes ;;
2839esac
2840 STRIP=$ac_ct_STRIP
2841 fi
2842else
2843 STRIP="$ac_cv_prog_STRIP"
2844fi
2845
2846fi
2847INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2848
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2850$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00002851if test -z "$MKDIR_P"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002852 if ${ac_cv_path_mkdir+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002853 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002854else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2857do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002860 for ac_prog in mkdir gmkdir; do
menderico4861bb82009-09-29 00:31:36 +00002861 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002862 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
menderico4861bb82009-09-29 00:31:36 +00002863 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2864 'mkdir (GNU coreutils) '* | \
2865 'mkdir (coreutils) '* | \
2866 'mkdir (fileutils) '4.1*)
2867 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2868 break 3;;
2869 esac
2870 done
2871 done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002872 done
menderico4861bb82009-09-29 00:31:36 +00002873IFS=$as_save_IFS
2874
2875fi
2876
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002877 test -d ./--version && rmdir ./--version
menderico4861bb82009-09-29 00:31:36 +00002878 if test "${ac_cv_path_mkdir+set}" = set; then
2879 MKDIR_P="$ac_cv_path_mkdir -p"
2880 else
2881 # As a last resort, use the slow shell script. Don't cache a
2882 # value for MKDIR_P within a source directory, because that will
2883 # break other packages using the cache if that directory is
2884 # removed, or if the value is a relative name.
menderico4861bb82009-09-29 00:31:36 +00002885 MKDIR_P="$ac_install_sh -d"
2886 fi
2887fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2889$as_echo "$MKDIR_P" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002890
2891mkdir_p="$MKDIR_P"
2892case $mkdir_p in
2893 [\\/$]* | ?:[\\/]*) ;;
2894 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2895esac
2896
2897for ac_prog in gawk mawk nawk awk
2898do
2899 # Extract the first word of "$ac_prog", so it can be a program name with args.
2900set dummy $ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902$as_echo_n "checking for $ac_word... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002903if ${ac_cv_prog_AWK+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002904 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002905else
2906 if test -n "$AWK"; then
2907 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2908else
2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002914 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
menderico4861bb82009-09-29 00:31:36 +00002916 ac_cv_prog_AWK="$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00002918 break 2
2919 fi
2920done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002921 done
menderico4861bb82009-09-29 00:31:36 +00002922IFS=$as_save_IFS
2923
2924fi
2925fi
2926AWK=$ac_cv_prog_AWK
2927if test -n "$AWK"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2929$as_echo "$AWK" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002930else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002933fi
2934
2935
2936 test -n "$AWK" && break
2937done
2938
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2940$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2941set x ${MAKE-make}
2942ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002943if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002944 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002945else
2946 cat >conftest.make <<\_ACEOF
2947SHELL = /bin/sh
2948all:
2949 @echo '@@@%%%=$(MAKE)=@@@%%%'
2950_ACEOF
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002951# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
menderico4861bb82009-09-29 00:31:36 +00002952case `${MAKE-make} -f conftest.make 2>/dev/null` in
2953 *@@@%%%=?*=@@@%%%*)
2954 eval ac_cv_prog_make_${ac_make}_set=yes;;
2955 *)
2956 eval ac_cv_prog_make_${ac_make}_set=no;;
2957esac
2958rm -f conftest.make
2959fi
2960if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2962$as_echo "yes" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002963 SET_MAKE=
2964else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002967 SET_MAKE="MAKE=${MAKE-make}"
2968fi
2969
2970rm -rf .tst 2>/dev/null
2971mkdir .tst 2>/dev/null
2972if test -d .tst; then
2973 am__leading_dot=.
2974else
2975 am__leading_dot=_
2976fi
2977rmdir .tst 2>/dev/null
2978
2979if test "`cd $srcdir && pwd`" != "`pwd`"; then
2980 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2981 # is not polluted with repeated "-I."
2982 am__isrc=' -I$(srcdir)'
2983 # test to see if srcdir already configured
2984 if test -f $srcdir/config.status; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07002985 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002986 fi
2987fi
2988
2989# test whether we have cygpath
2990if test -z "$CYGPATH_W"; then
2991 if (cygpath --version) >/dev/null 2>/dev/null; then
2992 CYGPATH_W='cygpath -w'
2993 else
2994 CYGPATH_W=echo
2995 fi
2996fi
2997
2998
2999# Define the identity of the package.
3000 PACKAGE='stressapptest'
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003001 VERSION='1.0.9_autoconf'
menderico4861bb82009-09-29 00:31:36 +00003002
3003
3004cat >>confdefs.h <<_ACEOF
3005#define PACKAGE "$PACKAGE"
3006_ACEOF
3007
3008
3009cat >>confdefs.h <<_ACEOF
3010#define VERSION "$VERSION"
3011_ACEOF
3012
3013# Some tools Automake needs.
3014
3015ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3016
3017
3018AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3019
3020
3021AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3022
3023
3024AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3025
3026
3027MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3028
menderico4861bb82009-09-29 00:31:36 +00003029# We need awk for the "check" target. The system "awk" is bad on
3030# some platforms.
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003031# Always define AMTAR for backward compatibility.
menderico4861bb82009-09-29 00:31:36 +00003032
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003033AMTAR=${AMTAR-"${am_missing_run}tar"}
3034
3035am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
menderico4861bb82009-09-29 00:31:36 +00003036
3037
3038
3039
3040
3041
3042ac_config_headers="$ac_config_headers src/stressapptest_config.h"
3043
3044
3045# Checks for programs.
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00003046# Don't generate CXXFLAGS defaults: if CXXFLAGS are unset
3047# AC_PROG_CXX will override them with unwanted defaults.
3048CXXFLAGS="$CXXFLAGS"
menderico4861bb82009-09-29 00:31:36 +00003049ac_ext=cpp
3050ac_cpp='$CXXCPP $CPPFLAGS'
3051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3054if test -z "$CXX"; then
3055 if test -n "$CCC"; then
3056 CXX=$CCC
3057 else
3058 if test -n "$ac_tool_prefix"; then
3059 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3060 do
3061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064$as_echo_n "checking for $ac_word... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003065if ${ac_cv_prog_CXX+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003066 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003067else
3068 if test -n "$CXX"; then
3069 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003076 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
menderico4861bb82009-09-29 00:31:36 +00003078 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003080 break 2
3081 fi
3082done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003083 done
menderico4861bb82009-09-29 00:31:36 +00003084IFS=$as_save_IFS
3085
3086fi
3087fi
3088CXX=$ac_cv_prog_CXX
3089if test -n "$CXX"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3091$as_echo "$CXX" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003092else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003095fi
3096
3097
3098 test -n "$CXX" && break
3099 done
3100fi
3101if test -z "$CXX"; then
3102 ac_ct_CXX=$CXX
3103 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3104do
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106set dummy $ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108$as_echo_n "checking for $ac_word... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003109if ${ac_cv_prog_ac_ct_CXX+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003110 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003111else
3112 if test -n "$ac_ct_CXX"; then
3113 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3114else
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003120 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
menderico4861bb82009-09-29 00:31:36 +00003122 ac_cv_prog_ac_ct_CXX="$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003124 break 2
3125 fi
3126done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003127 done
menderico4861bb82009-09-29 00:31:36 +00003128IFS=$as_save_IFS
3129
3130fi
3131fi
3132ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3133if test -n "$ac_ct_CXX"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3135$as_echo "$ac_ct_CXX" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003136else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003139fi
3140
3141
3142 test -n "$ac_ct_CXX" && break
3143done
3144
3145 if test "x$ac_ct_CXX" = x; then
3146 CXX="g++"
3147 else
3148 case $cross_compiling:$ac_tool_warned in
3149yes:)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
menderico4861bb82009-09-29 00:31:36 +00003152ac_tool_warned=yes ;;
3153esac
3154 CXX=$ac_ct_CXX
3155 fi
3156fi
3157
3158 fi
3159fi
3160# Provide some information about the compiler.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003161$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3162set X $ac_compile
3163ac_compiler=$2
3164for ac_option in --version -v -V -qversion; do
3165 { { ac_try="$ac_compiler $ac_option >&5"
menderico4861bb82009-09-29 00:31:36 +00003166case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171$as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
menderico4861bb82009-09-29 00:31:36 +00003173 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003174 if test -s conftest.err; then
3175 sed '10a\
3176... rest of stderr output deleted ...
3177 10q' conftest.err >conftest.er1
3178 cat conftest.er1 >&5
3179 fi
3180 rm -f conftest.er1 conftest.err
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }
3183done
menderico4861bb82009-09-29 00:31:36 +00003184
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003186/* end confdefs.h. */
3187
3188int
3189main ()
3190{
3191
3192 ;
3193 return 0;
3194}
3195_ACEOF
3196ac_clean_files_save=$ac_clean_files
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003197ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
menderico4861bb82009-09-29 00:31:36 +00003198# Try to create an executable without -o first, disregard a.out.
3199# It will help us diagnose broken compilers, and finding out an intuition
3200# of exeext.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3202$as_echo_n "checking whether the C++ compiler works... " >&6; }
3203ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3204
3205# The possible output files:
3206ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3207
menderico4861bb82009-09-29 00:31:36 +00003208ac_rmfiles=
3209for ac_file in $ac_files
3210do
3211 case $ac_file in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
menderico4861bb82009-09-29 00:31:36 +00003213 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3214 esac
3215done
3216rm -f $ac_rmfiles
3217
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003218if { { ac_try="$ac_link_default"
menderico4861bb82009-09-29 00:31:36 +00003219case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
menderico4861bb82009-09-29 00:31:36 +00003225 (eval "$ac_link_default") 2>&5
3226 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; then :
menderico4861bb82009-09-29 00:31:36 +00003229 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3230# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3231# in a Makefile. We should not override ac_cv_exeext if it was cached,
3232# so that the user can short-circuit this test for compilers unknown to
3233# Autoconf.
3234for ac_file in $ac_files ''
3235do
3236 test -f "$ac_file" || continue
3237 case $ac_file in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
menderico4861bb82009-09-29 00:31:36 +00003239 ;;
3240 [ab].out )
3241 # We found the default executable, but exeext='' is most
3242 # certainly right.
3243 break;;
3244 *.* )
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003245 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
menderico4861bb82009-09-29 00:31:36 +00003246 then :; else
3247 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3248 fi
3249 # We set ac_cv_exeext here because the later test for it is not
3250 # safe: cross compilers may not add the suffix if given an `-o'
3251 # argument, so we may need to know it at that point already.
3252 # Even if this section looks crufty: it has the advantage of
3253 # actually working.
3254 break;;
3255 * )
3256 break;;
3257 esac
3258done
3259test "$ac_cv_exeext" = no && ac_cv_exeext=
3260
3261else
3262 ac_file=''
3263fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003264if test -z "$ac_file"; then :
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
3267$as_echo "$as_me: failed program was:" >&5
menderico4861bb82009-09-29 00:31:36 +00003268sed 's/^/| /' conftest.$ac_ext >&5
3269
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003270{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003272as_fn_error 77 "C++ compiler cannot create executables
3273See \`config.log' for more details" "$LINENO" 5; }
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003274else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276$as_echo "yes" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003277fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3279$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3281$as_echo "$ac_file" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003282ac_exeext=$ac_cv_exeext
3283
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003284rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
menderico4861bb82009-09-29 00:31:36 +00003285ac_clean_files=$ac_clean_files_save
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3287$as_echo_n "checking for suffix of executables... " >&6; }
3288if { { ac_try="$ac_link"
menderico4861bb82009-09-29 00:31:36 +00003289case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294$as_echo "$ac_try_echo"; } >&5
menderico4861bb82009-09-29 00:31:36 +00003295 (eval "$ac_link") 2>&5
3296 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
menderico4861bb82009-09-29 00:31:36 +00003299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3300# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3301# work properly (i.e., refer to `conftest.exe'), while it won't with
3302# `rm'.
3303for ac_file in conftest.exe conftest conftest.*; do
3304 test -f "$ac_file" || continue
3305 case $ac_file in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
menderico4861bb82009-09-29 00:31:36 +00003307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308 break;;
3309 * ) break;;
3310 esac
3311done
3312else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003315as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3316See \`config.log' for more details" "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00003317fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003318rm -f conftest conftest$ac_cv_exeext
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3320$as_echo "$ac_cv_exeext" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003321
3322rm -f conftest.$ac_ext
3323EXEEXT=$ac_cv_exeext
3324ac_exeext=$EXEEXT
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326/* end confdefs.h. */
3327#include <stdio.h>
3328int
3329main ()
3330{
3331FILE *f = fopen ("conftest.out", "w");
3332 return ferror (f) || fclose (f) != 0;
3333
3334 ;
3335 return 0;
3336}
menderico4861bb82009-09-29 00:31:36 +00003337_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003338ac_clean_files="$ac_clean_files conftest.out"
3339# Check that the compiler produces executables we can run. If not, either
3340# the compiler is broken, or we cross compile.
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3342$as_echo_n "checking whether we are cross compiling... " >&6; }
3343if test "$cross_compiling" != yes; then
3344 { { ac_try="$ac_link"
3345case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348esac
3349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350$as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_link") 2>&5
3352 ac_status=$?
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }
3355 if { ac_try='./conftest$ac_cv_exeext'
3356 { { case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359esac
3360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361$as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_try") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; }; then
3366 cross_compiling=no
3367 else
3368 if test "$cross_compiling" = maybe; then
3369 cross_compiling=yes
3370 else
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003373as_fn_error $? "cannot run C++ compiled programs.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003374If you meant to cross compile, use \`--host'.
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003375See \`config.log' for more details" "$LINENO" 5; }
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003376 fi
3377 fi
3378fi
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3380$as_echo "$cross_compiling" >&6; }
3381
3382rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3383ac_clean_files=$ac_clean_files_save
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3385$as_echo_n "checking for suffix of object files... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003386if ${ac_cv_objext+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003387 $as_echo_n "(cached) " >&6
3388else
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003390/* end confdefs.h. */
3391
3392int
3393main ()
3394{
3395
3396 ;
3397 return 0;
3398}
3399_ACEOF
3400rm -f conftest.o conftest.obj
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003401if { { ac_try="$ac_compile"
menderico4861bb82009-09-29 00:31:36 +00003402case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407$as_echo "$ac_try_echo"; } >&5
menderico4861bb82009-09-29 00:31:36 +00003408 (eval "$ac_compile") 2>&5
3409 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }; then :
menderico4861bb82009-09-29 00:31:36 +00003412 for ac_file in conftest.o conftest.obj conftest.*; do
3413 test -f "$ac_file" || continue;
3414 case $ac_file in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
menderico4861bb82009-09-29 00:31:36 +00003416 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3417 break;;
3418 esac
3419done
3420else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003421 $as_echo "$as_me: failed program was:" >&5
menderico4861bb82009-09-29 00:31:36 +00003422sed 's/^/| /' conftest.$ac_ext >&5
3423
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003424{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003426as_fn_error $? "cannot compute suffix of object files: cannot compile
3427See \`config.log' for more details" "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00003428fi
menderico4861bb82009-09-29 00:31:36 +00003429rm -f conftest.$ac_cv_objext conftest.$ac_ext
3430fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3432$as_echo "$ac_cv_objext" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003433OBJEXT=$ac_cv_objext
3434ac_objext=$OBJEXT
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3436$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003437if ${ac_cv_cxx_compiler_gnu+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003438 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003439else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003441/* end confdefs.h. */
3442
3443int
3444main ()
3445{
3446#ifndef __GNUC__
3447 choke me
3448#endif
3449
3450 ;
3451 return 0;
3452}
3453_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003454if ac_fn_cxx_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00003455 ac_compiler_gnu=yes
3456else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003457 ac_compiler_gnu=no
menderico4861bb82009-09-29 00:31:36 +00003458fi
menderico4861bb82009-09-29 00:31:36 +00003459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3461
3462fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3464$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3465if test $ac_compiler_gnu = yes; then
3466 GXX=yes
3467else
3468 GXX=
3469fi
menderico4861bb82009-09-29 00:31:36 +00003470ac_test_CXXFLAGS=${CXXFLAGS+set}
3471ac_save_CXXFLAGS=$CXXFLAGS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3473$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003474if ${ac_cv_prog_cxx_g+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003475 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003476else
3477 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3478 ac_cxx_werror_flag=yes
3479 ac_cv_prog_cxx_g=no
3480 CXXFLAGS="-g"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003482/* end confdefs.h. */
3483
3484int
3485main ()
3486{
3487
3488 ;
3489 return 0;
3490}
3491_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003492if ac_fn_cxx_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00003493 ac_cv_prog_cxx_g=yes
3494else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003495 CXXFLAGS=""
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003497/* end confdefs.h. */
3498
3499int
3500main ()
3501{
3502
3503 ;
3504 return 0;
3505}
3506_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003507if ac_fn_cxx_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00003508
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003509else
3510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
menderico4861bb82009-09-29 00:31:36 +00003511 CXXFLAGS="-g"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003513/* end confdefs.h. */
3514
3515int
3516main ()
3517{
3518
3519 ;
3520 return 0;
3521}
3522_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003523if ac_fn_cxx_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00003524 ac_cv_prog_cxx_g=yes
menderico4861bb82009-09-29 00:31:36 +00003525fi
menderico4861bb82009-09-29 00:31:36 +00003526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527fi
menderico4861bb82009-09-29 00:31:36 +00003528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529fi
menderico4861bb82009-09-29 00:31:36 +00003530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3532fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3534$as_echo "$ac_cv_prog_cxx_g" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003535if test "$ac_test_CXXFLAGS" = set; then
3536 CXXFLAGS=$ac_save_CXXFLAGS
3537elif test $ac_cv_prog_cxx_g = yes; then
3538 if test "$GXX" = yes; then
3539 CXXFLAGS="-g -O2"
3540 else
3541 CXXFLAGS="-g"
3542 fi
3543else
3544 if test "$GXX" = yes; then
3545 CXXFLAGS="-O2"
3546 else
3547 CXXFLAGS=
3548 fi
3549fi
3550ac_ext=c
3551ac_cpp='$CPP $CPPFLAGS'
3552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555DEPDIR="${am__leading_dot}deps"
3556
3557ac_config_commands="$ac_config_commands depfiles"
3558
3559
3560am_make=${MAKE-make}
3561cat > confinc << 'END'
3562am__doit:
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003563 @echo this is the am__doit target
menderico4861bb82009-09-29 00:31:36 +00003564.PHONY: am__doit
3565END
3566# If we don't find an include directive, just comment out the code.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3568$as_echo_n "checking for style of include used by $am_make... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00003569am__include="#"
3570am__quote=
3571_am_result=none
3572# First try GNU make style include.
3573echo "include confinc" > confmf
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003574# Ignore all kinds of additional output from `make'.
3575case `$am_make -s -f confmf 2> /dev/null` in #(
3576*the\ am__doit\ target*)
3577 am__include=include
3578 am__quote=
3579 _am_result=GNU
3580 ;;
3581esac
menderico4861bb82009-09-29 00:31:36 +00003582# Now try BSD make style include.
3583if test "$am__include" = "#"; then
3584 echo '.include "confinc"' > confmf
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003585 case `$am_make -s -f confmf 2> /dev/null` in #(
3586 *the\ am__doit\ target*)
3587 am__include=.include
3588 am__quote="\""
3589 _am_result=BSD
3590 ;;
3591 esac
menderico4861bb82009-09-29 00:31:36 +00003592fi
3593
3594
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3596$as_echo "$_am_result" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003597rm -f confinc confmf
3598
3599# Check whether --enable-dependency-tracking was given.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003600if test "${enable_dependency_tracking+set}" = set; then :
menderico4861bb82009-09-29 00:31:36 +00003601 enableval=$enable_dependency_tracking;
3602fi
3603
3604if test "x$enable_dependency_tracking" != xno; then
3605 am_depcomp="$ac_aux_dir/depcomp"
3606 AMDEPBACKSLASH='\'
3607fi
3608 if test "x$enable_dependency_tracking" != xno; then
3609 AMDEP_TRUE=
3610 AMDEP_FALSE='#'
3611else
3612 AMDEP_TRUE='#'
3613 AMDEP_FALSE=
3614fi
3615
3616
3617
3618depcc="$CXX" am_compiler_list=
3619
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3621$as_echo_n "checking dependency style of $depcc... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003622if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003623 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003624else
3625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3626 # We make a subdir and do the tests there. Otherwise we can end up
3627 # making bogus files that we don't know about and never remove. For
3628 # instance it was reported that on HP-UX the gcc test will end up
3629 # making a dummy file named `D' -- because `-MD' means `put the output
3630 # in D'.
3631 mkdir conftest.dir
3632 # Copy depcomp to subdir because otherwise we won't find it if we're
3633 # using a relative directory.
3634 cp "$am_depcomp" conftest.dir
3635 cd conftest.dir
3636 # We will build objects and dependencies in a subdirectory because
3637 # it helps to detect inapplicable dependency modes. For instance
3638 # both Tru64's cc and ICC support -MD to output dependencies as a
3639 # side effect of compilation, but ICC will put the dependencies in
3640 # the current directory while Tru64 will put them in the object
3641 # directory.
3642 mkdir sub
3643
3644 am_cv_CXX_dependencies_compiler_type=none
3645 if test "$am_compiler_list" = ""; then
3646 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3647 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003648 am__universal=false
3649 case " $depcc " in #(
3650 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3651 esac
3652
menderico4861bb82009-09-29 00:31:36 +00003653 for depmode in $am_compiler_list; do
3654 # Setup a source with many dependencies, because some compilers
3655 # like to wrap large dependency lists on column 80 (with \), and
3656 # we should not choose a depcomp mode which is confused by this.
3657 #
3658 # We need to recreate these files for each test, as the compiler may
3659 # overwrite some of them when testing with obscure command lines.
3660 # This happens at least with the AIX C compiler.
3661 : > sub/conftest.c
3662 for i in 1 2 3 4 5 6; do
3663 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3664 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3665 # Solaris 8's {/usr,}/bin/sh.
3666 touch sub/conftst$i.h
3667 done
3668 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3669
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003670 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3671 # mode. It turns out that the SunPro C++ compiler does not properly
3672 # handle `-M -o', and we need to detect this. Also, some Intel
3673 # versions had trouble with output in subdirs
3674 am__obj=sub/conftest.${OBJEXT-o}
3675 am__minus_obj="-o $am__obj"
menderico4861bb82009-09-29 00:31:36 +00003676 case $depmode in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003677 gcc)
3678 # This depmode causes a compiler race in universal mode.
3679 test "$am__universal" = false || continue
3680 ;;
menderico4861bb82009-09-29 00:31:36 +00003681 nosideeffect)
3682 # after this tag, mechanisms are not by side-effect, so they'll
3683 # only be used when explicitly requested
3684 if test "x$enable_dependency_tracking" = xyes; then
3685 continue
3686 else
3687 break
3688 fi
3689 ;;
nick.j.sanders00fa12e2014-08-04 21:04:06 +00003690 msvisualcpp | msvcmsys)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003691 # This compiler won't grok `-c -o', but also, the minuso test has
3692 # not run yet. These depmodes are late enough in the game, and
3693 # so weak that their functioning should not be impacted.
3694 am__obj=conftest.${OBJEXT-o}
3695 am__minus_obj=
3696 ;;
menderico4861bb82009-09-29 00:31:36 +00003697 none) break ;;
3698 esac
menderico4861bb82009-09-29 00:31:36 +00003699 if depmode=$depmode \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003700 source=sub/conftest.c object=$am__obj \
menderico4861bb82009-09-29 00:31:36 +00003701 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003702 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
menderico4861bb82009-09-29 00:31:36 +00003703 >/dev/null 2>conftest.err &&
3704 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3705 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003706 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
menderico4861bb82009-09-29 00:31:36 +00003707 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3708 # icc doesn't choke on unknown options, it will just issue warnings
3709 # or remarks (even with -Werror). So we grep stderr for any message
3710 # that says an option was ignored or not supported.
3711 # When given -MP, icc 7.0 and 7.1 complain thusly:
3712 # icc: Command line warning: ignoring option '-M'; no argument required
3713 # The diagnosis changed in icc 8.0:
3714 # icc: Command line remark: option '-MP' not supported
3715 if (grep 'ignoring option' conftest.err ||
3716 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3717 am_cv_CXX_dependencies_compiler_type=$depmode
3718 break
3719 fi
3720 fi
3721 done
3722
3723 cd ..
3724 rm -rf conftest.dir
3725else
3726 am_cv_CXX_dependencies_compiler_type=none
3727fi
3728
3729fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3731$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003732CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3733
3734 if
3735 test "x$enable_dependency_tracking" != xno \
3736 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3737 am__fastdepCXX_TRUE=
3738 am__fastdepCXX_FALSE='#'
3739else
3740 am__fastdepCXX_TRUE='#'
3741 am__fastdepCXX_FALSE=
3742fi
3743
3744
3745ac_ext=c
3746ac_cpp='$CPP $CPPFLAGS'
3747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750if test -n "$ac_tool_prefix"; then
3751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3752set dummy ${ac_tool_prefix}gcc; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754$as_echo_n "checking for $ac_word... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003755if ${ac_cv_prog_CC+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003756 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003757else
3758 if test -n "$CC"; then
3759 ac_cv_prog_CC="$CC" # Let the user override the test.
3760else
3761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762for as_dir in $PATH
3763do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003766 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
menderico4861bb82009-09-29 00:31:36 +00003768 ac_cv_prog_CC="${ac_tool_prefix}gcc"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003770 break 2
3771 fi
3772done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003773 done
menderico4861bb82009-09-29 00:31:36 +00003774IFS=$as_save_IFS
3775
3776fi
3777fi
3778CC=$ac_cv_prog_CC
3779if test -n "$CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3781$as_echo "$CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003782else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003785fi
3786
3787
3788fi
3789if test -z "$ac_cv_prog_CC"; then
3790 ac_ct_CC=$CC
3791 # Extract the first word of "gcc", so it can be a program name with args.
3792set dummy gcc; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794$as_echo_n "checking for $ac_word... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003795if ${ac_cv_prog_ac_ct_CC+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003796 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003797else
3798 if test -n "$ac_ct_CC"; then
3799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003806 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
menderico4861bb82009-09-29 00:31:36 +00003808 ac_cv_prog_ac_ct_CC="gcc"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003810 break 2
3811 fi
3812done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003813 done
menderico4861bb82009-09-29 00:31:36 +00003814IFS=$as_save_IFS
3815
3816fi
3817fi
3818ac_ct_CC=$ac_cv_prog_ac_ct_CC
3819if test -n "$ac_ct_CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3821$as_echo "$ac_ct_CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003822else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003825fi
3826
3827 if test "x$ac_ct_CC" = x; then
3828 CC=""
3829 else
3830 case $cross_compiling:$ac_tool_warned in
3831yes:)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
menderico4861bb82009-09-29 00:31:36 +00003834ac_tool_warned=yes ;;
3835esac
3836 CC=$ac_ct_CC
3837 fi
3838else
3839 CC="$ac_cv_prog_CC"
3840fi
3841
3842if test -z "$CC"; then
3843 if test -n "$ac_tool_prefix"; then
3844 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3845set dummy ${ac_tool_prefix}cc; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847$as_echo_n "checking for $ac_word... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003848if ${ac_cv_prog_CC+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003849 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003850else
3851 if test -n "$CC"; then
3852 ac_cv_prog_CC="$CC" # Let the user override the test.
3853else
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003859 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
menderico4861bb82009-09-29 00:31:36 +00003861 ac_cv_prog_CC="${ac_tool_prefix}cc"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003863 break 2
3864 fi
3865done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003866 done
menderico4861bb82009-09-29 00:31:36 +00003867IFS=$as_save_IFS
3868
3869fi
3870fi
3871CC=$ac_cv_prog_CC
3872if test -n "$CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3874$as_echo "$CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003875else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003878fi
3879
3880
3881 fi
3882fi
3883if test -z "$CC"; then
3884 # Extract the first word of "cc", so it can be a program name with args.
3885set dummy cc; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887$as_echo_n "checking for $ac_word... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003888if ${ac_cv_prog_CC+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003889 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003890else
3891 if test -n "$CC"; then
3892 ac_cv_prog_CC="$CC" # Let the user override the test.
3893else
3894 ac_prog_rejected=no
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003900 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
menderico4861bb82009-09-29 00:31:36 +00003902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3903 ac_prog_rejected=yes
3904 continue
3905 fi
3906 ac_cv_prog_CC="cc"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003908 break 2
3909 fi
3910done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003911 done
menderico4861bb82009-09-29 00:31:36 +00003912IFS=$as_save_IFS
3913
3914if test $ac_prog_rejected = yes; then
3915 # We found a bogon in the path, so make sure we never use it.
3916 set dummy $ac_cv_prog_CC
3917 shift
3918 if test $# != 0; then
3919 # We chose a different compiler from the bogus one.
3920 # However, it has the same basename, so the bogon will be chosen
3921 # first if we set CC to just the basename; use the full file name.
3922 shift
3923 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3924 fi
3925fi
3926fi
3927fi
3928CC=$ac_cv_prog_CC
3929if test -n "$CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3931$as_echo "$CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003932else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003935fi
3936
3937
3938fi
3939if test -z "$CC"; then
3940 if test -n "$ac_tool_prefix"; then
3941 for ac_prog in cl.exe
3942 do
3943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3944set dummy $ac_tool_prefix$ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946$as_echo_n "checking for $ac_word... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003947if ${ac_cv_prog_CC+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003948 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003949else
3950 if test -n "$CC"; then
3951 ac_cv_prog_CC="$CC" # Let the user override the test.
3952else
3953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954for as_dir in $PATH
3955do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003958 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
menderico4861bb82009-09-29 00:31:36 +00003960 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003962 break 2
3963 fi
3964done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003965 done
menderico4861bb82009-09-29 00:31:36 +00003966IFS=$as_save_IFS
3967
3968fi
3969fi
3970CC=$ac_cv_prog_CC
3971if test -n "$CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3973$as_echo "$CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003974else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003977fi
3978
3979
3980 test -n "$CC" && break
3981 done
3982fi
3983if test -z "$CC"; then
3984 ac_ct_CC=$CC
3985 for ac_prog in cl.exe
3986do
3987 # Extract the first word of "$ac_prog", so it can be a program name with args.
3988set dummy $ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990$as_echo_n "checking for $ac_word... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07003991if ${ac_cv_prog_ac_ct_CC+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003992 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003993else
3994 if test -n "$ac_ct_CC"; then
3995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3996else
3997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004002 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
menderico4861bb82009-09-29 00:31:36 +00004004 ac_cv_prog_ac_ct_CC="$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00004006 break 2
4007 fi
4008done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004009 done
menderico4861bb82009-09-29 00:31:36 +00004010IFS=$as_save_IFS
4011
4012fi
4013fi
4014ac_ct_CC=$ac_cv_prog_ac_ct_CC
4015if test -n "$ac_ct_CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4017$as_echo "$ac_ct_CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004018else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004021fi
4022
4023
4024 test -n "$ac_ct_CC" && break
4025done
4026
4027 if test "x$ac_ct_CC" = x; then
4028 CC=""
4029 else
4030 case $cross_compiling:$ac_tool_warned in
4031yes:)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
menderico4861bb82009-09-29 00:31:36 +00004034ac_tool_warned=yes ;;
4035esac
4036 CC=$ac_ct_CC
4037 fi
4038fi
4039
4040fi
4041
4042
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004043test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004045as_fn_error $? "no acceptable C compiler found in \$PATH
4046See \`config.log' for more details" "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00004047
4048# Provide some information about the compiler.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004049$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4050set X $ac_compile
4051ac_compiler=$2
4052for ac_option in --version -v -V -qversion; do
4053 { { ac_try="$ac_compiler $ac_option >&5"
menderico4861bb82009-09-29 00:31:36 +00004054case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059$as_echo "$ac_try_echo"; } >&5
4060 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
menderico4861bb82009-09-29 00:31:36 +00004061 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004062 if test -s conftest.err; then
4063 sed '10a\
4064... rest of stderr output deleted ...
4065 10q' conftest.err >conftest.er1
4066 cat conftest.er1 >&5
4067 fi
4068 rm -f conftest.er1 conftest.err
4069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070 test $ac_status = 0; }
4071done
menderico4861bb82009-09-29 00:31:36 +00004072
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4074$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004075if ${ac_cv_c_compiler_gnu+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004076 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004077else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004079/* end confdefs.h. */
4080
4081int
4082main ()
4083{
4084#ifndef __GNUC__
4085 choke me
4086#endif
4087
4088 ;
4089 return 0;
4090}
4091_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004092if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004093 ac_compiler_gnu=yes
4094else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004095 ac_compiler_gnu=no
menderico4861bb82009-09-29 00:31:36 +00004096fi
menderico4861bb82009-09-29 00:31:36 +00004097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098ac_cv_c_compiler_gnu=$ac_compiler_gnu
4099
4100fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4102$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4103if test $ac_compiler_gnu = yes; then
4104 GCC=yes
4105else
4106 GCC=
4107fi
menderico4861bb82009-09-29 00:31:36 +00004108ac_test_CFLAGS=${CFLAGS+set}
4109ac_save_CFLAGS=$CFLAGS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4111$as_echo_n "checking whether $CC accepts -g... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004112if ${ac_cv_prog_cc_g+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004113 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004114else
4115 ac_save_c_werror_flag=$ac_c_werror_flag
4116 ac_c_werror_flag=yes
4117 ac_cv_prog_cc_g=no
4118 CFLAGS="-g"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004120/* end confdefs.h. */
4121
4122int
4123main ()
4124{
4125
4126 ;
4127 return 0;
4128}
4129_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004130if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004131 ac_cv_prog_cc_g=yes
4132else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004133 CFLAGS=""
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004135/* end confdefs.h. */
4136
4137int
4138main ()
4139{
4140
4141 ;
4142 return 0;
4143}
4144_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004145if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004146
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004147else
4148 ac_c_werror_flag=$ac_save_c_werror_flag
menderico4861bb82009-09-29 00:31:36 +00004149 CFLAGS="-g"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004151/* end confdefs.h. */
4152
4153int
4154main ()
4155{
4156
4157 ;
4158 return 0;
4159}
4160_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004161if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004162 ac_cv_prog_cc_g=yes
menderico4861bb82009-09-29 00:31:36 +00004163fi
menderico4861bb82009-09-29 00:31:36 +00004164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165fi
menderico4861bb82009-09-29 00:31:36 +00004166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167fi
menderico4861bb82009-09-29 00:31:36 +00004168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 ac_c_werror_flag=$ac_save_c_werror_flag
4170fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4172$as_echo "$ac_cv_prog_cc_g" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004173if test "$ac_test_CFLAGS" = set; then
4174 CFLAGS=$ac_save_CFLAGS
4175elif test $ac_cv_prog_cc_g = yes; then
4176 if test "$GCC" = yes; then
4177 CFLAGS="-g -O2"
4178 else
4179 CFLAGS="-g"
4180 fi
4181else
4182 if test "$GCC" = yes; then
4183 CFLAGS="-O2"
4184 else
4185 CFLAGS=
4186 fi
4187fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4189$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004190if ${ac_cv_prog_cc_c89+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004191 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004192else
4193 ac_cv_prog_cc_c89=no
4194ac_save_CC=$CC
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004196/* end confdefs.h. */
4197#include <stdarg.h>
4198#include <stdio.h>
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004199struct stat;
menderico4861bb82009-09-29 00:31:36 +00004200/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4201struct buf { int x; };
4202FILE * (*rcsopen) (struct buf *, struct stat *, int);
4203static char *e (p, i)
4204 char **p;
4205 int i;
4206{
4207 return p[i];
4208}
4209static char *f (char * (*g) (char **, int), char **p, ...)
4210{
4211 char *s;
4212 va_list v;
4213 va_start (v,p);
4214 s = g (p, va_arg (v,int));
4215 va_end (v);
4216 return s;
4217}
4218
4219/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4220 function prototypes and stuff, but not '\xHH' hex character constants.
4221 These don't provoke an error unfortunately, instead are silently treated
4222 as 'x'. The following induces an error, until -std is added to get
4223 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4224 array size at least. It's necessary to write '\x00'==0 to get something
4225 that's true only with -std. */
4226int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4227
4228/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4229 inside strings and character constants. */
4230#define FOO(x) 'x'
4231int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4232
4233int test (int i, double x);
4234struct s1 {int (*f) (int a);};
4235struct s2 {int (*f) (double a);};
4236int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4237int argc;
4238char **argv;
4239int
4240main ()
4241{
4242return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4243 ;
4244 return 0;
4245}
4246_ACEOF
4247for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4248 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4249do
4250 CC="$ac_save_CC $ac_arg"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004251 if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004252 ac_cv_prog_cc_c89=$ac_arg
menderico4861bb82009-09-29 00:31:36 +00004253fi
menderico4861bb82009-09-29 00:31:36 +00004254rm -f core conftest.err conftest.$ac_objext
4255 test "x$ac_cv_prog_cc_c89" != "xno" && break
4256done
4257rm -f conftest.$ac_ext
4258CC=$ac_save_CC
4259
4260fi
4261# AC_CACHE_VAL
4262case "x$ac_cv_prog_cc_c89" in
4263 x)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4265$as_echo "none needed" >&6; } ;;
menderico4861bb82009-09-29 00:31:36 +00004266 xno)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4268$as_echo "unsupported" >&6; } ;;
menderico4861bb82009-09-29 00:31:36 +00004269 *)
4270 CC="$CC $ac_cv_prog_cc_c89"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4272$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
menderico4861bb82009-09-29 00:31:36 +00004273esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004274if test "x$ac_cv_prog_cc_c89" != xno; then :
menderico4861bb82009-09-29 00:31:36 +00004275
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004276fi
menderico4861bb82009-09-29 00:31:36 +00004277
4278ac_ext=c
4279ac_cpp='$CPP $CPPFLAGS'
4280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283
4284depcc="$CC" am_compiler_list=
4285
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4287$as_echo_n "checking dependency style of $depcc... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004288if ${am_cv_CC_dependencies_compiler_type+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004289 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004290else
4291 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4292 # We make a subdir and do the tests there. Otherwise we can end up
4293 # making bogus files that we don't know about and never remove. For
4294 # instance it was reported that on HP-UX the gcc test will end up
4295 # making a dummy file named `D' -- because `-MD' means `put the output
4296 # in D'.
4297 mkdir conftest.dir
4298 # Copy depcomp to subdir because otherwise we won't find it if we're
4299 # using a relative directory.
4300 cp "$am_depcomp" conftest.dir
4301 cd conftest.dir
4302 # We will build objects and dependencies in a subdirectory because
4303 # it helps to detect inapplicable dependency modes. For instance
4304 # both Tru64's cc and ICC support -MD to output dependencies as a
4305 # side effect of compilation, but ICC will put the dependencies in
4306 # the current directory while Tru64 will put them in the object
4307 # directory.
4308 mkdir sub
4309
4310 am_cv_CC_dependencies_compiler_type=none
4311 if test "$am_compiler_list" = ""; then
4312 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4313 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004314 am__universal=false
4315 case " $depcc " in #(
4316 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4317 esac
4318
menderico4861bb82009-09-29 00:31:36 +00004319 for depmode in $am_compiler_list; do
4320 # Setup a source with many dependencies, because some compilers
4321 # like to wrap large dependency lists on column 80 (with \), and
4322 # we should not choose a depcomp mode which is confused by this.
4323 #
4324 # We need to recreate these files for each test, as the compiler may
4325 # overwrite some of them when testing with obscure command lines.
4326 # This happens at least with the AIX C compiler.
4327 : > sub/conftest.c
4328 for i in 1 2 3 4 5 6; do
4329 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4330 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4331 # Solaris 8's {/usr,}/bin/sh.
4332 touch sub/conftst$i.h
4333 done
4334 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4335
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004336 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4337 # mode. It turns out that the SunPro C++ compiler does not properly
4338 # handle `-M -o', and we need to detect this. Also, some Intel
4339 # versions had trouble with output in subdirs
4340 am__obj=sub/conftest.${OBJEXT-o}
4341 am__minus_obj="-o $am__obj"
menderico4861bb82009-09-29 00:31:36 +00004342 case $depmode in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004343 gcc)
4344 # This depmode causes a compiler race in universal mode.
4345 test "$am__universal" = false || continue
4346 ;;
menderico4861bb82009-09-29 00:31:36 +00004347 nosideeffect)
4348 # after this tag, mechanisms are not by side-effect, so they'll
4349 # only be used when explicitly requested
4350 if test "x$enable_dependency_tracking" = xyes; then
4351 continue
4352 else
4353 break
4354 fi
4355 ;;
nick.j.sanders00fa12e2014-08-04 21:04:06 +00004356 msvisualcpp | msvcmsys)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004357 # This compiler won't grok `-c -o', but also, the minuso test has
4358 # not run yet. These depmodes are late enough in the game, and
4359 # so weak that their functioning should not be impacted.
4360 am__obj=conftest.${OBJEXT-o}
4361 am__minus_obj=
4362 ;;
menderico4861bb82009-09-29 00:31:36 +00004363 none) break ;;
4364 esac
menderico4861bb82009-09-29 00:31:36 +00004365 if depmode=$depmode \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004366 source=sub/conftest.c object=$am__obj \
menderico4861bb82009-09-29 00:31:36 +00004367 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004368 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
menderico4861bb82009-09-29 00:31:36 +00004369 >/dev/null 2>conftest.err &&
4370 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4371 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004372 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
menderico4861bb82009-09-29 00:31:36 +00004373 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4374 # icc doesn't choke on unknown options, it will just issue warnings
4375 # or remarks (even with -Werror). So we grep stderr for any message
4376 # that says an option was ignored or not supported.
4377 # When given -MP, icc 7.0 and 7.1 complain thusly:
4378 # icc: Command line warning: ignoring option '-M'; no argument required
4379 # The diagnosis changed in icc 8.0:
4380 # icc: Command line remark: option '-MP' not supported
4381 if (grep 'ignoring option' conftest.err ||
4382 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4383 am_cv_CC_dependencies_compiler_type=$depmode
4384 break
4385 fi
4386 fi
4387 done
4388
4389 cd ..
4390 rm -rf conftest.dir
4391else
4392 am_cv_CC_dependencies_compiler_type=none
4393fi
4394
4395fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4397$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004398CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4399
4400 if
4401 test "x$enable_dependency_tracking" != xno \
4402 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4403 am__fastdepCC_TRUE=
4404 am__fastdepCC_FALSE='#'
4405else
4406 am__fastdepCC_TRUE='#'
4407 am__fastdepCC_FALSE=
4408fi
4409
4410
4411
4412#Getting user and host info
4413username=$(whoami)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking user ID" >&5
4415$as_echo_n "checking user ID... " >&6; }
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $username" >&5
4417$as_echo "$username" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004418
4419hostname=$(uname -n)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host name" >&5
4421$as_echo_n "checking host name... " >&6; }
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hostname" >&5
4423$as_echo "$hostname" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004424
4425timestamp=$(date)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking current timestamp" >&5
4427$as_echo_n "checking current timestamp... " >&6; }
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $timestamp" >&5
4429$as_echo "$timestamp" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004430
4431
4432cat >>confdefs.h <<_ACEOF
4433#define STRESSAPPTEST_TIMESTAMP "$username @ $hostname on $timestamp"
4434_ACEOF
4435
4436
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004437# Check whether --enable-default-optimizations was given.
4438if test "${enable_default_optimizations+set}" = set; then :
4439 enableval=$enable_default_optimizations;
4440fi
4441
4442if test x"$enable_default_optimizations" != xno; then :
4443
4444 #Default cxxflags
4445 CXXFLAGS="$CXXFLAGS -DCHECKOPTS"
nick.j.sanders72851352014-04-11 23:28:56 +00004446 CXXFLAGS="$CXXFLAGS -Wreturn-type -Wunused -Wuninitialized -Wall"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004447 CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops -funroll-loops -DNDEBUG"
4448
4449fi
menderico4861bb82009-09-29 00:31:36 +00004450
4451# Checks for header files.
4452
menderico4861bb82009-09-29 00:31:36 +00004453ac_header_dirent=no
4454for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004455 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4457$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004458if eval \${$as_ac_Header+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004459 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004460else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004462/* end confdefs.h. */
4463#include <sys/types.h>
4464#include <$ac_hdr>
4465
4466int
4467main ()
4468{
4469if ((DIR *) 0)
4470return 0;
4471 ;
4472 return 0;
4473}
4474_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004475if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004476 eval "$as_ac_Header=yes"
4477else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004478 eval "$as_ac_Header=no"
menderico4861bb82009-09-29 00:31:36 +00004479fi
menderico4861bb82009-09-29 00:31:36 +00004480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004482eval ac_res=\$$as_ac_Header
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4484$as_echo "$ac_res" >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004485if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
menderico4861bb82009-09-29 00:31:36 +00004486 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004487#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00004488_ACEOF
4489
4490ac_header_dirent=$ac_hdr; break
4491fi
4492
4493done
4494# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4495if test $ac_header_dirent = dirent.h; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4497$as_echo_n "checking for library containing opendir... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004498if ${ac_cv_search_opendir+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004499 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004500else
4501 ac_func_search_save_LIBS=$LIBS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004503/* end confdefs.h. */
4504
4505/* Override any GCC internal prototype to avoid an error.
4506 Use char because int might match the return type of a GCC
4507 builtin and then its argument prototype would still apply. */
4508#ifdef __cplusplus
4509extern "C"
4510#endif
4511char opendir ();
4512int
4513main ()
4514{
4515return opendir ();
4516 ;
4517 return 0;
4518}
4519_ACEOF
4520for ac_lib in '' dir; do
4521 if test -z "$ac_lib"; then
4522 ac_res="none required"
4523 else
4524 ac_res=-l$ac_lib
4525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4526 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004527 if ac_fn_c_try_link "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004528 ac_cv_search_opendir=$ac_res
menderico4861bb82009-09-29 00:31:36 +00004529fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004530rm -f core conftest.err conftest.$ac_objext \
4531 conftest$ac_exeext
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004532 if ${ac_cv_search_opendir+:} false; then :
menderico4861bb82009-09-29 00:31:36 +00004533 break
4534fi
4535done
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004536if ${ac_cv_search_opendir+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004537
menderico4861bb82009-09-29 00:31:36 +00004538else
4539 ac_cv_search_opendir=no
4540fi
4541rm conftest.$ac_ext
4542LIBS=$ac_func_search_save_LIBS
4543fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4545$as_echo "$ac_cv_search_opendir" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004546ac_res=$ac_cv_search_opendir
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004547if test "$ac_res" != no; then :
menderico4861bb82009-09-29 00:31:36 +00004548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4549
4550fi
4551
4552else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4554$as_echo_n "checking for library containing opendir... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004555if ${ac_cv_search_opendir+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004556 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004557else
4558 ac_func_search_save_LIBS=$LIBS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004560/* end confdefs.h. */
4561
4562/* Override any GCC internal prototype to avoid an error.
4563 Use char because int might match the return type of a GCC
4564 builtin and then its argument prototype would still apply. */
4565#ifdef __cplusplus
4566extern "C"
4567#endif
4568char opendir ();
4569int
4570main ()
4571{
4572return opendir ();
4573 ;
4574 return 0;
4575}
4576_ACEOF
4577for ac_lib in '' x; do
4578 if test -z "$ac_lib"; then
4579 ac_res="none required"
4580 else
4581 ac_res=-l$ac_lib
4582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4583 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004584 if ac_fn_c_try_link "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004585 ac_cv_search_opendir=$ac_res
menderico4861bb82009-09-29 00:31:36 +00004586fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004587rm -f core conftest.err conftest.$ac_objext \
4588 conftest$ac_exeext
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004589 if ${ac_cv_search_opendir+:} false; then :
menderico4861bb82009-09-29 00:31:36 +00004590 break
4591fi
4592done
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004593if ${ac_cv_search_opendir+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004594
menderico4861bb82009-09-29 00:31:36 +00004595else
4596 ac_cv_search_opendir=no
4597fi
4598rm conftest.$ac_ext
4599LIBS=$ac_func_search_save_LIBS
4600fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4602$as_echo "$ac_cv_search_opendir" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004603ac_res=$ac_cv_search_opendir
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004604if test "$ac_res" != no; then :
menderico4861bb82009-09-29 00:31:36 +00004605 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4606
4607fi
4608
4609fi
4610
4611ac_ext=c
4612ac_cpp='$CPP $CPPFLAGS'
4613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615ac_compiler_gnu=$ac_cv_c_compiler_gnu
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4617$as_echo_n "checking how to run the C preprocessor... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00004618# On Suns, sometimes $CPP names a directory.
4619if test -n "$CPP" && test -d "$CPP"; then
4620 CPP=
4621fi
4622if test -z "$CPP"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004623 if ${ac_cv_prog_CPP+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004624 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004625else
4626 # Double quotes because CPP needs to be expanded
4627 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4628 do
4629 ac_preproc_ok=false
4630for ac_c_preproc_warn_flag in '' yes
4631do
4632 # Use a header file that comes with gcc, so configuring glibc
4633 # with a fresh cross-compiler works.
4634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4635 # <limits.h> exists even on freestanding compilers.
4636 # On the NeXT, cc -E runs the code through the compiler's parser,
4637 # not just through cpp. "Syntax error" is here to catch this case.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004639/* end confdefs.h. */
4640#ifdef __STDC__
4641# include <limits.h>
4642#else
4643# include <assert.h>
4644#endif
4645 Syntax error
4646_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004647if ac_fn_c_try_cpp "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004648
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004649else
menderico4861bb82009-09-29 00:31:36 +00004650 # Broken: fails on valid input.
4651continue
4652fi
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004653rm -f conftest.err conftest.i conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004654
4655 # OK, works on sane cases. Now check whether nonexistent headers
4656 # can be detected and how.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004658/* end confdefs.h. */
4659#include <ac_nonexistent.h>
4660_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004661if ac_fn_c_try_cpp "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004662 # Broken: success on invalid input.
4663continue
4664else
menderico4861bb82009-09-29 00:31:36 +00004665 # Passes both tests.
4666ac_preproc_ok=:
4667break
4668fi
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004669rm -f conftest.err conftest.i conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004670
4671done
4672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004673rm -f conftest.i conftest.err conftest.$ac_ext
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004674if $ac_preproc_ok; then :
menderico4861bb82009-09-29 00:31:36 +00004675 break
4676fi
4677
4678 done
4679 ac_cv_prog_CPP=$CPP
4680
4681fi
4682 CPP=$ac_cv_prog_CPP
4683else
4684 ac_cv_prog_CPP=$CPP
4685fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4687$as_echo "$CPP" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004688ac_preproc_ok=false
4689for ac_c_preproc_warn_flag in '' yes
4690do
4691 # Use a header file that comes with gcc, so configuring glibc
4692 # with a fresh cross-compiler works.
4693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4694 # <limits.h> exists even on freestanding compilers.
4695 # On the NeXT, cc -E runs the code through the compiler's parser,
4696 # not just through cpp. "Syntax error" is here to catch this case.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004698/* end confdefs.h. */
4699#ifdef __STDC__
4700# include <limits.h>
4701#else
4702# include <assert.h>
4703#endif
4704 Syntax error
4705_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004706if ac_fn_c_try_cpp "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004707
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004708else
menderico4861bb82009-09-29 00:31:36 +00004709 # Broken: fails on valid input.
4710continue
4711fi
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004712rm -f conftest.err conftest.i conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004713
4714 # OK, works on sane cases. Now check whether nonexistent headers
4715 # can be detected and how.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004717/* end confdefs.h. */
4718#include <ac_nonexistent.h>
4719_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004720if ac_fn_c_try_cpp "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004721 # Broken: success on invalid input.
4722continue
4723else
menderico4861bb82009-09-29 00:31:36 +00004724 # Passes both tests.
4725ac_preproc_ok=:
4726break
4727fi
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004728rm -f conftest.err conftest.i conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004729
4730done
4731# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004732rm -f conftest.i conftest.err conftest.$ac_ext
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004733if $ac_preproc_ok; then :
4734
menderico4861bb82009-09-29 00:31:36 +00004735else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004738as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4739See \`config.log' for more details" "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00004740fi
4741
4742ac_ext=c
4743ac_cpp='$CPP $CPPFLAGS'
4744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746ac_compiler_gnu=$ac_cv_c_compiler_gnu
4747
4748
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4750$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004751if ${ac_cv_path_GREP+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004752 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004753else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004754 if test -z "$GREP"; then
menderico4861bb82009-09-29 00:31:36 +00004755 ac_path_GREP_found=false
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004756 # Loop through the user's path and test for each of PROGNAME-LIST
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
menderico4861bb82009-09-29 00:31:36 +00004758for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4759do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004762 for ac_prog in grep ggrep; do
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004765 as_fn_executable_p "$ac_path_GREP" || continue
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004766# Check for GNU ac_path_GREP and select it if it is found.
menderico4861bb82009-09-29 00:31:36 +00004767 # Check for GNU $ac_path_GREP
4768case `"$ac_path_GREP" --version 2>&1` in
4769*GNU*)
4770 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4771*)
4772 ac_count=0
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004773 $as_echo_n 0123456789 >"conftest.in"
menderico4861bb82009-09-29 00:31:36 +00004774 while :
4775 do
4776 cat "conftest.in" "conftest.in" >"conftest.tmp"
4777 mv "conftest.tmp" "conftest.in"
4778 cp "conftest.in" "conftest.nl"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004779 $as_echo 'GREP' >> "conftest.nl"
menderico4861bb82009-09-29 00:31:36 +00004780 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004782 as_fn_arith $ac_count + 1 && ac_count=$as_val
menderico4861bb82009-09-29 00:31:36 +00004783 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4784 # Best one so far, save it but keep looking for a better one
4785 ac_cv_path_GREP="$ac_path_GREP"
4786 ac_path_GREP_max=$ac_count
4787 fi
4788 # 10*(2^10) chars as input seems more than enough
4789 test $ac_count -gt 10 && break
4790 done
4791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4792esac
4793
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004794 $ac_path_GREP_found && break 3
4795 done
menderico4861bb82009-09-29 00:31:36 +00004796 done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004797 done
menderico4861bb82009-09-29 00:31:36 +00004798IFS=$as_save_IFS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004799 if test -z "$ac_cv_path_GREP"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004800 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004801 fi
menderico4861bb82009-09-29 00:31:36 +00004802else
4803 ac_cv_path_GREP=$GREP
4804fi
4805
menderico4861bb82009-09-29 00:31:36 +00004806fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4808$as_echo "$ac_cv_path_GREP" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004809 GREP="$ac_cv_path_GREP"
4810
4811
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4813$as_echo_n "checking for egrep... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004814if ${ac_cv_path_EGREP+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004815 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004816else
4817 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4818 then ac_cv_path_EGREP="$GREP -E"
4819 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004820 if test -z "$EGREP"; then
menderico4861bb82009-09-29 00:31:36 +00004821 ac_path_EGREP_found=false
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004822 # Loop through the user's path and test for each of PROGNAME-LIST
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
menderico4861bb82009-09-29 00:31:36 +00004824for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004828 for ac_prog in egrep; do
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004831 as_fn_executable_p "$ac_path_EGREP" || continue
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004832# Check for GNU ac_path_EGREP and select it if it is found.
menderico4861bb82009-09-29 00:31:36 +00004833 # Check for GNU $ac_path_EGREP
4834case `"$ac_path_EGREP" --version 2>&1` in
4835*GNU*)
4836 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4837*)
4838 ac_count=0
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004839 $as_echo_n 0123456789 >"conftest.in"
menderico4861bb82009-09-29 00:31:36 +00004840 while :
4841 do
4842 cat "conftest.in" "conftest.in" >"conftest.tmp"
4843 mv "conftest.tmp" "conftest.in"
4844 cp "conftest.in" "conftest.nl"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004845 $as_echo 'EGREP' >> "conftest.nl"
menderico4861bb82009-09-29 00:31:36 +00004846 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4847 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004848 as_fn_arith $ac_count + 1 && ac_count=$as_val
menderico4861bb82009-09-29 00:31:36 +00004849 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4850 # Best one so far, save it but keep looking for a better one
4851 ac_cv_path_EGREP="$ac_path_EGREP"
4852 ac_path_EGREP_max=$ac_count
4853 fi
4854 # 10*(2^10) chars as input seems more than enough
4855 test $ac_count -gt 10 && break
4856 done
4857 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4858esac
4859
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004860 $ac_path_EGREP_found && break 3
4861 done
menderico4861bb82009-09-29 00:31:36 +00004862 done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004863 done
menderico4861bb82009-09-29 00:31:36 +00004864IFS=$as_save_IFS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004865 if test -z "$ac_cv_path_EGREP"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004866 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004867 fi
menderico4861bb82009-09-29 00:31:36 +00004868else
4869 ac_cv_path_EGREP=$EGREP
4870fi
4871
menderico4861bb82009-09-29 00:31:36 +00004872 fi
4873fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4875$as_echo "$ac_cv_path_EGREP" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004876 EGREP="$ac_cv_path_EGREP"
4877
4878
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4880$as_echo_n "checking for ANSI C header files... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004881if ${ac_cv_header_stdc+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004882 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004883else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004885/* end confdefs.h. */
4886#include <stdlib.h>
4887#include <stdarg.h>
4888#include <string.h>
4889#include <float.h>
4890
4891int
4892main ()
4893{
4894
4895 ;
4896 return 0;
4897}
4898_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004899if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004900 ac_cv_header_stdc=yes
4901else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004902 ac_cv_header_stdc=no
menderico4861bb82009-09-29 00:31:36 +00004903fi
menderico4861bb82009-09-29 00:31:36 +00004904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905
4906if test $ac_cv_header_stdc = yes; then
4907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004909/* end confdefs.h. */
4910#include <string.h>
4911
4912_ACEOF
4913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004914 $EGREP "memchr" >/dev/null 2>&1; then :
4915
menderico4861bb82009-09-29 00:31:36 +00004916else
4917 ac_cv_header_stdc=no
4918fi
4919rm -f conftest*
4920
4921fi
4922
4923if test $ac_cv_header_stdc = yes; then
4924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004926/* end confdefs.h. */
4927#include <stdlib.h>
4928
4929_ACEOF
4930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004931 $EGREP "free" >/dev/null 2>&1; then :
4932
menderico4861bb82009-09-29 00:31:36 +00004933else
4934 ac_cv_header_stdc=no
4935fi
4936rm -f conftest*
4937
4938fi
4939
4940if test $ac_cv_header_stdc = yes; then
4941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004942 if test "$cross_compiling" = yes; then :
menderico4861bb82009-09-29 00:31:36 +00004943 :
4944else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004946/* end confdefs.h. */
4947#include <ctype.h>
4948#include <stdlib.h>
4949#if ((' ' & 0x0FF) == 0x020)
4950# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4951# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4952#else
4953# define ISLOWER(c) \
4954 (('a' <= (c) && (c) <= 'i') \
4955 || ('j' <= (c) && (c) <= 'r') \
4956 || ('s' <= (c) && (c) <= 'z'))
4957# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4958#endif
4959
4960#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4961int
4962main ()
4963{
4964 int i;
4965 for (i = 0; i < 256; i++)
4966 if (XOR (islower (i), ISLOWER (i))
4967 || toupper (i) != TOUPPER (i))
4968 return 2;
4969 return 0;
4970}
4971_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004972if ac_fn_c_try_run "$LINENO"; then :
4973
menderico4861bb82009-09-29 00:31:36 +00004974else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004975 ac_cv_header_stdc=no
menderico4861bb82009-09-29 00:31:36 +00004976fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4978 conftest.$ac_objext conftest.beam conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004979fi
4980
menderico4861bb82009-09-29 00:31:36 +00004981fi
4982fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4984$as_echo "$ac_cv_header_stdc" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004985if test $ac_cv_header_stdc = yes; then
4986
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004987$as_echo "#define STDC_HEADERS 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00004988
4989fi
4990
nick.j.sandersaeef0912013-01-07 20:07:28 +00004991# Skip malloc.h to prevent redefinition of HAVE_MALLOC_H on some platforms
menderico4861bb82009-09-29 00:31:36 +00004992# On IRIX 5.3, sys/types and inttypes.h are conflicting.
menderico4861bb82009-09-29 00:31:36 +00004993for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4994 inttypes.h stdint.h unistd.h
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004995do :
4996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4997ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4998"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07004999if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
menderico4861bb82009-09-29 00:31:36 +00005000 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005001#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00005002_ACEOF
5003
5004fi
5005
5006done
5007
5008
nick.j.sandersaeef0912013-01-07 20:07:28 +00005009for ac_header in arpa/inet.h fcntl.h netdb.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005010do :
5011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5012ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005013if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
menderico4861bb82009-09-29 00:31:36 +00005014 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005015#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00005016_ACEOF
5017
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005018else
5019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005021as_fn_error $? "Missing some header files.
5022See \`config.log' for more details" "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00005023fi
5024
5025done
5026
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005027for ac_header in pthread.h
5028do :
5029 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005030if test "x$ac_cv_header_pthread_h" = xyes; then :
nick.j.sanderseea0aac2010-03-12 03:35:04 +00005031 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005032#define HAVE_PTHREAD_H 1
nick.j.sanderseea0aac2010-03-12 03:35:04 +00005033_ACEOF
5034
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005035fi
5036
5037done
5038
nick.j.sandersaeef0912013-01-07 20:07:28 +00005039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
5040$as_echo_n "checking for library containing pthread_create... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005041if ${ac_cv_search_pthread_create+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005042 $as_echo_n "(cached) " >&6
5043else
5044 ac_func_search_save_LIBS=$LIBS
5045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046/* end confdefs.h. */
5047
5048/* Override any GCC internal prototype to avoid an error.
5049 Use char because int might match the return type of a GCC
5050 builtin and then its argument prototype would still apply. */
5051#ifdef __cplusplus
5052extern "C"
5053#endif
5054char pthread_create ();
5055int
5056main ()
5057{
5058return pthread_create ();
5059 ;
5060 return 0;
5061}
5062_ACEOF
5063for ac_lib in '' pthread; do
5064 if test -z "$ac_lib"; then
5065 ac_res="none required"
5066 else
5067 ac_res=-l$ac_lib
5068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5069 fi
5070 if ac_fn_c_try_link "$LINENO"; then :
5071 ac_cv_search_pthread_create=$ac_res
5072fi
5073rm -f core conftest.err conftest.$ac_objext \
5074 conftest$ac_exeext
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005075 if ${ac_cv_search_pthread_create+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005076 break
5077fi
5078done
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005079if ${ac_cv_search_pthread_create+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005080
5081else
5082 ac_cv_search_pthread_create=no
5083fi
5084rm conftest.$ac_ext
5085LIBS=$ac_func_search_save_LIBS
5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
5088$as_echo "$ac_cv_search_pthread_create" >&6; }
5089ac_res=$ac_cv_search_pthread_create
5090if test "$ac_res" != no; then :
5091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5092
5093fi
5094
nick.j.sanders34f025d2013-01-09 21:13:13 +00005095ac_fn_c_check_type "$LINENO" "pthread_barrier_t" "ac_cv_type_pthread_barrier_t" "$ac_includes_default"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005096if test "x$ac_cv_type_pthread_barrier_t" = xyes; then :
nick.j.sanders34f025d2013-01-09 21:13:13 +00005097
5098$as_echo "#define HAVE_PTHREAD_BARRIERS 1" >>confdefs.h
5099
5100fi
5101
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005102for ac_header in libaio.h
5103do :
5104 ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005105if test "x$ac_cv_header_libaio_h" = xyes; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005106 cat >>confdefs.h <<_ACEOF
5107#define HAVE_LIBAIO_H 1
5108_ACEOF
5109
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005110fi
5111
5112done
5113
nick.j.sandersaeef0912013-01-07 20:07:28 +00005114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing io_setup" >&5
5115$as_echo_n "checking for library containing io_setup... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005116if ${ac_cv_search_io_setup+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005117 $as_echo_n "(cached) " >&6
5118else
5119 ac_func_search_save_LIBS=$LIBS
5120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121/* end confdefs.h. */
5122
5123/* Override any GCC internal prototype to avoid an error.
5124 Use char because int might match the return type of a GCC
5125 builtin and then its argument prototype would still apply. */
5126#ifdef __cplusplus
5127extern "C"
5128#endif
5129char io_setup ();
5130int
5131main ()
5132{
5133return io_setup ();
5134 ;
5135 return 0;
5136}
5137_ACEOF
5138for ac_lib in '' aio; do
5139 if test -z "$ac_lib"; then
5140 ac_res="none required"
5141 else
5142 ac_res=-l$ac_lib
5143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5144 fi
5145 if ac_fn_c_try_link "$LINENO"; then :
5146 ac_cv_search_io_setup=$ac_res
5147fi
5148rm -f core conftest.err conftest.$ac_objext \
5149 conftest$ac_exeext
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005150 if ${ac_cv_search_io_setup+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005151 break
5152fi
5153done
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005154if ${ac_cv_search_io_setup+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005155
5156else
5157 ac_cv_search_io_setup=no
5158fi
5159rm conftest.$ac_ext
5160LIBS=$ac_func_search_save_LIBS
5161fi
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_io_setup" >&5
5163$as_echo "$ac_cv_search_io_setup" >&6; }
5164ac_res=$ac_cv_search_io_setup
5165if test "$ac_res" != no; then :
5166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5167
5168fi
5169
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005170for ac_header in sys/shm.h
5171do :
5172 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005173if test "x$ac_cv_header_sys_shm_h" = xyes; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005174 cat >>confdefs.h <<_ACEOF
5175#define HAVE_SYS_SHM_H 1
5176_ACEOF
5177
nick.j.sanderseea0aac2010-03-12 03:35:04 +00005178fi
5179
5180done
5181
nick.j.sandersaeef0912013-01-07 20:07:28 +00005182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
5183$as_echo_n "checking for library containing shm_open... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005184if ${ac_cv_search_shm_open+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005185 $as_echo_n "(cached) " >&6
5186else
5187 ac_func_search_save_LIBS=$LIBS
5188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189/* end confdefs.h. */
5190
5191/* Override any GCC internal prototype to avoid an error.
5192 Use char because int might match the return type of a GCC
5193 builtin and then its argument prototype would still apply. */
5194#ifdef __cplusplus
5195extern "C"
5196#endif
5197char shm_open ();
5198int
5199main ()
5200{
5201return shm_open ();
5202 ;
5203 return 0;
5204}
5205_ACEOF
5206for ac_lib in '' rt; do
5207 if test -z "$ac_lib"; then
5208 ac_res="none required"
5209 else
5210 ac_res=-l$ac_lib
5211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5212 fi
5213 if ac_fn_c_try_link "$LINENO"; then :
5214 ac_cv_search_shm_open=$ac_res
5215fi
5216rm -f core conftest.err conftest.$ac_objext \
5217 conftest$ac_exeext
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005218 if ${ac_cv_search_shm_open+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005219 break
5220fi
5221done
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005222if ${ac_cv_search_shm_open+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005223
5224else
5225 ac_cv_search_shm_open=no
5226fi
5227rm conftest.$ac_ext
5228LIBS=$ac_func_search_save_LIBS
5229fi
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
5231$as_echo "$ac_cv_search_shm_open" >&6; }
5232ac_res=$ac_cv_search_shm_open
5233if test "$ac_res" != no; then :
5234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5235
5236fi
5237
nick.j.sanderseea0aac2010-03-12 03:35:04 +00005238
nick.j.sandersef1c9352013-01-09 09:10:08 +00005239
menderico4861bb82009-09-29 00:31:36 +00005240# Checks for typedefs, structures, and compiler characteristics.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5242$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005243if ${ac_cv_header_stdbool_h+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005244 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005245else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005247/* end confdefs.h. */
5248
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005249 #include <stdbool.h>
5250 #ifndef bool
5251 "error: bool is not defined"
5252 #endif
5253 #ifndef false
5254 "error: false is not defined"
5255 #endif
5256 #if false
5257 "error: false is not 0"
5258 #endif
5259 #ifndef true
5260 "error: true is not defined"
5261 #endif
5262 #if true != 1
5263 "error: true is not 1"
5264 #endif
5265 #ifndef __bool_true_false_are_defined
5266 "error: __bool_true_false_are_defined is not defined"
5267 #endif
menderico4861bb82009-09-29 00:31:36 +00005268
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005269 struct s { _Bool s: 1; _Bool t; } s;
menderico4861bb82009-09-29 00:31:36 +00005270
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005271 char a[true == 1 ? 1 : -1];
5272 char b[false == 0 ? 1 : -1];
5273 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5274 char d[(bool) 0.5 == true ? 1 : -1];
5275 /* See body of main program for 'e'. */
5276 char f[(_Bool) 0.0 == false ? 1 : -1];
5277 char g[true];
5278 char h[sizeof (_Bool)];
5279 char i[sizeof s.t];
5280 enum { j = false, k = true, l = false * true, m = true * 256 };
5281 /* The following fails for
5282 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5283 _Bool n[m];
5284 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5285 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5286 /* Catch a bug in an HP-UX C compiler. See
5287 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5288 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5289 */
5290 _Bool q = true;
5291 _Bool *pq = &q;
menderico4861bb82009-09-29 00:31:36 +00005292
5293int
5294main ()
5295{
5296
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005297 bool e = &s;
5298 *pq |= q;
5299 *pq |= ! q;
5300 /* Refer to every declared value, to avoid compiler optimizations. */
5301 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5302 + !m + !n + !o + !p + !q + !pq);
menderico4861bb82009-09-29 00:31:36 +00005303
5304 ;
5305 return 0;
5306}
5307_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005308if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005309 ac_cv_header_stdbool_h=yes
5310else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005311 ac_cv_header_stdbool_h=no
menderico4861bb82009-09-29 00:31:36 +00005312fi
menderico4861bb82009-09-29 00:31:36 +00005313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5316$as_echo "$ac_cv_header_stdbool_h" >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005317 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5318if test "x$ac_cv_type__Bool" = xyes; then :
menderico4861bb82009-09-29 00:31:36 +00005319
5320cat >>confdefs.h <<_ACEOF
5321#define HAVE__BOOL 1
5322_ACEOF
5323
5324
5325fi
5326
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005327
menderico4861bb82009-09-29 00:31:36 +00005328if test $ac_cv_header_stdbool_h = yes; then
5329
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005330$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005331
5332fi
5333
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5335$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005336if ${ac_cv_c_const+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005337 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005338else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005340/* end confdefs.h. */
5341
5342int
5343main ()
5344{
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005345
menderico4861bb82009-09-29 00:31:36 +00005346#ifndef __cplusplus
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005347 /* Ultrix mips cc rejects this sort of thing. */
menderico4861bb82009-09-29 00:31:36 +00005348 typedef int charset[2];
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005349 const charset cs = { 0, 0 };
menderico4861bb82009-09-29 00:31:36 +00005350 /* SunOS 4.1.1 cc rejects this. */
5351 char const *const *pcpcc;
5352 char **ppc;
5353 /* NEC SVR4.0.2 mips cc rejects this. */
5354 struct point {int x, y;};
5355 static struct point const zero = {0,0};
5356 /* AIX XL C 1.02.0.0 rejects this.
5357 It does not let you subtract one const X* pointer from another in
5358 an arm of an if-expression whose if-part is not a constant
5359 expression */
5360 const char *g = "string";
5361 pcpcc = &g + (g ? g-g : 0);
5362 /* HPUX 7.0 cc rejects these. */
5363 ++pcpcc;
5364 ppc = (char**) pcpcc;
5365 pcpcc = (char const *const *) ppc;
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005366 { /* SCO 3.2v4 cc rejects this sort of thing. */
5367 char tx;
5368 char *t = &tx;
menderico4861bb82009-09-29 00:31:36 +00005369 char const *s = 0 ? (char *) 0 : (char const *) 0;
5370
5371 *t++ = 0;
5372 if (s) return 0;
5373 }
5374 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5375 int x[] = {25, 17};
5376 const int *foo = &x[0];
5377 ++foo;
5378 }
5379 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5380 typedef const int *iptr;
5381 iptr p = 0;
5382 ++p;
5383 }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005384 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
menderico4861bb82009-09-29 00:31:36 +00005385 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005386 struct s { int j; const int *ap[3]; } bx;
5387 struct s *b = &bx; b->j = 5;
menderico4861bb82009-09-29 00:31:36 +00005388 }
5389 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5390 const int foo = 10;
5391 if (!foo) return 0;
5392 }
5393 return !cs[0] && !zero.x;
5394#endif
5395
5396 ;
5397 return 0;
5398}
5399_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005400if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005401 ac_cv_c_const=yes
5402else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005403 ac_cv_c_const=no
menderico4861bb82009-09-29 00:31:36 +00005404fi
menderico4861bb82009-09-29 00:31:36 +00005405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5408$as_echo "$ac_cv_c_const" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005409if test $ac_cv_c_const = no; then
5410
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005411$as_echo "#define const /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005412
5413fi
5414
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5416$as_echo_n "checking for inline... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005417if ${ac_cv_c_inline+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005418 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005419else
5420 ac_cv_c_inline=no
5421for ac_kw in inline __inline__ __inline; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005423/* end confdefs.h. */
5424#ifndef __cplusplus
5425typedef int foo_t;
5426static $ac_kw foo_t static_foo () {return 0; }
5427$ac_kw foo_t foo () {return 0; }
5428#endif
5429
5430_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005431if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005432 ac_cv_c_inline=$ac_kw
menderico4861bb82009-09-29 00:31:36 +00005433fi
menderico4861bb82009-09-29 00:31:36 +00005434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 test "$ac_cv_c_inline" != no && break
5436done
5437
5438fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5440$as_echo "$ac_cv_c_inline" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005441
5442case $ac_cv_c_inline in
5443 inline | yes) ;;
5444 *)
5445 case $ac_cv_c_inline in
5446 no) ac_val=;;
5447 *) ac_val=$ac_cv_c_inline;;
5448 esac
5449 cat >>confdefs.h <<_ACEOF
5450#ifndef __cplusplus
5451#define inline $ac_val
5452#endif
5453_ACEOF
5454 ;;
5455esac
5456
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005457ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005458if test "x$ac_cv_type_pid_t" = xyes; then :
menderico4861bb82009-09-29 00:31:36 +00005459
menderico4861bb82009-09-29 00:31:36 +00005460else
5461
5462cat >>confdefs.h <<_ACEOF
5463#define pid_t int
5464_ACEOF
5465
5466fi
5467
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5469$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005470if ${ac_cv_c_restrict+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005471 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005472else
5473 ac_cv_c_restrict=no
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005474 # The order here caters to the fact that C++ does not require restrict.
5475 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005477/* end confdefs.h. */
5478typedef int * int_ptr;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005479 int foo (int_ptr $ac_kw ip) {
5480 return ip[0];
menderico4861bb82009-09-29 00:31:36 +00005481 }
5482int
5483main ()
5484{
5485int s[1];
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005486 int * $ac_kw t = s;
5487 t[0] = 0;
5488 return foo(t)
menderico4861bb82009-09-29 00:31:36 +00005489 ;
5490 return 0;
5491}
5492_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005493if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005494 ac_cv_c_restrict=$ac_kw
menderico4861bb82009-09-29 00:31:36 +00005495fi
menderico4861bb82009-09-29 00:31:36 +00005496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 test "$ac_cv_c_restrict" != no && break
5498 done
5499
5500fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5502$as_echo "$ac_cv_c_restrict" >&6; }
5503
menderico4861bb82009-09-29 00:31:36 +00005504 case $ac_cv_c_restrict in
5505 restrict) ;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005506 no) $as_echo "#define restrict /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005507 ;;
5508 *) cat >>confdefs.h <<_ACEOF
5509#define restrict $ac_cv_c_restrict
5510_ACEOF
5511 ;;
5512 esac
5513
nick.j.sandersaeef0912013-01-07 20:07:28 +00005514ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005515if test "x$ac_cv_type_size_t" = xyes; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005516
5517else
5518
5519cat >>confdefs.h <<_ACEOF
5520#define size_t unsigned int
5521_ACEOF
5522
5523fi
5524
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005525ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005526if test "x$ac_cv_type_ssize_t" = xyes; then :
menderico4861bb82009-09-29 00:31:36 +00005527
menderico4861bb82009-09-29 00:31:36 +00005528else
5529
5530cat >>confdefs.h <<_ACEOF
5531#define ssize_t int
5532_ACEOF
5533
5534fi
5535
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5537$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005538if ${ac_cv_header_time+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005539 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005540else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005542/* end confdefs.h. */
5543#include <sys/types.h>
5544#include <sys/time.h>
5545#include <time.h>
5546
5547int
5548main ()
5549{
5550if ((struct tm *) 0)
5551return 0;
5552 ;
5553 return 0;
5554}
5555_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005556if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005557 ac_cv_header_time=yes
5558else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005559 ac_cv_header_time=no
menderico4861bb82009-09-29 00:31:36 +00005560fi
menderico4861bb82009-09-29 00:31:36 +00005561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5564$as_echo "$ac_cv_header_time" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005565if test $ac_cv_header_time = yes; then
5566
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005567$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005568
5569fi
5570
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005571ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5572case $ac_cv_c_uint16_t in #(
menderico4861bb82009-09-29 00:31:36 +00005573 no|yes) ;; #(
5574 *)
5575
5576
5577cat >>confdefs.h <<_ACEOF
5578#define uint16_t $ac_cv_c_uint16_t
5579_ACEOF
5580;;
5581 esac
5582
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5584$as_echo_n "checking for working volatile... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005585if ${ac_cv_c_volatile+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005586 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005587else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005589/* end confdefs.h. */
5590
5591int
5592main ()
5593{
5594
5595volatile int x;
5596int * volatile y = (int *) 0;
5597return !x && !y;
5598 ;
5599 return 0;
5600}
5601_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005602if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005603 ac_cv_c_volatile=yes
5604else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005605 ac_cv_c_volatile=no
menderico4861bb82009-09-29 00:31:36 +00005606fi
menderico4861bb82009-09-29 00:31:36 +00005607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5610$as_echo "$ac_cv_c_volatile" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005611if test $ac_cv_c_volatile = no; then
5612
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005613$as_echo "#define volatile /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005614
5615fi
5616
5617
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00005618
menderico4861bb82009-09-29 00:31:36 +00005619# Checks for library functions.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5621$as_echo_n "checking whether closedir returns void... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005622if ${ac_cv_func_closedir_void+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005623 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005624else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005625 if test "$cross_compiling" = yes; then :
menderico4861bb82009-09-29 00:31:36 +00005626 ac_cv_func_closedir_void=yes
5627else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005629/* end confdefs.h. */
5630$ac_includes_default
5631#include <$ac_header_dirent>
5632#ifndef __cplusplus
5633int closedir ();
5634#endif
5635
5636int
5637main ()
5638{
5639return closedir (opendir (".")) != 0;
5640 ;
5641 return 0;
5642}
5643_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005644if ac_fn_c_try_run "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005645 ac_cv_func_closedir_void=no
5646else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005647 ac_cv_func_closedir_void=yes
menderico4861bb82009-09-29 00:31:36 +00005648fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5650 conftest.$ac_objext conftest.beam conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005651fi
5652
menderico4861bb82009-09-29 00:31:36 +00005653fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5655$as_echo "$ac_cv_func_closedir_void" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005656if test $ac_cv_func_closedir_void = yes; then
5657
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005658$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005659
5660fi
5661
5662if test $ac_cv_c_compiler_gnu = yes; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5664$as_echo_n "checking whether $CC needs -traditional... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005665if ${ac_cv_prog_gcc_traditional+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005666 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005667else
5668 ac_pattern="Autoconf.*'x'"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005670/* end confdefs.h. */
5671#include <sgtty.h>
5672Autoconf TIOCGETP
5673_ACEOF
5674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005675 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
menderico4861bb82009-09-29 00:31:36 +00005676 ac_cv_prog_gcc_traditional=yes
5677else
5678 ac_cv_prog_gcc_traditional=no
5679fi
5680rm -f conftest*
5681
5682
5683 if test $ac_cv_prog_gcc_traditional = no; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005685/* end confdefs.h. */
5686#include <termio.h>
5687Autoconf TCGETA
5688_ACEOF
5689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005690 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
menderico4861bb82009-09-29 00:31:36 +00005691 ac_cv_prog_gcc_traditional=yes
5692fi
5693rm -f conftest*
5694
5695 fi
5696fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5698$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005699 if test $ac_cv_prog_gcc_traditional = yes; then
5700 CC="$CC -traditional"
5701 fi
5702fi
5703
menderico4861bb82009-09-29 00:31:36 +00005704for ac_header in sys/select.h sys/socket.h
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005705do :
5706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5707ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005708if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
menderico4861bb82009-09-29 00:31:36 +00005709 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005710#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00005711_ACEOF
5712
5713fi
5714
5715done
5716
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
5718$as_echo_n "checking types of arguments for select... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005719if ${ac_cv_func_select_args+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005720 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005721else
5722 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
5723 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
5724 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005726/* end confdefs.h. */
5727$ac_includes_default
5728#ifdef HAVE_SYS_SELECT_H
5729# include <sys/select.h>
5730#endif
5731#ifdef HAVE_SYS_SOCKET_H
5732# include <sys/socket.h>
5733#endif
5734
5735int
5736main ()
5737{
5738extern int select ($ac_arg1,
5739 $ac_arg234, $ac_arg234, $ac_arg234,
5740 $ac_arg5);
5741 ;
5742 return 0;
5743}
5744_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005745if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005746 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
menderico4861bb82009-09-29 00:31:36 +00005747fi
menderico4861bb82009-09-29 00:31:36 +00005748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 done
5750 done
5751done
5752# Provide a safe default value.
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005753: "${ac_cv_func_select_args=int,int *,struct timeval *}"
menderico4861bb82009-09-29 00:31:36 +00005754
5755fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
5757$as_echo "$ac_cv_func_select_args" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005758ac_save_IFS=$IFS; IFS=','
5759set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5760IFS=$ac_save_IFS
5761shift
5762
5763cat >>confdefs.h <<_ACEOF
5764#define SELECT_TYPE_ARG1 $1
5765_ACEOF
5766
5767
5768cat >>confdefs.h <<_ACEOF
5769#define SELECT_TYPE_ARG234 ($2)
5770_ACEOF
5771
5772
5773cat >>confdefs.h <<_ACEOF
5774#define SELECT_TYPE_ARG5 ($3)
5775_ACEOF
5776
5777rm -f conftest*
5778
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5780$as_echo_n "checking return type of signal handlers... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005781if ${ac_cv_type_signal+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005782 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005783else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005785/* end confdefs.h. */
5786#include <sys/types.h>
5787#include <signal.h>
5788
5789int
5790main ()
5791{
5792return *(signal (0, 0)) (0) == 1;
5793 ;
5794 return 0;
5795}
5796_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005797if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005798 ac_cv_type_signal=int
5799else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005800 ac_cv_type_signal=void
menderico4861bb82009-09-29 00:31:36 +00005801fi
menderico4861bb82009-09-29 00:31:36 +00005802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5805$as_echo "$ac_cv_type_signal" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005806
5807cat >>confdefs.h <<_ACEOF
5808#define RETSIGTYPE $ac_cv_type_signal
5809_ACEOF
5810
5811
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005812ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005813if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005814 ac_have_decl=1
menderico4861bb82009-09-29 00:31:36 +00005815else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005816 ac_have_decl=0
menderico4861bb82009-09-29 00:31:36 +00005817fi
5818
menderico4861bb82009-09-29 00:31:36 +00005819cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005820#define HAVE_DECL_STRERROR_R $ac_have_decl
menderico4861bb82009-09-29 00:31:36 +00005821_ACEOF
5822
menderico4861bb82009-09-29 00:31:36 +00005823for ac_func in strerror_r
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005824do :
5825 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005826if test "x$ac_cv_func_strerror_r" = xyes; then :
menderico4861bb82009-09-29 00:31:36 +00005827 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005828#define HAVE_STRERROR_R 1
menderico4861bb82009-09-29 00:31:36 +00005829_ACEOF
5830
5831fi
5832done
5833
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
5835$as_echo_n "checking whether strerror_r returns char *... " >&6; }
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005836if ${ac_cv_func_strerror_r_char_p+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005837 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005838else
5839
5840 ac_cv_func_strerror_r_char_p=no
5841 if test $ac_cv_have_decl_strerror_r = yes; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005843/* end confdefs.h. */
5844$ac_includes_default
5845int
5846main ()
5847{
5848
5849 char buf[100];
5850 char x = *strerror_r (0, buf, sizeof buf);
5851 char *p = strerror_r (0, buf, sizeof buf);
5852 return !p || x;
5853
5854 ;
5855 return 0;
5856}
5857_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005858if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005859 ac_cv_func_strerror_r_char_p=yes
menderico4861bb82009-09-29 00:31:36 +00005860fi
menderico4861bb82009-09-29 00:31:36 +00005861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 else
5863 # strerror_r is not declared. Choose between
5864 # systems that have relatively inaccessible declarations for the
5865 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5866 # former has a strerror_r that returns char*, while the latter
5867 # has a strerror_r that returns `int'.
5868 # This test should segfault on the DEC system.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005869 if test "$cross_compiling" = yes; then :
menderico4861bb82009-09-29 00:31:36 +00005870 :
5871else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005873/* end confdefs.h. */
5874$ac_includes_default
5875 extern char *strerror_r ();
5876int
5877main ()
5878{
5879char buf[100];
5880 char x = *strerror_r (0, buf, sizeof buf);
5881 return ! isalpha (x);
5882 ;
5883 return 0;
5884}
5885_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005886if ac_fn_c_try_run "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005887 ac_cv_func_strerror_r_char_p=yes
menderico4861bb82009-09-29 00:31:36 +00005888fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5890 conftest.$ac_objext conftest.beam conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005891fi
5892
menderico4861bb82009-09-29 00:31:36 +00005893 fi
5894
5895fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
5897$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005898if test $ac_cv_func_strerror_r_char_p = yes; then
5899
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005900$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005901
5902fi
5903
menderico4861bb82009-09-29 00:31:36 +00005904for ac_func in vprintf
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005905do :
5906 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005907if test "x$ac_cv_func_vprintf" = xyes; then :
menderico4861bb82009-09-29 00:31:36 +00005908 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005909#define HAVE_VPRINTF 1
menderico4861bb82009-09-29 00:31:36 +00005910_ACEOF
5911
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005912ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005913if test "x$ac_cv_func__doprnt" = xyes; then :
menderico4861bb82009-09-29 00:31:36 +00005914
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005915$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005916
5917fi
5918
5919fi
5920done
5921
5922
nick.j.sandersaeef0912013-01-07 20:07:28 +00005923for ac_func in ftruncate gettimeofday memset munmap select socket strtol strtoull
5924do :
5925 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5926ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005927if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005928 cat >>confdefs.h <<_ACEOF
5929#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5930_ACEOF
5931
5932fi
5933done
5934
5935for ac_func in mmap64 posix_memalign rand_r sched_getaffinity
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005936do :
5937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5938ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07005939if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
menderico4861bb82009-09-29 00:31:36 +00005940 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005941#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00005942_ACEOF
5943
5944fi
5945done
5946
5947
5948ac_config_files="$ac_config_files Makefile src/Makefile"
5949
5950cat >confcache <<\_ACEOF
5951# This file is a shell script that caches the results of configure
5952# tests run on this system so they can be shared between configure
5953# scripts and configure runs, see configure's option --config-cache.
5954# It is not useful on other systems. If it contains results you don't
5955# want to keep, you may remove or edit it.
5956#
5957# config.status only pays attention to the cache file if you give it
5958# the --recheck option to rerun configure.
5959#
5960# `ac_cv_env_foo' variables (set or unset) will be overridden when
5961# loading this file, other *unset* `ac_cv_foo' will be assigned the
5962# following values.
5963
5964_ACEOF
5965
5966# The following way of writing the cache mishandles newlines in values,
5967# but we know of no workaround that is simple, portable, and efficient.
5968# So, we kill variables containing newlines.
5969# Ultrix sh set writes to stderr and can't be redirected directly,
5970# and sets the high bit in the cache file unless we assign to the vars.
5971(
5972 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5973 eval ac_val=\$$ac_var
5974 case $ac_val in #(
5975 *${as_nl}*)
5976 case $ac_var in #(
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005977 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5978$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
menderico4861bb82009-09-29 00:31:36 +00005979 esac
5980 case $ac_var in #(
5981 _ | IFS | as_nl) ;; #(
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5983 *) { eval $ac_var=; unset $ac_var;} ;;
menderico4861bb82009-09-29 00:31:36 +00005984 esac ;;
5985 esac
5986 done
5987
5988 (set) 2>&1 |
5989 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5990 *${as_nl}ac_space=\ *)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005991 # `set' does not quote correctly, so add quotes: double-quote
5992 # substitution turns \\\\ into \\, and sed turns \\ into \.
menderico4861bb82009-09-29 00:31:36 +00005993 sed -n \
5994 "s/'/'\\\\''/g;
5995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5996 ;; #(
5997 *)
5998 # `set' quotes correctly as required by POSIX, so do not add quotes.
5999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6000 ;;
6001 esac |
6002 sort
6003) |
6004 sed '
6005 /^ac_cv_env_/b end
6006 t clear
6007 :clear
6008 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6009 t end
6010 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6011 :end' >>confcache
6012if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6013 if test -w "$cache_file"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006014 if test "x$cache_file" != "x/dev/null"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006015 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6016$as_echo "$as_me: updating cache $cache_file" >&6;}
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006017 if test ! -f "$cache_file" || test -h "$cache_file"; then
6018 cat confcache >"$cache_file"
6019 else
6020 case $cache_file in #(
6021 */* | ?:*)
6022 mv -f confcache "$cache_file"$$ &&
6023 mv -f "$cache_file"$$ "$cache_file" ;; #(
6024 *)
6025 mv -f confcache "$cache_file" ;;
6026 esac
6027 fi
6028 fi
menderico4861bb82009-09-29 00:31:36 +00006029 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006030 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6031$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00006032 fi
6033fi
6034rm -f confcache
6035
6036test "x$prefix" = xNONE && prefix=$ac_default_prefix
6037# Let make expand exec_prefix.
6038test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6039
6040DEFS=-DHAVE_CONFIG_H
6041
6042ac_libobjs=
6043ac_ltlibobjs=
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006044U=
menderico4861bb82009-09-29 00:31:36 +00006045for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6046 # 1. Remove the extension, and $U if already installed.
6047 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006048 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
menderico4861bb82009-09-29 00:31:36 +00006049 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6050 # will be set to the directory where LIBOBJS objects are built.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006051 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6052 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
menderico4861bb82009-09-29 00:31:36 +00006053done
6054LIBOBJS=$ac_libobjs
6055
6056LTLIBOBJS=$ac_ltlibobjs
6057
6058
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006059 if test -n "$EXEEXT"; then
6060 am__EXEEXT_TRUE=
6061 am__EXEEXT_FALSE='#'
6062else
6063 am__EXEEXT_TRUE='#'
6064 am__EXEEXT_FALSE=
6065fi
6066
menderico4861bb82009-09-29 00:31:36 +00006067if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006068 as_fn_error $? "conditional \"AMDEP\" was never defined.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006069Usually this means the macro was only invoked conditionally." "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006070fi
6071if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006072 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006073Usually this means the macro was only invoked conditionally." "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006074fi
6075if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006076 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006077Usually this means the macro was only invoked conditionally." "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006078fi
6079
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006080: "${CONFIG_STATUS=./config.status}"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006081ac_write_fail=0
menderico4861bb82009-09-29 00:31:36 +00006082ac_clean_files_save=$ac_clean_files
6083ac_clean_files="$ac_clean_files $CONFIG_STATUS"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006084{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6085$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6086as_write_fail=0
6087cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006088#! $SHELL
6089# Generated by $as_me.
6090# Run this file to recreate the current configuration.
6091# Compiler output produced by configure, useful for debugging
6092# configure, is in config.log if it exists.
6093
6094debug=false
6095ac_cs_recheck=false
6096ac_cs_silent=false
menderico4861bb82009-09-29 00:31:36 +00006097
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006098SHELL=\${CONFIG_SHELL-$SHELL}
6099export SHELL
6100_ASEOF
6101cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6102## -------------------- ##
6103## M4sh Initialization. ##
6104## -------------------- ##
menderico4861bb82009-09-29 00:31:36 +00006105
6106# Be more Bourne compatible
6107DUALCASE=1; export DUALCASE # for MKS sh
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006108if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
menderico4861bb82009-09-29 00:31:36 +00006109 emulate sh
6110 NULLCMD=:
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006111 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
menderico4861bb82009-09-29 00:31:36 +00006112 # is contrary to our usage. Disable this feature.
6113 alias -g '${1+"$@"}'='"$@"'
6114 setopt NO_GLOB_SUBST
6115else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006116 case `(set -o) 2>/dev/null` in #(
6117 *posix*) :
6118 set -o posix ;; #(
6119 *) :
6120 ;;
menderico4861bb82009-09-29 00:31:36 +00006121esac
menderico4861bb82009-09-29 00:31:36 +00006122fi
6123
6124
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006125as_nl='
6126'
6127export as_nl
6128# Printing a long string crashes Solaris 7 /usr/bin/printf.
6129as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6130as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6131as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6132# Prefer a ksh shell builtin over an external printf program on Solaris,
6133# but without wasting forks for bash or zsh.
6134if test -z "$BASH_VERSION$ZSH_VERSION" \
6135 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6136 as_echo='print -r --'
6137 as_echo_n='print -rn --'
6138elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6139 as_echo='printf %s\n'
6140 as_echo_n='printf %s'
6141else
6142 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6143 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6144 as_echo_n='/usr/ucb/echo -n'
6145 else
6146 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6147 as_echo_n_body='eval
6148 arg=$1;
6149 case $arg in #(
6150 *"$as_nl"*)
6151 expr "X$arg" : "X\\(.*\\)$as_nl";
6152 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6153 esac;
6154 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6155 '
6156 export as_echo_n_body
6157 as_echo_n='sh -c $as_echo_n_body as_echo'
6158 fi
6159 export as_echo_body
6160 as_echo='sh -c $as_echo_body as_echo'
6161fi
menderico4861bb82009-09-29 00:31:36 +00006162
6163# The user is always right.
6164if test "${PATH_SEPARATOR+set}" != set; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006165 PATH_SEPARATOR=:
6166 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6167 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6168 PATH_SEPARATOR=';'
6169 }
menderico4861bb82009-09-29 00:31:36 +00006170fi
6171
6172
6173# IFS
6174# We need space, tab and new line, in precisely that order. Quoting is
6175# there to prevent editors from complaining about space-tab.
6176# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6177# splitting by setting IFS to empty value.)
menderico4861bb82009-09-29 00:31:36 +00006178IFS=" "" $as_nl"
6179
6180# Find who we are. Look in the path if we contain no directory separator.
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006181as_myself=
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006182case $0 in #((
menderico4861bb82009-09-29 00:31:36 +00006183 *[\\/]* ) as_myself=$0 ;;
6184 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006189 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6190 done
menderico4861bb82009-09-29 00:31:36 +00006191IFS=$as_save_IFS
6192
6193 ;;
6194esac
6195# We did not find ourselves, most probably we were run as `sh COMMAND'
6196# in which case we are not to be found in the path.
6197if test "x$as_myself" = x; then
6198 as_myself=$0
6199fi
6200if test ! -f "$as_myself"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006201 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6202 exit 1
menderico4861bb82009-09-29 00:31:36 +00006203fi
6204
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006205# Unset variables that we do not need and which cause bugs (e.g. in
6206# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6207# suppresses any "Segmentation fault" message there. '((' could
6208# trigger a bug in pdksh 5.2.14.
6209for as_var in BASH_ENV ENV MAIL MAILPATH
6210do eval test x\${$as_var+set} = xset \
6211 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
menderico4861bb82009-09-29 00:31:36 +00006212done
6213PS1='$ '
6214PS2='> '
6215PS4='+ '
6216
6217# NLS nuisances.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006218LC_ALL=C
6219export LC_ALL
6220LANGUAGE=C
6221export LANGUAGE
menderico4861bb82009-09-29 00:31:36 +00006222
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006223# CDPATH.
6224(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6225
6226
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006227# as_fn_error STATUS ERROR [LINENO LOG_FD]
6228# ----------------------------------------
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006229# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6230# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006231# script with STATUS, using 1 if that was 0.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006232as_fn_error ()
6233{
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006234 as_status=$1; test $as_status -eq 0 && as_status=1
6235 if test "$4"; then
6236 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6237 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006238 fi
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006239 $as_echo "$as_me: error: $2" >&2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006240 as_fn_exit $as_status
6241} # as_fn_error
6242
6243
6244# as_fn_set_status STATUS
6245# -----------------------
6246# Set $? to STATUS, without forking.
6247as_fn_set_status ()
6248{
6249 return $1
6250} # as_fn_set_status
6251
6252# as_fn_exit STATUS
6253# -----------------
6254# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6255as_fn_exit ()
6256{
6257 set +e
6258 as_fn_set_status $1
6259 exit $1
6260} # as_fn_exit
6261
6262# as_fn_unset VAR
6263# ---------------
6264# Portably unset VAR.
6265as_fn_unset ()
6266{
6267 { eval $1=; unset $1;}
6268}
6269as_unset=as_fn_unset
6270# as_fn_append VAR VALUE
6271# ----------------------
6272# Append the text in VALUE to the end of the definition contained in VAR. Take
6273# advantage of any shell optimizations that allow amortized linear growth over
6274# repeated appends, instead of the typical quadratic growth present in naive
6275# implementations.
6276if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6277 eval 'as_fn_append ()
6278 {
6279 eval $1+=\$2
6280 }'
6281else
6282 as_fn_append ()
6283 {
6284 eval $1=\$$1\$2
6285 }
6286fi # as_fn_append
6287
6288# as_fn_arith ARG...
6289# ------------------
6290# Perform arithmetic evaluation on the ARGs, and store the result in the
6291# global $as_val. Take advantage of shells that can avoid forks. The arguments
6292# must be portable across $(()) and expr.
6293if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6294 eval 'as_fn_arith ()
6295 {
6296 as_val=$(( $* ))
6297 }'
6298else
6299 as_fn_arith ()
6300 {
6301 as_val=`expr "$@" || test $? -eq 1`
6302 }
6303fi # as_fn_arith
6304
6305
menderico4861bb82009-09-29 00:31:36 +00006306if expr a : '\(a\)' >/dev/null 2>&1 &&
6307 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6308 as_expr=expr
6309else
6310 as_expr=false
6311fi
6312
6313if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6314 as_basename=basename
6315else
6316 as_basename=false
6317fi
6318
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006319if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6320 as_dirname=dirname
6321else
6322 as_dirname=false
6323fi
menderico4861bb82009-09-29 00:31:36 +00006324
menderico4861bb82009-09-29 00:31:36 +00006325as_me=`$as_basename -- "$0" ||
6326$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6327 X"$0" : 'X\(//\)$' \| \
6328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006329$as_echo X/"$0" |
menderico4861bb82009-09-29 00:31:36 +00006330 sed '/^.*\/\([^/][^/]*\)\/*$/{
6331 s//\1/
6332 q
6333 }
6334 /^X\/\(\/\/\)$/{
6335 s//\1/
6336 q
6337 }
6338 /^X\/\(\/\).*/{
6339 s//\1/
6340 q
6341 }
6342 s/.*/./; q'`
6343
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006344# Avoid depending upon Character Ranges.
6345as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6346as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6347as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6348as_cr_digits='0123456789'
6349as_cr_alnum=$as_cr_Letters$as_cr_digits
menderico4861bb82009-09-29 00:31:36 +00006350
6351ECHO_C= ECHO_N= ECHO_T=
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006352case `echo -n x` in #(((((
menderico4861bb82009-09-29 00:31:36 +00006353-n*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006354 case `echo 'xy\c'` in
menderico4861bb82009-09-29 00:31:36 +00006355 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006356 xy) ECHO_C='\c';;
6357 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6358 ECHO_T=' ';;
menderico4861bb82009-09-29 00:31:36 +00006359 esac;;
6360*)
6361 ECHO_N='-n';;
6362esac
6363
menderico4861bb82009-09-29 00:31:36 +00006364rm -f conf$$ conf$$.exe conf$$.file
6365if test -d conf$$.dir; then
6366 rm -f conf$$.dir/conf$$.file
6367else
6368 rm -f conf$$.dir
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006369 mkdir conf$$.dir 2>/dev/null
menderico4861bb82009-09-29 00:31:36 +00006370fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006371if (echo >conf$$.file) 2>/dev/null; then
6372 if ln -s conf$$.file conf$$ 2>/dev/null; then
6373 as_ln_s='ln -s'
6374 # ... but there are two gotchas:
6375 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6376 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006377 # In both cases, we have to default to `cp -pR'.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006378 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006379 as_ln_s='cp -pR'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006380 elif ln conf$$.file conf$$ 2>/dev/null; then
6381 as_ln_s=ln
6382 else
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006383 as_ln_s='cp -pR'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006384 fi
menderico4861bb82009-09-29 00:31:36 +00006385else
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006386 as_ln_s='cp -pR'
menderico4861bb82009-09-29 00:31:36 +00006387fi
6388rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6389rmdir conf$$.dir 2>/dev/null
6390
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006391
6392# as_fn_mkdir_p
6393# -------------
6394# Create "$as_dir" as a directory, including parents if necessary.
6395as_fn_mkdir_p ()
6396{
6397
6398 case $as_dir in #(
6399 -*) as_dir=./$as_dir;;
6400 esac
6401 test -d "$as_dir" || eval $as_mkdir_p || {
6402 as_dirs=
6403 while :; do
6404 case $as_dir in #(
6405 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6406 *) as_qdir=$as_dir;;
6407 esac
6408 as_dirs="'$as_qdir' $as_dirs"
6409 as_dir=`$as_dirname -- "$as_dir" ||
6410$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6411 X"$as_dir" : 'X\(//\)[^/]' \| \
6412 X"$as_dir" : 'X\(//\)$' \| \
6413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6414$as_echo X"$as_dir" |
6415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6416 s//\1/
6417 q
6418 }
6419 /^X\(\/\/\)[^/].*/{
6420 s//\1/
6421 q
6422 }
6423 /^X\(\/\/\)$/{
6424 s//\1/
6425 q
6426 }
6427 /^X\(\/\).*/{
6428 s//\1/
6429 q
6430 }
6431 s/.*/./; q'`
6432 test -d "$as_dir" && break
6433 done
6434 test -z "$as_dirs" || eval "mkdir $as_dirs"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006435 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006436
6437
6438} # as_fn_mkdir_p
menderico4861bb82009-09-29 00:31:36 +00006439if mkdir -p . 2>/dev/null; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006440 as_mkdir_p='mkdir -p "$as_dir"'
menderico4861bb82009-09-29 00:31:36 +00006441else
6442 test -d ./-p && rmdir ./-p
6443 as_mkdir_p=false
6444fi
6445
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006446
6447# as_fn_executable_p FILE
6448# -----------------------
6449# Test if FILE is an executable regular file.
6450as_fn_executable_p ()
6451{
6452 test -f "$1" && test -x "$1"
6453} # as_fn_executable_p
6454as_test_x='test -x'
6455as_executable_p=as_fn_executable_p
menderico4861bb82009-09-29 00:31:36 +00006456
6457# Sed expression to map a string onto a valid CPP name.
6458as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6459
6460# Sed expression to map a string onto a valid variable name.
6461as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6462
6463
6464exec 6>&1
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006465## ----------------------------------- ##
6466## Main body of $CONFIG_STATUS script. ##
6467## ----------------------------------- ##
6468_ASEOF
6469test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006470
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6472# Save the log message, to keep $0 and so on meaningful, and to
menderico4861bb82009-09-29 00:31:36 +00006473# report actual input values of CONFIG_FILES etc. instead of their
6474# values after options handling.
6475ac_log="
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006476This file was extended by stressapptest $as_me 1.0.9_autoconf, which was
6477generated by GNU Autoconf 2.69. Invocation command line was
menderico4861bb82009-09-29 00:31:36 +00006478
6479 CONFIG_FILES = $CONFIG_FILES
6480 CONFIG_HEADERS = $CONFIG_HEADERS
6481 CONFIG_LINKS = $CONFIG_LINKS
6482 CONFIG_COMMANDS = $CONFIG_COMMANDS
6483 $ $0 $@
6484
6485on `(hostname || uname -n) 2>/dev/null | sed 1q`
6486"
6487
6488_ACEOF
6489
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006490case $ac_config_files in *"
6491"*) set x $ac_config_files; shift; ac_config_files=$*;;
6492esac
6493
6494case $ac_config_headers in *"
6495"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6496esac
6497
6498
6499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006500# Files that config.status was made for.
6501config_files="$ac_config_files"
6502config_headers="$ac_config_headers"
6503config_commands="$ac_config_commands"
6504
6505_ACEOF
6506
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006508ac_cs_usage="\
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006509\`$as_me' instantiates files and other configuration actions
6510from templates according to the current configuration. Unless the files
6511and actions are specified as TAGs, all are instantiated by default.
menderico4861bb82009-09-29 00:31:36 +00006512
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006513Usage: $0 [OPTION]... [TAG]...
menderico4861bb82009-09-29 00:31:36 +00006514
6515 -h, --help print this help, then exit
6516 -V, --version print version number and configuration settings, then exit
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006517 --config print configuration, then exit
6518 -q, --quiet, --silent
6519 do not print progress messages
menderico4861bb82009-09-29 00:31:36 +00006520 -d, --debug don't remove temporary files
6521 --recheck update $as_me by reconfiguring in the same conditions
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006522 --file=FILE[:TEMPLATE]
6523 instantiate the configuration file FILE
6524 --header=FILE[:TEMPLATE]
6525 instantiate the configuration header FILE
menderico4861bb82009-09-29 00:31:36 +00006526
6527Configuration files:
6528$config_files
6529
6530Configuration headers:
6531$config_headers
6532
6533Configuration commands:
6534$config_commands
6535
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006536Report bugs to <opensource@google.com>."
menderico4861bb82009-09-29 00:31:36 +00006537
6538_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6540ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
menderico4861bb82009-09-29 00:31:36 +00006541ac_cs_version="\\
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006542stressapptest config.status 1.0.9_autoconf
6543configured by $0, generated by GNU Autoconf 2.69,
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006544 with options \\"\$ac_cs_config\\"
menderico4861bb82009-09-29 00:31:36 +00006545
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006546Copyright (C) 2012 Free Software Foundation, Inc.
menderico4861bb82009-09-29 00:31:36 +00006547This config.status script is free software; the Free Software Foundation
6548gives unlimited permission to copy, distribute and modify it."
6549
6550ac_pwd='$ac_pwd'
6551srcdir='$srcdir'
6552INSTALL='$INSTALL'
6553MKDIR_P='$MKDIR_P'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006554AWK='$AWK'
6555test -n "\$AWK" || AWK=awk
menderico4861bb82009-09-29 00:31:36 +00006556_ACEOF
6557
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6559# The default lists apply if the user does not specify any file.
menderico4861bb82009-09-29 00:31:36 +00006560ac_need_defaults=:
6561while test $# != 0
6562do
6563 case $1 in
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006564 --*=?*)
menderico4861bb82009-09-29 00:31:36 +00006565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6566 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6567 ac_shift=:
6568 ;;
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006569 --*=)
6570 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6571 ac_optarg=
6572 ac_shift=:
6573 ;;
menderico4861bb82009-09-29 00:31:36 +00006574 *)
6575 ac_option=$1
6576 ac_optarg=$2
6577 ac_shift=shift
6578 ;;
6579 esac
6580
6581 case $ac_option in
6582 # Handling of the options.
6583 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6584 ac_cs_recheck=: ;;
6585 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006586 $as_echo "$ac_cs_version"; exit ;;
6587 --config | --confi | --conf | --con | --co | --c )
6588 $as_echo "$ac_cs_config"; exit ;;
menderico4861bb82009-09-29 00:31:36 +00006589 --debug | --debu | --deb | --de | --d | -d )
6590 debug=: ;;
6591 --file | --fil | --fi | --f )
6592 $ac_shift
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006593 case $ac_optarg in
6594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006595 '') as_fn_error $? "missing file argument" ;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006596 esac
6597 as_fn_append CONFIG_FILES " '$ac_optarg'"
menderico4861bb82009-09-29 00:31:36 +00006598 ac_need_defaults=false;;
6599 --header | --heade | --head | --hea )
6600 $ac_shift
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006601 case $ac_optarg in
6602 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6603 esac
6604 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
menderico4861bb82009-09-29 00:31:36 +00006605 ac_need_defaults=false;;
6606 --he | --h)
6607 # Conflict between --help and --header
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006608 as_fn_error $? "ambiguous option: \`$1'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006609Try \`$0 --help' for more information.";;
menderico4861bb82009-09-29 00:31:36 +00006610 --help | --hel | -h )
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006611 $as_echo "$ac_cs_usage"; exit ;;
menderico4861bb82009-09-29 00:31:36 +00006612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6613 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6614 ac_cs_silent=: ;;
6615
6616 # This is an error.
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006617 -*) as_fn_error $? "unrecognized option: \`$1'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006618Try \`$0 --help' for more information." ;;
menderico4861bb82009-09-29 00:31:36 +00006619
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006620 *) as_fn_append ac_config_targets " $1"
menderico4861bb82009-09-29 00:31:36 +00006621 ac_need_defaults=false ;;
6622
6623 esac
6624 shift
6625done
6626
6627ac_configure_extra_args=
6628
6629if $ac_cs_silent; then
6630 exec 6>/dev/null
6631 ac_configure_extra_args="$ac_configure_extra_args --silent"
6632fi
6633
6634_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006636if \$ac_cs_recheck; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006637 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006638 shift
6639 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6640 CONFIG_SHELL='$SHELL'
menderico4861bb82009-09-29 00:31:36 +00006641 export CONFIG_SHELL
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006642 exec "\$@"
menderico4861bb82009-09-29 00:31:36 +00006643fi
6644
6645_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006647exec 5>>config.log
6648{
6649 echo
6650 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6651## Running $as_me. ##
6652_ASBOX
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006653 $as_echo "$ac_log"
menderico4861bb82009-09-29 00:31:36 +00006654} >&5
6655
6656_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006658#
6659# INIT-COMMANDS
6660#
6661AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6662
6663_ACEOF
6664
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006666
6667# Handling of arguments.
6668for ac_config_target in $ac_config_targets
6669do
6670 case $ac_config_target in
6671 "src/stressapptest_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/stressapptest_config.h" ;;
6672 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6673 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6674 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6675
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006676 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00006677 esac
6678done
6679
6680
6681# If the user did not use the arguments to specify the items to instantiate,
6682# then the envvar interface is used. Set only those that are not.
6683# We use the long form for the default assignment because of an extremely
6684# bizarre bug on SunOS 4.1.3.
6685if $ac_need_defaults; then
6686 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6687 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6688 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6689fi
6690
6691# Have a temporary directory for convenience. Make it in the build tree
6692# simply because there is no reason against having it here, and in addition,
6693# creating and moving files from /tmp can sometimes cause problems.
6694# Hook for its removal unless debugging.
6695# Note that there is a small window in which the directory will not be cleaned:
6696# after its creation but before its name has been assigned to `$tmp'.
6697$debug ||
6698{
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006699 tmp= ac_tmp=
menderico4861bb82009-09-29 00:31:36 +00006700 trap 'exit_status=$?
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006701 : "${ac_tmp:=$tmp}"
6702 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
menderico4861bb82009-09-29 00:31:36 +00006703' 0
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006704 trap 'as_fn_exit 1' 1 2 13 15
menderico4861bb82009-09-29 00:31:36 +00006705}
6706# Create a (secure) tmp directory for tmp files.
6707
6708{
6709 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006710 test -d "$tmp"
menderico4861bb82009-09-29 00:31:36 +00006711} ||
6712{
6713 tmp=./conf$$-$RANDOM
6714 (umask 077 && mkdir "$tmp")
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006715} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6716ac_tmp=$tmp
menderico4861bb82009-09-29 00:31:36 +00006717
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006718# Set up the scripts for CONFIG_FILES section.
6719# No need to generate them if there are no CONFIG_FILES.
6720# This happens for instance with `./config.status config.h'.
menderico4861bb82009-09-29 00:31:36 +00006721if test -n "$CONFIG_FILES"; then
6722
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006723
6724ac_cr=`echo X | tr X '\015'`
6725# On cygwin, bash can eat \r inside `` if the user requested igncr.
6726# But we know of no other shell where ac_cr would be empty at this
6727# point, so we can use a bashism as a fallback.
6728if test "x$ac_cr" = x; then
6729 eval ac_cr=\$\'\\r\'
6730fi
6731ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6732if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006733 ac_cs_awk_cr='\\r'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006734else
6735 ac_cs_awk_cr=$ac_cr
6736fi
6737
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006738echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
menderico4861bb82009-09-29 00:31:36 +00006739_ACEOF
6740
6741
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006742{
6743 echo "cat >conf$$subs.awk <<_ACEOF" &&
6744 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6745 echo "_ACEOF"
6746} >conf$$subs.sh ||
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6748ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
menderico4861bb82009-09-29 00:31:36 +00006749ac_delim='%!_!# '
6750for ac_last_try in false false false false false :; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006751 . ./conf$$subs.sh ||
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006753
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006754 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6755 if test $ac_delim_n = $ac_delim_num; then
menderico4861bb82009-09-29 00:31:36 +00006756 break
6757 elif $ac_last_try; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006759 else
6760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6761 fi
6762done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006763rm -f conf$$subs.sh
menderico4861bb82009-09-29 00:31:36 +00006764
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006766cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
menderico4861bb82009-09-29 00:31:36 +00006767_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006768sed -n '
6769h
6770s/^/S["/; s/!.*/"]=/
6771p
6772g
6773s/^[^!]*!//
6774:repl
6775t repl
6776s/'"$ac_delim"'$//
6777t delim
6778:nl
6779h
6780s/\(.\{148\}\)..*/\1/
6781t more1
6782s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6783p
6784n
6785b repl
6786:more1
6787s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6788p
6789g
6790s/.\{148\}//
6791t nl
6792:delim
6793h
6794s/\(.\{148\}\)..*/\1/
6795t more2
6796s/["\\]/\\&/g; s/^/"/; s/$/"/
6797p
6798b
6799:more2
6800s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6801p
6802g
6803s/.\{148\}//
6804t delim
6805' <conf$$subs.awk | sed '
6806/^[^""]/{
6807 N
6808 s/\n//
6809}
6810' >>$CONFIG_STATUS || ac_write_fail=1
6811rm -f conf$$subs.awk
6812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6813_ACAWK
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006814cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006815 for (key in S) S_is_set[key] = 1
6816 FS = ""
6817
6818}
6819{
6820 line = $ 0
6821 nfields = split(line, field, "@")
6822 substed = 0
6823 len = length(field[1])
6824 for (i = 2; i < nfields; i++) {
6825 key = field[i]
6826 keylen = length(key)
6827 if (S_is_set[key]) {
6828 value = S[key]
6829 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6830 len += length(value) + length(field[++i])
6831 substed = 1
6832 } else
6833 len += 1 + keylen
6834 }
6835
6836 print line
6837}
6838
6839_ACAWK
menderico4861bb82009-09-29 00:31:36 +00006840_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6842if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6843 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6844else
6845 cat
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006846fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6847 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006848_ACEOF
6849
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006850# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6851# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
menderico4861bb82009-09-29 00:31:36 +00006852# trailing colons and then remove the whole line if VPATH becomes empty
6853# (actually we leave an empty line to preserve line numbers).
6854if test "x$srcdir" = x.; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006855 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6856h
6857s///
6858s/^/:/
6859s/[ ]*$/:/
6860s/:\$(srcdir):/:/g
6861s/:\${srcdir}:/:/g
6862s/:@srcdir@:/:/g
6863s/^:*//
menderico4861bb82009-09-29 00:31:36 +00006864s/:*$//
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006865x
6866s/\(=[ ]*\).*/\1/
6867G
6868s/\n//
menderico4861bb82009-09-29 00:31:36 +00006869s/^[^=]*=[ ]*$//
6870}'
6871fi
6872
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006874fi # test -n "$CONFIG_FILES"
6875
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006876# Set up the scripts for CONFIG_HEADERS section.
6877# No need to generate them if there are no CONFIG_HEADERS.
6878# This happens for instance with `./config.status Makefile'.
6879if test -n "$CONFIG_HEADERS"; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006880cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006881BEGIN {
6882_ACEOF
menderico4861bb82009-09-29 00:31:36 +00006883
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006884# Transform confdefs.h into an awk script `defines.awk', embedded as
6885# here-document in config.status, that substitutes the proper values into
6886# config.h.in to produce config.h.
6887
6888# Create a delimiter string that does not exist in confdefs.h, to ease
6889# handling of long lines.
6890ac_delim='%!_!# '
6891for ac_last_try in false false :; do
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006892 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6893 if test -z "$ac_tt"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006894 break
6895 elif $ac_last_try; then
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006896 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006897 else
6898 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6899 fi
6900done
6901
6902# For the awk script, D is an array of macro values keyed by name,
6903# likewise P contains macro parameters if any. Preserve backslash
6904# newline sequences.
6905
6906ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6907sed -n '
6908s/.\{148\}/&'"$ac_delim"'/g
6909t rset
6910:rset
6911s/^[ ]*#[ ]*define[ ][ ]*/ /
6912t def
6913d
6914:def
6915s/\\$//
6916t bsnl
6917s/["\\]/\\&/g
6918s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6919D["\1"]=" \3"/p
6920s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6921d
6922:bsnl
6923s/["\\]/\\&/g
6924s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6925D["\1"]=" \3\\\\\\n"\\/p
6926t cont
6927s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6928t cont
6929d
6930:cont
6931n
6932s/.\{148\}/&'"$ac_delim"'/g
6933t clear
6934:clear
6935s/\\$//
6936t bsnlc
6937s/["\\]/\\&/g; s/^/"/; s/$/"/p
6938d
6939:bsnlc
6940s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6941b cont
6942' <confdefs.h | sed '
6943s/'"$ac_delim"'/"\\\
6944"/g' >>$CONFIG_STATUS || ac_write_fail=1
6945
6946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6947 for (key in D) D_is_set[key] = 1
6948 FS = ""
6949}
6950/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6951 line = \$ 0
6952 split(line, arg, " ")
6953 if (arg[1] == "#") {
6954 defundef = arg[2]
6955 mac1 = arg[3]
6956 } else {
6957 defundef = substr(arg[1], 2)
6958 mac1 = arg[2]
6959 }
6960 split(mac1, mac2, "(") #)
6961 macro = mac2[1]
6962 prefix = substr(line, 1, index(line, defundef) - 1)
6963 if (D_is_set[macro]) {
6964 # Preserve the white space surrounding the "#".
6965 print prefix "define", macro P[macro] D[macro]
6966 next
6967 } else {
6968 # Replace #undef with comments. This is necessary, for example,
6969 # in the case of _POSIX_SOURCE, which is predefined and required
6970 # on some systems where configure will not decide to define it.
6971 if (defundef == "undef") {
6972 print "/*", prefix defundef, macro, "*/"
6973 next
6974 }
6975 }
6976}
6977{ print }
6978_ACAWK
6979_ACEOF
6980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006981 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006982fi # test -n "$CONFIG_HEADERS"
6983
6984
6985eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6986shift
6987for ac_tag
menderico4861bb82009-09-29 00:31:36 +00006988do
6989 case $ac_tag in
6990 :[FHLC]) ac_mode=$ac_tag; continue;;
6991 esac
6992 case $ac_mode$ac_tag in
6993 :[FHL]*:*);;
Nick Sandersfb72e5e2018-08-09 17:01:01 -07006994 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00006995 :[FH]-) ac_tag=-:-;;
6996 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6997 esac
6998 ac_save_IFS=$IFS
6999 IFS=:
7000 set x $ac_tag
7001 IFS=$ac_save_IFS
7002 shift
7003 ac_file=$1
7004 shift
7005
7006 case $ac_mode in
7007 :L) ac_source=$1;;
7008 :[FH])
7009 ac_file_inputs=
7010 for ac_f
7011 do
7012 case $ac_f in
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007013 -) ac_f="$ac_tmp/stdin";;
menderico4861bb82009-09-29 00:31:36 +00007014 *) # Look for the file first in the build tree, then in the source tree
7015 # (if the path is not absolute). The absolute path cannot be DOS-style,
7016 # because $ac_f cannot contain `:'.
7017 test -f "$ac_f" ||
7018 case $ac_f in
7019 [\\/$]*) false;;
7020 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7021 esac ||
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007022 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00007023 esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007024 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7025 as_fn_append ac_file_inputs " '$ac_f'"
menderico4861bb82009-09-29 00:31:36 +00007026 done
7027
7028 # Let's still pretend it is `configure' which instantiates (i.e., don't
7029 # use $as_me), people would be surprised to read:
7030 # /* config.h. Generated by config.status. */
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007031 configure_input='Generated from '`
7032 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7033 `' by configure.'
menderico4861bb82009-09-29 00:31:36 +00007034 if test x"$ac_file" != x-; then
7035 configure_input="$ac_file. $configure_input"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007036 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7037$as_echo "$as_me: creating $ac_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00007038 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007039 # Neutralize special characters interpreted by sed in replacement strings.
7040 case $configure_input in #(
7041 *\&* | *\|* | *\\* )
7042 ac_sed_conf_input=`$as_echo "$configure_input" |
7043 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7044 *) ac_sed_conf_input=$configure_input;;
7045 esac
menderico4861bb82009-09-29 00:31:36 +00007046
7047 case $ac_tag in
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007048 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
menderico4861bb82009-09-29 00:31:36 +00007050 esac
7051 ;;
7052 esac
7053
7054 ac_dir=`$as_dirname -- "$ac_file" ||
7055$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7056 X"$ac_file" : 'X\(//\)[^/]' \| \
7057 X"$ac_file" : 'X\(//\)$' \| \
7058 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007059$as_echo X"$ac_file" |
menderico4861bb82009-09-29 00:31:36 +00007060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7061 s//\1/
7062 q
7063 }
7064 /^X\(\/\/\)[^/].*/{
7065 s//\1/
7066 q
7067 }
7068 /^X\(\/\/\)$/{
7069 s//\1/
7070 q
7071 }
7072 /^X\(\/\).*/{
7073 s//\1/
7074 q
7075 }
7076 s/.*/./; q'`
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007077 as_dir="$ac_dir"; as_fn_mkdir_p
menderico4861bb82009-09-29 00:31:36 +00007078 ac_builddir=.
7079
7080case "$ac_dir" in
7081.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7082*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007083 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
menderico4861bb82009-09-29 00:31:36 +00007084 # A ".." for each directory in $ac_dir_suffix.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007085 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
menderico4861bb82009-09-29 00:31:36 +00007086 case $ac_top_builddir_sub in
7087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7089 esac ;;
7090esac
7091ac_abs_top_builddir=$ac_pwd
7092ac_abs_builddir=$ac_pwd$ac_dir_suffix
7093# for backward compatibility:
7094ac_top_builddir=$ac_top_build_prefix
7095
7096case $srcdir in
7097 .) # We are building in place.
7098 ac_srcdir=.
7099 ac_top_srcdir=$ac_top_builddir_sub
7100 ac_abs_top_srcdir=$ac_pwd ;;
7101 [\\/]* | ?:[\\/]* ) # Absolute name.
7102 ac_srcdir=$srcdir$ac_dir_suffix;
7103 ac_top_srcdir=$srcdir
7104 ac_abs_top_srcdir=$srcdir ;;
7105 *) # Relative name.
7106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7107 ac_top_srcdir=$ac_top_build_prefix$srcdir
7108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7109esac
7110ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7111
7112
7113 case $ac_mode in
7114 :F)
7115 #
7116 # CONFIG_FILE
7117 #
7118
7119 case $INSTALL in
7120 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7121 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7122 esac
7123 ac_MKDIR_P=$MKDIR_P
7124 case $MKDIR_P in
7125 [\\/$]* | ?:[\\/]* ) ;;
7126 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7127 esac
7128_ACEOF
7129
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00007131# If the template does not know about datarootdir, expand it.
7132# FIXME: This hack should be removed a few years after 2.60.
7133ac_datarootdir_hack=; ac_datarootdir_seen=
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007134ac_sed_dataroot='
7135/datarootdir/ {
menderico4861bb82009-09-29 00:31:36 +00007136 p
7137 q
7138}
7139/@datadir@/p
7140/@docdir@/p
7141/@infodir@/p
7142/@localedir@/p
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007143/@mandir@/p'
7144case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
menderico4861bb82009-09-29 00:31:36 +00007145*datarootdir*) ac_datarootdir_seen=yes;;
7146*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7148$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
menderico4861bb82009-09-29 00:31:36 +00007149_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00007151 ac_datarootdir_hack='
7152 s&@datadir@&$datadir&g
7153 s&@docdir@&$docdir&g
7154 s&@infodir@&$infodir&g
7155 s&@localedir@&$localedir&g
7156 s&@mandir@&$mandir&g
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007157 s&\\\${datarootdir}&$datarootdir&g' ;;
menderico4861bb82009-09-29 00:31:36 +00007158esac
7159_ACEOF
7160
7161# Neutralize VPATH when `$srcdir' = `.'.
7162# Shell code in configure.ac might set extrasub.
7163# FIXME: do we really want to maintain this feature?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7165ac_sed_extra="$ac_vpsub
menderico4861bb82009-09-29 00:31:36 +00007166$extrasub
7167_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00007169:t
7170/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007171s|@configure_input@|$ac_sed_conf_input|;t t
menderico4861bb82009-09-29 00:31:36 +00007172s&@top_builddir@&$ac_top_builddir_sub&;t t
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007173s&@top_build_prefix@&$ac_top_build_prefix&;t t
menderico4861bb82009-09-29 00:31:36 +00007174s&@srcdir@&$ac_srcdir&;t t
7175s&@abs_srcdir@&$ac_abs_srcdir&;t t
7176s&@top_srcdir@&$ac_top_srcdir&;t t
7177s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7178s&@builddir@&$ac_builddir&;t t
7179s&@abs_builddir@&$ac_abs_builddir&;t t
7180s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7181s&@INSTALL@&$ac_INSTALL&;t t
7182s&@MKDIR_P@&$ac_MKDIR_P&;t t
7183$ac_datarootdir_hack
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007184"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007185eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7186 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00007187
7188test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007189 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7190 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7191 "$ac_tmp/out"`; test -z "$ac_out"; } &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007193which seems to be undefined. Please make sure it is defined" >&5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007194$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007195which seems to be undefined. Please make sure it is defined" >&2;}
menderico4861bb82009-09-29 00:31:36 +00007196
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007197 rm -f "$ac_tmp/stdin"
menderico4861bb82009-09-29 00:31:36 +00007198 case $ac_file in
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007199 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7200 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007201 esac \
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00007203 ;;
7204 :H)
7205 #
7206 # CONFIG_HEADER
7207 #
menderico4861bb82009-09-29 00:31:36 +00007208 if test x"$ac_file" != x-; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007209 {
7210 $as_echo "/* $configure_input */" \
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007211 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7212 } >"$ac_tmp/config.h" \
7213 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7214 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007215 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7216$as_echo "$as_me: $ac_file is unchanged" >&6;}
menderico4861bb82009-09-29 00:31:36 +00007217 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007218 rm -f "$ac_file"
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007219 mv "$ac_tmp/config.h" "$ac_file" \
7220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00007221 fi
7222 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007223 $as_echo "/* $configure_input */" \
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007224 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7225 || as_fn_error $? "could not create -" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00007226 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007227# Compute "$ac_file"'s index in $config_headers.
7228_am_arg="$ac_file"
menderico4861bb82009-09-29 00:31:36 +00007229_am_stamp_count=1
7230for _am_header in $config_headers :; do
7231 case $_am_header in
7232 $_am_arg | $_am_arg:* )
7233 break ;;
7234 * )
7235 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7236 esac
7237done
7238echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7239$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7240 X"$_am_arg" : 'X\(//\)[^/]' \| \
7241 X"$_am_arg" : 'X\(//\)$' \| \
7242 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007243$as_echo X"$_am_arg" |
menderico4861bb82009-09-29 00:31:36 +00007244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7245 s//\1/
7246 q
7247 }
7248 /^X\(\/\/\)[^/].*/{
7249 s//\1/
7250 q
7251 }
7252 /^X\(\/\/\)$/{
7253 s//\1/
7254 q
7255 }
7256 /^X\(\/\).*/{
7257 s//\1/
7258 q
7259 }
7260 s/.*/./; q'`/stamp-h$_am_stamp_count
7261 ;;
7262
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007263 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7264$as_echo "$as_me: executing $ac_file commands" >&6;}
menderico4861bb82009-09-29 00:31:36 +00007265 ;;
7266 esac
7267
7268
7269 case $ac_file$ac_mode in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007270 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7271 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7272 # are listed without --file. Let's play safe and only enable the eval
7273 # if we detect the quoting.
7274 case $CONFIG_FILES in
7275 *\'*) eval set x "$CONFIG_FILES" ;;
7276 *) set x $CONFIG_FILES ;;
7277 esac
7278 shift
7279 for mf
7280 do
7281 # Strip MF so we end up with the name of the file.
7282 mf=`echo "$mf" | sed -e 's/:.*$//'`
7283 # Check whether this is an Automake generated Makefile or not.
7284 # We used to match only the files named `Makefile.in', but
7285 # some people rename them; so instead we look at the file content.
7286 # Grep'ing the first line is not enough: some people post-process
7287 # each Makefile.in and add a new line on top of each file to say so.
7288 # Grep'ing the whole file is not good either: AIX grep has a line
7289 # limit of 2048, but all sed's we know have understand at least 4000.
7290 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7291 dirpart=`$as_dirname -- "$mf" ||
menderico4861bb82009-09-29 00:31:36 +00007292$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7293 X"$mf" : 'X\(//\)[^/]' \| \
7294 X"$mf" : 'X\(//\)$' \| \
7295 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007296$as_echo X"$mf" |
menderico4861bb82009-09-29 00:31:36 +00007297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7298 s//\1/
7299 q
7300 }
7301 /^X\(\/\/\)[^/].*/{
7302 s//\1/
7303 q
7304 }
7305 /^X\(\/\/\)$/{
7306 s//\1/
7307 q
7308 }
7309 /^X\(\/\).*/{
7310 s//\1/
7311 q
7312 }
7313 s/.*/./; q'`
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007314 else
7315 continue
7316 fi
7317 # Extract the definition of DEPDIR, am__include, and am__quote
7318 # from the Makefile without running `make'.
7319 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7320 test -z "$DEPDIR" && continue
7321 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7322 test -z "am__include" && continue
7323 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7324 # When using ansi2knr, U may be empty or an underscore; expand it
7325 U=`sed -n 's/^U = //p' < "$mf"`
7326 # Find all dependency output files, they are included files with
7327 # $(DEPDIR) in their names. We invoke sed twice because it is the
7328 # simplest approach to changing $(DEPDIR) to its actual value in the
7329 # expansion.
7330 for file in `sed -n "
7331 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7332 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7333 # Make sure the directory exists.
7334 test -f "$dirpart/$file" && continue
7335 fdir=`$as_dirname -- "$file" ||
menderico4861bb82009-09-29 00:31:36 +00007336$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7337 X"$file" : 'X\(//\)[^/]' \| \
7338 X"$file" : 'X\(//\)$' \| \
7339 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007340$as_echo X"$file" |
menderico4861bb82009-09-29 00:31:36 +00007341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7342 s//\1/
7343 q
7344 }
7345 /^X\(\/\/\)[^/].*/{
7346 s//\1/
7347 q
7348 }
7349 /^X\(\/\/\)$/{
7350 s//\1/
7351 q
7352 }
7353 /^X\(\/\).*/{
7354 s//\1/
7355 q
7356 }
7357 s/.*/./; q'`
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007358 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7359 # echo "creating $dirpart/$file"
7360 echo '# dummy' > "$dirpart/$file"
menderico4861bb82009-09-29 00:31:36 +00007361 done
menderico4861bb82009-09-29 00:31:36 +00007362 done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007363}
menderico4861bb82009-09-29 00:31:36 +00007364 ;;
7365
7366 esac
7367done # for ac_tag
7368
7369
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007370as_fn_exit 0
menderico4861bb82009-09-29 00:31:36 +00007371_ACEOF
menderico4861bb82009-09-29 00:31:36 +00007372ac_clean_files=$ac_clean_files_save
7373
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007374test $ac_write_fail = 0 ||
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007375 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007376
menderico4861bb82009-09-29 00:31:36 +00007377
7378# configure is writing to config.log, and then calls config.status.
7379# config.status does its own redirection, appending to config.log.
7380# Unfortunately, on DOS this fails, as config.log is still kept open
7381# by configure, so config.status won't be able to write to it; its
7382# output is simply discarded. So we exec the FD to /dev/null,
7383# effectively closing config.log, so it can be properly (re)opened and
7384# appended to by config.status. When coming back to configure, we
7385# need to make the FD available again.
7386if test "$no_create" != yes; then
7387 ac_cs_success=:
7388 ac_config_status_args=
7389 test "$silent" = yes &&
7390 ac_config_status_args="$ac_config_status_args --quiet"
7391 exec 5>/dev/null
7392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7393 exec 5>>config.log
7394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7395 # would make configure fail if this is the last instruction.
Nick Sandersfb72e5e2018-08-09 17:01:01 -07007396 $ac_cs_success || as_fn_exit 1
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007397fi
7398if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7400$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
menderico4861bb82009-09-29 00:31:36 +00007401fi
7402