chiark / gitweb /
Initial commit
[stressapptest] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for stressapptest 1.0.0_autoconf.
4 #
5 # Report bugs to <opensource@gmail.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='stressapptest'
576 PACKAGE_TARNAME='stressapptest'
577 PACKAGE_VERSION='1.0.0_autoconf'
578 PACKAGE_STRING='stressapptest 1.0.0_autoconf'
579 PACKAGE_BUGREPORT='opensource@gmail.com'
580
581 ac_unique_file="src/"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 target
664 target_cpu
665 target_vendor
666 target_os
667 INSTALL_PROGRAM
668 INSTALL_SCRIPT
669 INSTALL_DATA
670 am__isrc
671 CYGPATH_W
672 PACKAGE
673 VERSION
674 ACLOCAL
675 AUTOCONF
676 AUTOMAKE
677 AUTOHEADER
678 MAKEINFO
679 install_sh
680 STRIP
681 INSTALL_STRIP_PROGRAM
682 mkdir_p
683 AWK
684 SET_MAKE
685 am__leading_dot
686 AMTAR
687 am__tar
688 am__untar
689 CXX
690 CXXFLAGS
691 LDFLAGS
692 CPPFLAGS
693 ac_ct_CXX
694 EXEEXT
695 OBJEXT
696 DEPDIR
697 am__include
698 am__quote
699 AMDEP_TRUE
700 AMDEP_FALSE
701 AMDEPBACKSLASH
702 CXXDEPMODE
703 am__fastdepCXX_TRUE
704 am__fastdepCXX_FALSE
705 CC
706 CFLAGS
707 ac_ct_CC
708 CCDEPMODE
709 am__fastdepCC_TRUE
710 am__fastdepCC_FALSE
711 CPP
712 GREP
713 EGREP
714 LIBOBJS
715 LTLIBOBJS'
716 ac_subst_files=''
717       ac_precious_vars='build_alias
718 host_alias
719 target_alias
720 CXX
721 CXXFLAGS
722 LDFLAGS
723 LIBS
724 CPPFLAGS
725 CCC
726 CC
727 CFLAGS
728 CPP'
729
730
731 # Initialize some variables set by options.
732 ac_init_help=
733 ac_init_version=false
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
736 cache_file=/dev/null
737 exec_prefix=NONE
738 no_create=
739 no_recursion=
740 prefix=NONE
741 program_prefix=NONE
742 program_suffix=NONE
743 program_transform_name=s,x,x,
744 silent=
745 site=
746 srcdir=
747 verbose=
748 x_includes=NONE
749 x_libraries=NONE
750
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
768 infodir='${datarootdir}/info'
769 htmldir='${docdir}'
770 dvidir='${docdir}'
771 pdfdir='${docdir}'
772 psdir='${docdir}'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
776
777 ac_prev=
778 ac_dashdash=
779 for ac_option
780 do
781   # If the previous option needs an argument, assign it.
782   if test -n "$ac_prev"; then
783     eval $ac_prev=\$ac_option
784     ac_prev=
785     continue
786   fi
787
788   case $ac_option in
789   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790   *)    ac_optarg=yes ;;
791   esac
792
793   # Accept the important Cygnus configure options, so we can diagnose typos.
794
795   case $ac_dashdash$ac_option in
796   --)
797     ac_dashdash=yes ;;
798
799   -bindir | --bindir | --bindi | --bind | --bin | --bi)
800     ac_prev=bindir ;;
801   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802     bindir=$ac_optarg ;;
803
804   -build | --build | --buil | --bui | --bu)
805     ac_prev=build_alias ;;
806   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807     build_alias=$ac_optarg ;;
808
809   -cache-file | --cache-file | --cache-fil | --cache-fi \
810   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811     ac_prev=cache_file ;;
812   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814     cache_file=$ac_optarg ;;
815
816   --config-cache | -C)
817     cache_file=config.cache ;;
818
819   -datadir | --datadir | --datadi | --datad)
820     ac_prev=datadir ;;
821   -datadir=* | --datadir=* | --datadi=* | --datad=*)
822     datadir=$ac_optarg ;;
823
824   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825   | --dataroo | --dataro | --datar)
826     ac_prev=datarootdir ;;
827   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829     datarootdir=$ac_optarg ;;
830
831   -disable-* | --disable-*)
832     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833     # Reject names that are not valid shell variable names.
834     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
835       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836    { (exit 1); exit 1; }; }
837     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
838     eval enable_$ac_feature=no ;;
839
840   -docdir | --docdir | --docdi | --doc | --do)
841     ac_prev=docdir ;;
842   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843     docdir=$ac_optarg ;;
844
845   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
846     ac_prev=dvidir ;;
847   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848     dvidir=$ac_optarg ;;
849
850   -enable-* | --enable-*)
851     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852     # Reject names that are not valid shell variable names.
853     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855    { (exit 1); exit 1; }; }
856     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857     eval enable_$ac_feature=\$ac_optarg ;;
858
859   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861   | --exec | --exe | --ex)
862     ac_prev=exec_prefix ;;
863   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865   | --exec=* | --exe=* | --ex=*)
866     exec_prefix=$ac_optarg ;;
867
868   -gas | --gas | --ga | --g)
869     # Obsolete; use --with-gas.
870     with_gas=yes ;;
871
872   -help | --help | --hel | --he | -h)
873     ac_init_help=long ;;
874   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875     ac_init_help=recursive ;;
876   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877     ac_init_help=short ;;
878
879   -host | --host | --hos | --ho)
880     ac_prev=host_alias ;;
881   -host=* | --host=* | --hos=* | --ho=*)
882     host_alias=$ac_optarg ;;
883
884   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885     ac_prev=htmldir ;;
886   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887   | --ht=*)
888     htmldir=$ac_optarg ;;
889
890   -includedir | --includedir | --includedi | --included | --include \
891   | --includ | --inclu | --incl | --inc)
892     ac_prev=includedir ;;
893   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894   | --includ=* | --inclu=* | --incl=* | --inc=*)
895     includedir=$ac_optarg ;;
896
897   -infodir | --infodir | --infodi | --infod | --info | --inf)
898     ac_prev=infodir ;;
899   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900     infodir=$ac_optarg ;;
901
902   -libdir | --libdir | --libdi | --libd)
903     ac_prev=libdir ;;
904   -libdir=* | --libdir=* | --libdi=* | --libd=*)
905     libdir=$ac_optarg ;;
906
907   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908   | --libexe | --libex | --libe)
909     ac_prev=libexecdir ;;
910   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911   | --libexe=* | --libex=* | --libe=*)
912     libexecdir=$ac_optarg ;;
913
914   -localedir | --localedir | --localedi | --localed | --locale)
915     ac_prev=localedir ;;
916   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917     localedir=$ac_optarg ;;
918
919   -localstatedir | --localstatedir | --localstatedi | --localstated \
920   | --localstate | --localstat | --localsta | --localst | --locals)
921     ac_prev=localstatedir ;;
922   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
923   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
924     localstatedir=$ac_optarg ;;
925
926   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927     ac_prev=mandir ;;
928   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929     mandir=$ac_optarg ;;
930
931   -nfp | --nfp | --nf)
932     # Obsolete; use --without-fp.
933     with_fp=no ;;
934
935   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936   | --no-cr | --no-c | -n)
937     no_create=yes ;;
938
939   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941     no_recursion=yes ;;
942
943   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945   | --oldin | --oldi | --old | --ol | --o)
946     ac_prev=oldincludedir ;;
947   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950     oldincludedir=$ac_optarg ;;
951
952   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953     ac_prev=prefix ;;
954   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955     prefix=$ac_optarg ;;
956
957   -program-prefix | --program-prefix | --program-prefi | --program-pref \
958   | --program-pre | --program-pr | --program-p)
959     ac_prev=program_prefix ;;
960   -program-prefix=* | --program-prefix=* | --program-prefi=* \
961   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962     program_prefix=$ac_optarg ;;
963
964   -program-suffix | --program-suffix | --program-suffi | --program-suff \
965   | --program-suf | --program-su | --program-s)
966     ac_prev=program_suffix ;;
967   -program-suffix=* | --program-suffix=* | --program-suffi=* \
968   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969     program_suffix=$ac_optarg ;;
970
971   -program-transform-name | --program-transform-name \
972   | --program-transform-nam | --program-transform-na \
973   | --program-transform-n | --program-transform- \
974   | --program-transform | --program-transfor \
975   | --program-transfo | --program-transf \
976   | --program-trans | --program-tran \
977   | --progr-tra | --program-tr | --program-t)
978     ac_prev=program_transform_name ;;
979   -program-transform-name=* | --program-transform-name=* \
980   | --program-transform-nam=* | --program-transform-na=* \
981   | --program-transform-n=* | --program-transform-=* \
982   | --program-transform=* | --program-transfor=* \
983   | --program-transfo=* | --program-transf=* \
984   | --program-trans=* | --program-tran=* \
985   | --progr-tra=* | --program-tr=* | --program-t=*)
986     program_transform_name=$ac_optarg ;;
987
988   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989     ac_prev=pdfdir ;;
990   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991     pdfdir=$ac_optarg ;;
992
993   -psdir | --psdir | --psdi | --psd | --ps)
994     ac_prev=psdir ;;
995   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996     psdir=$ac_optarg ;;
997
998   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999   | -silent | --silent | --silen | --sile | --sil)
1000     silent=yes ;;
1001
1002   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1003     ac_prev=sbindir ;;
1004   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1005   | --sbi=* | --sb=*)
1006     sbindir=$ac_optarg ;;
1007
1008   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010   | --sharedst | --shareds | --shared | --share | --shar \
1011   | --sha | --sh)
1012     ac_prev=sharedstatedir ;;
1013   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1016   | --sha=* | --sh=*)
1017     sharedstatedir=$ac_optarg ;;
1018
1019   -site | --site | --sit)
1020     ac_prev=site ;;
1021   -site=* | --site=* | --sit=*)
1022     site=$ac_optarg ;;
1023
1024   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1025     ac_prev=srcdir ;;
1026   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027     srcdir=$ac_optarg ;;
1028
1029   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030   | --syscon | --sysco | --sysc | --sys | --sy)
1031     ac_prev=sysconfdir ;;
1032   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034     sysconfdir=$ac_optarg ;;
1035
1036   -target | --target | --targe | --targ | --tar | --ta | --t)
1037     ac_prev=target_alias ;;
1038   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039     target_alias=$ac_optarg ;;
1040
1041   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1042     verbose=yes ;;
1043
1044   -version | --version | --versio | --versi | --vers | -V)
1045     ac_init_version=: ;;
1046
1047   -with-* | --with-*)
1048     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051       { echo "$as_me: error: invalid package name: $ac_package" >&2
1052    { (exit 1); exit 1; }; }
1053     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054     eval with_$ac_package=\$ac_optarg ;;
1055
1056   -without-* | --without-*)
1057     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058     # Reject names that are not valid shell variable names.
1059     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060       { echo "$as_me: error: invalid package name: $ac_package" >&2
1061    { (exit 1); exit 1; }; }
1062     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063     eval with_$ac_package=no ;;
1064
1065   --x)
1066     # Obsolete; use --with-x.
1067     with_x=yes ;;
1068
1069   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1070   | --x-incl | --x-inc | --x-in | --x-i)
1071     ac_prev=x_includes ;;
1072   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1073   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1074     x_includes=$ac_optarg ;;
1075
1076   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1077   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1078     ac_prev=x_libraries ;;
1079   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1080   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1081     x_libraries=$ac_optarg ;;
1082
1083   -*) { echo "$as_me: error: unrecognized option: $ac_option
1084 Try \`$0 --help' for more information." >&2
1085    { (exit 1); exit 1; }; }
1086     ;;
1087
1088   *=*)
1089     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090     # Reject names that are not valid shell variable names.
1091     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1092       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1093    { (exit 1); exit 1; }; }
1094     eval $ac_envvar=\$ac_optarg
1095     export $ac_envvar ;;
1096
1097   *)
1098     # FIXME: should be removed in autoconf 3.0.
1099     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1100     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1102     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1103     ;;
1104
1105   esac
1106 done
1107
1108 if test -n "$ac_prev"; then
1109   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1110   { echo "$as_me: error: missing argument to $ac_option" >&2
1111    { (exit 1); exit 1; }; }
1112 fi
1113
1114 # Be sure to have absolute directory names.
1115 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1116                 datadir sysconfdir sharedstatedir localstatedir includedir \
1117                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1118                 libdir localedir mandir
1119 do
1120   eval ac_val=\$$ac_var
1121   case $ac_val in
1122     [\\/$]* | ?:[\\/]* )  continue;;
1123     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1124   esac
1125   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1126    { (exit 1); exit 1; }; }
1127 done
1128
1129 # There might be people who depend on the old broken behavior: `$host'
1130 # used to hold the argument of --host etc.
1131 # FIXME: To remove some day.
1132 build=$build_alias
1133 host=$host_alias
1134 target=$target_alias
1135
1136 # FIXME: To remove some day.
1137 if test "x$host_alias" != x; then
1138   if test "x$build_alias" = x; then
1139     cross_compiling=maybe
1140     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1141     If a cross compiler is detected then cross compile mode will be used." >&2
1142   elif test "x$build_alias" != "x$host_alias"; then
1143     cross_compiling=yes
1144   fi
1145 fi
1146
1147 ac_tool_prefix=
1148 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1149
1150 test "$silent" = yes && exec 6>/dev/null
1151
1152
1153 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154 ac_ls_di=`ls -di .` &&
1155 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156   { echo "$as_me: error: Working directory cannot be determined" >&2
1157    { (exit 1); exit 1; }; }
1158 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1159   { echo "$as_me: error: pwd does not report name of working directory" >&2
1160    { (exit 1); exit 1; }; }
1161
1162
1163 # Find the source files, if location was not specified.
1164 if test -z "$srcdir"; then
1165   ac_srcdir_defaulted=yes
1166   # Try the directory containing this script, then the parent directory.
1167   ac_confdir=`$as_dirname -- "$0" ||
1168 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1169          X"$0" : 'X\(//\)[^/]' \| \
1170          X"$0" : 'X\(//\)$' \| \
1171          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1172 echo X"$0" |
1173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1174             s//\1/
1175             q
1176           }
1177           /^X\(\/\/\)[^/].*/{
1178             s//\1/
1179             q
1180           }
1181           /^X\(\/\/\)$/{
1182             s//\1/
1183             q
1184           }
1185           /^X\(\/\).*/{
1186             s//\1/
1187             q
1188           }
1189           s/.*/./; q'`
1190   srcdir=$ac_confdir
1191   if test ! -r "$srcdir/$ac_unique_file"; then
1192     srcdir=..
1193   fi
1194 else
1195   ac_srcdir_defaulted=no
1196 fi
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1199   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1200    { (exit 1); exit 1; }; }
1201 fi
1202 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1203 ac_abs_confdir=`(
1204         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1205    { (exit 1); exit 1; }; }
1206         pwd)`
1207 # When building in place, set srcdir=.
1208 if test "$ac_abs_confdir" = "$ac_pwd"; then
1209   srcdir=.
1210 fi
1211 # Remove unnecessary trailing slashes from srcdir.
1212 # Double slashes in file names in object file debugging info
1213 # mess up M-x gdb in Emacs.
1214 case $srcdir in
1215 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1216 esac
1217 for ac_var in $ac_precious_vars; do
1218   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1219   eval ac_env_${ac_var}_value=\$${ac_var}
1220   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1221   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1222 done
1223
1224 #
1225 # Report the --help message.
1226 #
1227 if test "$ac_init_help" = "long"; then
1228   # Omit some internal or obsolete options to make the list less imposing.
1229   # This message is too long to be a string in the A/UX 3.1 sh.
1230   cat <<_ACEOF
1231 \`configure' configures stressapptest 1.0.0_autoconf to adapt to many kinds of systems.
1232
1233 Usage: $0 [OPTION]... [VAR=VALUE]...
1234
1235 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1236 VAR=VALUE.  See below for descriptions of some of the useful variables.
1237
1238 Defaults for the options are specified in brackets.
1239
1240 Configuration:
1241   -h, --help              display this help and exit
1242       --help=short        display options specific to this package
1243       --help=recursive    display the short help of all the included packages
1244   -V, --version           display version information and exit
1245   -q, --quiet, --silent   do not print \`checking...' messages
1246       --cache-file=FILE   cache test results in FILE [disabled]
1247   -C, --config-cache      alias for \`--cache-file=config.cache'
1248   -n, --no-create         do not create output files
1249       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1250
1251 Installation directories:
1252   --prefix=PREFIX         install architecture-independent files in PREFIX
1253                           [$ac_default_prefix]
1254   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1255                           [PREFIX]
1256
1257 By default, \`make install' will install all the files in
1258 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1259 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1260 for instance \`--prefix=\$HOME'.
1261
1262 For better control, use the options below.
1263
1264 Fine tuning of the installation directories:
1265   --bindir=DIR           user executables [EPREFIX/bin]
1266   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1267   --libexecdir=DIR       program executables [EPREFIX/libexec]
1268   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1269   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1270   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1271   --libdir=DIR           object code libraries [EPREFIX/lib]
1272   --includedir=DIR       C header files [PREFIX/include]
1273   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1274   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1275   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1276   --infodir=DIR          info documentation [DATAROOTDIR/info]
1277   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1278   --mandir=DIR           man documentation [DATAROOTDIR/man]
1279   --docdir=DIR           documentation root [DATAROOTDIR/doc/stressapptest]
1280   --htmldir=DIR          html documentation [DOCDIR]
1281   --dvidir=DIR           dvi documentation [DOCDIR]
1282   --pdfdir=DIR           pdf documentation [DOCDIR]
1283   --psdir=DIR            ps documentation [DOCDIR]
1284 _ACEOF
1285
1286   cat <<\_ACEOF
1287
1288 Program names:
1289   --program-prefix=PREFIX            prepend PREFIX to installed program names
1290   --program-suffix=SUFFIX            append SUFFIX to installed program names
1291   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1292
1293 System types:
1294   --build=BUILD     configure for building on BUILD [guessed]
1295   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1296   --target=TARGET   configure for building compilers for TARGET [HOST]
1297 _ACEOF
1298 fi
1299
1300 if test -n "$ac_init_help"; then
1301   case $ac_init_help in
1302      short | recursive ) echo "Configuration of stressapptest 1.0.0_autoconf:";;
1303    esac
1304   cat <<\_ACEOF
1305
1306 Optional Features:
1307   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1308   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1309   --disable-dependency-tracking  speeds up one-time build
1310   --enable-dependency-tracking   do not reject slow dependency extractors
1311
1312 Some influential environment variables:
1313   CXX         C++ compiler command
1314   CXXFLAGS    C++ compiler flags
1315   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1316               nonstandard directory <lib dir>
1317   LIBS        libraries to pass to the linker, e.g. -l<library>
1318   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1319               you have headers in a nonstandard directory <include dir>
1320   CC          C compiler command
1321   CFLAGS      C compiler flags
1322   CPP         C preprocessor
1323
1324 Use these variables to override the choices made by `configure' or to help
1325 it to find libraries and programs with nonstandard names/locations.
1326
1327 Report bugs to <opensource@gmail.com>.
1328 _ACEOF
1329 ac_status=$?
1330 fi
1331
1332 if test "$ac_init_help" = "recursive"; then
1333   # If there are subdirs, report their specific --help.
1334   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1335     test -d "$ac_dir" || continue
1336     ac_builddir=.
1337
1338 case "$ac_dir" in
1339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 *)
1341   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1342   # A ".." for each directory in $ac_dir_suffix.
1343   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1344   case $ac_top_builddir_sub in
1345   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1346   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1347   esac ;;
1348 esac
1349 ac_abs_top_builddir=$ac_pwd
1350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1351 # for backward compatibility:
1352 ac_top_builddir=$ac_top_build_prefix
1353
1354 case $srcdir in
1355   .)  # We are building in place.
1356     ac_srcdir=.
1357     ac_top_srcdir=$ac_top_builddir_sub
1358     ac_abs_top_srcdir=$ac_pwd ;;
1359   [\\/]* | ?:[\\/]* )  # Absolute name.
1360     ac_srcdir=$srcdir$ac_dir_suffix;
1361     ac_top_srcdir=$srcdir
1362     ac_abs_top_srcdir=$srcdir ;;
1363   *) # Relative name.
1364     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1365     ac_top_srcdir=$ac_top_build_prefix$srcdir
1366     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1367 esac
1368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1369
1370     cd "$ac_dir" || { ac_status=$?; continue; }
1371     # Check for guested configure.
1372     if test -f "$ac_srcdir/configure.gnu"; then
1373       echo &&
1374       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1375     elif test -f "$ac_srcdir/configure"; then
1376       echo &&
1377       $SHELL "$ac_srcdir/configure" --help=recursive
1378     else
1379       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1380     fi || ac_status=$?
1381     cd "$ac_pwd" || { ac_status=$?; break; }
1382   done
1383 fi
1384
1385 test -n "$ac_init_help" && exit $ac_status
1386 if $ac_init_version; then
1387   cat <<\_ACEOF
1388 stressapptest configure 1.0.0_autoconf
1389 generated by GNU Autoconf 2.61
1390
1391 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1392 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1393 This configure script is free software; the Free Software Foundation
1394 gives unlimited permission to copy, distribute and modify it.
1395 _ACEOF
1396   exit
1397 fi
1398 cat >config.log <<_ACEOF
1399 This file contains any messages produced by compilers while
1400 running configure, to aid debugging if configure makes a mistake.
1401
1402 It was created by stressapptest $as_me 1.0.0_autoconf, which was
1403 generated by GNU Autoconf 2.61.  Invocation command line was
1404
1405   $ $0 $@
1406
1407 _ACEOF
1408 exec 5>>config.log
1409 {
1410 cat <<_ASUNAME
1411 ## --------- ##
1412 ## Platform. ##
1413 ## --------- ##
1414
1415 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1416 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1417 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1418 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1419 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1420
1421 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1422 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1423
1424 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1425 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1426 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1427 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1428 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1429 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1430 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1431
1432 _ASUNAME
1433
1434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 for as_dir in $PATH
1436 do
1437   IFS=$as_save_IFS
1438   test -z "$as_dir" && as_dir=.
1439   echo "PATH: $as_dir"
1440 done
1441 IFS=$as_save_IFS
1442
1443 } >&5
1444
1445 cat >&5 <<_ACEOF
1446
1447
1448 ## ----------- ##
1449 ## Core tests. ##
1450 ## ----------- ##
1451
1452 _ACEOF
1453
1454
1455 # Keep a trace of the command line.
1456 # Strip out --no-create and --no-recursion so they do not pile up.
1457 # Strip out --silent because we don't want to record it for future runs.
1458 # Also quote any args containing shell meta-characters.
1459 # Make two passes to allow for proper duplicate-argument suppression.
1460 ac_configure_args=
1461 ac_configure_args0=
1462 ac_configure_args1=
1463 ac_must_keep_next=false
1464 for ac_pass in 1 2
1465 do
1466   for ac_arg
1467   do
1468     case $ac_arg in
1469     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1470     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1471     | -silent | --silent | --silen | --sile | --sil)
1472       continue ;;
1473     *\'*)
1474       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1475     esac
1476     case $ac_pass in
1477     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1478     2)
1479       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1480       if test $ac_must_keep_next = true; then
1481         ac_must_keep_next=false # Got value, back to normal.
1482       else
1483         case $ac_arg in
1484           *=* | --config-cache | -C | -disable-* | --disable-* \
1485           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1486           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1487           | -with-* | --with-* | -without-* | --without-* | --x)
1488             case "$ac_configure_args0 " in
1489               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1490             esac
1491             ;;
1492           -* ) ac_must_keep_next=true ;;
1493         esac
1494       fi
1495       ac_configure_args="$ac_configure_args '$ac_arg'"
1496       ;;
1497     esac
1498   done
1499 done
1500 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1501 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1502
1503 # When interrupted or exit'd, cleanup temporary files, and complete
1504 # config.log.  We remove comments because anyway the quotes in there
1505 # would cause problems or look ugly.
1506 # WARNING: Use '\'' to represent an apostrophe within the trap.
1507 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1508 trap 'exit_status=$?
1509   # Save into config.log some information that might help in debugging.
1510   {
1511     echo
1512
1513     cat <<\_ASBOX
1514 ## ---------------- ##
1515 ## Cache variables. ##
1516 ## ---------------- ##
1517 _ASBOX
1518     echo
1519     # The following way of writing the cache mishandles newlines in values,
1520 (
1521   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1522     eval ac_val=\$$ac_var
1523     case $ac_val in #(
1524     *${as_nl}*)
1525       case $ac_var in #(
1526       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1527 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1528       esac
1529       case $ac_var in #(
1530       _ | IFS | as_nl) ;; #(
1531       *) $as_unset $ac_var ;;
1532       esac ;;
1533     esac
1534   done
1535   (set) 2>&1 |
1536     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1537     *${as_nl}ac_space=\ *)
1538       sed -n \
1539         "s/'\''/'\''\\\\'\'''\''/g;
1540           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1541       ;; #(
1542     *)
1543       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1544       ;;
1545     esac |
1546     sort
1547 )
1548     echo
1549
1550     cat <<\_ASBOX
1551 ## ----------------- ##
1552 ## Output variables. ##
1553 ## ----------------- ##
1554 _ASBOX
1555     echo
1556     for ac_var in $ac_subst_vars
1557     do
1558       eval ac_val=\$$ac_var
1559       case $ac_val in
1560       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1561       esac
1562       echo "$ac_var='\''$ac_val'\''"
1563     done | sort
1564     echo
1565
1566     if test -n "$ac_subst_files"; then
1567       cat <<\_ASBOX
1568 ## ------------------- ##
1569 ## File substitutions. ##
1570 ## ------------------- ##
1571 _ASBOX
1572       echo
1573       for ac_var in $ac_subst_files
1574       do
1575         eval ac_val=\$$ac_var
1576         case $ac_val in
1577         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1578         esac
1579         echo "$ac_var='\''$ac_val'\''"
1580       done | sort
1581       echo
1582     fi
1583
1584     if test -s confdefs.h; then
1585       cat <<\_ASBOX
1586 ## ----------- ##
1587 ## confdefs.h. ##
1588 ## ----------- ##
1589 _ASBOX
1590       echo
1591       cat confdefs.h
1592       echo
1593     fi
1594     test "$ac_signal" != 0 &&
1595       echo "$as_me: caught signal $ac_signal"
1596     echo "$as_me: exit $exit_status"
1597   } >&5
1598   rm -f core *.core core.conftest.* &&
1599     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1600     exit $exit_status
1601 ' 0
1602 for ac_signal in 1 2 13 15; do
1603   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1604 done
1605 ac_signal=0
1606
1607 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1608 rm -f -r conftest* confdefs.h
1609
1610 # Predefined preprocessor variables.
1611
1612 cat >>confdefs.h <<_ACEOF
1613 #define PACKAGE_NAME "$PACKAGE_NAME"
1614 _ACEOF
1615
1616
1617 cat >>confdefs.h <<_ACEOF
1618 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1619 _ACEOF
1620
1621
1622 cat >>confdefs.h <<_ACEOF
1623 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1624 _ACEOF
1625
1626
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE_STRING "$PACKAGE_STRING"
1629 _ACEOF
1630
1631
1632 cat >>confdefs.h <<_ACEOF
1633 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1634 _ACEOF
1635
1636
1637 # Let the site file select an alternate cache file if it wants to.
1638 # Prefer explicitly selected file to automatically selected ones.
1639 if test -n "$CONFIG_SITE"; then
1640   set x "$CONFIG_SITE"
1641 elif test "x$prefix" != xNONE; then
1642   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1643 else
1644   set x "$ac_default_prefix/share/config.site" \
1645         "$ac_default_prefix/etc/config.site"
1646 fi
1647 shift
1648 for ac_site_file
1649 do
1650   if test -r "$ac_site_file"; then
1651     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1652 echo "$as_me: loading site script $ac_site_file" >&6;}
1653     sed 's/^/| /' "$ac_site_file" >&5
1654     . "$ac_site_file"
1655   fi
1656 done
1657
1658 if test -r "$cache_file"; then
1659   # Some versions of bash will fail to source /dev/null (special
1660   # files actually), so we avoid doing that.
1661   if test -f "$cache_file"; then
1662     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1663 echo "$as_me: loading cache $cache_file" >&6;}
1664     case $cache_file in
1665       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1666       *)                      . "./$cache_file";;
1667     esac
1668   fi
1669 else
1670   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1671 echo "$as_me: creating cache $cache_file" >&6;}
1672   >$cache_file
1673 fi
1674
1675 # Check that the precious variables saved in the cache have kept the same
1676 # value.
1677 ac_cache_corrupted=false
1678 for ac_var in $ac_precious_vars; do
1679   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1680   eval ac_new_set=\$ac_env_${ac_var}_set
1681   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1682   eval ac_new_val=\$ac_env_${ac_var}_value
1683   case $ac_old_set,$ac_new_set in
1684     set,)
1685       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1686 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1687       ac_cache_corrupted=: ;;
1688     ,set)
1689       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1690 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1691       ac_cache_corrupted=: ;;
1692     ,);;
1693     *)
1694       if test "x$ac_old_val" != "x$ac_new_val"; then
1695         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1696 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1697         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1698 echo "$as_me:   former value:  $ac_old_val" >&2;}
1699         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1700 echo "$as_me:   current value: $ac_new_val" >&2;}
1701         ac_cache_corrupted=:
1702       fi;;
1703   esac
1704   # Pass precious variables to config.status.
1705   if test "$ac_new_set" = set; then
1706     case $ac_new_val in
1707     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1708     *) ac_arg=$ac_var=$ac_new_val ;;
1709     esac
1710     case " $ac_configure_args " in
1711       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1712       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1713     esac
1714   fi
1715 done
1716 if $ac_cache_corrupted; then
1717   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1718 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1719   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1720 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1721    { (exit 1); exit 1; }; }
1722 fi
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748 ac_ext=c
1749 ac_cpp='$CPP $CPPFLAGS'
1750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1753
1754
1755
1756 # Checking for target cpu and setting custom configuration
1757 # for the different platforms
1758 ac_aux_dir=
1759 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1760   if test -f "$ac_dir/install-sh"; then
1761     ac_aux_dir=$ac_dir
1762     ac_install_sh="$ac_aux_dir/install-sh -c"
1763     break
1764   elif test -f "$ac_dir/install.sh"; then
1765     ac_aux_dir=$ac_dir
1766     ac_install_sh="$ac_aux_dir/install.sh -c"
1767     break
1768   elif test -f "$ac_dir/shtool"; then
1769     ac_aux_dir=$ac_dir
1770     ac_install_sh="$ac_aux_dir/shtool install -c"
1771     break
1772   fi
1773 done
1774 if test -z "$ac_aux_dir"; then
1775   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1776 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1777    { (exit 1); exit 1; }; }
1778 fi
1779
1780 # These three variables are undocumented and unsupported,
1781 # and are intended to be withdrawn in a future Autoconf release.
1782 # They can cause serious problems if a builder's source tree is in a directory
1783 # whose full name contains unusual characters.
1784 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1785 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1786 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1787
1788
1789 # Make sure we can run config.sub.
1790 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1791   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1792 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1793    { (exit 1); exit 1; }; }
1794
1795 { echo "$as_me:$LINENO: checking build system type" >&5
1796 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1797 if test "${ac_cv_build+set}" = set; then
1798   echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800   ac_build_alias=$build_alias
1801 test "x$ac_build_alias" = x &&
1802   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1803 test "x$ac_build_alias" = x &&
1804   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1805 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1806    { (exit 1); exit 1; }; }
1807 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1808   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1809 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1810    { (exit 1); exit 1; }; }
1811
1812 fi
1813 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1814 echo "${ECHO_T}$ac_cv_build" >&6; }
1815 case $ac_cv_build in
1816 *-*-*) ;;
1817 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1818 echo "$as_me: error: invalid value of canonical build" >&2;}
1819    { (exit 1); exit 1; }; };;
1820 esac
1821 build=$ac_cv_build
1822 ac_save_IFS=$IFS; IFS='-'
1823 set x $ac_cv_build
1824 shift
1825 build_cpu=$1
1826 build_vendor=$2
1827 shift; shift
1828 # Remember, the first character of IFS is used to create $*,
1829 # except with old shells:
1830 build_os=$*
1831 IFS=$ac_save_IFS
1832 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1833
1834
1835 { echo "$as_me:$LINENO: checking host system type" >&5
1836 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1837 if test "${ac_cv_host+set}" = set; then
1838   echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840   if test "x$host_alias" = x; then
1841   ac_cv_host=$ac_cv_build
1842 else
1843   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1844     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1845 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1846    { (exit 1); exit 1; }; }
1847 fi
1848
1849 fi
1850 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1851 echo "${ECHO_T}$ac_cv_host" >&6; }
1852 case $ac_cv_host in
1853 *-*-*) ;;
1854 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1855 echo "$as_me: error: invalid value of canonical host" >&2;}
1856    { (exit 1); exit 1; }; };;
1857 esac
1858 host=$ac_cv_host
1859 ac_save_IFS=$IFS; IFS='-'
1860 set x $ac_cv_host
1861 shift
1862 host_cpu=$1
1863 host_vendor=$2
1864 shift; shift
1865 # Remember, the first character of IFS is used to create $*,
1866 # except with old shells:
1867 host_os=$*
1868 IFS=$ac_save_IFS
1869 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1870
1871
1872 { echo "$as_me:$LINENO: checking target system type" >&5
1873 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1874 if test "${ac_cv_target+set}" = set; then
1875   echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877   if test "x$target_alias" = x; then
1878   ac_cv_target=$ac_cv_host
1879 else
1880   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1881     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1882 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1883    { (exit 1); exit 1; }; }
1884 fi
1885
1886 fi
1887 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1888 echo "${ECHO_T}$ac_cv_target" >&6; }
1889 case $ac_cv_target in
1890 *-*-*) ;;
1891 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1892 echo "$as_me: error: invalid value of canonical target" >&2;}
1893    { (exit 1); exit 1; }; };;
1894 esac
1895 target=$ac_cv_target
1896 ac_save_IFS=$IFS; IFS='-'
1897 set x $ac_cv_target
1898 shift
1899 target_cpu=$1
1900 target_vendor=$2
1901 shift; shift
1902 # Remember, the first character of IFS is used to create $*,
1903 # except with old shells:
1904 target_os=$*
1905 IFS=$ac_save_IFS
1906 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1907
1908
1909 # The aliases save the names the user supplied, while $host etc.
1910 # will get canonicalized.
1911 test -n "$target_alias" &&
1912   test "$program_prefix$program_suffix$program_transform_name" = \
1913     NONENONEs,x,x, &&
1914   program_prefix=${target_alias}-
1915 case x"$target_cpu" in
1916 "xx86_64")
1917
1918 cat >>confdefs.h <<\_ACEOF
1919 #define STRESSAPPTEST_CPU_X86_64
1920 _ACEOF
1921
1922 ;;
1923 "xi686")
1924
1925 cat >>confdefs.h <<\_ACEOF
1926 #define STRESSAPPTEST_CPU_I686
1927 _ACEOF
1928
1929 ;;
1930 "xpowerpc")
1931
1932 cat >>confdefs.h <<\_ACEOF
1933 #define STRESSAPPTEST_CPU_PPC
1934 _ACEOF
1935
1936 ;;
1937 esac
1938
1939 am__api_version='1.10'
1940
1941 # Find a good install program.  We prefer a C program (faster),
1942 # so one script is as good as another.  But avoid the broken or
1943 # incompatible versions:
1944 # SysV /etc/install, /usr/sbin/install
1945 # SunOS /usr/etc/install
1946 # IRIX /sbin/install
1947 # AIX /bin/install
1948 # AmigaOS /C/install, which installs bootblocks on floppy discs
1949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1952 # OS/2's system install, which has a completely different semantic
1953 # ./install, which can be erroneously created by make from ./install.sh.
1954 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1955 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1956 if test -z "$INSTALL"; then
1957 if test "${ac_cv_path_install+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963   IFS=$as_save_IFS
1964   test -z "$as_dir" && as_dir=.
1965   # Account for people who put trailing slashes in PATH elements.
1966 case $as_dir/ in
1967   ./ | .// | /cC/* | \
1968   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1969   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1970   /usr/ucb/* ) ;;
1971   *)
1972     # OSF1 and SCO ODT 3.0 have their own names for install.
1973     # Don't use installbsd from OSF since it installs stuff as root
1974     # by default.
1975     for ac_prog in ginstall scoinst install; do
1976       for ac_exec_ext in '' $ac_executable_extensions; do
1977         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1978           if test $ac_prog = install &&
1979             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1980             # AIX install.  It has an incompatible calling convention.
1981             :
1982           elif test $ac_prog = install &&
1983             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1984             # program-specific install script used by HP pwplus--don't use.
1985             :
1986           else
1987             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1988             break 3
1989           fi
1990         fi
1991       done
1992     done
1993     ;;
1994 esac
1995 done
1996 IFS=$as_save_IFS
1997
1998
1999 fi
2000   if test "${ac_cv_path_install+set}" = set; then
2001     INSTALL=$ac_cv_path_install
2002   else
2003     # As a last resort, use the slow shell script.  Don't cache a
2004     # value for INSTALL within a source directory, because that will
2005     # break other packages using the cache if that directory is
2006     # removed, or if the value is a relative name.
2007     INSTALL=$ac_install_sh
2008   fi
2009 fi
2010 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2011 echo "${ECHO_T}$INSTALL" >&6; }
2012
2013 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2014 # It thinks the first close brace ends the variable substitution.
2015 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2016
2017 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2018
2019 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2020
2021 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2022 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2023 # Just in case
2024 sleep 1
2025 echo timestamp > conftest.file
2026 # Do `set' in a subshell so we don't clobber the current shell's
2027 # arguments.  Must try -L first in case configure is actually a
2028 # symlink; some systems play weird games with the mod time of symlinks
2029 # (eg FreeBSD returns the mod time of the symlink's containing
2030 # directory).
2031 if (
2032    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2033    if test "$*" = "X"; then
2034       # -L didn't work.
2035       set X `ls -t $srcdir/configure conftest.file`
2036    fi
2037    rm -f conftest.file
2038    if test "$*" != "X $srcdir/configure conftest.file" \
2039       && test "$*" != "X conftest.file $srcdir/configure"; then
2040
2041       # If neither matched, then we have a broken ls.  This can happen
2042       # if, for instance, CONFIG_SHELL is bash and it inherits a
2043       # broken ls alias from the environment.  This has actually
2044       # happened.  Such a system could not be considered "sane".
2045       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2046 alias in your environment" >&5
2047 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2048 alias in your environment" >&2;}
2049    { (exit 1); exit 1; }; }
2050    fi
2051
2052    test "$2" = conftest.file
2053    )
2054 then
2055    # Ok.
2056    :
2057 else
2058    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2059 Check your system clock" >&5
2060 echo "$as_me: error: newly created file is older than distributed files!
2061 Check your system clock" >&2;}
2062    { (exit 1); exit 1; }; }
2063 fi
2064 { echo "$as_me:$LINENO: result: yes" >&5
2065 echo "${ECHO_T}yes" >&6; }
2066 test "$program_prefix" != NONE &&
2067   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2068 # Use a double $ so make ignores it.
2069 test "$program_suffix" != NONE &&
2070   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2071 # Double any \ or $.  echo might interpret backslashes.
2072 # By default was `s,x,x', remove it if useless.
2073 cat <<\_ACEOF >conftest.sed
2074 s/[\\$]/&&/g;s/;s,x,x,$//
2075 _ACEOF
2076 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2077 rm -f conftest.sed
2078
2079 # expand $ac_aux_dir to an absolute path
2080 am_aux_dir=`cd $ac_aux_dir && pwd`
2081
2082 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2083 # Use eval to expand $SHELL
2084 if eval "$MISSING --run true"; then
2085   am_missing_run="$MISSING --run "
2086 else
2087   am_missing_run=
2088   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2089 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2090 fi
2091
2092 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2093 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2094 if test -z "$MKDIR_P"; then
2095   if test "${ac_cv_path_mkdir+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2100 do
2101   IFS=$as_save_IFS
2102   test -z "$as_dir" && as_dir=.
2103   for ac_prog in mkdir gmkdir; do
2104          for ac_exec_ext in '' $ac_executable_extensions; do
2105            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2106            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2107              'mkdir (GNU coreutils) '* | \
2108              'mkdir (coreutils) '* | \
2109              'mkdir (fileutils) '4.1*)
2110                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2111                break 3;;
2112            esac
2113          done
2114        done
2115 done
2116 IFS=$as_save_IFS
2117
2118 fi
2119
2120   if test "${ac_cv_path_mkdir+set}" = set; then
2121     MKDIR_P="$ac_cv_path_mkdir -p"
2122   else
2123     # As a last resort, use the slow shell script.  Don't cache a
2124     # value for MKDIR_P within a source directory, because that will
2125     # break other packages using the cache if that directory is
2126     # removed, or if the value is a relative name.
2127     test -d ./--version && rmdir ./--version
2128     MKDIR_P="$ac_install_sh -d"
2129   fi
2130 fi
2131 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2132 echo "${ECHO_T}$MKDIR_P" >&6; }
2133
2134 mkdir_p="$MKDIR_P"
2135 case $mkdir_p in
2136   [\\/$]* | ?:[\\/]*) ;;
2137   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2138 esac
2139
2140 for ac_prog in gawk mawk nawk awk
2141 do
2142   # Extract the first word of "$ac_prog", so it can be a program name with args.
2143 set dummy $ac_prog; ac_word=$2
2144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2146 if test "${ac_cv_prog_AWK+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149   if test -n "$AWK"; then
2150   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2151 else
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155   IFS=$as_save_IFS
2156   test -z "$as_dir" && as_dir=.
2157   for ac_exec_ext in '' $ac_executable_extensions; do
2158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2159     ac_cv_prog_AWK="$ac_prog"
2160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161     break 2
2162   fi
2163 done
2164 done
2165 IFS=$as_save_IFS
2166
2167 fi
2168 fi
2169 AWK=$ac_cv_prog_AWK
2170 if test -n "$AWK"; then
2171   { echo "$as_me:$LINENO: result: $AWK" >&5
2172 echo "${ECHO_T}$AWK" >&6; }
2173 else
2174   { echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6; }
2176 fi
2177
2178
2179   test -n "$AWK" && break
2180 done
2181
2182 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2183 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2184 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2185 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   cat >conftest.make <<\_ACEOF
2189 SHELL = /bin/sh
2190 all:
2191         @echo '@@@%%%=$(MAKE)=@@@%%%'
2192 _ACEOF
2193 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2194 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2195   *@@@%%%=?*=@@@%%%*)
2196     eval ac_cv_prog_make_${ac_make}_set=yes;;
2197   *)
2198     eval ac_cv_prog_make_${ac_make}_set=no;;
2199 esac
2200 rm -f conftest.make
2201 fi
2202 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2203   { echo "$as_me:$LINENO: result: yes" >&5
2204 echo "${ECHO_T}yes" >&6; }
2205   SET_MAKE=
2206 else
2207   { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2209   SET_MAKE="MAKE=${MAKE-make}"
2210 fi
2211
2212 rm -rf .tst 2>/dev/null
2213 mkdir .tst 2>/dev/null
2214 if test -d .tst; then
2215   am__leading_dot=.
2216 else
2217   am__leading_dot=_
2218 fi
2219 rmdir .tst 2>/dev/null
2220
2221 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2222   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2223   # is not polluted with repeated "-I."
2224   am__isrc=' -I$(srcdir)'
2225   # test to see if srcdir already configured
2226   if test -f $srcdir/config.status; then
2227     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2228 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2229    { (exit 1); exit 1; }; }
2230   fi
2231 fi
2232
2233 # test whether we have cygpath
2234 if test -z "$CYGPATH_W"; then
2235   if (cygpath --version) >/dev/null 2>/dev/null; then
2236     CYGPATH_W='cygpath -w'
2237   else
2238     CYGPATH_W=echo
2239   fi
2240 fi
2241
2242
2243 # Define the identity of the package.
2244  PACKAGE='stressapptest'
2245  VERSION='1.0.0_autoconf'
2246
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE "$PACKAGE"
2250 _ACEOF
2251
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define VERSION "$VERSION"
2255 _ACEOF
2256
2257 # Some tools Automake needs.
2258
2259 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2260
2261
2262 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2263
2264
2265 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2266
2267
2268 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2269
2270
2271 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2272
2273 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2274
2275 # Installed binaries are usually stripped using `strip' when the user
2276 # run `make install-strip'.  However `strip' might not be the right
2277 # tool to use in cross-compilation environments, therefore Automake
2278 # will honor the `STRIP' environment variable to overrule this program.
2279 if test "$cross_compiling" != no; then
2280   if test -n "$ac_tool_prefix"; then
2281   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2282 set dummy ${ac_tool_prefix}strip; ac_word=$2
2283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2285 if test "${ac_cv_prog_STRIP+set}" = set; then
2286   echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288   if test -n "$STRIP"; then
2289   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2290 else
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
2294   IFS=$as_save_IFS
2295   test -z "$as_dir" && as_dir=.
2296   for ac_exec_ext in '' $ac_executable_extensions; do
2297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300     break 2
2301   fi
2302 done
2303 done
2304 IFS=$as_save_IFS
2305
2306 fi
2307 fi
2308 STRIP=$ac_cv_prog_STRIP
2309 if test -n "$STRIP"; then
2310   { echo "$as_me:$LINENO: result: $STRIP" >&5
2311 echo "${ECHO_T}$STRIP" >&6; }
2312 else
2313   { echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6; }
2315 fi
2316
2317
2318 fi
2319 if test -z "$ac_cv_prog_STRIP"; then
2320   ac_ct_STRIP=$STRIP
2321   # Extract the first word of "strip", so it can be a program name with args.
2322 set dummy strip; ac_word=$2
2323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2326   echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328   if test -n "$ac_ct_STRIP"; then
2329   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334   IFS=$as_save_IFS
2335   test -z "$as_dir" && as_dir=.
2336   for ac_exec_ext in '' $ac_executable_extensions; do
2337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338     ac_cv_prog_ac_ct_STRIP="strip"
2339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340     break 2
2341   fi
2342 done
2343 done
2344 IFS=$as_save_IFS
2345
2346 fi
2347 fi
2348 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2349 if test -n "$ac_ct_STRIP"; then
2350   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2351 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2352 else
2353   { echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6; }
2355 fi
2356
2357   if test "x$ac_ct_STRIP" = x; then
2358     STRIP=":"
2359   else
2360     case $cross_compiling:$ac_tool_warned in
2361 yes:)
2362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2363 whose name does not start with the host triplet.  If you think this
2364 configuration is useful to you, please write to autoconf@gnu.org." >&5
2365 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2366 whose name does not start with the host triplet.  If you think this
2367 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2368 ac_tool_warned=yes ;;
2369 esac
2370     STRIP=$ac_ct_STRIP
2371   fi
2372 else
2373   STRIP="$ac_cv_prog_STRIP"
2374 fi
2375
2376 fi
2377 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2378
2379 # We need awk for the "check" target.  The system "awk" is bad on
2380 # some platforms.
2381 # Always define AMTAR for backward compatibility.
2382
2383 AMTAR=${AMTAR-"${am_missing_run}tar"}
2384
2385 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2386
2387
2388
2389
2390
2391
2392 ac_config_headers="$ac_config_headers src/stressapptest_config.h"
2393
2394
2395 # Checks for programs.
2396 ac_ext=cpp
2397 ac_cpp='$CXXCPP $CPPFLAGS'
2398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2401 if test -z "$CXX"; then
2402   if test -n "$CCC"; then
2403     CXX=$CCC
2404   else
2405     if test -n "$ac_tool_prefix"; then
2406   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2407   do
2408     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2412 if test "${ac_cv_prog_CXX+set}" = set; then
2413   echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415   if test -n "$CXX"; then
2416   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2417 else
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2420 do
2421   IFS=$as_save_IFS
2422   test -z "$as_dir" && as_dir=.
2423   for ac_exec_ext in '' $ac_executable_extensions; do
2424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427     break 2
2428   fi
2429 done
2430 done
2431 IFS=$as_save_IFS
2432
2433 fi
2434 fi
2435 CXX=$ac_cv_prog_CXX
2436 if test -n "$CXX"; then
2437   { echo "$as_me:$LINENO: result: $CXX" >&5
2438 echo "${ECHO_T}$CXX" >&6; }
2439 else
2440   { echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6; }
2442 fi
2443
2444
2445     test -n "$CXX" && break
2446   done
2447 fi
2448 if test -z "$CXX"; then
2449   ac_ct_CXX=$CXX
2450   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2451 do
2452   # Extract the first word of "$ac_prog", so it can be a program name with args.
2453 set dummy $ac_prog; ac_word=$2
2454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2457   echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459   if test -n "$ac_ct_CXX"; then
2460   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467   for ac_exec_ext in '' $ac_executable_extensions; do
2468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469     ac_cv_prog_ac_ct_CXX="$ac_prog"
2470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471     break 2
2472   fi
2473 done
2474 done
2475 IFS=$as_save_IFS
2476
2477 fi
2478 fi
2479 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2480 if test -n "$ac_ct_CXX"; then
2481   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2482 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2483 else
2484   { echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6; }
2486 fi
2487
2488
2489   test -n "$ac_ct_CXX" && break
2490 done
2491
2492   if test "x$ac_ct_CXX" = x; then
2493     CXX="g++"
2494   else
2495     case $cross_compiling:$ac_tool_warned in
2496 yes:)
2497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2498 whose name does not start with the host triplet.  If you think this
2499 configuration is useful to you, please write to autoconf@gnu.org." >&5
2500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2501 whose name does not start with the host triplet.  If you think this
2502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2503 ac_tool_warned=yes ;;
2504 esac
2505     CXX=$ac_ct_CXX
2506   fi
2507 fi
2508
2509   fi
2510 fi
2511 # Provide some information about the compiler.
2512 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2513 ac_compiler=`set X $ac_compile; echo $2`
2514 { (ac_try="$ac_compiler --version >&5"
2515 case "(($ac_try" in
2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517   *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520   (eval "$ac_compiler --version >&5") 2>&5
2521   ac_status=$?
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); }
2524 { (ac_try="$ac_compiler -v >&5"
2525 case "(($ac_try" in
2526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527   *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530   (eval "$ac_compiler -v >&5") 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }
2534 { (ac_try="$ac_compiler -V >&5"
2535 case "(($ac_try" in
2536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537   *) ac_try_echo=$ac_try;;
2538 esac
2539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540   (eval "$ac_compiler -V >&5") 2>&5
2541   ac_status=$?
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); }
2544
2545 cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h.  */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h.  */
2551
2552 int
2553 main ()
2554 {
2555
2556   ;
2557   return 0;
2558 }
2559 _ACEOF
2560 ac_clean_files_save=$ac_clean_files
2561 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2562 # Try to create an executable without -o first, disregard a.out.
2563 # It will help us diagnose broken compilers, and finding out an intuition
2564 # of exeext.
2565 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2566 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2567 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2568 #
2569 # List of possible output files, starting from the most likely.
2570 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2571 # only as a last resort.  b.out is created by i960 compilers.
2572 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2573 #
2574 # The IRIX 6 linker writes into existing files which may not be
2575 # executable, retaining their permissions.  Remove them first so a
2576 # subsequent execution test works.
2577 ac_rmfiles=
2578 for ac_file in $ac_files
2579 do
2580   case $ac_file in
2581     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2582     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2583   esac
2584 done
2585 rm -f $ac_rmfiles
2586
2587 if { (ac_try="$ac_link_default"
2588 case "(($ac_try" in
2589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590   *) ac_try_echo=$ac_try;;
2591 esac
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593   (eval "$ac_link_default") 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; then
2597   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2598 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2599 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2600 # so that the user can short-circuit this test for compilers unknown to
2601 # Autoconf.
2602 for ac_file in $ac_files ''
2603 do
2604   test -f "$ac_file" || continue
2605   case $ac_file in
2606     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2607         ;;
2608     [ab].out )
2609         # We found the default executable, but exeext='' is most
2610         # certainly right.
2611         break;;
2612     *.* )
2613         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2614         then :; else
2615            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2616         fi
2617         # We set ac_cv_exeext here because the later test for it is not
2618         # safe: cross compilers may not add the suffix if given an `-o'
2619         # argument, so we may need to know it at that point already.
2620         # Even if this section looks crufty: it has the advantage of
2621         # actually working.
2622         break;;
2623     * )
2624         break;;
2625   esac
2626 done
2627 test "$ac_cv_exeext" = no && ac_cv_exeext=
2628
2629 else
2630   ac_file=''
2631 fi
2632
2633 { echo "$as_me:$LINENO: result: $ac_file" >&5
2634 echo "${ECHO_T}$ac_file" >&6; }
2635 if test -z "$ac_file"; then
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: C++ compiler cannot create executables
2642 See \`config.log' for more details." >&2;}
2643    { (exit 77); exit 77; }; }
2644 fi
2645
2646 ac_exeext=$ac_cv_exeext
2647
2648 # Check that the compiler produces executables we can run.  If not, either
2649 # the compiler is broken, or we cross compile.
2650 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2651 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2652 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2653 # If not cross compiling, check that we can run a simple program.
2654 if test "$cross_compiling" != yes; then
2655   if { ac_try='./$ac_file'
2656   { (case "(($ac_try" in
2657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658   *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661   (eval "$ac_try") 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }; }; then
2665     cross_compiling=no
2666   else
2667     if test "$cross_compiling" = maybe; then
2668         cross_compiling=yes
2669     else
2670         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2671 If you meant to cross compile, use \`--host'.
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: cannot run C++ compiled programs.
2674 If you meant to cross compile, use \`--host'.
2675 See \`config.log' for more details." >&2;}
2676    { (exit 1); exit 1; }; }
2677     fi
2678   fi
2679 fi
2680 { echo "$as_me:$LINENO: result: yes" >&5
2681 echo "${ECHO_T}yes" >&6; }
2682
2683 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2684 ac_clean_files=$ac_clean_files_save
2685 # Check that the compiler produces executables we can run.  If not, either
2686 # the compiler is broken, or we cross compile.
2687 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2688 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2689 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2690 echo "${ECHO_T}$cross_compiling" >&6; }
2691
2692 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2693 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2694 if { (ac_try="$ac_link"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_link") 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }; then
2704   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2705 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2706 # work properly (i.e., refer to `conftest.exe'), while it won't with
2707 # `rm'.
2708 for ac_file in conftest.exe conftest conftest.*; do
2709   test -f "$ac_file" || continue
2710   case $ac_file in
2711     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2712     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2713           break;;
2714     * ) break;;
2715   esac
2716 done
2717 else
2718   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2719 See \`config.log' for more details." >&5
2720 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2721 See \`config.log' for more details." >&2;}
2722    { (exit 1); exit 1; }; }
2723 fi
2724
2725 rm -f conftest$ac_cv_exeext
2726 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2727 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2728
2729 rm -f conftest.$ac_ext
2730 EXEEXT=$ac_cv_exeext
2731 ac_exeext=$EXEEXT
2732 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2733 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2734 if test "${ac_cv_objext+set}" = set; then
2735   echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737   cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h.  */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h.  */
2743
2744 int
2745 main ()
2746 {
2747
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 rm -f conftest.o conftest.obj
2753 if { (ac_try="$ac_compile"
2754 case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759   (eval "$ac_compile") 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; then
2763   for ac_file in conftest.o conftest.obj conftest.*; do
2764   test -f "$ac_file" || continue;
2765   case $ac_file in
2766     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2767     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2768        break;;
2769   esac
2770 done
2771 else
2772   echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2778 See \`config.log' for more details." >&2;}
2779    { (exit 1); exit 1; }; }
2780 fi
2781
2782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2783 fi
2784 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2785 echo "${ECHO_T}$ac_cv_objext" >&6; }
2786 OBJEXT=$ac_cv_objext
2787 ac_objext=$OBJEXT
2788 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2789 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2790 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2791   echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793   cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h.  */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h.  */
2799
2800 int
2801 main ()
2802 {
2803 #ifndef __GNUC__
2804        choke me
2805 #endif
2806
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 rm -f conftest.$ac_objext
2812 if { (ac_try="$ac_compile"
2813 case "(($ac_try" in
2814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815   *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818   (eval "$ac_compile") 2>conftest.er1
2819   ac_status=$?
2820   grep -v '^ *+' conftest.er1 >conftest.err
2821   rm -f conftest.er1
2822   cat conftest.err >&5
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); } && {
2825          test -z "$ac_cxx_werror_flag" ||
2826          test ! -s conftest.err
2827        } && test -s conftest.$ac_objext; then
2828   ac_compiler_gnu=yes
2829 else
2830   echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2832
2833         ac_compiler_gnu=no
2834 fi
2835
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2838
2839 fi
2840 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2841 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2842 GXX=`test $ac_compiler_gnu = yes && echo yes`
2843 ac_test_CXXFLAGS=${CXXFLAGS+set}
2844 ac_save_CXXFLAGS=$CXXFLAGS
2845 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2846 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2847 if test "${ac_cv_prog_cxx_g+set}" = set; then
2848   echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2851    ac_cxx_werror_flag=yes
2852    ac_cv_prog_cxx_g=no
2853    CXXFLAGS="-g"
2854    cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h.  */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h.  */
2860
2861 int
2862 main ()
2863 {
2864
2865   ;
2866   return 0;
2867 }
2868 _ACEOF
2869 rm -f conftest.$ac_objext
2870 if { (ac_try="$ac_compile"
2871 case "(($ac_try" in
2872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873   *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876   (eval "$ac_compile") 2>conftest.er1
2877   ac_status=$?
2878   grep -v '^ *+' conftest.er1 >conftest.err
2879   rm -f conftest.er1
2880   cat conftest.err >&5
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); } && {
2883          test -z "$ac_cxx_werror_flag" ||
2884          test ! -s conftest.err
2885        } && test -s conftest.$ac_objext; then
2886   ac_cv_prog_cxx_g=yes
2887 else
2888   echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2890
2891         CXXFLAGS=""
2892       cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h.  */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h.  */
2898
2899 int
2900 main ()
2901 {
2902
2903   ;
2904   return 0;
2905 }
2906 _ACEOF
2907 rm -f conftest.$ac_objext
2908 if { (ac_try="$ac_compile"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914   (eval "$ac_compile") 2>conftest.er1
2915   ac_status=$?
2916   grep -v '^ *+' conftest.er1 >conftest.err
2917   rm -f conftest.er1
2918   cat conftest.err >&5
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); } && {
2921          test -z "$ac_cxx_werror_flag" ||
2922          test ! -s conftest.err
2923        } && test -s conftest.$ac_objext; then
2924   :
2925 else
2926   echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2930          CXXFLAGS="-g"
2931          cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937
2938 int
2939 main ()
2940 {
2941
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compile") 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } && {
2960          test -z "$ac_cxx_werror_flag" ||
2961          test ! -s conftest.err
2962        } && test -s conftest.$ac_objext; then
2963   ac_cv_prog_cxx_g=yes
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968
2969 fi
2970
2971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972 fi
2973
2974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975 fi
2976
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2979 fi
2980 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2981 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2982 if test "$ac_test_CXXFLAGS" = set; then
2983   CXXFLAGS=$ac_save_CXXFLAGS
2984 elif test $ac_cv_prog_cxx_g = yes; then
2985   if test "$GXX" = yes; then
2986     CXXFLAGS="-g -O2"
2987   else
2988     CXXFLAGS="-g"
2989   fi
2990 else
2991   if test "$GXX" = yes; then
2992     CXXFLAGS="-O2"
2993   else
2994     CXXFLAGS=
2995   fi
2996 fi
2997 ac_ext=c
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 DEPDIR="${am__leading_dot}deps"
3003
3004 ac_config_commands="$ac_config_commands depfiles"
3005
3006
3007 am_make=${MAKE-make}
3008 cat > confinc << 'END'
3009 am__doit:
3010         @echo done
3011 .PHONY: am__doit
3012 END
3013 # If we don't find an include directive, just comment out the code.
3014 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3015 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3016 am__include="#"
3017 am__quote=
3018 _am_result=none
3019 # First try GNU make style include.
3020 echo "include confinc" > confmf
3021 # We grep out `Entering directory' and `Leaving directory'
3022 # messages which can occur if `w' ends up in MAKEFLAGS.
3023 # In particular we don't look at `^make:' because GNU make might
3024 # be invoked under some other name (usually "gmake"), in which
3025 # case it prints its new name instead of `make'.
3026 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3027    am__include=include
3028    am__quote=
3029    _am_result=GNU
3030 fi
3031 # Now try BSD make style include.
3032 if test "$am__include" = "#"; then
3033    echo '.include "confinc"' > confmf
3034    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3035       am__include=.include
3036       am__quote="\""
3037       _am_result=BSD
3038    fi
3039 fi
3040
3041
3042 { echo "$as_me:$LINENO: result: $_am_result" >&5
3043 echo "${ECHO_T}$_am_result" >&6; }
3044 rm -f confinc confmf
3045
3046 # Check whether --enable-dependency-tracking was given.
3047 if test "${enable_dependency_tracking+set}" = set; then
3048   enableval=$enable_dependency_tracking;
3049 fi
3050
3051 if test "x$enable_dependency_tracking" != xno; then
3052   am_depcomp="$ac_aux_dir/depcomp"
3053   AMDEPBACKSLASH='\'
3054 fi
3055  if test "x$enable_dependency_tracking" != xno; then
3056   AMDEP_TRUE=
3057   AMDEP_FALSE='#'
3058 else
3059   AMDEP_TRUE='#'
3060   AMDEP_FALSE=
3061 fi
3062
3063
3064
3065 depcc="$CXX"  am_compiler_list=
3066
3067 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3068 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3069 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3070   echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3073   # We make a subdir and do the tests there.  Otherwise we can end up
3074   # making bogus files that we don't know about and never remove.  For
3075   # instance it was reported that on HP-UX the gcc test will end up
3076   # making a dummy file named `D' -- because `-MD' means `put the output
3077   # in D'.
3078   mkdir conftest.dir
3079   # Copy depcomp to subdir because otherwise we won't find it if we're
3080   # using a relative directory.
3081   cp "$am_depcomp" conftest.dir
3082   cd conftest.dir
3083   # We will build objects and dependencies in a subdirectory because
3084   # it helps to detect inapplicable dependency modes.  For instance
3085   # both Tru64's cc and ICC support -MD to output dependencies as a
3086   # side effect of compilation, but ICC will put the dependencies in
3087   # the current directory while Tru64 will put them in the object
3088   # directory.
3089   mkdir sub
3090
3091   am_cv_CXX_dependencies_compiler_type=none
3092   if test "$am_compiler_list" = ""; then
3093      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3094   fi
3095   for depmode in $am_compiler_list; do
3096     # Setup a source with many dependencies, because some compilers
3097     # like to wrap large dependency lists on column 80 (with \), and
3098     # we should not choose a depcomp mode which is confused by this.
3099     #
3100     # We need to recreate these files for each test, as the compiler may
3101     # overwrite some of them when testing with obscure command lines.
3102     # This happens at least with the AIX C compiler.
3103     : > sub/conftest.c
3104     for i in 1 2 3 4 5 6; do
3105       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3106       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3107       # Solaris 8's {/usr,}/bin/sh.
3108       touch sub/conftst$i.h
3109     done
3110     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3111
3112     case $depmode in
3113     nosideeffect)
3114       # after this tag, mechanisms are not by side-effect, so they'll
3115       # only be used when explicitly requested
3116       if test "x$enable_dependency_tracking" = xyes; then
3117         continue
3118       else
3119         break
3120       fi
3121       ;;
3122     none) break ;;
3123     esac
3124     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3125     # mode.  It turns out that the SunPro C++ compiler does not properly
3126     # handle `-M -o', and we need to detect this.
3127     if depmode=$depmode \
3128        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3129        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3130        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3131          >/dev/null 2>conftest.err &&
3132        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3133        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3134        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3135        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3136       # icc doesn't choke on unknown options, it will just issue warnings
3137       # or remarks (even with -Werror).  So we grep stderr for any message
3138       # that says an option was ignored or not supported.
3139       # When given -MP, icc 7.0 and 7.1 complain thusly:
3140       #   icc: Command line warning: ignoring option '-M'; no argument required
3141       # The diagnosis changed in icc 8.0:
3142       #   icc: Command line remark: option '-MP' not supported
3143       if (grep 'ignoring option' conftest.err ||
3144           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3145         am_cv_CXX_dependencies_compiler_type=$depmode
3146         break
3147       fi
3148     fi
3149   done
3150
3151   cd ..
3152   rm -rf conftest.dir
3153 else
3154   am_cv_CXX_dependencies_compiler_type=none
3155 fi
3156
3157 fi
3158 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3159 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3160 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3161
3162  if
3163   test "x$enable_dependency_tracking" != xno \
3164   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3165   am__fastdepCXX_TRUE=
3166   am__fastdepCXX_FALSE='#'
3167 else
3168   am__fastdepCXX_TRUE='#'
3169   am__fastdepCXX_FALSE=
3170 fi
3171
3172
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178 if test -n "$ac_tool_prefix"; then
3179   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3183 if test "${ac_cv_prog_CC+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if test -n "$CC"; then
3187   ac_cv_prog_CC="$CC" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192   IFS=$as_save_IFS
3193   test -z "$as_dir" && as_dir=.
3194   for ac_exec_ext in '' $ac_executable_extensions; do
3195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198     break 2
3199   fi
3200 done
3201 done
3202 IFS=$as_save_IFS
3203
3204 fi
3205 fi
3206 CC=$ac_cv_prog_CC
3207 if test -n "$CC"; then
3208   { echo "$as_me:$LINENO: result: $CC" >&5
3209 echo "${ECHO_T}$CC" >&6; }
3210 else
3211   { echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6; }
3213 fi
3214
3215
3216 fi
3217 if test -z "$ac_cv_prog_CC"; then
3218   ac_ct_CC=$CC
3219   # Extract the first word of "gcc", so it can be a program name with args.
3220 set dummy gcc; ac_word=$2
3221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3223 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3224   echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226   if test -n "$ac_ct_CC"; then
3227   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232   IFS=$as_save_IFS
3233   test -z "$as_dir" && as_dir=.
3234   for ac_exec_ext in '' $ac_executable_extensions; do
3235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236     ac_cv_prog_ac_ct_CC="gcc"
3237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3238     break 2
3239   fi
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 fi
3245 fi
3246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3247 if test -n "$ac_ct_CC"; then
3248   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3249 echo "${ECHO_T}$ac_ct_CC" >&6; }
3250 else
3251   { echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6; }
3253 fi
3254
3255   if test "x$ac_ct_CC" = x; then
3256     CC=""
3257   else
3258     case $cross_compiling:$ac_tool_warned in
3259 yes:)
3260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3261 whose name does not start with the host triplet.  If you think this
3262 configuration is useful to you, please write to autoconf@gnu.org." >&5
3263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3264 whose name does not start with the host triplet.  If you think this
3265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3266 ac_tool_warned=yes ;;
3267 esac
3268     CC=$ac_ct_CC
3269   fi
3270 else
3271   CC="$ac_cv_prog_CC"
3272 fi
3273
3274 if test -z "$CC"; then
3275           if test -n "$ac_tool_prefix"; then
3276     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}cc; ac_word=$2
3278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3280 if test "${ac_cv_prog_CC+set}" = set; then
3281   echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283   if test -n "$CC"; then
3284   ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289   IFS=$as_save_IFS
3290   test -z "$as_dir" && as_dir=.
3291   for ac_exec_ext in '' $ac_executable_extensions; do
3292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293     ac_cv_prog_CC="${ac_tool_prefix}cc"
3294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295     break 2
3296   fi
3297 done
3298 done
3299 IFS=$as_save_IFS
3300
3301 fi
3302 fi
3303 CC=$ac_cv_prog_CC
3304 if test -n "$CC"; then
3305   { echo "$as_me:$LINENO: result: $CC" >&5
3306 echo "${ECHO_T}$CC" >&6; }
3307 else
3308   { echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6; }
3310 fi
3311
3312
3313   fi
3314 fi
3315 if test -z "$CC"; then
3316   # Extract the first word of "cc", so it can be a program name with args.
3317 set dummy cc; ac_word=$2
3318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3320 if test "${ac_cv_prog_CC+set}" = set; then
3321   echo $ECHO_N "(cached) $ECHO_C" >&6
3322 else
3323   if test -n "$CC"; then
3324   ac_cv_prog_CC="$CC" # Let the user override the test.
3325 else
3326   ac_prog_rejected=no
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330   IFS=$as_save_IFS
3331   test -z "$as_dir" && as_dir=.
3332   for ac_exec_ext in '' $ac_executable_extensions; do
3333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3335        ac_prog_rejected=yes
3336        continue
3337      fi
3338     ac_cv_prog_CC="cc"
3339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340     break 2
3341   fi
3342 done
3343 done
3344 IFS=$as_save_IFS
3345
3346 if test $ac_prog_rejected = yes; then
3347   # We found a bogon in the path, so make sure we never use it.
3348   set dummy $ac_cv_prog_CC
3349   shift
3350   if test $# != 0; then
3351     # We chose a different compiler from the bogus one.
3352     # However, it has the same basename, so the bogon will be chosen
3353     # first if we set CC to just the basename; use the full file name.
3354     shift
3355     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3356   fi
3357 fi
3358 fi
3359 fi
3360 CC=$ac_cv_prog_CC
3361 if test -n "$CC"; then
3362   { echo "$as_me:$LINENO: result: $CC" >&5
3363 echo "${ECHO_T}$CC" >&6; }
3364 else
3365   { echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6; }
3367 fi
3368
3369
3370 fi
3371 if test -z "$CC"; then
3372   if test -n "$ac_tool_prefix"; then
3373   for ac_prog in cl.exe
3374   do
3375     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3379 if test "${ac_cv_prog_CC+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   if test -n "$CC"; then
3383   ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390   for ac_exec_ext in '' $ac_executable_extensions; do
3391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397 done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 CC=$ac_cv_prog_CC
3403 if test -n "$CC"; then
3404   { echo "$as_me:$LINENO: result: $CC" >&5
3405 echo "${ECHO_T}$CC" >&6; }
3406 else
3407   { echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6; }
3409 fi
3410
3411
3412     test -n "$CC" && break
3413   done
3414 fi
3415 if test -z "$CC"; then
3416   ac_ct_CC=$CC
3417   for ac_prog in cl.exe
3418 do
3419   # Extract the first word of "$ac_prog", so it can be a program name with args.
3420 set dummy $ac_prog; ac_word=$2
3421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3423 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426   if test -n "$ac_ct_CC"; then
3427   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432   IFS=$as_save_IFS
3433   test -z "$as_dir" && as_dir=.
3434   for ac_exec_ext in '' $ac_executable_extensions; do
3435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436     ac_cv_prog_ac_ct_CC="$ac_prog"
3437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3438     break 2
3439   fi
3440 done
3441 done
3442 IFS=$as_save_IFS
3443
3444 fi
3445 fi
3446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3447 if test -n "$ac_ct_CC"; then
3448   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3449 echo "${ECHO_T}$ac_ct_CC" >&6; }
3450 else
3451   { echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6; }
3453 fi
3454
3455
3456   test -n "$ac_ct_CC" && break
3457 done
3458
3459   if test "x$ac_ct_CC" = x; then
3460     CC=""
3461   else
3462     case $cross_compiling:$ac_tool_warned in
3463 yes:)
3464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3465 whose name does not start with the host triplet.  If you think this
3466 configuration is useful to you, please write to autoconf@gnu.org." >&5
3467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3468 whose name does not start with the host triplet.  If you think this
3469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3470 ac_tool_warned=yes ;;
3471 esac
3472     CC=$ac_ct_CC
3473   fi
3474 fi
3475
3476 fi
3477
3478
3479 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3480 See \`config.log' for more details." >&5
3481 echo "$as_me: error: no acceptable C compiler found in \$PATH
3482 See \`config.log' for more details." >&2;}
3483    { (exit 1); exit 1; }; }
3484
3485 # Provide some information about the compiler.
3486 echo "$as_me:$LINENO: checking for C compiler version" >&5
3487 ac_compiler=`set X $ac_compile; echo $2`
3488 { (ac_try="$ac_compiler --version >&5"
3489 case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494   (eval "$ac_compiler --version >&5") 2>&5
3495   ac_status=$?
3496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); }
3498 { (ac_try="$ac_compiler -v >&5"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504   (eval "$ac_compiler -v >&5") 2>&5
3505   ac_status=$?
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); }
3508 { (ac_try="$ac_compiler -V >&5"
3509 case "(($ac_try" in
3510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511   *) ac_try_echo=$ac_try;;
3512 esac
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514   (eval "$ac_compiler -V >&5") 2>&5
3515   ac_status=$?
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); }
3518
3519 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3520 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3521 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h.  */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h.  */
3530
3531 int
3532 main ()
3533 {
3534 #ifndef __GNUC__
3535        choke me
3536 #endif
3537
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3544 case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549   (eval "$ac_compile") 2>conftest.er1
3550   ac_status=$?
3551   grep -v '^ *+' conftest.er1 >conftest.err
3552   rm -f conftest.er1
3553   cat conftest.err >&5
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } && {
3556          test -z "$ac_c_werror_flag" ||
3557          test ! -s conftest.err
3558        } && test -s conftest.$ac_objext; then
3559   ac_compiler_gnu=yes
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564         ac_compiler_gnu=no
3565 fi
3566
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569
3570 fi
3571 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3572 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3573 GCC=`test $ac_compiler_gnu = yes && echo yes`
3574 ac_test_CFLAGS=${CFLAGS+set}
3575 ac_save_CFLAGS=$CFLAGS
3576 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3577 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3578 if test "${ac_cv_prog_cc_g+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   ac_save_c_werror_flag=$ac_c_werror_flag
3582    ac_c_werror_flag=yes
3583    ac_cv_prog_cc_g=no
3584    CFLAGS="-g"
3585    cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h.  */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h.  */
3591
3592 int
3593 main ()
3594 {
3595
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_compile") 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } && {
3614          test -z "$ac_c_werror_flag" ||
3615          test ! -s conftest.err
3616        } && test -s conftest.$ac_objext; then
3617   ac_cv_prog_cc_g=yes
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622         CFLAGS=""
3623       cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h.  */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h.  */
3629
3630 int
3631 main ()
3632 {
3633
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3640 case "(($ac_try" in
3641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642   *) ac_try_echo=$ac_try;;
3643 esac
3644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3645   (eval "$ac_compile") 2>conftest.er1
3646   ac_status=$?
3647   grep -v '^ *+' conftest.er1 >conftest.err
3648   rm -f conftest.er1
3649   cat conftest.err >&5
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); } && {
3652          test -z "$ac_c_werror_flag" ||
3653          test ! -s conftest.err
3654        } && test -s conftest.$ac_objext; then
3655   :
3656 else
3657   echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3659
3660         ac_c_werror_flag=$ac_save_c_werror_flag
3661          CFLAGS="-g"
3662          cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668
3669 int
3670 main ()
3671 {
3672
3673   ;
3674   return 0;
3675 }
3676 _ACEOF
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3679 case "(($ac_try" in
3680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681   *) ac_try_echo=$ac_try;;
3682 esac
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684   (eval "$ac_compile") 2>conftest.er1
3685   ac_status=$?
3686   grep -v '^ *+' conftest.er1 >conftest.err
3687   rm -f conftest.er1
3688   cat conftest.err >&5
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); } && {
3691          test -z "$ac_c_werror_flag" ||
3692          test ! -s conftest.err
3693        } && test -s conftest.$ac_objext; then
3694   ac_cv_prog_cc_g=yes
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699
3700 fi
3701
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 fi
3704
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 fi
3707
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709    ac_c_werror_flag=$ac_save_c_werror_flag
3710 fi
3711 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3712 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3713 if test "$ac_test_CFLAGS" = set; then
3714   CFLAGS=$ac_save_CFLAGS
3715 elif test $ac_cv_prog_cc_g = yes; then
3716   if test "$GCC" = yes; then
3717     CFLAGS="-g -O2"
3718   else
3719     CFLAGS="-g"
3720   fi
3721 else
3722   if test "$GCC" = yes; then
3723     CFLAGS="-O2"
3724   else
3725     CFLAGS=
3726   fi
3727 fi
3728 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3729 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3730 if test "${ac_cv_prog_cc_c89+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   ac_cv_prog_cc_c89=no
3734 ac_save_CC=$CC
3735 cat >conftest.$ac_ext <<_ACEOF
3736 /* confdefs.h.  */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h.  */
3741 #include <stdarg.h>
3742 #include <stdio.h>
3743 #include <sys/types.h>
3744 #include <sys/stat.h>
3745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3746 struct buf { int x; };
3747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3748 static char *e (p, i)
3749      char **p;
3750      int i;
3751 {
3752   return p[i];
3753 }
3754 static char *f (char * (*g) (char **, int), char **p, ...)
3755 {
3756   char *s;
3757   va_list v;
3758   va_start (v,p);
3759   s = g (p, va_arg (v,int));
3760   va_end (v);
3761   return s;
3762 }
3763
3764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3765    function prototypes and stuff, but not '\xHH' hex character constants.
3766    These don't provoke an error unfortunately, instead are silently treated
3767    as 'x'.  The following induces an error, until -std is added to get
3768    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3769    array size at least.  It's necessary to write '\x00'==0 to get something
3770    that's true only with -std.  */
3771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3772
3773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3774    inside strings and character constants.  */
3775 #define FOO(x) 'x'
3776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3777
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782 int argc;
3783 char **argv;
3784 int
3785 main ()
3786 {
3787 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3793         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3794 do
3795   CC="$ac_save_CC $ac_arg"
3796   rm -f conftest.$ac_objext
3797 if { (ac_try="$ac_compile"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803   (eval "$ac_compile") 2>conftest.er1
3804   ac_status=$?
3805   grep -v '^ *+' conftest.er1 >conftest.err
3806   rm -f conftest.er1
3807   cat conftest.err >&5
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); } && {
3810          test -z "$ac_c_werror_flag" ||
3811          test ! -s conftest.err
3812        } && test -s conftest.$ac_objext; then
3813   ac_cv_prog_cc_c89=$ac_arg
3814 else
3815   echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818
3819 fi
3820
3821 rm -f core conftest.err conftest.$ac_objext
3822   test "x$ac_cv_prog_cc_c89" != "xno" && break
3823 done
3824 rm -f conftest.$ac_ext
3825 CC=$ac_save_CC
3826
3827 fi
3828 # AC_CACHE_VAL
3829 case "x$ac_cv_prog_cc_c89" in
3830   x)
3831     { echo "$as_me:$LINENO: result: none needed" >&5
3832 echo "${ECHO_T}none needed" >&6; } ;;
3833   xno)
3834     { echo "$as_me:$LINENO: result: unsupported" >&5
3835 echo "${ECHO_T}unsupported" >&6; } ;;
3836   *)
3837     CC="$CC $ac_cv_prog_cc_c89"
3838     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3839 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3840 esac
3841
3842
3843 ac_ext=c
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848
3849 depcc="$CC"   am_compiler_list=
3850
3851 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3852 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3853 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3857   # We make a subdir and do the tests there.  Otherwise we can end up
3858   # making bogus files that we don't know about and never remove.  For
3859   # instance it was reported that on HP-UX the gcc test will end up
3860   # making a dummy file named `D' -- because `-MD' means `put the output
3861   # in D'.
3862   mkdir conftest.dir
3863   # Copy depcomp to subdir because otherwise we won't find it if we're
3864   # using a relative directory.
3865   cp "$am_depcomp" conftest.dir
3866   cd conftest.dir
3867   # We will build objects and dependencies in a subdirectory because
3868   # it helps to detect inapplicable dependency modes.  For instance
3869   # both Tru64's cc and ICC support -MD to output dependencies as a
3870   # side effect of compilation, but ICC will put the dependencies in
3871   # the current directory while Tru64 will put them in the object
3872   # directory.
3873   mkdir sub
3874
3875   am_cv_CC_dependencies_compiler_type=none
3876   if test "$am_compiler_list" = ""; then
3877      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3878   fi
3879   for depmode in $am_compiler_list; do
3880     # Setup a source with many dependencies, because some compilers
3881     # like to wrap large dependency lists on column 80 (with \), and
3882     # we should not choose a depcomp mode which is confused by this.
3883     #
3884     # We need to recreate these files for each test, as the compiler may
3885     # overwrite some of them when testing with obscure command lines.
3886     # This happens at least with the AIX C compiler.
3887     : > sub/conftest.c
3888     for i in 1 2 3 4 5 6; do
3889       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3890       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3891       # Solaris 8's {/usr,}/bin/sh.
3892       touch sub/conftst$i.h
3893     done
3894     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3895
3896     case $depmode in
3897     nosideeffect)
3898       # after this tag, mechanisms are not by side-effect, so they'll
3899       # only be used when explicitly requested
3900       if test "x$enable_dependency_tracking" = xyes; then
3901         continue
3902       else
3903         break
3904       fi
3905       ;;
3906     none) break ;;
3907     esac
3908     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3909     # mode.  It turns out that the SunPro C++ compiler does not properly
3910     # handle `-M -o', and we need to detect this.
3911     if depmode=$depmode \
3912        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3913        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3914        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3915          >/dev/null 2>conftest.err &&
3916        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3917        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3918        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3919        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3920       # icc doesn't choke on unknown options, it will just issue warnings
3921       # or remarks (even with -Werror).  So we grep stderr for any message
3922       # that says an option was ignored or not supported.
3923       # When given -MP, icc 7.0 and 7.1 complain thusly:
3924       #   icc: Command line warning: ignoring option '-M'; no argument required
3925       # The diagnosis changed in icc 8.0:
3926       #   icc: Command line remark: option '-MP' not supported
3927       if (grep 'ignoring option' conftest.err ||
3928           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3929         am_cv_CC_dependencies_compiler_type=$depmode
3930         break
3931       fi
3932     fi
3933   done
3934
3935   cd ..
3936   rm -rf conftest.dir
3937 else
3938   am_cv_CC_dependencies_compiler_type=none
3939 fi
3940
3941 fi
3942 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3943 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3944 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3945
3946  if
3947   test "x$enable_dependency_tracking" != xno \
3948   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3949   am__fastdepCC_TRUE=
3950   am__fastdepCC_FALSE='#'
3951 else
3952   am__fastdepCC_TRUE='#'
3953   am__fastdepCC_FALSE=
3954 fi
3955
3956
3957
3958 #Getting user and host info
3959 username=$(whoami)
3960 { echo "$as_me:$LINENO: checking user ID" >&5
3961 echo $ECHO_N "checking user ID... $ECHO_C" >&6; }
3962 { echo "$as_me:$LINENO: result: $username" >&5
3963 echo "${ECHO_T}$username" >&6; }
3964
3965 hostname=$(uname -n)
3966 { echo "$as_me:$LINENO: checking host name" >&5
3967 echo $ECHO_N "checking host name... $ECHO_C" >&6; }
3968 { echo "$as_me:$LINENO: result: $hostname" >&5
3969 echo "${ECHO_T}$hostname" >&6; }
3970
3971 timestamp=$(date)
3972 { echo "$as_me:$LINENO: checking current timestamp" >&5
3973 echo $ECHO_N "checking current timestamp... $ECHO_C" >&6; }
3974 { echo "$as_me:$LINENO: result: $timestamp" >&5
3975 echo "${ECHO_T}$timestamp" >&6; }
3976
3977
3978 cat >>confdefs.h <<_ACEOF
3979 #define STRESSAPPTEST_TIMESTAMP "$username @ $hostname on $timestamp"
3980 _ACEOF
3981
3982
3983 #Default cxxflags
3984 CXXFLAGS="$CXXFLAGS -DCHECKOPTS"
3985 CXXFLAGS="$CXXFLAGS -Wreturn-type -Wunused -Wuninitialized -Wall"
3986 CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops  -funroll-loops -DNDEBUG"
3987
3988 # Checks for header files.
3989
3990
3991
3992
3993
3994
3995 ac_header_dirent=no
3996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3997   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3998 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3999 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4001   echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003   cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h.  */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h.  */
4009 #include <sys/types.h>
4010 #include <$ac_hdr>
4011
4012 int
4013 main ()
4014 {
4015 if ((DIR *) 0)
4016 return 0;
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4023 case "(($ac_try" in
4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025   *) ac_try_echo=$ac_try;;
4026 esac
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028   (eval "$ac_compile") 2>conftest.er1
4029   ac_status=$?
4030   grep -v '^ *+' conftest.er1 >conftest.err
4031   rm -f conftest.er1
4032   cat conftest.err >&5
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); } && {
4035          test -z "$ac_c_werror_flag" ||
4036          test ! -s conftest.err
4037        } && test -s conftest.$ac_objext; then
4038   eval "$as_ac_Header=yes"
4039 else
4040   echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4042
4043         eval "$as_ac_Header=no"
4044 fi
4045
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 fi
4048 ac_res=`eval echo '${'$as_ac_Header'}'`
4049                { echo "$as_me:$LINENO: result: $ac_res" >&5
4050 echo "${ECHO_T}$ac_res" >&6; }
4051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4052   cat >>confdefs.h <<_ACEOF
4053 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4054 _ACEOF
4055
4056 ac_header_dirent=$ac_hdr; break
4057 fi
4058
4059 done
4060 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4061 if test $ac_header_dirent = dirent.h; then
4062   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4063 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4064 if test "${ac_cv_search_opendir+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   ac_func_search_save_LIBS=$LIBS
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h.  */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h.  */
4074
4075 /* Override any GCC internal prototype to avoid an error.
4076    Use char because int might match the return type of a GCC
4077    builtin and then its argument prototype would still apply.  */
4078 #ifdef __cplusplus
4079 extern "C"
4080 #endif
4081 char opendir ();
4082 int
4083 main ()
4084 {
4085 return opendir ();
4086   ;
4087   return 0;
4088 }
4089 _ACEOF
4090 for ac_lib in '' dir; do
4091   if test -z "$ac_lib"; then
4092     ac_res="none required"
4093   else
4094     ac_res=-l$ac_lib
4095     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4096   fi
4097   rm -f conftest.$ac_objext conftest$ac_exeext
4098 if { (ac_try="$ac_link"
4099 case "(($ac_try" in
4100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101   *) ac_try_echo=$ac_try;;
4102 esac
4103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104   (eval "$ac_link") 2>conftest.er1
4105   ac_status=$?
4106   grep -v '^ *+' conftest.er1 >conftest.err
4107   rm -f conftest.er1
4108   cat conftest.err >&5
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } && {
4111          test -z "$ac_c_werror_flag" ||
4112          test ! -s conftest.err
4113        } && test -s conftest$ac_exeext &&
4114        $as_test_x conftest$ac_exeext; then
4115   ac_cv_search_opendir=$ac_res
4116 else
4117   echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120
4121 fi
4122
4123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4124       conftest$ac_exeext
4125   if test "${ac_cv_search_opendir+set}" = set; then
4126   break
4127 fi
4128 done
4129 if test "${ac_cv_search_opendir+set}" = set; then
4130   :
4131 else
4132   ac_cv_search_opendir=no
4133 fi
4134 rm conftest.$ac_ext
4135 LIBS=$ac_func_search_save_LIBS
4136 fi
4137 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4138 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4139 ac_res=$ac_cv_search_opendir
4140 if test "$ac_res" != no; then
4141   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4142
4143 fi
4144
4145 else
4146   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4147 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4148 if test "${ac_cv_search_opendir+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   ac_func_search_save_LIBS=$LIBS
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h.  */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h.  */
4158
4159 /* Override any GCC internal prototype to avoid an error.
4160    Use char because int might match the return type of a GCC
4161    builtin and then its argument prototype would still apply.  */
4162 #ifdef __cplusplus
4163 extern "C"
4164 #endif
4165 char opendir ();
4166 int
4167 main ()
4168 {
4169 return opendir ();
4170   ;
4171   return 0;
4172 }
4173 _ACEOF
4174 for ac_lib in '' x; do
4175   if test -z "$ac_lib"; then
4176     ac_res="none required"
4177   else
4178     ac_res=-l$ac_lib
4179     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4180   fi
4181   rm -f conftest.$ac_objext conftest$ac_exeext
4182 if { (ac_try="$ac_link"
4183 case "(($ac_try" in
4184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185   *) ac_try_echo=$ac_try;;
4186 esac
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188   (eval "$ac_link") 2>conftest.er1
4189   ac_status=$?
4190   grep -v '^ *+' conftest.er1 >conftest.err
4191   rm -f conftest.er1
4192   cat conftest.err >&5
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); } && {
4195          test -z "$ac_c_werror_flag" ||
4196          test ! -s conftest.err
4197        } && test -s conftest$ac_exeext &&
4198        $as_test_x conftest$ac_exeext; then
4199   ac_cv_search_opendir=$ac_res
4200 else
4201   echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4203
4204
4205 fi
4206
4207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4208       conftest$ac_exeext
4209   if test "${ac_cv_search_opendir+set}" = set; then
4210   break
4211 fi
4212 done
4213 if test "${ac_cv_search_opendir+set}" = set; then
4214   :
4215 else
4216   ac_cv_search_opendir=no
4217 fi
4218 rm conftest.$ac_ext
4219 LIBS=$ac_func_search_save_LIBS
4220 fi
4221 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4222 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4223 ac_res=$ac_cv_search_opendir
4224 if test "$ac_res" != no; then
4225   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4226
4227 fi
4228
4229 fi
4230
4231 ac_ext=c
4232 ac_cpp='$CPP $CPPFLAGS'
4233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4238 # On Suns, sometimes $CPP names a directory.
4239 if test -n "$CPP" && test -d "$CPP"; then
4240   CPP=
4241 fi
4242 if test -z "$CPP"; then
4243   if test "${ac_cv_prog_CPP+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246       # Double quotes because CPP needs to be expanded
4247     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4248     do
4249       ac_preproc_ok=false
4250 for ac_c_preproc_warn_flag in '' yes
4251 do
4252   # Use a header file that comes with gcc, so configuring glibc
4253   # with a fresh cross-compiler works.
4254   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4255   # <limits.h> exists even on freestanding compilers.
4256   # On the NeXT, cc -E runs the code through the compiler's parser,
4257   # not just through cpp. "Syntax error" is here to catch this case.
4258   cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h.  */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h.  */
4264 #ifdef __STDC__
4265 # include <limits.h>
4266 #else
4267 # include <assert.h>
4268 #endif
4269                      Syntax error
4270 _ACEOF
4271 if { (ac_try="$ac_cpp conftest.$ac_ext"
4272 case "(($ac_try" in
4273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274   *) ac_try_echo=$ac_try;;
4275 esac
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4278   ac_status=$?
4279   grep -v '^ *+' conftest.er1 >conftest.err
4280   rm -f conftest.er1
4281   cat conftest.err >&5
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); } >/dev/null && {
4284          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4285          test ! -s conftest.err
4286        }; then
4287   :
4288 else
4289   echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292   # Broken: fails on valid input.
4293 continue
4294 fi
4295
4296 rm -f conftest.err conftest.$ac_ext
4297
4298   # OK, works on sane cases.  Now check whether nonexistent headers
4299   # can be detected and how.
4300   cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306 #include <ac_nonexistent.h>
4307 _ACEOF
4308 if { (ac_try="$ac_cpp conftest.$ac_ext"
4309 case "(($ac_try" in
4310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311   *) ac_try_echo=$ac_try;;
4312 esac
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4315   ac_status=$?
4316   grep -v '^ *+' conftest.er1 >conftest.err
4317   rm -f conftest.er1
4318   cat conftest.err >&5
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); } >/dev/null && {
4321          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4322          test ! -s conftest.err
4323        }; then
4324   # Broken: success on invalid input.
4325 continue
4326 else
4327   echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330   # Passes both tests.
4331 ac_preproc_ok=:
4332 break
4333 fi
4334
4335 rm -f conftest.err conftest.$ac_ext
4336
4337 done
4338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4339 rm -f conftest.err conftest.$ac_ext
4340 if $ac_preproc_ok; then
4341   break
4342 fi
4343
4344     done
4345     ac_cv_prog_CPP=$CPP
4346
4347 fi
4348   CPP=$ac_cv_prog_CPP
4349 else
4350   ac_cv_prog_CPP=$CPP
4351 fi
4352 { echo "$as_me:$LINENO: result: $CPP" >&5
4353 echo "${ECHO_T}$CPP" >&6; }
4354 ac_preproc_ok=false
4355 for ac_c_preproc_warn_flag in '' yes
4356 do
4357   # Use a header file that comes with gcc, so configuring glibc
4358   # with a fresh cross-compiler works.
4359   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4360   # <limits.h> exists even on freestanding compilers.
4361   # On the NeXT, cc -E runs the code through the compiler's parser,
4362   # not just through cpp. "Syntax error" is here to catch this case.
4363   cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369 #ifdef __STDC__
4370 # include <limits.h>
4371 #else
4372 # include <assert.h>
4373 #endif
4374                      Syntax error
4375 _ACEOF
4376 if { (ac_try="$ac_cpp conftest.$ac_ext"
4377 case "(($ac_try" in
4378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379   *) ac_try_echo=$ac_try;;
4380 esac
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4383   ac_status=$?
4384   grep -v '^ *+' conftest.er1 >conftest.err
4385   rm -f conftest.er1
4386   cat conftest.err >&5
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); } >/dev/null && {
4389          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4390          test ! -s conftest.err
4391        }; then
4392   :
4393 else
4394   echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4396
4397   # Broken: fails on valid input.
4398 continue
4399 fi
4400
4401 rm -f conftest.err conftest.$ac_ext
4402
4403   # OK, works on sane cases.  Now check whether nonexistent headers
4404   # can be detected and how.
4405   cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h.  */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h.  */
4411 #include <ac_nonexistent.h>
4412 _ACEOF
4413 if { (ac_try="$ac_cpp conftest.$ac_ext"
4414 case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } >/dev/null && {
4426          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4427          test ! -s conftest.err
4428        }; then
4429   # Broken: success on invalid input.
4430 continue
4431 else
4432   echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4434
4435   # Passes both tests.
4436 ac_preproc_ok=:
4437 break
4438 fi
4439
4440 rm -f conftest.err conftest.$ac_ext
4441
4442 done
4443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4444 rm -f conftest.err conftest.$ac_ext
4445 if $ac_preproc_ok; then
4446   :
4447 else
4448   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4449 See \`config.log' for more details." >&5
4450 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4451 See \`config.log' for more details." >&2;}
4452    { (exit 1); exit 1; }; }
4453 fi
4454
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461
4462 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4463 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4464 if test "${ac_cv_path_GREP+set}" = set; then
4465   echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467   # Extract the first word of "grep ggrep" to use in msg output
4468 if test -z "$GREP"; then
4469 set dummy grep ggrep; ac_prog_name=$2
4470 if test "${ac_cv_path_GREP+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   ac_path_GREP_found=false
4474 # Loop through the user's path and test for each of PROGNAME-LIST
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4477 do
4478   IFS=$as_save_IFS
4479   test -z "$as_dir" && as_dir=.
4480   for ac_prog in grep ggrep; do
4481   for ac_exec_ext in '' $ac_executable_extensions; do
4482     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4483     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4484     # Check for GNU ac_path_GREP and select it if it is found.
4485   # Check for GNU $ac_path_GREP
4486 case `"$ac_path_GREP" --version 2>&1` in
4487 *GNU*)
4488   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4489 *)
4490   ac_count=0
4491   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4492   while :
4493   do
4494     cat "conftest.in" "conftest.in" >"conftest.tmp"
4495     mv "conftest.tmp" "conftest.in"
4496     cp "conftest.in" "conftest.nl"
4497     echo 'GREP' >> "conftest.nl"
4498     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4499     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4500     ac_count=`expr $ac_count + 1`
4501     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4502       # Best one so far, save it but keep looking for a better one
4503       ac_cv_path_GREP="$ac_path_GREP"
4504       ac_path_GREP_max=$ac_count
4505     fi
4506     # 10*(2^10) chars as input seems more than enough
4507     test $ac_count -gt 10 && break
4508   done
4509   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4510 esac
4511
4512
4513     $ac_path_GREP_found && break 3
4514   done
4515 done
4516
4517 done
4518 IFS=$as_save_IFS
4519
4520
4521 fi
4522
4523 GREP="$ac_cv_path_GREP"
4524 if test -z "$GREP"; then
4525   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4526 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4527    { (exit 1); exit 1; }; }
4528 fi
4529
4530 else
4531   ac_cv_path_GREP=$GREP
4532 fi
4533
4534
4535 fi
4536 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4537 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4538  GREP="$ac_cv_path_GREP"
4539
4540
4541 { echo "$as_me:$LINENO: checking for egrep" >&5
4542 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4543 if test "${ac_cv_path_EGREP+set}" = set; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4547    then ac_cv_path_EGREP="$GREP -E"
4548    else
4549      # Extract the first word of "egrep" to use in msg output
4550 if test -z "$EGREP"; then
4551 set dummy egrep; ac_prog_name=$2
4552 if test "${ac_cv_path_EGREP+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   ac_path_EGREP_found=false
4556 # Loop through the user's path and test for each of PROGNAME-LIST
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4559 do
4560   IFS=$as_save_IFS
4561   test -z "$as_dir" && as_dir=.
4562   for ac_prog in egrep; do
4563   for ac_exec_ext in '' $ac_executable_extensions; do
4564     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4565     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4566     # Check for GNU ac_path_EGREP and select it if it is found.
4567   # Check for GNU $ac_path_EGREP
4568 case `"$ac_path_EGREP" --version 2>&1` in
4569 *GNU*)
4570   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4571 *)
4572   ac_count=0
4573   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4574   while :
4575   do
4576     cat "conftest.in" "conftest.in" >"conftest.tmp"
4577     mv "conftest.tmp" "conftest.in"
4578     cp "conftest.in" "conftest.nl"
4579     echo 'EGREP' >> "conftest.nl"
4580     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4581     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4582     ac_count=`expr $ac_count + 1`
4583     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4584       # Best one so far, save it but keep looking for a better one
4585       ac_cv_path_EGREP="$ac_path_EGREP"
4586       ac_path_EGREP_max=$ac_count
4587     fi
4588     # 10*(2^10) chars as input seems more than enough
4589     test $ac_count -gt 10 && break
4590   done
4591   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4592 esac
4593
4594
4595     $ac_path_EGREP_found && break 3
4596   done
4597 done
4598
4599 done
4600 IFS=$as_save_IFS
4601
4602
4603 fi
4604
4605 EGREP="$ac_cv_path_EGREP"
4606 if test -z "$EGREP"; then
4607   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4609    { (exit 1); exit 1; }; }
4610 fi
4611
4612 else
4613   ac_cv_path_EGREP=$EGREP
4614 fi
4615
4616
4617    fi
4618 fi
4619 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4620 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4621  EGREP="$ac_cv_path_EGREP"
4622
4623
4624 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4625 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4626 if test "${ac_cv_header_stdc+set}" = set; then
4627   echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629   cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h.  */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h.  */
4635 #include <stdlib.h>
4636 #include <stdarg.h>
4637 #include <string.h>
4638 #include <float.h>
4639
4640 int
4641 main ()
4642 {
4643
4644   ;
4645   return 0;
4646 }
4647 _ACEOF
4648 rm -f conftest.$ac_objext
4649 if { (ac_try="$ac_compile"
4650 case "(($ac_try" in
4651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652   *) ac_try_echo=$ac_try;;
4653 esac
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655   (eval "$ac_compile") 2>conftest.er1
4656   ac_status=$?
4657   grep -v '^ *+' conftest.er1 >conftest.err
4658   rm -f conftest.er1
4659   cat conftest.err >&5
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); } && {
4662          test -z "$ac_c_werror_flag" ||
4663          test ! -s conftest.err
4664        } && test -s conftest.$ac_objext; then
4665   ac_cv_header_stdc=yes
4666 else
4667   echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670         ac_cv_header_stdc=no
4671 fi
4672
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674
4675 if test $ac_cv_header_stdc = yes; then
4676   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4677   cat >conftest.$ac_ext <<_ACEOF
4678 /* confdefs.h.  */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h.  */
4683 #include <string.h>
4684
4685 _ACEOF
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687   $EGREP "memchr" >/dev/null 2>&1; then
4688   :
4689 else
4690   ac_cv_header_stdc=no
4691 fi
4692 rm -f conftest*
4693
4694 fi
4695
4696 if test $ac_cv_header_stdc = yes; then
4697   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4698   cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h.  */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h.  */
4704 #include <stdlib.h>
4705
4706 _ACEOF
4707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4708   $EGREP "free" >/dev/null 2>&1; then
4709   :
4710 else
4711   ac_cv_header_stdc=no
4712 fi
4713 rm -f conftest*
4714
4715 fi
4716
4717 if test $ac_cv_header_stdc = yes; then
4718   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4719   if test "$cross_compiling" = yes; then
4720   :
4721 else
4722   cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h.  */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h.  */
4728 #include <ctype.h>
4729 #include <stdlib.h>
4730 #if ((' ' & 0x0FF) == 0x020)
4731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4733 #else
4734 # define ISLOWER(c) \
4735                    (('a' <= (c) && (c) <= 'i') \
4736                      || ('j' <= (c) && (c) <= 'r') \
4737                      || ('s' <= (c) && (c) <= 'z'))
4738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4739 #endif
4740
4741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4742 int
4743 main ()
4744 {
4745   int i;
4746   for (i = 0; i < 256; i++)
4747     if (XOR (islower (i), ISLOWER (i))
4748         || toupper (i) != TOUPPER (i))
4749       return 2;
4750   return 0;
4751 }
4752 _ACEOF
4753 rm -f conftest$ac_exeext
4754 if { (ac_try="$ac_link"
4755 case "(($ac_try" in
4756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757   *) ac_try_echo=$ac_try;;
4758 esac
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760   (eval "$ac_link") 2>&5
4761   ac_status=$?
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4764   { (case "(($ac_try" in
4765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766   *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769   (eval "$ac_try") 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); }; }; then
4773   :
4774 else
4775   echo "$as_me: program exited with status $ac_status" >&5
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4778
4779 ( exit $ac_status )
4780 ac_cv_header_stdc=no
4781 fi
4782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4783 fi
4784
4785
4786 fi
4787 fi
4788 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4789 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4790 if test $ac_cv_header_stdc = yes; then
4791
4792 cat >>confdefs.h <<\_ACEOF
4793 #define STDC_HEADERS 1
4794 _ACEOF
4795
4796 fi
4797
4798 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4809                   inttypes.h stdint.h unistd.h
4810 do
4811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h.  */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h.  */
4823 $ac_includes_default
4824
4825 #include <$ac_header>
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (ac_try="$ac_compile"
4829 case "(($ac_try" in
4830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831   *) ac_try_echo=$ac_try;;
4832 esac
4833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834   (eval "$ac_compile") 2>conftest.er1
4835   ac_status=$?
4836   grep -v '^ *+' conftest.er1 >conftest.err
4837   rm -f conftest.er1
4838   cat conftest.err >&5
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); } && {
4841          test -z "$ac_c_werror_flag" ||
4842          test ! -s conftest.err
4843        } && test -s conftest.$ac_objext; then
4844   eval "$as_ac_Header=yes"
4845 else
4846   echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4848
4849         eval "$as_ac_Header=no"
4850 fi
4851
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853 fi
4854 ac_res=`eval echo '${'$as_ac_Header'}'`
4855                { echo "$as_me:$LINENO: result: $ac_res" >&5
4856 echo "${ECHO_T}$ac_res" >&6; }
4857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4858   cat >>confdefs.h <<_ACEOF
4859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4860 _ACEOF
4861
4862 fi
4863
4864 done
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878 for ac_header in arpa/inet.h fcntl.h malloc.h netdb.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h
4879 do
4880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4882   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4885   echo $ECHO_N "(cached) $ECHO_C" >&6
4886 fi
4887 ac_res=`eval echo '${'$as_ac_Header'}'`
4888                { echo "$as_me:$LINENO: result: $ac_res" >&5
4889 echo "${ECHO_T}$ac_res" >&6; }
4890 else
4891   # Is the header compilable?
4892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h.  */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h.  */
4900 $ac_includes_default
4901 #include <$ac_header>
4902 _ACEOF
4903 rm -f conftest.$ac_objext
4904 if { (ac_try="$ac_compile"
4905 case "(($ac_try" in
4906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907   *) ac_try_echo=$ac_try;;
4908 esac
4909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910   (eval "$ac_compile") 2>conftest.er1
4911   ac_status=$?
4912   grep -v '^ *+' conftest.er1 >conftest.err
4913   rm -f conftest.er1
4914   cat conftest.err >&5
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } && {
4917          test -z "$ac_c_werror_flag" ||
4918          test ! -s conftest.err
4919        } && test -s conftest.$ac_objext; then
4920   ac_header_compiler=yes
4921 else
4922   echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925         ac_header_compiler=no
4926 fi
4927
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4930 echo "${ECHO_T}$ac_header_compiler" >&6; }
4931
4932 # Is the header present?
4933 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h.  */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h.  */
4941 #include <$ac_header>
4942 _ACEOF
4943 if { (ac_try="$ac_cpp conftest.$ac_ext"
4944 case "(($ac_try" in
4945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946   *) ac_try_echo=$ac_try;;
4947 esac
4948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4950   ac_status=$?
4951   grep -v '^ *+' conftest.er1 >conftest.err
4952   rm -f conftest.er1
4953   cat conftest.err >&5
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); } >/dev/null && {
4956          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4957          test ! -s conftest.err
4958        }; then
4959   ac_header_preproc=yes
4960 else
4961   echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964   ac_header_preproc=no
4965 fi
4966
4967 rm -f conftest.err conftest.$ac_ext
4968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4969 echo "${ECHO_T}$ac_header_preproc" >&6; }
4970
4971 # So?  What about this header?
4972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4973   yes:no: )
4974     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4978     ac_header_preproc=yes
4979     ;;
4980   no:yes:* )
4981     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4983     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4984 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4985     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4987     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4988 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4991     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4993     ( cat <<\_ASBOX
4994 ## ----------------------------------- ##
4995 ## Report this to opensource@gmail.com ##
4996 ## ----------------------------------- ##
4997 _ASBOX
4998      ) | sed "s/^/$as_me: WARNING:     /" >&2
4999     ;;
5000 esac
5001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5004   echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006   eval "$as_ac_Header=\$ac_header_preproc"
5007 fi
5008 ac_res=`eval echo '${'$as_ac_Header'}'`
5009                { echo "$as_me:$LINENO: result: $ac_res" >&5
5010 echo "${ECHO_T}$ac_res" >&6; }
5011
5012 fi
5013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5014   cat >>confdefs.h <<_ACEOF
5015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5016 _ACEOF
5017
5018 fi
5019
5020 done
5021
5022
5023 # Checks for typedefs, structures, and compiler characteristics.
5024 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
5025 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
5026 if test "${ac_cv_header_stdbool_h+set}" = set; then
5027   echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029   cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h.  */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h.  */
5035
5036 #include <stdbool.h>
5037 #ifndef bool
5038  "error: bool is not defined"
5039 #endif
5040 #ifndef false
5041  "error: false is not defined"
5042 #endif
5043 #if false
5044  "error: false is not 0"
5045 #endif
5046 #ifndef true
5047  "error: true is not defined"
5048 #endif
5049 #if true != 1
5050  "error: true is not 1"
5051 #endif
5052 #ifndef __bool_true_false_are_defined
5053  "error: __bool_true_false_are_defined is not defined"
5054 #endif
5055
5056         struct s { _Bool s: 1; _Bool t; } s;
5057
5058         char a[true == 1 ? 1 : -1];
5059         char b[false == 0 ? 1 : -1];
5060         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5061         char d[(bool) 0.5 == true ? 1 : -1];
5062         bool e = &s;
5063         char f[(_Bool) 0.0 == false ? 1 : -1];
5064         char g[true];
5065         char h[sizeof (_Bool)];
5066         char i[sizeof s.t];
5067         enum { j = false, k = true, l = false * true, m = true * 256 };
5068         _Bool n[m];
5069         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5070         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5071 #       if defined __xlc__ || defined __GNUC__
5072          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
5073             reported by James Lemley on 2005-10-05; see
5074             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
5075             This test is not quite right, since xlc is allowed to
5076             reject this program, as the initializer for xlcbug is
5077             not one of the forms that C requires support for.
5078             However, doing the test right would require a runtime
5079             test, and that would make cross-compilation harder.
5080             Let us hope that IBM fixes the xlc bug, and also adds
5081             support for this kind of constant expression.  In the
5082             meantime, this test will reject xlc, which is OK, since
5083             our stdbool.h substitute should suffice.  We also test
5084             this with GCC, where it should work, to detect more
5085             quickly whether someone messes up the test in the
5086             future.  */
5087          char digs[] = "0123456789";
5088          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
5089 #       endif
5090         /* Catch a bug in an HP-UX C compiler.  See
5091            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5092            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5093          */
5094         _Bool q = true;
5095         _Bool *pq = &q;
5096
5097 int
5098 main ()
5099 {
5100
5101         *pq |= q;
5102         *pq |= ! q;
5103         /* Refer to every declared value, to avoid compiler optimizations.  */
5104         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5105                 + !m + !n + !o + !p + !q + !pq);
5106
5107   ;
5108   return 0;
5109 }
5110 _ACEOF
5111 rm -f conftest.$ac_objext
5112 if { (ac_try="$ac_compile"
5113 case "(($ac_try" in
5114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115   *) ac_try_echo=$ac_try;;
5116 esac
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118   (eval "$ac_compile") 2>conftest.er1
5119   ac_status=$?
5120   grep -v '^ *+' conftest.er1 >conftest.err
5121   rm -f conftest.er1
5122   cat conftest.err >&5
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); } && {
5125          test -z "$ac_c_werror_flag" ||
5126          test ! -s conftest.err
5127        } && test -s conftest.$ac_objext; then
5128   ac_cv_header_stdbool_h=yes
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133         ac_cv_header_stdbool_h=no
5134 fi
5135
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 fi
5138 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5139 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
5140 { echo "$as_me:$LINENO: checking for _Bool" >&5
5141 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
5142 if test "${ac_cv_type__Bool+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   cat >conftest.$ac_ext <<_ACEOF
5146 /* confdefs.h.  */
5147 _ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h.  */
5151 $ac_includes_default
5152 typedef _Bool ac__type_new_;
5153 int
5154 main ()
5155 {
5156 if ((ac__type_new_ *) 0)
5157   return 0;
5158 if (sizeof (ac__type_new_))
5159   return 0;
5160   ;
5161   return 0;
5162 }
5163 _ACEOF
5164 rm -f conftest.$ac_objext
5165 if { (ac_try="$ac_compile"
5166 case "(($ac_try" in
5167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168   *) ac_try_echo=$ac_try;;
5169 esac
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171   (eval "$ac_compile") 2>conftest.er1
5172   ac_status=$?
5173   grep -v '^ *+' conftest.er1 >conftest.err
5174   rm -f conftest.er1
5175   cat conftest.err >&5
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); } && {
5178          test -z "$ac_c_werror_flag" ||
5179          test ! -s conftest.err
5180        } && test -s conftest.$ac_objext; then
5181   ac_cv_type__Bool=yes
5182 else
5183   echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186         ac_cv_type__Bool=no
5187 fi
5188
5189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190 fi
5191 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5192 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
5193 if test $ac_cv_type__Bool = yes; then
5194
5195 cat >>confdefs.h <<_ACEOF
5196 #define HAVE__BOOL 1
5197 _ACEOF
5198
5199
5200 fi
5201
5202 if test $ac_cv_header_stdbool_h = yes; then
5203
5204 cat >>confdefs.h <<\_ACEOF
5205 #define HAVE_STDBOOL_H 1
5206 _ACEOF
5207
5208 fi
5209
5210 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5211 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5212 if test "${ac_cv_c_const+set}" = set; then
5213   echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215   cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h.  */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h.  */
5221
5222 int
5223 main ()
5224 {
5225 /* FIXME: Include the comments suggested by Paul. */
5226 #ifndef __cplusplus
5227   /* Ultrix mips cc rejects this.  */
5228   typedef int charset[2];
5229   const charset cs;
5230   /* SunOS 4.1.1 cc rejects this.  */
5231   char const *const *pcpcc;
5232   char **ppc;
5233   /* NEC SVR4.0.2 mips cc rejects this.  */
5234   struct point {int x, y;};
5235   static struct point const zero = {0,0};
5236   /* AIX XL C 1.02.0.0 rejects this.
5237      It does not let you subtract one const X* pointer from another in
5238      an arm of an if-expression whose if-part is not a constant
5239      expression */
5240   const char *g = "string";
5241   pcpcc = &g + (g ? g-g : 0);
5242   /* HPUX 7.0 cc rejects these. */
5243   ++pcpcc;
5244   ppc = (char**) pcpcc;
5245   pcpcc = (char const *const *) ppc;
5246   { /* SCO 3.2v4 cc rejects this.  */
5247     char *t;
5248     char const *s = 0 ? (char *) 0 : (char const *) 0;
5249
5250     *t++ = 0;
5251     if (s) return 0;
5252   }
5253   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5254     int x[] = {25, 17};
5255     const int *foo = &x[0];
5256     ++foo;
5257   }
5258   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5259     typedef const int *iptr;
5260     iptr p = 0;
5261     ++p;
5262   }
5263   { /* AIX XL C 1.02.0.0 rejects this saying
5264        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5265     struct s { int j; const int *ap[3]; };
5266     struct s *b; b->j = 5;
5267   }
5268   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5269     const int foo = 10;
5270     if (!foo) return 0;
5271   }
5272   return !cs[0] && !zero.x;
5273 #endif
5274
5275   ;
5276   return 0;
5277 }
5278 _ACEOF
5279 rm -f conftest.$ac_objext
5280 if { (ac_try="$ac_compile"
5281 case "(($ac_try" in
5282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283   *) ac_try_echo=$ac_try;;
5284 esac
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286   (eval "$ac_compile") 2>conftest.er1
5287   ac_status=$?
5288   grep -v '^ *+' conftest.er1 >conftest.err
5289   rm -f conftest.er1
5290   cat conftest.err >&5
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); } && {
5293          test -z "$ac_c_werror_flag" ||
5294          test ! -s conftest.err
5295        } && test -s conftest.$ac_objext; then
5296   ac_cv_c_const=yes
5297 else
5298   echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301         ac_cv_c_const=no
5302 fi
5303
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 fi
5306 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5307 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5308 if test $ac_cv_c_const = no; then
5309
5310 cat >>confdefs.h <<\_ACEOF
5311 #define const
5312 _ACEOF
5313
5314 fi
5315
5316 { echo "$as_me:$LINENO: checking for inline" >&5
5317 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5318 if test "${ac_cv_c_inline+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   ac_cv_c_inline=no
5322 for ac_kw in inline __inline__ __inline; do
5323   cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329 #ifndef __cplusplus
5330 typedef int foo_t;
5331 static $ac_kw foo_t static_foo () {return 0; }
5332 $ac_kw foo_t foo () {return 0; }
5333 #endif
5334
5335 _ACEOF
5336 rm -f conftest.$ac_objext
5337 if { (ac_try="$ac_compile"
5338 case "(($ac_try" in
5339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340   *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343   (eval "$ac_compile") 2>conftest.er1
5344   ac_status=$?
5345   grep -v '^ *+' conftest.er1 >conftest.err
5346   rm -f conftest.er1
5347   cat conftest.err >&5
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } && {
5350          test -z "$ac_c_werror_flag" ||
5351          test ! -s conftest.err
5352        } && test -s conftest.$ac_objext; then
5353   ac_cv_c_inline=$ac_kw
5354 else
5355   echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5357
5358
5359 fi
5360
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362   test "$ac_cv_c_inline" != no && break
5363 done
5364
5365 fi
5366 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5367 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5368
5369
5370 case $ac_cv_c_inline in
5371   inline | yes) ;;
5372   *)
5373     case $ac_cv_c_inline in
5374       no) ac_val=;;
5375       *) ac_val=$ac_cv_c_inline;;
5376     esac
5377     cat >>confdefs.h <<_ACEOF
5378 #ifndef __cplusplus
5379 #define inline $ac_val
5380 #endif
5381 _ACEOF
5382     ;;
5383 esac
5384
5385 { echo "$as_me:$LINENO: checking for pid_t" >&5
5386 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5387 if test "${ac_cv_type_pid_t+set}" = set; then
5388   echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390   cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h.  */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h.  */
5396 $ac_includes_default
5397 typedef pid_t ac__type_new_;
5398 int
5399 main ()
5400 {
5401 if ((ac__type_new_ *) 0)
5402   return 0;
5403 if (sizeof (ac__type_new_))
5404   return 0;
5405   ;
5406   return 0;
5407 }
5408 _ACEOF
5409 rm -f conftest.$ac_objext
5410 if { (ac_try="$ac_compile"
5411 case "(($ac_try" in
5412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413   *) ac_try_echo=$ac_try;;
5414 esac
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416   (eval "$ac_compile") 2>conftest.er1
5417   ac_status=$?
5418   grep -v '^ *+' conftest.er1 >conftest.err
5419   rm -f conftest.er1
5420   cat conftest.err >&5
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); } && {
5423          test -z "$ac_c_werror_flag" ||
5424          test ! -s conftest.err
5425        } && test -s conftest.$ac_objext; then
5426   ac_cv_type_pid_t=yes
5427 else
5428   echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5430
5431         ac_cv_type_pid_t=no
5432 fi
5433
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 fi
5436 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5437 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5438 if test $ac_cv_type_pid_t = yes; then
5439   :
5440 else
5441
5442 cat >>confdefs.h <<_ACEOF
5443 #define pid_t int
5444 _ACEOF
5445
5446 fi
5447
5448 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
5449 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
5450 if test "${ac_cv_c_restrict+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   ac_cv_c_restrict=no
5454    # Try the official restrict keyword, then gcc's __restrict, and
5455    # the less common variants.
5456    for ac_kw in restrict __restrict __restrict__ _Restrict; do
5457      cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h.  */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h.  */
5463 typedef int * int_ptr;
5464         int foo (int_ptr $ac_kw ip) {
5465         return ip[0];
5466        }
5467 int
5468 main ()
5469 {
5470 int s[1];
5471         int * $ac_kw t = s;
5472         t[0] = 0;
5473         return foo(t)
5474   ;
5475   return 0;
5476 }
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (ac_try="$ac_compile"
5480 case "(($ac_try" in
5481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482   *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485   (eval "$ac_compile") 2>conftest.er1
5486   ac_status=$?
5487   grep -v '^ *+' conftest.er1 >conftest.err
5488   rm -f conftest.er1
5489   cat conftest.err >&5
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } && {
5492          test -z "$ac_c_werror_flag" ||
5493          test ! -s conftest.err
5494        } && test -s conftest.$ac_objext; then
5495   ac_cv_c_restrict=$ac_kw
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500
5501 fi
5502
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504      test "$ac_cv_c_restrict" != no && break
5505    done
5506
5507 fi
5508 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
5509 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
5510  case $ac_cv_c_restrict in
5511    restrict) ;;
5512    no)
5513 cat >>confdefs.h <<\_ACEOF
5514 #define restrict
5515 _ACEOF
5516  ;;
5517    *)  cat >>confdefs.h <<_ACEOF
5518 #define restrict $ac_cv_c_restrict
5519 _ACEOF
5520  ;;
5521  esac
5522
5523 { echo "$as_me:$LINENO: checking for ssize_t" >&5
5524 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
5525 if test "${ac_cv_type_ssize_t+set}" = set; then
5526   echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528   cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h.  */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h.  */
5534 $ac_includes_default
5535 typedef ssize_t ac__type_new_;
5536 int
5537 main ()
5538 {
5539 if ((ac__type_new_ *) 0)
5540   return 0;
5541 if (sizeof (ac__type_new_))
5542   return 0;
5543   ;
5544   return 0;
5545 }
5546 _ACEOF
5547 rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5549 case "(($ac_try" in
5550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551   *) ac_try_echo=$ac_try;;
5552 esac
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554   (eval "$ac_compile") 2>conftest.er1
5555   ac_status=$?
5556   grep -v '^ *+' conftest.er1 >conftest.err
5557   rm -f conftest.er1
5558   cat conftest.err >&5
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); } && {
5561          test -z "$ac_c_werror_flag" ||
5562          test ! -s conftest.err
5563        } && test -s conftest.$ac_objext; then
5564   ac_cv_type_ssize_t=yes
5565 else
5566   echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5568
5569         ac_cv_type_ssize_t=no
5570 fi
5571
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 fi
5574 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5575 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
5576 if test $ac_cv_type_ssize_t = yes; then
5577   :
5578 else
5579
5580 cat >>confdefs.h <<_ACEOF
5581 #define ssize_t int
5582 _ACEOF
5583
5584 fi
5585
5586 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5587 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5588 if test "${ac_cv_header_time+set}" = set; then
5589   echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591   cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5597 #include <sys/types.h>
5598 #include <sys/time.h>
5599 #include <time.h>
5600
5601 int
5602 main ()
5603 {
5604 if ((struct tm *) 0)
5605 return 0;
5606   ;
5607   return 0;
5608 }
5609 _ACEOF
5610 rm -f conftest.$ac_objext
5611 if { (ac_try="$ac_compile"
5612 case "(($ac_try" in
5613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614   *) ac_try_echo=$ac_try;;
5615 esac
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617   (eval "$ac_compile") 2>conftest.er1
5618   ac_status=$?
5619   grep -v '^ *+' conftest.er1 >conftest.err
5620   rm -f conftest.er1
5621   cat conftest.err >&5
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); } && {
5624          test -z "$ac_c_werror_flag" ||
5625          test ! -s conftest.err
5626        } && test -s conftest.$ac_objext; then
5627   ac_cv_header_time=yes
5628 else
5629   echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5631
5632         ac_cv_header_time=no
5633 fi
5634
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636 fi
5637 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5638 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5639 if test $ac_cv_header_time = yes; then
5640
5641 cat >>confdefs.h <<\_ACEOF
5642 #define TIME_WITH_SYS_TIME 1
5643 _ACEOF
5644
5645 fi
5646
5647
5648   { echo "$as_me:$LINENO: checking for uint16_t" >&5
5649 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
5650 if test "${ac_cv_c_uint16_t+set}" = set; then
5651   echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653   ac_cv_c_uint16_t=no
5654      for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
5655          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5656        cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h.  */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h.  */
5662 $ac_includes_default
5663 int
5664 main ()
5665 {
5666 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
5667 test_array [0] = 0
5668
5669   ;
5670   return 0;
5671 }
5672 _ACEOF
5673 rm -f conftest.$ac_objext
5674 if { (ac_try="$ac_compile"
5675 case "(($ac_try" in
5676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677   *) ac_try_echo=$ac_try;;
5678 esac
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680   (eval "$ac_compile") 2>conftest.er1
5681   ac_status=$?
5682   grep -v '^ *+' conftest.er1 >conftest.err
5683   rm -f conftest.er1
5684   cat conftest.err >&5
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); } && {
5687          test -z "$ac_c_werror_flag" ||
5688          test ! -s conftest.err
5689        } && test -s conftest.$ac_objext; then
5690   case $ac_type in
5691   uint16_t) ac_cv_c_uint16_t=yes ;;
5692   *) ac_cv_c_uint16_t=$ac_type ;;
5693 esac
5694
5695 else
5696   echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699
5700 fi
5701
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703        test "$ac_cv_c_uint16_t" != no && break
5704      done
5705 fi
5706 { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
5707 echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
5708   case $ac_cv_c_uint16_t in #(
5709   no|yes) ;; #(
5710   *)
5711
5712
5713 cat >>confdefs.h <<_ACEOF
5714 #define uint16_t $ac_cv_c_uint16_t
5715 _ACEOF
5716 ;;
5717   esac
5718
5719 { echo "$as_me:$LINENO: checking for working volatile" >&5
5720 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
5721 if test "${ac_cv_c_volatile+set}" = set; then
5722   echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724   cat >conftest.$ac_ext <<_ACEOF
5725 /* confdefs.h.  */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h.  */
5730
5731 int
5732 main ()
5733 {
5734
5735 volatile int x;
5736 int * volatile y = (int *) 0;
5737 return !x && !y;
5738   ;
5739   return 0;
5740 }
5741 _ACEOF
5742 rm -f conftest.$ac_objext
5743 if { (ac_try="$ac_compile"
5744 case "(($ac_try" in
5745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746   *) ac_try_echo=$ac_try;;
5747 esac
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749   (eval "$ac_compile") 2>conftest.er1
5750   ac_status=$?
5751   grep -v '^ *+' conftest.er1 >conftest.err
5752   rm -f conftest.er1
5753   cat conftest.err >&5
5754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755   (exit $ac_status); } && {
5756          test -z "$ac_c_werror_flag" ||
5757          test ! -s conftest.err
5758        } && test -s conftest.$ac_objext; then
5759   ac_cv_c_volatile=yes
5760 else
5761   echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764         ac_cv_c_volatile=no
5765 fi
5766
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 fi
5769 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5770 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
5771 if test $ac_cv_c_volatile = no; then
5772
5773 cat >>confdefs.h <<\_ACEOF
5774 #define volatile
5775 _ACEOF
5776
5777 fi
5778
5779
5780 # Checking for pthreads
5781 pthread_arg="not_available"
5782 { echo "$as_me:$LINENO: checking which argument is required to compile pthreads" >&5
5783 echo $ECHO_N "checking which argument is required to compile pthreads... $ECHO_C" >&6; }
5784
5785 pthread_header="#include<pthread.h>"
5786 pthread_body="pthread_create(0,0,0,0)"
5787 # Check if compile with no extra argument
5788 cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h.  */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h.  */
5794 $pthread_header
5795 int
5796 main ()
5797 {
5798 $pthread_body
5799   ;
5800   return 0;
5801 }
5802 _ACEOF
5803 rm -f conftest.$ac_objext conftest$ac_exeext
5804 if { (ac_try="$ac_link"
5805 case "(($ac_try" in
5806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807   *) ac_try_echo=$ac_try;;
5808 esac
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810   (eval "$ac_link") 2>conftest.er1
5811   ac_status=$?
5812   grep -v '^ *+' conftest.er1 >conftest.err
5813   rm -f conftest.er1
5814   cat conftest.err >&5
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); } && {
5817          test -z "$ac_c_werror_flag" ||
5818          test ! -s conftest.err
5819        } && test -s conftest$ac_exeext &&
5820        $as_test_x conftest$ac_exeext; then
5821   pthread_arg=""
5822 else
5823   echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826
5827 fi
5828
5829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5830       conftest$ac_exeext conftest.$ac_ext
5831
5832 if test x"$pthread_arg" = x"not_available"; then
5833   # At first, only -pthread was tested, but this is the place
5834   # to add extra pthread flags if someone can test them
5835   bkp_LDFLAGS="$LDFLAGS"
5836   for altheader in -pthread; do
5837     LDFLAGS="$bkp_LDFLAGS $altheader"
5838     cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h.  */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h.  */
5844 $pthread_header
5845 int
5846 main ()
5847 {
5848 $pthread_body
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (ac_try="$ac_link"
5855 case "(($ac_try" in
5856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857   *) ac_try_echo=$ac_try;;
5858 esac
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860   (eval "$ac_link") 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } && {
5867          test -z "$ac_c_werror_flag" ||
5868          test ! -s conftest.err
5869        } && test -s conftest$ac_exeext &&
5870        $as_test_x conftest$ac_exeext; then
5871   pthread_arg="$altheader"
5872 else
5873   echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5875
5876
5877 fi
5878
5879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5880       conftest$ac_exeext conftest.$ac_ext
5881     LDFLAGS="$bkp_LDFLAGS"
5882   done
5883 fi
5884
5885 if test x"$pthread_arg" = x"not_available"; then
5886    { { echo "$as_me:$LINENO: error: Cannot find a proper pthread library
5887 See \`config.log' for more details." >&5
5888 echo "$as_me: error: Cannot find a proper pthread library
5889 See \`config.log' for more details." >&2;}
5890    { (exit 1); exit 1; }; }
5891 else
5892    if test x"$pthread_arg" = x; then
5893      { echo "$as_me:$LINENO: result: none" >&5
5894 echo "${ECHO_T}none" >&6; }
5895    else
5896      { echo "$as_me:$LINENO: result: $pthread_arg" >&5
5897 echo "${ECHO_T}$pthread_arg" >&6; }
5898    fi
5899    LDFLAGS="$LDFLAGS $pthread_arg"
5900 fi
5901
5902 # Checks for library functions.
5903 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5904 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
5905 if test "${ac_cv_func_closedir_void+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   if test "$cross_compiling" = yes; then
5909   ac_cv_func_closedir_void=yes
5910 else
5911   cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h.  */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h.  */
5917 $ac_includes_default
5918 #include <$ac_header_dirent>
5919 #ifndef __cplusplus
5920 int closedir ();
5921 #endif
5922
5923 int
5924 main ()
5925 {
5926 return closedir (opendir (".")) != 0;
5927   ;
5928   return 0;
5929 }
5930 _ACEOF
5931 rm -f conftest$ac_exeext
5932 if { (ac_try="$ac_link"
5933 case "(($ac_try" in
5934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935   *) ac_try_echo=$ac_try;;
5936 esac
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938   (eval "$ac_link") 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5942   { (case "(($ac_try" in
5943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944   *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947   (eval "$ac_try") 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }; }; then
5951   ac_cv_func_closedir_void=no
5952 else
5953   echo "$as_me: program exited with status $ac_status" >&5
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5956
5957 ( exit $ac_status )
5958 ac_cv_func_closedir_void=yes
5959 fi
5960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5961 fi
5962
5963
5964 fi
5965 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5966 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
5967 if test $ac_cv_func_closedir_void = yes; then
5968
5969 cat >>confdefs.h <<\_ACEOF
5970 #define CLOSEDIR_VOID 1
5971 _ACEOF
5972
5973 fi
5974
5975 if test $ac_cv_c_compiler_gnu = yes; then
5976     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5977 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5978 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5979   echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981     ac_pattern="Autoconf.*'x'"
5982   cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h.  */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h.  */
5988 #include <sgtty.h>
5989 Autoconf TIOCGETP
5990 _ACEOF
5991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5992   $EGREP "$ac_pattern" >/dev/null 2>&1; then
5993   ac_cv_prog_gcc_traditional=yes
5994 else
5995   ac_cv_prog_gcc_traditional=no
5996 fi
5997 rm -f conftest*
5998
5999
6000   if test $ac_cv_prog_gcc_traditional = no; then
6001     cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h.  */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h.  */
6007 #include <termio.h>
6008 Autoconf TCGETA
6009 _ACEOF
6010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6011   $EGREP "$ac_pattern" >/dev/null 2>&1; then
6012   ac_cv_prog_gcc_traditional=yes
6013 fi
6014 rm -f conftest*
6015
6016   fi
6017 fi
6018 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6019 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
6020   if test $ac_cv_prog_gcc_traditional = yes; then
6021     CC="$CC -traditional"
6022   fi
6023 fi
6024
6025
6026
6027 for ac_header in sys/select.h sys/socket.h
6028 do
6029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6031   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 fi
6036 ac_res=`eval echo '${'$as_ac_Header'}'`
6037                { echo "$as_me:$LINENO: result: $ac_res" >&5
6038 echo "${ECHO_T}$ac_res" >&6; }
6039 else
6040   # Is the header compilable?
6041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h.  */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h.  */
6049 $ac_includes_default
6050 #include <$ac_header>
6051 _ACEOF
6052 rm -f conftest.$ac_objext
6053 if { (ac_try="$ac_compile"
6054 case "(($ac_try" in
6055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056   *) ac_try_echo=$ac_try;;
6057 esac
6058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6059   (eval "$ac_compile") 2>conftest.er1
6060   ac_status=$?
6061   grep -v '^ *+' conftest.er1 >conftest.err
6062   rm -f conftest.er1
6063   cat conftest.err >&5
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); } && {
6066          test -z "$ac_c_werror_flag" ||
6067          test ! -s conftest.err
6068        } && test -s conftest.$ac_objext; then
6069   ac_header_compiler=yes
6070 else
6071   echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074         ac_header_compiler=no
6075 fi
6076
6077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6079 echo "${ECHO_T}$ac_header_compiler" >&6; }
6080
6081 # Is the header present?
6082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h.  */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h.  */
6090 #include <$ac_header>
6091 _ACEOF
6092 if { (ac_try="$ac_cpp conftest.$ac_ext"
6093 case "(($ac_try" in
6094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095   *) ac_try_echo=$ac_try;;
6096 esac
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6099   ac_status=$?
6100   grep -v '^ *+' conftest.er1 >conftest.err
6101   rm -f conftest.er1
6102   cat conftest.err >&5
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } >/dev/null && {
6105          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6106          test ! -s conftest.err
6107        }; then
6108   ac_header_preproc=yes
6109 else
6110   echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6112
6113   ac_header_preproc=no
6114 fi
6115
6116 rm -f conftest.err conftest.$ac_ext
6117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6118 echo "${ECHO_T}$ac_header_preproc" >&6; }
6119
6120 # So?  What about this header?
6121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6122   yes:no: )
6123     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6127     ac_header_preproc=yes
6128     ;;
6129   no:yes:* )
6130     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6132     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6133 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6134     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6136     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6137 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6140     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6142     ( cat <<\_ASBOX
6143 ## ----------------------------------- ##
6144 ## Report this to opensource@gmail.com ##
6145 ## ----------------------------------- ##
6146 _ASBOX
6147      ) | sed "s/^/$as_me: WARNING:     /" >&2
6148     ;;
6149 esac
6150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6153   echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155   eval "$as_ac_Header=\$ac_header_preproc"
6156 fi
6157 ac_res=`eval echo '${'$as_ac_Header'}'`
6158                { echo "$as_me:$LINENO: result: $ac_res" >&5
6159 echo "${ECHO_T}$ac_res" >&6; }
6160
6161 fi
6162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6163   cat >>confdefs.h <<_ACEOF
6164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6165 _ACEOF
6166
6167 fi
6168
6169 done
6170
6171 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
6172 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
6173 if test "${ac_cv_func_select_args+set}" = set; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
6177  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
6178   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
6179    cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h.  */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h.  */
6185 $ac_includes_default
6186 #ifdef HAVE_SYS_SELECT_H
6187 # include <sys/select.h>
6188 #endif
6189 #ifdef HAVE_SYS_SOCKET_H
6190 # include <sys/socket.h>
6191 #endif
6192
6193 int
6194 main ()
6195 {
6196 extern int select ($ac_arg1,
6197                                             $ac_arg234, $ac_arg234, $ac_arg234,
6198                                             $ac_arg5);
6199   ;
6200   return 0;
6201 }
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6205 case "(($ac_try" in
6206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207   *) ac_try_echo=$ac_try;;
6208 esac
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210   (eval "$ac_compile") 2>conftest.er1
6211   ac_status=$?
6212   grep -v '^ *+' conftest.er1 >conftest.err
6213   rm -f conftest.er1
6214   cat conftest.err >&5
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); } && {
6217          test -z "$ac_c_werror_flag" ||
6218          test ! -s conftest.err
6219        } && test -s conftest.$ac_objext; then
6220   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6221 else
6222   echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225
6226 fi
6227
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229   done
6230  done
6231 done
6232 # Provide a safe default value.
6233 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
6234
6235 fi
6236 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
6237 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
6238 ac_save_IFS=$IFS; IFS=','
6239 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6240 IFS=$ac_save_IFS
6241 shift
6242
6243 cat >>confdefs.h <<_ACEOF
6244 #define SELECT_TYPE_ARG1 $1
6245 _ACEOF
6246
6247
6248 cat >>confdefs.h <<_ACEOF
6249 #define SELECT_TYPE_ARG234 ($2)
6250 _ACEOF
6251
6252
6253 cat >>confdefs.h <<_ACEOF
6254 #define SELECT_TYPE_ARG5 ($3)
6255 _ACEOF
6256
6257 rm -f conftest*
6258
6259 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6260 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6261 if test "${ac_cv_type_signal+set}" = set; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h.  */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h.  */
6270 #include <sys/types.h>
6271 #include <signal.h>
6272
6273 int
6274 main ()
6275 {
6276 return *(signal (0, 0)) (0) == 1;
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (ac_try="$ac_compile"
6283 case "(($ac_try" in
6284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285   *) ac_try_echo=$ac_try;;
6286 esac
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288   (eval "$ac_compile") 2>conftest.er1
6289   ac_status=$?
6290   grep -v '^ *+' conftest.er1 >conftest.err
6291   rm -f conftest.er1
6292   cat conftest.err >&5
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); } && {
6295          test -z "$ac_c_werror_flag" ||
6296          test ! -s conftest.err
6297        } && test -s conftest.$ac_objext; then
6298   ac_cv_type_signal=int
6299 else
6300   echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303         ac_cv_type_signal=void
6304 fi
6305
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 fi
6308 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6309 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6310
6311 cat >>confdefs.h <<_ACEOF
6312 #define RETSIGTYPE $ac_cv_type_signal
6313 _ACEOF
6314
6315
6316 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6317 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
6318 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6319   echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321   cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h.  */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h.  */
6327 $ac_includes_default
6328 int
6329 main ()
6330 {
6331 #ifndef strerror_r
6332   (void) strerror_r;
6333 #endif
6334
6335   ;
6336   return 0;
6337 }
6338 _ACEOF
6339 rm -f conftest.$ac_objext
6340 if { (ac_try="$ac_compile"
6341 case "(($ac_try" in
6342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343   *) ac_try_echo=$ac_try;;
6344 esac
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346   (eval "$ac_compile") 2>conftest.er1
6347   ac_status=$?
6348   grep -v '^ *+' conftest.er1 >conftest.err
6349   rm -f conftest.er1
6350   cat conftest.err >&5
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); } && {
6353          test -z "$ac_c_werror_flag" ||
6354          test ! -s conftest.err
6355        } && test -s conftest.$ac_objext; then
6356   ac_cv_have_decl_strerror_r=yes
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361         ac_cv_have_decl_strerror_r=no
6362 fi
6363
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 fi
6366 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6367 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
6368 if test $ac_cv_have_decl_strerror_r = yes; then
6369
6370 cat >>confdefs.h <<_ACEOF
6371 #define HAVE_DECL_STRERROR_R 1
6372 _ACEOF
6373
6374
6375 else
6376   cat >>confdefs.h <<_ACEOF
6377 #define HAVE_DECL_STRERROR_R 0
6378 _ACEOF
6379
6380
6381 fi
6382
6383
6384
6385 for ac_func in strerror_r
6386 do
6387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6391   echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393   cat >conftest.$ac_ext <<_ACEOF
6394 /* confdefs.h.  */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h.  */
6399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6401 #define $ac_func innocuous_$ac_func
6402
6403 /* System header to define __stub macros and hopefully few prototypes,
6404     which can conflict with char $ac_func (); below.
6405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6406     <limits.h> exists even on freestanding compilers.  */
6407
6408 #ifdef __STDC__
6409 # include <limits.h>
6410 #else
6411 # include <assert.h>
6412 #endif
6413
6414 #undef $ac_func
6415
6416 /* Override any GCC internal prototype to avoid an error.
6417    Use char because int might match the return type of a GCC
6418    builtin and then its argument prototype would still apply.  */
6419 #ifdef __cplusplus
6420 extern "C"
6421 #endif
6422 char $ac_func ();
6423 /* The GNU C library defines this for functions which it implements
6424     to always fail with ENOSYS.  Some functions are actually named
6425     something starting with __ and the normal name is an alias.  */
6426 #if defined __stub_$ac_func || defined __stub___$ac_func
6427 choke me
6428 #endif
6429
6430 int
6431 main ()
6432 {
6433 return $ac_func ();
6434   ;
6435   return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (ac_try="$ac_link"
6440 case "(($ac_try" in
6441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442   *) ac_try_echo=$ac_try;;
6443 esac
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445   (eval "$ac_link") 2>conftest.er1
6446   ac_status=$?
6447   grep -v '^ *+' conftest.er1 >conftest.err
6448   rm -f conftest.er1
6449   cat conftest.err >&5
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); } && {
6452          test -z "$ac_c_werror_flag" ||
6453          test ! -s conftest.err
6454        } && test -s conftest$ac_exeext &&
6455        $as_test_x conftest$ac_exeext; then
6456   eval "$as_ac_var=yes"
6457 else
6458   echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6460
6461         eval "$as_ac_var=no"
6462 fi
6463
6464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6465       conftest$ac_exeext conftest.$ac_ext
6466 fi
6467 ac_res=`eval echo '${'$as_ac_var'}'`
6468                { echo "$as_me:$LINENO: result: $ac_res" >&5
6469 echo "${ECHO_T}$ac_res" >&6; }
6470 if test `eval echo '${'$as_ac_var'}'` = yes; then
6471   cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6473 _ACEOF
6474
6475 fi
6476 done
6477
6478 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
6479 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
6480 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483
6484     ac_cv_func_strerror_r_char_p=no
6485     if test $ac_cv_have_decl_strerror_r = yes; then
6486       cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h.  */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h.  */
6492 $ac_includes_default
6493 int
6494 main ()
6495 {
6496
6497           char buf[100];
6498           char x = *strerror_r (0, buf, sizeof buf);
6499           char *p = strerror_r (0, buf, sizeof buf);
6500           return !p || x;
6501
6502   ;
6503   return 0;
6504 }
6505 _ACEOF
6506 rm -f conftest.$ac_objext
6507 if { (ac_try="$ac_compile"
6508 case "(($ac_try" in
6509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510   *) ac_try_echo=$ac_try;;
6511 esac
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513   (eval "$ac_compile") 2>conftest.er1
6514   ac_status=$?
6515   grep -v '^ *+' conftest.er1 >conftest.err
6516   rm -f conftest.er1
6517   cat conftest.err >&5
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); } && {
6520          test -z "$ac_c_werror_flag" ||
6521          test ! -s conftest.err
6522        } && test -s conftest.$ac_objext; then
6523   ac_cv_func_strerror_r_char_p=yes
6524 else
6525   echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6527
6528
6529 fi
6530
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532     else
6533       # strerror_r is not declared.  Choose between
6534       # systems that have relatively inaccessible declarations for the
6535       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
6536       # former has a strerror_r that returns char*, while the latter
6537       # has a strerror_r that returns `int'.
6538       # This test should segfault on the DEC system.
6539       if test "$cross_compiling" = yes; then
6540   :
6541 else
6542   cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h.  */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h.  */
6548 $ac_includes_default
6549         extern char *strerror_r ();
6550 int
6551 main ()
6552 {
6553 char buf[100];
6554           char x = *strerror_r (0, buf, sizeof buf);
6555           return ! isalpha (x);
6556   ;
6557   return 0;
6558 }
6559 _ACEOF
6560 rm -f conftest$ac_exeext
6561 if { (ac_try="$ac_link"
6562 case "(($ac_try" in
6563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564   *) ac_try_echo=$ac_try;;
6565 esac
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567   (eval "$ac_link") 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6571   { (case "(($ac_try" in
6572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573   *) ac_try_echo=$ac_try;;
6574 esac
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576   (eval "$ac_try") 2>&5
6577   ac_status=$?
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); }; }; then
6580   ac_cv_func_strerror_r_char_p=yes
6581 else
6582   echo "$as_me: program exited with status $ac_status" >&5
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6585
6586 fi
6587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6588 fi
6589
6590
6591     fi
6592
6593 fi
6594 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
6595 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
6596 if test $ac_cv_func_strerror_r_char_p = yes; then
6597
6598 cat >>confdefs.h <<\_ACEOF
6599 #define STRERROR_R_CHAR_P 1
6600 _ACEOF
6601
6602 fi
6603
6604
6605 for ac_func in vprintf
6606 do
6607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6611   echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613   cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h.  */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h.  */
6619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6621 #define $ac_func innocuous_$ac_func
6622
6623 /* System header to define __stub macros and hopefully few prototypes,
6624     which can conflict with char $ac_func (); below.
6625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6626     <limits.h> exists even on freestanding compilers.  */
6627
6628 #ifdef __STDC__
6629 # include <limits.h>
6630 #else
6631 # include <assert.h>
6632 #endif
6633
6634 #undef $ac_func
6635
6636 /* Override any GCC internal prototype to avoid an error.
6637    Use char because int might match the return type of a GCC
6638    builtin and then its argument prototype would still apply.  */
6639 #ifdef __cplusplus
6640 extern "C"
6641 #endif
6642 char $ac_func ();
6643 /* The GNU C library defines this for functions which it implements
6644     to always fail with ENOSYS.  Some functions are actually named
6645     something starting with __ and the normal name is an alias.  */
6646 #if defined __stub_$ac_func || defined __stub___$ac_func
6647 choke me
6648 #endif
6649
6650 int
6651 main ()
6652 {
6653 return $ac_func ();
6654   ;
6655   return 0;
6656 }
6657 _ACEOF
6658 rm -f conftest.$ac_objext conftest$ac_exeext
6659 if { (ac_try="$ac_link"
6660 case "(($ac_try" in
6661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662   *) ac_try_echo=$ac_try;;
6663 esac
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665   (eval "$ac_link") 2>conftest.er1
6666   ac_status=$?
6667   grep -v '^ *+' conftest.er1 >conftest.err
6668   rm -f conftest.er1
6669   cat conftest.err >&5
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); } && {
6672          test -z "$ac_c_werror_flag" ||
6673          test ! -s conftest.err
6674        } && test -s conftest$ac_exeext &&
6675        $as_test_x conftest$ac_exeext; then
6676   eval "$as_ac_var=yes"
6677 else
6678   echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6680
6681         eval "$as_ac_var=no"
6682 fi
6683
6684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6685       conftest$ac_exeext conftest.$ac_ext
6686 fi
6687 ac_res=`eval echo '${'$as_ac_var'}'`
6688                { echo "$as_me:$LINENO: result: $ac_res" >&5
6689 echo "${ECHO_T}$ac_res" >&6; }
6690 if test `eval echo '${'$as_ac_var'}'` = yes; then
6691   cat >>confdefs.h <<_ACEOF
6692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6693 _ACEOF
6694
6695 { echo "$as_me:$LINENO: checking for _doprnt" >&5
6696 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
6697 if test "${ac_cv_func__doprnt+set}" = set; then
6698   echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700   cat >conftest.$ac_ext <<_ACEOF
6701 /* confdefs.h.  */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h.  */
6706 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
6707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6708 #define _doprnt innocuous__doprnt
6709
6710 /* System header to define __stub macros and hopefully few prototypes,
6711     which can conflict with char _doprnt (); below.
6712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6713     <limits.h> exists even on freestanding compilers.  */
6714
6715 #ifdef __STDC__
6716 # include <limits.h>
6717 #else
6718 # include <assert.h>
6719 #endif
6720
6721 #undef _doprnt
6722
6723 /* Override any GCC internal prototype to avoid an error.
6724    Use char because int might match the return type of a GCC
6725    builtin and then its argument prototype would still apply.  */
6726 #ifdef __cplusplus
6727 extern "C"
6728 #endif
6729 char _doprnt ();
6730 /* The GNU C library defines this for functions which it implements
6731     to always fail with ENOSYS.  Some functions are actually named
6732     something starting with __ and the normal name is an alias.  */
6733 #if defined __stub__doprnt || defined __stub____doprnt
6734 choke me
6735 #endif
6736
6737 int
6738 main ()
6739 {
6740 return _doprnt ();
6741   ;
6742   return 0;
6743 }
6744 _ACEOF
6745 rm -f conftest.$ac_objext conftest$ac_exeext
6746 if { (ac_try="$ac_link"
6747 case "(($ac_try" in
6748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749   *) ac_try_echo=$ac_try;;
6750 esac
6751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6752   (eval "$ac_link") 2>conftest.er1
6753   ac_status=$?
6754   grep -v '^ *+' conftest.er1 >conftest.err
6755   rm -f conftest.er1
6756   cat conftest.err >&5
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); } && {
6759          test -z "$ac_c_werror_flag" ||
6760          test ! -s conftest.err
6761        } && test -s conftest$ac_exeext &&
6762        $as_test_x conftest$ac_exeext; then
6763   ac_cv_func__doprnt=yes
6764 else
6765   echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6767
6768         ac_cv_func__doprnt=no
6769 fi
6770
6771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6772       conftest$ac_exeext conftest.$ac_ext
6773 fi
6774 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6775 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
6776 if test $ac_cv_func__doprnt = yes; then
6777
6778 cat >>confdefs.h <<\_ACEOF
6779 #define HAVE_DOPRNT 1
6780 _ACEOF
6781
6782 fi
6783
6784 fi
6785 done
6786
6787
6788
6789
6790
6791
6792
6793
6794 for ac_func in gettimeofday memset select socket strtol strtoull
6795 do
6796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6800   echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802   cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h.  */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h.  */
6808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6810 #define $ac_func innocuous_$ac_func
6811
6812 /* System header to define __stub macros and hopefully few prototypes,
6813     which can conflict with char $ac_func (); below.
6814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6815     <limits.h> exists even on freestanding compilers.  */
6816
6817 #ifdef __STDC__
6818 # include <limits.h>
6819 #else
6820 # include <assert.h>
6821 #endif
6822
6823 #undef $ac_func
6824
6825 /* Override any GCC internal prototype to avoid an error.
6826    Use char because int might match the return type of a GCC
6827    builtin and then its argument prototype would still apply.  */
6828 #ifdef __cplusplus
6829 extern "C"
6830 #endif
6831 char $ac_func ();
6832 /* The GNU C library defines this for functions which it implements
6833     to always fail with ENOSYS.  Some functions are actually named
6834     something starting with __ and the normal name is an alias.  */
6835 #if defined __stub_$ac_func || defined __stub___$ac_func
6836 choke me
6837 #endif
6838
6839 int
6840 main ()
6841 {
6842 return $ac_func ();
6843   ;
6844   return 0;
6845 }
6846 _ACEOF
6847 rm -f conftest.$ac_objext conftest$ac_exeext
6848 if { (ac_try="$ac_link"
6849 case "(($ac_try" in
6850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851   *) ac_try_echo=$ac_try;;
6852 esac
6853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6854   (eval "$ac_link") 2>conftest.er1
6855   ac_status=$?
6856   grep -v '^ *+' conftest.er1 >conftest.err
6857   rm -f conftest.er1
6858   cat conftest.err >&5
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); } && {
6861          test -z "$ac_c_werror_flag" ||
6862          test ! -s conftest.err
6863        } && test -s conftest$ac_exeext &&
6864        $as_test_x conftest$ac_exeext; then
6865   eval "$as_ac_var=yes"
6866 else
6867   echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6869
6870         eval "$as_ac_var=no"
6871 fi
6872
6873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6874       conftest$ac_exeext conftest.$ac_ext
6875 fi
6876 ac_res=`eval echo '${'$as_ac_var'}'`
6877                { echo "$as_me:$LINENO: result: $ac_res" >&5
6878 echo "${ECHO_T}$ac_res" >&6; }
6879 if test `eval echo '${'$as_ac_var'}'` = yes; then
6880   cat >>confdefs.h <<_ACEOF
6881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6882 _ACEOF
6883
6884 fi
6885 done
6886
6887
6888 ac_config_files="$ac_config_files Makefile src/Makefile"
6889
6890 cat >confcache <<\_ACEOF
6891 # This file is a shell script that caches the results of configure
6892 # tests run on this system so they can be shared between configure
6893 # scripts and configure runs, see configure's option --config-cache.
6894 # It is not useful on other systems.  If it contains results you don't
6895 # want to keep, you may remove or edit it.
6896 #
6897 # config.status only pays attention to the cache file if you give it
6898 # the --recheck option to rerun configure.
6899 #
6900 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6901 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6902 # following values.
6903
6904 _ACEOF
6905
6906 # The following way of writing the cache mishandles newlines in values,
6907 # but we know of no workaround that is simple, portable, and efficient.
6908 # So, we kill variables containing newlines.
6909 # Ultrix sh set writes to stderr and can't be redirected directly,
6910 # and sets the high bit in the cache file unless we assign to the vars.
6911 (
6912   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6913     eval ac_val=\$$ac_var
6914     case $ac_val in #(
6915     *${as_nl}*)
6916       case $ac_var in #(
6917       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6918 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6919       esac
6920       case $ac_var in #(
6921       _ | IFS | as_nl) ;; #(
6922       *) $as_unset $ac_var ;;
6923       esac ;;
6924     esac
6925   done
6926
6927   (set) 2>&1 |
6928     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6929     *${as_nl}ac_space=\ *)
6930       # `set' does not quote correctly, so add quotes (double-quote
6931       # substitution turns \\\\ into \\, and sed turns \\ into \).
6932       sed -n \
6933         "s/'/'\\\\''/g;
6934           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6935       ;; #(
6936     *)
6937       # `set' quotes correctly as required by POSIX, so do not add quotes.
6938       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6939       ;;
6940     esac |
6941     sort
6942 ) |
6943   sed '
6944      /^ac_cv_env_/b end
6945      t clear
6946      :clear
6947      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6948      t end
6949      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6950      :end' >>confcache
6951 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6952   if test -w "$cache_file"; then
6953     test "x$cache_file" != "x/dev/null" &&
6954       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6955 echo "$as_me: updating cache $cache_file" >&6;}
6956     cat confcache >$cache_file
6957   else
6958     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6959 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6960   fi
6961 fi
6962 rm -f confcache
6963
6964 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6965 # Let make expand exec_prefix.
6966 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6967
6968 DEFS=-DHAVE_CONFIG_H
6969
6970 ac_libobjs=
6971 ac_ltlibobjs=
6972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6973   # 1. Remove the extension, and $U if already installed.
6974   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6975   ac_i=`echo "$ac_i" | sed "$ac_script"`
6976   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6977   #    will be set to the directory where LIBOBJS objects are built.
6978   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6979   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6980 done
6981 LIBOBJS=$ac_libobjs
6982
6983 LTLIBOBJS=$ac_ltlibobjs
6984
6985
6986 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6987   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6988 Usually this means the macro was only invoked conditionally." >&5
6989 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6990 Usually this means the macro was only invoked conditionally." >&2;}
6991    { (exit 1); exit 1; }; }
6992 fi
6993 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6994   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6995 Usually this means the macro was only invoked conditionally." >&5
6996 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6997 Usually this means the macro was only invoked conditionally." >&2;}
6998    { (exit 1); exit 1; }; }
6999 fi
7000 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7001   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7002 Usually this means the macro was only invoked conditionally." >&5
7003 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7004 Usually this means the macro was only invoked conditionally." >&2;}
7005    { (exit 1); exit 1; }; }
7006 fi
7007
7008 : ${CONFIG_STATUS=./config.status}
7009 ac_clean_files_save=$ac_clean_files
7010 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7011 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7012 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7013 cat >$CONFIG_STATUS <<_ACEOF
7014 #! $SHELL
7015 # Generated by $as_me.
7016 # Run this file to recreate the current configuration.
7017 # Compiler output produced by configure, useful for debugging
7018 # configure, is in config.log if it exists.
7019
7020 debug=false
7021 ac_cs_recheck=false
7022 ac_cs_silent=false
7023 SHELL=\${CONFIG_SHELL-$SHELL}
7024 _ACEOF
7025
7026 cat >>$CONFIG_STATUS <<\_ACEOF
7027 ## --------------------- ##
7028 ## M4sh Initialization.  ##
7029 ## --------------------- ##
7030
7031 # Be more Bourne compatible
7032 DUALCASE=1; export DUALCASE # for MKS sh
7033 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7034   emulate sh
7035   NULLCMD=:
7036   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7037   # is contrary to our usage.  Disable this feature.
7038   alias -g '${1+"$@"}'='"$@"'
7039   setopt NO_GLOB_SUBST
7040 else
7041   case `(set -o) 2>/dev/null` in
7042   *posix*) set -o posix ;;
7043 esac
7044
7045 fi
7046
7047
7048
7049
7050 # PATH needs CR
7051 # Avoid depending upon Character Ranges.
7052 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7053 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7054 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7055 as_cr_digits='0123456789'
7056 as_cr_alnum=$as_cr_Letters$as_cr_digits
7057
7058 # The user is always right.
7059 if test "${PATH_SEPARATOR+set}" != set; then
7060   echo "#! /bin/sh" >conf$$.sh
7061   echo  "exit 0"   >>conf$$.sh
7062   chmod +x conf$$.sh
7063   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7064     PATH_SEPARATOR=';'
7065   else
7066     PATH_SEPARATOR=:
7067   fi
7068   rm -f conf$$.sh
7069 fi
7070
7071 # Support unset when possible.
7072 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7073   as_unset=unset
7074 else
7075   as_unset=false
7076 fi
7077
7078
7079 # IFS
7080 # We need space, tab and new line, in precisely that order.  Quoting is
7081 # there to prevent editors from complaining about space-tab.
7082 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7083 # splitting by setting IFS to empty value.)
7084 as_nl='
7085 '
7086 IFS=" ""        $as_nl"
7087
7088 # Find who we are.  Look in the path if we contain no directory separator.
7089 case $0 in
7090   *[\\/]* ) as_myself=$0 ;;
7091   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094   IFS=$as_save_IFS
7095   test -z "$as_dir" && as_dir=.
7096   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7097 done
7098 IFS=$as_save_IFS
7099
7100      ;;
7101 esac
7102 # We did not find ourselves, most probably we were run as `sh COMMAND'
7103 # in which case we are not to be found in the path.
7104 if test "x$as_myself" = x; then
7105   as_myself=$0
7106 fi
7107 if test ! -f "$as_myself"; then
7108   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7109   { (exit 1); exit 1; }
7110 fi
7111
7112 # Work around bugs in pre-3.0 UWIN ksh.
7113 for as_var in ENV MAIL MAILPATH
7114 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7115 done
7116 PS1='$ '
7117 PS2='> '
7118 PS4='+ '
7119
7120 # NLS nuisances.
7121 for as_var in \
7122   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7123   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7124   LC_TELEPHONE LC_TIME
7125 do
7126   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7127     eval $as_var=C; export $as_var
7128   else
7129     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7130   fi
7131 done
7132
7133 # Required to use basename.
7134 if expr a : '\(a\)' >/dev/null 2>&1 &&
7135    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7136   as_expr=expr
7137 else
7138   as_expr=false
7139 fi
7140
7141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7142   as_basename=basename
7143 else
7144   as_basename=false
7145 fi
7146
7147
7148 # Name of the executable.
7149 as_me=`$as_basename -- "$0" ||
7150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7151          X"$0" : 'X\(//\)$' \| \
7152          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7153 echo X/"$0" |
7154     sed '/^.*\/\([^/][^/]*\)\/*$/{
7155             s//\1/
7156             q
7157           }
7158           /^X\/\(\/\/\)$/{
7159             s//\1/
7160             q
7161           }
7162           /^X\/\(\/\).*/{
7163             s//\1/
7164             q
7165           }
7166           s/.*/./; q'`
7167
7168 # CDPATH.
7169 $as_unset CDPATH
7170
7171
7172
7173   as_lineno_1=$LINENO
7174   as_lineno_2=$LINENO
7175   test "x$as_lineno_1" != "x$as_lineno_2" &&
7176   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7177
7178   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7179   # uniformly replaced by the line number.  The first 'sed' inserts a
7180   # line-number line after each line using $LINENO; the second 'sed'
7181   # does the real work.  The second script uses 'N' to pair each
7182   # line-number line with the line containing $LINENO, and appends
7183   # trailing '-' during substitution so that $LINENO is not a special
7184   # case at line end.
7185   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7186   # scripts with optimization help from Paolo Bonzini.  Blame Lee
7187   # E. McMahon (1931-1989) for sed's syntax.  :-)
7188   sed -n '
7189     p
7190     /[$]LINENO/=
7191   ' <$as_myself |
7192     sed '
7193       s/[$]LINENO.*/&-/
7194       t lineno
7195       b
7196       :lineno
7197       N
7198       :loop
7199       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7200       t loop
7201       s/-\n.*//
7202     ' >$as_me.lineno &&
7203   chmod +x "$as_me.lineno" ||
7204     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7205    { (exit 1); exit 1; }; }
7206
7207   # Don't try to exec as it changes $[0], causing all sort of problems
7208   # (the dirname of $[0] is not the place where we might find the
7209   # original and so on.  Autoconf is especially sensitive to this).
7210   . "./$as_me.lineno"
7211   # Exit status is that of the last command.
7212   exit
7213 }
7214
7215
7216 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7217   as_dirname=dirname
7218 else
7219   as_dirname=false
7220 fi
7221
7222 ECHO_C= ECHO_N= ECHO_T=
7223 case `echo -n x` in
7224 -n*)
7225   case `echo 'x\c'` in
7226   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7227   *)   ECHO_C='\c';;
7228   esac;;
7229 *)
7230   ECHO_N='-n';;
7231 esac
7232
7233 if expr a : '\(a\)' >/dev/null 2>&1 &&
7234    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7235   as_expr=expr
7236 else
7237   as_expr=false
7238 fi
7239
7240 rm -f conf$$ conf$$.exe conf$$.file
7241 if test -d conf$$.dir; then
7242   rm -f conf$$.dir/conf$$.file
7243 else
7244   rm -f conf$$.dir
7245   mkdir conf$$.dir
7246 fi
7247 echo >conf$$.file
7248 if ln -s conf$$.file conf$$ 2>/dev/null; then
7249   as_ln_s='ln -s'
7250   # ... but there are two gotchas:
7251   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7252   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7253   # In both cases, we have to default to `cp -p'.
7254   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7255     as_ln_s='cp -p'
7256 elif ln conf$$.file conf$$ 2>/dev/null; then
7257   as_ln_s=ln
7258 else
7259   as_ln_s='cp -p'
7260 fi
7261 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7262 rmdir conf$$.dir 2>/dev/null
7263
7264 if mkdir -p . 2>/dev/null; then
7265   as_mkdir_p=:
7266 else
7267   test -d ./-p && rmdir ./-p
7268   as_mkdir_p=false
7269 fi
7270
7271 if test -x / >/dev/null 2>&1; then
7272   as_test_x='test -x'
7273 else
7274   if ls -dL / >/dev/null 2>&1; then
7275     as_ls_L_option=L
7276   else
7277     as_ls_L_option=
7278   fi
7279   as_test_x='
7280     eval sh -c '\''
7281       if test -d "$1"; then
7282         test -d "$1/.";
7283       else
7284         case $1 in
7285         -*)set "./$1";;
7286         esac;
7287         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7288         ???[sx]*):;;*)false;;esac;fi
7289     '\'' sh
7290   '
7291 fi
7292 as_executable_p=$as_test_x
7293
7294 # Sed expression to map a string onto a valid CPP name.
7295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7296
7297 # Sed expression to map a string onto a valid variable name.
7298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7299
7300
7301 exec 6>&1
7302
7303 # Save the log message, to keep $[0] and so on meaningful, and to
7304 # report actual input values of CONFIG_FILES etc. instead of their
7305 # values after options handling.
7306 ac_log="
7307 This file was extended by stressapptest $as_me 1.0.0_autoconf, which was
7308 generated by GNU Autoconf 2.61.  Invocation command line was
7309
7310   CONFIG_FILES    = $CONFIG_FILES
7311   CONFIG_HEADERS  = $CONFIG_HEADERS
7312   CONFIG_LINKS    = $CONFIG_LINKS
7313   CONFIG_COMMANDS = $CONFIG_COMMANDS
7314   $ $0 $@
7315
7316 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7317 "
7318
7319 _ACEOF
7320
7321 cat >>$CONFIG_STATUS <<_ACEOF
7322 # Files that config.status was made for.
7323 config_files="$ac_config_files"
7324 config_headers="$ac_config_headers"
7325 config_commands="$ac_config_commands"
7326
7327 _ACEOF
7328
7329 cat >>$CONFIG_STATUS <<\_ACEOF
7330 ac_cs_usage="\
7331 \`$as_me' instantiates files from templates according to the
7332 current configuration.
7333
7334 Usage: $0 [OPTIONS] [FILE]...
7335
7336   -h, --help       print this help, then exit
7337   -V, --version    print version number and configuration settings, then exit
7338   -q, --quiet      do not print progress messages
7339   -d, --debug      don't remove temporary files
7340       --recheck    update $as_me by reconfiguring in the same conditions
7341   --file=FILE[:TEMPLATE]
7342                    instantiate the configuration file FILE
7343   --header=FILE[:TEMPLATE]
7344                    instantiate the configuration header FILE
7345
7346 Configuration files:
7347 $config_files
7348
7349 Configuration headers:
7350 $config_headers
7351
7352 Configuration commands:
7353 $config_commands
7354
7355 Report bugs to <bug-autoconf@gnu.org>."
7356
7357 _ACEOF
7358 cat >>$CONFIG_STATUS <<_ACEOF
7359 ac_cs_version="\\
7360 stressapptest config.status 1.0.0_autoconf
7361 configured by $0, generated by GNU Autoconf 2.61,
7362   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7363
7364 Copyright (C) 2006 Free Software Foundation, Inc.
7365 This config.status script is free software; the Free Software Foundation
7366 gives unlimited permission to copy, distribute and modify it."
7367
7368 ac_pwd='$ac_pwd'
7369 srcdir='$srcdir'
7370 INSTALL='$INSTALL'
7371 MKDIR_P='$MKDIR_P'
7372 _ACEOF
7373
7374 cat >>$CONFIG_STATUS <<\_ACEOF
7375 # If no file are specified by the user, then we need to provide default
7376 # value.  By we need to know if files were specified by the user.
7377 ac_need_defaults=:
7378 while test $# != 0
7379 do
7380   case $1 in
7381   --*=*)
7382     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7383     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7384     ac_shift=:
7385     ;;
7386   *)
7387     ac_option=$1
7388     ac_optarg=$2
7389     ac_shift=shift
7390     ;;
7391   esac
7392
7393   case $ac_option in
7394   # Handling of the options.
7395   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7396     ac_cs_recheck=: ;;
7397   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7398     echo "$ac_cs_version"; exit ;;
7399   --debug | --debu | --deb | --de | --d | -d )
7400     debug=: ;;
7401   --file | --fil | --fi | --f )
7402     $ac_shift
7403     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7404     ac_need_defaults=false;;
7405   --header | --heade | --head | --hea )
7406     $ac_shift
7407     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7408     ac_need_defaults=false;;
7409   --he | --h)
7410     # Conflict between --help and --header
7411     { echo "$as_me: error: ambiguous option: $1
7412 Try \`$0 --help' for more information." >&2
7413    { (exit 1); exit 1; }; };;
7414   --help | --hel | -h )
7415     echo "$ac_cs_usage"; exit ;;
7416   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7417   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7418     ac_cs_silent=: ;;
7419
7420   # This is an error.
7421   -*) { echo "$as_me: error: unrecognized option: $1
7422 Try \`$0 --help' for more information." >&2
7423    { (exit 1); exit 1; }; } ;;
7424
7425   *) ac_config_targets="$ac_config_targets $1"
7426      ac_need_defaults=false ;;
7427
7428   esac
7429   shift
7430 done
7431
7432 ac_configure_extra_args=
7433
7434 if $ac_cs_silent; then
7435   exec 6>/dev/null
7436   ac_configure_extra_args="$ac_configure_extra_args --silent"
7437 fi
7438
7439 _ACEOF
7440 cat >>$CONFIG_STATUS <<_ACEOF
7441 if \$ac_cs_recheck; then
7442   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7443   CONFIG_SHELL=$SHELL
7444   export CONFIG_SHELL
7445   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7446 fi
7447
7448 _ACEOF
7449 cat >>$CONFIG_STATUS <<\_ACEOF
7450 exec 5>>config.log
7451 {
7452   echo
7453   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7454 ## Running $as_me. ##
7455 _ASBOX
7456   echo "$ac_log"
7457 } >&5
7458
7459 _ACEOF
7460 cat >>$CONFIG_STATUS <<_ACEOF
7461 #
7462 # INIT-COMMANDS
7463 #
7464 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7465
7466 _ACEOF
7467
7468 cat >>$CONFIG_STATUS <<\_ACEOF
7469
7470 # Handling of arguments.
7471 for ac_config_target in $ac_config_targets
7472 do
7473   case $ac_config_target in
7474     "src/stressapptest_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/stressapptest_config.h" ;;
7475     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7476     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7477     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7478
7479   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7480 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7481    { (exit 1); exit 1; }; };;
7482   esac
7483 done
7484
7485
7486 # If the user did not use the arguments to specify the items to instantiate,
7487 # then the envvar interface is used.  Set only those that are not.
7488 # We use the long form for the default assignment because of an extremely
7489 # bizarre bug on SunOS 4.1.3.
7490 if $ac_need_defaults; then
7491   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7492   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7493   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7494 fi
7495
7496 # Have a temporary directory for convenience.  Make it in the build tree
7497 # simply because there is no reason against having it here, and in addition,
7498 # creating and moving files from /tmp can sometimes cause problems.
7499 # Hook for its removal unless debugging.
7500 # Note that there is a small window in which the directory will not be cleaned:
7501 # after its creation but before its name has been assigned to `$tmp'.
7502 $debug ||
7503 {
7504   tmp=
7505   trap 'exit_status=$?
7506   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7507 ' 0
7508   trap '{ (exit 1); exit 1; }' 1 2 13 15
7509 }
7510 # Create a (secure) tmp directory for tmp files.
7511
7512 {
7513   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7514   test -n "$tmp" && test -d "$tmp"
7515 }  ||
7516 {
7517   tmp=./conf$$-$RANDOM
7518   (umask 077 && mkdir "$tmp")
7519 } ||
7520 {
7521    echo "$me: cannot create a temporary directory in ." >&2
7522    { (exit 1); exit 1; }
7523 }
7524
7525 #
7526 # Set up the sed scripts for CONFIG_FILES section.
7527 #
7528
7529 # No need to generate the scripts if there are no CONFIG_FILES.
7530 # This happens for instance when ./config.status config.h
7531 if test -n "$CONFIG_FILES"; then
7532
7533 _ACEOF
7534
7535
7536
7537 ac_delim='%!_!# '
7538 for ac_last_try in false false false false false :; do
7539   cat >conf$$subs.sed <<_ACEOF
7540 SHELL!$SHELL$ac_delim
7541 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7542 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7543 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7544 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7545 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7546 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7547 exec_prefix!$exec_prefix$ac_delim
7548 prefix!$prefix$ac_delim
7549 program_transform_name!$program_transform_name$ac_delim
7550 bindir!$bindir$ac_delim
7551 sbindir!$sbindir$ac_delim
7552 libexecdir!$libexecdir$ac_delim
7553 datarootdir!$datarootdir$ac_delim
7554 datadir!$datadir$ac_delim
7555 sysconfdir!$sysconfdir$ac_delim
7556 sharedstatedir!$sharedstatedir$ac_delim
7557 localstatedir!$localstatedir$ac_delim
7558 includedir!$includedir$ac_delim
7559 oldincludedir!$oldincludedir$ac_delim
7560 docdir!$docdir$ac_delim
7561 infodir!$infodir$ac_delim
7562 htmldir!$htmldir$ac_delim
7563 dvidir!$dvidir$ac_delim
7564 pdfdir!$pdfdir$ac_delim
7565 psdir!$psdir$ac_delim
7566 libdir!$libdir$ac_delim
7567 localedir!$localedir$ac_delim
7568 mandir!$mandir$ac_delim
7569 DEFS!$DEFS$ac_delim
7570 ECHO_C!$ECHO_C$ac_delim
7571 ECHO_N!$ECHO_N$ac_delim
7572 ECHO_T!$ECHO_T$ac_delim
7573 LIBS!$LIBS$ac_delim
7574 build_alias!$build_alias$ac_delim
7575 host_alias!$host_alias$ac_delim
7576 target_alias!$target_alias$ac_delim
7577 build!$build$ac_delim
7578 build_cpu!$build_cpu$ac_delim
7579 build_vendor!$build_vendor$ac_delim
7580 build_os!$build_os$ac_delim
7581 host!$host$ac_delim
7582 host_cpu!$host_cpu$ac_delim
7583 host_vendor!$host_vendor$ac_delim
7584 host_os!$host_os$ac_delim
7585 target!$target$ac_delim
7586 target_cpu!$target_cpu$ac_delim
7587 target_vendor!$target_vendor$ac_delim
7588 target_os!$target_os$ac_delim
7589 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7590 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7591 INSTALL_DATA!$INSTALL_DATA$ac_delim
7592 am__isrc!$am__isrc$ac_delim
7593 CYGPATH_W!$CYGPATH_W$ac_delim
7594 PACKAGE!$PACKAGE$ac_delim
7595 VERSION!$VERSION$ac_delim
7596 ACLOCAL!$ACLOCAL$ac_delim
7597 AUTOCONF!$AUTOCONF$ac_delim
7598 AUTOMAKE!$AUTOMAKE$ac_delim
7599 AUTOHEADER!$AUTOHEADER$ac_delim
7600 MAKEINFO!$MAKEINFO$ac_delim
7601 install_sh!$install_sh$ac_delim
7602 STRIP!$STRIP$ac_delim
7603 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7604 mkdir_p!$mkdir_p$ac_delim
7605 AWK!$AWK$ac_delim
7606 SET_MAKE!$SET_MAKE$ac_delim
7607 am__leading_dot!$am__leading_dot$ac_delim
7608 AMTAR!$AMTAR$ac_delim
7609 am__tar!$am__tar$ac_delim
7610 am__untar!$am__untar$ac_delim
7611 CXX!$CXX$ac_delim
7612 CXXFLAGS!$CXXFLAGS$ac_delim
7613 LDFLAGS!$LDFLAGS$ac_delim
7614 CPPFLAGS!$CPPFLAGS$ac_delim
7615 ac_ct_CXX!$ac_ct_CXX$ac_delim
7616 EXEEXT!$EXEEXT$ac_delim
7617 OBJEXT!$OBJEXT$ac_delim
7618 DEPDIR!$DEPDIR$ac_delim
7619 am__include!$am__include$ac_delim
7620 am__quote!$am__quote$ac_delim
7621 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7622 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7623 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7624 CXXDEPMODE!$CXXDEPMODE$ac_delim
7625 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
7626 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
7627 CC!$CC$ac_delim
7628 CFLAGS!$CFLAGS$ac_delim
7629 ac_ct_CC!$ac_ct_CC$ac_delim
7630 CCDEPMODE!$CCDEPMODE$ac_delim
7631 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7632 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7633 CPP!$CPP$ac_delim
7634 GREP!$GREP$ac_delim
7635 EGREP!$EGREP$ac_delim
7636 LIBOBJS!$LIBOBJS$ac_delim
7637 _ACEOF
7638
7639   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7640     break
7641   elif $ac_last_try; then
7642     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7643 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7644    { (exit 1); exit 1; }; }
7645   else
7646     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7647   fi
7648 done
7649
7650 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7651 if test -n "$ac_eof"; then
7652   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7653   ac_eof=`expr $ac_eof + 1`
7654 fi
7655
7656 cat >>$CONFIG_STATUS <<_ACEOF
7657 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7658 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7659 _ACEOF
7660 sed '
7661 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7662 s/^/s,@/; s/!/@,|#_!!_#|/
7663 :n
7664 t n
7665 s/'"$ac_delim"'$/,g/; t
7666 s/$/\\/; p
7667 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7668 ' >>$CONFIG_STATUS <conf$$subs.sed
7669 rm -f conf$$subs.sed
7670 cat >>$CONFIG_STATUS <<_ACEOF
7671 CEOF$ac_eof
7672 _ACEOF
7673
7674
7675 ac_delim='%!_!# '
7676 for ac_last_try in false false false false false :; do
7677   cat >conf$$subs.sed <<_ACEOF
7678 LTLIBOBJS!$LTLIBOBJS$ac_delim
7679 _ACEOF
7680
7681   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
7682     break
7683   elif $ac_last_try; then
7684     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7685 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7686    { (exit 1); exit 1; }; }
7687   else
7688     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7689   fi
7690 done
7691
7692 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7693 if test -n "$ac_eof"; then
7694   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7695   ac_eof=`expr $ac_eof + 1`
7696 fi
7697
7698 cat >>$CONFIG_STATUS <<_ACEOF
7699 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
7700 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7701 _ACEOF
7702 sed '
7703 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7704 s/^/s,@/; s/!/@,|#_!!_#|/
7705 :n
7706 t n
7707 s/'"$ac_delim"'$/,g/; t
7708 s/$/\\/; p
7709 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7710 ' >>$CONFIG_STATUS <conf$$subs.sed
7711 rm -f conf$$subs.sed
7712 cat >>$CONFIG_STATUS <<_ACEOF
7713 :end
7714 s/|#_!!_#|//g
7715 CEOF$ac_eof
7716 _ACEOF
7717
7718
7719 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7720 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7721 # trailing colons and then remove the whole line if VPATH becomes empty
7722 # (actually we leave an empty line to preserve line numbers).
7723 if test "x$srcdir" = x.; then
7724   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7725 s/:*\$(srcdir):*/:/
7726 s/:*\${srcdir}:*/:/
7727 s/:*@srcdir@:*/:/
7728 s/^\([^=]*=[     ]*\):*/\1/
7729 s/:*$//
7730 s/^[^=]*=[       ]*$//
7731 }'
7732 fi
7733
7734 cat >>$CONFIG_STATUS <<\_ACEOF
7735 fi # test -n "$CONFIG_FILES"
7736
7737
7738 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
7739 do
7740   case $ac_tag in
7741   :[FHLC]) ac_mode=$ac_tag; continue;;
7742   esac
7743   case $ac_mode$ac_tag in
7744   :[FHL]*:*);;
7745   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7746 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7747    { (exit 1); exit 1; }; };;
7748   :[FH]-) ac_tag=-:-;;
7749   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7750   esac
7751   ac_save_IFS=$IFS
7752   IFS=:
7753   set x $ac_tag
7754   IFS=$ac_save_IFS
7755   shift
7756   ac_file=$1
7757   shift
7758
7759   case $ac_mode in
7760   :L) ac_source=$1;;
7761   :[FH])
7762     ac_file_inputs=
7763     for ac_f
7764     do
7765       case $ac_f in
7766       -) ac_f="$tmp/stdin";;
7767       *) # Look for the file first in the build tree, then in the source tree
7768          # (if the path is not absolute).  The absolute path cannot be DOS-style,
7769          # because $ac_f cannot contain `:'.
7770          test -f "$ac_f" ||
7771            case $ac_f in
7772            [\\/$]*) false;;
7773            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7774            esac ||
7775            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7776 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7777    { (exit 1); exit 1; }; };;
7778       esac
7779       ac_file_inputs="$ac_file_inputs $ac_f"
7780     done
7781
7782     # Let's still pretend it is `configure' which instantiates (i.e., don't
7783     # use $as_me), people would be surprised to read:
7784     #    /* config.h.  Generated by config.status.  */
7785     configure_input="Generated from "`IFS=:
7786           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7787     if test x"$ac_file" != x-; then
7788       configure_input="$ac_file.  $configure_input"
7789       { echo "$as_me:$LINENO: creating $ac_file" >&5
7790 echo "$as_me: creating $ac_file" >&6;}
7791     fi
7792
7793     case $ac_tag in
7794     *:-:* | *:-) cat >"$tmp/stdin";;
7795     esac
7796     ;;
7797   esac
7798
7799   ac_dir=`$as_dirname -- "$ac_file" ||
7800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7801          X"$ac_file" : 'X\(//\)[^/]' \| \
7802          X"$ac_file" : 'X\(//\)$' \| \
7803          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7804 echo X"$ac_file" |
7805     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7806             s//\1/
7807             q
7808           }
7809           /^X\(\/\/\)[^/].*/{
7810             s//\1/
7811             q
7812           }
7813           /^X\(\/\/\)$/{
7814             s//\1/
7815             q
7816           }
7817           /^X\(\/\).*/{
7818             s//\1/
7819             q
7820           }
7821           s/.*/./; q'`
7822   { as_dir="$ac_dir"
7823   case $as_dir in #(
7824   -*) as_dir=./$as_dir;;
7825   esac
7826   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7827     as_dirs=
7828     while :; do
7829       case $as_dir in #(
7830       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7831       *) as_qdir=$as_dir;;
7832       esac
7833       as_dirs="'$as_qdir' $as_dirs"
7834       as_dir=`$as_dirname -- "$as_dir" ||
7835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7836          X"$as_dir" : 'X\(//\)[^/]' \| \
7837          X"$as_dir" : 'X\(//\)$' \| \
7838          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7839 echo X"$as_dir" |
7840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7841             s//\1/
7842             q
7843           }
7844           /^X\(\/\/\)[^/].*/{
7845             s//\1/
7846             q
7847           }
7848           /^X\(\/\/\)$/{
7849             s//\1/
7850             q
7851           }
7852           /^X\(\/\).*/{
7853             s//\1/
7854             q
7855           }
7856           s/.*/./; q'`
7857       test -d "$as_dir" && break
7858     done
7859     test -z "$as_dirs" || eval "mkdir $as_dirs"
7860   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7861 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7862    { (exit 1); exit 1; }; }; }
7863   ac_builddir=.
7864
7865 case "$ac_dir" in
7866 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7867 *)
7868   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7869   # A ".." for each directory in $ac_dir_suffix.
7870   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7871   case $ac_top_builddir_sub in
7872   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7873   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7874   esac ;;
7875 esac
7876 ac_abs_top_builddir=$ac_pwd
7877 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7878 # for backward compatibility:
7879 ac_top_builddir=$ac_top_build_prefix
7880
7881 case $srcdir in
7882   .)  # We are building in place.
7883     ac_srcdir=.
7884     ac_top_srcdir=$ac_top_builddir_sub
7885     ac_abs_top_srcdir=$ac_pwd ;;
7886   [\\/]* | ?:[\\/]* )  # Absolute name.
7887     ac_srcdir=$srcdir$ac_dir_suffix;
7888     ac_top_srcdir=$srcdir
7889     ac_abs_top_srcdir=$srcdir ;;
7890   *) # Relative name.
7891     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7892     ac_top_srcdir=$ac_top_build_prefix$srcdir
7893     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7894 esac
7895 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7896
7897
7898   case $ac_mode in
7899   :F)
7900   #
7901   # CONFIG_FILE
7902   #
7903
7904   case $INSTALL in
7905   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7906   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7907   esac
7908   ac_MKDIR_P=$MKDIR_P
7909   case $MKDIR_P in
7910   [\\/$]* | ?:[\\/]* ) ;;
7911   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7912   esac
7913 _ACEOF
7914
7915 cat >>$CONFIG_STATUS <<\_ACEOF
7916 # If the template does not know about datarootdir, expand it.
7917 # FIXME: This hack should be removed a few years after 2.60.
7918 ac_datarootdir_hack=; ac_datarootdir_seen=
7919
7920 case `sed -n '/datarootdir/ {
7921   p
7922   q
7923 }
7924 /@datadir@/p
7925 /@docdir@/p
7926 /@infodir@/p
7927 /@localedir@/p
7928 /@mandir@/p
7929 ' $ac_file_inputs` in
7930 *datarootdir*) ac_datarootdir_seen=yes;;
7931 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7932   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7933 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7934 _ACEOF
7935 cat >>$CONFIG_STATUS <<_ACEOF
7936   ac_datarootdir_hack='
7937   s&@datadir@&$datadir&g
7938   s&@docdir@&$docdir&g
7939   s&@infodir@&$infodir&g
7940   s&@localedir@&$localedir&g
7941   s&@mandir@&$mandir&g
7942     s&\\\${datarootdir}&$datarootdir&g' ;;
7943 esac
7944 _ACEOF
7945
7946 # Neutralize VPATH when `$srcdir' = `.'.
7947 # Shell code in configure.ac might set extrasub.
7948 # FIXME: do we really want to maintain this feature?
7949 cat >>$CONFIG_STATUS <<_ACEOF
7950   sed "$ac_vpsub
7951 $extrasub
7952 _ACEOF
7953 cat >>$CONFIG_STATUS <<\_ACEOF
7954 :t
7955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7956 s&@configure_input@&$configure_input&;t t
7957 s&@top_builddir@&$ac_top_builddir_sub&;t t
7958 s&@srcdir@&$ac_srcdir&;t t
7959 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7960 s&@top_srcdir@&$ac_top_srcdir&;t t
7961 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7962 s&@builddir@&$ac_builddir&;t t
7963 s&@abs_builddir@&$ac_abs_builddir&;t t
7964 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7965 s&@INSTALL@&$ac_INSTALL&;t t
7966 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7967 $ac_datarootdir_hack
7968 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7969
7970 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7971   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7972   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7973   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7974 which seems to be undefined.  Please make sure it is defined." >&5
7975 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7976 which seems to be undefined.  Please make sure it is defined." >&2;}
7977
7978   rm -f "$tmp/stdin"
7979   case $ac_file in
7980   -) cat "$tmp/out"; rm -f "$tmp/out";;
7981   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7982   esac
7983  ;;
7984   :H)
7985   #
7986   # CONFIG_HEADER
7987   #
7988 _ACEOF
7989
7990 # Transform confdefs.h into a sed script `conftest.defines', that
7991 # substitutes the proper values into config.h.in to produce config.h.
7992 rm -f conftest.defines conftest.tail
7993 # First, append a space to every undef/define line, to ease matching.
7994 echo 's/$/ /' >conftest.defines
7995 # Then, protect against being on the right side of a sed subst, or in
7996 # an unquoted here document, in config.status.  If some macros were
7997 # called several times there might be several #defines for the same
7998 # symbol, which is useless.  But do not sort them, since the last
7999 # AC_DEFINE must be honored.
8000 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8001 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8002 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8003 # PARAMS is the parameter list in the macro definition--in most cases, it's
8004 # just an empty string.
8005 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
8006 ac_dB='\\)[      (].*,\\1define\\2'
8007 ac_dC=' '
8008 ac_dD=' ,'
8009
8010 uniq confdefs.h |
8011   sed -n '
8012         t rset
8013         :rset
8014         s/^[     ]*#[    ]*define[       ][      ]*//
8015         t ok
8016         d
8017         :ok
8018         s/[\\&,]/\\&/g
8019         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8020         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8021   ' >>conftest.defines
8022
8023 # Remove the space that was appended to ease matching.
8024 # Then replace #undef with comments.  This is necessary, for
8025 # example, in the case of _POSIX_SOURCE, which is predefined and required
8026 # on some systems where configure will not decide to define it.
8027 # (The regexp can be short, since the line contains either #define or #undef.)
8028 echo 's/ $//
8029 s,^[     #]*u.*,/* & */,' >>conftest.defines
8030
8031 # Break up conftest.defines:
8032 ac_max_sed_lines=50
8033
8034 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8035 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8036 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8037 # et cetera.
8038 ac_in='$ac_file_inputs'
8039 ac_out='"$tmp/out1"'
8040 ac_nxt='"$tmp/out2"'
8041
8042 while :
8043 do
8044   # Write a here document:
8045     cat >>$CONFIG_STATUS <<_ACEOF
8046     # First, check the format of the line:
8047     cat >"\$tmp/defines.sed" <<\\CEOF
8048 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
8049 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
8050 b
8051 :def
8052 _ACEOF
8053   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8054   echo 'CEOF
8055     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8056   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8057   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8058   grep . conftest.tail >/dev/null || break
8059   rm -f conftest.defines
8060   mv conftest.tail conftest.defines
8061 done
8062 rm -f conftest.defines conftest.tail
8063
8064 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8065 cat >>$CONFIG_STATUS <<\_ACEOF
8066   if test x"$ac_file" != x-; then
8067     echo "/* $configure_input  */" >"$tmp/config.h"
8068     cat "$ac_result" >>"$tmp/config.h"
8069     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8070       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8071 echo "$as_me: $ac_file is unchanged" >&6;}
8072     else
8073       rm -f $ac_file
8074       mv "$tmp/config.h" $ac_file
8075     fi
8076   else
8077     echo "/* $configure_input  */"
8078     cat "$ac_result"
8079   fi
8080   rm -f "$tmp/out12"
8081 # Compute $ac_file's index in $config_headers.
8082 _am_arg=$ac_file
8083 _am_stamp_count=1
8084 for _am_header in $config_headers :; do
8085   case $_am_header in
8086     $_am_arg | $_am_arg:* )
8087       break ;;
8088     * )
8089       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8090   esac
8091 done
8092 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8093 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8094          X"$_am_arg" : 'X\(//\)[^/]' \| \
8095          X"$_am_arg" : 'X\(//\)$' \| \
8096          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8097 echo X"$_am_arg" |
8098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8099             s//\1/
8100             q
8101           }
8102           /^X\(\/\/\)[^/].*/{
8103             s//\1/
8104             q
8105           }
8106           /^X\(\/\/\)$/{
8107             s//\1/
8108             q
8109           }
8110           /^X\(\/\).*/{
8111             s//\1/
8112             q
8113           }
8114           s/.*/./; q'`/stamp-h$_am_stamp_count
8115  ;;
8116
8117   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
8118 echo "$as_me: executing $ac_file commands" >&6;}
8119  ;;
8120   esac
8121
8122
8123   case $ac_file$ac_mode in
8124     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8125   # Strip MF so we end up with the name of the file.
8126   mf=`echo "$mf" | sed -e 's/:.*$//'`
8127   # Check whether this is an Automake generated Makefile or not.
8128   # We used to match only the files named `Makefile.in', but
8129   # some people rename them; so instead we look at the file content.
8130   # Grep'ing the first line is not enough: some people post-process
8131   # each Makefile.in and add a new line on top of each file to say so.
8132   # Grep'ing the whole file is not good either: AIX grep has a line
8133   # limit of 2048, but all sed's we know have understand at least 4000.
8134   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8135     dirpart=`$as_dirname -- "$mf" ||
8136 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8137          X"$mf" : 'X\(//\)[^/]' \| \
8138          X"$mf" : 'X\(//\)$' \| \
8139          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8140 echo X"$mf" |
8141     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8142             s//\1/
8143             q
8144           }
8145           /^X\(\/\/\)[^/].*/{
8146             s//\1/
8147             q
8148           }
8149           /^X\(\/\/\)$/{
8150             s//\1/
8151             q
8152           }
8153           /^X\(\/\).*/{
8154             s//\1/
8155             q
8156           }
8157           s/.*/./; q'`
8158   else
8159     continue
8160   fi
8161   # Extract the definition of DEPDIR, am__include, and am__quote
8162   # from the Makefile without running `make'.
8163   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8164   test -z "$DEPDIR" && continue
8165   am__include=`sed -n 's/^am__include = //p' < "$mf"`
8166   test -z "am__include" && continue
8167   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8168   # When using ansi2knr, U may be empty or an underscore; expand it
8169   U=`sed -n 's/^U = //p' < "$mf"`
8170   # Find all dependency output files, they are included files with
8171   # $(DEPDIR) in their names.  We invoke sed twice because it is the
8172   # simplest approach to changing $(DEPDIR) to its actual value in the
8173   # expansion.
8174   for file in `sed -n "
8175     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8176        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8177     # Make sure the directory exists.
8178     test -f "$dirpart/$file" && continue
8179     fdir=`$as_dirname -- "$file" ||
8180 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8181          X"$file" : 'X\(//\)[^/]' \| \
8182          X"$file" : 'X\(//\)$' \| \
8183          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8184 echo X"$file" |
8185     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8186             s//\1/
8187             q
8188           }
8189           /^X\(\/\/\)[^/].*/{
8190             s//\1/
8191             q
8192           }
8193           /^X\(\/\/\)$/{
8194             s//\1/
8195             q
8196           }
8197           /^X\(\/\).*/{
8198             s//\1/
8199             q
8200           }
8201           s/.*/./; q'`
8202     { as_dir=$dirpart/$fdir
8203   case $as_dir in #(
8204   -*) as_dir=./$as_dir;;
8205   esac
8206   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8207     as_dirs=
8208     while :; do
8209       case $as_dir in #(
8210       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8211       *) as_qdir=$as_dir;;
8212       esac
8213       as_dirs="'$as_qdir' $as_dirs"
8214       as_dir=`$as_dirname -- "$as_dir" ||
8215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8216          X"$as_dir" : 'X\(//\)[^/]' \| \
8217          X"$as_dir" : 'X\(//\)$' \| \
8218          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8219 echo X"$as_dir" |
8220     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8221             s//\1/
8222             q
8223           }
8224           /^X\(\/\/\)[^/].*/{
8225             s//\1/
8226             q
8227           }
8228           /^X\(\/\/\)$/{
8229             s//\1/
8230             q
8231           }
8232           /^X\(\/\).*/{
8233             s//\1/
8234             q
8235           }
8236           s/.*/./; q'`
8237       test -d "$as_dir" && break
8238     done
8239     test -z "$as_dirs" || eval "mkdir $as_dirs"
8240   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8241 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8242    { (exit 1); exit 1; }; }; }
8243     # echo "creating $dirpart/$file"
8244     echo '# dummy' > "$dirpart/$file"
8245   done
8246 done
8247  ;;
8248
8249   esac
8250 done # for ac_tag
8251
8252
8253 { (exit 0); exit 0; }
8254 _ACEOF
8255 chmod +x $CONFIG_STATUS
8256 ac_clean_files=$ac_clean_files_save
8257
8258
8259 # configure is writing to config.log, and then calls config.status.
8260 # config.status does its own redirection, appending to config.log.
8261 # Unfortunately, on DOS this fails, as config.log is still kept open
8262 # by configure, so config.status won't be able to write to it; its
8263 # output is simply discarded.  So we exec the FD to /dev/null,
8264 # effectively closing config.log, so it can be properly (re)opened and
8265 # appended to by config.status.  When coming back to configure, we
8266 # need to make the FD available again.
8267 if test "$no_create" != yes; then
8268   ac_cs_success=:
8269   ac_config_status_args=
8270   test "$silent" = yes &&
8271     ac_config_status_args="$ac_config_status_args --quiet"
8272   exec 5>/dev/null
8273   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8274   exec 5>>config.log
8275   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8276   # would make configure fail if this is the last instruction.
8277   $ac_cs_success || { (exit 1); exit 1; }
8278 fi
8279