blob: 4b95cddb0eed89fda9070671153d54d3d1ce8712 [file] [log] [blame]
menderico4861bb82009-09-29 00:31:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
nick.j.sanders318caaf2014-02-11 09:02:48 +00003# Generated by GNU Autoconf 2.68 for stressapptest 1.0.7_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#
menderico4861bb82009-09-29 00:31:36 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
nick.j.sanders7a6b2522014-02-11 08:53:31 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
nick.j.sanders3f2289d2011-11-11 00:34:37 +000011#
12#
menderico4861bb82009-09-29 00:31:36 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
nick.j.sanders3f2289d2011-11-11 00:34:37 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
menderico4861bb82009-09-29 00:31:36 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
nick.j.sanders3f2289d2011-11-11 00:34:37 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
menderico4861bb82009-09-29 00:31:36 +000022 emulate sh
23 NULLCMD=:
nick.j.sanders3f2289d2011-11-11 00:34:37 +000024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
menderico4861bb82009-09-29 00:31:36 +000025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
nick.j.sanders3f2289d2011-11-11 00:34:37 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
menderico4861bb82009-09-29 00:31:36 +000034esac
menderico4861bb82009-09-29 00:31:36 +000035fi
36
37
nick.j.sanders3f2289d2011-11-11 00:34:37 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
menderico4861bb82009-09-29 00:31:36 +000075
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +000078 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
menderico4861bb82009-09-29 00:31:36 +000083fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
menderico4861bb82009-09-29 00:31:36 +000091IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
nick.j.sanders7a6b2522014-02-11 08:53:31 +000094as_myself=
nick.j.sanders3f2289d2011-11-11 00:34:37 +000095case $0 in #((
menderico4861bb82009-09-29 00:31:36 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
menderico4861bb82009-09-29 00:31:36 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
menderico4861bb82009-09-29 00:31:36 +0000116fi
117
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
menderico4861bb82009-09-29 00:31:36 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
menderico4861bb82009-09-29 00:31:36 +0000135
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000220 # Preserve -v and -x to the replacement shell.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: opensource@google.com about your system, including any
243$0: error possibly output before this message. Then install
244$0: a modern shell, or manually run the script under such a
245$0: shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000374# script with STATUS, using 1 if that was 0.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000375as_fn_error ()
376{
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000381 fi
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000382 $as_echo "$as_me: error: $2" >&2
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000383 as_fn_exit $as_status
384} # as_fn_error
385
menderico4861bb82009-09-29 00:31:36 +0000386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
menderico4861bb82009-09-29 00:31:36 +0000404
menderico4861bb82009-09-29 00:31:36 +0000405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000409$as_echo X/"$0" |
menderico4861bb82009-09-29 00:31:36 +0000410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
menderico4861bb82009-09-29 00:31:36 +0000430
431
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
menderico4861bb82009-09-29 00:31:36 +0000437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000453 { $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 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
menderico4861bb82009-09-29 00:31:36 +0000463ECHO_C= ECHO_N= ECHO_T=
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000464case `echo -n x` in #(((((
menderico4861bb82009-09-29 00:31:36 +0000465-n*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000466 case `echo 'xy\c'` in
menderico4861bb82009-09-29 00:31:36 +0000467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
menderico4861bb82009-09-29 00:31:36 +0000471 esac;;
472*)
473 ECHO_N='-n';;
474esac
475
menderico4861bb82009-09-29 00:31:36 +0000476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000481 mkdir conf$$.dir 2>/dev/null
menderico4861bb82009-09-29 00:31:36 +0000482fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
menderico4861bb82009-09-29 00:31:36 +0000495 as_ln_s='cp -p'
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000496 fi
menderico4861bb82009-09-29 00:31:36 +0000497else
498 as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000504 as_mkdir_p='mkdir -p "$as_dir"'
menderico4861bb82009-09-29 00:31:36 +0000505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000521 test -d "$1/.";
menderico4861bb82009-09-29 00:31:36 +0000522 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000523 case $1 in #(
524 -*)set "./$1";;
menderico4861bb82009-09-29 00:31:36 +0000525 esac;
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
menderico4861bb82009-09-29 00:31:36 +0000527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000540test -n "$DJDIR" || exec 7<&0 </dev/null
541exec 6>&1
menderico4861bb82009-09-29 00:31:36 +0000542
543# Name of the host.
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000544# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
menderico4861bb82009-09-29 00:31:36 +0000545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
menderico4861bb82009-09-29 00:31:36 +0000559
560# Identity of this package.
561PACKAGE_NAME='stressapptest'
562PACKAGE_TARNAME='stressapptest'
nick.j.sanders318caaf2014-02-11 09:02:48 +0000563PACKAGE_VERSION='1.0.7_autoconf'
564PACKAGE_STRING='stressapptest 1.0.7_autoconf'
nick.j.sandersb4c2ce32009-10-27 05:56:42 +0000565PACKAGE_BUGREPORT='opensource@google.com'
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000566PACKAGE_URL=''
menderico4861bb82009-09-29 00:31:36 +0000567
568ac_unique_file="src/"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583# include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588# include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000605ac_subst_vars='am__EXEEXT_FALSE
606am__EXEEXT_TRUE
607LTLIBOBJS
menderico4861bb82009-09-29 00:31:36 +0000608LIBOBJS
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000609EGREP
610GREP
611CPP
612am__fastdepCC_FALSE
613am__fastdepCC_TRUE
614CCDEPMODE
615ac_ct_CC
616CFLAGS
617CC
618am__fastdepCXX_FALSE
619am__fastdepCXX_TRUE
620CXXDEPMODE
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000621am__nodep
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000622AMDEPBACKSLASH
623AMDEP_FALSE
624AMDEP_TRUE
625am__quote
626am__include
627DEPDIR
628OBJEXT
629EXEEXT
630ac_ct_CXX
631CPPFLAGS
632LDFLAGS
633CXXFLAGS
634CXX
635am__untar
636am__tar
637AMTAR
638am__leading_dot
639SET_MAKE
640AWK
641mkdir_p
642MKDIR_P
643INSTALL_STRIP_PROGRAM
644STRIP
645install_sh
646MAKEINFO
647AUTOHEADER
648AUTOMAKE
649AUTOCONF
650ACLOCAL
651VERSION
652PACKAGE
653CYGPATH_W
654am__isrc
655INSTALL_DATA
656INSTALL_SCRIPT
657INSTALL_PROGRAM
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000658host_os
659host_vendor
660host_cpu
661host
662build_os
663build_vendor
664build_cpu
665build
666target_alias
667host_alias
668build_alias
669LIBS
670ECHO_T
671ECHO_N
672ECHO_C
673DEFS
674mandir
675localedir
676libdir
677psdir
678pdfdir
679dvidir
680htmldir
681infodir
682docdir
683oldincludedir
684includedir
685localstatedir
686sharedstatedir
687sysconfdir
688datadir
689datarootdir
690libexecdir
691sbindir
692bindir
693program_transform_name
694prefix
695exec_prefix
696PACKAGE_URL
697PACKAGE_BUGREPORT
698PACKAGE_STRING
699PACKAGE_VERSION
700PACKAGE_TARNAME
701PACKAGE_NAME
702PATH_SEPARATOR
703SHELL'
menderico4861bb82009-09-29 00:31:36 +0000704ac_subst_files=''
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000705ac_user_opts='
706enable_option_checking
707with_static
708enable_dependency_tracking
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000709enable_default_optimizations
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000710'
menderico4861bb82009-09-29 00:31:36 +0000711 ac_precious_vars='build_alias
712host_alias
713target_alias
714CXX
715CXXFLAGS
716LDFLAGS
717LIBS
718CPPFLAGS
719CCC
720CC
721CFLAGS
722CPP'
723
724
725# Initialize some variables set by options.
726ac_init_help=
727ac_init_version=false
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000728ac_unrecognized_opts=
729ac_unrecognized_sep=
menderico4861bb82009-09-29 00:31:36 +0000730# The variables have the same names as the options, with
731# dashes changed to underlines.
732cache_file=/dev/null
733exec_prefix=NONE
734no_create=
735no_recursion=
736prefix=NONE
737program_prefix=NONE
738program_suffix=NONE
739program_transform_name=s,x,x,
740silent=
741site=
742srcdir=
743verbose=
744x_includes=NONE
745x_libraries=NONE
746
747# Installation directory options.
748# These are left unexpanded so users can "make install exec_prefix=/foo"
749# and all the variables that are supposed to be based on exec_prefix
750# by default will actually change.
751# Use braces instead of parens because sh, perl, etc. also accept them.
752# (The list follows the same order as the GNU Coding Standards.)
753bindir='${exec_prefix}/bin'
754sbindir='${exec_prefix}/sbin'
755libexecdir='${exec_prefix}/libexec'
756datarootdir='${prefix}/share'
757datadir='${datarootdir}'
758sysconfdir='${prefix}/etc'
759sharedstatedir='${prefix}/com'
760localstatedir='${prefix}/var'
761includedir='${prefix}/include'
762oldincludedir='/usr/include'
763docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
764infodir='${datarootdir}/info'
765htmldir='${docdir}'
766dvidir='${docdir}'
767pdfdir='${docdir}'
768psdir='${docdir}'
769libdir='${exec_prefix}/lib'
770localedir='${datarootdir}/locale'
771mandir='${datarootdir}/man'
772
773ac_prev=
774ac_dashdash=
775for ac_option
776do
777 # If the previous option needs an argument, assign it.
778 if test -n "$ac_prev"; then
779 eval $ac_prev=\$ac_option
780 ac_prev=
781 continue
782 fi
783
784 case $ac_option in
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000785 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 *=) ac_optarg= ;;
787 *) ac_optarg=yes ;;
menderico4861bb82009-09-29 00:31:36 +0000788 esac
789
790 # Accept the important Cygnus configure options, so we can diagnose typos.
791
792 case $ac_dashdash$ac_option in
793 --)
794 ac_dashdash=yes ;;
795
796 -bindir | --bindir | --bindi | --bind | --bin | --bi)
797 ac_prev=bindir ;;
798 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799 bindir=$ac_optarg ;;
800
801 -build | --build | --buil | --bui | --bu)
802 ac_prev=build_alias ;;
803 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804 build_alias=$ac_optarg ;;
805
806 -cache-file | --cache-file | --cache-fil | --cache-fi \
807 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808 ac_prev=cache_file ;;
809 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811 cache_file=$ac_optarg ;;
812
813 --config-cache | -C)
814 cache_file=config.cache ;;
815
816 -datadir | --datadir | --datadi | --datad)
817 ac_prev=datadir ;;
818 -datadir=* | --datadir=* | --datadi=* | --datad=*)
819 datadir=$ac_optarg ;;
820
821 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822 | --dataroo | --dataro | --datar)
823 ac_prev=datarootdir ;;
824 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826 datarootdir=$ac_optarg ;;
827
828 -disable-* | --disable-*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000829 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
menderico4861bb82009-09-29 00:31:36 +0000830 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000831 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000832 as_fn_error $? "invalid feature name: $ac_useropt"
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000833 ac_useropt_orig=$ac_useropt
834 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
835 case $ac_user_opts in
836 *"
837"enable_$ac_useropt"
838"*) ;;
839 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
840 ac_unrecognized_sep=', ';;
841 esac
842 eval enable_$ac_useropt=no ;;
menderico4861bb82009-09-29 00:31:36 +0000843
844 -docdir | --docdir | --docdi | --doc | --do)
845 ac_prev=docdir ;;
846 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 docdir=$ac_optarg ;;
848
849 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850 ac_prev=dvidir ;;
851 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 dvidir=$ac_optarg ;;
853
854 -enable-* | --enable-*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000855 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
menderico4861bb82009-09-29 00:31:36 +0000856 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
nick.j.sanders7a6b2522014-02-11 08:53:31 +0000858 as_fn_error $? "invalid feature name: $ac_useropt"
nick.j.sanders3f2289d2011-11-11 00:34:37 +0000859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
862 *"
863"enable_$ac_useropt"
864"*) ;;
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
867 esac
868 eval enable_$ac_useropt=\$ac_optarg ;;
menderico4861bb82009-09-29 00:31:36 +0000869
870 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
871 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
872 | --exec | --exe | --ex)
873 ac_prev=exec_prefix ;;
874 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
875 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
876 | --exec=* | --exe=* | --ex=*)
877 exec_prefix=$ac_optarg ;;
878
879 -gas | --gas | --ga | --g)
880 # Obsolete; use --with-gas.
881 with_gas=yes ;;
882
883 -help | --help | --hel | --he | -h)
884 ac_init_help=long ;;
885 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
886 ac_init_help=recursive ;;
887 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
888 ac_init_help=short ;;
889
890 -host | --host | --hos | --ho)
891 ac_prev=host_alias ;;
892 -host=* | --host=* | --hos=* | --ho=*)
893 host_alias=$ac_optarg ;;
894
895 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
896 ac_prev=htmldir ;;
897 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
898 | --ht=*)
899 htmldir=$ac_optarg ;;
900
901 -includedir | --includedir | --includedi | --included | --include \
902 | --includ | --inclu | --incl | --inc)
903 ac_prev=includedir ;;
904 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
905 | --includ=* | --inclu=* | --incl=* | --inc=*)
906 includedir=$ac_optarg ;;
907
908 -infodir | --infodir | --infodi | --infod | --info | --inf)
909 ac_prev=infodir ;;
910 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
911 infodir=$ac_optarg ;;
912
913 -libdir | --libdir | --libdi | --libd)
914 ac_prev=libdir ;;
915 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 libdir=$ac_optarg ;;
917
918 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
919 | --libexe | --libex | --libe)
920 ac_prev=libexecdir ;;
921 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
922 | --libexe=* | --libex=* | --libe=*)
923 libexecdir=$ac_optarg ;;
924
925 -localedir | --localedir | --localedi | --localed | --locale)
926 ac_prev=localedir ;;
927 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
928 localedir=$ac_optarg ;;
929
930 -localstatedir | --localstatedir | --localstatedi | --localstated \
931 | --localstate | --localstat | --localsta | --localst | --locals)
932 ac_prev=localstatedir ;;
933 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
934 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
935 localstatedir=$ac_optarg ;;
936
937 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
938 ac_prev=mandir ;;
939 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
940 mandir=$ac_optarg ;;
941
942 -nfp | --nfp | --nf)
943 # Obsolete; use --without-fp.
944 with_fp=no ;;
945
946 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
947 | --no-cr | --no-c | -n)
948 no_create=yes ;;
949
950 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 no_recursion=yes ;;
953
954 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
955 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
956 | --oldin | --oldi | --old | --ol | --o)
957 ac_prev=oldincludedir ;;
958 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
959 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
960 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
961 oldincludedir=$ac_optarg ;;
962
963 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
964 ac_prev=prefix ;;
965 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 prefix=$ac_optarg ;;
967
968 -program-prefix | --program-prefix | --program-prefi | --program-pref \
969 | --program-pre | --program-pr | --program-p)
970 ac_prev=program_prefix ;;
971 -program-prefix=* | --program-prefix=* | --program-prefi=* \
972 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
973 program_prefix=$ac_optarg ;;
974
975 -program-suffix | --program-suffix | --program-suffi | --program-suff \
976 | --program-suf | --program-su | --program-s)
977 ac_prev=program_suffix ;;
978 -program-suffix=* | --program-suffix=* | --program-suffi=* \
979 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
980 program_suffix=$ac_optarg ;;
981
982 -program-transform-name | --program-transform-name \
983 | --program-transform-nam | --program-transform-na \
984 | --program-transform-n | --program-transform- \
985 | --program-transform | --program-transfor \
986 | --program-transfo | --program-transf \
987 | --program-trans | --program-tran \
988 | --progr-tra | --program-tr | --program-t)
989 ac_prev=program_transform_name ;;
990 -program-transform-name=* | --program-transform-name=* \
991 | --program-transform-nam=* | --program-transform-na=* \
992 | --program-transform-n=* | --program-transform-=* \
993 | --program-transform=* | --program-transfor=* \
994 | --program-transfo=* | --program-transf=* \
995 | --program-trans=* | --program-tran=* \
996 | --progr-tra=* | --program-tr=* | --program-t=*)
997 program_transform_name=$ac_optarg ;;
998
999 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1000 ac_prev=pdfdir ;;
1001 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1002 pdfdir=$ac_optarg ;;
1003
1004 -psdir | --psdir | --psdi | --psd | --ps)
1005 ac_prev=psdir ;;
1006 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 psdir=$ac_optarg ;;
1008
1009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010 | -silent | --silent | --silen | --sile | --sil)
1011 silent=yes ;;
1012
1013 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1014 ac_prev=sbindir ;;
1015 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1016 | --sbi=* | --sb=*)
1017 sbindir=$ac_optarg ;;
1018
1019 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1020 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1021 | --sharedst | --shareds | --shared | --share | --shar \
1022 | --sha | --sh)
1023 ac_prev=sharedstatedir ;;
1024 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1025 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1026 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1027 | --sha=* | --sh=*)
1028 sharedstatedir=$ac_optarg ;;
1029
1030 -site | --site | --sit)
1031 ac_prev=site ;;
1032 -site=* | --site=* | --sit=*)
1033 site=$ac_optarg ;;
1034
1035 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1036 ac_prev=srcdir ;;
1037 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1038 srcdir=$ac_optarg ;;
1039
1040 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1041 | --syscon | --sysco | --sysc | --sys | --sy)
1042 ac_prev=sysconfdir ;;
1043 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1044 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1045 sysconfdir=$ac_optarg ;;
1046
1047 -target | --target | --targe | --targ | --tar | --ta | --t)
1048 ac_prev=target_alias ;;
1049 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1050 target_alias=$ac_optarg ;;
1051
1052 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 verbose=yes ;;
1054
1055 -version | --version | --versio | --versi | --vers | -V)
1056 ac_init_version=: ;;
1057
1058 -with-* | --with-*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
menderico4861bb82009-09-29 00:31:36 +00001060 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001062 as_fn_error $? "invalid package name: $ac_useropt"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1066 *"
1067"with_$ac_useropt"
1068"*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval with_$ac_useropt=\$ac_optarg ;;
menderico4861bb82009-09-29 00:31:36 +00001073
1074 -without-* | --without-*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001075 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
menderico4861bb82009-09-29 00:31:36 +00001076 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001078 as_fn_error $? "invalid package name: $ac_useropt"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1082 *"
1083"with_$ac_useropt"
1084"*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval with_$ac_useropt=no ;;
menderico4861bb82009-09-29 00:31:36 +00001089
1090 --x)
1091 # Obsolete; use --with-x.
1092 with_x=yes ;;
1093
1094 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1095 | --x-incl | --x-inc | --x-in | --x-i)
1096 ac_prev=x_includes ;;
1097 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1098 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1099 x_includes=$ac_optarg ;;
1100
1101 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1102 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1103 ac_prev=x_libraries ;;
1104 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1105 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1106 x_libraries=$ac_optarg ;;
1107
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001108 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1109Try \`$0 --help' for more information"
menderico4861bb82009-09-29 00:31:36 +00001110 ;;
1111
1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001115 case $ac_envvar in #(
1116 '' | [0-9]* | *[!_$as_cr_alnum]* )
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001117 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001118 esac
menderico4861bb82009-09-29 00:31:36 +00001119 eval $ac_envvar=\$ac_optarg
1120 export $ac_envvar ;;
1121
1122 *)
1123 # FIXME: should be removed in autoconf 3.0.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001124 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
menderico4861bb82009-09-29 00:31:36 +00001125 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001126 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001127 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
menderico4861bb82009-09-29 00:31:36 +00001128 ;;
1129
1130 esac
1131done
1132
1133if test -n "$ac_prev"; then
1134 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001135 as_fn_error $? "missing argument to $ac_option"
menderico4861bb82009-09-29 00:31:36 +00001136fi
1137
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001138if test -n "$ac_unrecognized_opts"; then
1139 case $enable_option_checking in
1140 no) ;;
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001141 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001142 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 esac
1144fi
1145
1146# Check all directory arguments for consistency.
menderico4861bb82009-09-29 00:31:36 +00001147for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148 datadir sysconfdir sharedstatedir localstatedir includedir \
1149 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150 libdir localedir mandir
1151do
1152 eval ac_val=\$$ac_var
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001153 # Remove trailing slashes.
1154 case $ac_val in
1155 */ )
1156 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1157 eval $ac_var=\$ac_val;;
1158 esac
1159 # Be sure to have absolute directory names.
menderico4861bb82009-09-29 00:31:36 +00001160 case $ac_val in
1161 [\\/$]* | ?:[\\/]* ) continue;;
1162 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163 esac
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001164 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
menderico4861bb82009-09-29 00:31:36 +00001165done
1166
1167# There might be people who depend on the old broken behavior: `$host'
1168# used to hold the argument of --host etc.
1169# FIXME: To remove some day.
1170build=$build_alias
1171host=$host_alias
1172target=$target_alias
1173
1174# FIXME: To remove some day.
1175if test "x$host_alias" != x; then
1176 if test "x$build_alias" = x; then
1177 cross_compiling=maybe
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001178 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1179 If a cross compiler is detected then cross compile mode will be used" >&2
menderico4861bb82009-09-29 00:31:36 +00001180 elif test "x$build_alias" != "x$host_alias"; then
1181 cross_compiling=yes
1182 fi
1183fi
1184
1185ac_tool_prefix=
1186test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187
1188test "$silent" = yes && exec 6>/dev/null
1189
1190
1191ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192ac_ls_di=`ls -di .` &&
1193ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001194 as_fn_error $? "working directory cannot be determined"
menderico4861bb82009-09-29 00:31:36 +00001195test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001196 as_fn_error $? "pwd does not report name of working directory"
menderico4861bb82009-09-29 00:31:36 +00001197
1198
1199# Find the source files, if location was not specified.
1200if test -z "$srcdir"; then
1201 ac_srcdir_defaulted=yes
1202 # Try the directory containing this script, then the parent directory.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001203 ac_confdir=`$as_dirname -- "$as_myself" ||
1204$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1205 X"$as_myself" : 'X\(//\)[^/]' \| \
1206 X"$as_myself" : 'X\(//\)$' \| \
1207 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1208$as_echo X"$as_myself" |
menderico4861bb82009-09-29 00:31:36 +00001209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\/\)[^/].*/{
1214 s//\1/
1215 q
1216 }
1217 /^X\(\/\/\)$/{
1218 s//\1/
1219 q
1220 }
1221 /^X\(\/\).*/{
1222 s//\1/
1223 q
1224 }
1225 s/.*/./; q'`
1226 srcdir=$ac_confdir
1227 if test ! -r "$srcdir/$ac_unique_file"; then
1228 srcdir=..
1229 fi
1230else
1231 ac_srcdir_defaulted=no
1232fi
1233if test ! -r "$srcdir/$ac_unique_file"; then
1234 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001235 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
menderico4861bb82009-09-29 00:31:36 +00001236fi
1237ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1238ac_abs_confdir=`(
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001239 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
menderico4861bb82009-09-29 00:31:36 +00001240 pwd)`
1241# When building in place, set srcdir=.
1242if test "$ac_abs_confdir" = "$ac_pwd"; then
1243 srcdir=.
1244fi
1245# Remove unnecessary trailing slashes from srcdir.
1246# Double slashes in file names in object file debugging info
1247# mess up M-x gdb in Emacs.
1248case $srcdir in
1249*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1250esac
1251for ac_var in $ac_precious_vars; do
1252 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_env_${ac_var}_value=\$${ac_var}
1254 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1255 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1256done
1257
1258#
1259# Report the --help message.
1260#
1261if test "$ac_init_help" = "long"; then
1262 # Omit some internal or obsolete options to make the list less imposing.
1263 # This message is too long to be a string in the A/UX 3.1 sh.
1264 cat <<_ACEOF
nick.j.sanders318caaf2014-02-11 09:02:48 +00001265\`configure' configures stressapptest 1.0.7_autoconf to adapt to many kinds of systems.
menderico4861bb82009-09-29 00:31:36 +00001266
1267Usage: $0 [OPTION]... [VAR=VALUE]...
1268
1269To assign environment variables (e.g., CC, CFLAGS...), specify them as
1270VAR=VALUE. See below for descriptions of some of the useful variables.
1271
1272Defaults for the options are specified in brackets.
1273
1274Configuration:
1275 -h, --help display this help and exit
1276 --help=short display options specific to this package
1277 --help=recursive display the short help of all the included packages
1278 -V, --version display version information and exit
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001279 -q, --quiet, --silent do not print \`checking ...' messages
menderico4861bb82009-09-29 00:31:36 +00001280 --cache-file=FILE cache test results in FILE [disabled]
1281 -C, --config-cache alias for \`--cache-file=config.cache'
1282 -n, --no-create do not create output files
1283 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1284
1285Installation directories:
1286 --prefix=PREFIX install architecture-independent files in PREFIX
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001287 [$ac_default_prefix]
menderico4861bb82009-09-29 00:31:36 +00001288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001289 [PREFIX]
menderico4861bb82009-09-29 00:31:36 +00001290
1291By default, \`make install' will install all the files in
1292\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1293an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1294for instance \`--prefix=\$HOME'.
1295
1296For better control, use the options below.
1297
1298Fine tuning of the installation directories:
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001299 --bindir=DIR user executables [EPREFIX/bin]
1300 --sbindir=DIR system admin executables [EPREFIX/sbin]
1301 --libexecdir=DIR program executables [EPREFIX/libexec]
1302 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1303 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1304 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1305 --libdir=DIR object code libraries [EPREFIX/lib]
1306 --includedir=DIR C header files [PREFIX/include]
1307 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1308 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1309 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1310 --infodir=DIR info documentation [DATAROOTDIR/info]
1311 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1312 --mandir=DIR man documentation [DATAROOTDIR/man]
1313 --docdir=DIR documentation root [DATAROOTDIR/doc/stressapptest]
1314 --htmldir=DIR html documentation [DOCDIR]
1315 --dvidir=DIR dvi documentation [DOCDIR]
1316 --pdfdir=DIR pdf documentation [DOCDIR]
1317 --psdir=DIR ps documentation [DOCDIR]
menderico4861bb82009-09-29 00:31:36 +00001318_ACEOF
1319
1320 cat <<\_ACEOF
1321
1322Program names:
1323 --program-prefix=PREFIX prepend PREFIX to installed program names
1324 --program-suffix=SUFFIX append SUFFIX to installed program names
1325 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1326
1327System types:
1328 --build=BUILD configure for building on BUILD [guessed]
1329 --host=HOST cross-compile to build programs to run on HOST [BUILD]
menderico4861bb82009-09-29 00:31:36 +00001330_ACEOF
1331fi
1332
1333if test -n "$ac_init_help"; then
1334 case $ac_init_help in
nick.j.sanders318caaf2014-02-11 09:02:48 +00001335 short | recursive ) echo "Configuration of stressapptest 1.0.7_autoconf:";;
menderico4861bb82009-09-29 00:31:36 +00001336 esac
1337 cat <<\_ACEOF
1338
1339Optional Features:
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001340 --disable-option-checking ignore unrecognized --enable/--with options
menderico4861bb82009-09-29 00:31:36 +00001341 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1342 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1343 --disable-dependency-tracking speeds up one-time build
1344 --enable-dependency-tracking do not reject slow dependency extractors
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001345 --disable-default-optimizations
1346 Disable default optimization flag overrides
menderico4861bb82009-09-29 00:31:36 +00001347
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001348Optional Packages:
1349 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1350 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1351 --with-static enable static linking
1352
menderico4861bb82009-09-29 00:31:36 +00001353Some influential environment variables:
1354 CXX C++ compiler command
1355 CXXFLAGS C++ compiler flags
1356 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1357 nonstandard directory <lib dir>
1358 LIBS libraries to pass to the linker, e.g. -l<library>
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001359 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
menderico4861bb82009-09-29 00:31:36 +00001360 you have headers in a nonstandard directory <include dir>
1361 CC C compiler command
1362 CFLAGS C compiler flags
1363 CPP C preprocessor
1364
1365Use these variables to override the choices made by `configure' or to help
1366it to find libraries and programs with nonstandard names/locations.
1367
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00001368Report bugs to <opensource@google.com>.
menderico4861bb82009-09-29 00:31:36 +00001369_ACEOF
1370ac_status=$?
1371fi
1372
1373if test "$ac_init_help" = "recursive"; then
1374 # If there are subdirs, report their specific --help.
1375 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001376 test -d "$ac_dir" ||
1377 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1378 continue
menderico4861bb82009-09-29 00:31:36 +00001379 ac_builddir=.
1380
1381case "$ac_dir" in
1382.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001384 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
menderico4861bb82009-09-29 00:31:36 +00001385 # A ".." for each directory in $ac_dir_suffix.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001386 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
menderico4861bb82009-09-29 00:31:36 +00001387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390 esac ;;
1391esac
1392ac_abs_top_builddir=$ac_pwd
1393ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394# for backward compatibility:
1395ac_top_builddir=$ac_top_build_prefix
1396
1397case $srcdir in
1398 .) # We are building in place.
1399 ac_srcdir=.
1400 ac_top_srcdir=$ac_top_builddir_sub
1401 ac_abs_top_srcdir=$ac_pwd ;;
1402 [\\/]* | ?:[\\/]* ) # Absolute name.
1403 ac_srcdir=$srcdir$ac_dir_suffix;
1404 ac_top_srcdir=$srcdir
1405 ac_abs_top_srcdir=$srcdir ;;
1406 *) # Relative name.
1407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1410esac
1411ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1412
1413 cd "$ac_dir" || { ac_status=$?; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1416 echo &&
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1419 echo &&
1420 $SHELL "$ac_srcdir/configure" --help=recursive
1421 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001422 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
menderico4861bb82009-09-29 00:31:36 +00001423 fi || ac_status=$?
1424 cd "$ac_pwd" || { ac_status=$?; break; }
1425 done
1426fi
1427
1428test -n "$ac_init_help" && exit $ac_status
1429if $ac_init_version; then
1430 cat <<\_ACEOF
nick.j.sanders318caaf2014-02-11 09:02:48 +00001431stressapptest configure 1.0.7_autoconf
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001432generated by GNU Autoconf 2.68
menderico4861bb82009-09-29 00:31:36 +00001433
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001434Copyright (C) 2010 Free Software Foundation, Inc.
menderico4861bb82009-09-29 00:31:36 +00001435This configure script is free software; the Free Software Foundation
1436gives unlimited permission to copy, distribute and modify it.
1437_ACEOF
1438 exit
1439fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001440
1441## ------------------------ ##
1442## Autoconf initialization. ##
1443## ------------------------ ##
1444
1445# ac_fn_cxx_try_compile LINENO
1446# ----------------------------
1447# Try to compile conftest.$ac_ext, and return whether this succeeded.
1448ac_fn_cxx_try_compile ()
1449{
1450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451 rm -f conftest.$ac_objext
1452 if { { ac_try="$ac_compile"
1453case "(($ac_try" in
1454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455 *) ac_try_echo=$ac_try;;
1456esac
1457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458$as_echo "$ac_try_echo"; } >&5
1459 (eval "$ac_compile") 2>conftest.err
1460 ac_status=$?
1461 if test -s conftest.err; then
1462 grep -v '^ *+' conftest.err >conftest.er1
1463 cat conftest.er1 >&5
1464 mv -f conftest.er1 conftest.err
1465 fi
1466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467 test $ac_status = 0; } && {
1468 test -z "$ac_cxx_werror_flag" ||
1469 test ! -s conftest.err
1470 } && test -s conftest.$ac_objext; then :
1471 ac_retval=0
1472else
1473 $as_echo "$as_me: failed program was:" >&5
1474sed 's/^/| /' conftest.$ac_ext >&5
1475
1476 ac_retval=1
1477fi
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001479 as_fn_set_status $ac_retval
1480
1481} # ac_fn_cxx_try_compile
1482
1483# ac_fn_c_try_compile LINENO
1484# --------------------------
1485# Try to compile conftest.$ac_ext, and return whether this succeeded.
1486ac_fn_c_try_compile ()
1487{
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 rm -f conftest.$ac_objext
1490 if { { ac_try="$ac_compile"
1491case "(($ac_try" in
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1494esac
1495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496$as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_compile") 2>conftest.err
1498 ac_status=$?
1499 if test -s conftest.err; then
1500 grep -v '^ *+' conftest.err >conftest.er1
1501 cat conftest.er1 >&5
1502 mv -f conftest.er1 conftest.err
1503 fi
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } && {
1506 test -z "$ac_c_werror_flag" ||
1507 test ! -s conftest.err
1508 } && test -s conftest.$ac_objext; then :
1509 ac_retval=0
1510else
1511 $as_echo "$as_me: failed program was:" >&5
1512sed 's/^/| /' conftest.$ac_ext >&5
1513
1514 ac_retval=1
1515fi
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001517 as_fn_set_status $ac_retval
1518
1519} # ac_fn_c_try_compile
1520
1521# ac_fn_c_try_link LINENO
1522# -----------------------
1523# Try to link conftest.$ac_ext, and return whether this succeeded.
1524ac_fn_c_try_link ()
1525{
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext conftest$ac_exeext
1528 if { { ac_try="$ac_link"
1529case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532esac
1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534$as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_link") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest$ac_exeext && {
1547 test "$cross_compiling" = yes ||
1548 $as_test_x conftest$ac_exeext
1549 }; then :
1550 ac_retval=0
1551else
1552 $as_echo "$as_me: failed program was:" >&5
1553sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1
1556fi
1557 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1558 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1559 # interfere with the next link command; also delete a directory that is
1560 # left behind by Apple's compiler. We do this before executing the actions.
1561 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001563 as_fn_set_status $ac_retval
1564
1565} # ac_fn_c_try_link
1566
1567# ac_fn_c_try_cpp LINENO
1568# ----------------------
1569# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_cpp ()
1571{
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 if { { ac_try="$ac_cpp conftest.$ac_ext"
1574case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001588 test $ac_status = 0; } > conftest.i && {
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 }; then :
1592 ac_retval=0
1593else
1594 $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598fi
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001600 as_fn_set_status $ac_retval
1601
1602} # ac_fn_c_try_cpp
1603
1604# ac_fn_c_try_run LINENO
1605# ----------------------
1606# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1607# that executables *can* be run.
1608ac_fn_c_try_run ()
1609{
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { { ac_try="$ac_link"
1612case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_link") 2>&5
1619 ac_status=$?
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1622 { { case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625esac
1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627$as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_try") 2>&5
1629 ac_status=$?
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; }; }; then :
1632 ac_retval=0
1633else
1634 $as_echo "$as_me: program exited with status $ac_status" >&5
1635 $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=$ac_status
1639fi
1640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001642 as_fn_set_status $ac_retval
1643
1644} # ac_fn_c_try_run
1645
1646# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1647# -------------------------------------------------------
1648# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1649# the include files in INCLUDES and setting the cache variable VAR
1650# accordingly.
1651ac_fn_c_check_header_mongrel ()
1652{
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001654 if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656$as_echo_n "checking for $2... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001657if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001658 $as_echo_n "(cached) " >&6
1659fi
1660eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662$as_echo "$ac_res" >&6; }
1663else
1664 # Is the header compilable?
1665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1666$as_echo_n "checking $2 usability... " >&6; }
1667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h. */
1669$4
1670#include <$2>
1671_ACEOF
1672if ac_fn_c_try_compile "$LINENO"; then :
1673 ac_header_compiler=yes
1674else
1675 ac_header_compiler=no
1676fi
1677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1679$as_echo "$ac_header_compiler" >&6; }
1680
1681# Is the header present?
1682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1683$as_echo_n "checking $2 presence... " >&6; }
1684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685/* end confdefs.h. */
1686#include <$2>
1687_ACEOF
1688if ac_fn_c_try_cpp "$LINENO"; then :
1689 ac_header_preproc=yes
1690else
1691 ac_header_preproc=no
1692fi
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001693rm -f conftest.err conftest.i conftest.$ac_ext
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1695$as_echo "$ac_header_preproc" >&6; }
1696
1697# So? What about this header?
1698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1699 yes:no: )
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1701$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704 ;;
1705 no:yes:* )
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1707$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1709$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1711$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1713$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001716( $as_echo "## ------------------------------------ ##
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001717## Report this to opensource@google.com ##
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001718## ------------------------------------ ##"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001719 ) | sed "s/^/$as_me: WARNING: /" >&2
1720 ;;
1721esac
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001724if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001725 $as_echo_n "(cached) " >&6
1726else
1727 eval "$3=\$ac_header_compiler"
1728fi
1729eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731$as_echo "$ac_res" >&6; }
1732fi
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001734
1735} # ac_fn_c_check_header_mongrel
1736
1737# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738# -------------------------------------------------------
1739# Tests whether HEADER exists and can be compiled using the include files in
1740# INCLUDES, setting the cache variable VAR accordingly.
1741ac_fn_c_check_header_compile ()
1742{
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745$as_echo_n "checking for $2... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001746if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001747 $as_echo_n "(cached) " >&6
1748else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h. */
1751$4
1752#include <$2>
1753_ACEOF
1754if ac_fn_c_try_compile "$LINENO"; then :
1755 eval "$3=yes"
1756else
1757 eval "$3=no"
1758fi
1759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760fi
1761eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763$as_echo "$ac_res" >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001765
1766} # ac_fn_c_check_header_compile
1767
1768# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1769# -------------------------------------------
1770# Tests whether TYPE exists after having included INCLUDES, setting cache
1771# variable VAR accordingly.
1772ac_fn_c_check_type ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776$as_echo_n "checking for $2... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001777if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001778 $as_echo_n "(cached) " >&6
1779else
1780 eval "$3=no"
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h. */
1783$4
1784int
1785main ()
1786{
1787if (sizeof ($2))
1788 return 0;
1789 ;
1790 return 0;
1791}
1792_ACEOF
1793if ac_fn_c_try_compile "$LINENO"; then :
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h. */
1796$4
1797int
1798main ()
1799{
1800if (sizeof (($2)))
1801 return 0;
1802 ;
1803 return 0;
1804}
1805_ACEOF
1806if ac_fn_c_try_compile "$LINENO"; then :
1807
1808else
1809 eval "$3=yes"
1810fi
1811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812fi
1813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814fi
1815eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817$as_echo "$ac_res" >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001819
1820} # ac_fn_c_check_type
1821
1822# ac_fn_c_find_uintX_t LINENO BITS VAR
1823# ------------------------------------
1824# Finds an unsigned integer type with width BITS, setting cache variable VAR
1825# accordingly.
1826ac_fn_c_find_uintX_t ()
1827{
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1830$as_echo_n "checking for uint$2_t... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001831if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001832 $as_echo_n "(cached) " >&6
1833else
1834 eval "$3=no"
1835 # Order is important - never check a type that is potentially smaller
1836 # than half of the expected target width.
1837 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1838 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h. */
1841$ac_includes_default
1842int
1843main ()
1844{
1845static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1846test_array [0] = 0
1847
1848 ;
1849 return 0;
1850}
1851_ACEOF
1852if ac_fn_c_try_compile "$LINENO"; then :
1853 case $ac_type in #(
1854 uint$2_t) :
1855 eval "$3=yes" ;; #(
1856 *) :
1857 eval "$3=\$ac_type" ;;
1858esac
1859fi
1860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001861 if eval test \"x\$"$3"\" = x"no"; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001862
1863else
1864 break
1865fi
1866 done
1867fi
1868eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870$as_echo "$ac_res" >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001872
1873} # ac_fn_c_find_uintX_t
1874
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001875# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1876# ---------------------------------------------
1877# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1878# accordingly.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001879ac_fn_c_check_decl ()
1880{
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001882 as_decl_name=`echo $2|sed 's/ *(.*//'`
1883 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1885$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1886if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001887 $as_echo_n "(cached) " >&6
1888else
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h. */
1891$4
1892int
1893main ()
1894{
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001895#ifndef $as_decl_name
1896#ifdef __cplusplus
1897 (void) $as_decl_use;
1898#else
1899 (void) $as_decl_name;
1900#endif
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001901#endif
1902
1903 ;
1904 return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_compile "$LINENO"; then :
1908 eval "$3=yes"
1909else
1910 eval "$3=no"
1911fi
1912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913fi
1914eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916$as_echo "$ac_res" >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001918
1919} # ac_fn_c_check_decl
1920
1921# ac_fn_c_check_func LINENO FUNC VAR
1922# ----------------------------------
1923# Tests whether FUNC exists, setting the cache variable VAR accordingly
1924ac_fn_c_check_func ()
1925{
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001929if eval \${$3+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001930 $as_echo_n "(cached) " >&6
1931else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h. */
1934/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1936#define $2 innocuous_$2
1937
1938/* System header to define __stub macros and hopefully few prototypes,
1939 which can conflict with char $2 (); below.
1940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941 <limits.h> exists even on freestanding compilers. */
1942
1943#ifdef __STDC__
1944# include <limits.h>
1945#else
1946# include <assert.h>
1947#endif
1948
1949#undef $2
1950
1951/* Override any GCC internal prototype to avoid an error.
1952 Use char because int might match the return type of a GCC
1953 builtin and then its argument prototype would still apply. */
1954#ifdef __cplusplus
1955extern "C"
1956#endif
1957char $2 ();
1958/* The GNU C library defines this for functions which it implements
1959 to always fail with ENOSYS. Some functions are actually named
1960 something starting with __ and the normal name is an alias. */
1961#if defined __stub_$2 || defined __stub___$2
1962choke me
1963#endif
1964
1965int
1966main ()
1967{
1968return $2 ();
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_link "$LINENO"; then :
1974 eval "$3=yes"
1975else
1976 eval "$3=no"
1977fi
1978rm -f core conftest.err conftest.$ac_objext \
1979 conftest$ac_exeext conftest.$ac_ext
1980fi
1981eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983$as_echo "$ac_res" >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
nick.j.sanders3f2289d2011-11-11 00:34:37 +00001985
1986} # ac_fn_c_check_func
menderico4861bb82009-09-29 00:31:36 +00001987cat >config.log <<_ACEOF
1988This file contains any messages produced by compilers while
1989running configure, to aid debugging if configure makes a mistake.
1990
nick.j.sanders318caaf2014-02-11 09:02:48 +00001991It was created by stressapptest $as_me 1.0.7_autoconf, which was
nick.j.sanders7a6b2522014-02-11 08:53:31 +00001992generated by GNU Autoconf 2.68. Invocation command line was
menderico4861bb82009-09-29 00:31:36 +00001993
1994 $ $0 $@
1995
1996_ACEOF
1997exec 5>>config.log
1998{
1999cat <<_ASUNAME
2000## --------- ##
2001## Platform. ##
2002## --------- ##
2003
2004hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2005uname -m = `(uname -m) 2>/dev/null || echo unknown`
2006uname -r = `(uname -r) 2>/dev/null || echo unknown`
2007uname -s = `(uname -s) 2>/dev/null || echo unknown`
2008uname -v = `(uname -v) 2>/dev/null || echo unknown`
2009
2010/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2011/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2012
2013/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2014/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2015/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2016/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2017/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2018/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2019/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2020
2021_ASUNAME
2022
2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024for as_dir in $PATH
2025do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002028 $as_echo "PATH: $as_dir"
2029 done
menderico4861bb82009-09-29 00:31:36 +00002030IFS=$as_save_IFS
2031
2032} >&5
2033
2034cat >&5 <<_ACEOF
2035
2036
2037## ----------- ##
2038## Core tests. ##
2039## ----------- ##
2040
2041_ACEOF
2042
2043
2044# Keep a trace of the command line.
2045# Strip out --no-create and --no-recursion so they do not pile up.
2046# Strip out --silent because we don't want to record it for future runs.
2047# Also quote any args containing shell meta-characters.
2048# Make two passes to allow for proper duplicate-argument suppression.
2049ac_configure_args=
2050ac_configure_args0=
2051ac_configure_args1=
2052ac_must_keep_next=false
2053for ac_pass in 1 2
2054do
2055 for ac_arg
2056 do
2057 case $ac_arg in
2058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2060 | -silent | --silent | --silen | --sile | --sil)
2061 continue ;;
2062 *\'*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002063 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
menderico4861bb82009-09-29 00:31:36 +00002064 esac
2065 case $ac_pass in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002066 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
menderico4861bb82009-09-29 00:31:36 +00002067 2)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002068 as_fn_append ac_configure_args1 " '$ac_arg'"
menderico4861bb82009-09-29 00:31:36 +00002069 if test $ac_must_keep_next = true; then
2070 ac_must_keep_next=false # Got value, back to normal.
2071 else
2072 case $ac_arg in
2073 *=* | --config-cache | -C | -disable-* | --disable-* \
2074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2076 | -with-* | --with-* | -without-* | --without-* | --x)
2077 case "$ac_configure_args0 " in
2078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2079 esac
2080 ;;
2081 -* ) ac_must_keep_next=true ;;
2082 esac
2083 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002084 as_fn_append ac_configure_args " '$ac_arg'"
menderico4861bb82009-09-29 00:31:36 +00002085 ;;
2086 esac
2087 done
2088done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002089{ ac_configure_args0=; unset ac_configure_args0;}
2090{ ac_configure_args1=; unset ac_configure_args1;}
menderico4861bb82009-09-29 00:31:36 +00002091
2092# When interrupted or exit'd, cleanup temporary files, and complete
2093# config.log. We remove comments because anyway the quotes in there
2094# would cause problems or look ugly.
2095# WARNING: Use '\'' to represent an apostrophe within the trap.
2096# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2097trap 'exit_status=$?
2098 # Save into config.log some information that might help in debugging.
2099 {
2100 echo
2101
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002102 $as_echo "## ---------------- ##
menderico4861bb82009-09-29 00:31:36 +00002103## Cache variables. ##
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002104## ---------------- ##"
menderico4861bb82009-09-29 00:31:36 +00002105 echo
2106 # The following way of writing the cache mishandles newlines in values,
2107(
2108 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2109 eval ac_val=\$$ac_var
2110 case $ac_val in #(
2111 *${as_nl}*)
2112 case $ac_var in #(
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002113 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2114$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
menderico4861bb82009-09-29 00:31:36 +00002115 esac
2116 case $ac_var in #(
2117 _ | IFS | as_nl) ;; #(
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002118 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2119 *) { eval $ac_var=; unset $ac_var;} ;;
menderico4861bb82009-09-29 00:31:36 +00002120 esac ;;
2121 esac
2122 done
2123 (set) 2>&1 |
2124 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2125 *${as_nl}ac_space=\ *)
2126 sed -n \
2127 "s/'\''/'\''\\\\'\'''\''/g;
2128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2129 ;; #(
2130 *)
2131 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2132 ;;
2133 esac |
2134 sort
2135)
2136 echo
2137
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002138 $as_echo "## ----------------- ##
menderico4861bb82009-09-29 00:31:36 +00002139## Output variables. ##
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002140## ----------------- ##"
menderico4861bb82009-09-29 00:31:36 +00002141 echo
2142 for ac_var in $ac_subst_vars
2143 do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
menderico4861bb82009-09-29 00:31:36 +00002147 esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002148 $as_echo "$ac_var='\''$ac_val'\''"
menderico4861bb82009-09-29 00:31:36 +00002149 done | sort
2150 echo
2151
2152 if test -n "$ac_subst_files"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002153 $as_echo "## ------------------- ##
menderico4861bb82009-09-29 00:31:36 +00002154## File substitutions. ##
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002155## ------------------- ##"
menderico4861bb82009-09-29 00:31:36 +00002156 echo
2157 for ac_var in $ac_subst_files
2158 do
2159 eval ac_val=\$$ac_var
2160 case $ac_val in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002161 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
menderico4861bb82009-09-29 00:31:36 +00002162 esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002163 $as_echo "$ac_var='\''$ac_val'\''"
menderico4861bb82009-09-29 00:31:36 +00002164 done | sort
2165 echo
2166 fi
2167
2168 if test -s confdefs.h; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002169 $as_echo "## ----------- ##
menderico4861bb82009-09-29 00:31:36 +00002170## confdefs.h. ##
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002171## ----------- ##"
menderico4861bb82009-09-29 00:31:36 +00002172 echo
2173 cat confdefs.h
2174 echo
2175 fi
2176 test "$ac_signal" != 0 &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002177 $as_echo "$as_me: caught signal $ac_signal"
2178 $as_echo "$as_me: exit $exit_status"
menderico4861bb82009-09-29 00:31:36 +00002179 } >&5
2180 rm -f core *.core core.conftest.* &&
2181 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2182 exit $exit_status
2183' 0
2184for ac_signal in 1 2 13 15; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002185 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
menderico4861bb82009-09-29 00:31:36 +00002186done
2187ac_signal=0
2188
2189# confdefs.h avoids OS command line length limits that DEFS can exceed.
2190rm -f -r conftest* confdefs.h
2191
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002192$as_echo "/* confdefs.h */" > confdefs.h
2193
menderico4861bb82009-09-29 00:31:36 +00002194# Predefined preprocessor variables.
2195
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_NAME "$PACKAGE_NAME"
2198_ACEOF
2199
menderico4861bb82009-09-29 00:31:36 +00002200cat >>confdefs.h <<_ACEOF
2201#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2202_ACEOF
2203
menderico4861bb82009-09-29 00:31:36 +00002204cat >>confdefs.h <<_ACEOF
2205#define PACKAGE_VERSION "$PACKAGE_VERSION"
2206_ACEOF
2207
menderico4861bb82009-09-29 00:31:36 +00002208cat >>confdefs.h <<_ACEOF
2209#define PACKAGE_STRING "$PACKAGE_STRING"
2210_ACEOF
2211
menderico4861bb82009-09-29 00:31:36 +00002212cat >>confdefs.h <<_ACEOF
2213#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2214_ACEOF
2215
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002216cat >>confdefs.h <<_ACEOF
2217#define PACKAGE_URL "$PACKAGE_URL"
2218_ACEOF
2219
menderico4861bb82009-09-29 00:31:36 +00002220
2221# Let the site file select an alternate cache file if it wants to.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002222# Prefer an explicitly selected file to automatically selected ones.
2223ac_site_file1=NONE
2224ac_site_file2=NONE
menderico4861bb82009-09-29 00:31:36 +00002225if test -n "$CONFIG_SITE"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002226 # We do not want a PATH search for config.site.
2227 case $CONFIG_SITE in #((
2228 -*) ac_site_file1=./$CONFIG_SITE;;
2229 */*) ac_site_file1=$CONFIG_SITE;;
2230 *) ac_site_file1=./$CONFIG_SITE;;
2231 esac
menderico4861bb82009-09-29 00:31:36 +00002232elif test "x$prefix" != xNONE; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002233 ac_site_file1=$prefix/share/config.site
2234 ac_site_file2=$prefix/etc/config.site
menderico4861bb82009-09-29 00:31:36 +00002235else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002236 ac_site_file1=$ac_default_prefix/share/config.site
2237 ac_site_file2=$ac_default_prefix/etc/config.site
menderico4861bb82009-09-29 00:31:36 +00002238fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002239for ac_site_file in "$ac_site_file1" "$ac_site_file2"
menderico4861bb82009-09-29 00:31:36 +00002240do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002241 test "x$ac_site_file" = xNONE && continue
2242 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2244$as_echo "$as_me: loading site script $ac_site_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00002245 sed 's/^/| /' "$ac_site_file" >&5
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002246 . "$ac_site_file" \
2247 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2249as_fn_error $? "failed to load site script $ac_site_file
2250See \`config.log' for more details" "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00002251 fi
2252done
2253
2254if test -r "$cache_file"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002255 # Some versions of bash will fail to source /dev/null (special files
2256 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2257 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2259$as_echo "$as_me: loading cache $cache_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00002260 case $cache_file in
2261 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2262 *) . "./$cache_file";;
2263 esac
2264 fi
2265else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002266 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2267$as_echo "$as_me: creating cache $cache_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00002268 >$cache_file
2269fi
2270
2271# Check that the precious variables saved in the cache have kept the same
2272# value.
2273ac_cache_corrupted=false
2274for ac_var in $ac_precious_vars; do
2275 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2276 eval ac_new_set=\$ac_env_${ac_var}_set
2277 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2278 eval ac_new_val=\$ac_env_${ac_var}_value
2279 case $ac_old_set,$ac_new_set in
2280 set,)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2282$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
menderico4861bb82009-09-29 00:31:36 +00002283 ac_cache_corrupted=: ;;
2284 ,set)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2286$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
menderico4861bb82009-09-29 00:31:36 +00002287 ac_cache_corrupted=: ;;
2288 ,);;
2289 *)
2290 if test "x$ac_old_val" != "x$ac_new_val"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002291 # differences in whitespace do not lead to failure.
2292 ac_old_val_w=`echo x $ac_old_val`
2293 ac_new_val_w=`echo x $ac_new_val`
2294 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2296$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2297 ac_cache_corrupted=:
2298 else
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2300$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2301 eval $ac_var=\$ac_old_val
2302 fi
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2304$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2306$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
menderico4861bb82009-09-29 00:31:36 +00002307 fi;;
2308 esac
2309 # Pass precious variables to config.status.
2310 if test "$ac_new_set" = set; then
2311 case $ac_new_val in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002312 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
menderico4861bb82009-09-29 00:31:36 +00002313 *) ac_arg=$ac_var=$ac_new_val ;;
2314 esac
2315 case " $ac_configure_args " in
2316 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002317 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
menderico4861bb82009-09-29 00:31:36 +00002318 esac
2319 fi
2320done
2321if $ac_cache_corrupted; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2325$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002326 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002327fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002328## -------------------- ##
2329## Main body of script. ##
2330## -------------------- ##
menderico4861bb82009-09-29 00:31:36 +00002331
2332ac_ext=c
2333ac_cpp='$CPP $CPPFLAGS'
2334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2336ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337
2338
2339
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002340
2341# Check whether --with-static was given.
2342if test "${with_static+set}" = set; then :
2343 withval=$with_static;
2344fi
2345
2346
2347if test "$with_static" == "yes"
2348then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002349 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with staticaly linked libraries." >&5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002350$as_echo "$as_me: Compiling with staticaly linked libraries." >&6;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002351 LIBS="$LIBS -static"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002352else
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002353 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with dynamically linked libraries." >&5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002354$as_echo "$as_me: Compiling with dynamically linked libraries." >&6;}
2355fi
2356
menderico4861bb82009-09-29 00:31:36 +00002357ac_aux_dir=
2358for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002359 if test -f "$ac_dir/install-sh"; then
2360 ac_aux_dir=$ac_dir
2361 ac_install_sh="$ac_aux_dir/install-sh -c"
2362 break
2363 elif test -f "$ac_dir/install.sh"; then
2364 ac_aux_dir=$ac_dir
2365 ac_install_sh="$ac_aux_dir/install.sh -c"
2366 break
2367 elif test -f "$ac_dir/shtool"; then
2368 ac_aux_dir=$ac_dir
2369 ac_install_sh="$ac_aux_dir/shtool install -c"
2370 break
2371 fi
menderico4861bb82009-09-29 00:31:36 +00002372done
2373if test -z "$ac_aux_dir"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002374 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002375fi
2376
2377# These three variables are undocumented and unsupported,
2378# and are intended to be withdrawn in a future Autoconf release.
2379# They can cause serious problems if a builder's source tree is in a directory
2380# whose full name contains unusual characters.
2381ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2382ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2383ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2384
2385
2386# Make sure we can run config.sub.
2387$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002388 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002389
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2391$as_echo_n "checking build system type... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002392if ${ac_cv_build+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002393 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002394else
2395 ac_build_alias=$build_alias
2396test "x$ac_build_alias" = x &&
2397 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2398test "x$ac_build_alias" = x &&
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002399 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002400ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002401 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002402
2403fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2405$as_echo "$ac_cv_build" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002406case $ac_cv_build in
2407*-*-*) ;;
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002408*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00002409esac
2410build=$ac_cv_build
2411ac_save_IFS=$IFS; IFS='-'
2412set x $ac_cv_build
2413shift
2414build_cpu=$1
2415build_vendor=$2
2416shift; shift
2417# Remember, the first character of IFS is used to create $*,
2418# except with old shells:
2419build_os=$*
2420IFS=$ac_save_IFS
2421case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2422
2423
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2425$as_echo_n "checking host system type... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002426if ${ac_cv_host+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002427 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002428else
2429 if test "x$host_alias" = x; then
2430 ac_cv_host=$ac_cv_build
2431else
2432 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002433 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002434fi
2435
2436fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2438$as_echo "$ac_cv_host" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002439case $ac_cv_host in
2440*-*-*) ;;
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002441*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00002442esac
2443host=$ac_cv_host
2444ac_save_IFS=$IFS; IFS='-'
2445set x $ac_cv_host
2446shift
2447host_cpu=$1
2448host_vendor=$2
2449shift; shift
2450# Remember, the first character of IFS is used to create $*,
2451# except with old shells:
2452host_os=$*
2453IFS=$ac_save_IFS
2454case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2455
2456
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002457# Checking for target cpu and setting custom configuration
2458# for the different platforms
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002459case "$host_cpu" in #(
2460 *x86_64*) :
menderico4861bb82009-09-29 00:31:36 +00002461
menderico4861bb82009-09-29 00:31:36 +00002462
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002463$as_echo "#define STRESSAPPTEST_CPU_X86_64 /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00002464
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002465 ;; #(
2466 *i686*) :
2467
menderico4861bb82009-09-29 00:31:36 +00002468
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002469$as_echo "#define STRESSAPPTEST_CPU_I686 /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00002470
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002471 ;; #(
2472 *powerpc*) :
2473
menderico4861bb82009-09-29 00:31:36 +00002474
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002475$as_echo "#define STRESSAPPTEST_CPU_PPC /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00002476
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002477 ;; #(
2478 *armv7a*) :
2479
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002480
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002481$as_echo "#define STRESSAPPTEST_CPU_ARMV7A /**/" >>confdefs.h
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002482
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002483 ;; #(
2484 *) :
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, or armv7a" >&5
2486$as_echo "$as_me: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, or armv7a" >&2;}
2487 ;;
menderico4861bb82009-09-29 00:31:36 +00002488esac
2489
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002490## The following allows like systems to share settings. This is not meant to
2491## imply that these OS are the same thing. From OpenOffice dmake configure.in
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002492case "$host_os" in #(
2493 *linux*) :
2494
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002495 OS_VERSION=linux
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002496
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002497$as_echo "#define STRESSAPPTEST_OS_LINUX /**/" >>confdefs.h
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002498
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002499 ;; #(
2500 *darwin*) :
2501
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002502 OS_VERSION=macosx
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002503
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002504$as_echo "#define STRESSAPPTEST_OS_DARWIN /**/" >>confdefs.h
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002505
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002506 ;; #(
2507 *freebsd*) :
2508
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002509 OS_VERSION=bsd
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002510
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002511$as_echo "#define STRESSAPPTEST_OS_BSD /**/" >>confdefs.h
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002512
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002513 ;; #(
2514 *netbsd*) :
2515
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00002516 OS_VERSION=bsd
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002517
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002518$as_echo "#define STRESSAPPTEST_OS_BSD /**/" >>confdefs.h
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002519
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002520 ;; #(
2521 *) :
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported system: $host_os" >&5
2523$as_echo "$as_me: WARNING: unsupported system: $host_os" >&2;}
2524 ;;
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00002525esac
2526
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002527am__api_version='1.11'
menderico4861bb82009-09-29 00:31:36 +00002528
2529# Find a good install program. We prefer a C program (faster),
2530# so one script is as good as another. But avoid the broken or
2531# incompatible versions:
2532# SysV /etc/install, /usr/sbin/install
2533# SunOS /usr/etc/install
2534# IRIX /sbin/install
2535# AIX /bin/install
2536# AmigaOS /C/install, which installs bootblocks on floppy discs
2537# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2538# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2539# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2540# OS/2's system install, which has a completely different semantic
2541# ./install, which can be erroneously created by make from ./install.sh.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002542# Reject install programs that cannot install multiple files.
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2544$as_echo_n "checking for a BSD-compatible install... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00002545if test -z "$INSTALL"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002546if ${ac_cv_path_install+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002547 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002548else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550for as_dir in $PATH
2551do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002554 # Account for people who put trailing slashes in PATH elements.
2555case $as_dir/ in #((
2556 ./ | .// | /[cC]/* | \
menderico4861bb82009-09-29 00:31:36 +00002557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002558 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
menderico4861bb82009-09-29 00:31:36 +00002559 /usr/ucb/* ) ;;
2560 *)
2561 # OSF1 and SCO ODT 3.0 have their own names for install.
2562 # Don't use installbsd from OSF since it installs stuff as root
2563 # by default.
2564 for ac_prog in ginstall scoinst install; do
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2567 if test $ac_prog = install &&
2568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569 # AIX install. It has an incompatible calling convention.
2570 :
2571 elif test $ac_prog = install &&
2572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2573 # program-specific install script used by HP pwplus--don't use.
2574 :
2575 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002576 rm -rf conftest.one conftest.two conftest.dir
2577 echo one > conftest.one
2578 echo two > conftest.two
2579 mkdir conftest.dir
2580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2581 test -s conftest.one && test -s conftest.two &&
2582 test -s conftest.dir/conftest.one &&
2583 test -s conftest.dir/conftest.two
2584 then
2585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2586 break 3
2587 fi
menderico4861bb82009-09-29 00:31:36 +00002588 fi
2589 fi
2590 done
2591 done
2592 ;;
2593esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002594
2595 done
menderico4861bb82009-09-29 00:31:36 +00002596IFS=$as_save_IFS
2597
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002598rm -rf conftest.one conftest.two conftest.dir
menderico4861bb82009-09-29 00:31:36 +00002599
2600fi
2601 if test "${ac_cv_path_install+set}" = set; then
2602 INSTALL=$ac_cv_path_install
2603 else
2604 # As a last resort, use the slow shell script. Don't cache a
2605 # value for INSTALL within a source directory, because that will
2606 # break other packages using the cache if that directory is
2607 # removed, or if the value is a relative name.
2608 INSTALL=$ac_install_sh
2609 fi
2610fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2612$as_echo "$INSTALL" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002613
2614# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2615# It thinks the first close brace ends the variable substitution.
2616test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2617
2618test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2619
2620test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2621
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2623$as_echo_n "checking whether build environment is sane... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00002624# Just in case
2625sleep 1
2626echo timestamp > conftest.file
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002627# Reject unsafe characters in $srcdir or the absolute working directory
2628# name. Accept space and tab only in the latter.
2629am_lf='
2630'
2631case `pwd` in
2632 *[\\\"\#\$\&\'\`$am_lf]*)
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002633 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002634esac
2635case $srcdir in
2636 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002637 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002638esac
2639
menderico4861bb82009-09-29 00:31:36 +00002640# Do `set' in a subshell so we don't clobber the current shell's
2641# arguments. Must try -L first in case configure is actually a
2642# symlink; some systems play weird games with the mod time of symlinks
2643# (eg FreeBSD returns the mod time of the symlink's containing
2644# directory).
2645if (
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002646 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
menderico4861bb82009-09-29 00:31:36 +00002647 if test "$*" = "X"; then
2648 # -L didn't work.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002649 set X `ls -t "$srcdir/configure" conftest.file`
menderico4861bb82009-09-29 00:31:36 +00002650 fi
2651 rm -f conftest.file
2652 if test "$*" != "X $srcdir/configure conftest.file" \
2653 && test "$*" != "X conftest.file $srcdir/configure"; then
2654
2655 # If neither matched, then we have a broken ls. This can happen
2656 # if, for instance, CONFIG_SHELL is bash and it inherits a
2657 # broken ls alias from the environment. This has actually
2658 # happened. Such a system could not be considered "sane".
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002659 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002660alias in your environment" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002661 fi
2662
2663 test "$2" = conftest.file
2664 )
2665then
2666 # Ok.
2667 :
2668else
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002669 as_fn_error $? "newly created file is older than distributed files!
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002670Check your system clock" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002671fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673$as_echo "yes" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002674test "$program_prefix" != NONE &&
2675 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2676# Use a double $ so make ignores it.
2677test "$program_suffix" != NONE &&
2678 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002679# Double any \ or $.
menderico4861bb82009-09-29 00:31:36 +00002680# By default was `s,x,x', remove it if useless.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002681ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2682program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
menderico4861bb82009-09-29 00:31:36 +00002683
2684# expand $ac_aux_dir to an absolute path
2685am_aux_dir=`cd $ac_aux_dir && pwd`
2686
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002687if test x"${MISSING+set}" != xset; then
2688 case $am_aux_dir in
2689 *\ * | *\ *)
2690 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2691 *)
2692 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2693 esac
2694fi
menderico4861bb82009-09-29 00:31:36 +00002695# Use eval to expand $SHELL
2696if eval "$MISSING --run true"; then
2697 am_missing_run="$MISSING --run "
2698else
2699 am_missing_run=
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2701$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
menderico4861bb82009-09-29 00:31:36 +00002702fi
2703
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002704if test x"${install_sh}" != xset; then
2705 case $am_aux_dir in
2706 *\ * | *\ *)
2707 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2708 *)
2709 install_sh="\${SHELL} $am_aux_dir/install-sh"
2710 esac
2711fi
2712
2713# Installed binaries are usually stripped using `strip' when the user
2714# run `make install-strip'. However `strip' might not be the right
2715# tool to use in cross-compilation environments, therefore Automake
2716# will honor the `STRIP' environment variable to overrule this program.
2717if test "$cross_compiling" != no; then
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2720set dummy ${ac_tool_prefix}strip; ac_word=$2
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002723if ${ac_cv_prog_STRIP+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002724 $as_echo_n "(cached) " >&6
2725else
2726 if test -n "$STRIP"; then
2727 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2728else
2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740done
2741 done
2742IFS=$as_save_IFS
2743
2744fi
2745fi
2746STRIP=$ac_cv_prog_STRIP
2747if test -n "$STRIP"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2749$as_echo "$STRIP" >&6; }
2750else
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752$as_echo "no" >&6; }
2753fi
2754
2755
2756fi
2757if test -z "$ac_cv_prog_STRIP"; then
2758 ac_ct_STRIP=$STRIP
2759 # Extract the first word of "strip", so it can be a program name with args.
2760set dummy strip; ac_word=$2
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002763if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002764 $as_echo_n "(cached) " >&6
2765else
2766 if test -n "$ac_ct_STRIP"; then
2767 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2768else
2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_ac_ct_STRIP="strip"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780done
2781 done
2782IFS=$as_save_IFS
2783
2784fi
2785fi
2786ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2787if test -n "$ac_ct_STRIP"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2789$as_echo "$ac_ct_STRIP" >&6; }
2790else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792$as_echo "no" >&6; }
2793fi
2794
2795 if test "x$ac_ct_STRIP" = x; then
2796 STRIP=":"
2797 else
2798 case $cross_compiling:$ac_tool_warned in
2799yes:)
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2802ac_tool_warned=yes ;;
2803esac
2804 STRIP=$ac_ct_STRIP
2805 fi
2806else
2807 STRIP="$ac_cv_prog_STRIP"
2808fi
2809
2810fi
2811INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2812
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2814$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00002815if test -z "$MKDIR_P"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002816 if ${ac_cv_path_mkdir+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002817 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002818else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002824 for ac_prog in mkdir gmkdir; do
menderico4861bb82009-09-29 00:31:36 +00002825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2827 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2828 'mkdir (GNU coreutils) '* | \
2829 'mkdir (coreutils) '* | \
2830 'mkdir (fileutils) '4.1*)
2831 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2832 break 3;;
2833 esac
2834 done
2835 done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002836 done
menderico4861bb82009-09-29 00:31:36 +00002837IFS=$as_save_IFS
2838
2839fi
2840
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002841 test -d ./--version && rmdir ./--version
menderico4861bb82009-09-29 00:31:36 +00002842 if test "${ac_cv_path_mkdir+set}" = set; then
2843 MKDIR_P="$ac_cv_path_mkdir -p"
2844 else
2845 # As a last resort, use the slow shell script. Don't cache a
2846 # value for MKDIR_P within a source directory, because that will
2847 # break other packages using the cache if that directory is
2848 # removed, or if the value is a relative name.
menderico4861bb82009-09-29 00:31:36 +00002849 MKDIR_P="$ac_install_sh -d"
2850 fi
2851fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2853$as_echo "$MKDIR_P" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002854
2855mkdir_p="$MKDIR_P"
2856case $mkdir_p in
2857 [\\/$]* | ?:[\\/]*) ;;
2858 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2859esac
2860
2861for ac_prog in gawk mawk nawk awk
2862do
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864set dummy $ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002867if ${ac_cv_prog_AWK+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002868 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002869else
2870 if test -n "$AWK"; then
2871 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002878 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00002879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_AWK="$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00002882 break 2
2883 fi
2884done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002885 done
menderico4861bb82009-09-29 00:31:36 +00002886IFS=$as_save_IFS
2887
2888fi
2889fi
2890AWK=$ac_cv_prog_AWK
2891if test -n "$AWK"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2893$as_echo "$AWK" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002894else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002897fi
2898
2899
2900 test -n "$AWK" && break
2901done
2902
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2904$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2905set x ${MAKE-make}
2906ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002907if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002908 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00002909else
2910 cat >conftest.make <<\_ACEOF
2911SHELL = /bin/sh
2912all:
2913 @echo '@@@%%%=$(MAKE)=@@@%%%'
2914_ACEOF
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002915# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
menderico4861bb82009-09-29 00:31:36 +00002916case `${MAKE-make} -f conftest.make 2>/dev/null` in
2917 *@@@%%%=?*=@@@%%%*)
2918 eval ac_cv_prog_make_${ac_make}_set=yes;;
2919 *)
2920 eval ac_cv_prog_make_${ac_make}_set=no;;
2921esac
2922rm -f conftest.make
2923fi
2924if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2926$as_echo "yes" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002927 SET_MAKE=
2928else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00002929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00002931 SET_MAKE="MAKE=${MAKE-make}"
2932fi
2933
2934rm -rf .tst 2>/dev/null
2935mkdir .tst 2>/dev/null
2936if test -d .tst; then
2937 am__leading_dot=.
2938else
2939 am__leading_dot=_
2940fi
2941rmdir .tst 2>/dev/null
2942
2943if test "`cd $srcdir && pwd`" != "`pwd`"; then
2944 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2945 # is not polluted with repeated "-I."
2946 am__isrc=' -I$(srcdir)'
2947 # test to see if srcdir already configured
2948 if test -f $srcdir/config.status; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002949 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00002950 fi
2951fi
2952
2953# test whether we have cygpath
2954if test -z "$CYGPATH_W"; then
2955 if (cygpath --version) >/dev/null 2>/dev/null; then
2956 CYGPATH_W='cygpath -w'
2957 else
2958 CYGPATH_W=echo
2959 fi
2960fi
2961
2962
2963# Define the identity of the package.
2964 PACKAGE='stressapptest'
nick.j.sanders318caaf2014-02-11 09:02:48 +00002965 VERSION='1.0.7_autoconf'
menderico4861bb82009-09-29 00:31:36 +00002966
2967
2968cat >>confdefs.h <<_ACEOF
2969#define PACKAGE "$PACKAGE"
2970_ACEOF
2971
2972
2973cat >>confdefs.h <<_ACEOF
2974#define VERSION "$VERSION"
2975_ACEOF
2976
2977# Some tools Automake needs.
2978
2979ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2980
2981
2982AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2983
2984
2985AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2986
2987
2988AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2989
2990
2991MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2992
menderico4861bb82009-09-29 00:31:36 +00002993# We need awk for the "check" target. The system "awk" is bad on
2994# some platforms.
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002995# Always define AMTAR for backward compatibility. Yes, it's still used
2996# in the wild :-( We should find a proper way to deprecate it ...
2997AMTAR='$${TAR-tar}'
menderico4861bb82009-09-29 00:31:36 +00002998
nick.j.sanders7a6b2522014-02-11 08:53:31 +00002999am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
menderico4861bb82009-09-29 00:31:36 +00003000
3001
3002
3003
3004
3005
3006ac_config_headers="$ac_config_headers src/stressapptest_config.h"
3007
3008
3009# Checks for programs.
nick.j.sandersb4c2ce32009-10-27 05:56:42 +00003010# Don't generate CXXFLAGS defaults: if CXXFLAGS are unset
3011# AC_PROG_CXX will override them with unwanted defaults.
3012CXXFLAGS="$CXXFLAGS"
menderico4861bb82009-09-29 00:31:36 +00003013ac_ext=cpp
3014ac_cpp='$CXXCPP $CPPFLAGS'
3015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3018if test -z "$CXX"; then
3019 if test -n "$CCC"; then
3020 CXX=$CCC
3021 else
3022 if test -n "$ac_tool_prefix"; then
3023 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3024 do
3025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3026set dummy $ac_tool_prefix$ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003029if ${ac_cv_prog_CXX+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003030 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003031else
3032 if test -n "$CXX"; then
3033 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3034else
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003040 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003044 break 2
3045 fi
3046done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003047 done
menderico4861bb82009-09-29 00:31:36 +00003048IFS=$as_save_IFS
3049
3050fi
3051fi
3052CXX=$ac_cv_prog_CXX
3053if test -n "$CXX"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3055$as_echo "$CXX" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003056else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003059fi
3060
3061
3062 test -n "$CXX" && break
3063 done
3064fi
3065if test -z "$CXX"; then
3066 ac_ct_CXX=$CXX
3067 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3068do
3069 # Extract the first word of "$ac_prog", so it can be a program name with args.
3070set dummy $ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003073if ${ac_cv_prog_ac_ct_CXX+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003074 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003075else
3076 if test -n "$ac_ct_CXX"; then
3077 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3078else
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003084 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086 ac_cv_prog_ac_ct_CXX="$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003088 break 2
3089 fi
3090done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003091 done
menderico4861bb82009-09-29 00:31:36 +00003092IFS=$as_save_IFS
3093
3094fi
3095fi
3096ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3097if test -n "$ac_ct_CXX"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3099$as_echo "$ac_ct_CXX" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003100else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003103fi
3104
3105
3106 test -n "$ac_ct_CXX" && break
3107done
3108
3109 if test "x$ac_ct_CXX" = x; then
3110 CXX="g++"
3111 else
3112 case $cross_compiling:$ac_tool_warned in
3113yes:)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
menderico4861bb82009-09-29 00:31:36 +00003116ac_tool_warned=yes ;;
3117esac
3118 CXX=$ac_ct_CXX
3119 fi
3120fi
3121
3122 fi
3123fi
3124# Provide some information about the compiler.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003125$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3126set X $ac_compile
3127ac_compiler=$2
3128for ac_option in --version -v -V -qversion; do
3129 { { ac_try="$ac_compiler $ac_option >&5"
menderico4861bb82009-09-29 00:31:36 +00003130case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3135$as_echo "$ac_try_echo"; } >&5
3136 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
menderico4861bb82009-09-29 00:31:36 +00003137 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003138 if test -s conftest.err; then
3139 sed '10a\
3140... rest of stderr output deleted ...
3141 10q' conftest.err >conftest.er1
3142 cat conftest.er1 >&5
3143 fi
3144 rm -f conftest.er1 conftest.err
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }
3147done
menderico4861bb82009-09-29 00:31:36 +00003148
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003150/* end confdefs.h. */
3151
3152int
3153main ()
3154{
3155
3156 ;
3157 return 0;
3158}
3159_ACEOF
3160ac_clean_files_save=$ac_clean_files
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003161ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
menderico4861bb82009-09-29 00:31:36 +00003162# Try to create an executable without -o first, disregard a.out.
3163# It will help us diagnose broken compilers, and finding out an intuition
3164# of exeext.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3166$as_echo_n "checking whether the C++ compiler works... " >&6; }
3167ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3168
3169# The possible output files:
3170ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3171
menderico4861bb82009-09-29 00:31:36 +00003172ac_rmfiles=
3173for ac_file in $ac_files
3174do
3175 case $ac_file in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
menderico4861bb82009-09-29 00:31:36 +00003177 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3178 esac
3179done
3180rm -f $ac_rmfiles
3181
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003182if { { ac_try="$ac_link_default"
menderico4861bb82009-09-29 00:31:36 +00003183case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188$as_echo "$ac_try_echo"; } >&5
menderico4861bb82009-09-29 00:31:36 +00003189 (eval "$ac_link_default") 2>&5
3190 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }; then :
menderico4861bb82009-09-29 00:31:36 +00003193 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3194# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3195# in a Makefile. We should not override ac_cv_exeext if it was cached,
3196# so that the user can short-circuit this test for compilers unknown to
3197# Autoconf.
3198for ac_file in $ac_files ''
3199do
3200 test -f "$ac_file" || continue
3201 case $ac_file in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
menderico4861bb82009-09-29 00:31:36 +00003203 ;;
3204 [ab].out )
3205 # We found the default executable, but exeext='' is most
3206 # certainly right.
3207 break;;
3208 *.* )
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003209 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
menderico4861bb82009-09-29 00:31:36 +00003210 then :; else
3211 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212 fi
3213 # We set ac_cv_exeext here because the later test for it is not
3214 # safe: cross compilers may not add the suffix if given an `-o'
3215 # argument, so we may need to know it at that point already.
3216 # Even if this section looks crufty: it has the advantage of
3217 # actually working.
3218 break;;
3219 * )
3220 break;;
3221 esac
3222done
3223test "$ac_cv_exeext" = no && ac_cv_exeext=
3224
3225else
3226 ac_file=''
3227fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003228if test -z "$ac_file"; then :
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230$as_echo "no" >&6; }
3231$as_echo "$as_me: failed program was:" >&5
menderico4861bb82009-09-29 00:31:36 +00003232sed 's/^/| /' conftest.$ac_ext >&5
3233
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003234{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003236as_fn_error 77 "C++ compiler cannot create executables
3237See \`config.log' for more details" "$LINENO" 5; }
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003238else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240$as_echo "yes" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003241fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3243$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3245$as_echo "$ac_file" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003246ac_exeext=$ac_cv_exeext
3247
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003248rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
menderico4861bb82009-09-29 00:31:36 +00003249ac_clean_files=$ac_clean_files_save
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3251$as_echo_n "checking for suffix of executables... " >&6; }
3252if { { ac_try="$ac_link"
menderico4861bb82009-09-29 00:31:36 +00003253case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258$as_echo "$ac_try_echo"; } >&5
menderico4861bb82009-09-29 00:31:36 +00003259 (eval "$ac_link") 2>&5
3260 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
menderico4861bb82009-09-29 00:31:36 +00003263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3264# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3265# work properly (i.e., refer to `conftest.exe'), while it won't with
3266# `rm'.
3267for ac_file in conftest.exe conftest conftest.*; do
3268 test -f "$ac_file" || continue
3269 case $ac_file in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
menderico4861bb82009-09-29 00:31:36 +00003271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272 break;;
3273 * ) break;;
3274 esac
3275done
3276else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003279as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3280See \`config.log' for more details" "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00003281fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003282rm -f conftest conftest$ac_cv_exeext
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3284$as_echo "$ac_cv_exeext" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003285
3286rm -f conftest.$ac_ext
3287EXEEXT=$ac_cv_exeext
3288ac_exeext=$EXEEXT
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h. */
3291#include <stdio.h>
3292int
3293main ()
3294{
3295FILE *f = fopen ("conftest.out", "w");
3296 return ferror (f) || fclose (f) != 0;
3297
3298 ;
3299 return 0;
3300}
menderico4861bb82009-09-29 00:31:36 +00003301_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003302ac_clean_files="$ac_clean_files conftest.out"
3303# Check that the compiler produces executables we can run. If not, either
3304# the compiler is broken, or we cross compile.
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3306$as_echo_n "checking whether we are cross compiling... " >&6; }
3307if test "$cross_compiling" != yes; then
3308 { { ac_try="$ac_link"
3309case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312esac
3313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314$as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_link") 2>&5
3316 ac_status=$?
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }
3319 if { ac_try='./conftest$ac_cv_exeext'
3320 { { case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323esac
3324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325$as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_try") 2>&5
3327 ac_status=$?
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; }; then
3330 cross_compiling=no
3331 else
3332 if test "$cross_compiling" = maybe; then
3333 cross_compiling=yes
3334 else
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003337as_fn_error $? "cannot run C++ compiled programs.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003338If you meant to cross compile, use \`--host'.
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003339See \`config.log' for more details" "$LINENO" 5; }
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003340 fi
3341 fi
3342fi
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3344$as_echo "$cross_compiling" >&6; }
3345
3346rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3347ac_clean_files=$ac_clean_files_save
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3349$as_echo_n "checking for suffix of object files... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003350if ${ac_cv_objext+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003351 $as_echo_n "(cached) " >&6
3352else
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003354/* end confdefs.h. */
3355
3356int
3357main ()
3358{
3359
3360 ;
3361 return 0;
3362}
3363_ACEOF
3364rm -f conftest.o conftest.obj
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003365if { { ac_try="$ac_compile"
menderico4861bb82009-09-29 00:31:36 +00003366case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371$as_echo "$ac_try_echo"; } >&5
menderico4861bb82009-09-29 00:31:36 +00003372 (eval "$ac_compile") 2>&5
3373 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375 test $ac_status = 0; }; then :
menderico4861bb82009-09-29 00:31:36 +00003376 for ac_file in conftest.o conftest.obj conftest.*; do
3377 test -f "$ac_file" || continue;
3378 case $ac_file in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
menderico4861bb82009-09-29 00:31:36 +00003380 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3381 break;;
3382 esac
3383done
3384else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003385 $as_echo "$as_me: failed program was:" >&5
menderico4861bb82009-09-29 00:31:36 +00003386sed 's/^/| /' conftest.$ac_ext >&5
3387
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003388{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003390as_fn_error $? "cannot compute suffix of object files: cannot compile
3391See \`config.log' for more details" "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00003392fi
menderico4861bb82009-09-29 00:31:36 +00003393rm -f conftest.$ac_cv_objext conftest.$ac_ext
3394fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3396$as_echo "$ac_cv_objext" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003397OBJEXT=$ac_cv_objext
3398ac_objext=$OBJEXT
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3400$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003401if ${ac_cv_cxx_compiler_gnu+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003402 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003403else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003405/* end confdefs.h. */
3406
3407int
3408main ()
3409{
3410#ifndef __GNUC__
3411 choke me
3412#endif
3413
3414 ;
3415 return 0;
3416}
3417_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003418if ac_fn_cxx_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00003419 ac_compiler_gnu=yes
3420else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003421 ac_compiler_gnu=no
menderico4861bb82009-09-29 00:31:36 +00003422fi
menderico4861bb82009-09-29 00:31:36 +00003423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3425
3426fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3428$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3429if test $ac_compiler_gnu = yes; then
3430 GXX=yes
3431else
3432 GXX=
3433fi
menderico4861bb82009-09-29 00:31:36 +00003434ac_test_CXXFLAGS=${CXXFLAGS+set}
3435ac_save_CXXFLAGS=$CXXFLAGS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3437$as_echo_n "checking whether $CXX accepts -g... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003438if ${ac_cv_prog_cxx_g+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003439 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003440else
3441 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3442 ac_cxx_werror_flag=yes
3443 ac_cv_prog_cxx_g=no
3444 CXXFLAGS="-g"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003446/* end confdefs.h. */
3447
3448int
3449main ()
3450{
3451
3452 ;
3453 return 0;
3454}
3455_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003456if ac_fn_cxx_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00003457 ac_cv_prog_cxx_g=yes
3458else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003459 CXXFLAGS=""
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003461/* end confdefs.h. */
3462
3463int
3464main ()
3465{
3466
3467 ;
3468 return 0;
3469}
3470_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003471if ac_fn_cxx_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00003472
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003473else
3474 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
menderico4861bb82009-09-29 00:31:36 +00003475 CXXFLAGS="-g"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00003477/* end confdefs.h. */
3478
3479int
3480main ()
3481{
3482
3483 ;
3484 return 0;
3485}
3486_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003487if ac_fn_cxx_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00003488 ac_cv_prog_cxx_g=yes
menderico4861bb82009-09-29 00:31:36 +00003489fi
menderico4861bb82009-09-29 00:31:36 +00003490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491fi
menderico4861bb82009-09-29 00:31:36 +00003492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493fi
menderico4861bb82009-09-29 00:31:36 +00003494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3496fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3498$as_echo "$ac_cv_prog_cxx_g" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003499if test "$ac_test_CXXFLAGS" = set; then
3500 CXXFLAGS=$ac_save_CXXFLAGS
3501elif test $ac_cv_prog_cxx_g = yes; then
3502 if test "$GXX" = yes; then
3503 CXXFLAGS="-g -O2"
3504 else
3505 CXXFLAGS="-g"
3506 fi
3507else
3508 if test "$GXX" = yes; then
3509 CXXFLAGS="-O2"
3510 else
3511 CXXFLAGS=
3512 fi
3513fi
3514ac_ext=c
3515ac_cpp='$CPP $CPPFLAGS'
3516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519DEPDIR="${am__leading_dot}deps"
3520
3521ac_config_commands="$ac_config_commands depfiles"
3522
3523
3524am_make=${MAKE-make}
3525cat > confinc << 'END'
3526am__doit:
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003527 @echo this is the am__doit target
menderico4861bb82009-09-29 00:31:36 +00003528.PHONY: am__doit
3529END
3530# If we don't find an include directive, just comment out the code.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3532$as_echo_n "checking for style of include used by $am_make... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00003533am__include="#"
3534am__quote=
3535_am_result=none
3536# First try GNU make style include.
3537echo "include confinc" > confmf
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003538# Ignore all kinds of additional output from `make'.
3539case `$am_make -s -f confmf 2> /dev/null` in #(
3540*the\ am__doit\ target*)
3541 am__include=include
3542 am__quote=
3543 _am_result=GNU
3544 ;;
3545esac
menderico4861bb82009-09-29 00:31:36 +00003546# Now try BSD make style include.
3547if test "$am__include" = "#"; then
3548 echo '.include "confinc"' > confmf
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003549 case `$am_make -s -f confmf 2> /dev/null` in #(
3550 *the\ am__doit\ target*)
3551 am__include=.include
3552 am__quote="\""
3553 _am_result=BSD
3554 ;;
3555 esac
menderico4861bb82009-09-29 00:31:36 +00003556fi
3557
3558
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3560$as_echo "$_am_result" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003561rm -f confinc confmf
3562
3563# Check whether --enable-dependency-tracking was given.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003564if test "${enable_dependency_tracking+set}" = set; then :
menderico4861bb82009-09-29 00:31:36 +00003565 enableval=$enable_dependency_tracking;
3566fi
3567
3568if test "x$enable_dependency_tracking" != xno; then
3569 am_depcomp="$ac_aux_dir/depcomp"
3570 AMDEPBACKSLASH='\'
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003571 am__nodep='_no'
menderico4861bb82009-09-29 00:31:36 +00003572fi
3573 if test "x$enable_dependency_tracking" != xno; then
3574 AMDEP_TRUE=
3575 AMDEP_FALSE='#'
3576else
3577 AMDEP_TRUE='#'
3578 AMDEP_FALSE=
3579fi
3580
3581
3582
3583depcc="$CXX" am_compiler_list=
3584
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3586$as_echo_n "checking dependency style of $depcc... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003587if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003588 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003589else
3590 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3591 # We make a subdir and do the tests there. Otherwise we can end up
3592 # making bogus files that we don't know about and never remove. For
3593 # instance it was reported that on HP-UX the gcc test will end up
3594 # making a dummy file named `D' -- because `-MD' means `put the output
3595 # in D'.
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003596 rm -rf conftest.dir
menderico4861bb82009-09-29 00:31:36 +00003597 mkdir conftest.dir
3598 # Copy depcomp to subdir because otherwise we won't find it if we're
3599 # using a relative directory.
3600 cp "$am_depcomp" conftest.dir
3601 cd conftest.dir
3602 # We will build objects and dependencies in a subdirectory because
3603 # it helps to detect inapplicable dependency modes. For instance
3604 # both Tru64's cc and ICC support -MD to output dependencies as a
3605 # side effect of compilation, but ICC will put the dependencies in
3606 # the current directory while Tru64 will put them in the object
3607 # directory.
3608 mkdir sub
3609
3610 am_cv_CXX_dependencies_compiler_type=none
3611 if test "$am_compiler_list" = ""; then
3612 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3613 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003614 am__universal=false
3615 case " $depcc " in #(
3616 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3617 esac
3618
menderico4861bb82009-09-29 00:31:36 +00003619 for depmode in $am_compiler_list; do
3620 # Setup a source with many dependencies, because some compilers
3621 # like to wrap large dependency lists on column 80 (with \), and
3622 # we should not choose a depcomp mode which is confused by this.
3623 #
3624 # We need to recreate these files for each test, as the compiler may
3625 # overwrite some of them when testing with obscure command lines.
3626 # This happens at least with the AIX C compiler.
3627 : > sub/conftest.c
3628 for i in 1 2 3 4 5 6; do
3629 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3630 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3631 # Solaris 8's {/usr,}/bin/sh.
3632 touch sub/conftst$i.h
3633 done
3634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3635
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003636 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3637 # mode. It turns out that the SunPro C++ compiler does not properly
3638 # handle `-M -o', and we need to detect this. Also, some Intel
3639 # versions had trouble with output in subdirs
3640 am__obj=sub/conftest.${OBJEXT-o}
3641 am__minus_obj="-o $am__obj"
menderico4861bb82009-09-29 00:31:36 +00003642 case $depmode in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003643 gcc)
3644 # This depmode causes a compiler race in universal mode.
3645 test "$am__universal" = false || continue
3646 ;;
menderico4861bb82009-09-29 00:31:36 +00003647 nosideeffect)
3648 # after this tag, mechanisms are not by side-effect, so they'll
3649 # only be used when explicitly requested
3650 if test "x$enable_dependency_tracking" = xyes; then
3651 continue
3652 else
3653 break
3654 fi
3655 ;;
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003656 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003657 # This compiler won't grok `-c -o', but also, the minuso test has
3658 # not run yet. These depmodes are late enough in the game, and
3659 # so weak that their functioning should not be impacted.
3660 am__obj=conftest.${OBJEXT-o}
3661 am__minus_obj=
3662 ;;
menderico4861bb82009-09-29 00:31:36 +00003663 none) break ;;
3664 esac
menderico4861bb82009-09-29 00:31:36 +00003665 if depmode=$depmode \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003666 source=sub/conftest.c object=$am__obj \
menderico4861bb82009-09-29 00:31:36 +00003667 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003668 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
menderico4861bb82009-09-29 00:31:36 +00003669 >/dev/null 2>conftest.err &&
3670 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3671 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003672 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
menderico4861bb82009-09-29 00:31:36 +00003673 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3674 # icc doesn't choke on unknown options, it will just issue warnings
3675 # or remarks (even with -Werror). So we grep stderr for any message
3676 # that says an option was ignored or not supported.
3677 # When given -MP, icc 7.0 and 7.1 complain thusly:
3678 # icc: Command line warning: ignoring option '-M'; no argument required
3679 # The diagnosis changed in icc 8.0:
3680 # icc: Command line remark: option '-MP' not supported
3681 if (grep 'ignoring option' conftest.err ||
3682 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3683 am_cv_CXX_dependencies_compiler_type=$depmode
3684 break
3685 fi
3686 fi
3687 done
3688
3689 cd ..
3690 rm -rf conftest.dir
3691else
3692 am_cv_CXX_dependencies_compiler_type=none
3693fi
3694
3695fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3697$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003698CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3699
3700 if
3701 test "x$enable_dependency_tracking" != xno \
3702 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3703 am__fastdepCXX_TRUE=
3704 am__fastdepCXX_FALSE='#'
3705else
3706 am__fastdepCXX_TRUE='#'
3707 am__fastdepCXX_FALSE=
3708fi
3709
3710
3711ac_ext=c
3712ac_cpp='$CPP $CPPFLAGS'
3713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716if test -n "$ac_tool_prefix"; then
3717 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3718set dummy ${ac_tool_prefix}gcc; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003721if ${ac_cv_prog_CC+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003722 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003723else
3724 if test -n "$CC"; then
3725 ac_cv_prog_CC="$CC" # Let the user override the test.
3726else
3727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728for as_dir in $PATH
3729do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003732 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 ac_cv_prog_CC="${ac_tool_prefix}gcc"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003736 break 2
3737 fi
3738done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003739 done
menderico4861bb82009-09-29 00:31:36 +00003740IFS=$as_save_IFS
3741
3742fi
3743fi
3744CC=$ac_cv_prog_CC
3745if test -n "$CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747$as_echo "$CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003748else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003751fi
3752
3753
3754fi
3755if test -z "$ac_cv_prog_CC"; then
3756 ac_ct_CC=$CC
3757 # Extract the first word of "gcc", so it can be a program name with args.
3758set dummy gcc; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003761if ${ac_cv_prog_ac_ct_CC+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003762 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003763else
3764 if test -n "$ac_ct_CC"; then
3765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3766else
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003772 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774 ac_cv_prog_ac_ct_CC="gcc"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003776 break 2
3777 fi
3778done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003779 done
menderico4861bb82009-09-29 00:31:36 +00003780IFS=$as_save_IFS
3781
3782fi
3783fi
3784ac_ct_CC=$ac_cv_prog_ac_ct_CC
3785if test -n "$ac_ct_CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3787$as_echo "$ac_ct_CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003788else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003791fi
3792
3793 if test "x$ac_ct_CC" = x; then
3794 CC=""
3795 else
3796 case $cross_compiling:$ac_tool_warned in
3797yes:)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
menderico4861bb82009-09-29 00:31:36 +00003800ac_tool_warned=yes ;;
3801esac
3802 CC=$ac_ct_CC
3803 fi
3804else
3805 CC="$ac_cv_prog_CC"
3806fi
3807
3808if test -z "$CC"; then
3809 if test -n "$ac_tool_prefix"; then
3810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3811set dummy ${ac_tool_prefix}cc; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003814if ${ac_cv_prog_CC+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003815 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003816else
3817 if test -n "$CC"; then
3818 ac_cv_prog_CC="$CC" # Let the user override the test.
3819else
3820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821for as_dir in $PATH
3822do
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003825 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827 ac_cv_prog_CC="${ac_tool_prefix}cc"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003829 break 2
3830 fi
3831done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003832 done
menderico4861bb82009-09-29 00:31:36 +00003833IFS=$as_save_IFS
3834
3835fi
3836fi
3837CC=$ac_cv_prog_CC
3838if test -n "$CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840$as_echo "$CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003841else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003844fi
3845
3846
3847 fi
3848fi
3849if test -z "$CC"; then
3850 # Extract the first word of "cc", so it can be a program name with args.
3851set dummy cc; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003854if ${ac_cv_prog_CC+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003855 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003856else
3857 if test -n "$CC"; then
3858 ac_cv_prog_CC="$CC" # Let the user override the test.
3859else
3860 ac_prog_rejected=no
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003866 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3869 ac_prog_rejected=yes
3870 continue
3871 fi
3872 ac_cv_prog_CC="cc"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003874 break 2
3875 fi
3876done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003877 done
menderico4861bb82009-09-29 00:31:36 +00003878IFS=$as_save_IFS
3879
3880if test $ac_prog_rejected = yes; then
3881 # We found a bogon in the path, so make sure we never use it.
3882 set dummy $ac_cv_prog_CC
3883 shift
3884 if test $# != 0; then
3885 # We chose a different compiler from the bogus one.
3886 # However, it has the same basename, so the bogon will be chosen
3887 # first if we set CC to just the basename; use the full file name.
3888 shift
3889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3890 fi
3891fi
3892fi
3893fi
3894CC=$ac_cv_prog_CC
3895if test -n "$CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897$as_echo "$CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003898else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003901fi
3902
3903
3904fi
3905if test -z "$CC"; then
3906 if test -n "$ac_tool_prefix"; then
3907 for ac_prog in cl.exe
3908 do
3909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3910set dummy $ac_tool_prefix$ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003913if ${ac_cv_prog_CC+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003914 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003915else
3916 if test -n "$CC"; then
3917 ac_cv_prog_CC="$CC" # Let the user override the test.
3918else
3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920for as_dir in $PATH
3921do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003924 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3926 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003928 break 2
3929 fi
3930done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003931 done
menderico4861bb82009-09-29 00:31:36 +00003932IFS=$as_save_IFS
3933
3934fi
3935fi
3936CC=$ac_cv_prog_CC
3937if test -n "$CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939$as_echo "$CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003940else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003943fi
3944
3945
3946 test -n "$CC" && break
3947 done
3948fi
3949if test -z "$CC"; then
3950 ac_ct_CC=$CC
3951 for ac_prog in cl.exe
3952do
3953 # Extract the first word of "$ac_prog", so it can be a program name with args.
3954set dummy $ac_prog; ac_word=$2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956$as_echo_n "checking for $ac_word... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00003957if ${ac_cv_prog_ac_ct_CC+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003958 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00003959else
3960 if test -n "$ac_ct_CC"; then
3961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003968 for ac_exec_ext in '' $ac_executable_extensions; do
menderico4861bb82009-09-29 00:31:36 +00003969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3970 ac_cv_prog_ac_ct_CC="$ac_prog"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
menderico4861bb82009-09-29 00:31:36 +00003972 break 2
3973 fi
3974done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003975 done
menderico4861bb82009-09-29 00:31:36 +00003976IFS=$as_save_IFS
3977
3978fi
3979fi
3980ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981if test -n "$ac_ct_CC"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983$as_echo "$ac_ct_CC" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003984else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986$as_echo "no" >&6; }
menderico4861bb82009-09-29 00:31:36 +00003987fi
3988
3989
3990 test -n "$ac_ct_CC" && break
3991done
3992
3993 if test "x$ac_ct_CC" = x; then
3994 CC=""
3995 else
3996 case $cross_compiling:$ac_tool_warned in
3997yes:)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00003998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
menderico4861bb82009-09-29 00:31:36 +00004000ac_tool_warned=yes ;;
4001esac
4002 CC=$ac_ct_CC
4003 fi
4004fi
4005
4006fi
4007
4008
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004009test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004011as_fn_error $? "no acceptable C compiler found in \$PATH
4012See \`config.log' for more details" "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00004013
4014# Provide some information about the compiler.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004015$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4016set X $ac_compile
4017ac_compiler=$2
4018for ac_option in --version -v -V -qversion; do
4019 { { ac_try="$ac_compiler $ac_option >&5"
menderico4861bb82009-09-29 00:31:36 +00004020case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025$as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
menderico4861bb82009-09-29 00:31:36 +00004027 ac_status=$?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004028 if test -s conftest.err; then
4029 sed '10a\
4030... rest of stderr output deleted ...
4031 10q' conftest.err >conftest.er1
4032 cat conftest.er1 >&5
4033 fi
4034 rm -f conftest.er1 conftest.err
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }
4037done
menderico4861bb82009-09-29 00:31:36 +00004038
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4040$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004041if ${ac_cv_c_compiler_gnu+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004042 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004043else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004045/* end confdefs.h. */
4046
4047int
4048main ()
4049{
4050#ifndef __GNUC__
4051 choke me
4052#endif
4053
4054 ;
4055 return 0;
4056}
4057_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004058if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004059 ac_compiler_gnu=yes
4060else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004061 ac_compiler_gnu=no
menderico4861bb82009-09-29 00:31:36 +00004062fi
menderico4861bb82009-09-29 00:31:36 +00004063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064ac_cv_c_compiler_gnu=$ac_compiler_gnu
4065
4066fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4068$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4069if test $ac_compiler_gnu = yes; then
4070 GCC=yes
4071else
4072 GCC=
4073fi
menderico4861bb82009-09-29 00:31:36 +00004074ac_test_CFLAGS=${CFLAGS+set}
4075ac_save_CFLAGS=$CFLAGS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4077$as_echo_n "checking whether $CC accepts -g... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004078if ${ac_cv_prog_cc_g+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004079 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004080else
4081 ac_save_c_werror_flag=$ac_c_werror_flag
4082 ac_c_werror_flag=yes
4083 ac_cv_prog_cc_g=no
4084 CFLAGS="-g"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004086/* end confdefs.h. */
4087
4088int
4089main ()
4090{
4091
4092 ;
4093 return 0;
4094}
4095_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004096if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004097 ac_cv_prog_cc_g=yes
4098else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004099 CFLAGS=""
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004101/* end confdefs.h. */
4102
4103int
4104main ()
4105{
4106
4107 ;
4108 return 0;
4109}
4110_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004111if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004112
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004113else
4114 ac_c_werror_flag=$ac_save_c_werror_flag
menderico4861bb82009-09-29 00:31:36 +00004115 CFLAGS="-g"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004117/* end confdefs.h. */
4118
4119int
4120main ()
4121{
4122
4123 ;
4124 return 0;
4125}
4126_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004127if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004128 ac_cv_prog_cc_g=yes
menderico4861bb82009-09-29 00:31:36 +00004129fi
menderico4861bb82009-09-29 00:31:36 +00004130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131fi
menderico4861bb82009-09-29 00:31:36 +00004132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133fi
menderico4861bb82009-09-29 00:31:36 +00004134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 ac_c_werror_flag=$ac_save_c_werror_flag
4136fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4138$as_echo "$ac_cv_prog_cc_g" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004139if test "$ac_test_CFLAGS" = set; then
4140 CFLAGS=$ac_save_CFLAGS
4141elif test $ac_cv_prog_cc_g = yes; then
4142 if test "$GCC" = yes; then
4143 CFLAGS="-g -O2"
4144 else
4145 CFLAGS="-g"
4146 fi
4147else
4148 if test "$GCC" = yes; then
4149 CFLAGS="-O2"
4150 else
4151 CFLAGS=
4152 fi
4153fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4155$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004156if ${ac_cv_prog_cc_c89+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004157 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004158else
4159 ac_cv_prog_cc_c89=no
4160ac_save_CC=$CC
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004162/* end confdefs.h. */
4163#include <stdarg.h>
4164#include <stdio.h>
4165#include <sys/types.h>
4166#include <sys/stat.h>
4167/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4168struct buf { int x; };
4169FILE * (*rcsopen) (struct buf *, struct stat *, int);
4170static char *e (p, i)
4171 char **p;
4172 int i;
4173{
4174 return p[i];
4175}
4176static char *f (char * (*g) (char **, int), char **p, ...)
4177{
4178 char *s;
4179 va_list v;
4180 va_start (v,p);
4181 s = g (p, va_arg (v,int));
4182 va_end (v);
4183 return s;
4184}
4185
4186/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4187 function prototypes and stuff, but not '\xHH' hex character constants.
4188 These don't provoke an error unfortunately, instead are silently treated
4189 as 'x'. The following induces an error, until -std is added to get
4190 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4191 array size at least. It's necessary to write '\x00'==0 to get something
4192 that's true only with -std. */
4193int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4194
4195/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4196 inside strings and character constants. */
4197#define FOO(x) 'x'
4198int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4199
4200int test (int i, double x);
4201struct s1 {int (*f) (int a);};
4202struct s2 {int (*f) (double a);};
4203int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4204int argc;
4205char **argv;
4206int
4207main ()
4208{
4209return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4210 ;
4211 return 0;
4212}
4213_ACEOF
4214for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4215 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4216do
4217 CC="$ac_save_CC $ac_arg"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004218 if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004219 ac_cv_prog_cc_c89=$ac_arg
menderico4861bb82009-09-29 00:31:36 +00004220fi
menderico4861bb82009-09-29 00:31:36 +00004221rm -f core conftest.err conftest.$ac_objext
4222 test "x$ac_cv_prog_cc_c89" != "xno" && break
4223done
4224rm -f conftest.$ac_ext
4225CC=$ac_save_CC
4226
4227fi
4228# AC_CACHE_VAL
4229case "x$ac_cv_prog_cc_c89" in
4230 x)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232$as_echo "none needed" >&6; } ;;
menderico4861bb82009-09-29 00:31:36 +00004233 xno)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4235$as_echo "unsupported" >&6; } ;;
menderico4861bb82009-09-29 00:31:36 +00004236 *)
4237 CC="$CC $ac_cv_prog_cc_c89"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4239$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
menderico4861bb82009-09-29 00:31:36 +00004240esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004241if test "x$ac_cv_prog_cc_c89" != xno; then :
menderico4861bb82009-09-29 00:31:36 +00004242
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004243fi
menderico4861bb82009-09-29 00:31:36 +00004244
4245ac_ext=c
4246ac_cpp='$CPP $CPPFLAGS'
4247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250
4251depcc="$CC" am_compiler_list=
4252
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4254$as_echo_n "checking dependency style of $depcc... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004255if ${am_cv_CC_dependencies_compiler_type+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004256 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004257else
4258 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4259 # We make a subdir and do the tests there. Otherwise we can end up
4260 # making bogus files that we don't know about and never remove. For
4261 # instance it was reported that on HP-UX the gcc test will end up
4262 # making a dummy file named `D' -- because `-MD' means `put the output
4263 # in D'.
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004264 rm -rf conftest.dir
menderico4861bb82009-09-29 00:31:36 +00004265 mkdir conftest.dir
4266 # Copy depcomp to subdir because otherwise we won't find it if we're
4267 # using a relative directory.
4268 cp "$am_depcomp" conftest.dir
4269 cd conftest.dir
4270 # We will build objects and dependencies in a subdirectory because
4271 # it helps to detect inapplicable dependency modes. For instance
4272 # both Tru64's cc and ICC support -MD to output dependencies as a
4273 # side effect of compilation, but ICC will put the dependencies in
4274 # the current directory while Tru64 will put them in the object
4275 # directory.
4276 mkdir sub
4277
4278 am_cv_CC_dependencies_compiler_type=none
4279 if test "$am_compiler_list" = ""; then
4280 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4281 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004282 am__universal=false
4283 case " $depcc " in #(
4284 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4285 esac
4286
menderico4861bb82009-09-29 00:31:36 +00004287 for depmode in $am_compiler_list; do
4288 # Setup a source with many dependencies, because some compilers
4289 # like to wrap large dependency lists on column 80 (with \), and
4290 # we should not choose a depcomp mode which is confused by this.
4291 #
4292 # We need to recreate these files for each test, as the compiler may
4293 # overwrite some of them when testing with obscure command lines.
4294 # This happens at least with the AIX C compiler.
4295 : > sub/conftest.c
4296 for i in 1 2 3 4 5 6; do
4297 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4298 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4299 # Solaris 8's {/usr,}/bin/sh.
4300 touch sub/conftst$i.h
4301 done
4302 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4303
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004304 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4305 # mode. It turns out that the SunPro C++ compiler does not properly
4306 # handle `-M -o', and we need to detect this. Also, some Intel
4307 # versions had trouble with output in subdirs
4308 am__obj=sub/conftest.${OBJEXT-o}
4309 am__minus_obj="-o $am__obj"
menderico4861bb82009-09-29 00:31:36 +00004310 case $depmode in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004311 gcc)
4312 # This depmode causes a compiler race in universal mode.
4313 test "$am__universal" = false || continue
4314 ;;
menderico4861bb82009-09-29 00:31:36 +00004315 nosideeffect)
4316 # after this tag, mechanisms are not by side-effect, so they'll
4317 # only be used when explicitly requested
4318 if test "x$enable_dependency_tracking" = xyes; then
4319 continue
4320 else
4321 break
4322 fi
4323 ;;
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004324 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004325 # This compiler won't grok `-c -o', but also, the minuso test has
4326 # not run yet. These depmodes are late enough in the game, and
4327 # so weak that their functioning should not be impacted.
4328 am__obj=conftest.${OBJEXT-o}
4329 am__minus_obj=
4330 ;;
menderico4861bb82009-09-29 00:31:36 +00004331 none) break ;;
4332 esac
menderico4861bb82009-09-29 00:31:36 +00004333 if depmode=$depmode \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004334 source=sub/conftest.c object=$am__obj \
menderico4861bb82009-09-29 00:31:36 +00004335 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004336 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
menderico4861bb82009-09-29 00:31:36 +00004337 >/dev/null 2>conftest.err &&
4338 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4339 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004340 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
menderico4861bb82009-09-29 00:31:36 +00004341 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4342 # icc doesn't choke on unknown options, it will just issue warnings
4343 # or remarks (even with -Werror). So we grep stderr for any message
4344 # that says an option was ignored or not supported.
4345 # When given -MP, icc 7.0 and 7.1 complain thusly:
4346 # icc: Command line warning: ignoring option '-M'; no argument required
4347 # The diagnosis changed in icc 8.0:
4348 # icc: Command line remark: option '-MP' not supported
4349 if (grep 'ignoring option' conftest.err ||
4350 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4351 am_cv_CC_dependencies_compiler_type=$depmode
4352 break
4353 fi
4354 fi
4355 done
4356
4357 cd ..
4358 rm -rf conftest.dir
4359else
4360 am_cv_CC_dependencies_compiler_type=none
4361fi
4362
4363fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4365$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004366CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4367
4368 if
4369 test "x$enable_dependency_tracking" != xno \
4370 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4371 am__fastdepCC_TRUE=
4372 am__fastdepCC_FALSE='#'
4373else
4374 am__fastdepCC_TRUE='#'
4375 am__fastdepCC_FALSE=
4376fi
4377
4378
4379
4380#Getting user and host info
4381username=$(whoami)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking user ID" >&5
4383$as_echo_n "checking user ID... " >&6; }
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $username" >&5
4385$as_echo "$username" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004386
4387hostname=$(uname -n)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host name" >&5
4389$as_echo_n "checking host name... " >&6; }
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hostname" >&5
4391$as_echo "$hostname" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004392
4393timestamp=$(date)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking current timestamp" >&5
4395$as_echo_n "checking current timestamp... " >&6; }
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $timestamp" >&5
4397$as_echo "$timestamp" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004398
4399
4400cat >>confdefs.h <<_ACEOF
4401#define STRESSAPPTEST_TIMESTAMP "$username @ $hostname on $timestamp"
4402_ACEOF
4403
4404
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004405# Check whether --enable-default-optimizations was given.
4406if test "${enable_default_optimizations+set}" = set; then :
4407 enableval=$enable_default_optimizations;
4408fi
4409
4410if test x"$enable_default_optimizations" != xno; then :
4411
4412 #Default cxxflags
4413 CXXFLAGS="$CXXFLAGS -DCHECKOPTS"
nick.j.sanders72851352014-04-11 23:28:56 +00004414 CXXFLAGS="$CXXFLAGS -Wreturn-type -Wunused -Wuninitialized -Wall"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004415 CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops -funroll-loops -DNDEBUG"
4416
4417fi
menderico4861bb82009-09-29 00:31:36 +00004418
4419# Checks for header files.
4420
menderico4861bb82009-09-29 00:31:36 +00004421ac_header_dirent=no
4422for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004423 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4425$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004426if eval \${$as_ac_Header+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004427 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004428else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004430/* end confdefs.h. */
4431#include <sys/types.h>
4432#include <$ac_hdr>
4433
4434int
4435main ()
4436{
4437if ((DIR *) 0)
4438return 0;
4439 ;
4440 return 0;
4441}
4442_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004443if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004444 eval "$as_ac_Header=yes"
4445else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004446 eval "$as_ac_Header=no"
menderico4861bb82009-09-29 00:31:36 +00004447fi
menderico4861bb82009-09-29 00:31:36 +00004448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004450eval ac_res=\$$as_ac_Header
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4452$as_echo "$ac_res" >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004453if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
menderico4861bb82009-09-29 00:31:36 +00004454 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004455#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00004456_ACEOF
4457
4458ac_header_dirent=$ac_hdr; break
4459fi
4460
4461done
4462# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4463if test $ac_header_dirent = dirent.h; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4465$as_echo_n "checking for library containing opendir... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004466if ${ac_cv_search_opendir+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004467 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004468else
4469 ac_func_search_save_LIBS=$LIBS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004471/* end confdefs.h. */
4472
4473/* Override any GCC internal prototype to avoid an error.
4474 Use char because int might match the return type of a GCC
4475 builtin and then its argument prototype would still apply. */
4476#ifdef __cplusplus
4477extern "C"
4478#endif
4479char opendir ();
4480int
4481main ()
4482{
4483return opendir ();
4484 ;
4485 return 0;
4486}
4487_ACEOF
4488for ac_lib in '' dir; do
4489 if test -z "$ac_lib"; then
4490 ac_res="none required"
4491 else
4492 ac_res=-l$ac_lib
4493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4494 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004495 if ac_fn_c_try_link "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004496 ac_cv_search_opendir=$ac_res
menderico4861bb82009-09-29 00:31:36 +00004497fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004498rm -f core conftest.err conftest.$ac_objext \
4499 conftest$ac_exeext
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004500 if ${ac_cv_search_opendir+:} false; then :
menderico4861bb82009-09-29 00:31:36 +00004501 break
4502fi
4503done
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004504if ${ac_cv_search_opendir+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004505
menderico4861bb82009-09-29 00:31:36 +00004506else
4507 ac_cv_search_opendir=no
4508fi
4509rm conftest.$ac_ext
4510LIBS=$ac_func_search_save_LIBS
4511fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4513$as_echo "$ac_cv_search_opendir" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004514ac_res=$ac_cv_search_opendir
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004515if test "$ac_res" != no; then :
menderico4861bb82009-09-29 00:31:36 +00004516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4517
4518fi
4519
4520else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4522$as_echo_n "checking for library containing opendir... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004523if ${ac_cv_search_opendir+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004524 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004525else
4526 ac_func_search_save_LIBS=$LIBS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004528/* end confdefs.h. */
4529
4530/* Override any GCC internal prototype to avoid an error.
4531 Use char because int might match the return type of a GCC
4532 builtin and then its argument prototype would still apply. */
4533#ifdef __cplusplus
4534extern "C"
4535#endif
4536char opendir ();
4537int
4538main ()
4539{
4540return opendir ();
4541 ;
4542 return 0;
4543}
4544_ACEOF
4545for ac_lib in '' x; do
4546 if test -z "$ac_lib"; then
4547 ac_res="none required"
4548 else
4549 ac_res=-l$ac_lib
4550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4551 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004552 if ac_fn_c_try_link "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004553 ac_cv_search_opendir=$ac_res
menderico4861bb82009-09-29 00:31:36 +00004554fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004555rm -f core conftest.err conftest.$ac_objext \
4556 conftest$ac_exeext
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004557 if ${ac_cv_search_opendir+:} false; then :
menderico4861bb82009-09-29 00:31:36 +00004558 break
4559fi
4560done
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004561if ${ac_cv_search_opendir+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004562
menderico4861bb82009-09-29 00:31:36 +00004563else
4564 ac_cv_search_opendir=no
4565fi
4566rm conftest.$ac_ext
4567LIBS=$ac_func_search_save_LIBS
4568fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4570$as_echo "$ac_cv_search_opendir" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004571ac_res=$ac_cv_search_opendir
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004572if test "$ac_res" != no; then :
menderico4861bb82009-09-29 00:31:36 +00004573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4574
4575fi
4576
4577fi
4578
4579ac_ext=c
4580ac_cpp='$CPP $CPPFLAGS'
4581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583ac_compiler_gnu=$ac_cv_c_compiler_gnu
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4585$as_echo_n "checking how to run the C preprocessor... " >&6; }
menderico4861bb82009-09-29 00:31:36 +00004586# On Suns, sometimes $CPP names a directory.
4587if test -n "$CPP" && test -d "$CPP"; then
4588 CPP=
4589fi
4590if test -z "$CPP"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004591 if ${ac_cv_prog_CPP+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004592 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004593else
4594 # Double quotes because CPP needs to be expanded
4595 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4596 do
4597 ac_preproc_ok=false
4598for ac_c_preproc_warn_flag in '' yes
4599do
4600 # Use a header file that comes with gcc, so configuring glibc
4601 # with a fresh cross-compiler works.
4602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4603 # <limits.h> exists even on freestanding compilers.
4604 # On the NeXT, cc -E runs the code through the compiler's parser,
4605 # not just through cpp. "Syntax error" is here to catch this case.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004607/* end confdefs.h. */
4608#ifdef __STDC__
4609# include <limits.h>
4610#else
4611# include <assert.h>
4612#endif
4613 Syntax error
4614_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004615if ac_fn_c_try_cpp "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004616
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004617else
menderico4861bb82009-09-29 00:31:36 +00004618 # Broken: fails on valid input.
4619continue
4620fi
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004621rm -f conftest.err conftest.i conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004622
4623 # OK, works on sane cases. Now check whether nonexistent headers
4624 # can be detected and how.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004626/* end confdefs.h. */
4627#include <ac_nonexistent.h>
4628_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004629if ac_fn_c_try_cpp "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004630 # Broken: success on invalid input.
4631continue
4632else
menderico4861bb82009-09-29 00:31:36 +00004633 # Passes both tests.
4634ac_preproc_ok=:
4635break
4636fi
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004637rm -f conftest.err conftest.i conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004638
4639done
4640# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004641rm -f conftest.i conftest.err conftest.$ac_ext
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004642if $ac_preproc_ok; then :
menderico4861bb82009-09-29 00:31:36 +00004643 break
4644fi
4645
4646 done
4647 ac_cv_prog_CPP=$CPP
4648
4649fi
4650 CPP=$ac_cv_prog_CPP
4651else
4652 ac_cv_prog_CPP=$CPP
4653fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4655$as_echo "$CPP" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004656ac_preproc_ok=false
4657for ac_c_preproc_warn_flag in '' yes
4658do
4659 # Use a header file that comes with gcc, so configuring glibc
4660 # with a fresh cross-compiler works.
4661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4662 # <limits.h> exists even on freestanding compilers.
4663 # On the NeXT, cc -E runs the code through the compiler's parser,
4664 # not just through cpp. "Syntax error" is here to catch this case.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004666/* end confdefs.h. */
4667#ifdef __STDC__
4668# include <limits.h>
4669#else
4670# include <assert.h>
4671#endif
4672 Syntax error
4673_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004674if ac_fn_c_try_cpp "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004675
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004676else
menderico4861bb82009-09-29 00:31:36 +00004677 # Broken: fails on valid input.
4678continue
4679fi
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004680rm -f conftest.err conftest.i conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004681
4682 # OK, works on sane cases. Now check whether nonexistent headers
4683 # can be detected and how.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004685/* end confdefs.h. */
4686#include <ac_nonexistent.h>
4687_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004688if ac_fn_c_try_cpp "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004689 # Broken: success on invalid input.
4690continue
4691else
menderico4861bb82009-09-29 00:31:36 +00004692 # Passes both tests.
4693ac_preproc_ok=:
4694break
4695fi
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004696rm -f conftest.err conftest.i conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004697
4698done
4699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004700rm -f conftest.i conftest.err conftest.$ac_ext
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004701if $ac_preproc_ok; then :
4702
menderico4861bb82009-09-29 00:31:36 +00004703else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004706as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4707See \`config.log' for more details" "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00004708fi
4709
4710ac_ext=c
4711ac_cpp='$CPP $CPPFLAGS'
4712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714ac_compiler_gnu=$ac_cv_c_compiler_gnu
4715
4716
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4718$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004719if ${ac_cv_path_GREP+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004720 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004721else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004722 if test -z "$GREP"; then
menderico4861bb82009-09-29 00:31:36 +00004723 ac_path_GREP_found=false
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004724 # Loop through the user's path and test for each of PROGNAME-LIST
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
menderico4861bb82009-09-29 00:31:36 +00004726for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4727do
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004730 for ac_prog in grep ggrep; do
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4733 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4734# Check for GNU ac_path_GREP and select it if it is found.
menderico4861bb82009-09-29 00:31:36 +00004735 # Check for GNU $ac_path_GREP
4736case `"$ac_path_GREP" --version 2>&1` in
4737*GNU*)
4738 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4739*)
4740 ac_count=0
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004741 $as_echo_n 0123456789 >"conftest.in"
menderico4861bb82009-09-29 00:31:36 +00004742 while :
4743 do
4744 cat "conftest.in" "conftest.in" >"conftest.tmp"
4745 mv "conftest.tmp" "conftest.in"
4746 cp "conftest.in" "conftest.nl"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004747 $as_echo 'GREP' >> "conftest.nl"
menderico4861bb82009-09-29 00:31:36 +00004748 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004750 as_fn_arith $ac_count + 1 && ac_count=$as_val
menderico4861bb82009-09-29 00:31:36 +00004751 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4752 # Best one so far, save it but keep looking for a better one
4753 ac_cv_path_GREP="$ac_path_GREP"
4754 ac_path_GREP_max=$ac_count
4755 fi
4756 # 10*(2^10) chars as input seems more than enough
4757 test $ac_count -gt 10 && break
4758 done
4759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4760esac
4761
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004762 $ac_path_GREP_found && break 3
4763 done
menderico4861bb82009-09-29 00:31:36 +00004764 done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004765 done
menderico4861bb82009-09-29 00:31:36 +00004766IFS=$as_save_IFS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004767 if test -z "$ac_cv_path_GREP"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004768 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 +00004769 fi
menderico4861bb82009-09-29 00:31:36 +00004770else
4771 ac_cv_path_GREP=$GREP
4772fi
4773
menderico4861bb82009-09-29 00:31:36 +00004774fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4776$as_echo "$ac_cv_path_GREP" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004777 GREP="$ac_cv_path_GREP"
4778
4779
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4781$as_echo_n "checking for egrep... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004782if ${ac_cv_path_EGREP+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004783 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004784else
4785 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4786 then ac_cv_path_EGREP="$GREP -E"
4787 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004788 if test -z "$EGREP"; then
menderico4861bb82009-09-29 00:31:36 +00004789 ac_path_EGREP_found=false
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004790 # Loop through the user's path and test for each of PROGNAME-LIST
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
menderico4861bb82009-09-29 00:31:36 +00004792for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4793do
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004796 for ac_prog in egrep; do
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4799 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4800# Check for GNU ac_path_EGREP and select it if it is found.
menderico4861bb82009-09-29 00:31:36 +00004801 # Check for GNU $ac_path_EGREP
4802case `"$ac_path_EGREP" --version 2>&1` in
4803*GNU*)
4804 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4805*)
4806 ac_count=0
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004807 $as_echo_n 0123456789 >"conftest.in"
menderico4861bb82009-09-29 00:31:36 +00004808 while :
4809 do
4810 cat "conftest.in" "conftest.in" >"conftest.tmp"
4811 mv "conftest.tmp" "conftest.in"
4812 cp "conftest.in" "conftest.nl"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004813 $as_echo 'EGREP' >> "conftest.nl"
menderico4861bb82009-09-29 00:31:36 +00004814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004816 as_fn_arith $ac_count + 1 && ac_count=$as_val
menderico4861bb82009-09-29 00:31:36 +00004817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4818 # Best one so far, save it but keep looking for a better one
4819 ac_cv_path_EGREP="$ac_path_EGREP"
4820 ac_path_EGREP_max=$ac_count
4821 fi
4822 # 10*(2^10) chars as input seems more than enough
4823 test $ac_count -gt 10 && break
4824 done
4825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4826esac
4827
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004828 $ac_path_EGREP_found && break 3
4829 done
menderico4861bb82009-09-29 00:31:36 +00004830 done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004831 done
menderico4861bb82009-09-29 00:31:36 +00004832IFS=$as_save_IFS
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004833 if test -z "$ac_cv_path_EGREP"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004834 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 +00004835 fi
menderico4861bb82009-09-29 00:31:36 +00004836else
4837 ac_cv_path_EGREP=$EGREP
4838fi
4839
menderico4861bb82009-09-29 00:31:36 +00004840 fi
4841fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4843$as_echo "$ac_cv_path_EGREP" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004844 EGREP="$ac_cv_path_EGREP"
4845
4846
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4848$as_echo_n "checking for ANSI C header files... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004849if ${ac_cv_header_stdc+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004850 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00004851else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004853/* end confdefs.h. */
4854#include <stdlib.h>
4855#include <stdarg.h>
4856#include <string.h>
4857#include <float.h>
4858
4859int
4860main ()
4861{
4862
4863 ;
4864 return 0;
4865}
4866_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004867if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00004868 ac_cv_header_stdc=yes
4869else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004870 ac_cv_header_stdc=no
menderico4861bb82009-09-29 00:31:36 +00004871fi
menderico4861bb82009-09-29 00:31:36 +00004872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873
4874if test $ac_cv_header_stdc = yes; then
4875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004877/* end confdefs.h. */
4878#include <string.h>
4879
4880_ACEOF
4881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004882 $EGREP "memchr" >/dev/null 2>&1; then :
4883
menderico4861bb82009-09-29 00:31:36 +00004884else
4885 ac_cv_header_stdc=no
4886fi
4887rm -f conftest*
4888
4889fi
4890
4891if test $ac_cv_header_stdc = yes; then
4892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004894/* end confdefs.h. */
4895#include <stdlib.h>
4896
4897_ACEOF
4898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004899 $EGREP "free" >/dev/null 2>&1; then :
4900
menderico4861bb82009-09-29 00:31:36 +00004901else
4902 ac_cv_header_stdc=no
4903fi
4904rm -f conftest*
4905
4906fi
4907
4908if test $ac_cv_header_stdc = yes; then
4909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004910 if test "$cross_compiling" = yes; then :
menderico4861bb82009-09-29 00:31:36 +00004911 :
4912else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004914/* end confdefs.h. */
4915#include <ctype.h>
4916#include <stdlib.h>
4917#if ((' ' & 0x0FF) == 0x020)
4918# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4919# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4920#else
4921# define ISLOWER(c) \
4922 (('a' <= (c) && (c) <= 'i') \
4923 || ('j' <= (c) && (c) <= 'r') \
4924 || ('s' <= (c) && (c) <= 'z'))
4925# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4926#endif
4927
4928#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4929int
4930main ()
4931{
4932 int i;
4933 for (i = 0; i < 256; i++)
4934 if (XOR (islower (i), ISLOWER (i))
4935 || toupper (i) != TOUPPER (i))
4936 return 2;
4937 return 0;
4938}
4939_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004940if ac_fn_c_try_run "$LINENO"; then :
4941
menderico4861bb82009-09-29 00:31:36 +00004942else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004943 ac_cv_header_stdc=no
menderico4861bb82009-09-29 00:31:36 +00004944fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4946 conftest.$ac_objext conftest.beam conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00004947fi
4948
menderico4861bb82009-09-29 00:31:36 +00004949fi
4950fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4952$as_echo "$ac_cv_header_stdc" >&6; }
menderico4861bb82009-09-29 00:31:36 +00004953if test $ac_cv_header_stdc = yes; then
4954
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004955$as_echo "#define STDC_HEADERS 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00004956
4957fi
4958
nick.j.sandersaeef0912013-01-07 20:07:28 +00004959# Skip malloc.h to prevent redefinition of HAVE_MALLOC_H on some platforms
menderico4861bb82009-09-29 00:31:36 +00004960# On IRIX 5.3, sys/types and inttypes.h are conflicting.
menderico4861bb82009-09-29 00:31:36 +00004961for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4962 inttypes.h stdint.h unistd.h
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004963do :
4964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4965ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4966"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004967if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
menderico4861bb82009-09-29 00:31:36 +00004968 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004969#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00004970_ACEOF
4971
4972fi
4973
4974done
4975
4976
nick.j.sandersaeef0912013-01-07 20:07:28 +00004977for 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 +00004978do :
4979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4980ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004981if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
menderico4861bb82009-09-29 00:31:36 +00004982 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004983#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00004984_ACEOF
4985
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004986else
4987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004989as_fn_error $? "Missing some header files.
4990See \`config.log' for more details" "$LINENO" 5; }
menderico4861bb82009-09-29 00:31:36 +00004991fi
4992
4993done
4994
nick.j.sanders3f2289d2011-11-11 00:34:37 +00004995for ac_header in pthread.h
4996do :
4997 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00004998if test "x$ac_cv_header_pthread_h" = xyes; then :
nick.j.sanderseea0aac2010-03-12 03:35:04 +00004999 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005000#define HAVE_PTHREAD_H 1
nick.j.sanderseea0aac2010-03-12 03:35:04 +00005001_ACEOF
5002
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005003fi
5004
5005done
5006
nick.j.sandersaeef0912013-01-07 20:07:28 +00005007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
5008$as_echo_n "checking for library containing pthread_create... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005009if ${ac_cv_search_pthread_create+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005010 $as_echo_n "(cached) " >&6
5011else
5012 ac_func_search_save_LIBS=$LIBS
5013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014/* end confdefs.h. */
5015
5016/* Override any GCC internal prototype to avoid an error.
5017 Use char because int might match the return type of a GCC
5018 builtin and then its argument prototype would still apply. */
5019#ifdef __cplusplus
5020extern "C"
5021#endif
5022char pthread_create ();
5023int
5024main ()
5025{
5026return pthread_create ();
5027 ;
5028 return 0;
5029}
5030_ACEOF
5031for ac_lib in '' pthread; do
5032 if test -z "$ac_lib"; then
5033 ac_res="none required"
5034 else
5035 ac_res=-l$ac_lib
5036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5037 fi
5038 if ac_fn_c_try_link "$LINENO"; then :
5039 ac_cv_search_pthread_create=$ac_res
5040fi
5041rm -f core conftest.err conftest.$ac_objext \
5042 conftest$ac_exeext
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005043 if ${ac_cv_search_pthread_create+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005044 break
5045fi
5046done
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005047if ${ac_cv_search_pthread_create+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005048
5049else
5050 ac_cv_search_pthread_create=no
5051fi
5052rm conftest.$ac_ext
5053LIBS=$ac_func_search_save_LIBS
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
5056$as_echo "$ac_cv_search_pthread_create" >&6; }
5057ac_res=$ac_cv_search_pthread_create
5058if test "$ac_res" != no; then :
5059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5060
5061fi
5062
nick.j.sanders34f025d2013-01-09 21:13:13 +00005063ac_fn_c_check_type "$LINENO" "pthread_barrier_t" "ac_cv_type_pthread_barrier_t" "$ac_includes_default"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005064if test "x$ac_cv_type_pthread_barrier_t" = xyes; then :
nick.j.sanders34f025d2013-01-09 21:13:13 +00005065
5066$as_echo "#define HAVE_PTHREAD_BARRIERS 1" >>confdefs.h
5067
5068fi
5069
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005070for ac_header in libaio.h
5071do :
5072 ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005073if test "x$ac_cv_header_libaio_h" = xyes; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005074 cat >>confdefs.h <<_ACEOF
5075#define HAVE_LIBAIO_H 1
5076_ACEOF
5077
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005078fi
5079
5080done
5081
nick.j.sandersaeef0912013-01-07 20:07:28 +00005082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing io_setup" >&5
5083$as_echo_n "checking for library containing io_setup... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005084if ${ac_cv_search_io_setup+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005085 $as_echo_n "(cached) " >&6
5086else
5087 ac_func_search_save_LIBS=$LIBS
5088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089/* end confdefs.h. */
5090
5091/* Override any GCC internal prototype to avoid an error.
5092 Use char because int might match the return type of a GCC
5093 builtin and then its argument prototype would still apply. */
5094#ifdef __cplusplus
5095extern "C"
5096#endif
5097char io_setup ();
5098int
5099main ()
5100{
5101return io_setup ();
5102 ;
5103 return 0;
5104}
5105_ACEOF
5106for ac_lib in '' aio; do
5107 if test -z "$ac_lib"; then
5108 ac_res="none required"
5109 else
5110 ac_res=-l$ac_lib
5111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5112 fi
5113 if ac_fn_c_try_link "$LINENO"; then :
5114 ac_cv_search_io_setup=$ac_res
5115fi
5116rm -f core conftest.err conftest.$ac_objext \
5117 conftest$ac_exeext
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005118 if ${ac_cv_search_io_setup+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005119 break
5120fi
5121done
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005122if ${ac_cv_search_io_setup+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005123
5124else
5125 ac_cv_search_io_setup=no
5126fi
5127rm conftest.$ac_ext
5128LIBS=$ac_func_search_save_LIBS
5129fi
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_io_setup" >&5
5131$as_echo "$ac_cv_search_io_setup" >&6; }
5132ac_res=$ac_cv_search_io_setup
5133if test "$ac_res" != no; then :
5134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5135
5136fi
5137
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005138for ac_header in sys/shm.h
5139do :
5140 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005141if test "x$ac_cv_header_sys_shm_h" = xyes; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005142 cat >>confdefs.h <<_ACEOF
5143#define HAVE_SYS_SHM_H 1
5144_ACEOF
5145
nick.j.sanderseea0aac2010-03-12 03:35:04 +00005146fi
5147
5148done
5149
nick.j.sandersaeef0912013-01-07 20:07:28 +00005150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
5151$as_echo_n "checking for library containing shm_open... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005152if ${ac_cv_search_shm_open+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005153 $as_echo_n "(cached) " >&6
5154else
5155 ac_func_search_save_LIBS=$LIBS
5156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157/* end confdefs.h. */
5158
5159/* Override any GCC internal prototype to avoid an error.
5160 Use char because int might match the return type of a GCC
5161 builtin and then its argument prototype would still apply. */
5162#ifdef __cplusplus
5163extern "C"
5164#endif
5165char shm_open ();
5166int
5167main ()
5168{
5169return shm_open ();
5170 ;
5171 return 0;
5172}
5173_ACEOF
5174for ac_lib in '' rt; do
5175 if test -z "$ac_lib"; then
5176 ac_res="none required"
5177 else
5178 ac_res=-l$ac_lib
5179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5180 fi
5181 if ac_fn_c_try_link "$LINENO"; then :
5182 ac_cv_search_shm_open=$ac_res
5183fi
5184rm -f core conftest.err conftest.$ac_objext \
5185 conftest$ac_exeext
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005186 if ${ac_cv_search_shm_open+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005187 break
5188fi
5189done
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005190if ${ac_cv_search_shm_open+:} false; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005191
5192else
5193 ac_cv_search_shm_open=no
5194fi
5195rm conftest.$ac_ext
5196LIBS=$ac_func_search_save_LIBS
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
5199$as_echo "$ac_cv_search_shm_open" >&6; }
5200ac_res=$ac_cv_search_shm_open
5201if test "$ac_res" != no; then :
5202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5203
5204fi
5205
nick.j.sanderseea0aac2010-03-12 03:35:04 +00005206
nick.j.sandersef1c9352013-01-09 09:10:08 +00005207
menderico4861bb82009-09-29 00:31:36 +00005208# Checks for typedefs, structures, and compiler characteristics.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5210$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005211if ${ac_cv_header_stdbool_h+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005212 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005213else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005215/* end confdefs.h. */
5216
5217#include <stdbool.h>
5218#ifndef bool
5219 "error: bool is not defined"
5220#endif
5221#ifndef false
5222 "error: false is not defined"
5223#endif
5224#if false
5225 "error: false is not 0"
5226#endif
5227#ifndef true
5228 "error: true is not defined"
5229#endif
5230#if true != 1
5231 "error: true is not 1"
5232#endif
5233#ifndef __bool_true_false_are_defined
5234 "error: __bool_true_false_are_defined is not defined"
5235#endif
5236
5237 struct s { _Bool s: 1; _Bool t; } s;
5238
5239 char a[true == 1 ? 1 : -1];
5240 char b[false == 0 ? 1 : -1];
5241 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5242 char d[(bool) 0.5 == true ? 1 : -1];
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005243 /* See body of main program for 'e'. */
menderico4861bb82009-09-29 00:31:36 +00005244 char f[(_Bool) 0.0 == false ? 1 : -1];
5245 char g[true];
5246 char h[sizeof (_Bool)];
5247 char i[sizeof s.t];
5248 enum { j = false, k = true, l = false * true, m = true * 256 };
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005249 /* The following fails for
5250 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
menderico4861bb82009-09-29 00:31:36 +00005251 _Bool n[m];
5252 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5253 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
menderico4861bb82009-09-29 00:31:36 +00005254 /* Catch a bug in an HP-UX C compiler. See
5255 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5256 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5257 */
5258 _Bool q = true;
5259 _Bool *pq = &q;
5260
5261int
5262main ()
5263{
5264
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005265 bool e = &s;
menderico4861bb82009-09-29 00:31:36 +00005266 *pq |= q;
5267 *pq |= ! q;
5268 /* Refer to every declared value, to avoid compiler optimizations. */
5269 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5270 + !m + !n + !o + !p + !q + !pq);
5271
5272 ;
5273 return 0;
5274}
5275_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005276if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005277 ac_cv_header_stdbool_h=yes
5278else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005279 ac_cv_header_stdbool_h=no
menderico4861bb82009-09-29 00:31:36 +00005280fi
menderico4861bb82009-09-29 00:31:36 +00005281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5284$as_echo "$ac_cv_header_stdbool_h" >&6; }
5285ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005286if test "x$ac_cv_type__Bool" = xyes; then :
menderico4861bb82009-09-29 00:31:36 +00005287
5288cat >>confdefs.h <<_ACEOF
5289#define HAVE__BOOL 1
5290_ACEOF
5291
5292
5293fi
5294
5295if test $ac_cv_header_stdbool_h = yes; then
5296
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005297$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005298
5299fi
5300
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5302$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005303if ${ac_cv_c_const+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005304 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005305else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005307/* end confdefs.h. */
5308
5309int
5310main ()
5311{
5312/* FIXME: Include the comments suggested by Paul. */
5313#ifndef __cplusplus
5314 /* Ultrix mips cc rejects this. */
5315 typedef int charset[2];
5316 const charset cs;
5317 /* SunOS 4.1.1 cc rejects this. */
5318 char const *const *pcpcc;
5319 char **ppc;
5320 /* NEC SVR4.0.2 mips cc rejects this. */
5321 struct point {int x, y;};
5322 static struct point const zero = {0,0};
5323 /* AIX XL C 1.02.0.0 rejects this.
5324 It does not let you subtract one const X* pointer from another in
5325 an arm of an if-expression whose if-part is not a constant
5326 expression */
5327 const char *g = "string";
5328 pcpcc = &g + (g ? g-g : 0);
5329 /* HPUX 7.0 cc rejects these. */
5330 ++pcpcc;
5331 ppc = (char**) pcpcc;
5332 pcpcc = (char const *const *) ppc;
5333 { /* SCO 3.2v4 cc rejects this. */
5334 char *t;
5335 char const *s = 0 ? (char *) 0 : (char const *) 0;
5336
5337 *t++ = 0;
5338 if (s) return 0;
5339 }
5340 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5341 int x[] = {25, 17};
5342 const int *foo = &x[0];
5343 ++foo;
5344 }
5345 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5346 typedef const int *iptr;
5347 iptr p = 0;
5348 ++p;
5349 }
5350 { /* AIX XL C 1.02.0.0 rejects this saying
5351 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5352 struct s { int j; const int *ap[3]; };
5353 struct s *b; b->j = 5;
5354 }
5355 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5356 const int foo = 10;
5357 if (!foo) return 0;
5358 }
5359 return !cs[0] && !zero.x;
5360#endif
5361
5362 ;
5363 return 0;
5364}
5365_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005366if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005367 ac_cv_c_const=yes
5368else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005369 ac_cv_c_const=no
menderico4861bb82009-09-29 00:31:36 +00005370fi
menderico4861bb82009-09-29 00:31:36 +00005371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5374$as_echo "$ac_cv_c_const" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005375if test $ac_cv_c_const = no; then
5376
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005377$as_echo "#define const /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005378
5379fi
5380
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5382$as_echo_n "checking for inline... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005383if ${ac_cv_c_inline+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005384 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005385else
5386 ac_cv_c_inline=no
5387for ac_kw in inline __inline__ __inline; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005389/* end confdefs.h. */
5390#ifndef __cplusplus
5391typedef int foo_t;
5392static $ac_kw foo_t static_foo () {return 0; }
5393$ac_kw foo_t foo () {return 0; }
5394#endif
5395
5396_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005397if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005398 ac_cv_c_inline=$ac_kw
menderico4861bb82009-09-29 00:31:36 +00005399fi
menderico4861bb82009-09-29 00:31:36 +00005400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 test "$ac_cv_c_inline" != no && break
5402done
5403
5404fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5406$as_echo "$ac_cv_c_inline" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005407
5408case $ac_cv_c_inline in
5409 inline | yes) ;;
5410 *)
5411 case $ac_cv_c_inline in
5412 no) ac_val=;;
5413 *) ac_val=$ac_cv_c_inline;;
5414 esac
5415 cat >>confdefs.h <<_ACEOF
5416#ifndef __cplusplus
5417#define inline $ac_val
5418#endif
5419_ACEOF
5420 ;;
5421esac
5422
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005423ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005424if test "x$ac_cv_type_pid_t" = xyes; then :
menderico4861bb82009-09-29 00:31:36 +00005425
menderico4861bb82009-09-29 00:31:36 +00005426else
5427
5428cat >>confdefs.h <<_ACEOF
5429#define pid_t int
5430_ACEOF
5431
5432fi
5433
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5435$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005436if ${ac_cv_c_restrict+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005437 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005438else
5439 ac_cv_c_restrict=no
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005440 # The order here caters to the fact that C++ does not require restrict.
5441 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005443/* end confdefs.h. */
5444typedef int * int_ptr;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005445 int foo (int_ptr $ac_kw ip) {
5446 return ip[0];
menderico4861bb82009-09-29 00:31:36 +00005447 }
5448int
5449main ()
5450{
5451int s[1];
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005452 int * $ac_kw t = s;
5453 t[0] = 0;
5454 return foo(t)
menderico4861bb82009-09-29 00:31:36 +00005455 ;
5456 return 0;
5457}
5458_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005459if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005460 ac_cv_c_restrict=$ac_kw
menderico4861bb82009-09-29 00:31:36 +00005461fi
menderico4861bb82009-09-29 00:31:36 +00005462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 test "$ac_cv_c_restrict" != no && break
5464 done
5465
5466fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5468$as_echo "$ac_cv_c_restrict" >&6; }
5469
menderico4861bb82009-09-29 00:31:36 +00005470 case $ac_cv_c_restrict in
5471 restrict) ;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005472 no) $as_echo "#define restrict /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005473 ;;
5474 *) cat >>confdefs.h <<_ACEOF
5475#define restrict $ac_cv_c_restrict
5476_ACEOF
5477 ;;
5478 esac
5479
nick.j.sandersaeef0912013-01-07 20:07:28 +00005480ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005481if test "x$ac_cv_type_size_t" = xyes; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005482
5483else
5484
5485cat >>confdefs.h <<_ACEOF
5486#define size_t unsigned int
5487_ACEOF
5488
5489fi
5490
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005491ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005492if test "x$ac_cv_type_ssize_t" = xyes; then :
menderico4861bb82009-09-29 00:31:36 +00005493
menderico4861bb82009-09-29 00:31:36 +00005494else
5495
5496cat >>confdefs.h <<_ACEOF
5497#define ssize_t int
5498_ACEOF
5499
5500fi
5501
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5503$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005504if ${ac_cv_header_time+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005505 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005506else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005508/* end confdefs.h. */
5509#include <sys/types.h>
5510#include <sys/time.h>
5511#include <time.h>
5512
5513int
5514main ()
5515{
5516if ((struct tm *) 0)
5517return 0;
5518 ;
5519 return 0;
5520}
5521_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005522if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005523 ac_cv_header_time=yes
5524else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005525 ac_cv_header_time=no
menderico4861bb82009-09-29 00:31:36 +00005526fi
menderico4861bb82009-09-29 00:31:36 +00005527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5530$as_echo "$ac_cv_header_time" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005531if test $ac_cv_header_time = yes; then
5532
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005533$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005534
5535fi
5536
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005537ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5538case $ac_cv_c_uint16_t in #(
menderico4861bb82009-09-29 00:31:36 +00005539 no|yes) ;; #(
5540 *)
5541
5542
5543cat >>confdefs.h <<_ACEOF
5544#define uint16_t $ac_cv_c_uint16_t
5545_ACEOF
5546;;
5547 esac
5548
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5550$as_echo_n "checking for working volatile... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005551if ${ac_cv_c_volatile+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005552 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005553else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005555/* end confdefs.h. */
5556
5557int
5558main ()
5559{
5560
5561volatile int x;
5562int * volatile y = (int *) 0;
5563return !x && !y;
5564 ;
5565 return 0;
5566}
5567_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005568if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005569 ac_cv_c_volatile=yes
5570else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005571 ac_cv_c_volatile=no
menderico4861bb82009-09-29 00:31:36 +00005572fi
menderico4861bb82009-09-29 00:31:36 +00005573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5576$as_echo "$ac_cv_c_volatile" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005577if test $ac_cv_c_volatile = no; then
5578
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005579$as_echo "#define volatile /**/" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005580
5581fi
5582
5583
nick.j.sanders6d1e64d2010-05-14 03:47:11 +00005584
menderico4861bb82009-09-29 00:31:36 +00005585# Checks for library functions.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5587$as_echo_n "checking whether closedir returns void... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005588if ${ac_cv_func_closedir_void+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005589 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005590else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005591 if test "$cross_compiling" = yes; then :
menderico4861bb82009-09-29 00:31:36 +00005592 ac_cv_func_closedir_void=yes
5593else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005595/* end confdefs.h. */
5596$ac_includes_default
5597#include <$ac_header_dirent>
5598#ifndef __cplusplus
5599int closedir ();
5600#endif
5601
5602int
5603main ()
5604{
5605return closedir (opendir (".")) != 0;
5606 ;
5607 return 0;
5608}
5609_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005610if ac_fn_c_try_run "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005611 ac_cv_func_closedir_void=no
5612else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005613 ac_cv_func_closedir_void=yes
menderico4861bb82009-09-29 00:31:36 +00005614fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5616 conftest.$ac_objext conftest.beam conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005617fi
5618
menderico4861bb82009-09-29 00:31:36 +00005619fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5621$as_echo "$ac_cv_func_closedir_void" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005622if test $ac_cv_func_closedir_void = yes; then
5623
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005624$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005625
5626fi
5627
5628if test $ac_cv_c_compiler_gnu = yes; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5630$as_echo_n "checking whether $CC needs -traditional... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005631if ${ac_cv_prog_gcc_traditional+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005632 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005633else
5634 ac_pattern="Autoconf.*'x'"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005636/* end confdefs.h. */
5637#include <sgtty.h>
5638Autoconf TIOCGETP
5639_ACEOF
5640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005641 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
menderico4861bb82009-09-29 00:31:36 +00005642 ac_cv_prog_gcc_traditional=yes
5643else
5644 ac_cv_prog_gcc_traditional=no
5645fi
5646rm -f conftest*
5647
5648
5649 if test $ac_cv_prog_gcc_traditional = no; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005651/* end confdefs.h. */
5652#include <termio.h>
5653Autoconf TCGETA
5654_ACEOF
5655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005656 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
menderico4861bb82009-09-29 00:31:36 +00005657 ac_cv_prog_gcc_traditional=yes
5658fi
5659rm -f conftest*
5660
5661 fi
5662fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5664$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005665 if test $ac_cv_prog_gcc_traditional = yes; then
5666 CC="$CC -traditional"
5667 fi
5668fi
5669
menderico4861bb82009-09-29 00:31:36 +00005670for ac_header in sys/select.h sys/socket.h
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005671do :
5672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5673ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005674if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
menderico4861bb82009-09-29 00:31:36 +00005675 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005676#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00005677_ACEOF
5678
5679fi
5680
5681done
5682
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
5684$as_echo_n "checking types of arguments for select... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005685if ${ac_cv_func_select_args+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005686 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005687else
5688 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
5689 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
5690 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005692/* end confdefs.h. */
5693$ac_includes_default
5694#ifdef HAVE_SYS_SELECT_H
5695# include <sys/select.h>
5696#endif
5697#ifdef HAVE_SYS_SOCKET_H
5698# include <sys/socket.h>
5699#endif
5700
5701int
5702main ()
5703{
5704extern int select ($ac_arg1,
5705 $ac_arg234, $ac_arg234, $ac_arg234,
5706 $ac_arg5);
5707 ;
5708 return 0;
5709}
5710_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005711if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005712 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
menderico4861bb82009-09-29 00:31:36 +00005713fi
menderico4861bb82009-09-29 00:31:36 +00005714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 done
5716 done
5717done
5718# Provide a safe default value.
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005719: "${ac_cv_func_select_args=int,int *,struct timeval *}"
menderico4861bb82009-09-29 00:31:36 +00005720
5721fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
5723$as_echo "$ac_cv_func_select_args" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005724ac_save_IFS=$IFS; IFS=','
5725set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5726IFS=$ac_save_IFS
5727shift
5728
5729cat >>confdefs.h <<_ACEOF
5730#define SELECT_TYPE_ARG1 $1
5731_ACEOF
5732
5733
5734cat >>confdefs.h <<_ACEOF
5735#define SELECT_TYPE_ARG234 ($2)
5736_ACEOF
5737
5738
5739cat >>confdefs.h <<_ACEOF
5740#define SELECT_TYPE_ARG5 ($3)
5741_ACEOF
5742
5743rm -f conftest*
5744
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5746$as_echo_n "checking return type of signal handlers... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005747if ${ac_cv_type_signal+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005748 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005749else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005751/* end confdefs.h. */
5752#include <sys/types.h>
5753#include <signal.h>
5754
5755int
5756main ()
5757{
5758return *(signal (0, 0)) (0) == 1;
5759 ;
5760 return 0;
5761}
5762_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005763if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005764 ac_cv_type_signal=int
5765else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005766 ac_cv_type_signal=void
menderico4861bb82009-09-29 00:31:36 +00005767fi
menderico4861bb82009-09-29 00:31:36 +00005768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5771$as_echo "$ac_cv_type_signal" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005772
5773cat >>confdefs.h <<_ACEOF
5774#define RETSIGTYPE $ac_cv_type_signal
5775_ACEOF
5776
5777
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005778ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005779if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005780 ac_have_decl=1
menderico4861bb82009-09-29 00:31:36 +00005781else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005782 ac_have_decl=0
menderico4861bb82009-09-29 00:31:36 +00005783fi
5784
menderico4861bb82009-09-29 00:31:36 +00005785cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005786#define HAVE_DECL_STRERROR_R $ac_have_decl
menderico4861bb82009-09-29 00:31:36 +00005787_ACEOF
5788
menderico4861bb82009-09-29 00:31:36 +00005789for ac_func in strerror_r
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005790do :
5791 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005792if test "x$ac_cv_func_strerror_r" = xyes; then :
menderico4861bb82009-09-29 00:31:36 +00005793 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005794#define HAVE_STRERROR_R 1
menderico4861bb82009-09-29 00:31:36 +00005795_ACEOF
5796
5797fi
5798done
5799
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
5801$as_echo_n "checking whether strerror_r returns char *... " >&6; }
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005802if ${ac_cv_func_strerror_r_char_p+:} false; then :
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005803 $as_echo_n "(cached) " >&6
menderico4861bb82009-09-29 00:31:36 +00005804else
5805
5806 ac_cv_func_strerror_r_char_p=no
5807 if test $ac_cv_have_decl_strerror_r = yes; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005809/* end confdefs.h. */
5810$ac_includes_default
5811int
5812main ()
5813{
5814
5815 char buf[100];
5816 char x = *strerror_r (0, buf, sizeof buf);
5817 char *p = strerror_r (0, buf, sizeof buf);
5818 return !p || x;
5819
5820 ;
5821 return 0;
5822}
5823_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005824if ac_fn_c_try_compile "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005825 ac_cv_func_strerror_r_char_p=yes
menderico4861bb82009-09-29 00:31:36 +00005826fi
menderico4861bb82009-09-29 00:31:36 +00005827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 else
5829 # strerror_r is not declared. Choose between
5830 # systems that have relatively inaccessible declarations for the
5831 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5832 # former has a strerror_r that returns char*, while the latter
5833 # has a strerror_r that returns `int'.
5834 # This test should segfault on the DEC system.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005835 if test "$cross_compiling" = yes; then :
menderico4861bb82009-09-29 00:31:36 +00005836 :
5837else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005839/* end confdefs.h. */
5840$ac_includes_default
5841 extern char *strerror_r ();
5842int
5843main ()
5844{
5845char buf[100];
5846 char x = *strerror_r (0, buf, sizeof buf);
5847 return ! isalpha (x);
5848 ;
5849 return 0;
5850}
5851_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005852if ac_fn_c_try_run "$LINENO"; then :
menderico4861bb82009-09-29 00:31:36 +00005853 ac_cv_func_strerror_r_char_p=yes
menderico4861bb82009-09-29 00:31:36 +00005854fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5856 conftest.$ac_objext conftest.beam conftest.$ac_ext
menderico4861bb82009-09-29 00:31:36 +00005857fi
5858
menderico4861bb82009-09-29 00:31:36 +00005859 fi
5860
5861fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
5863$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
menderico4861bb82009-09-29 00:31:36 +00005864if test $ac_cv_func_strerror_r_char_p = yes; then
5865
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005866$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005867
5868fi
5869
menderico4861bb82009-09-29 00:31:36 +00005870for ac_func in vprintf
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005871do :
5872 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005873if test "x$ac_cv_func_vprintf" = xyes; then :
menderico4861bb82009-09-29 00:31:36 +00005874 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005875#define HAVE_VPRINTF 1
menderico4861bb82009-09-29 00:31:36 +00005876_ACEOF
5877
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005878ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005879if test "x$ac_cv_func__doprnt" = xyes; then :
menderico4861bb82009-09-29 00:31:36 +00005880
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005881$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
menderico4861bb82009-09-29 00:31:36 +00005882
5883fi
5884
5885fi
5886done
5887
5888
nick.j.sandersaeef0912013-01-07 20:07:28 +00005889for ac_func in ftruncate gettimeofday memset munmap select socket strtol strtoull
5890do :
5891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5892ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005893if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
nick.j.sandersaeef0912013-01-07 20:07:28 +00005894 cat >>confdefs.h <<_ACEOF
5895#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5896_ACEOF
5897
5898fi
5899done
5900
5901for ac_func in mmap64 posix_memalign rand_r sched_getaffinity
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005902do :
5903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5904ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005905if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
menderico4861bb82009-09-29 00:31:36 +00005906 cat >>confdefs.h <<_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005907#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
menderico4861bb82009-09-29 00:31:36 +00005908_ACEOF
5909
5910fi
5911done
5912
5913
5914ac_config_files="$ac_config_files Makefile src/Makefile"
5915
5916cat >confcache <<\_ACEOF
5917# This file is a shell script that caches the results of configure
5918# tests run on this system so they can be shared between configure
5919# scripts and configure runs, see configure's option --config-cache.
5920# It is not useful on other systems. If it contains results you don't
5921# want to keep, you may remove or edit it.
5922#
5923# config.status only pays attention to the cache file if you give it
5924# the --recheck option to rerun configure.
5925#
5926# `ac_cv_env_foo' variables (set or unset) will be overridden when
5927# loading this file, other *unset* `ac_cv_foo' will be assigned the
5928# following values.
5929
5930_ACEOF
5931
5932# The following way of writing the cache mishandles newlines in values,
5933# but we know of no workaround that is simple, portable, and efficient.
5934# So, we kill variables containing newlines.
5935# Ultrix sh set writes to stderr and can't be redirected directly,
5936# and sets the high bit in the cache file unless we assign to the vars.
5937(
5938 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5939 eval ac_val=\$$ac_var
5940 case $ac_val in #(
5941 *${as_nl}*)
5942 case $ac_var in #(
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005943 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5944$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
menderico4861bb82009-09-29 00:31:36 +00005945 esac
5946 case $ac_var in #(
5947 _ | IFS | as_nl) ;; #(
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005948 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5949 *) { eval $ac_var=; unset $ac_var;} ;;
menderico4861bb82009-09-29 00:31:36 +00005950 esac ;;
5951 esac
5952 done
5953
5954 (set) 2>&1 |
5955 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5956 *${as_nl}ac_space=\ *)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005957 # `set' does not quote correctly, so add quotes: double-quote
5958 # substitution turns \\\\ into \\, and sed turns \\ into \.
menderico4861bb82009-09-29 00:31:36 +00005959 sed -n \
5960 "s/'/'\\\\''/g;
5961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5962 ;; #(
5963 *)
5964 # `set' quotes correctly as required by POSIX, so do not add quotes.
5965 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5966 ;;
5967 esac |
5968 sort
5969) |
5970 sed '
5971 /^ac_cv_env_/b end
5972 t clear
5973 :clear
5974 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5975 t end
5976 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5977 :end' >>confcache
5978if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5979 if test -w "$cache_file"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005980 if test "x$cache_file" != "x/dev/null"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005981 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5982$as_echo "$as_me: updating cache $cache_file" >&6;}
nick.j.sanders7a6b2522014-02-11 08:53:31 +00005983 if test ! -f "$cache_file" || test -h "$cache_file"; then
5984 cat confcache >"$cache_file"
5985 else
5986 case $cache_file in #(
5987 */* | ?:*)
5988 mv -f confcache "$cache_file"$$ &&
5989 mv -f "$cache_file"$$ "$cache_file" ;; #(
5990 *)
5991 mv -f confcache "$cache_file" ;;
5992 esac
5993 fi
5994 fi
menderico4861bb82009-09-29 00:31:36 +00005995 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00005996 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5997$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00005998 fi
5999fi
6000rm -f confcache
6001
6002test "x$prefix" = xNONE && prefix=$ac_default_prefix
6003# Let make expand exec_prefix.
6004test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6005
6006DEFS=-DHAVE_CONFIG_H
6007
6008ac_libobjs=
6009ac_ltlibobjs=
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006010U=
menderico4861bb82009-09-29 00:31:36 +00006011for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6012 # 1. Remove the extension, and $U if already installed.
6013 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006014 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
menderico4861bb82009-09-29 00:31:36 +00006015 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6016 # will be set to the directory where LIBOBJS objects are built.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006017 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6018 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
menderico4861bb82009-09-29 00:31:36 +00006019done
6020LIBOBJS=$ac_libobjs
6021
6022LTLIBOBJS=$ac_ltlibobjs
6023
6024
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006025 if test -n "$EXEEXT"; then
6026 am__EXEEXT_TRUE=
6027 am__EXEEXT_FALSE='#'
6028else
6029 am__EXEEXT_TRUE='#'
6030 am__EXEEXT_FALSE=
6031fi
6032
menderico4861bb82009-09-29 00:31:36 +00006033if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006034 as_fn_error $? "conditional \"AMDEP\" was never defined.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006035Usually this means the macro was only invoked conditionally." "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006036fi
6037if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006038 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006039Usually this means the macro was only invoked conditionally." "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006040fi
6041if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006042 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006043Usually this means the macro was only invoked conditionally." "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006044fi
6045
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006046: "${CONFIG_STATUS=./config.status}"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006047ac_write_fail=0
menderico4861bb82009-09-29 00:31:36 +00006048ac_clean_files_save=$ac_clean_files
6049ac_clean_files="$ac_clean_files $CONFIG_STATUS"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006050{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6051$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6052as_write_fail=0
6053cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006054#! $SHELL
6055# Generated by $as_me.
6056# Run this file to recreate the current configuration.
6057# Compiler output produced by configure, useful for debugging
6058# configure, is in config.log if it exists.
6059
6060debug=false
6061ac_cs_recheck=false
6062ac_cs_silent=false
menderico4861bb82009-09-29 00:31:36 +00006063
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006064SHELL=\${CONFIG_SHELL-$SHELL}
6065export SHELL
6066_ASEOF
6067cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6068## -------------------- ##
6069## M4sh Initialization. ##
6070## -------------------- ##
menderico4861bb82009-09-29 00:31:36 +00006071
6072# Be more Bourne compatible
6073DUALCASE=1; export DUALCASE # for MKS sh
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006074if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
menderico4861bb82009-09-29 00:31:36 +00006075 emulate sh
6076 NULLCMD=:
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006077 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
menderico4861bb82009-09-29 00:31:36 +00006078 # is contrary to our usage. Disable this feature.
6079 alias -g '${1+"$@"}'='"$@"'
6080 setopt NO_GLOB_SUBST
6081else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006082 case `(set -o) 2>/dev/null` in #(
6083 *posix*) :
6084 set -o posix ;; #(
6085 *) :
6086 ;;
menderico4861bb82009-09-29 00:31:36 +00006087esac
menderico4861bb82009-09-29 00:31:36 +00006088fi
6089
6090
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006091as_nl='
6092'
6093export as_nl
6094# Printing a long string crashes Solaris 7 /usr/bin/printf.
6095as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6096as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6097as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6098# Prefer a ksh shell builtin over an external printf program on Solaris,
6099# but without wasting forks for bash or zsh.
6100if test -z "$BASH_VERSION$ZSH_VERSION" \
6101 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6102 as_echo='print -r --'
6103 as_echo_n='print -rn --'
6104elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6105 as_echo='printf %s\n'
6106 as_echo_n='printf %s'
6107else
6108 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6109 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6110 as_echo_n='/usr/ucb/echo -n'
6111 else
6112 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6113 as_echo_n_body='eval
6114 arg=$1;
6115 case $arg in #(
6116 *"$as_nl"*)
6117 expr "X$arg" : "X\\(.*\\)$as_nl";
6118 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6119 esac;
6120 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6121 '
6122 export as_echo_n_body
6123 as_echo_n='sh -c $as_echo_n_body as_echo'
6124 fi
6125 export as_echo_body
6126 as_echo='sh -c $as_echo_body as_echo'
6127fi
menderico4861bb82009-09-29 00:31:36 +00006128
6129# The user is always right.
6130if test "${PATH_SEPARATOR+set}" != set; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006131 PATH_SEPARATOR=:
6132 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6133 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6134 PATH_SEPARATOR=';'
6135 }
menderico4861bb82009-09-29 00:31:36 +00006136fi
6137
6138
6139# IFS
6140# We need space, tab and new line, in precisely that order. Quoting is
6141# there to prevent editors from complaining about space-tab.
6142# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6143# splitting by setting IFS to empty value.)
menderico4861bb82009-09-29 00:31:36 +00006144IFS=" "" $as_nl"
6145
6146# Find who we are. Look in the path if we contain no directory separator.
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006147as_myself=
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006148case $0 in #((
menderico4861bb82009-09-29 00:31:36 +00006149 *[\\/]* ) as_myself=$0 ;;
6150 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH
6152do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006155 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6156 done
menderico4861bb82009-09-29 00:31:36 +00006157IFS=$as_save_IFS
6158
6159 ;;
6160esac
6161# We did not find ourselves, most probably we were run as `sh COMMAND'
6162# in which case we are not to be found in the path.
6163if test "x$as_myself" = x; then
6164 as_myself=$0
6165fi
6166if test ! -f "$as_myself"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006167 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6168 exit 1
menderico4861bb82009-09-29 00:31:36 +00006169fi
6170
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006171# Unset variables that we do not need and which cause bugs (e.g. in
6172# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6173# suppresses any "Segmentation fault" message there. '((' could
6174# trigger a bug in pdksh 5.2.14.
6175for as_var in BASH_ENV ENV MAIL MAILPATH
6176do eval test x\${$as_var+set} = xset \
6177 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
menderico4861bb82009-09-29 00:31:36 +00006178done
6179PS1='$ '
6180PS2='> '
6181PS4='+ '
6182
6183# NLS nuisances.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006184LC_ALL=C
6185export LC_ALL
6186LANGUAGE=C
6187export LANGUAGE
menderico4861bb82009-09-29 00:31:36 +00006188
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006189# CDPATH.
6190(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6191
6192
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006193# as_fn_error STATUS ERROR [LINENO LOG_FD]
6194# ----------------------------------------
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006195# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6196# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006197# script with STATUS, using 1 if that was 0.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006198as_fn_error ()
6199{
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006200 as_status=$1; test $as_status -eq 0 && as_status=1
6201 if test "$4"; then
6202 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6203 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006204 fi
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006205 $as_echo "$as_me: error: $2" >&2
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006206 as_fn_exit $as_status
6207} # as_fn_error
6208
6209
6210# as_fn_set_status STATUS
6211# -----------------------
6212# Set $? to STATUS, without forking.
6213as_fn_set_status ()
6214{
6215 return $1
6216} # as_fn_set_status
6217
6218# as_fn_exit STATUS
6219# -----------------
6220# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6221as_fn_exit ()
6222{
6223 set +e
6224 as_fn_set_status $1
6225 exit $1
6226} # as_fn_exit
6227
6228# as_fn_unset VAR
6229# ---------------
6230# Portably unset VAR.
6231as_fn_unset ()
6232{
6233 { eval $1=; unset $1;}
6234}
6235as_unset=as_fn_unset
6236# as_fn_append VAR VALUE
6237# ----------------------
6238# Append the text in VALUE to the end of the definition contained in VAR. Take
6239# advantage of any shell optimizations that allow amortized linear growth over
6240# repeated appends, instead of the typical quadratic growth present in naive
6241# implementations.
6242if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6243 eval 'as_fn_append ()
6244 {
6245 eval $1+=\$2
6246 }'
6247else
6248 as_fn_append ()
6249 {
6250 eval $1=\$$1\$2
6251 }
6252fi # as_fn_append
6253
6254# as_fn_arith ARG...
6255# ------------------
6256# Perform arithmetic evaluation on the ARGs, and store the result in the
6257# global $as_val. Take advantage of shells that can avoid forks. The arguments
6258# must be portable across $(()) and expr.
6259if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6260 eval 'as_fn_arith ()
6261 {
6262 as_val=$(( $* ))
6263 }'
6264else
6265 as_fn_arith ()
6266 {
6267 as_val=`expr "$@" || test $? -eq 1`
6268 }
6269fi # as_fn_arith
6270
6271
menderico4861bb82009-09-29 00:31:36 +00006272if expr a : '\(a\)' >/dev/null 2>&1 &&
6273 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6274 as_expr=expr
6275else
6276 as_expr=false
6277fi
6278
6279if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6280 as_basename=basename
6281else
6282 as_basename=false
6283fi
6284
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006285if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6286 as_dirname=dirname
6287else
6288 as_dirname=false
6289fi
menderico4861bb82009-09-29 00:31:36 +00006290
menderico4861bb82009-09-29 00:31:36 +00006291as_me=`$as_basename -- "$0" ||
6292$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6293 X"$0" : 'X\(//\)$' \| \
6294 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006295$as_echo X/"$0" |
menderico4861bb82009-09-29 00:31:36 +00006296 sed '/^.*\/\([^/][^/]*\)\/*$/{
6297 s//\1/
6298 q
6299 }
6300 /^X\/\(\/\/\)$/{
6301 s//\1/
6302 q
6303 }
6304 /^X\/\(\/\).*/{
6305 s//\1/
6306 q
6307 }
6308 s/.*/./; q'`
6309
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006310# Avoid depending upon Character Ranges.
6311as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6312as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6313as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6314as_cr_digits='0123456789'
6315as_cr_alnum=$as_cr_Letters$as_cr_digits
menderico4861bb82009-09-29 00:31:36 +00006316
6317ECHO_C= ECHO_N= ECHO_T=
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006318case `echo -n x` in #(((((
menderico4861bb82009-09-29 00:31:36 +00006319-n*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006320 case `echo 'xy\c'` in
menderico4861bb82009-09-29 00:31:36 +00006321 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006322 xy) ECHO_C='\c';;
6323 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6324 ECHO_T=' ';;
menderico4861bb82009-09-29 00:31:36 +00006325 esac;;
6326*)
6327 ECHO_N='-n';;
6328esac
6329
menderico4861bb82009-09-29 00:31:36 +00006330rm -f conf$$ conf$$.exe conf$$.file
6331if test -d conf$$.dir; then
6332 rm -f conf$$.dir/conf$$.file
6333else
6334 rm -f conf$$.dir
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006335 mkdir conf$$.dir 2>/dev/null
menderico4861bb82009-09-29 00:31:36 +00006336fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006337if (echo >conf$$.file) 2>/dev/null; then
6338 if ln -s conf$$.file conf$$ 2>/dev/null; then
6339 as_ln_s='ln -s'
6340 # ... but there are two gotchas:
6341 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6342 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6343 # In both cases, we have to default to `cp -p'.
6344 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6345 as_ln_s='cp -p'
6346 elif ln conf$$.file conf$$ 2>/dev/null; then
6347 as_ln_s=ln
6348 else
menderico4861bb82009-09-29 00:31:36 +00006349 as_ln_s='cp -p'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006350 fi
menderico4861bb82009-09-29 00:31:36 +00006351else
6352 as_ln_s='cp -p'
6353fi
6354rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6355rmdir conf$$.dir 2>/dev/null
6356
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006357
6358# as_fn_mkdir_p
6359# -------------
6360# Create "$as_dir" as a directory, including parents if necessary.
6361as_fn_mkdir_p ()
6362{
6363
6364 case $as_dir in #(
6365 -*) as_dir=./$as_dir;;
6366 esac
6367 test -d "$as_dir" || eval $as_mkdir_p || {
6368 as_dirs=
6369 while :; do
6370 case $as_dir in #(
6371 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6372 *) as_qdir=$as_dir;;
6373 esac
6374 as_dirs="'$as_qdir' $as_dirs"
6375 as_dir=`$as_dirname -- "$as_dir" ||
6376$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6377 X"$as_dir" : 'X\(//\)[^/]' \| \
6378 X"$as_dir" : 'X\(//\)$' \| \
6379 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6380$as_echo X"$as_dir" |
6381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6382 s//\1/
6383 q
6384 }
6385 /^X\(\/\/\)[^/].*/{
6386 s//\1/
6387 q
6388 }
6389 /^X\(\/\/\)$/{
6390 s//\1/
6391 q
6392 }
6393 /^X\(\/\).*/{
6394 s//\1/
6395 q
6396 }
6397 s/.*/./; q'`
6398 test -d "$as_dir" && break
6399 done
6400 test -z "$as_dirs" || eval "mkdir $as_dirs"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006401 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006402
6403
6404} # as_fn_mkdir_p
menderico4861bb82009-09-29 00:31:36 +00006405if mkdir -p . 2>/dev/null; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006406 as_mkdir_p='mkdir -p "$as_dir"'
menderico4861bb82009-09-29 00:31:36 +00006407else
6408 test -d ./-p && rmdir ./-p
6409 as_mkdir_p=false
6410fi
6411
6412if test -x / >/dev/null 2>&1; then
6413 as_test_x='test -x'
6414else
6415 if ls -dL / >/dev/null 2>&1; then
6416 as_ls_L_option=L
6417 else
6418 as_ls_L_option=
6419 fi
6420 as_test_x='
6421 eval sh -c '\''
6422 if test -d "$1"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006423 test -d "$1/.";
menderico4861bb82009-09-29 00:31:36 +00006424 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006425 case $1 in #(
6426 -*)set "./$1";;
menderico4861bb82009-09-29 00:31:36 +00006427 esac;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006428 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
menderico4861bb82009-09-29 00:31:36 +00006429 ???[sx]*):;;*)false;;esac;fi
6430 '\'' sh
6431 '
6432fi
6433as_executable_p=$as_test_x
6434
6435# Sed expression to map a string onto a valid CPP name.
6436as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6437
6438# Sed expression to map a string onto a valid variable name.
6439as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6440
6441
6442exec 6>&1
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006443## ----------------------------------- ##
6444## Main body of $CONFIG_STATUS script. ##
6445## ----------------------------------- ##
6446_ASEOF
6447test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006448
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6450# Save the log message, to keep $0 and so on meaningful, and to
menderico4861bb82009-09-29 00:31:36 +00006451# report actual input values of CONFIG_FILES etc. instead of their
6452# values after options handling.
6453ac_log="
nick.j.sanders318caaf2014-02-11 09:02:48 +00006454This file was extended by stressapptest $as_me 1.0.7_autoconf, which was
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006455generated by GNU Autoconf 2.68. Invocation command line was
menderico4861bb82009-09-29 00:31:36 +00006456
6457 CONFIG_FILES = $CONFIG_FILES
6458 CONFIG_HEADERS = $CONFIG_HEADERS
6459 CONFIG_LINKS = $CONFIG_LINKS
6460 CONFIG_COMMANDS = $CONFIG_COMMANDS
6461 $ $0 $@
6462
6463on `(hostname || uname -n) 2>/dev/null | sed 1q`
6464"
6465
6466_ACEOF
6467
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006468case $ac_config_files in *"
6469"*) set x $ac_config_files; shift; ac_config_files=$*;;
6470esac
6471
6472case $ac_config_headers in *"
6473"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6474esac
6475
6476
6477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006478# Files that config.status was made for.
6479config_files="$ac_config_files"
6480config_headers="$ac_config_headers"
6481config_commands="$ac_config_commands"
6482
6483_ACEOF
6484
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006486ac_cs_usage="\
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006487\`$as_me' instantiates files and other configuration actions
6488from templates according to the current configuration. Unless the files
6489and actions are specified as TAGs, all are instantiated by default.
menderico4861bb82009-09-29 00:31:36 +00006490
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006491Usage: $0 [OPTION]... [TAG]...
menderico4861bb82009-09-29 00:31:36 +00006492
6493 -h, --help print this help, then exit
6494 -V, --version print version number and configuration settings, then exit
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006495 --config print configuration, then exit
6496 -q, --quiet, --silent
6497 do not print progress messages
menderico4861bb82009-09-29 00:31:36 +00006498 -d, --debug don't remove temporary files
6499 --recheck update $as_me by reconfiguring in the same conditions
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006500 --file=FILE[:TEMPLATE]
6501 instantiate the configuration file FILE
6502 --header=FILE[:TEMPLATE]
6503 instantiate the configuration header FILE
menderico4861bb82009-09-29 00:31:36 +00006504
6505Configuration files:
6506$config_files
6507
6508Configuration headers:
6509$config_headers
6510
6511Configuration commands:
6512$config_commands
6513
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006514Report bugs to <opensource@google.com>."
menderico4861bb82009-09-29 00:31:36 +00006515
6516_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6518ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
menderico4861bb82009-09-29 00:31:36 +00006519ac_cs_version="\\
nick.j.sanders318caaf2014-02-11 09:02:48 +00006520stressapptest config.status 1.0.7_autoconf
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006521configured by $0, generated by GNU Autoconf 2.68,
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006522 with options \\"\$ac_cs_config\\"
menderico4861bb82009-09-29 00:31:36 +00006523
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006524Copyright (C) 2010 Free Software Foundation, Inc.
menderico4861bb82009-09-29 00:31:36 +00006525This config.status script is free software; the Free Software Foundation
6526gives unlimited permission to copy, distribute and modify it."
6527
6528ac_pwd='$ac_pwd'
6529srcdir='$srcdir'
6530INSTALL='$INSTALL'
6531MKDIR_P='$MKDIR_P'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006532AWK='$AWK'
6533test -n "\$AWK" || AWK=awk
menderico4861bb82009-09-29 00:31:36 +00006534_ACEOF
6535
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6537# The default lists apply if the user does not specify any file.
menderico4861bb82009-09-29 00:31:36 +00006538ac_need_defaults=:
6539while test $# != 0
6540do
6541 case $1 in
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006542 --*=?*)
menderico4861bb82009-09-29 00:31:36 +00006543 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6544 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6545 ac_shift=:
6546 ;;
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006547 --*=)
6548 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6549 ac_optarg=
6550 ac_shift=:
6551 ;;
menderico4861bb82009-09-29 00:31:36 +00006552 *)
6553 ac_option=$1
6554 ac_optarg=$2
6555 ac_shift=shift
6556 ;;
6557 esac
6558
6559 case $ac_option in
6560 # Handling of the options.
6561 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6562 ac_cs_recheck=: ;;
6563 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006564 $as_echo "$ac_cs_version"; exit ;;
6565 --config | --confi | --conf | --con | --co | --c )
6566 $as_echo "$ac_cs_config"; exit ;;
menderico4861bb82009-09-29 00:31:36 +00006567 --debug | --debu | --deb | --de | --d | -d )
6568 debug=: ;;
6569 --file | --fil | --fi | --f )
6570 $ac_shift
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006571 case $ac_optarg in
6572 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006573 '') as_fn_error $? "missing file argument" ;;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006574 esac
6575 as_fn_append CONFIG_FILES " '$ac_optarg'"
menderico4861bb82009-09-29 00:31:36 +00006576 ac_need_defaults=false;;
6577 --header | --heade | --head | --hea )
6578 $ac_shift
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006579 case $ac_optarg in
6580 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6581 esac
6582 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
menderico4861bb82009-09-29 00:31:36 +00006583 ac_need_defaults=false;;
6584 --he | --h)
6585 # Conflict between --help and --header
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006586 as_fn_error $? "ambiguous option: \`$1'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006587Try \`$0 --help' for more information.";;
menderico4861bb82009-09-29 00:31:36 +00006588 --help | --hel | -h )
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006589 $as_echo "$ac_cs_usage"; exit ;;
menderico4861bb82009-09-29 00:31:36 +00006590 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6591 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6592 ac_cs_silent=: ;;
6593
6594 # This is an error.
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006595 -*) as_fn_error $? "unrecognized option: \`$1'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006596Try \`$0 --help' for more information." ;;
menderico4861bb82009-09-29 00:31:36 +00006597
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006598 *) as_fn_append ac_config_targets " $1"
menderico4861bb82009-09-29 00:31:36 +00006599 ac_need_defaults=false ;;
6600
6601 esac
6602 shift
6603done
6604
6605ac_configure_extra_args=
6606
6607if $ac_cs_silent; then
6608 exec 6>/dev/null
6609 ac_configure_extra_args="$ac_configure_extra_args --silent"
6610fi
6611
6612_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006614if \$ac_cs_recheck; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006615 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6616 shift
6617 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6618 CONFIG_SHELL='$SHELL'
menderico4861bb82009-09-29 00:31:36 +00006619 export CONFIG_SHELL
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006620 exec "\$@"
menderico4861bb82009-09-29 00:31:36 +00006621fi
6622
6623_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006625exec 5>>config.log
6626{
6627 echo
6628 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6629## Running $as_me. ##
6630_ASBOX
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006631 $as_echo "$ac_log"
menderico4861bb82009-09-29 00:31:36 +00006632} >&5
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 +00006636#
6637# INIT-COMMANDS
6638#
6639AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6640
6641_ACEOF
6642
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006644
6645# Handling of arguments.
6646for ac_config_target in $ac_config_targets
6647do
6648 case $ac_config_target in
6649 "src/stressapptest_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/stressapptest_config.h" ;;
6650 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6651 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6652 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6653
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006654 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00006655 esac
6656done
6657
6658
6659# If the user did not use the arguments to specify the items to instantiate,
6660# then the envvar interface is used. Set only those that are not.
6661# We use the long form for the default assignment because of an extremely
6662# bizarre bug on SunOS 4.1.3.
6663if $ac_need_defaults; then
6664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6665 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6666 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6667fi
6668
6669# Have a temporary directory for convenience. Make it in the build tree
6670# simply because there is no reason against having it here, and in addition,
6671# creating and moving files from /tmp can sometimes cause problems.
6672# Hook for its removal unless debugging.
6673# Note that there is a small window in which the directory will not be cleaned:
6674# after its creation but before its name has been assigned to `$tmp'.
6675$debug ||
6676{
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006677 tmp= ac_tmp=
menderico4861bb82009-09-29 00:31:36 +00006678 trap 'exit_status=$?
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006679 : "${ac_tmp:=$tmp}"
6680 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
menderico4861bb82009-09-29 00:31:36 +00006681' 0
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006682 trap 'as_fn_exit 1' 1 2 13 15
menderico4861bb82009-09-29 00:31:36 +00006683}
6684# Create a (secure) tmp directory for tmp files.
6685
6686{
6687 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006688 test -d "$tmp"
menderico4861bb82009-09-29 00:31:36 +00006689} ||
6690{
6691 tmp=./conf$$-$RANDOM
6692 (umask 077 && mkdir "$tmp")
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006693} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6694ac_tmp=$tmp
menderico4861bb82009-09-29 00:31:36 +00006695
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006696# Set up the scripts for CONFIG_FILES section.
6697# No need to generate them if there are no CONFIG_FILES.
6698# This happens for instance with `./config.status config.h'.
menderico4861bb82009-09-29 00:31:36 +00006699if test -n "$CONFIG_FILES"; then
6700
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006701
6702ac_cr=`echo X | tr X '\015'`
6703# On cygwin, bash can eat \r inside `` if the user requested igncr.
6704# But we know of no other shell where ac_cr would be empty at this
6705# point, so we can use a bashism as a fallback.
6706if test "x$ac_cr" = x; then
6707 eval ac_cr=\$\'\\r\'
6708fi
6709ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6710if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006711 ac_cs_awk_cr='\\r'
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006712else
6713 ac_cs_awk_cr=$ac_cr
6714fi
6715
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006716echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
menderico4861bb82009-09-29 00:31:36 +00006717_ACEOF
6718
6719
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006720{
6721 echo "cat >conf$$subs.awk <<_ACEOF" &&
6722 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6723 echo "_ACEOF"
6724} >conf$$subs.sh ||
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6726ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
menderico4861bb82009-09-29 00:31:36 +00006727ac_delim='%!_!# '
6728for ac_last_try in false false false false false :; do
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006729 . ./conf$$subs.sh ||
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006731
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006732 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6733 if test $ac_delim_n = $ac_delim_num; then
menderico4861bb82009-09-29 00:31:36 +00006734 break
6735 elif $ac_last_try; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006737 else
6738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6739 fi
6740done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006741rm -f conf$$subs.sh
menderico4861bb82009-09-29 00:31:36 +00006742
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006744cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
menderico4861bb82009-09-29 00:31:36 +00006745_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006746sed -n '
6747h
6748s/^/S["/; s/!.*/"]=/
6749p
6750g
6751s/^[^!]*!//
6752:repl
6753t repl
6754s/'"$ac_delim"'$//
6755t delim
6756:nl
6757h
6758s/\(.\{148\}\)..*/\1/
6759t more1
6760s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6761p
6762n
6763b repl
6764:more1
6765s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6766p
6767g
6768s/.\{148\}//
6769t nl
6770:delim
6771h
6772s/\(.\{148\}\)..*/\1/
6773t more2
6774s/["\\]/\\&/g; s/^/"/; s/$/"/
6775p
6776b
6777:more2
6778s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6779p
6780g
6781s/.\{148\}//
6782t delim
6783' <conf$$subs.awk | sed '
6784/^[^""]/{
6785 N
6786 s/\n//
6787}
6788' >>$CONFIG_STATUS || ac_write_fail=1
6789rm -f conf$$subs.awk
6790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6791_ACAWK
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006792cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006793 for (key in S) S_is_set[key] = 1
6794 FS = ""
6795
6796}
6797{
6798 line = $ 0
6799 nfields = split(line, field, "@")
6800 substed = 0
6801 len = length(field[1])
6802 for (i = 2; i < nfields; i++) {
6803 key = field[i]
6804 keylen = length(key)
6805 if (S_is_set[key]) {
6806 value = S[key]
6807 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6808 len += length(value) + length(field[++i])
6809 substed = 1
6810 } else
6811 len += 1 + keylen
6812 }
6813
6814 print line
6815}
6816
6817_ACAWK
menderico4861bb82009-09-29 00:31:36 +00006818_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6820if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6821 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6822else
6823 cat
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006824fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6825 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00006826_ACEOF
6827
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006828# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6829# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
menderico4861bb82009-09-29 00:31:36 +00006830# trailing colons and then remove the whole line if VPATH becomes empty
6831# (actually we leave an empty line to preserve line numbers).
6832if test "x$srcdir" = x.; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006833 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6834h
6835s///
6836s/^/:/
6837s/[ ]*$/:/
6838s/:\$(srcdir):/:/g
6839s/:\${srcdir}:/:/g
6840s/:@srcdir@:/:/g
6841s/^:*//
menderico4861bb82009-09-29 00:31:36 +00006842s/:*$//
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006843x
6844s/\(=[ ]*\).*/\1/
6845G
6846s/\n//
menderico4861bb82009-09-29 00:31:36 +00006847s/^[^=]*=[ ]*$//
6848}'
6849fi
6850
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00006852fi # test -n "$CONFIG_FILES"
6853
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006854# Set up the scripts for CONFIG_HEADERS section.
6855# No need to generate them if there are no CONFIG_HEADERS.
6856# This happens for instance with `./config.status Makefile'.
6857if test -n "$CONFIG_HEADERS"; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006858cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006859BEGIN {
6860_ACEOF
menderico4861bb82009-09-29 00:31:36 +00006861
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006862# Transform confdefs.h into an awk script `defines.awk', embedded as
6863# here-document in config.status, that substitutes the proper values into
6864# config.h.in to produce config.h.
6865
6866# Create a delimiter string that does not exist in confdefs.h, to ease
6867# handling of long lines.
6868ac_delim='%!_!# '
6869for ac_last_try in false false :; do
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006870 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6871 if test -z "$ac_tt"; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006872 break
6873 elif $ac_last_try; then
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006874 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006875 else
6876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6877 fi
6878done
6879
6880# For the awk script, D is an array of macro values keyed by name,
6881# likewise P contains macro parameters if any. Preserve backslash
6882# newline sequences.
6883
6884ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6885sed -n '
6886s/.\{148\}/&'"$ac_delim"'/g
6887t rset
6888:rset
6889s/^[ ]*#[ ]*define[ ][ ]*/ /
6890t def
6891d
6892:def
6893s/\\$//
6894t bsnl
6895s/["\\]/\\&/g
6896s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6897D["\1"]=" \3"/p
6898s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6899d
6900:bsnl
6901s/["\\]/\\&/g
6902s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6903D["\1"]=" \3\\\\\\n"\\/p
6904t cont
6905s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6906t cont
6907d
6908:cont
6909n
6910s/.\{148\}/&'"$ac_delim"'/g
6911t clear
6912:clear
6913s/\\$//
6914t bsnlc
6915s/["\\]/\\&/g; s/^/"/; s/$/"/p
6916d
6917:bsnlc
6918s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6919b cont
6920' <confdefs.h | sed '
6921s/'"$ac_delim"'/"\\\
6922"/g' >>$CONFIG_STATUS || ac_write_fail=1
6923
6924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6925 for (key in D) D_is_set[key] = 1
6926 FS = ""
6927}
6928/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6929 line = \$ 0
6930 split(line, arg, " ")
6931 if (arg[1] == "#") {
6932 defundef = arg[2]
6933 mac1 = arg[3]
6934 } else {
6935 defundef = substr(arg[1], 2)
6936 mac1 = arg[2]
6937 }
6938 split(mac1, mac2, "(") #)
6939 macro = mac2[1]
6940 prefix = substr(line, 1, index(line, defundef) - 1)
6941 if (D_is_set[macro]) {
6942 # Preserve the white space surrounding the "#".
6943 print prefix "define", macro P[macro] D[macro]
6944 next
6945 } else {
6946 # Replace #undef with comments. This is necessary, for example,
6947 # in the case of _POSIX_SOURCE, which is predefined and required
6948 # on some systems where configure will not decide to define it.
6949 if (defundef == "undef") {
6950 print "/*", prefix defundef, macro, "*/"
6951 next
6952 }
6953 }
6954}
6955{ print }
6956_ACAWK
6957_ACEOF
6958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006959 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00006960fi # test -n "$CONFIG_HEADERS"
6961
6962
6963eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6964shift
6965for ac_tag
menderico4861bb82009-09-29 00:31:36 +00006966do
6967 case $ac_tag in
6968 :[FHLC]) ac_mode=$ac_tag; continue;;
6969 esac
6970 case $ac_mode$ac_tag in
6971 :[FHL]*:*);;
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006972 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00006973 :[FH]-) ac_tag=-:-;;
6974 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6975 esac
6976 ac_save_IFS=$IFS
6977 IFS=:
6978 set x $ac_tag
6979 IFS=$ac_save_IFS
6980 shift
6981 ac_file=$1
6982 shift
6983
6984 case $ac_mode in
6985 :L) ac_source=$1;;
6986 :[FH])
6987 ac_file_inputs=
6988 for ac_f
6989 do
6990 case $ac_f in
nick.j.sanders7a6b2522014-02-11 08:53:31 +00006991 -) ac_f="$ac_tmp/stdin";;
menderico4861bb82009-09-29 00:31:36 +00006992 *) # Look for the file first in the build tree, then in the source tree
6993 # (if the path is not absolute). The absolute path cannot be DOS-style,
6994 # because $ac_f cannot contain `:'.
6995 test -f "$ac_f" ||
6996 case $ac_f in
6997 [\\/$]*) false;;
6998 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6999 esac ||
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007000 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
menderico4861bb82009-09-29 00:31:36 +00007001 esac
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007002 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7003 as_fn_append ac_file_inputs " '$ac_f'"
menderico4861bb82009-09-29 00:31:36 +00007004 done
7005
7006 # Let's still pretend it is `configure' which instantiates (i.e., don't
7007 # use $as_me), people would be surprised to read:
7008 # /* config.h. Generated by config.status. */
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007009 configure_input='Generated from '`
7010 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7011 `' by configure.'
menderico4861bb82009-09-29 00:31:36 +00007012 if test x"$ac_file" != x-; then
7013 configure_input="$ac_file. $configure_input"
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007014 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7015$as_echo "$as_me: creating $ac_file" >&6;}
menderico4861bb82009-09-29 00:31:36 +00007016 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007017 # Neutralize special characters interpreted by sed in replacement strings.
7018 case $configure_input in #(
7019 *\&* | *\|* | *\\* )
7020 ac_sed_conf_input=`$as_echo "$configure_input" |
7021 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7022 *) ac_sed_conf_input=$configure_input;;
7023 esac
menderico4861bb82009-09-29 00:31:36 +00007024
7025 case $ac_tag in
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007026 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
menderico4861bb82009-09-29 00:31:36 +00007028 esac
7029 ;;
7030 esac
7031
7032 ac_dir=`$as_dirname -- "$ac_file" ||
7033$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7034 X"$ac_file" : 'X\(//\)[^/]' \| \
7035 X"$ac_file" : 'X\(//\)$' \| \
7036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007037$as_echo X"$ac_file" |
menderico4861bb82009-09-29 00:31:36 +00007038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7039 s//\1/
7040 q
7041 }
7042 /^X\(\/\/\)[^/].*/{
7043 s//\1/
7044 q
7045 }
7046 /^X\(\/\/\)$/{
7047 s//\1/
7048 q
7049 }
7050 /^X\(\/\).*/{
7051 s//\1/
7052 q
7053 }
7054 s/.*/./; q'`
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007055 as_dir="$ac_dir"; as_fn_mkdir_p
menderico4861bb82009-09-29 00:31:36 +00007056 ac_builddir=.
7057
7058case "$ac_dir" in
7059.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7060*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
menderico4861bb82009-09-29 00:31:36 +00007062 # A ".." for each directory in $ac_dir_suffix.
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
menderico4861bb82009-09-29 00:31:36 +00007064 case $ac_top_builddir_sub in
7065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7067 esac ;;
7068esac
7069ac_abs_top_builddir=$ac_pwd
7070ac_abs_builddir=$ac_pwd$ac_dir_suffix
7071# for backward compatibility:
7072ac_top_builddir=$ac_top_build_prefix
7073
7074case $srcdir in
7075 .) # We are building in place.
7076 ac_srcdir=.
7077 ac_top_srcdir=$ac_top_builddir_sub
7078 ac_abs_top_srcdir=$ac_pwd ;;
7079 [\\/]* | ?:[\\/]* ) # Absolute name.
7080 ac_srcdir=$srcdir$ac_dir_suffix;
7081 ac_top_srcdir=$srcdir
7082 ac_abs_top_srcdir=$srcdir ;;
7083 *) # Relative name.
7084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7085 ac_top_srcdir=$ac_top_build_prefix$srcdir
7086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7087esac
7088ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7089
7090
7091 case $ac_mode in
7092 :F)
7093 #
7094 # CONFIG_FILE
7095 #
7096
7097 case $INSTALL in
7098 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7099 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7100 esac
7101 ac_MKDIR_P=$MKDIR_P
7102 case $MKDIR_P in
7103 [\\/$]* | ?:[\\/]* ) ;;
7104 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7105 esac
7106_ACEOF
7107
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00007109# If the template does not know about datarootdir, expand it.
7110# FIXME: This hack should be removed a few years after 2.60.
7111ac_datarootdir_hack=; ac_datarootdir_seen=
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007112ac_sed_dataroot='
7113/datarootdir/ {
menderico4861bb82009-09-29 00:31:36 +00007114 p
7115 q
7116}
7117/@datadir@/p
7118/@docdir@/p
7119/@infodir@/p
7120/@localedir@/p
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007121/@mandir@/p'
7122case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
menderico4861bb82009-09-29 00:31:36 +00007123*datarootdir*) ac_datarootdir_seen=yes;;
7124*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7126$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
menderico4861bb82009-09-29 00:31:36 +00007127_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00007129 ac_datarootdir_hack='
7130 s&@datadir@&$datadir&g
7131 s&@docdir@&$docdir&g
7132 s&@infodir@&$infodir&g
7133 s&@localedir@&$localedir&g
7134 s&@mandir@&$mandir&g
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007135 s&\\\${datarootdir}&$datarootdir&g' ;;
menderico4861bb82009-09-29 00:31:36 +00007136esac
7137_ACEOF
7138
7139# Neutralize VPATH when `$srcdir' = `.'.
7140# Shell code in configure.ac might set extrasub.
7141# FIXME: do we really want to maintain this feature?
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7143ac_sed_extra="$ac_vpsub
menderico4861bb82009-09-29 00:31:36 +00007144$extrasub
7145_ACEOF
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
menderico4861bb82009-09-29 00:31:36 +00007147:t
7148/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007149s|@configure_input@|$ac_sed_conf_input|;t t
menderico4861bb82009-09-29 00:31:36 +00007150s&@top_builddir@&$ac_top_builddir_sub&;t t
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007151s&@top_build_prefix@&$ac_top_build_prefix&;t t
menderico4861bb82009-09-29 00:31:36 +00007152s&@srcdir@&$ac_srcdir&;t t
7153s&@abs_srcdir@&$ac_abs_srcdir&;t t
7154s&@top_srcdir@&$ac_top_srcdir&;t t
7155s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7156s&@builddir@&$ac_builddir&;t t
7157s&@abs_builddir@&$ac_abs_builddir&;t t
7158s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7159s&@INSTALL@&$ac_INSTALL&;t t
7160s&@MKDIR_P@&$ac_MKDIR_P&;t t
7161$ac_datarootdir_hack
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007162"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007163eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7164 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00007165
7166test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007167 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7168 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7169 "$ac_tmp/out"`; test -z "$ac_out"; } &&
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007171which seems to be undefined. Please make sure it is defined" >&5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007172$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007173which seems to be undefined. Please make sure it is defined" >&2;}
menderico4861bb82009-09-29 00:31:36 +00007174
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007175 rm -f "$ac_tmp/stdin"
menderico4861bb82009-09-29 00:31:36 +00007176 case $ac_file in
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007177 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7178 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007179 esac \
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00007181 ;;
7182 :H)
7183 #
7184 # CONFIG_HEADER
7185 #
menderico4861bb82009-09-29 00:31:36 +00007186 if test x"$ac_file" != x-; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007187 {
7188 $as_echo "/* $configure_input */" \
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007189 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7190 } >"$ac_tmp/config.h" \
7191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7192 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007193 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7194$as_echo "$as_me: $ac_file is unchanged" >&6;}
menderico4861bb82009-09-29 00:31:36 +00007195 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007196 rm -f "$ac_file"
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007197 mv "$ac_tmp/config.h" "$ac_file" \
7198 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00007199 fi
7200 else
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007201 $as_echo "/* $configure_input */" \
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007202 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7203 || as_fn_error $? "could not create -" "$LINENO" 5
menderico4861bb82009-09-29 00:31:36 +00007204 fi
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007205# Compute "$ac_file"'s index in $config_headers.
7206_am_arg="$ac_file"
menderico4861bb82009-09-29 00:31:36 +00007207_am_stamp_count=1
7208for _am_header in $config_headers :; do
7209 case $_am_header in
7210 $_am_arg | $_am_arg:* )
7211 break ;;
7212 * )
7213 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7214 esac
7215done
7216echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7217$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7218 X"$_am_arg" : 'X\(//\)[^/]' \| \
7219 X"$_am_arg" : 'X\(//\)$' \| \
7220 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007221$as_echo X"$_am_arg" |
menderico4861bb82009-09-29 00:31:36 +00007222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7223 s//\1/
7224 q
7225 }
7226 /^X\(\/\/\)[^/].*/{
7227 s//\1/
7228 q
7229 }
7230 /^X\(\/\/\)$/{
7231 s//\1/
7232 q
7233 }
7234 /^X\(\/\).*/{
7235 s//\1/
7236 q
7237 }
7238 s/.*/./; q'`/stamp-h$_am_stamp_count
7239 ;;
7240
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007241 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7242$as_echo "$as_me: executing $ac_file commands" >&6;}
menderico4861bb82009-09-29 00:31:36 +00007243 ;;
7244 esac
7245
7246
7247 case $ac_file$ac_mode in
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007248 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7249 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7250 # are listed without --file. Let's play safe and only enable the eval
7251 # if we detect the quoting.
7252 case $CONFIG_FILES in
7253 *\'*) eval set x "$CONFIG_FILES" ;;
7254 *) set x $CONFIG_FILES ;;
7255 esac
7256 shift
7257 for mf
7258 do
7259 # Strip MF so we end up with the name of the file.
7260 mf=`echo "$mf" | sed -e 's/:.*$//'`
7261 # Check whether this is an Automake generated Makefile or not.
7262 # We used to match only the files named `Makefile.in', but
7263 # some people rename them; so instead we look at the file content.
7264 # Grep'ing the first line is not enough: some people post-process
7265 # each Makefile.in and add a new line on top of each file to say so.
7266 # Grep'ing the whole file is not good either: AIX grep has a line
7267 # limit of 2048, but all sed's we know have understand at least 4000.
7268 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7269 dirpart=`$as_dirname -- "$mf" ||
menderico4861bb82009-09-29 00:31:36 +00007270$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7271 X"$mf" : 'X\(//\)[^/]' \| \
7272 X"$mf" : 'X\(//\)$' \| \
7273 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007274$as_echo X"$mf" |
menderico4861bb82009-09-29 00:31:36 +00007275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7276 s//\1/
7277 q
7278 }
7279 /^X\(\/\/\)[^/].*/{
7280 s//\1/
7281 q
7282 }
7283 /^X\(\/\/\)$/{
7284 s//\1/
7285 q
7286 }
7287 /^X\(\/\).*/{
7288 s//\1/
7289 q
7290 }
7291 s/.*/./; q'`
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007292 else
7293 continue
7294 fi
7295 # Extract the definition of DEPDIR, am__include, and am__quote
7296 # from the Makefile without running `make'.
7297 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7298 test -z "$DEPDIR" && continue
7299 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7300 test -z "am__include" && continue
7301 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7302 # When using ansi2knr, U may be empty or an underscore; expand it
7303 U=`sed -n 's/^U = //p' < "$mf"`
7304 # Find all dependency output files, they are included files with
7305 # $(DEPDIR) in their names. We invoke sed twice because it is the
7306 # simplest approach to changing $(DEPDIR) to its actual value in the
7307 # expansion.
7308 for file in `sed -n "
7309 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7310 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7311 # Make sure the directory exists.
7312 test -f "$dirpart/$file" && continue
7313 fdir=`$as_dirname -- "$file" ||
menderico4861bb82009-09-29 00:31:36 +00007314$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7315 X"$file" : 'X\(//\)[^/]' \| \
7316 X"$file" : 'X\(//\)$' \| \
7317 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007318$as_echo X"$file" |
menderico4861bb82009-09-29 00:31:36 +00007319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7320 s//\1/
7321 q
7322 }
7323 /^X\(\/\/\)[^/].*/{
7324 s//\1/
7325 q
7326 }
7327 /^X\(\/\/\)$/{
7328 s//\1/
7329 q
7330 }
7331 /^X\(\/\).*/{
7332 s//\1/
7333 q
7334 }
7335 s/.*/./; q'`
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007336 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7337 # echo "creating $dirpart/$file"
7338 echo '# dummy' > "$dirpart/$file"
menderico4861bb82009-09-29 00:31:36 +00007339 done
menderico4861bb82009-09-29 00:31:36 +00007340 done
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007341}
menderico4861bb82009-09-29 00:31:36 +00007342 ;;
7343
7344 esac
7345done # for ac_tag
7346
7347
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007348as_fn_exit 0
menderico4861bb82009-09-29 00:31:36 +00007349_ACEOF
menderico4861bb82009-09-29 00:31:36 +00007350ac_clean_files=$ac_clean_files_save
7351
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007352test $ac_write_fail = 0 ||
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007353 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007354
menderico4861bb82009-09-29 00:31:36 +00007355
7356# configure is writing to config.log, and then calls config.status.
7357# config.status does its own redirection, appending to config.log.
7358# Unfortunately, on DOS this fails, as config.log is still kept open
7359# by configure, so config.status won't be able to write to it; its
7360# output is simply discarded. So we exec the FD to /dev/null,
7361# effectively closing config.log, so it can be properly (re)opened and
7362# appended to by config.status. When coming back to configure, we
7363# need to make the FD available again.
7364if test "$no_create" != yes; then
7365 ac_cs_success=:
7366 ac_config_status_args=
7367 test "$silent" = yes &&
7368 ac_config_status_args="$ac_config_status_args --quiet"
7369 exec 5>/dev/null
7370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7371 exec 5>>config.log
7372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7373 # would make configure fail if this is the last instruction.
nick.j.sanders7a6b2522014-02-11 08:53:31 +00007374 $ac_cs_success || as_fn_exit 1
nick.j.sanders3f2289d2011-11-11 00:34:37 +00007375fi
7376if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7378$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
menderico4861bb82009-09-29 00:31:36 +00007379fi
7380