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