chiark / gitweb /
Fix autoconf bugs
[stressapptest] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for stressapptest 1.0.6_autoconf.
4 #
5 # Report bugs to <opensource@google.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (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'
54 else
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'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   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   }
83 fi
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.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
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.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # 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.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if 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
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test 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
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
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
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
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
212 fi; }
213 IFS=$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.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         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+"$@"}
232 fi
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
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_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.
280 as_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.
290 as_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"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
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.
340 if (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   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # 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.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # 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
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   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
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     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
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   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.  :-)
437   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" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
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
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (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
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
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
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_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.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='stressapptest'
562 PACKAGE_TARNAME='stressapptest'
563 PACKAGE_VERSION='1.0.6_autoconf'
564 PACKAGE_STRING='stressapptest 1.0.6_autoconf'
565 PACKAGE_BUGREPORT='opensource@google.com'
566 PACKAGE_URL=''
567
568 ac_unique_file="src/"
569 # Factoring default headers for most tests.
570 ac_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
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 EGREP
610 GREP
611 CPP
612 am__fastdepCC_FALSE
613 am__fastdepCC_TRUE
614 CCDEPMODE
615 ac_ct_CC
616 CFLAGS
617 CC
618 am__fastdepCXX_FALSE
619 am__fastdepCXX_TRUE
620 CXXDEPMODE
621 am__nodep
622 AMDEPBACKSLASH
623 AMDEP_FALSE
624 AMDEP_TRUE
625 am__quote
626 am__include
627 DEPDIR
628 OBJEXT
629 EXEEXT
630 ac_ct_CXX
631 CPPFLAGS
632 LDFLAGS
633 CXXFLAGS
634 CXX
635 am__untar
636 am__tar
637 AMTAR
638 am__leading_dot
639 SET_MAKE
640 AWK
641 mkdir_p
642 MKDIR_P
643 INSTALL_STRIP_PROGRAM
644 STRIP
645 install_sh
646 MAKEINFO
647 AUTOHEADER
648 AUTOMAKE
649 AUTOCONF
650 ACLOCAL
651 VERSION
652 PACKAGE
653 CYGPATH_W
654 am__isrc
655 INSTALL_DATA
656 INSTALL_SCRIPT
657 INSTALL_PROGRAM
658 host_os
659 host_vendor
660 host_cpu
661 host
662 build_os
663 build_vendor
664 build_cpu
665 build
666 target_alias
667 host_alias
668 build_alias
669 LIBS
670 ECHO_T
671 ECHO_N
672 ECHO_C
673 DEFS
674 mandir
675 localedir
676 libdir
677 psdir
678 pdfdir
679 dvidir
680 htmldir
681 infodir
682 docdir
683 oldincludedir
684 includedir
685 localstatedir
686 sharedstatedir
687 sysconfdir
688 datadir
689 datarootdir
690 libexecdir
691 sbindir
692 bindir
693 program_transform_name
694 prefix
695 exec_prefix
696 PACKAGE_URL
697 PACKAGE_BUGREPORT
698 PACKAGE_STRING
699 PACKAGE_VERSION
700 PACKAGE_TARNAME
701 PACKAGE_NAME
702 PATH_SEPARATOR
703 SHELL'
704 ac_subst_files=''
705 ac_user_opts='
706 enable_option_checking
707 with_static
708 enable_dependency_tracking
709 enable_default_optimizations
710 '
711       ac_precious_vars='build_alias
712 host_alias
713 target_alias
714 CXX
715 CXXFLAGS
716 LDFLAGS
717 LIBS
718 CPPFLAGS
719 CCC
720 CC
721 CFLAGS
722 CPP'
723
724
725 # Initialize some variables set by options.
726 ac_init_help=
727 ac_init_version=false
728 ac_unrecognized_opts=
729 ac_unrecognized_sep=
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
732 cache_file=/dev/null
733 exec_prefix=NONE
734 no_create=
735 no_recursion=
736 prefix=NONE
737 program_prefix=NONE
738 program_suffix=NONE
739 program_transform_name=s,x,x,
740 silent=
741 site=
742 srcdir=
743 verbose=
744 x_includes=NONE
745 x_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.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
764 infodir='${datarootdir}/info'
765 htmldir='${docdir}'
766 dvidir='${docdir}'
767 pdfdir='${docdir}'
768 psdir='${docdir}'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
772
773 ac_prev=
774 ac_dashdash=
775 for ac_option
776 do
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
785   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786   *=)   ac_optarg= ;;
787   *)    ac_optarg=yes ;;
788   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-*)
829     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
830     # Reject names that are not valid shell variable names.
831     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832       as_fn_error $? "invalid feature name: $ac_useropt"
833     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 ;;
843
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-*)
855     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856     # Reject names that are not valid shell variable names.
857     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858       as_fn_error $? "invalid feature name: $ac_useropt"
859     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 ;;
869
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-*)
1059     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1060     # Reject names that are not valid shell variable names.
1061     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062       as_fn_error $? "invalid package name: $ac_useropt"
1063     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 ;;
1073
1074   -without-* | --without-*)
1075     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076     # Reject names that are not valid shell variable names.
1077     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078       as_fn_error $? "invalid package name: $ac_useropt"
1079     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 ;;
1089
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
1108   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1109 Try \`$0 --help' for more information"
1110     ;;
1111
1112   *=*)
1113     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114     # Reject names that are not valid shell variable names.
1115     case $ac_envvar in #(
1116       '' | [0-9]* | *[!_$as_cr_alnum]* )
1117       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1118     esac
1119     eval $ac_envvar=\$ac_optarg
1120     export $ac_envvar ;;
1121
1122   *)
1123     # FIXME: should be removed in autoconf 3.0.
1124     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1125     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1126       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1127     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1128     ;;
1129
1130   esac
1131 done
1132
1133 if test -n "$ac_prev"; then
1134   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1135   as_fn_error $? "missing argument to $ac_option"
1136 fi
1137
1138 if test -n "$ac_unrecognized_opts"; then
1139   case $enable_option_checking in
1140     no) ;;
1141     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1142     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143   esac
1144 fi
1145
1146 # Check all directory arguments for consistency.
1147 for 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
1151 do
1152   eval ac_val=\$$ac_var
1153   # 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.
1160   case $ac_val in
1161     [\\/$]* | ?:[\\/]* )  continue;;
1162     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163   esac
1164   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1165 done
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.
1170 build=$build_alias
1171 host=$host_alias
1172 target=$target_alias
1173
1174 # FIXME: To remove some day.
1175 if test "x$host_alias" != x; then
1176   if test "x$build_alias" = x; then
1177     cross_compiling=maybe
1178     $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
1180   elif test "x$build_alias" != "x$host_alias"; then
1181     cross_compiling=yes
1182   fi
1183 fi
1184
1185 ac_tool_prefix=
1186 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187
1188 test "$silent" = yes && exec 6>/dev/null
1189
1190
1191 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192 ac_ls_di=`ls -di .` &&
1193 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1194   as_fn_error $? "working directory cannot be determined"
1195 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1196   as_fn_error $? "pwd does not report name of working directory"
1197
1198
1199 # Find the source files, if location was not specified.
1200 if test -z "$srcdir"; then
1201   ac_srcdir_defaulted=yes
1202   # Try the directory containing this script, then the parent directory.
1203   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" |
1209     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
1230 else
1231   ac_srcdir_defaulted=no
1232 fi
1233 if test ! -r "$srcdir/$ac_unique_file"; then
1234   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1235   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1236 fi
1237 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1238 ac_abs_confdir=`(
1239         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1240         pwd)`
1241 # When building in place, set srcdir=.
1242 if test "$ac_abs_confdir" = "$ac_pwd"; then
1243   srcdir=.
1244 fi
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.
1248 case $srcdir in
1249 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1250 esac
1251 for 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}
1256 done
1257
1258 #
1259 # Report the --help message.
1260 #
1261 if 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
1265 \`configure' configures stressapptest 1.0.6_autoconf to adapt to many kinds of systems.
1266
1267 Usage: $0 [OPTION]... [VAR=VALUE]...
1268
1269 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1270 VAR=VALUE.  See below for descriptions of some of the useful variables.
1271
1272 Defaults for the options are specified in brackets.
1273
1274 Configuration:
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
1279   -q, --quiet, --silent   do not print \`checking ...' messages
1280       --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
1285 Installation directories:
1286   --prefix=PREFIX         install architecture-independent files in PREFIX
1287                           [$ac_default_prefix]
1288   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1289                           [PREFIX]
1290
1291 By default, \`make install' will install all the files in
1292 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1293 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1294 for instance \`--prefix=\$HOME'.
1295
1296 For better control, use the options below.
1297
1298 Fine tuning of the installation directories:
1299   --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]
1318 _ACEOF
1319
1320   cat <<\_ACEOF
1321
1322 Program 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
1327 System types:
1328   --build=BUILD     configure for building on BUILD [guessed]
1329   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1330 _ACEOF
1331 fi
1332
1333 if test -n "$ac_init_help"; then
1334   case $ac_init_help in
1335      short | recursive ) echo "Configuration of stressapptest 1.0.6_autoconf:";;
1336    esac
1337   cat <<\_ACEOF
1338
1339 Optional Features:
1340   --disable-option-checking  ignore unrecognized --enable/--with options
1341   --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
1345   --disable-default-optimizations
1346                           Disable default optimization flag overrides
1347
1348 Optional 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
1353 Some 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>
1359   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1360               you have headers in a nonstandard directory <include dir>
1361   CC          C compiler command
1362   CFLAGS      C compiler flags
1363   CPP         C preprocessor
1364
1365 Use these variables to override the choices made by `configure' or to help
1366 it to find libraries and programs with nonstandard names/locations.
1367
1368 Report bugs to <opensource@google.com>.
1369 _ACEOF
1370 ac_status=$?
1371 fi
1372
1373 if 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
1376     test -d "$ac_dir" ||
1377       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1378       continue
1379     ac_builddir=.
1380
1381 case "$ac_dir" in
1382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *)
1384   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1385   # A ".." for each directory in $ac_dir_suffix.
1386   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1387   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 ;;
1391 esac
1392 ac_abs_top_builddir=$ac_pwd
1393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir=$ac_top_build_prefix
1396
1397 case $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 ;;
1410 esac
1411 ac_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
1422       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1423     fi || ac_status=$?
1424     cd "$ac_pwd" || { ac_status=$?; break; }
1425   done
1426 fi
1427
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1430   cat <<\_ACEOF
1431 stressapptest configure 1.0.6_autoconf
1432 generated by GNU Autoconf 2.68
1433
1434 Copyright (C) 2010 Free Software Foundation, Inc.
1435 This configure script is free software; the Free Software Foundation
1436 gives unlimited permission to copy, distribute and modify it.
1437 _ACEOF
1438   exit
1439 fi
1440
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.
1448 ac_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"
1453 case "(($ac_try" in
1454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455   *) ac_try_echo=$ac_try;;
1456 esac
1457 eval 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
1472 else
1473   $as_echo "$as_me: failed program was:" >&5
1474 sed 's/^/| /' conftest.$ac_ext >&5
1475
1476         ac_retval=1
1477 fi
1478   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1479   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.
1486 ac_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"
1491 case "(($ac_try" in
1492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493   *) ac_try_echo=$ac_try;;
1494 esac
1495 eval 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
1510 else
1511   $as_echo "$as_me: failed program was:" >&5
1512 sed 's/^/| /' conftest.$ac_ext >&5
1513
1514         ac_retval=1
1515 fi
1516   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1517   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.
1524 ac_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"
1529 case "(($ac_try" in
1530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531   *) ac_try_echo=$ac_try;;
1532 esac
1533 eval 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
1551 else
1552   $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555         ac_retval=1
1556 fi
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
1562   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563   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.
1570 ac_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"
1574 case "(($ac_try" in
1575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576   *) ac_try_echo=$ac_try;;
1577 esac
1578 eval 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
1588   test $ac_status = 0; } > conftest.i && {
1589          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590          test ! -s conftest.err
1591        }; then :
1592   ac_retval=0
1593 else
1594   $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597     ac_retval=1
1598 fi
1599   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600   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.
1608 ac_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"
1612 case "(($ac_try" in
1613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614   *) ac_try_echo=$ac_try;;
1615 esac
1616 eval 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;;
1625 esac
1626 eval 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
1633 else
1634   $as_echo "$as_me: program exited with status $ac_status" >&5
1635        $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638        ac_retval=$ac_status
1639 fi
1640   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642   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.
1651 ac_fn_c_check_header_mongrel ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   if eval \${$3+:} false; then :
1655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if eval \${$3+:} false; then :
1658   $as_echo_n "(cached) " >&6
1659 fi
1660 eval ac_res=\$$3
1661                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 else
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; }
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h.  */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673   ac_header_compiler=yes
1674 else
1675   ac_header_compiler=no
1676 fi
1677 rm -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; }
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h.  */
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_cpp "$LINENO"; then :
1689   ac_header_preproc=yes
1690 else
1691   ac_header_preproc=no
1692 fi
1693 rm -f conftest.err conftest.i conftest.$ac_ext
1694 { $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?
1698 case $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;}
1716 ( $as_echo "## ------------------------------------ ##
1717 ## Report this to opensource@google.com ##
1718 ## ------------------------------------ ##"
1719      ) | sed "s/^/$as_me: WARNING:     /" >&2
1720     ;;
1721 esac
1722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725   $as_echo_n "(cached) " >&6
1726 else
1727   eval "$3=\$ac_header_compiler"
1728 fi
1729 eval ac_res=\$$3
1730                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 fi
1733   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734
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.
1741 ac_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; }
1746 if eval \${$3+:} false; then :
1747   $as_echo_n "(cached) " >&6
1748 else
1749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h.  */
1751 $4
1752 #include <$2>
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755   eval "$3=yes"
1756 else
1757   eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 fi
1761 eval ac_res=\$$3
1762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
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.
1772 ac_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; }
1777 if eval \${$3+:} false; then :
1778   $as_echo_n "(cached) " >&6
1779 else
1780   eval "$3=no"
1781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h.  */
1783 $4
1784 int
1785 main ()
1786 {
1787 if (sizeof ($2))
1788          return 0;
1789   ;
1790   return 0;
1791 }
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h.  */
1796 $4
1797 int
1798 main ()
1799 {
1800 if (sizeof (($2)))
1801             return 0;
1802   ;
1803   return 0;
1804 }
1805 _ACEOF
1806 if ac_fn_c_try_compile "$LINENO"; then :
1807
1808 else
1809   eval "$3=yes"
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 fi
1815 eval ac_res=\$$3
1816                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
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.
1826 ac_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; }
1831 if eval \${$3+:} false; then :
1832   $as_echo_n "(cached) " >&6
1833 else
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
1842 int
1843 main ()
1844 {
1845 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1846 test_array [0] = 0
1847
1848   ;
1849   return 0;
1850 }
1851 _ACEOF
1852 if 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" ;;
1858 esac
1859 fi
1860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861        if eval test \"x\$"$3"\" = x"no"; then :
1862
1863 else
1864   break
1865 fi
1866      done
1867 fi
1868 eval ac_res=\$$3
1869                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873 } # ac_fn_c_find_uintX_t
1874
1875 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1876 # ---------------------------------------------
1877 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1878 # accordingly.
1879 ac_fn_c_check_decl ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   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; }
1886 if eval \${$3+:} false; then :
1887   $as_echo_n "(cached) " >&6
1888 else
1889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h.  */
1891 $4
1892 int
1893 main ()
1894 {
1895 #ifndef $as_decl_name
1896 #ifdef __cplusplus
1897   (void) $as_decl_use;
1898 #else
1899   (void) $as_decl_name;
1900 #endif
1901 #endif
1902
1903   ;
1904   return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908   eval "$3=yes"
1909 else
1910   eval "$3=no"
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 fi
1914 eval ac_res=\$$3
1915                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918
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
1924 ac_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; }
1929 if eval \${$3+:} false; then :
1930   $as_echo_n "(cached) " >&6
1931 else
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
1955 extern "C"
1956 #endif
1957 char $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
1962 choke me
1963 #endif
1964
1965 int
1966 main ()
1967 {
1968 return $2 ();
1969   ;
1970   return 0;
1971 }
1972 _ACEOF
1973 if ac_fn_c_try_link "$LINENO"; then :
1974   eval "$3=yes"
1975 else
1976   eval "$3=no"
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext \
1979     conftest$ac_exeext conftest.$ac_ext
1980 fi
1981 eval ac_res=\$$3
1982                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986 } # ac_fn_c_check_func
1987 cat >config.log <<_ACEOF
1988 This file contains any messages produced by compilers while
1989 running configure, to aid debugging if configure makes a mistake.
1990
1991 It was created by stressapptest $as_me 1.0.6_autoconf, which was
1992 generated by GNU Autoconf 2.68.  Invocation command line was
1993
1994   $ $0 $@
1995
1996 _ACEOF
1997 exec 5>>config.log
1998 {
1999 cat <<_ASUNAME
2000 ## --------- ##
2001 ## Platform. ##
2002 ## --------- ##
2003
2004 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2005 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2006 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2007 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2008 uname -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
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026   IFS=$as_save_IFS
2027   test -z "$as_dir" && as_dir=.
2028     $as_echo "PATH: $as_dir"
2029   done
2030 IFS=$as_save_IFS
2031
2032 } >&5
2033
2034 cat >&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.
2049 ac_configure_args=
2050 ac_configure_args0=
2051 ac_configure_args1=
2052 ac_must_keep_next=false
2053 for ac_pass in 1 2
2054 do
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     *\'*)
2063       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2064     esac
2065     case $ac_pass in
2066     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2067     2)
2068       as_fn_append ac_configure_args1 " '$ac_arg'"
2069       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
2084       as_fn_append ac_configure_args " '$ac_arg'"
2085       ;;
2086     esac
2087   done
2088 done
2089 { ac_configure_args0=; unset ac_configure_args0;}
2090 { ac_configure_args1=; unset ac_configure_args1;}
2091
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.
2097 trap 'exit_status=$?
2098   # Save into config.log some information that might help in debugging.
2099   {
2100     echo
2101
2102     $as_echo "## ---------------- ##
2103 ## Cache variables. ##
2104 ## ---------------- ##"
2105     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 #(
2113       *_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;} ;;
2115       esac
2116       case $ac_var in #(
2117       _ | IFS | as_nl) ;; #(
2118       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2119       *) { eval $ac_var=; unset $ac_var;} ;;
2120       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
2138     $as_echo "## ----------------- ##
2139 ## Output variables. ##
2140 ## ----------------- ##"
2141     echo
2142     for ac_var in $ac_subst_vars
2143     do
2144       eval ac_val=\$$ac_var
2145       case $ac_val in
2146       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147       esac
2148       $as_echo "$ac_var='\''$ac_val'\''"
2149     done | sort
2150     echo
2151
2152     if test -n "$ac_subst_files"; then
2153       $as_echo "## ------------------- ##
2154 ## File substitutions. ##
2155 ## ------------------- ##"
2156       echo
2157       for ac_var in $ac_subst_files
2158       do
2159         eval ac_val=\$$ac_var
2160         case $ac_val in
2161         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2162         esac
2163         $as_echo "$ac_var='\''$ac_val'\''"
2164       done | sort
2165       echo
2166     fi
2167
2168     if test -s confdefs.h; then
2169       $as_echo "## ----------- ##
2170 ## confdefs.h. ##
2171 ## ----------- ##"
2172       echo
2173       cat confdefs.h
2174       echo
2175     fi
2176     test "$ac_signal" != 0 &&
2177       $as_echo "$as_me: caught signal $ac_signal"
2178     $as_echo "$as_me: exit $exit_status"
2179   } >&5
2180   rm -f core *.core core.conftest.* &&
2181     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2182     exit $exit_status
2183 ' 0
2184 for ac_signal in 1 2 13 15; do
2185   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2186 done
2187 ac_signal=0
2188
2189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2190 rm -f -r conftest* confdefs.h
2191
2192 $as_echo "/* confdefs.h */" > confdefs.h
2193
2194 # Predefined preprocessor variables.
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_NAME "$PACKAGE_NAME"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2206 _ACEOF
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_STRING "$PACKAGE_STRING"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2214 _ACEOF
2215
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_URL "$PACKAGE_URL"
2218 _ACEOF
2219
2220
2221 # Let the site file select an alternate cache file if it wants to.
2222 # Prefer an explicitly selected file to automatically selected ones.
2223 ac_site_file1=NONE
2224 ac_site_file2=NONE
2225 if test -n "$CONFIG_SITE"; then
2226   # 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
2232 elif test "x$prefix" != xNONE; then
2233   ac_site_file1=$prefix/share/config.site
2234   ac_site_file2=$prefix/etc/config.site
2235 else
2236   ac_site_file1=$ac_default_prefix/share/config.site
2237   ac_site_file2=$ac_default_prefix/etc/config.site
2238 fi
2239 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2240 do
2241   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;}
2245     sed 's/^/| /' "$ac_site_file" >&5
2246     . "$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;}
2249 as_fn_error $? "failed to load site script $ac_site_file
2250 See \`config.log' for more details" "$LINENO" 5; }
2251   fi
2252 done
2253
2254 if test -r "$cache_file"; then
2255   # 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;}
2260     case $cache_file in
2261       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2262       *)                      . "./$cache_file";;
2263     esac
2264   fi
2265 else
2266   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2267 $as_echo "$as_me: creating cache $cache_file" >&6;}
2268   >$cache_file
2269 fi
2270
2271 # Check that the precious variables saved in the cache have kept the same
2272 # value.
2273 ac_cache_corrupted=false
2274 for 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,)
2281       { $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;}
2283       ac_cache_corrupted=: ;;
2284     ,set)
2285       { $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;}
2287       ac_cache_corrupted=: ;;
2288     ,);;
2289     *)
2290       if test "x$ac_old_val" != "x$ac_new_val"; then
2291         # 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;}
2307       fi;;
2308   esac
2309   # Pass precious variables to config.status.
2310   if test "$ac_new_set" = set; then
2311     case $ac_new_val in
2312     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2313     *) 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.
2317       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2318     esac
2319   fi
2320 done
2321 if $ac_cache_corrupted; then
2322   { $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;}
2326   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2327 fi
2328 ## -------------------- ##
2329 ## Main body of script. ##
2330 ## -------------------- ##
2331
2332 ac_ext=c
2333 ac_cpp='$CPP $CPPFLAGS'
2334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337
2338
2339
2340
2341 # Check whether --with-static was given.
2342 if test "${with_static+set}" = set; then :
2343   withval=$with_static;
2344 fi
2345
2346
2347 if test "$with_static" == "yes"
2348 then
2349   { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with staticaly linked libraries." >&5
2350 $as_echo "$as_me: Compiling with staticaly linked libraries." >&6;}
2351   LIBS="$LIBS -static"
2352 else
2353   { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with dynamically linked libraries." >&5
2354 $as_echo "$as_me: Compiling with dynamically linked libraries." >&6;}
2355 fi
2356
2357 ac_aux_dir=
2358 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2359   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
2372 done
2373 if test -z "$ac_aux_dir"; then
2374   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2375 fi
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.
2381 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2382 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2383 ac_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 ||
2388   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2389
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2391 $as_echo_n "checking build system type... " >&6; }
2392 if ${ac_cv_build+:} false; then :
2393   $as_echo_n "(cached) " >&6
2394 else
2395   ac_build_alias=$build_alias
2396 test "x$ac_build_alias" = x &&
2397   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2398 test "x$ac_build_alias" = x &&
2399   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2401   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2402
2403 fi
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2405 $as_echo "$ac_cv_build" >&6; }
2406 case $ac_cv_build in
2407 *-*-*) ;;
2408 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2409 esac
2410 build=$ac_cv_build
2411 ac_save_IFS=$IFS; IFS='-'
2412 set x $ac_cv_build
2413 shift
2414 build_cpu=$1
2415 build_vendor=$2
2416 shift; shift
2417 # Remember, the first character of IFS is used to create $*,
2418 # except with old shells:
2419 build_os=$*
2420 IFS=$ac_save_IFS
2421 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2422
2423
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2425 $as_echo_n "checking host system type... " >&6; }
2426 if ${ac_cv_host+:} false; then :
2427   $as_echo_n "(cached) " >&6
2428 else
2429   if test "x$host_alias" = x; then
2430   ac_cv_host=$ac_cv_build
2431 else
2432   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2433     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2434 fi
2435
2436 fi
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2438 $as_echo "$ac_cv_host" >&6; }
2439 case $ac_cv_host in
2440 *-*-*) ;;
2441 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2442 esac
2443 host=$ac_cv_host
2444 ac_save_IFS=$IFS; IFS='-'
2445 set x $ac_cv_host
2446 shift
2447 host_cpu=$1
2448 host_vendor=$2
2449 shift; shift
2450 # Remember, the first character of IFS is used to create $*,
2451 # except with old shells:
2452 host_os=$*
2453 IFS=$ac_save_IFS
2454 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2455
2456
2457 # Checking for target cpu and setting custom configuration
2458 # for the different platforms
2459 case "$host_cpu" in #(
2460   *x86_64*) :
2461
2462
2463 $as_echo "#define STRESSAPPTEST_CPU_X86_64 /**/" >>confdefs.h
2464
2465      ;; #(
2466   *i686*) :
2467
2468
2469 $as_echo "#define STRESSAPPTEST_CPU_I686 /**/" >>confdefs.h
2470
2471      ;; #(
2472   *powerpc*) :
2473
2474
2475 $as_echo "#define STRESSAPPTEST_CPU_PPC /**/" >>confdefs.h
2476
2477      ;; #(
2478   *armv7a*) :
2479
2480
2481 $as_echo "#define STRESSAPPTEST_CPU_ARMV7A /**/" >>confdefs.h
2482
2483      ;; #(
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  ;;
2488 esac
2489
2490 ## 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
2492 case "$host_os" in #(
2493   *linux*) :
2494
2495     OS_VERSION=linux
2496
2497 $as_echo "#define STRESSAPPTEST_OS_LINUX /**/" >>confdefs.h
2498
2499      ;; #(
2500   *darwin*) :
2501
2502     OS_VERSION=macosx
2503
2504 $as_echo "#define STRESSAPPTEST_OS_DARWIN /**/" >>confdefs.h
2505
2506      ;; #(
2507   *freebsd*) :
2508
2509     OS_VERSION=bsd
2510
2511 $as_echo "#define STRESSAPPTEST_OS_BSD /**/" >>confdefs.h
2512
2513      ;; #(
2514   *netbsd*) :
2515
2516     OS_VERSION=bsd
2517
2518 $as_echo "#define STRESSAPPTEST_OS_BSD /**/" >>confdefs.h
2519
2520      ;; #(
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  ;;
2525 esac
2526
2527 am__api_version='1.11'
2528
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.
2542 # 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; }
2545 if test -z "$INSTALL"; then
2546 if ${ac_cv_path_install+:} false; then :
2547   $as_echo_n "(cached) " >&6
2548 else
2549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552   IFS=$as_save_IFS
2553   test -z "$as_dir" && as_dir=.
2554     # Account for people who put trailing slashes in PATH elements.
2555 case $as_dir/ in #((
2556   ./ | .// | /[cC]/* | \
2557   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2558   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2559   /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
2576             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
2588           fi
2589         fi
2590       done
2591     done
2592     ;;
2593 esac
2594
2595   done
2596 IFS=$as_save_IFS
2597
2598 rm -rf conftest.one conftest.two conftest.dir
2599
2600 fi
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
2610 fi
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2612 $as_echo "$INSTALL" >&6; }
2613
2614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2615 # It thinks the first close brace ends the variable substitution.
2616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2617
2618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2619
2620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2621
2622 { $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; }
2624 # Just in case
2625 sleep 1
2626 echo timestamp > conftest.file
2627 # Reject unsafe characters in $srcdir or the absolute working directory
2628 # name.  Accept space and tab only in the latter.
2629 am_lf='
2630 '
2631 case `pwd` in
2632   *[\\\"\#\$\&\'\`$am_lf]*)
2633     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2634 esac
2635 case $srcdir in
2636   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2637     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2638 esac
2639
2640 # 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).
2645 if (
2646    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2647    if test "$*" = "X"; then
2648       # -L didn't work.
2649       set X `ls -t "$srcdir/configure" conftest.file`
2650    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".
2659       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2660 alias in your environment" "$LINENO" 5
2661    fi
2662
2663    test "$2" = conftest.file
2664    )
2665 then
2666    # Ok.
2667    :
2668 else
2669    as_fn_error $? "newly created file is older than distributed files!
2670 Check your system clock" "$LINENO" 5
2671 fi
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2674 test "$program_prefix" != NONE &&
2675   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2676 # Use a double $ so make ignores it.
2677 test "$program_suffix" != NONE &&
2678   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2679 # Double any \ or $.
2680 # By default was `s,x,x', remove it if useless.
2681 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2682 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2683
2684 # expand $ac_aux_dir to an absolute path
2685 am_aux_dir=`cd $ac_aux_dir && pwd`
2686
2687 if 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
2694 fi
2695 # Use eval to expand $SHELL
2696 if eval "$MISSING --run true"; then
2697   am_missing_run="$MISSING --run "
2698 else
2699   am_missing_run=
2700   { $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;}
2702 fi
2703
2704 if 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
2711 fi
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.
2717 if 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.
2720 set 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; }
2723 if ${ac_cv_prog_STRIP+:} false; then :
2724   $as_echo_n "(cached) " >&6
2725 else
2726   if test -n "$STRIP"; then
2727   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
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
2740 done
2741   done
2742 IFS=$as_save_IFS
2743
2744 fi
2745 fi
2746 STRIP=$ac_cv_prog_STRIP
2747 if test -n "$STRIP"; then
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2749 $as_echo "$STRIP" >&6; }
2750 else
2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 fi
2754
2755
2756 fi
2757 if 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.
2760 set 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; }
2763 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2764   $as_echo_n "(cached) " >&6
2765 else
2766   if test -n "$ac_ct_STRIP"; then
2767   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
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
2780 done
2781   done
2782 IFS=$as_save_IFS
2783
2784 fi
2785 fi
2786 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2787 if 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; }
2790 else
2791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2793 fi
2794
2795   if test "x$ac_ct_STRIP" = x; then
2796     STRIP=":"
2797   else
2798     case $cross_compiling:$ac_tool_warned in
2799 yes:)
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;}
2802 ac_tool_warned=yes ;;
2803 esac
2804     STRIP=$ac_ct_STRIP
2805   fi
2806 else
2807   STRIP="$ac_cv_prog_STRIP"
2808 fi
2809
2810 fi
2811 INSTALL_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; }
2815 if test -z "$MKDIR_P"; then
2816   if ${ac_cv_path_mkdir+:} false; then :
2817   $as_echo_n "(cached) " >&6
2818 else
2819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824     for ac_prog in mkdir gmkdir; do
2825          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
2836   done
2837 IFS=$as_save_IFS
2838
2839 fi
2840
2841   test -d ./--version && rmdir ./--version
2842   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.
2849     MKDIR_P="$ac_install_sh -d"
2850   fi
2851 fi
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2853 $as_echo "$MKDIR_P" >&6; }
2854
2855 mkdir_p="$MKDIR_P"
2856 case $mkdir_p in
2857   [\\/$]* | ?:[\\/]*) ;;
2858   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2859 esac
2860
2861 for ac_prog in gawk mawk nawk awk
2862 do
2863   # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy $ac_prog; ac_word=$2
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 $as_echo_n "checking for $ac_word... " >&6; }
2867 if ${ac_cv_prog_AWK+:} false; then :
2868   $as_echo_n "(cached) " >&6
2869 else
2870   if test -n "$AWK"; then
2871   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876   IFS=$as_save_IFS
2877   test -z "$as_dir" && as_dir=.
2878     for ac_exec_ext in '' $ac_executable_extensions; do
2879   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"
2881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882     break 2
2883   fi
2884 done
2885   done
2886 IFS=$as_save_IFS
2887
2888 fi
2889 fi
2890 AWK=$ac_cv_prog_AWK
2891 if test -n "$AWK"; then
2892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2893 $as_echo "$AWK" >&6; }
2894 else
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 fi
2898
2899
2900   test -n "$AWK" && break
2901 done
2902
2903 { $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; }
2905 set x ${MAKE-make}
2906 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2907 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2908   $as_echo_n "(cached) " >&6
2909 else
2910   cat >conftest.make <<\_ACEOF
2911 SHELL = /bin/sh
2912 all:
2913         @echo '@@@%%%=$(MAKE)=@@@%%%'
2914 _ACEOF
2915 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2916 case `${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;;
2921 esac
2922 rm -f conftest.make
2923 fi
2924 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2926 $as_echo "yes" >&6; }
2927   SET_MAKE=
2928 else
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931   SET_MAKE="MAKE=${MAKE-make}"
2932 fi
2933
2934 rm -rf .tst 2>/dev/null
2935 mkdir .tst 2>/dev/null
2936 if test -d .tst; then
2937   am__leading_dot=.
2938 else
2939   am__leading_dot=_
2940 fi
2941 rmdir .tst 2>/dev/null
2942
2943 if 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
2949     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2950   fi
2951 fi
2952
2953 # test whether we have cygpath
2954 if 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
2960 fi
2961
2962
2963 # Define the identity of the package.
2964  PACKAGE='stressapptest'
2965  VERSION='1.0.6_autoconf'
2966
2967
2968 cat >>confdefs.h <<_ACEOF
2969 #define PACKAGE "$PACKAGE"
2970 _ACEOF
2971
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define VERSION "$VERSION"
2975 _ACEOF
2976
2977 # Some tools Automake needs.
2978
2979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2980
2981
2982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2983
2984
2985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2986
2987
2988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2989
2990
2991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2992
2993 # We need awk for the "check" target.  The system "awk" is bad on
2994 # some platforms.
2995 # Always define AMTAR for backward compatibility.  Yes, it's still used
2996 # in the wild :-(  We should find a proper way to deprecate it ...
2997 AMTAR='$${TAR-tar}'
2998
2999 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3000
3001
3002
3003
3004
3005
3006 ac_config_headers="$ac_config_headers src/stressapptest_config.h"
3007
3008
3009 # Checks for programs.
3010 #  Don't generate CXXFLAGS defaults: if CXXFLAGS are unset
3011 #  AC_PROG_CXX will override them with unwanted defaults.
3012 CXXFLAGS="$CXXFLAGS"
3013 ac_ext=cpp
3014 ac_cpp='$CXXCPP $CPPFLAGS'
3015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3018 if 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.
3026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_CXX+:} false; then :
3030   $as_echo_n "(cached) " >&6
3031 else
3032   if test -n "$CXX"; then
3033   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038   IFS=$as_save_IFS
3039   test -z "$as_dir" && as_dir=.
3040     for ac_exec_ext in '' $ac_executable_extensions; do
3041   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"
3043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044     break 2
3045   fi
3046 done
3047   done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 CXX=$ac_cv_prog_CXX
3053 if test -n "$CXX"; then
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3055 $as_echo "$CXX" >&6; }
3056 else
3057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062     test -n "$CXX" && break
3063   done
3064 fi
3065 if 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
3068 do
3069   # Extract the first word of "$ac_prog", so it can be a program name with args.
3070 set dummy $ac_prog; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3074   $as_echo_n "(cached) " >&6
3075 else
3076   if test -n "$ac_ct_CXX"; then
3077   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084     for ac_exec_ext in '' $ac_executable_extensions; do
3085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086     ac_cv_prog_ac_ct_CXX="$ac_prog"
3087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088     break 2
3089   fi
3090 done
3091   done
3092 IFS=$as_save_IFS
3093
3094 fi
3095 fi
3096 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3097 if test -n "$ac_ct_CXX"; then
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3099 $as_echo "$ac_ct_CXX" >&6; }
3100 else
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103 fi
3104
3105
3106   test -n "$ac_ct_CXX" && break
3107 done
3108
3109   if test "x$ac_ct_CXX" = x; then
3110     CXX="g++"
3111   else
3112     case $cross_compiling:$ac_tool_warned in
3113 yes:)
3114 { $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;}
3116 ac_tool_warned=yes ;;
3117 esac
3118     CXX=$ac_ct_CXX
3119   fi
3120 fi
3121
3122   fi
3123 fi
3124 # Provide some information about the compiler.
3125 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3126 set X $ac_compile
3127 ac_compiler=$2
3128 for ac_option in --version -v -V -qversion; do
3129   { { ac_try="$ac_compiler $ac_option >&5"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval 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
3137   ac_status=$?
3138   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; }
3147 done
3148
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h.  */
3151
3152 int
3153 main ()
3154 {
3155
3156   ;
3157   return 0;
3158 }
3159 _ACEOF
3160 ac_clean_files_save=$ac_clean_files
3161 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3162 # 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.
3165 { $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; }
3167 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3168
3169 # The possible output files:
3170 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3171
3172 ac_rmfiles=
3173 for ac_file in $ac_files
3174 do
3175   case $ac_file in
3176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3177     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3178   esac
3179 done
3180 rm -f $ac_rmfiles
3181
3182 if { { ac_try="$ac_link_default"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189   (eval "$ac_link_default") 2>&5
3190   ac_status=$?
3191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192   test $ac_status = 0; }; then :
3193   # 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.
3198 for ac_file in $ac_files ''
3199 do
3200   test -f "$ac_file" || continue
3201   case $ac_file in
3202     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3203         ;;
3204     [ab].out )
3205         # We found the default executable, but exeext='' is most
3206         # certainly right.
3207         break;;
3208     *.* )
3209         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3210         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
3222 done
3223 test "$ac_cv_exeext" = no && ac_cv_exeext=
3224
3225 else
3226   ac_file=''
3227 fi
3228 if 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
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error 77 "C++ compiler cannot create executables
3237 See \`config.log' for more details" "$LINENO" 5; }
3238 else
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 $as_echo "yes" >&6; }
3241 fi
3242 { $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; }
3246 ac_exeext=$ac_cv_exeext
3247
3248 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3249 ac_clean_files=$ac_clean_files_save
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3251 $as_echo_n "checking for suffix of executables... " >&6; }
3252 if { { ac_try="$ac_link"
3253 case "(($ac_try" in
3254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255   *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259   (eval "$ac_link") 2>&5
3260   ac_status=$?
3261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262   test $ac_status = 0; }; then :
3263   # 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'.
3267 for ac_file in conftest.exe conftest conftest.*; do
3268   test -f "$ac_file" || continue
3269   case $ac_file in
3270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3271     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272           break;;
3273     * ) break;;
3274   esac
3275 done
3276 else
3277   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3280 See \`config.log' for more details" "$LINENO" 5; }
3281 fi
3282 rm -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; }
3285
3286 rm -f conftest.$ac_ext
3287 EXEEXT=$ac_cv_exeext
3288 ac_exeext=$EXEEXT
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h.  */
3291 #include <stdio.h>
3292 int
3293 main ()
3294 {
3295 FILE *f = fopen ("conftest.out", "w");
3296  return ferror (f) || fclose (f) != 0;
3297
3298   ;
3299   return 0;
3300 }
3301 _ACEOF
3302 ac_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; }
3307 if test "$cross_compiling" != yes; then
3308   { { ac_try="$ac_link"
3309 case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval 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;;
3323 esac
3324 eval 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;}
3337 as_fn_error $? "cannot run C++ compiled programs.
3338 If you meant to cross compile, use \`--host'.
3339 See \`config.log' for more details" "$LINENO" 5; }
3340     fi
3341   fi
3342 fi
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3344 $as_echo "$cross_compiling" >&6; }
3345
3346 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3347 ac_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; }
3350 if ${ac_cv_objext+:} false; then :
3351   $as_echo_n "(cached) " >&6
3352 else
3353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h.  */
3355
3356 int
3357 main ()
3358 {
3359
3360   ;
3361   return 0;
3362 }
3363 _ACEOF
3364 rm -f conftest.o conftest.obj
3365 if { { ac_try="$ac_compile"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372   (eval "$ac_compile") 2>&5
3373   ac_status=$?
3374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375   test $ac_status = 0; }; then :
3376   for ac_file in conftest.o conftest.obj conftest.*; do
3377   test -f "$ac_file" || continue;
3378   case $ac_file in
3379     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3380     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3381        break;;
3382   esac
3383 done
3384 else
3385   $as_echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390 as_fn_error $? "cannot compute suffix of object files: cannot compile
3391 See \`config.log' for more details" "$LINENO" 5; }
3392 fi
3393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3394 fi
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3396 $as_echo "$ac_cv_objext" >&6; }
3397 OBJEXT=$ac_cv_objext
3398 ac_objext=$OBJEXT
3399 { $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; }
3401 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3402   $as_echo_n "(cached) " >&6
3403 else
3404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h.  */
3406
3407 int
3408 main ()
3409 {
3410 #ifndef __GNUC__
3411        choke me
3412 #endif
3413
3414   ;
3415   return 0;
3416 }
3417 _ACEOF
3418 if ac_fn_cxx_try_compile "$LINENO"; then :
3419   ac_compiler_gnu=yes
3420 else
3421   ac_compiler_gnu=no
3422 fi
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3425
3426 fi
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3428 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3429 if test $ac_compiler_gnu = yes; then
3430   GXX=yes
3431 else
3432   GXX=
3433 fi
3434 ac_test_CXXFLAGS=${CXXFLAGS+set}
3435 ac_save_CXXFLAGS=$CXXFLAGS
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3437 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3438 if ${ac_cv_prog_cxx_g+:} false; then :
3439   $as_echo_n "(cached) " >&6
3440 else
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"
3445    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h.  */
3447
3448 int
3449 main ()
3450 {
3451
3452   ;
3453   return 0;
3454 }
3455 _ACEOF
3456 if ac_fn_cxx_try_compile "$LINENO"; then :
3457   ac_cv_prog_cxx_g=yes
3458 else
3459   CXXFLAGS=""
3460       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h.  */
3462
3463 int
3464 main ()
3465 {
3466
3467   ;
3468   return 0;
3469 }
3470 _ACEOF
3471 if ac_fn_cxx_try_compile "$LINENO"; then :
3472
3473 else
3474   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3475          CXXFLAGS="-g"
3476          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h.  */
3478
3479 int
3480 main ()
3481 {
3482
3483   ;
3484   return 0;
3485 }
3486 _ACEOF
3487 if ac_fn_cxx_try_compile "$LINENO"; then :
3488   ac_cv_prog_cxx_g=yes
3489 fi
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 fi
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 fi
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3498 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3499 if test "$ac_test_CXXFLAGS" = set; then
3500   CXXFLAGS=$ac_save_CXXFLAGS
3501 elif 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
3507 else
3508   if test "$GXX" = yes; then
3509     CXXFLAGS="-O2"
3510   else
3511     CXXFLAGS=
3512   fi
3513 fi
3514 ac_ext=c
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 DEPDIR="${am__leading_dot}deps"
3520
3521 ac_config_commands="$ac_config_commands depfiles"
3522
3523
3524 am_make=${MAKE-make}
3525 cat > confinc << 'END'
3526 am__doit:
3527         @echo this is the am__doit target
3528 .PHONY: am__doit
3529 END
3530 # If we don't find an include directive, just comment out the code.
3531 { $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; }
3533 am__include="#"
3534 am__quote=
3535 _am_result=none
3536 # First try GNU make style include.
3537 echo "include confinc" > confmf
3538 # Ignore all kinds of additional output from `make'.
3539 case `$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   ;;
3545 esac
3546 # Now try BSD make style include.
3547 if test "$am__include" = "#"; then
3548    echo '.include "confinc"' > confmf
3549    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
3556 fi
3557
3558
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3560 $as_echo "$_am_result" >&6; }
3561 rm -f confinc confmf
3562
3563 # Check whether --enable-dependency-tracking was given.
3564 if test "${enable_dependency_tracking+set}" = set; then :
3565   enableval=$enable_dependency_tracking;
3566 fi
3567
3568 if test "x$enable_dependency_tracking" != xno; then
3569   am_depcomp="$ac_aux_dir/depcomp"
3570   AMDEPBACKSLASH='\'
3571   am__nodep='_no'
3572 fi
3573  if test "x$enable_dependency_tracking" != xno; then
3574   AMDEP_TRUE=
3575   AMDEP_FALSE='#'
3576 else
3577   AMDEP_TRUE='#'
3578   AMDEP_FALSE=
3579 fi
3580
3581
3582
3583 depcc="$CXX"  am_compiler_list=
3584
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3586 $as_echo_n "checking dependency style of $depcc... " >&6; }
3587 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3588   $as_echo_n "(cached) " >&6
3589 else
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'.
3596   rm -rf conftest.dir
3597   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
3614   am__universal=false
3615   case " $depcc " in #(
3616      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3617      esac
3618
3619   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
3636     # 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"
3642     case $depmode in
3643     gcc)
3644       # This depmode causes a compiler race in universal mode.
3645       test "$am__universal" = false || continue
3646       ;;
3647     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       ;;
3656     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3657       # 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       ;;
3663     none) break ;;
3664     esac
3665     if depmode=$depmode \
3666        source=sub/conftest.c object=$am__obj \
3667        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3668        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3669          >/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 &&
3672        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3673        ${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
3691 else
3692   am_cv_CXX_dependencies_compiler_type=none
3693 fi
3694
3695 fi
3696 { $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; }
3698 CXXDEPMODE=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='#'
3705 else
3706   am__fastdepCXX_TRUE='#'
3707   am__fastdepCXX_FALSE=
3708 fi
3709
3710
3711 ac_ext=c
3712 ac_cpp='$CPP $CPPFLAGS'
3713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716 if 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.
3718 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_CC+:} false; then :
3722   $as_echo_n "(cached) " >&6
3723 else
3724   if test -n "$CC"; then
3725   ac_cv_prog_CC="$CC" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730   IFS=$as_save_IFS
3731   test -z "$as_dir" && as_dir=.
3732     for ac_exec_ext in '' $ac_executable_extensions; do
3733   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"
3735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736     break 2
3737   fi
3738 done
3739   done
3740 IFS=$as_save_IFS
3741
3742 fi
3743 fi
3744 CC=$ac_cv_prog_CC
3745 if test -n "$CC"; then
3746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747 $as_echo "$CC" >&6; }
3748 else
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3752
3753
3754 fi
3755 if 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.
3758 set dummy gcc; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3762   $as_echo_n "(cached) " >&6
3763 else
3764   if test -n "$ac_ct_CC"; then
3765   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772     for ac_exec_ext in '' $ac_executable_extensions; do
3773   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"
3775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776     break 2
3777   fi
3778 done
3779   done
3780 IFS=$as_save_IFS
3781
3782 fi
3783 fi
3784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3785 if test -n "$ac_ct_CC"; then
3786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3787 $as_echo "$ac_ct_CC" >&6; }
3788 else
3789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3791 fi
3792
3793   if test "x$ac_ct_CC" = x; then
3794     CC=""
3795   else
3796     case $cross_compiling:$ac_tool_warned in
3797 yes:)
3798 { $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;}
3800 ac_tool_warned=yes ;;
3801 esac
3802     CC=$ac_ct_CC
3803   fi
3804 else
3805   CC="$ac_cv_prog_CC"
3806 fi
3807
3808 if 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.
3811 set dummy ${ac_tool_prefix}cc; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_CC+:} false; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   if test -n "$CC"; then
3818   ac_cv_prog_CC="$CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825     for ac_exec_ext in '' $ac_executable_extensions; do
3826   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"
3828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832   done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 CC=$ac_cv_prog_CC
3838 if test -n "$CC"; then
3839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840 $as_echo "$CC" >&6; }
3841 else
3842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 fi
3845
3846
3847   fi
3848 fi
3849 if test -z "$CC"; then
3850   # Extract the first word of "cc", so it can be a program name with args.
3851 set dummy cc; ac_word=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if ${ac_cv_prog_CC+:} false; then :
3855   $as_echo_n "(cached) " >&6
3856 else
3857   if test -n "$CC"; then
3858   ac_cv_prog_CC="$CC" # Let the user override the test.
3859 else
3860   ac_prog_rejected=no
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866     for ac_exec_ext in '' $ac_executable_extensions; do
3867   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"
3873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874     break 2
3875   fi
3876 done
3877   done
3878 IFS=$as_save_IFS
3879
3880 if 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
3891 fi
3892 fi
3893 fi
3894 CC=$ac_cv_prog_CC
3895 if test -n "$CC"; then
3896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897 $as_echo "$CC" >&6; }
3898 else
3899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3901 fi
3902
3903
3904 fi
3905 if 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.
3910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if ${ac_cv_prog_CC+:} false; then :
3914   $as_echo_n "(cached) " >&6
3915 else
3916   if test -n "$CC"; then
3917   ac_cv_prog_CC="$CC" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922   IFS=$as_save_IFS
3923   test -z "$as_dir" && as_dir=.
3924     for ac_exec_ext in '' $ac_executable_extensions; do
3925   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"
3927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928     break 2
3929   fi
3930 done
3931   done
3932 IFS=$as_save_IFS
3933
3934 fi
3935 fi
3936 CC=$ac_cv_prog_CC
3937 if test -n "$CC"; then
3938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 $as_echo "$CC" >&6; }
3940 else
3941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3943 fi
3944
3945
3946     test -n "$CC" && break
3947   done
3948 fi
3949 if test -z "$CC"; then
3950   ac_ct_CC=$CC
3951   for ac_prog in cl.exe
3952 do
3953   # Extract the first word of "$ac_prog", so it can be a program name with args.
3954 set dummy $ac_prog; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3958   $as_echo_n "(cached) " >&6
3959 else
3960   if test -n "$ac_ct_CC"; then
3961   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966   IFS=$as_save_IFS
3967   test -z "$as_dir" && as_dir=.
3968     for ac_exec_ext in '' $ac_executable_extensions; do
3969   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"
3971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972     break 2
3973   fi
3974 done
3975   done
3976 IFS=$as_save_IFS
3977
3978 fi
3979 fi
3980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981 if test -n "$ac_ct_CC"; then
3982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983 $as_echo "$ac_ct_CC" >&6; }
3984 else
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3987 fi
3988
3989
3990   test -n "$ac_ct_CC" && break
3991 done
3992
3993   if test "x$ac_ct_CC" = x; then
3994     CC=""
3995   else
3996     case $cross_compiling:$ac_tool_warned in
3997 yes:)
3998 { $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;}
4000 ac_tool_warned=yes ;;
4001 esac
4002     CC=$ac_ct_CC
4003   fi
4004 fi
4005
4006 fi
4007
4008
4009 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $? "no acceptable C compiler found in \$PATH
4012 See \`config.log' for more details" "$LINENO" 5; }
4013
4014 # Provide some information about the compiler.
4015 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4016 set X $ac_compile
4017 ac_compiler=$2
4018 for ac_option in --version -v -V -qversion; do
4019   { { ac_try="$ac_compiler $ac_option >&5"
4020 case "(($ac_try" in
4021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022   *) ac_try_echo=$ac_try;;
4023 esac
4024 eval 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
4027   ac_status=$?
4028   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; }
4037 done
4038
4039 { $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; }
4041 if ${ac_cv_c_compiler_gnu+:} false; then :
4042   $as_echo_n "(cached) " >&6
4043 else
4044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h.  */
4046
4047 int
4048 main ()
4049 {
4050 #ifndef __GNUC__
4051        choke me
4052 #endif
4053
4054   ;
4055   return 0;
4056 }
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059   ac_compiler_gnu=yes
4060 else
4061   ac_compiler_gnu=no
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4065
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4068 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4069 if test $ac_compiler_gnu = yes; then
4070   GCC=yes
4071 else
4072   GCC=
4073 fi
4074 ac_test_CFLAGS=${CFLAGS+set}
4075 ac_save_CFLAGS=$CFLAGS
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4077 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4078 if ${ac_cv_prog_cc_g+:} false; then :
4079   $as_echo_n "(cached) " >&6
4080 else
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"
4085    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h.  */
4087
4088 int
4089 main ()
4090 {
4091
4092   ;
4093   return 0;
4094 }
4095 _ACEOF
4096 if ac_fn_c_try_compile "$LINENO"; then :
4097   ac_cv_prog_cc_g=yes
4098 else
4099   CFLAGS=""
4100       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h.  */
4102
4103 int
4104 main ()
4105 {
4106
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 if ac_fn_c_try_compile "$LINENO"; then :
4112
4113 else
4114   ac_c_werror_flag=$ac_save_c_werror_flag
4115          CFLAGS="-g"
4116          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h.  */
4118
4119 int
4120 main ()
4121 {
4122
4123   ;
4124   return 0;
4125 }
4126 _ACEOF
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128   ac_cv_prog_cc_g=yes
4129 fi
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135    ac_c_werror_flag=$ac_save_c_werror_flag
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4138 $as_echo "$ac_cv_prog_cc_g" >&6; }
4139 if test "$ac_test_CFLAGS" = set; then
4140   CFLAGS=$ac_save_CFLAGS
4141 elif 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
4147 else
4148   if test "$GCC" = yes; then
4149     CFLAGS="-O2"
4150   else
4151     CFLAGS=
4152   fi
4153 fi
4154 { $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; }
4156 if ${ac_cv_prog_cc_c89+:} false; then :
4157   $as_echo_n "(cached) " >&6
4158 else
4159   ac_cv_prog_cc_c89=no
4160 ac_save_CC=$CC
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* 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.  */
4168 struct buf { int x; };
4169 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4170 static char *e (p, i)
4171      char **p;
4172      int i;
4173 {
4174   return p[i];
4175 }
4176 static 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.  */
4193 int 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'
4198 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4199
4200 int test (int i, double x);
4201 struct s1 {int (*f) (int a);};
4202 struct s2 {int (*f) (double a);};
4203 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4204 int argc;
4205 char **argv;
4206 int
4207 main ()
4208 {
4209 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4210   ;
4211   return 0;
4212 }
4213 _ACEOF
4214 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4215         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4216 do
4217   CC="$ac_save_CC $ac_arg"
4218   if ac_fn_c_try_compile "$LINENO"; then :
4219   ac_cv_prog_cc_c89=$ac_arg
4220 fi
4221 rm -f core conftest.err conftest.$ac_objext
4222   test "x$ac_cv_prog_cc_c89" != "xno" && break
4223 done
4224 rm -f conftest.$ac_ext
4225 CC=$ac_save_CC
4226
4227 fi
4228 # AC_CACHE_VAL
4229 case "x$ac_cv_prog_cc_c89" in
4230   x)
4231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232 $as_echo "none needed" >&6; } ;;
4233   xno)
4234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4235 $as_echo "unsupported" >&6; } ;;
4236   *)
4237     CC="$CC $ac_cv_prog_cc_c89"
4238     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4239 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4240 esac
4241 if test "x$ac_cv_prog_cc_c89" != xno; then :
4242
4243 fi
4244
4245 ac_ext=c
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250
4251 depcc="$CC"   am_compiler_list=
4252
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4254 $as_echo_n "checking dependency style of $depcc... " >&6; }
4255 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4256   $as_echo_n "(cached) " >&6
4257 else
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'.
4264   rm -rf conftest.dir
4265   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
4282   am__universal=false
4283   case " $depcc " in #(
4284      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4285      esac
4286
4287   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
4304     # 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"
4310     case $depmode in
4311     gcc)
4312       # This depmode causes a compiler race in universal mode.
4313       test "$am__universal" = false || continue
4314       ;;
4315     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       ;;
4324     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4325       # 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       ;;
4331     none) break ;;
4332     esac
4333     if depmode=$depmode \
4334        source=sub/conftest.c object=$am__obj \
4335        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4336        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4337          >/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 &&
4340        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4341        ${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
4359 else
4360   am_cv_CC_dependencies_compiler_type=none
4361 fi
4362
4363 fi
4364 { $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; }
4366 CCDEPMODE=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='#'
4373 else
4374   am__fastdepCC_TRUE='#'
4375   am__fastdepCC_FALSE=
4376 fi
4377
4378
4379
4380 #Getting user and host info
4381 username=$(whoami)
4382 { $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; }
4386
4387 hostname=$(uname -n)
4388 { $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; }
4392
4393 timestamp=$(date)
4394 { $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; }
4398
4399
4400 cat >>confdefs.h <<_ACEOF
4401 #define STRESSAPPTEST_TIMESTAMP "$username @ $hostname on $timestamp"
4402 _ACEOF
4403
4404
4405 # Check whether --enable-default-optimizations was given.
4406 if test "${enable_default_optimizations+set}" = set; then :
4407   enableval=$enable_default_optimizations;
4408 fi
4409
4410 if test x"$enable_default_optimizations" != xno; then :
4411
4412     #Default cxxflags
4413     CXXFLAGS="$CXXFLAGS -DCHECKOPTS"
4414     CXXFLAGS="$CXXFLAGS -Wreturn-type -Wunused -Wuninitialized -Wall -Wno-psabi"
4415     CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops  -funroll-loops -DNDEBUG"
4416
4417 fi
4418
4419 # Checks for header files.
4420
4421 ac_header_dirent=no
4422 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4423   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; }
4426 if eval \${$as_ac_Header+:} false; then :
4427   $as_echo_n "(cached) " >&6
4428 else
4429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h.  */
4431 #include <sys/types.h>
4432 #include <$ac_hdr>
4433
4434 int
4435 main ()
4436 {
4437 if ((DIR *) 0)
4438 return 0;
4439   ;
4440   return 0;
4441 }
4442 _ACEOF
4443 if ac_fn_c_try_compile "$LINENO"; then :
4444   eval "$as_ac_Header=yes"
4445 else
4446   eval "$as_ac_Header=no"
4447 fi
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 fi
4450 eval ac_res=\$$as_ac_Header
4451                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4452 $as_echo "$ac_res" >&6; }
4453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4454   cat >>confdefs.h <<_ACEOF
4455 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4456 _ACEOF
4457
4458 ac_header_dirent=$ac_hdr; break
4459 fi
4460
4461 done
4462 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4463 if test $ac_header_dirent = dirent.h; then
4464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4465 $as_echo_n "checking for library containing opendir... " >&6; }
4466 if ${ac_cv_search_opendir+:} false; then :
4467   $as_echo_n "(cached) " >&6
4468 else
4469   ac_func_search_save_LIBS=$LIBS
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* 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
4477 extern "C"
4478 #endif
4479 char opendir ();
4480 int
4481 main ()
4482 {
4483 return opendir ();
4484   ;
4485   return 0;
4486 }
4487 _ACEOF
4488 for 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
4495   if ac_fn_c_try_link "$LINENO"; then :
4496   ac_cv_search_opendir=$ac_res
4497 fi
4498 rm -f core conftest.err conftest.$ac_objext \
4499     conftest$ac_exeext
4500   if ${ac_cv_search_opendir+:} false; then :
4501   break
4502 fi
4503 done
4504 if ${ac_cv_search_opendir+:} false; then :
4505
4506 else
4507   ac_cv_search_opendir=no
4508 fi
4509 rm conftest.$ac_ext
4510 LIBS=$ac_func_search_save_LIBS
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4513 $as_echo "$ac_cv_search_opendir" >&6; }
4514 ac_res=$ac_cv_search_opendir
4515 if test "$ac_res" != no; then :
4516   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4517
4518 fi
4519
4520 else
4521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4522 $as_echo_n "checking for library containing opendir... " >&6; }
4523 if ${ac_cv_search_opendir+:} false; then :
4524   $as_echo_n "(cached) " >&6
4525 else
4526   ac_func_search_save_LIBS=$LIBS
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* 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
4534 extern "C"
4535 #endif
4536 char opendir ();
4537 int
4538 main ()
4539 {
4540 return opendir ();
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 for 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
4552   if ac_fn_c_try_link "$LINENO"; then :
4553   ac_cv_search_opendir=$ac_res
4554 fi
4555 rm -f core conftest.err conftest.$ac_objext \
4556     conftest$ac_exeext
4557   if ${ac_cv_search_opendir+:} false; then :
4558   break
4559 fi
4560 done
4561 if ${ac_cv_search_opendir+:} false; then :
4562
4563 else
4564   ac_cv_search_opendir=no
4565 fi
4566 rm conftest.$ac_ext
4567 LIBS=$ac_func_search_save_LIBS
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4570 $as_echo "$ac_cv_search_opendir" >&6; }
4571 ac_res=$ac_cv_search_opendir
4572 if test "$ac_res" != no; then :
4573   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4574
4575 fi
4576
4577 fi
4578
4579 ac_ext=c
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4584 { $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; }
4586 # On Suns, sometimes $CPP names a directory.
4587 if test -n "$CPP" && test -d "$CPP"; then
4588   CPP=
4589 fi
4590 if test -z "$CPP"; then
4591   if ${ac_cv_prog_CPP+:} false; then :
4592   $as_echo_n "(cached) " >&6
4593 else
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
4598 for ac_c_preproc_warn_flag in '' yes
4599 do
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.
4606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h.  */
4608 #ifdef __STDC__
4609 # include <limits.h>
4610 #else
4611 # include <assert.h>
4612 #endif
4613                      Syntax error
4614 _ACEOF
4615 if ac_fn_c_try_cpp "$LINENO"; then :
4616
4617 else
4618   # Broken: fails on valid input.
4619 continue
4620 fi
4621 rm -f conftest.err conftest.i conftest.$ac_ext
4622
4623   # OK, works on sane cases.  Now check whether nonexistent headers
4624   # can be detected and how.
4625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h.  */
4627 #include <ac_nonexistent.h>
4628 _ACEOF
4629 if ac_fn_c_try_cpp "$LINENO"; then :
4630   # Broken: success on invalid input.
4631 continue
4632 else
4633   # Passes both tests.
4634 ac_preproc_ok=:
4635 break
4636 fi
4637 rm -f conftest.err conftest.i conftest.$ac_ext
4638
4639 done
4640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4641 rm -f conftest.i conftest.err conftest.$ac_ext
4642 if $ac_preproc_ok; then :
4643   break
4644 fi
4645
4646     done
4647     ac_cv_prog_CPP=$CPP
4648
4649 fi
4650   CPP=$ac_cv_prog_CPP
4651 else
4652   ac_cv_prog_CPP=$CPP
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4655 $as_echo "$CPP" >&6; }
4656 ac_preproc_ok=false
4657 for ac_c_preproc_warn_flag in '' yes
4658 do
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.
4665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h.  */
4667 #ifdef __STDC__
4668 # include <limits.h>
4669 #else
4670 # include <assert.h>
4671 #endif
4672                      Syntax error
4673 _ACEOF
4674 if ac_fn_c_try_cpp "$LINENO"; then :
4675
4676 else
4677   # Broken: fails on valid input.
4678 continue
4679 fi
4680 rm -f conftest.err conftest.i conftest.$ac_ext
4681
4682   # OK, works on sane cases.  Now check whether nonexistent headers
4683   # can be detected and how.
4684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h.  */
4686 #include <ac_nonexistent.h>
4687 _ACEOF
4688 if ac_fn_c_try_cpp "$LINENO"; then :
4689   # Broken: success on invalid input.
4690 continue
4691 else
4692   # Passes both tests.
4693 ac_preproc_ok=:
4694 break
4695 fi
4696 rm -f conftest.err conftest.i conftest.$ac_ext
4697
4698 done
4699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4700 rm -f conftest.i conftest.err conftest.$ac_ext
4701 if $ac_preproc_ok; then :
4702
4703 else
4704   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4706 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4707 See \`config.log' for more details" "$LINENO" 5; }
4708 fi
4709
4710 ac_ext=c
4711 ac_cpp='$CPP $CPPFLAGS'
4712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4715
4716
4717 { $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; }
4719 if ${ac_cv_path_GREP+:} false; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722   if test -z "$GREP"; then
4723   ac_path_GREP_found=false
4724   # Loop through the user's path and test for each of PROGNAME-LIST
4725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4727 do
4728   IFS=$as_save_IFS
4729   test -z "$as_dir" && as_dir=.
4730     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.
4735   # Check for GNU $ac_path_GREP
4736 case `"$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
4741   $as_echo_n 0123456789 >"conftest.in"
4742   while :
4743   do
4744     cat "conftest.in" "conftest.in" >"conftest.tmp"
4745     mv "conftest.tmp" "conftest.in"
4746     cp "conftest.in" "conftest.nl"
4747     $as_echo 'GREP' >> "conftest.nl"
4748     "$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
4750     as_fn_arith $ac_count + 1 && ac_count=$as_val
4751     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;;
4760 esac
4761
4762       $ac_path_GREP_found && break 3
4763     done
4764   done
4765   done
4766 IFS=$as_save_IFS
4767   if test -z "$ac_cv_path_GREP"; then
4768     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4769   fi
4770 else
4771   ac_cv_path_GREP=$GREP
4772 fi
4773
4774 fi
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4776 $as_echo "$ac_cv_path_GREP" >&6; }
4777  GREP="$ac_cv_path_GREP"
4778
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4781 $as_echo_n "checking for egrep... " >&6; }
4782 if ${ac_cv_path_EGREP+:} false; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4786    then ac_cv_path_EGREP="$GREP -E"
4787    else
4788      if test -z "$EGREP"; then
4789   ac_path_EGREP_found=false
4790   # Loop through the user's path and test for each of PROGNAME-LIST
4791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796     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.
4801   # Check for GNU $ac_path_EGREP
4802 case `"$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
4807   $as_echo_n 0123456789 >"conftest.in"
4808   while :
4809   do
4810     cat "conftest.in" "conftest.in" >"conftest.tmp"
4811     mv "conftest.tmp" "conftest.in"
4812     cp "conftest.in" "conftest.nl"
4813     $as_echo 'EGREP' >> "conftest.nl"
4814     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4815     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4816     as_fn_arith $ac_count + 1 && ac_count=$as_val
4817     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;;
4826 esac
4827
4828       $ac_path_EGREP_found && break 3
4829     done
4830   done
4831   done
4832 IFS=$as_save_IFS
4833   if test -z "$ac_cv_path_EGREP"; then
4834     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4835   fi
4836 else
4837   ac_cv_path_EGREP=$EGREP
4838 fi
4839
4840    fi
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4843 $as_echo "$ac_cv_path_EGREP" >&6; }
4844  EGREP="$ac_cv_path_EGREP"
4845
4846
4847 { $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; }
4849 if ${ac_cv_header_stdc+:} false; then :
4850   $as_echo_n "(cached) " >&6
4851 else
4852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h.  */
4854 #include <stdlib.h>
4855 #include <stdarg.h>
4856 #include <string.h>
4857 #include <float.h>
4858
4859 int
4860 main ()
4861 {
4862
4863   ;
4864   return 0;
4865 }
4866 _ACEOF
4867 if ac_fn_c_try_compile "$LINENO"; then :
4868   ac_cv_header_stdc=yes
4869 else
4870   ac_cv_header_stdc=no
4871 fi
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873
4874 if test $ac_cv_header_stdc = yes; then
4875   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h.  */
4878 #include <string.h>
4879
4880 _ACEOF
4881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4882   $EGREP "memchr" >/dev/null 2>&1; then :
4883
4884 else
4885   ac_cv_header_stdc=no
4886 fi
4887 rm -f conftest*
4888
4889 fi
4890
4891 if test $ac_cv_header_stdc = yes; then
4892   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h.  */
4895 #include <stdlib.h>
4896
4897 _ACEOF
4898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4899   $EGREP "free" >/dev/null 2>&1; then :
4900
4901 else
4902   ac_cv_header_stdc=no
4903 fi
4904 rm -f conftest*
4905
4906 fi
4907
4908 if test $ac_cv_header_stdc = yes; then
4909   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4910   if test "$cross_compiling" = yes; then :
4911   :
4912 else
4913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* 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)))
4929 int
4930 main ()
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
4940 if ac_fn_c_try_run "$LINENO"; then :
4941
4942 else
4943   ac_cv_header_stdc=no
4944 fi
4945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4946   conftest.$ac_objext conftest.beam conftest.$ac_ext
4947 fi
4948
4949 fi
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4952 $as_echo "$ac_cv_header_stdc" >&6; }
4953 if test $ac_cv_header_stdc = yes; then
4954
4955 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4956
4957 fi
4958
4959 # Skip malloc.h to prevent redefinition of HAVE_MALLOC_H on some platforms
4960 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4961 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4962                   inttypes.h stdint.h unistd.h
4963 do :
4964   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4965 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4966 "
4967 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4968   cat >>confdefs.h <<_ACEOF
4969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4970 _ACEOF
4971
4972 fi
4973
4974 done
4975
4976
4977 for 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
4978 do :
4979   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4980 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4981 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4982   cat >>confdefs.h <<_ACEOF
4983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4984 _ACEOF
4985
4986 else
4987   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4989 as_fn_error $? "Missing some header files.
4990 See \`config.log' for more details" "$LINENO" 5; }
4991 fi
4992
4993 done
4994
4995 for ac_header in pthread.h
4996 do :
4997   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
4998 if test "x$ac_cv_header_pthread_h" = xyes; then :
4999   cat >>confdefs.h <<_ACEOF
5000 #define HAVE_PTHREAD_H 1
5001 _ACEOF
5002
5003 fi
5004
5005 done
5006
5007 { $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; }
5009 if ${ac_cv_search_pthread_create+:} false; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012   ac_func_search_save_LIBS=$LIBS
5013 cat 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
5020 extern "C"
5021 #endif
5022 char pthread_create ();
5023 int
5024 main ()
5025 {
5026 return pthread_create ();
5027   ;
5028   return 0;
5029 }
5030 _ACEOF
5031 for 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
5040 fi
5041 rm -f core conftest.err conftest.$ac_objext \
5042     conftest$ac_exeext
5043   if ${ac_cv_search_pthread_create+:} false; then :
5044   break
5045 fi
5046 done
5047 if ${ac_cv_search_pthread_create+:} false; then :
5048
5049 else
5050   ac_cv_search_pthread_create=no
5051 fi
5052 rm conftest.$ac_ext
5053 LIBS=$ac_func_search_save_LIBS
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
5056 $as_echo "$ac_cv_search_pthread_create" >&6; }
5057 ac_res=$ac_cv_search_pthread_create
5058 if test "$ac_res" != no; then :
5059   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5060
5061 fi
5062
5063 ac_fn_c_check_type "$LINENO" "pthread_barrier_t" "ac_cv_type_pthread_barrier_t" "$ac_includes_default"
5064 if test "x$ac_cv_type_pthread_barrier_t" = xyes; then :
5065
5066 $as_echo "#define HAVE_PTHREAD_BARRIERS 1" >>confdefs.h
5067
5068 fi
5069
5070 for ac_header in libaio.h
5071 do :
5072   ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
5073 if test "x$ac_cv_header_libaio_h" = xyes; then :
5074   cat >>confdefs.h <<_ACEOF
5075 #define HAVE_LIBAIO_H 1
5076 _ACEOF
5077
5078 fi
5079
5080 done
5081
5082 { $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; }
5084 if ${ac_cv_search_io_setup+:} false; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   ac_func_search_save_LIBS=$LIBS
5088 cat 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
5095 extern "C"
5096 #endif
5097 char io_setup ();
5098 int
5099 main ()
5100 {
5101 return io_setup ();
5102   ;
5103   return 0;
5104 }
5105 _ACEOF
5106 for 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
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext \
5117     conftest$ac_exeext
5118   if ${ac_cv_search_io_setup+:} false; then :
5119   break
5120 fi
5121 done
5122 if ${ac_cv_search_io_setup+:} false; then :
5123
5124 else
5125   ac_cv_search_io_setup=no
5126 fi
5127 rm conftest.$ac_ext
5128 LIBS=$ac_func_search_save_LIBS
5129 fi
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_io_setup" >&5
5131 $as_echo "$ac_cv_search_io_setup" >&6; }
5132 ac_res=$ac_cv_search_io_setup
5133 if test "$ac_res" != no; then :
5134   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5135
5136 fi
5137
5138 for ac_header in sys/shm.h
5139 do :
5140   ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
5141 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
5142   cat >>confdefs.h <<_ACEOF
5143 #define HAVE_SYS_SHM_H 1
5144 _ACEOF
5145
5146 fi
5147
5148 done
5149
5150 { $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; }
5152 if ${ac_cv_search_shm_open+:} false; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155   ac_func_search_save_LIBS=$LIBS
5156 cat 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
5163 extern "C"
5164 #endif
5165 char shm_open ();
5166 int
5167 main ()
5168 {
5169 return shm_open ();
5170   ;
5171   return 0;
5172 }
5173 _ACEOF
5174 for 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
5183 fi
5184 rm -f core conftest.err conftest.$ac_objext \
5185     conftest$ac_exeext
5186   if ${ac_cv_search_shm_open+:} false; then :
5187   break
5188 fi
5189 done
5190 if ${ac_cv_search_shm_open+:} false; then :
5191
5192 else
5193   ac_cv_search_shm_open=no
5194 fi
5195 rm conftest.$ac_ext
5196 LIBS=$ac_func_search_save_LIBS
5197 fi
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
5199 $as_echo "$ac_cv_search_shm_open" >&6; }
5200 ac_res=$ac_cv_search_shm_open
5201 if test "$ac_res" != no; then :
5202   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5203
5204 fi
5205
5206
5207
5208 # Checks for typedefs, structures, and compiler characteristics.
5209 { $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; }
5211 if ${ac_cv_header_stdbool_h+:} false; then :
5212   $as_echo_n "(cached) " >&6
5213 else
5214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* 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];
5243         /* See body of main program for 'e'.  */
5244         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 };
5249         /* The following fails for
5250            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5251         _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];
5254         /* 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
5261 int
5262 main ()
5263 {
5264
5265         bool e = &s;
5266         *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
5276 if ac_fn_c_try_compile "$LINENO"; then :
5277   ac_cv_header_stdbool_h=yes
5278 else
5279   ac_cv_header_stdbool_h=no
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 fi
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5284 $as_echo "$ac_cv_header_stdbool_h" >&6; }
5285 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5286 if test "x$ac_cv_type__Bool" = xyes; then :
5287
5288 cat >>confdefs.h <<_ACEOF
5289 #define HAVE__BOOL 1
5290 _ACEOF
5291
5292
5293 fi
5294
5295 if test $ac_cv_header_stdbool_h = yes; then
5296
5297 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
5298
5299 fi
5300
5301 { $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; }
5303 if ${ac_cv_c_const+:} false; then :
5304   $as_echo_n "(cached) " >&6
5305 else
5306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h.  */
5308
5309 int
5310 main ()
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
5366 if ac_fn_c_try_compile "$LINENO"; then :
5367   ac_cv_c_const=yes
5368 else
5369   ac_cv_c_const=no
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 fi
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5374 $as_echo "$ac_cv_c_const" >&6; }
5375 if test $ac_cv_c_const = no; then
5376
5377 $as_echo "#define const /**/" >>confdefs.h
5378
5379 fi
5380
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5382 $as_echo_n "checking for inline... " >&6; }
5383 if ${ac_cv_c_inline+:} false; then :
5384   $as_echo_n "(cached) " >&6
5385 else
5386   ac_cv_c_inline=no
5387 for ac_kw in inline __inline__ __inline; do
5388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h.  */
5390 #ifndef __cplusplus
5391 typedef int foo_t;
5392 static $ac_kw foo_t static_foo () {return 0; }
5393 $ac_kw foo_t foo () {return 0; }
5394 #endif
5395
5396 _ACEOF
5397 if ac_fn_c_try_compile "$LINENO"; then :
5398   ac_cv_c_inline=$ac_kw
5399 fi
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401   test "$ac_cv_c_inline" != no && break
5402 done
5403
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5406 $as_echo "$ac_cv_c_inline" >&6; }
5407
5408 case $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     ;;
5421 esac
5422
5423 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5424 if test "x$ac_cv_type_pid_t" = xyes; then :
5425
5426 else
5427
5428 cat >>confdefs.h <<_ACEOF
5429 #define pid_t int
5430 _ACEOF
5431
5432 fi
5433
5434 { $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; }
5436 if ${ac_cv_c_restrict+:} false; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439   ac_cv_c_restrict=no
5440    # 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
5443 /* end confdefs.h.  */
5444 typedef int * int_ptr;
5445         int foo (int_ptr $ac_kw ip) {
5446         return ip[0];
5447        }
5448 int
5449 main ()
5450 {
5451 int s[1];
5452         int * $ac_kw t = s;
5453         t[0] = 0;
5454         return foo(t)
5455   ;
5456   return 0;
5457 }
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460   ac_cv_c_restrict=$ac_kw
5461 fi
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463      test "$ac_cv_c_restrict" != no && break
5464    done
5465
5466 fi
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5468 $as_echo "$ac_cv_c_restrict" >&6; }
5469
5470  case $ac_cv_c_restrict in
5471    restrict) ;;
5472    no) $as_echo "#define restrict /**/" >>confdefs.h
5473  ;;
5474    *)  cat >>confdefs.h <<_ACEOF
5475 #define restrict $ac_cv_c_restrict
5476 _ACEOF
5477  ;;
5478  esac
5479
5480 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5481 if test "x$ac_cv_type_size_t" = xyes; then :
5482
5483 else
5484
5485 cat >>confdefs.h <<_ACEOF
5486 #define size_t unsigned int
5487 _ACEOF
5488
5489 fi
5490
5491 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5492 if test "x$ac_cv_type_ssize_t" = xyes; then :
5493
5494 else
5495
5496 cat >>confdefs.h <<_ACEOF
5497 #define ssize_t int
5498 _ACEOF
5499
5500 fi
5501
5502 { $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; }
5504 if ${ac_cv_header_time+:} false; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h.  */
5509 #include <sys/types.h>
5510 #include <sys/time.h>
5511 #include <time.h>
5512
5513 int
5514 main ()
5515 {
5516 if ((struct tm *) 0)
5517 return 0;
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 if ac_fn_c_try_compile "$LINENO"; then :
5523   ac_cv_header_time=yes
5524 else
5525   ac_cv_header_time=no
5526 fi
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 fi
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5530 $as_echo "$ac_cv_header_time" >&6; }
5531 if test $ac_cv_header_time = yes; then
5532
5533 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5534
5535 fi
5536
5537 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5538 case $ac_cv_c_uint16_t in #(
5539   no|yes) ;; #(
5540   *)
5541
5542
5543 cat >>confdefs.h <<_ACEOF
5544 #define uint16_t $ac_cv_c_uint16_t
5545 _ACEOF
5546 ;;
5547   esac
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5550 $as_echo_n "checking for working volatile... " >&6; }
5551 if ${ac_cv_c_volatile+:} false; then :
5552   $as_echo_n "(cached) " >&6
5553 else
5554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h.  */
5556
5557 int
5558 main ()
5559 {
5560
5561 volatile int x;
5562 int * volatile y = (int *) 0;
5563 return !x && !y;
5564   ;
5565   return 0;
5566 }
5567 _ACEOF
5568 if ac_fn_c_try_compile "$LINENO"; then :
5569   ac_cv_c_volatile=yes
5570 else
5571   ac_cv_c_volatile=no
5572 fi
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 fi
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5576 $as_echo "$ac_cv_c_volatile" >&6; }
5577 if test $ac_cv_c_volatile = no; then
5578
5579 $as_echo "#define volatile /**/" >>confdefs.h
5580
5581 fi
5582
5583
5584
5585 # Checks for library functions.
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5587 $as_echo_n "checking whether closedir returns void... " >&6; }
5588 if ${ac_cv_func_closedir_void+:} false; then :
5589   $as_echo_n "(cached) " >&6
5590 else
5591   if test "$cross_compiling" = yes; then :
5592   ac_cv_func_closedir_void=yes
5593 else
5594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h.  */
5596 $ac_includes_default
5597 #include <$ac_header_dirent>
5598 #ifndef __cplusplus
5599 int closedir ();
5600 #endif
5601
5602 int
5603 main ()
5604 {
5605 return closedir (opendir (".")) != 0;
5606   ;
5607   return 0;
5608 }
5609 _ACEOF
5610 if ac_fn_c_try_run "$LINENO"; then :
5611   ac_cv_func_closedir_void=no
5612 else
5613   ac_cv_func_closedir_void=yes
5614 fi
5615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5616   conftest.$ac_objext conftest.beam conftest.$ac_ext
5617 fi
5618
5619 fi
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5621 $as_echo "$ac_cv_func_closedir_void" >&6; }
5622 if test $ac_cv_func_closedir_void = yes; then
5623
5624 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5625
5626 fi
5627
5628 if test $ac_cv_c_compiler_gnu = yes; then
5629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5630 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5631 if ${ac_cv_prog_gcc_traditional+:} false; then :
5632   $as_echo_n "(cached) " >&6
5633 else
5634     ac_pattern="Autoconf.*'x'"
5635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h.  */
5637 #include <sgtty.h>
5638 Autoconf TIOCGETP
5639 _ACEOF
5640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5641   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5642   ac_cv_prog_gcc_traditional=yes
5643 else
5644   ac_cv_prog_gcc_traditional=no
5645 fi
5646 rm -f conftest*
5647
5648
5649   if test $ac_cv_prog_gcc_traditional = no; then
5650     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h.  */
5652 #include <termio.h>
5653 Autoconf TCGETA
5654 _ACEOF
5655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5657   ac_cv_prog_gcc_traditional=yes
5658 fi
5659 rm -f conftest*
5660
5661   fi
5662 fi
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5664 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5665   if test $ac_cv_prog_gcc_traditional = yes; then
5666     CC="$CC -traditional"
5667   fi
5668 fi
5669
5670 for ac_header in sys/select.h sys/socket.h
5671 do :
5672   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5673 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5674 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5675   cat >>confdefs.h <<_ACEOF
5676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5677 _ACEOF
5678
5679 fi
5680
5681 done
5682
5683 { $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; }
5685 if ${ac_cv_func_select_args+:} false; then :
5686   $as_echo_n "(cached) " >&6
5687 else
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
5691    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* 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
5701 int
5702 main ()
5703 {
5704 extern int select ($ac_arg1,
5705                                             $ac_arg234, $ac_arg234, $ac_arg234,
5706                                             $ac_arg5);
5707   ;
5708   return 0;
5709 }
5710 _ACEOF
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715   done
5716  done
5717 done
5718 # Provide a safe default value.
5719 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
5720
5721 fi
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
5723 $as_echo "$ac_cv_func_select_args" >&6; }
5724 ac_save_IFS=$IFS; IFS=','
5725 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5726 IFS=$ac_save_IFS
5727 shift
5728
5729 cat >>confdefs.h <<_ACEOF
5730 #define SELECT_TYPE_ARG1 $1
5731 _ACEOF
5732
5733
5734 cat >>confdefs.h <<_ACEOF
5735 #define SELECT_TYPE_ARG234 ($2)
5736 _ACEOF
5737
5738
5739 cat >>confdefs.h <<_ACEOF
5740 #define SELECT_TYPE_ARG5 ($3)
5741 _ACEOF
5742
5743 rm -f conftest*
5744
5745 { $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; }
5747 if ${ac_cv_type_signal+:} false; then :
5748   $as_echo_n "(cached) " >&6
5749 else
5750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h.  */
5752 #include <sys/types.h>
5753 #include <signal.h>
5754
5755 int
5756 main ()
5757 {
5758 return *(signal (0, 0)) (0) == 1;
5759   ;
5760   return 0;
5761 }
5762 _ACEOF
5763 if ac_fn_c_try_compile "$LINENO"; then :
5764   ac_cv_type_signal=int
5765 else
5766   ac_cv_type_signal=void
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 fi
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5771 $as_echo "$ac_cv_type_signal" >&6; }
5772
5773 cat >>confdefs.h <<_ACEOF
5774 #define RETSIGTYPE $ac_cv_type_signal
5775 _ACEOF
5776
5777
5778 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
5779 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
5780   ac_have_decl=1
5781 else
5782   ac_have_decl=0
5783 fi
5784
5785 cat >>confdefs.h <<_ACEOF
5786 #define HAVE_DECL_STRERROR_R $ac_have_decl
5787 _ACEOF
5788
5789 for ac_func in strerror_r
5790 do :
5791   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
5792 if test "x$ac_cv_func_strerror_r" = xyes; then :
5793   cat >>confdefs.h <<_ACEOF
5794 #define HAVE_STRERROR_R 1
5795 _ACEOF
5796
5797 fi
5798 done
5799
5800 { $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; }
5802 if ${ac_cv_func_strerror_r_char_p+:} false; then :
5803   $as_echo_n "(cached) " >&6
5804 else
5805
5806     ac_cv_func_strerror_r_char_p=no
5807     if test $ac_cv_have_decl_strerror_r = yes; then
5808       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h.  */
5810 $ac_includes_default
5811 int
5812 main ()
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
5824 if ac_fn_c_try_compile "$LINENO"; then :
5825   ac_cv_func_strerror_r_char_p=yes
5826 fi
5827 rm -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.
5835       if test "$cross_compiling" = yes; then :
5836   :
5837 else
5838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h.  */
5840 $ac_includes_default
5841         extern char *strerror_r ();
5842 int
5843 main ()
5844 {
5845 char buf[100];
5846           char x = *strerror_r (0, buf, sizeof buf);
5847           return ! isalpha (x);
5848   ;
5849   return 0;
5850 }
5851 _ACEOF
5852 if ac_fn_c_try_run "$LINENO"; then :
5853   ac_cv_func_strerror_r_char_p=yes
5854 fi
5855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5856   conftest.$ac_objext conftest.beam conftest.$ac_ext
5857 fi
5858
5859     fi
5860
5861 fi
5862 { $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; }
5864 if test $ac_cv_func_strerror_r_char_p = yes; then
5865
5866 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
5867
5868 fi
5869
5870 for ac_func in vprintf
5871 do :
5872   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5873 if test "x$ac_cv_func_vprintf" = xyes; then :
5874   cat >>confdefs.h <<_ACEOF
5875 #define HAVE_VPRINTF 1
5876 _ACEOF
5877
5878 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5879 if test "x$ac_cv_func__doprnt" = xyes; then :
5880
5881 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5882
5883 fi
5884
5885 fi
5886 done
5887
5888
5889 for ac_func in ftruncate gettimeofday memset munmap select socket strtol strtoull
5890 do :
5891   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5892 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5893 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5894   cat >>confdefs.h <<_ACEOF
5895 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5896 _ACEOF
5897
5898 fi
5899 done
5900
5901 for ac_func in mmap64 posix_memalign rand_r sched_getaffinity
5902 do :
5903   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5905 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5906   cat >>confdefs.h <<_ACEOF
5907 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5908 _ACEOF
5909
5910 fi
5911 done
5912
5913
5914 ac_config_files="$ac_config_files Makefile src/Makefile"
5915
5916 cat >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 #(
5943       *_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;} ;;
5945       esac
5946       case $ac_var in #(
5947       _ | IFS | as_nl) ;; #(
5948       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5949       *) { eval $ac_var=; unset $ac_var;} ;;
5950       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=\ *)
5957       # `set' does not quote correctly, so add quotes: double-quote
5958       # substitution turns \\\\ into \\, and sed turns \\ into \.
5959       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
5978 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5979   if test -w "$cache_file"; then
5980     if test "x$cache_file" != "x/dev/null"; then
5981       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5982 $as_echo "$as_me: updating cache $cache_file" >&6;}
5983       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
5995   else
5996     { $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;}
5998   fi
5999 fi
6000 rm -f confcache
6001
6002 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6003 # Let make expand exec_prefix.
6004 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6005
6006 DEFS=-DHAVE_CONFIG_H
6007
6008 ac_libobjs=
6009 ac_ltlibobjs=
6010 U=
6011 for 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$//'
6014   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6015   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6016   #    will be set to the directory where LIBOBJS objects are built.
6017   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6018   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6019 done
6020 LIBOBJS=$ac_libobjs
6021
6022 LTLIBOBJS=$ac_ltlibobjs
6023
6024
6025  if test -n "$EXEEXT"; then
6026   am__EXEEXT_TRUE=
6027   am__EXEEXT_FALSE='#'
6028 else
6029   am__EXEEXT_TRUE='#'
6030   am__EXEEXT_FALSE=
6031 fi
6032
6033 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6034   as_fn_error $? "conditional \"AMDEP\" was never defined.
6035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6036 fi
6037 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6038   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
6039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6040 fi
6041 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6042   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6044 fi
6045
6046 : "${CONFIG_STATUS=./config.status}"
6047 ac_write_fail=0
6048 ac_clean_files_save=$ac_clean_files
6049 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6051 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6052 as_write_fail=0
6053 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6054 #! $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
6060 debug=false
6061 ac_cs_recheck=false
6062 ac_cs_silent=false
6063
6064 SHELL=\${CONFIG_SHELL-$SHELL}
6065 export SHELL
6066 _ASEOF
6067 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6068 ## -------------------- ##
6069 ## M4sh Initialization. ##
6070 ## -------------------- ##
6071
6072 # Be more Bourne compatible
6073 DUALCASE=1; export DUALCASE # for MKS sh
6074 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6075   emulate sh
6076   NULLCMD=:
6077   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6078   # is contrary to our usage.  Disable this feature.
6079   alias -g '${1+"$@"}'='"$@"'
6080   setopt NO_GLOB_SUBST
6081 else
6082   case `(set -o) 2>/dev/null` in #(
6083   *posix*) :
6084     set -o posix ;; #(
6085   *) :
6086      ;;
6087 esac
6088 fi
6089
6090
6091 as_nl='
6092 '
6093 export as_nl
6094 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6095 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6096 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6097 as_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.
6100 if 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 --'
6104 elif (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'
6107 else
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'
6127 fi
6128
6129 # The user is always right.
6130 if test "${PATH_SEPARATOR+set}" != set; then
6131   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   }
6136 fi
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.)
6144 IFS=" ""        $as_nl"
6145
6146 # Find who we are.  Look in the path if we contain no directory separator.
6147 as_myself=
6148 case $0 in #((
6149   *[\\/]* ) as_myself=$0 ;;
6150   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153   IFS=$as_save_IFS
6154   test -z "$as_dir" && as_dir=.
6155     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6156   done
6157 IFS=$as_save_IFS
6158
6159      ;;
6160 esac
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.
6163 if test "x$as_myself" = x; then
6164   as_myself=$0
6165 fi
6166 if test ! -f "$as_myself"; then
6167   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6168   exit 1
6169 fi
6170
6171 # 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.
6175 for as_var in BASH_ENV ENV MAIL MAILPATH
6176 do eval test x\${$as_var+set} = xset \
6177   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6178 done
6179 PS1='$ '
6180 PS2='> '
6181 PS4='+ '
6182
6183 # NLS nuisances.
6184 LC_ALL=C
6185 export LC_ALL
6186 LANGUAGE=C
6187 export LANGUAGE
6188
6189 # CDPATH.
6190 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6191
6192
6193 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6194 # ----------------------------------------
6195 # 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
6197 # script with STATUS, using 1 if that was 0.
6198 as_fn_error ()
6199 {
6200   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
6204   fi
6205   $as_echo "$as_me: error: $2" >&2
6206   as_fn_exit $as_status
6207 } # as_fn_error
6208
6209
6210 # as_fn_set_status STATUS
6211 # -----------------------
6212 # Set $? to STATUS, without forking.
6213 as_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.
6221 as_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.
6231 as_fn_unset ()
6232 {
6233   { eval $1=; unset $1;}
6234 }
6235 as_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.
6242 if (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   }'
6247 else
6248   as_fn_append ()
6249   {
6250     eval $1=\$$1\$2
6251   }
6252 fi # 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.
6259 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6260   eval 'as_fn_arith ()
6261   {
6262     as_val=$(( $* ))
6263   }'
6264 else
6265   as_fn_arith ()
6266   {
6267     as_val=`expr "$@" || test $? -eq 1`
6268   }
6269 fi # as_fn_arith
6270
6271
6272 if expr a : '\(a\)' >/dev/null 2>&1 &&
6273    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6274   as_expr=expr
6275 else
6276   as_expr=false
6277 fi
6278
6279 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6280   as_basename=basename
6281 else
6282   as_basename=false
6283 fi
6284
6285 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6286   as_dirname=dirname
6287 else
6288   as_dirname=false
6289 fi
6290
6291 as_me=`$as_basename -- "$0" ||
6292 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6293          X"$0" : 'X\(//\)$' \| \
6294          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6295 $as_echo X/"$0" |
6296     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
6310 # Avoid depending upon Character Ranges.
6311 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6312 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6313 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6314 as_cr_digits='0123456789'
6315 as_cr_alnum=$as_cr_Letters$as_cr_digits
6316
6317 ECHO_C= ECHO_N= ECHO_T=
6318 case `echo -n x` in #(((((
6319 -n*)
6320   case `echo 'xy\c'` in
6321   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6322   xy)  ECHO_C='\c';;
6323   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6324        ECHO_T=' ';;
6325   esac;;
6326 *)
6327   ECHO_N='-n';;
6328 esac
6329
6330 rm -f conf$$ conf$$.exe conf$$.file
6331 if test -d conf$$.dir; then
6332   rm -f conf$$.dir/conf$$.file
6333 else
6334   rm -f conf$$.dir
6335   mkdir conf$$.dir 2>/dev/null
6336 fi
6337 if (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
6349     as_ln_s='cp -p'
6350   fi
6351 else
6352   as_ln_s='cp -p'
6353 fi
6354 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6355 rmdir conf$$.dir 2>/dev/null
6356
6357
6358 # as_fn_mkdir_p
6359 # -------------
6360 # Create "$as_dir" as a directory, including parents if necessary.
6361 as_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"
6401   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6402
6403
6404 } # as_fn_mkdir_p
6405 if mkdir -p . 2>/dev/null; then
6406   as_mkdir_p='mkdir -p "$as_dir"'
6407 else
6408   test -d ./-p && rmdir ./-p
6409   as_mkdir_p=false
6410 fi
6411
6412 if test -x / >/dev/null 2>&1; then
6413   as_test_x='test -x'
6414 else
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
6423         test -d "$1/.";
6424       else
6425         case $1 in #(
6426         -*)set "./$1";;
6427         esac;
6428         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6429         ???[sx]*):;;*)false;;esac;fi
6430     '\'' sh
6431   '
6432 fi
6433 as_executable_p=$as_test_x
6434
6435 # Sed expression to map a string onto a valid CPP name.
6436 as_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.
6439 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6440
6441
6442 exec 6>&1
6443 ## ----------------------------------- ##
6444 ## Main body of $CONFIG_STATUS script. ##
6445 ## ----------------------------------- ##
6446 _ASEOF
6447 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6448
6449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6450 # Save the log message, to keep $0 and so on meaningful, and to
6451 # report actual input values of CONFIG_FILES etc. instead of their
6452 # values after options handling.
6453 ac_log="
6454 This file was extended by stressapptest $as_me 1.0.6_autoconf, which was
6455 generated by GNU Autoconf 2.68.  Invocation command line was
6456
6457   CONFIG_FILES    = $CONFIG_FILES
6458   CONFIG_HEADERS  = $CONFIG_HEADERS
6459   CONFIG_LINKS    = $CONFIG_LINKS
6460   CONFIG_COMMANDS = $CONFIG_COMMANDS
6461   $ $0 $@
6462
6463 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6464 "
6465
6466 _ACEOF
6467
6468 case $ac_config_files in *"
6469 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6470 esac
6471
6472 case $ac_config_headers in *"
6473 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6474 esac
6475
6476
6477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6478 # Files that config.status was made for.
6479 config_files="$ac_config_files"
6480 config_headers="$ac_config_headers"
6481 config_commands="$ac_config_commands"
6482
6483 _ACEOF
6484
6485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6486 ac_cs_usage="\
6487 \`$as_me' instantiates files and other configuration actions
6488 from templates according to the current configuration.  Unless the files
6489 and actions are specified as TAGs, all are instantiated by default.
6490
6491 Usage: $0 [OPTION]... [TAG]...
6492
6493   -h, --help       print this help, then exit
6494   -V, --version    print version number and configuration settings, then exit
6495       --config     print configuration, then exit
6496   -q, --quiet, --silent
6497                    do not print progress messages
6498   -d, --debug      don't remove temporary files
6499       --recheck    update $as_me by reconfiguring in the same conditions
6500       --file=FILE[:TEMPLATE]
6501                    instantiate the configuration file FILE
6502       --header=FILE[:TEMPLATE]
6503                    instantiate the configuration header FILE
6504
6505 Configuration files:
6506 $config_files
6507
6508 Configuration headers:
6509 $config_headers
6510
6511 Configuration commands:
6512 $config_commands
6513
6514 Report bugs to <opensource@google.com>."
6515
6516 _ACEOF
6517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6518 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6519 ac_cs_version="\\
6520 stressapptest config.status 1.0.6_autoconf
6521 configured by $0, generated by GNU Autoconf 2.68,
6522   with options \\"\$ac_cs_config\\"
6523
6524 Copyright (C) 2010 Free Software Foundation, Inc.
6525 This config.status script is free software; the Free Software Foundation
6526 gives unlimited permission to copy, distribute and modify it."
6527
6528 ac_pwd='$ac_pwd'
6529 srcdir='$srcdir'
6530 INSTALL='$INSTALL'
6531 MKDIR_P='$MKDIR_P'
6532 AWK='$AWK'
6533 test -n "\$AWK" || AWK=awk
6534 _ACEOF
6535
6536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6537 # The default lists apply if the user does not specify any file.
6538 ac_need_defaults=:
6539 while test $# != 0
6540 do
6541   case $1 in
6542   --*=?*)
6543     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6544     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6545     ac_shift=:
6546     ;;
6547   --*=)
6548     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6549     ac_optarg=
6550     ac_shift=:
6551     ;;
6552   *)
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 )
6564     $as_echo "$ac_cs_version"; exit ;;
6565   --config | --confi | --conf | --con | --co | --c )
6566     $as_echo "$ac_cs_config"; exit ;;
6567   --debug | --debu | --deb | --de | --d | -d )
6568     debug=: ;;
6569   --file | --fil | --fi | --f )
6570     $ac_shift
6571     case $ac_optarg in
6572     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6573     '') as_fn_error $? "missing file argument" ;;
6574     esac
6575     as_fn_append CONFIG_FILES " '$ac_optarg'"
6576     ac_need_defaults=false;;
6577   --header | --heade | --head | --hea )
6578     $ac_shift
6579     case $ac_optarg in
6580     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6581     esac
6582     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6583     ac_need_defaults=false;;
6584   --he | --h)
6585     # Conflict between --help and --header
6586     as_fn_error $? "ambiguous option: \`$1'
6587 Try \`$0 --help' for more information.";;
6588   --help | --hel | -h )
6589     $as_echo "$ac_cs_usage"; exit ;;
6590   -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.
6595   -*) as_fn_error $? "unrecognized option: \`$1'
6596 Try \`$0 --help' for more information." ;;
6597
6598   *) as_fn_append ac_config_targets " $1"
6599      ac_need_defaults=false ;;
6600
6601   esac
6602   shift
6603 done
6604
6605 ac_configure_extra_args=
6606
6607 if $ac_cs_silent; then
6608   exec 6>/dev/null
6609   ac_configure_extra_args="$ac_configure_extra_args --silent"
6610 fi
6611
6612 _ACEOF
6613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6614 if \$ac_cs_recheck; then
6615   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'
6619   export CONFIG_SHELL
6620   exec "\$@"
6621 fi
6622
6623 _ACEOF
6624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6625 exec 5>>config.log
6626 {
6627   echo
6628   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6629 ## Running $as_me. ##
6630 _ASBOX
6631   $as_echo "$ac_log"
6632 } >&5
6633
6634 _ACEOF
6635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6636 #
6637 # INIT-COMMANDS
6638 #
6639 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6640
6641 _ACEOF
6642
6643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6644
6645 # Handling of arguments.
6646 for ac_config_target in $ac_config_targets
6647 do
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
6654   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6655   esac
6656 done
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.
6663 if $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
6667 fi
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 {
6677   tmp= ac_tmp=
6678   trap 'exit_status=$?
6679   : "${ac_tmp:=$tmp}"
6680   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6681 ' 0
6682   trap 'as_fn_exit 1' 1 2 13 15
6683 }
6684 # Create a (secure) tmp directory for tmp files.
6685
6686 {
6687   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6688   test -d "$tmp"
6689 }  ||
6690 {
6691   tmp=./conf$$-$RANDOM
6692   (umask 077 && mkdir "$tmp")
6693 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6694 ac_tmp=$tmp
6695
6696 # 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'.
6699 if test -n "$CONFIG_FILES"; then
6700
6701
6702 ac_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.
6706 if test "x$ac_cr" = x; then
6707   eval ac_cr=\$\'\\r\'
6708 fi
6709 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6710 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6711   ac_cs_awk_cr='\\r'
6712 else
6713   ac_cs_awk_cr=$ac_cr
6714 fi
6715
6716 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6717 _ACEOF
6718
6719
6720 {
6721   echo "cat >conf$$subs.awk <<_ACEOF" &&
6722   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6723   echo "_ACEOF"
6724 } >conf$$subs.sh ||
6725   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6726 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6727 ac_delim='%!_!# '
6728 for ac_last_try in false false false false false :; do
6729   . ./conf$$subs.sh ||
6730     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6731
6732   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
6734     break
6735   elif $ac_last_try; then
6736     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6737   else
6738     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6739   fi
6740 done
6741 rm -f conf$$subs.sh
6742
6743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6744 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6745 _ACEOF
6746 sed -n '
6747 h
6748 s/^/S["/; s/!.*/"]=/
6749 p
6750 g
6751 s/^[^!]*!//
6752 :repl
6753 t repl
6754 s/'"$ac_delim"'$//
6755 t delim
6756 :nl
6757 h
6758 s/\(.\{148\}\)..*/\1/
6759 t more1
6760 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6761 p
6762 n
6763 b repl
6764 :more1
6765 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6766 p
6767 g
6768 s/.\{148\}//
6769 t nl
6770 :delim
6771 h
6772 s/\(.\{148\}\)..*/\1/
6773 t more2
6774 s/["\\]/\\&/g; s/^/"/; s/$/"/
6775 p
6776 b
6777 :more2
6778 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6779 p
6780 g
6781 s/.\{148\}//
6782 t delim
6783 ' <conf$$subs.awk | sed '
6784 /^[^""]/{
6785   N
6786   s/\n//
6787 }
6788 ' >>$CONFIG_STATUS || ac_write_fail=1
6789 rm -f conf$$subs.awk
6790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6791 _ACAWK
6792 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6793   for (key in S) S_is_set[key] = 1
6794   FS = "\a"
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
6818 _ACEOF
6819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6820 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6821   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6822 else
6823   cat
6824 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6825   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6826 _ACEOF
6827
6828 # 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
6830 # trailing colons and then remove the whole line if VPATH becomes empty
6831 # (actually we leave an empty line to preserve line numbers).
6832 if test "x$srcdir" = x.; then
6833   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
6834 h
6835 s///
6836 s/^/:/
6837 s/[      ]*$/:/
6838 s/:\$(srcdir):/:/g
6839 s/:\${srcdir}:/:/g
6840 s/:@srcdir@:/:/g
6841 s/^:*//
6842 s/:*$//
6843 x
6844 s/\(=[   ]*\).*/\1/
6845 G
6846 s/\n//
6847 s/^[^=]*=[       ]*$//
6848 }'
6849 fi
6850
6851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6852 fi # test -n "$CONFIG_FILES"
6853
6854 # 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'.
6857 if test -n "$CONFIG_HEADERS"; then
6858 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6859 BEGIN {
6860 _ACEOF
6861
6862 # 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.
6868 ac_delim='%!_!# '
6869 for ac_last_try in false false :; do
6870   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6871   if test -z "$ac_tt"; then
6872     break
6873   elif $ac_last_try; then
6874     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6875   else
6876     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6877   fi
6878 done
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
6884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6885 sed -n '
6886 s/.\{148\}/&'"$ac_delim"'/g
6887 t rset
6888 :rset
6889 s/^[     ]*#[    ]*define[       ][      ]*/ /
6890 t def
6891 d
6892 :def
6893 s/\\$//
6894 t bsnl
6895 s/["\\]/\\&/g
6896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6897 D["\1"]=" \3"/p
6898 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6899 d
6900 :bsnl
6901 s/["\\]/\\&/g
6902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6903 D["\1"]=" \3\\\\\\n"\\/p
6904 t cont
6905 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6906 t cont
6907 d
6908 :cont
6909 n
6910 s/.\{148\}/&'"$ac_delim"'/g
6911 t clear
6912 :clear
6913 s/\\$//
6914 t bsnlc
6915 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6916 d
6917 :bsnlc
6918 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6919 b cont
6920 ' <confdefs.h | sed '
6921 s/'"$ac_delim"'/"\\\
6922 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6923
6924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6925   for (key in D) D_is_set[key] = 1
6926   FS = "\a"
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
6958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6959   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6960 fi # test -n "$CONFIG_HEADERS"
6961
6962
6963 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6964 shift
6965 for ac_tag
6966 do
6967   case $ac_tag in
6968   :[FHLC]) ac_mode=$ac_tag; continue;;
6969   esac
6970   case $ac_mode$ac_tag in
6971   :[FHL]*:*);;
6972   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6973   :[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
6991       -) ac_f="$ac_tmp/stdin";;
6992       *) # 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 ||
7000            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7001       esac
7002       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7003       as_fn_append ac_file_inputs " '$ac_f'"
7004     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.  */
7009     configure_input='Generated from '`
7010           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7011         `' by configure.'
7012     if test x"$ac_file" != x-; then
7013       configure_input="$ac_file.  $configure_input"
7014       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7015 $as_echo "$as_me: creating $ac_file" >&6;}
7016     fi
7017     # 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
7024
7025     case $ac_tag in
7026     *:-:* | *:-) cat >"$ac_tmp/stdin" \
7027       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7028     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 ||
7037 $as_echo X"$ac_file" |
7038     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'`
7055   as_dir="$ac_dir"; as_fn_mkdir_p
7056   ac_builddir=.
7057
7058 case "$ac_dir" in
7059 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7060 *)
7061   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7062   # A ".." for each directory in $ac_dir_suffix.
7063   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7064   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 ;;
7068 esac
7069 ac_abs_top_builddir=$ac_pwd
7070 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7071 # for backward compatibility:
7072 ac_top_builddir=$ac_top_build_prefix
7073
7074 case $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 ;;
7087 esac
7088 ac_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
7108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7109 # If the template does not know about datarootdir, expand it.
7110 # FIXME: This hack should be removed a few years after 2.60.
7111 ac_datarootdir_hack=; ac_datarootdir_seen=
7112 ac_sed_dataroot='
7113 /datarootdir/ {
7114   p
7115   q
7116 }
7117 /@datadir@/p
7118 /@docdir@/p
7119 /@infodir@/p
7120 /@localedir@/p
7121 /@mandir@/p'
7122 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7123 *datarootdir*) ac_datarootdir_seen=yes;;
7124 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7125   { $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;}
7127 _ACEOF
7128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7129   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
7135   s&\\\${datarootdir}&$datarootdir&g' ;;
7136 esac
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?
7142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7143 ac_sed_extra="$ac_vpsub
7144 $extrasub
7145 _ACEOF
7146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7147 :t
7148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7149 s|@configure_input@|$ac_sed_conf_input|;t t
7150 s&@top_builddir@&$ac_top_builddir_sub&;t t
7151 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7152 s&@srcdir@&$ac_srcdir&;t t
7153 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7154 s&@top_srcdir@&$ac_top_srcdir&;t t
7155 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7156 s&@builddir@&$ac_builddir&;t t
7157 s&@abs_builddir@&$ac_abs_builddir&;t t
7158 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7159 s&@INSTALL@&$ac_INSTALL&;t t
7160 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7161 $ac_datarootdir_hack
7162 "
7163 eval 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
7165
7166 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7167   { 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"; } &&
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7171 which seems to be undefined.  Please make sure it is defined" >&5
7172 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7173 which seems to be undefined.  Please make sure it is defined" >&2;}
7174
7175   rm -f "$ac_tmp/stdin"
7176   case $ac_file in
7177   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7178   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7179   esac \
7180   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7181  ;;
7182   :H)
7183   #
7184   # CONFIG_HEADER
7185   #
7186   if test x"$ac_file" != x-; then
7187     {
7188       $as_echo "/* $configure_input  */" \
7189       && 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
7193       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7194 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7195     else
7196       rm -f "$ac_file"
7197       mv "$ac_tmp/config.h" "$ac_file" \
7198         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7199     fi
7200   else
7201     $as_echo "/* $configure_input  */" \
7202       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7203       || as_fn_error $? "could not create -" "$LINENO" 5
7204   fi
7205 # Compute "$ac_file"'s index in $config_headers.
7206 _am_arg="$ac_file"
7207 _am_stamp_count=1
7208 for _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
7215 done
7216 echo "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 ||
7221 $as_echo X"$_am_arg" |
7222     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
7241   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7242 $as_echo "$as_me: executing $ac_file commands" >&6;}
7243  ;;
7244   esac
7245
7246
7247   case $ac_file$ac_mode in
7248     "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" ||
7270 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7271          X"$mf" : 'X\(//\)[^/]' \| \
7272          X"$mf" : 'X\(//\)$' \| \
7273          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7274 $as_echo X"$mf" |
7275     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'`
7292     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" ||
7314 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7315          X"$file" : 'X\(//\)[^/]' \| \
7316          X"$file" : 'X\(//\)$' \| \
7317          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7318 $as_echo X"$file" |
7319     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'`
7336       as_dir=$dirpart/$fdir; as_fn_mkdir_p
7337       # echo "creating $dirpart/$file"
7338       echo '# dummy' > "$dirpart/$file"
7339     done
7340   done
7341 }
7342  ;;
7343
7344   esac
7345 done # for ac_tag
7346
7347
7348 as_fn_exit 0
7349 _ACEOF
7350 ac_clean_files=$ac_clean_files_save
7351
7352 test $ac_write_fail = 0 ||
7353   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7354
7355
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.
7364 if 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.
7374   $ac_cs_success || as_fn_exit 1
7375 fi
7376 if 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;}
7379 fi
7380