"Fossies" - the Fresh Open Source Software Archive 
Member "httperf-0.9.0/configure" (26 Apr 2007, 804104 Bytes) of package /linux/www/old/httperf-0.9.0.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for httperf 0.9.0.
4 #
5 # Report bugs to <httperf@linux.hpl.hp.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54 else
55 as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" "" $as_nl"
67
68 # Find who we are. Look in the path if we contain no directory separator.
69 case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80 ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85 as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105 do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110 fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117 else
118 as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123 else
124 as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155 else
156 as_have_required=no
157 fi
158
159 if test $as_have_required = yes && (eval ":
160 (as_func_return () {
161 (exit \$1)
162 }
163 as_func_success () {
164 as_func_return 0
165 }
166 as_func_failure () {
167 as_func_return 1
168 }
169 as_func_ret_success () {
170 return 0
171 }
172 as_func_ret_failure () {
173 return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178 :
179 else
180 exitcode=1
181 echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190 :
191 else
192 exitcode=1
193 echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203 else
204 exitcode=1
205 echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216 :
217 else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
225 /*)
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230 done
231 IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274 (exit $1)
275 }
276 as_func_success () {
277 as_func_return 0
278 }
279 as_func_failure () {
280 as_func_return 1
281 }
282 as_func_ret_success () {
283 return 0
284 }
285 as_func_ret_failure () {
286 return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291 :
292 else
293 exitcode=1
294 echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303 :
304 else
305 exitcode=1
306 echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316 else
317 exitcode=1
318 echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331 break
332 fi
333
334 fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363 (exit \$1)
364 }
365 as_func_success () {
366 as_func_return 0
367 }
368 as_func_failure () {
369 as_func_return 1
370 }
371 as_func_ret_success () {
372 return 0
373 }
374 as_func_ret_failure () {
375 return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380 :
381 else
382 exitcode=1
383 echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392 :
393 else
394 exitcode=1
395 echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405 else
406 exitcode=1
407 echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415 }
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475 *)
476 ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482 else
483 as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489 else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504 else
505 as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526 else
527 as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539
540 # Check that we are running under the correct shell.
541 SHELL=${CONFIG_SHELL-/bin/sh}
542
543 case X$ECHO in
544 X*--fallback-echo)
545 # Remove one level of quotation (which was required for Make).
546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547 ;;
548 esac
549
550 echo=${ECHO-echo}
551 if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
553 shift
554 elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
556 :
557 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $echo works!
559 :
560 else
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 fi
564
565 if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
567 shift
568 cat <<EOF
569 $*
570 EOF
571 exit 0
572 fi
573
574 # The HP-UX ksh and POSIX shell print the target directory to stdout
575 # if CDPATH is set.
576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
578 if test -z "$ECHO"; then
579 if test "X${echo_test_string+set}" != Xset; then
580 # find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584 echo_test_string=`eval $cmd` &&
585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586 then
587 break
588 fi
589 done
590 fi
591
592 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
595 :
596 else
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
600 #
601 # So, first we look for a working echo in the user's PATH.
602
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
605 IFS="$lt_save_ifs"
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 echo="$dir/echo"
611 break
612 fi
613 done
614 IFS="$lt_save_ifs"
615
616 if test "X$echo" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
622 echo='print -r'
623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
629 export CONFIG_SHELL
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 else
632 # Try using printf.
633 echo='printf %s\n'
634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # Cool, printf works
638 :
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644 export CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
646 export SHELL
647 echo="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 echo="$CONFIG_SHELL $0 --fallback-echo"
653 else
654 # maybe with a smaller string...
655 prev=:
656
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659 then
660 break
661 fi
662 prev="$cmd"
663 done
664
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 else
670 # Oops. We lost completely, so just stick with echo.
671 echo=echo
672 fi
673 fi
674 fi
675 fi
676 fi
677 fi
678
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
681 ECHO=$echo
682 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684 fi
685
686
687
688
689 tagnames=${tagnames+${tagnames},}CXX
690
691 tagnames=${tagnames+${tagnames},}F77
692
693 exec 7<&0 </dev/null 6>&1
694
695 # Name of the host.
696 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
700 #
701 # Initializations.
702 #
703 ac_default_prefix=/usr/local
704 ac_clean_files=
705 ac_config_libobj_dir=.
706 LIBOBJS=
707 cross_compiling=no
708 subdirs=
709 MFLAGS=
710 MAKEFLAGS=
711 SHELL=${CONFIG_SHELL-/bin/sh}
712
713 # Identity of this package.
714 PACKAGE_NAME='httperf'
715 PACKAGE_TARNAME='httperf'
716 PACKAGE_VERSION='0.9.0'
717 PACKAGE_STRING='httperf 0.9.0'
718 PACKAGE_BUGREPORT='httperf@linux.hpl.hp.com'
719
720 ac_unique_file="src/httperf.c"
721 # Factoring default headers for most tests.
722 ac_includes_default="\
723 #include <stdio.h>
724 #if HAVE_SYS_TYPES_H
725 # include <sys/types.h>
726 #endif
727 #if HAVE_SYS_STAT_H
728 # include <sys/stat.h>
729 #endif
730 #if STDC_HEADERS
731 # include <stdlib.h>
732 # include <stddef.h>
733 #else
734 # if HAVE_STDLIB_H
735 # include <stdlib.h>
736 # endif
737 #endif
738 #if HAVE_STRING_H
739 # if !STDC_HEADERS && HAVE_MEMORY_H
740 # include <memory.h>
741 # endif
742 # include <string.h>
743 #endif
744 #if HAVE_STRINGS_H
745 # include <strings.h>
746 #endif
747 #if HAVE_INTTYPES_H
748 # include <inttypes.h>
749 #endif
750 #if HAVE_STDINT_H
751 # include <stdint.h>
752 #endif
753 #if HAVE_UNISTD_H
754 # include <unistd.h>
755 #endif"
756
757 ac_subst_vars='SHELL
758 PATH_SEPARATOR
759 PACKAGE_NAME
760 PACKAGE_TARNAME
761 PACKAGE_VERSION
762 PACKAGE_STRING
763 PACKAGE_BUGREPORT
764 exec_prefix
765 prefix
766 program_transform_name
767 bindir
768 sbindir
769 libexecdir
770 datarootdir
771 datadir
772 sysconfdir
773 sharedstatedir
774 localstatedir
775 includedir
776 oldincludedir
777 docdir
778 infodir
779 htmldir
780 dvidir
781 pdfdir
782 psdir
783 libdir
784 localedir
785 mandir
786 DEFS
787 ECHO_C
788 ECHO_N
789 ECHO_T
790 LIBS
791 build_alias
792 host_alias
793 target_alias
794 build
795 build_cpu
796 build_vendor
797 build_os
798 host
799 host_cpu
800 host_vendor
801 host_os
802 target
803 target_cpu
804 target_vendor
805 target_os
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 CYGPATH_W
810 PACKAGE
811 VERSION
812 ACLOCAL
813 AUTOCONF
814 AUTOMAKE
815 AUTOHEADER
816 MAKEINFO
817 install_sh
818 STRIP
819 INSTALL_STRIP_PROGRAM
820 mkdir_p
821 AWK
822 SET_MAKE
823 am__leading_dot
824 AMTAR
825 am__tar
826 am__untar
827 CC
828 CFLAGS
829 LDFLAGS
830 CPPFLAGS
831 ac_ct_CC
832 EXEEXT
833 OBJEXT
834 DEPDIR
835 am__include
836 am__quote
837 AMDEP_TRUE
838 AMDEP_FALSE
839 AMDEPBACKSLASH
840 CCDEPMODE
841 am__fastdepCC_TRUE
842 am__fastdepCC_FALSE
843 GREP
844 EGREP
845 LN_S
846 ECHO
847 AR
848 RANLIB
849 CPP
850 CXX
851 CXXFLAGS
852 ac_ct_CXX
853 CXXDEPMODE
854 am__fastdepCXX_TRUE
855 am__fastdepCXX_FALSE
856 CXXCPP
857 F77
858 FFLAGS
859 ac_ct_F77
860 LIBTOOL
861 ALLOCA
862 LIBOBJS
863 POW_LIB
864 LTLIBOBJS'
865 ac_subst_files=''
866 ac_precious_vars='build_alias
867 host_alias
868 target_alias
869 CC
870 CFLAGS
871 LDFLAGS
872 CPPFLAGS
873 CPP
874 CXX
875 CXXFLAGS
876 CCC
877 CXXCPP
878 F77
879 FFLAGS'
880
881
882 # Initialize some variables set by options.
883 ac_init_help=
884 ac_init_version=false
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
887 cache_file=/dev/null
888 exec_prefix=NONE
889 no_create=
890 no_recursion=
891 prefix=NONE
892 program_prefix=NONE
893 program_suffix=NONE
894 program_transform_name=s,x,x,
895 silent=
896 site=
897 srcdir=
898 verbose=
899 x_includes=NONE
900 x_libraries=NONE
901
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir='${datarootdir}/info'
920 htmldir='${docdir}'
921 dvidir='${docdir}'
922 pdfdir='${docdir}'
923 psdir='${docdir}'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
927
928 ac_prev=
929 ac_dashdash=
930 for ac_option
931 do
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
935 ac_prev=
936 continue
937 fi
938
939 case $ac_option in
940 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *) ac_optarg=yes ;;
942 esac
943
944 # Accept the important Cygnus configure options, so we can diagnose typos.
945
946 case $ac_dashdash$ac_option in
947 --)
948 ac_dashdash=yes ;;
949
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 bindir=$ac_optarg ;;
954
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
959
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
966
967 --config-cache | -C)
968 cache_file=config.cache ;;
969
970 -datadir | --datadir | --datadi | --datad)
971 ac_prev=datadir ;;
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
974
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
981
982 -disable-* | --disable-*)
983 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
986 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
987 { (exit 1); exit 1; }; }
988 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
989 eval enable_$ac_feature=no ;;
990
991 -docdir | --docdir | --docdi | --doc | --do)
992 ac_prev=docdir ;;
993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 docdir=$ac_optarg ;;
995
996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997 ac_prev=dvidir ;;
998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 dvidir=$ac_optarg ;;
1000
1001 -enable-* | --enable-*)
1002 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1005 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1006 { (exit 1); exit 1; }; }
1007 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1008 eval enable_$ac_feature=\$ac_optarg ;;
1009
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1017 exec_prefix=$ac_optarg ;;
1018
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1021 with_gas=yes ;;
1022
1023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
1029
1030 -host | --host | --hos | --ho)
1031 ac_prev=host_alias ;;
1032 -host=* | --host=* | --hos=* | --ho=*)
1033 host_alias=$ac_optarg ;;
1034
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 ac_prev=htmldir ;;
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 | --ht=*)
1039 htmldir=$ac_optarg ;;
1040
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1046 includedir=$ac_optarg ;;
1047
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 ac_prev=infodir ;;
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051 infodir=$ac_optarg ;;
1052
1053 -libdir | --libdir | --libdi | --libd)
1054 ac_prev=libdir ;;
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056 libdir=$ac_optarg ;;
1057
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1063 libexecdir=$ac_optarg ;;
1064
1065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1069
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075 localstatedir=$ac_optarg ;;
1076
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 ac_prev=mandir ;;
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080 mandir=$ac_optarg ;;
1081
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1084 with_fp=no ;;
1085
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1088 no_create=yes ;;
1089
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 no_recursion=yes ;;
1093
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101 oldincludedir=$ac_optarg ;;
1102
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 ac_prev=prefix ;;
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106 prefix=$ac_optarg ;;
1107
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113 program_prefix=$ac_optarg ;;
1114
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120 program_suffix=$ac_optarg ;;
1121
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1137 program_transform_name=$ac_optarg ;;
1138
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 ac_prev=pdfdir ;;
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1143
1144 -psdir | --psdir | --psdi | --psd | --ps)
1145 ac_prev=psdir ;;
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 psdir=$ac_optarg ;;
1148
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1151 silent=yes ;;
1152
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 ac_prev=sbindir ;;
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 | --sbi=* | --sb=*)
1157 sbindir=$ac_optarg ;;
1158
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1162 | --sha | --sh)
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 | --sha=* | --sh=*)
1168 sharedstatedir=$ac_optarg ;;
1169
1170 -site | --site | --sit)
1171 ac_prev=site ;;
1172 -site=* | --site=* | --sit=*)
1173 site=$ac_optarg ;;
1174
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 ac_prev=srcdir ;;
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1179
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1186
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1191
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 verbose=yes ;;
1194
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1197
1198 -with-* | --with-*)
1199 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1202 { echo "$as_me: error: invalid package name: $ac_package" >&2
1203 { (exit 1); exit 1; }; }
1204 ac_package=`echo $ac_package| sed 's/-/_/g'`
1205 eval with_$ac_package=\$ac_optarg ;;
1206
1207 -without-* | --without-*)
1208 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1211 { echo "$as_me: error: invalid package name: $ac_package" >&2
1212 { (exit 1); exit 1; }; }
1213 ac_package=`echo $ac_package | sed 's/-/_/g'`
1214 eval with_$ac_package=no ;;
1215
1216 --x)
1217 # Obsolete; use --with-x.
1218 with_x=yes ;;
1219
1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221 | --x-incl | --x-inc | --x-in | --x-i)
1222 ac_prev=x_includes ;;
1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225 x_includes=$ac_optarg ;;
1226
1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229 ac_prev=x_libraries ;;
1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;;
1233
1234 -*) { echo "$as_me: error: unrecognized option: $ac_option
1235 Try \`$0 --help' for more information." >&2
1236 { (exit 1); exit 1; }; }
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1243 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1244 { (exit 1); exit 1; }; }
1245 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;;
1247
1248 *)
1249 # FIXME: should be removed in autoconf 3.0.
1250 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1253 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1254 ;;
1255
1256 esac
1257 done
1258
1259 if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 { echo "$as_me: error: missing argument to $ac_option" >&2
1262 { (exit 1); exit 1; }; }
1263 fi
1264
1265 # Be sure to have absolute directory names.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1270 do
1271 eval ac_val=\$$ac_var
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1277 { (exit 1); exit 1; }; }
1278 done
1279
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1286
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1292 If a cross compiler is detected then cross compile mode will be used." >&2
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 { echo "$as_me: error: Working directory cannot be determined" >&2
1308 { (exit 1); exit 1; }; }
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 { echo "$as_me: error: pwd does not report name of working directory" >&2
1311 { (exit 1); exit 1; }; }
1312
1313
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$0" ||
1319 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$0" : 'X\(//\)[^/]' \| \
1321 X"$0" : 'X\(//\)$' \| \
1322 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1323 echo X"$0" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\).*/{
1337 s//\1/
1338 q
1339 }
1340 s/.*/./; q'`
1341 srcdir=$ac_confdir
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 srcdir=..
1344 fi
1345 else
1346 ac_srcdir_defaulted=no
1347 fi
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1351 { (exit 1); exit 1; }; }
1352 fi
1353 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 ac_abs_confdir=`(
1355 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1356 { (exit 1); exit 1; }; }
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1361 fi
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1374
1375 #
1376 # Report the --help message.
1377 #
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382 \`configure' configures httperf 0.9.0 to adapt to many kinds of systems.
1383
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1388
1389 Defaults for the options are specified in brackets.
1390
1391 Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 [PREFIX]
1407
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1412
1413 For better control, use the options below.
1414
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/httperf]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1435 _ACEOF
1436
1437 cat <<\_ACEOF
1438
1439 Program names:
1440 --program-prefix=PREFIX prepend PREFIX to installed program names
1441 --program-suffix=SUFFIX append SUFFIX to installed program names
1442 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443
1444 System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 --target=TARGET configure for building compilers for TARGET [HOST]
1448 _ACEOF
1449 fi
1450
1451 if test -n "$ac_init_help"; then
1452 case $ac_init_help in
1453 short | recursive ) echo "Configuration of httperf 0.9.0:";;
1454 esac
1455 cat <<\_ACEOF
1456
1457 Optional Features:
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --enable-debug enable debug support
1461 --disable-dependency-tracking speeds up one-time build
1462 --enable-dependency-tracking do not reject slow dependency extractors
1463 --enable-shared[=PKGS] build shared libraries [default=yes]
1464 --enable-static[=PKGS] build static libraries [default=yes]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --disable-libtool-lock avoid locking (might break parallel builds)
1468
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1473 --with-pic try to use only PIC/non-PIC objects [default=use
1474 both]
1475 --with-tags[=TAGS] include additional configurations [automatic]
1476
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 CPP C preprocessor
1485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
1487 CXXCPP C++ preprocessor
1488 F77 Fortran 77 compiler command
1489 FFLAGS Fortran 77 compiler flags
1490
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1493
1494 Report bugs to <httperf@linux.hpl.hp.com>.
1495 _ACEOF
1496 ac_status=$?
1497 fi
1498
1499 if test "$ac_init_help" = "recursive"; then
1500 # If there are subdirs, report their specific --help.
1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502 test -d "$ac_dir" || continue
1503 ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554 cat <<\_ACEOF
1555 httperf configure 0.9.0
1556 generated by GNU Autoconf 2.60
1557
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1564 fi
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1568
1569 It was created by httperf $as_me 0.9.0, which was
1570 generated by GNU Autoconf 2.60. Invocation command line was
1571
1572 $ $0 $@
1573
1574 _ACEOF
1575 exec 5>>config.log
1576 {
1577 cat <<_ASUNAME
1578 ## --------- ##
1579 ## Platform. ##
1580 ## --------- ##
1581
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1590
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1598
1599 _ASUNAME
1600
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 echo "PATH: $as_dir"
1607 done
1608 IFS=$as_save_IFS
1609
1610 } >&5
1611
1612 cat >&5 <<_ACEOF
1613
1614
1615 ## ----------- ##
1616 ## Core tests. ##
1617 ## ----------- ##
1618
1619 _ACEOF
1620
1621
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1627 ac_configure_args=
1628 ac_configure_args0=
1629 ac_configure_args1=
1630 ac_must_keep_next=false
1631 for ac_pass in 1 2
1632 do
1633 for ac_arg
1634 do
1635 case $ac_arg in
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1639 continue ;;
1640 *\'*)
1641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642 esac
1643 case $ac_pass in
1644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645 2)
1646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1649 else
1650 case $ac_arg in
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657 esac
1658 ;;
1659 -* ) ac_must_keep_next=true ;;
1660 esac
1661 fi
1662 ac_configure_args="$ac_configure_args '$ac_arg'"
1663 ;;
1664 esac
1665 done
1666 done
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1677 {
1678 echo
1679
1680 cat <<\_ASBOX
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1684 _ASBOX
1685 echo
1686 # The following way of writing the cache mishandles newlines in values,
1687 (
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1690 case $ac_val in #(
1691 *${as_nl}*)
1692 case $ac_var in #(
1693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1695 esac
1696 case $ac_var in #(
1697 _ | IFS | as_nl) ;; #(
1698 *) $as_unset $ac_var ;;
1699 esac ;;
1700 esac
1701 done
1702 (set) 2>&1 |
1703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
1705 sed -n \
1706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708 ;; #(
1709 *)
1710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711 ;;
1712 esac |
1713 sort
1714 )
1715 echo
1716
1717 cat <<\_ASBOX
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1721 _ASBOX
1722 echo
1723 for ac_var in $ac_subst_vars
1724 do
1725 eval ac_val=\$$ac_var
1726 case $ac_val in
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 esac
1729 echo "$ac_var='\''$ac_val'\''"
1730 done | sort
1731 echo
1732
1733 if test -n "$ac_subst_files"; then
1734 cat <<\_ASBOX
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1738 _ASBOX
1739 echo
1740 for ac_var in $ac_subst_files
1741 do
1742 eval ac_val=\$$ac_var
1743 case $ac_val in
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745 esac
1746 echo "$ac_var='\''$ac_val'\''"
1747 done | sort
1748 echo
1749 fi
1750
1751 if test -s confdefs.h; then
1752 cat <<\_ASBOX
1753 ## ----------- ##
1754 ## confdefs.h. ##
1755 ## ----------- ##
1756 _ASBOX
1757 echo
1758 cat confdefs.h
1759 echo
1760 fi
1761 test "$ac_signal" != 0 &&
1762 echo "$as_me: caught signal $ac_signal"
1763 echo "$as_me: exit $exit_status"
1764 } >&5
1765 rm -f core *.core core.conftest.* &&
1766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767 exit $exit_status
1768 ' 0
1769 for ac_signal in 1 2 13 15; do
1770 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1771 done
1772 ac_signal=0
1773
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1776
1777 # Predefined preprocessor variables.
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1781 _ACEOF
1782
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801 _ACEOF
1802
1803
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807 set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1810 else
1811 set x "$ac_default_prefix/share/config.site" \
1812 "$ac_default_prefix/etc/config.site"
1813 fi
1814 shift
1815 for ac_site_file
1816 do
1817 if test -r "$ac_site_file"; then
1818 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1821 . "$ac_site_file"
1822 fi
1823 done
1824
1825 if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1831 case $cache_file in
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1834 esac
1835 fi
1836 else
1837 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1839 >$cache_file
1840 fi
1841
1842 # Check that the precious variables saved in the cache have kept the same
1843 # value.
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1851 set,)
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1855 ,set)
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1859 ,);;
1860 *)
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1865 echo "$as_me: former value: $ac_old_val" >&2;}
1866 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1867 echo "$as_me: current value: $ac_new_val" >&2;}
1868 ac_cache_corrupted=:
1869 fi;;
1870 esac
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1873 case $ac_new_val in
1874 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 *) ac_arg=$ac_var=$ac_new_val ;;
1876 esac
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1880 esac
1881 fi
1882 done
1883 if $ac_cache_corrupted; then
1884 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 { (exit 1); exit 1; }; }
1889 fi
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915 ac_ext=c
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922
1923 ac_config_headers="$ac_config_headers config.h"
1924
1925
1926 ac_aux_dir=
1927 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1928 if test -f "$ac_dir/install-sh"; then
1929 ac_aux_dir=$ac_dir
1930 ac_install_sh="$ac_aux_dir/install-sh -c"
1931 break
1932 elif test -f "$ac_dir/install.sh"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/install.sh -c"
1935 break
1936 elif test -f "$ac_dir/shtool"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/shtool install -c"
1939 break
1940 fi
1941 done
1942 if test -z "$ac_aux_dir"; then
1943 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1944 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1945 { (exit 1); exit 1; }; }
1946 fi
1947
1948 # These three variables are undocumented and unsupported,
1949 # and are intended to be withdrawn in a future Autoconf release.
1950 # They can cause serious problems if a builder's source tree is in a directory
1951 # whose full name contains unusual characters.
1952 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1953 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1954 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1955
1956
1957 # Make sure we can run config.sub.
1958 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1959 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1960 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1961 { (exit 1); exit 1; }; }
1962
1963 { echo "$as_me:$LINENO: checking build system type" >&5
1964 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1965 if test "${ac_cv_build+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968 ac_build_alias=$build_alias
1969 test "x$ac_build_alias" = x &&
1970 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1971 test "x$ac_build_alias" = x &&
1972 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1973 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1974 { (exit 1); exit 1; }; }
1975 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1976 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1977 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1978 { (exit 1); exit 1; }; }
1979
1980 fi
1981 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1982 echo "${ECHO_T}$ac_cv_build" >&6; }
1983 case $ac_cv_build in
1984 *-*-*) ;;
1985 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1986 echo "$as_me: error: invalid value of canonical build" >&2;}
1987 { (exit 1); exit 1; }; };;
1988 esac
1989 build=$ac_cv_build
1990 ac_save_IFS=$IFS; IFS='-'
1991 set x $ac_cv_build
1992 shift
1993 build_cpu=$1
1994 build_vendor=$2
1995 shift; shift
1996 # Remember, the first character of IFS is used to create $*,
1997 # except with old shells:
1998 build_os=$*
1999 IFS=$ac_save_IFS
2000 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2001
2002
2003 { echo "$as_me:$LINENO: checking host system type" >&5
2004 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2005 if test "${ac_cv_host+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008 if test "x$host_alias" = x; then
2009 ac_cv_host=$ac_cv_build
2010 else
2011 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2012 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2013 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2014 { (exit 1); exit 1; }; }
2015 fi
2016
2017 fi
2018 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2019 echo "${ECHO_T}$ac_cv_host" >&6; }
2020 case $ac_cv_host in
2021 *-*-*) ;;
2022 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2023 echo "$as_me: error: invalid value of canonical host" >&2;}
2024 { (exit 1); exit 1; }; };;
2025 esac
2026 host=$ac_cv_host
2027 ac_save_IFS=$IFS; IFS='-'
2028 set x $ac_cv_host
2029 shift
2030 host_cpu=$1
2031 host_vendor=$2
2032 shift; shift
2033 # Remember, the first character of IFS is used to create $*,
2034 # except with old shells:
2035 host_os=$*
2036 IFS=$ac_save_IFS
2037 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2038
2039
2040 { echo "$as_me:$LINENO: checking target system type" >&5
2041 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2042 if test "${ac_cv_target+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045 if test "x$target_alias" = x; then
2046 ac_cv_target=$ac_cv_host
2047 else
2048 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2049 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2050 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2051 { (exit 1); exit 1; }; }
2052 fi
2053
2054 fi
2055 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2056 echo "${ECHO_T}$ac_cv_target" >&6; }
2057 case $ac_cv_target in
2058 *-*-*) ;;
2059 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2060 echo "$as_me: error: invalid value of canonical target" >&2;}
2061 { (exit 1); exit 1; }; };;
2062 esac
2063 target=$ac_cv_target
2064 ac_save_IFS=$IFS; IFS='-'
2065 set x $ac_cv_target
2066 shift
2067 target_cpu=$1
2068 target_vendor=$2
2069 shift; shift
2070 # Remember, the first character of IFS is used to create $*,
2071 # except with old shells:
2072 target_os=$*
2073 IFS=$ac_save_IFS
2074 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2075
2076
2077 # The aliases save the names the user supplied, while $host etc.
2078 # will get canonicalized.
2079 test -n "$target_alias" &&
2080 test "$program_prefix$program_suffix$program_transform_name" = \
2081 NONENONEs,x,x, &&
2082 program_prefix=${target_alias}-
2083
2084 am__api_version="1.9"
2085 # Find a good install program. We prefer a C program (faster),
2086 # so one script is as good as another. But avoid the broken or
2087 # incompatible versions:
2088 # SysV /etc/install, /usr/sbin/install
2089 # SunOS /usr/etc/install
2090 # IRIX /sbin/install
2091 # AIX /bin/install
2092 # AmigaOS /C/install, which installs bootblocks on floppy discs
2093 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2094 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2095 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2096 # OS/2's system install, which has a completely different semantic
2097 # ./install, which can be erroneously created by make from ./install.sh.
2098 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2099 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2100 if test -z "$INSTALL"; then
2101 if test "${ac_cv_path_install+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2106 do
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
2109 # Account for people who put trailing slashes in PATH elements.
2110 case $as_dir/ in
2111 ./ | .// | /cC/* | \
2112 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2113 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2114 /usr/ucb/* ) ;;
2115 *)
2116 # OSF1 and SCO ODT 3.0 have their own names for install.
2117 # Don't use installbsd from OSF since it installs stuff as root
2118 # by default.
2119 for ac_prog in ginstall scoinst install; do
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2122 if test $ac_prog = install &&
2123 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2124 # AIX install. It has an incompatible calling convention.
2125 :
2126 elif test $ac_prog = install &&
2127 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2128 # program-specific install script used by HP pwplus--don't use.
2129 :
2130 else
2131 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2132 break 3
2133 fi
2134 fi
2135 done
2136 done
2137 ;;
2138 esac
2139 done
2140 IFS=$as_save_IFS
2141
2142
2143 fi
2144 if test "${ac_cv_path_install+set}" = set; then
2145 INSTALL=$ac_cv_path_install
2146 else
2147 # As a last resort, use the slow shell script. Don't cache a
2148 # value for INSTALL within a source directory, because that will
2149 # break other packages using the cache if that directory is
2150 # removed, or if the value is a relative name.
2151 INSTALL=$ac_install_sh
2152 fi
2153 fi
2154 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2155 echo "${ECHO_T}$INSTALL" >&6; }
2156
2157 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2158 # It thinks the first close brace ends the variable substitution.
2159 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2160
2161 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2162
2163 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2164
2165 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2166 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2167 # Just in case
2168 sleep 1
2169 echo timestamp > conftest.file
2170 # Do `set' in a subshell so we don't clobber the current shell's
2171 # arguments. Must try -L first in case configure is actually a
2172 # symlink; some systems play weird games with the mod time of symlinks
2173 # (eg FreeBSD returns the mod time of the symlink's containing
2174 # directory).
2175 if (
2176 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2177 if test "$*" = "X"; then
2178 # -L didn't work.
2179 set X `ls -t $srcdir/configure conftest.file`
2180 fi
2181 rm -f conftest.file
2182 if test "$*" != "X $srcdir/configure conftest.file" \
2183 && test "$*" != "X conftest.file $srcdir/configure"; then
2184
2185 # If neither matched, then we have a broken ls. This can happen
2186 # if, for instance, CONFIG_SHELL is bash and it inherits a
2187 # broken ls alias from the environment. This has actually
2188 # happened. Such a system could not be considered "sane".
2189 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2190 alias in your environment" >&5
2191 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2192 alias in your environment" >&2;}
2193 { (exit 1); exit 1; }; }
2194 fi
2195
2196 test "$2" = conftest.file
2197 )
2198 then
2199 # Ok.
2200 :
2201 else
2202 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2203 Check your system clock" >&5
2204 echo "$as_me: error: newly created file is older than distributed files!
2205 Check your system clock" >&2;}
2206 { (exit 1); exit 1; }; }
2207 fi
2208 { echo "$as_me:$LINENO: result: yes" >&5
2209 echo "${ECHO_T}yes" >&6; }
2210 test "$program_prefix" != NONE &&
2211 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2212 # Use a double $ so make ignores it.
2213 test "$program_suffix" != NONE &&
2214 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2215 # Double any \ or $. echo might interpret backslashes.
2216 # By default was `s,x,x', remove it if useless.
2217 cat <<\_ACEOF >conftest.sed
2218 s/[\\$]/&&/g;s/;s,x,x,$//
2219 _ACEOF
2220 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2221 rm -f conftest.sed
2222
2223 # expand $ac_aux_dir to an absolute path
2224 am_aux_dir=`cd $ac_aux_dir && pwd`
2225
2226 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2227 # Use eval to expand $SHELL
2228 if eval "$MISSING --run true"; then
2229 am_missing_run="$MISSING --run "
2230 else
2231 am_missing_run=
2232 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2233 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2234 fi
2235
2236 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2237 # We used to keeping the `.' as first argument, in order to
2238 # allow $(mkdir_p) to be used without argument. As in
2239 # $(mkdir_p) $(somedir)
2240 # where $(somedir) is conditionally defined. However this is wrong
2241 # for two reasons:
2242 # 1. if the package is installed by a user who cannot write `.'
2243 # make install will fail,
2244 # 2. the above comment should most certainly read
2245 # $(mkdir_p) $(DESTDIR)$(somedir)
2246 # so it does not work when $(somedir) is undefined and
2247 # $(DESTDIR) is not.
2248 # To support the latter case, we have to write
2249 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2250 # so the `.' trick is pointless.
2251 mkdir_p='mkdir -p --'
2252 else
2253 # On NextStep and OpenStep, the `mkdir' command does not
2254 # recognize any option. It will interpret all options as
2255 # directories to create, and then abort because `.' already
2256 # exists.
2257 for d in ./-p ./--version;
2258 do
2259 test -d $d && rmdir $d
2260 done
2261 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2262 if test -f "$ac_aux_dir/mkinstalldirs"; then
2263 mkdir_p='$(mkinstalldirs)'
2264 else
2265 mkdir_p='$(install_sh) -d'
2266 fi
2267 fi
2268
2269 for ac_prog in gawk mawk nawk awk
2270 do
2271 # Extract the first word of "$ac_prog", so it can be a program name with args.
2272 set dummy $ac_prog; ac_word=$2
2273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2275 if test "${ac_cv_prog_AWK+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278 if test -n "$AWK"; then
2279 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2280 else
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2283 do
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2288 ac_cv_prog_AWK="$ac_prog"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 break 2
2291 fi
2292 done
2293 done
2294 IFS=$as_save_IFS
2295
2296 fi
2297 fi
2298 AWK=$ac_cv_prog_AWK
2299 if test -n "$AWK"; then
2300 { echo "$as_me:$LINENO: result: $AWK" >&5
2301 echo "${ECHO_T}$AWK" >&6; }
2302 else
2303 { echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6; }
2305 fi
2306
2307
2308 test -n "$AWK" && break
2309 done
2310
2311 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2312 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2313 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2314 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317 cat >conftest.make <<\_ACEOF
2318 SHELL = /bin/sh
2319 all:
2320 @echo '@@@%%%=$(MAKE)=@@@%%%'
2321 _ACEOF
2322 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2323 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2324 *@@@%%%=?*=@@@%%%*)
2325 eval ac_cv_prog_make_${ac_make}_set=yes;;
2326 *)
2327 eval ac_cv_prog_make_${ac_make}_set=no;;
2328 esac
2329 rm -f conftest.make
2330 fi
2331 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2332 { echo "$as_me:$LINENO: result: yes" >&5
2333 echo "${ECHO_T}yes" >&6; }
2334 SET_MAKE=
2335 else
2336 { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2338 SET_MAKE="MAKE=${MAKE-make}"
2339 fi
2340
2341 rm -rf .tst 2>/dev/null
2342 mkdir .tst 2>/dev/null
2343 if test -d .tst; then
2344 am__leading_dot=.
2345 else
2346 am__leading_dot=_
2347 fi
2348 rmdir .tst 2>/dev/null
2349
2350 # test to see if srcdir already configured
2351 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2352 test -f $srcdir/config.status; then
2353 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2354 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2355 { (exit 1); exit 1; }; }
2356 fi
2357
2358 # test whether we have cygpath
2359 if test -z "$CYGPATH_W"; then
2360 if (cygpath --version) >/dev/null 2>/dev/null; then
2361 CYGPATH_W='cygpath -w'
2362 else
2363 CYGPATH_W=echo
2364 fi
2365 fi
2366
2367
2368 # Define the identity of the package.
2369 PACKAGE=httperf
2370 VERSION=0.9.0
2371
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE "$PACKAGE"
2375 _ACEOF
2376
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define VERSION "$VERSION"
2380 _ACEOF
2381
2382 # Some tools Automake needs.
2383
2384 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2385
2386
2387 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2388
2389
2390 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2391
2392
2393 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2394
2395
2396 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2397
2398 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2399
2400 # Installed binaries are usually stripped using `strip' when the user
2401 # run `make install-strip'. However `strip' might not be the right
2402 # tool to use in cross-compilation environments, therefore Automake
2403 # will honor the `STRIP' environment variable to overrule this program.
2404 if test "$cross_compiling" != no; then
2405 if test -n "$ac_tool_prefix"; then
2406 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2407 set dummy ${ac_tool_prefix}strip; ac_word=$2
2408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2410 if test "${ac_cv_prog_STRIP+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413 if test -n "$STRIP"; then
2414 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2423 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 break 2
2426 fi
2427 done
2428 done
2429 IFS=$as_save_IFS
2430
2431 fi
2432 fi
2433 STRIP=$ac_cv_prog_STRIP
2434 if test -n "$STRIP"; then
2435 { echo "$as_me:$LINENO: result: $STRIP" >&5
2436 echo "${ECHO_T}$STRIP" >&6; }
2437 else
2438 { echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6; }
2440 fi
2441
2442
2443 fi
2444 if test -z "$ac_cv_prog_STRIP"; then
2445 ac_ct_STRIP=$STRIP
2446 # Extract the first word of "strip", so it can be a program name with args.
2447 set dummy strip; ac_word=$2
2448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2450 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453 if test -n "$ac_ct_STRIP"; then
2454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2458 do
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2463 ac_cv_prog_ac_ct_STRIP="strip"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 break 2
2466 fi
2467 done
2468 done
2469 IFS=$as_save_IFS
2470
2471 fi
2472 fi
2473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2474 if test -n "$ac_ct_STRIP"; then
2475 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2476 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2477 else
2478 { echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6; }
2480 fi
2481
2482 if test "x$ac_ct_STRIP" = x; then
2483 STRIP=":"
2484 else
2485 case $cross_compiling:$ac_tool_warned in
2486 yes:)
2487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2488 whose name does not start with the host triplet. If you think this
2489 configuration is useful to you, please write to autoconf@gnu.org." >&5
2490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet. If you think this
2492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2493 ac_tool_warned=yes ;;
2494 esac
2495 STRIP=$ac_ct_STRIP
2496 fi
2497 else
2498 STRIP="$ac_cv_prog_STRIP"
2499 fi
2500
2501 fi
2502 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2503
2504 # We need awk for the "check" target. The system "awk" is bad on
2505 # some platforms.
2506 # Always define AMTAR for backward compatibility.
2507
2508 AMTAR=${AMTAR-"${am_missing_run}tar"}
2509
2510 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2511
2512
2513
2514
2515
2516
2517 # Turn on Debug if necessary
2518 # Check whether --enable-debug was given.
2519 if test "${enable_debug+set}" = set; then
2520 enableval=$enable_debug;
2521 fi
2522
2523
2524 if test "$enable_debug" = yes; then
2525 CFLAGS="${CFLAGS} -DDEBUG"
2526 fi
2527
2528 # Checks for programs.
2529
2530 cat >>confdefs.h <<\_ACEOF
2531 #define _GNU_SOURCE 1
2532 _ACEOF
2533
2534
2535 ac_ext=c
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540 if test -n "$ac_tool_prefix"; then
2541 for ac_prog in cc gcc
2542 do
2543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2547 if test "${ac_cv_prog_CC+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
2552 else
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 for as_dir in $PATH
2555 do
2556 IFS=$as_save_IFS
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2560 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 break 2
2563 fi
2564 done
2565 done
2566 IFS=$as_save_IFS
2567
2568 fi
2569 fi
2570 CC=$ac_cv_prog_CC
2571 if test -n "$CC"; then
2572 { echo "$as_me:$LINENO: result: $CC" >&5
2573 echo "${ECHO_T}$CC" >&6; }
2574 else
2575 { echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6; }
2577 fi
2578
2579
2580 test -n "$CC" && break
2581 done
2582 fi
2583 if test -z "$CC"; then
2584 ac_ct_CC=$CC
2585 for ac_prog in cc gcc
2586 do
2587 # Extract the first word of "$ac_prog", so it can be a program name with args.
2588 set dummy $ac_prog; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_ac_ct_CC="$ac_prog"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615 if test -n "$ac_ct_CC"; then
2616 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2617 echo "${ECHO_T}$ac_ct_CC" >&6; }
2618 else
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2621 fi
2622
2623
2624 test -n "$ac_ct_CC" && break
2625 done
2626
2627 if test "x$ac_ct_CC" = x; then
2628 CC=""
2629 else
2630 case $cross_compiling:$ac_tool_warned in
2631 yes:)
2632 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2633 whose name does not start with the host triplet. If you think this
2634 configuration is useful to you, please write to autoconf@gnu.org." >&5
2635 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2636 whose name does not start with the host triplet. If you think this
2637 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2638 ac_tool_warned=yes ;;
2639 esac
2640 CC=$ac_ct_CC
2641 fi
2642 fi
2643
2644
2645 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2646 See \`config.log' for more details." >&5
2647 echo "$as_me: error: no acceptable C compiler found in \$PATH
2648 See \`config.log' for more details." >&2;}
2649 { (exit 1); exit 1; }; }
2650
2651 # Provide some information about the compiler.
2652 echo "$as_me:$LINENO: checking for C compiler version" >&5
2653 ac_compiler=`set X $ac_compile; echo $2`
2654 { (ac_try="$ac_compiler --version >&5"
2655 case "(($ac_try" in
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2658 esac
2659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660 (eval "$ac_compiler --version >&5") 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }
2664 { (ac_try="$ac_compiler -v >&5"
2665 case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668 esac
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compiler -v >&5") 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }
2674 { (ac_try="$ac_compiler -V >&5"
2675 case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678 esac
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680 (eval "$ac_compiler -V >&5") 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }
2684
2685 cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h. */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2691
2692 int
2693 main ()
2694 {
2695
2696 ;
2697 return 0;
2698 }
2699 _ACEOF
2700 ac_clean_files_save=$ac_clean_files
2701 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2702 # Try to create an executable without -o first, disregard a.out.
2703 # It will help us diagnose broken compilers, and finding out an intuition
2704 # of exeext.
2705 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2706 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2707 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2708 #
2709 # List of possible output files, starting from the most likely.
2710 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2711 # only as a last resort. b.out is created by i960 compilers.
2712 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2713 #
2714 # The IRIX 6 linker writes into existing files which may not be
2715 # executable, retaining their permissions. Remove them first so a
2716 # subsequent execution test works.
2717 ac_rmfiles=
2718 for ac_file in $ac_files
2719 do
2720 case $ac_file in
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2722 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2723 esac
2724 done
2725 rm -f $ac_rmfiles
2726
2727 if { (ac_try="$ac_link_default"
2728 case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_link_default") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; then
2737 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2738 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2739 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2740 # so that the user can short-circuit this test for compilers unknown to
2741 # Autoconf.
2742 for ac_file in $ac_files
2743 do
2744 test -f "$ac_file" || continue
2745 case $ac_file in
2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2747 ;;
2748 [ab].out )
2749 # We found the default executable, but exeext='' is most
2750 # certainly right.
2751 break;;
2752 *.* )
2753 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2754 then :; else
2755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2756 fi
2757 # We set ac_cv_exeext here because the later test for it is not
2758 # safe: cross compilers may not add the suffix if given an `-o'
2759 # argument, so we may need to know it at that point already.
2760 # Even if this section looks crufty: it has the advantage of
2761 # actually working.
2762 break;;
2763 * )
2764 break;;
2765 esac
2766 done
2767 test "$ac_cv_exeext" = no && ac_cv_exeext=
2768
2769 else
2770 echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2772
2773 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2774 See \`config.log' for more details." >&5
2775 echo "$as_me: error: C compiler cannot create executables
2776 See \`config.log' for more details." >&2;}
2777 { (exit 77); exit 77; }; }
2778 fi
2779
2780 ac_exeext=$ac_cv_exeext
2781 { echo "$as_me:$LINENO: result: $ac_file" >&5
2782 echo "${ECHO_T}$ac_file" >&6; }
2783
2784 # Check that the compiler produces executables we can run. If not, either
2785 # the compiler is broken, or we cross compile.
2786 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2787 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2788 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2789 # If not cross compiling, check that we can run a simple program.
2790 if test "$cross_compiling" != yes; then
2791 if { ac_try='./$ac_file'
2792 { (case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795 esac
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_try") 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 cross_compiling=no
2802 else
2803 if test "$cross_compiling" = maybe; then
2804 cross_compiling=yes
2805 else
2806 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2807 If you meant to cross compile, use \`--host'.
2808 See \`config.log' for more details." >&5
2809 echo "$as_me: error: cannot run C compiled programs.
2810 If you meant to cross compile, use \`--host'.
2811 See \`config.log' for more details." >&2;}
2812 { (exit 1); exit 1; }; }
2813 fi
2814 fi
2815 fi
2816 { echo "$as_me:$LINENO: result: yes" >&5
2817 echo "${ECHO_T}yes" >&6; }
2818
2819 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2820 ac_clean_files=$ac_clean_files_save
2821 # Check that the compiler produces executables we can run. If not, either
2822 # the compiler is broken, or we cross compile.
2823 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2824 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2825 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2826 echo "${ECHO_T}$cross_compiling" >&6; }
2827
2828 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2829 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2830 if { (ac_try="$ac_link"
2831 case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834 esac
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_link") 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; then
2840 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2841 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2842 # work properly (i.e., refer to `conftest.exe'), while it won't with
2843 # `rm'.
2844 for ac_file in conftest.exe conftest conftest.*; do
2845 test -f "$ac_file" || continue
2846 case $ac_file in
2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2848 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849 break;;
2850 * ) break;;
2851 esac
2852 done
2853 else
2854 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2857 See \`config.log' for more details." >&2;}
2858 { (exit 1); exit 1; }; }
2859 fi
2860
2861 rm -f conftest$ac_cv_exeext
2862 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2863 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2864
2865 rm -f conftest.$ac_ext
2866 EXEEXT=$ac_cv_exeext
2867 ac_exeext=$EXEEXT
2868 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2869 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2870 if test "${ac_cv_objext+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873 cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h. */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2879
2880 int
2881 main ()
2882 {
2883
2884 ;
2885 return 0;
2886 }
2887 _ACEOF
2888 rm -f conftest.o conftest.obj
2889 if { (ac_try="$ac_compile"
2890 case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_compile") 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; then
2899 for ac_file in conftest.o conftest.obj conftest.*; do
2900 test -f "$ac_file" || continue;
2901 case $ac_file in
2902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2903 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2904 break;;
2905 esac
2906 done
2907 else
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2914 See \`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }
2916 fi
2917
2918 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2919 fi
2920 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2921 echo "${ECHO_T}$ac_cv_objext" >&6; }
2922 OBJEXT=$ac_cv_objext
2923 ac_objext=$OBJEXT
2924 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2925 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2926 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929 cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h. */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2935
2936 int
2937 main ()
2938 {
2939 #ifndef __GNUC__
2940 choke me
2941 #endif
2942
2943 ;
2944 return 0;
2945 }
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (ac_try="$ac_compile"
2949 case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_try") 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_try") 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 ac_compiler_gnu=yes
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 ac_compiler_gnu=no
2987 fi
2988
2989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2991
2992 fi
2993 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2994 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2995 GCC=`test $ac_compiler_gnu = yes && echo yes`
2996 ac_test_CFLAGS=${CFLAGS+set}
2997 ac_save_CFLAGS=$CFLAGS
2998 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2999 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3000 if test "${ac_cv_prog_cc_g+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003 ac_save_c_werror_flag=$ac_c_werror_flag
3004 ac_c_werror_flag=yes
3005 ac_cv_prog_cc_g=no
3006 CFLAGS="-g"
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013
3014 int
3015 main ()
3016 {
3017
3018 ;
3019 return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3030 ac_status=$?
3031 grep -v '^ *+' conftest.er1 >conftest.err
3032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_try") 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 ac_cv_prog_cc_g=yes
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 CFLAGS=""
3062 cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h. */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3068
3069 int
3070 main ()
3071 {
3072
3073 ;
3074 return 0;
3075 }
3076 _ACEOF
3077 rm -f conftest.$ac_objext
3078 if { (ac_try="$ac_compile"
3079 case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_compile") 2>conftest.er1
3085 ac_status=$?
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3092 { (case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_try") 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; } &&
3101 { ac_try='test -s conftest.$ac_objext'
3102 { (case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_try") 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 :
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 ac_c_werror_flag=$ac_save_c_werror_flag
3117 CFLAGS="-g"
3118 cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h. */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3124
3125 int
3126 main ()
3127 {
3128
3129 ;
3130 return 0;
3131 }
3132 _ACEOF
3133 rm -f conftest.$ac_objext
3134 if { (ac_try="$ac_compile"
3135 case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_compile") 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151 esac
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_try") 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 ac_cv_prog_cc_g=yes
3168 else
3169 echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172
3173 fi
3174
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 fi
3177
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 fi
3180
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3183 fi
3184 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3185 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3186 if test "$ac_test_CFLAGS" = set; then
3187 CFLAGS=$ac_save_CFLAGS
3188 elif test $ac_cv_prog_cc_g = yes; then
3189 if test "$GCC" = yes; then
3190 CFLAGS="-g -O2"
3191 else
3192 CFLAGS="-g"
3193 fi
3194 else
3195 if test "$GCC" = yes; then
3196 CFLAGS="-O2"
3197 else
3198 CFLAGS=
3199 fi
3200 fi
3201 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3202 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3203 if test "${ac_cv_prog_cc_c89+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 ac_cv_prog_cc_c89=no
3207 ac_save_CC=$CC
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3214 #include <stdarg.h>
3215 #include <stdio.h>
3216 #include <sys/types.h>
3217 #include <sys/stat.h>
3218 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3219 struct buf { int x; };
3220 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3221 static char *e (p, i)
3222 char **p;
3223 int i;
3224 {
3225 return p[i];
3226 }
3227 static char *f (char * (*g) (char **, int), char **p, ...)
3228 {
3229 char *s;
3230 va_list v;
3231 va_start (v,p);
3232 s = g (p, va_arg (v,int));
3233 va_end (v);
3234 return s;
3235 }
3236
3237 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3238 function prototypes and stuff, but not '\xHH' hex character constants.
3239 These don't provoke an error unfortunately, instead are silently treated
3240 as 'x'. The following induces an error, until -std is added to get
3241 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3242 array size at least. It's necessary to write '\x00'==0 to get something
3243 that's true only with -std. */
3244 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3245
3246 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3247 inside strings and character constants. */
3248 #define FOO(x) 'x'
3249 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3250
3251 int test (int i, double x);
3252 struct s1 {int (*f) (int a);};
3253 struct s2 {int (*f) (double a);};
3254 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3255 int argc;
3256 char **argv;
3257 int
3258 main ()
3259 {
3260 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3261 ;
3262 return 0;
3263 }
3264 _ACEOF
3265 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3266 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3267 do
3268 CC="$ac_save_CC $ac_arg"
3269 rm -f conftest.$ac_objext
3270 if { (ac_try="$ac_compile"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_compile") 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
3283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3284 { (case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287 esac
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_try") 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try='test -s conftest.$ac_objext'
3294 { (case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297 esac
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_try") 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_cv_prog_cc_c89=$ac_arg
3304 else
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308
3309 fi
3310
3311 rm -f core conftest.err conftest.$ac_objext
3312 test "x$ac_cv_prog_cc_c89" != "xno" && break
3313 done
3314 rm -f conftest.$ac_ext
3315 CC=$ac_save_CC
3316
3317 fi
3318 # AC_CACHE_VAL
3319 case "x$ac_cv_prog_cc_c89" in
3320 x)
3321 { echo "$as_me:$LINENO: result: none needed" >&5
3322 echo "${ECHO_T}none needed" >&6; } ;;
3323 xno)
3324 { echo "$as_me:$LINENO: result: unsupported" >&5
3325 echo "${ECHO_T}unsupported" >&6; } ;;
3326 *)
3327 CC="$CC $ac_cv_prog_cc_c89"
3328 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3329 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3330 esac
3331
3332
3333 ac_ext=c
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 DEPDIR="${am__leading_dot}deps"
3339
3340 ac_config_commands="$ac_config_commands depfiles"
3341
3342
3343 am_make=${MAKE-make}
3344 cat > confinc << 'END'
3345 am__doit:
3346 @echo done
3347 .PHONY: am__doit
3348 END
3349 # If we don't find an include directive, just comment out the code.
3350 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3351 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3352 am__include="#"
3353 am__quote=
3354 _am_result=none
3355 # First try GNU make style include.
3356 echo "include confinc" > confmf
3357 # We grep out `Entering directory' and `Leaving directory'
3358 # messages which can occur if `w' ends up in MAKEFLAGS.
3359 # In particular we don't look at `^make:' because GNU make might
3360 # be invoked under some other name (usually "gmake"), in which
3361 # case it prints its new name instead of `make'.
3362 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3363 am__include=include
3364 am__quote=
3365 _am_result=GNU
3366 fi
3367 # Now try BSD make style include.
3368 if test "$am__include" = "#"; then
3369 echo '.include "confinc"' > confmf
3370 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3371 am__include=.include
3372 am__quote="\""
3373 _am_result=BSD
3374 fi
3375 fi
3376
3377
3378 { echo "$as_me:$LINENO: result: $_am_result" >&5
3379 echo "${ECHO_T}$_am_result" >&6; }
3380 rm -f confinc confmf
3381
3382 # Check whether --enable-dependency-tracking was given.
3383 if test "${enable_dependency_tracking+set}" = set; then
3384 enableval=$enable_dependency_tracking;
3385 fi
3386
3387 if test "x$enable_dependency_tracking" != xno; then
3388 am_depcomp="$ac_aux_dir/depcomp"
3389 AMDEPBACKSLASH='\'
3390 fi
3391
3392
3393 if test "x$enable_dependency_tracking" != xno; then
3394 AMDEP_TRUE=
3395 AMDEP_FALSE='#'
3396 else
3397 AMDEP_TRUE='#'
3398 AMDEP_FALSE=
3399 fi
3400
3401
3402
3403
3404 depcc="$CC" am_compiler_list=
3405
3406 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3408 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3412 # We make a subdir and do the tests there. Otherwise we can end up
3413 # making bogus files that we don't know about and never remove. For
3414 # instance it was reported that on HP-UX the gcc test will end up
3415 # making a dummy file named `D' -- because `-MD' means `put the output
3416 # in D'.
3417 mkdir conftest.dir
3418 # Copy depcomp to subdir because otherwise we won't find it if we're
3419 # using a relative directory.
3420 cp "$am_depcomp" conftest.dir
3421 cd conftest.dir
3422 # We will build objects and dependencies in a subdirectory because
3423 # it helps to detect inapplicable dependency modes. For instance
3424 # both Tru64's cc and ICC support -MD to output dependencies as a
3425 # side effect of compilation, but ICC will put the dependencies in
3426 # the current directory while Tru64 will put them in the object
3427 # directory.
3428 mkdir sub
3429
3430 am_cv_CC_dependencies_compiler_type=none
3431 if test "$am_compiler_list" = ""; then
3432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3433 fi
3434 for depmode in $am_compiler_list; do
3435 # Setup a source with many dependencies, because some compilers
3436 # like to wrap large dependency lists on column 80 (with \), and
3437 # we should not choose a depcomp mode which is confused by this.
3438 #
3439 # We need to recreate these files for each test, as the compiler may
3440 # overwrite some of them when testing with obscure command lines.
3441 # This happens at least with the AIX C compiler.
3442 : > sub/conftest.c
3443 for i in 1 2 3 4 5 6; do
3444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3446 # Solaris 8's {/usr,}/bin/sh.
3447 touch sub/conftst$i.h
3448 done
3449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3450
3451 case $depmode in
3452 nosideeffect)
3453 # after this tag, mechanisms are not by side-effect, so they'll
3454 # only be used when explicitly requested
3455 if test "x$enable_dependency_tracking" = xyes; then
3456 continue
3457 else
3458 break
3459 fi
3460 ;;
3461 none) break ;;
3462 esac
3463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3464 # mode. It turns out that the SunPro C++ compiler does not properly
3465 # handle `-M -o', and we need to detect this.
3466 if depmode=$depmode \
3467 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3469 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3470 >/dev/null 2>conftest.err &&
3471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3472 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3474 # icc doesn't choke on unknown options, it will just issue warnings
3475 # or remarks (even with -Werror). So we grep stderr for any message
3476 # that says an option was ignored or not supported.
3477 # When given -MP, icc 7.0 and 7.1 complain thusly:
3478 # icc: Command line warning: ignoring option '-M'; no argument required
3479 # The diagnosis changed in icc 8.0:
3480 # icc: Command line remark: option '-MP' not supported
3481 if (grep 'ignoring option' conftest.err ||
3482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3483 am_cv_CC_dependencies_compiler_type=$depmode
3484 break
3485 fi
3486 fi
3487 done
3488
3489 cd ..
3490 rm -rf conftest.dir
3491 else
3492 am_cv_CC_dependencies_compiler_type=none
3493 fi
3494
3495 fi
3496 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3497 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3498 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3499
3500
3501
3502 if
3503 test "x$enable_dependency_tracking" != xno \
3504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3505 am__fastdepCC_TRUE=
3506 am__fastdepCC_FALSE='#'
3507 else
3508 am__fastdepCC_TRUE='#'
3509 am__fastdepCC_FALSE=
3510 fi
3511
3512
3513 # Find a good install program. We prefer a C program (faster),
3514 # so one script is as good as another. But avoid the broken or
3515 # incompatible versions:
3516 # SysV /etc/install, /usr/sbin/install
3517 # SunOS /usr/etc/install
3518 # IRIX /sbin/install
3519 # AIX /bin/install
3520 # AmigaOS /C/install, which installs bootblocks on floppy discs
3521 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3522 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3523 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3524 # OS/2's system install, which has a completely different semantic
3525 # ./install, which can be erroneously created by make from ./install.sh.
3526 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3527 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3528 if test -z "$INSTALL"; then
3529 if test "${ac_cv_path_install+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 # Account for people who put trailing slashes in PATH elements.
3538 case $as_dir/ in
3539 ./ | .// | /cC/* | \
3540 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3541 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3542 /usr/ucb/* ) ;;
3543 *)
3544 # OSF1 and SCO ODT 3.0 have their own names for install.
3545 # Don't use installbsd from OSF since it installs stuff as root
3546 # by default.
3547 for ac_prog in ginstall scoinst install; do
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3550 if test $ac_prog = install &&
3551 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3552 # AIX install. It has an incompatible calling convention.
3553 :
3554 elif test $ac_prog = install &&
3555 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3556 # program-specific install script used by HP pwplus--don't use.
3557 :
3558 else
3559 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3560 break 3
3561 fi
3562 fi
3563 done
3564 done
3565 ;;
3566 esac
3567 done
3568 IFS=$as_save_IFS
3569
3570
3571 fi
3572 if test "${ac_cv_path_install+set}" = set; then
3573 INSTALL=$ac_cv_path_install
3574 else
3575 # As a last resort, use the slow shell script. Don't cache a
3576 # value for INSTALL within a source directory, because that will
3577 # break other packages using the cache if that directory is
3578 # removed, or if the value is a relative name.
3579 INSTALL=$ac_install_sh
3580 fi
3581 fi
3582 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3583 echo "${ECHO_T}$INSTALL" >&6; }
3584
3585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3586 # It thinks the first close brace ends the variable substitution.
3587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3588
3589 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3590
3591 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3592
3593 # Check whether --enable-shared was given.
3594 if test "${enable_shared+set}" = set; then
3595 enableval=$enable_shared; p=${PACKAGE-default}
3596 case $enableval in
3597 yes) enable_shared=yes ;;
3598 no) enable_shared=no ;;
3599 *)
3600 enable_shared=no
3601 # Look at the argument we got. We use all the common list separators.
3602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3603 for pkg in $enableval; do
3604 IFS="$lt_save_ifs"
3605 if test "X$pkg" = "X$p"; then
3606 enable_shared=yes
3607 fi
3608 done
3609 IFS="$lt_save_ifs"
3610 ;;
3611 esac
3612 else
3613 enable_shared=yes
3614 fi
3615
3616
3617 # Check whether --enable-static was given.
3618 if test "${enable_static+set}" = set; then
3619 enableval=$enable_static; p=${PACKAGE-default}
3620 case $enableval in
3621 yes) enable_static=yes ;;
3622 no) enable_static=no ;;
3623 *)
3624 enable_static=no
3625 # Look at the argument we got. We use all the common list separators.
3626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3627 for pkg in $enableval; do
3628 IFS="$lt_save_ifs"
3629 if test "X$pkg" = "X$p"; then
3630 enable_static=yes
3631 fi
3632 done
3633 IFS="$lt_save_ifs"
3634 ;;
3635 esac
3636 else
3637 enable_static=yes
3638 fi
3639
3640
3641 # Check whether --enable-fast-install was given.
3642 if test "${enable_fast_install+set}" = set; then
3643 enableval=$enable_fast_install; p=${PACKAGE-default}
3644 case $enableval in
3645 yes) enable_fast_install=yes ;;
3646 no) enable_fast_install=no ;;
3647 *)
3648 enable_fast_install=no
3649 # Look at the argument we got. We use all the common list separators.
3650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3651 for pkg in $enableval; do
3652 IFS="$lt_save_ifs"
3653 if test "X$pkg" = "X$p"; then
3654 enable_fast_install=yes
3655 fi
3656 done
3657 IFS="$lt_save_ifs"
3658 ;;
3659 esac
3660 else
3661 enable_fast_install=yes
3662 fi
3663
3664
3665 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3666 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3667 if test "${lt_cv_path_SED+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 # Loop through the user's path and test for sed and gsed.
3671 # Then use that list of sed's as ones to test for truncation.
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 for lt_ac_prog in sed gsed; do
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3680 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3681 fi
3682 done
3683 done
3684 done
3685 lt_ac_max=0
3686 lt_ac_count=0
3687 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3688 # along with /bin/sed that truncates output.
3689 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3690 test ! -f $lt_ac_sed && continue
3691 cat /dev/null > conftest.in
3692 lt_ac_count=0
3693 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3694 # Check for GNU sed and select it if it is found.
3695 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3696 lt_cv_path_SED=$lt_ac_sed
3697 break
3698 fi
3699 while true; do
3700 cat conftest.in conftest.in >conftest.tmp
3701 mv conftest.tmp conftest.in
3702 cp conftest.in conftest.nl
3703 echo >>conftest.nl
3704 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3705 cmp -s conftest.out conftest.nl || break
3706 # 10000 chars as input seems more than enough
3707 test $lt_ac_count -gt 10 && break
3708 lt_ac_count=`expr $lt_ac_count + 1`
3709 if test $lt_ac_count -gt $lt_ac_max; then
3710 lt_ac_max=$lt_ac_count
3711 lt_cv_path_SED=$lt_ac_sed
3712 fi
3713 done
3714 done
3715
3716 fi
3717
3718 SED=$lt_cv_path_SED
3719 { echo "$as_me:$LINENO: result: $SED" >&5
3720 echo "${ECHO_T}$SED" >&6; }
3721
3722 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3723 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3724 if test "${ac_cv_path_GREP+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 # Extract the first word of "grep ggrep" to use in msg output
3728 if test -z "$GREP"; then
3729 set dummy grep ggrep; ac_prog_name=$2
3730 if test "${ac_cv_path_GREP+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733 ac_path_GREP_found=false
3734 # Loop through the user's path and test for each of PROGNAME-LIST
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3737 do
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_prog in grep ggrep; do
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3743 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3744 # Check for GNU ac_path_GREP and select it if it is found.
3745 # Check for GNU $ac_path_GREP
3746 case `"$ac_path_GREP" --version 2>&1` in
3747 *GNU*)
3748 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3749 *)
3750 ac_count=0
3751 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3752 while :
3753 do
3754 cat "conftest.in" "conftest.in" >"conftest.tmp"
3755 mv "conftest.tmp" "conftest.in"
3756 cp "conftest.in" "conftest.nl"
3757 echo 'GREP' >> "conftest.nl"
3758 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3760 ac_count=`expr $ac_count + 1`
3761 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3762 # Best one so far, save it but keep looking for a better one
3763 ac_cv_path_GREP="$ac_path_GREP"
3764 ac_path_GREP_max=$ac_count
3765 fi
3766 # 10*(2^10) chars as input seems more than enough
3767 test $ac_count -gt 10 && break
3768 done
3769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3770 esac
3771
3772
3773 $ac_path_GREP_found && break 3
3774 done
3775 done
3776
3777 done
3778 IFS=$as_save_IFS
3779
3780
3781 fi
3782
3783 GREP="$ac_cv_path_GREP"
3784 if test -z "$GREP"; then
3785 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3786 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3787 { (exit 1); exit 1; }; }
3788 fi
3789
3790 else
3791 ac_cv_path_GREP=$GREP
3792 fi
3793
3794
3795 fi
3796 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3797 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3798 GREP="$ac_cv_path_GREP"
3799
3800
3801 { echo "$as_me:$LINENO: checking for egrep" >&5
3802 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3803 if test "${ac_cv_path_EGREP+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3807 then ac_cv_path_EGREP="$GREP -E"
3808 else
3809 # Extract the first word of "egrep" to use in msg output
3810 if test -z "$EGREP"; then
3811 set dummy egrep; ac_prog_name=$2
3812 if test "${ac_cv_path_EGREP+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815 ac_path_EGREP_found=false
3816 # Loop through the user's path and test for each of PROGNAME-LIST
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3819 do
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_prog in egrep; do
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3825 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3826 # Check for GNU ac_path_EGREP and select it if it is found.
3827 # Check for GNU $ac_path_EGREP
3828 case `"$ac_path_EGREP" --version 2>&1` in
3829 *GNU*)
3830 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3831 *)
3832 ac_count=0
3833 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3834 while :
3835 do
3836 cat "conftest.in" "conftest.in" >"conftest.tmp"
3837 mv "conftest.tmp" "conftest.in"
3838 cp "conftest.in" "conftest.nl"
3839 echo 'EGREP' >> "conftest.nl"
3840 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3842 ac_count=`expr $ac_count + 1`
3843 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3844 # Best one so far, save it but keep looking for a better one
3845 ac_cv_path_EGREP="$ac_path_EGREP"
3846 ac_path_EGREP_max=$ac_count
3847 fi
3848 # 10*(2^10) chars as input seems more than enough
3849 test $ac_count -gt 10 && break
3850 done
3851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3852 esac
3853
3854
3855 $ac_path_EGREP_found && break 3
3856 done
3857 done
3858
3859 done
3860 IFS=$as_save_IFS
3861
3862
3863 fi
3864
3865 EGREP="$ac_cv_path_EGREP"
3866 if test -z "$EGREP"; then
3867 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3868 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3869 { (exit 1); exit 1; }; }
3870 fi
3871
3872 else
3873 ac_cv_path_EGREP=$EGREP
3874 fi
3875
3876
3877 fi
3878 fi
3879 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3880 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3881 EGREP="$ac_cv_path_EGREP"
3882
3883
3884
3885 # Check whether --with-gnu-ld was given.
3886 if test "${with_gnu_ld+set}" = set; then
3887 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3888 else
3889 with_gnu_ld=no
3890 fi
3891
3892 ac_prog=ld
3893 if test "$GCC" = yes; then
3894 # Check if gcc -print-prog-name=ld gives a path.
3895 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3896 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3897 case $host in
3898 *-*-mingw*)
3899 # gcc leaves a trailing carriage return which upsets mingw
3900 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3901 *)
3902 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3903 esac
3904 case $ac_prog in
3905 # Accept absolute paths.
3906 [\\/]* | ?:[\\/]*)
3907 re_direlt='/[^/][^/]*/\.\./'
3908 # Canonicalize the pathname of ld
3909 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3910 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3911 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3912 done
3913 test -z "$LD" && LD="$ac_prog"
3914 ;;
3915 "")
3916 # If it fails, then pretend we aren't using GCC.
3917 ac_prog=ld
3918 ;;
3919 *)
3920 # If it is relative, then search for the first ld in PATH.
3921 with_gnu_ld=unknown
3922 ;;
3923 esac
3924 elif test "$with_gnu_ld" = yes; then
3925 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3926 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3927 else
3928 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3929 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3930 fi
3931 if test "${lt_cv_path_LD+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 if test -z "$LD"; then
3935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3936 for ac_dir in $PATH; do
3937 IFS="$lt_save_ifs"
3938 test -z "$ac_dir" && ac_dir=.
3939 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3940 lt_cv_path_LD="$ac_dir/$ac_prog"
3941 # Check to see if the program is GNU ld. I'd rather use --version,
3942 # but apparently some variants of GNU ld only accept -v.
3943 # Break only if it was the GNU/non-GNU ld that we prefer.
3944 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3945 *GNU* | *'with BFD'*)
3946 test "$with_gnu_ld" != no && break
3947 ;;
3948 *)
3949 test "$with_gnu_ld" != yes && break
3950 ;;
3951 esac
3952 fi
3953 done
3954 IFS="$lt_save_ifs"
3955 else
3956 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3957 fi
3958 fi
3959
3960 LD="$lt_cv_path_LD"
3961 if test -n "$LD"; then
3962 { echo "$as_me:$LINENO: result: $LD" >&5
3963 echo "${ECHO_T}$LD" >&6; }
3964 else
3965 { echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6; }
3967 fi
3968 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3969 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3970 { (exit 1); exit 1; }; }
3971 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3972 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3973 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3977 case `$LD -v 2>&1 </dev/null` in
3978 *GNU* | *'with BFD'*)
3979 lt_cv_prog_gnu_ld=yes
3980 ;;
3981 *)
3982 lt_cv_prog_gnu_ld=no
3983 ;;
3984 esac
3985 fi
3986 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3987 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3988 with_gnu_ld=$lt_cv_prog_gnu_ld
3989
3990
3991 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3992 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3993 if test "${lt_cv_ld_reload_flag+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 lt_cv_ld_reload_flag='-r'
3997 fi
3998 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3999 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4000 reload_flag=$lt_cv_ld_reload_flag
4001 case $reload_flag in
4002 "" | " "*) ;;
4003 *) reload_flag=" $reload_flag" ;;
4004 esac
4005 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4006 case $host_os in
4007 darwin*)
4008 if test "$GCC" = yes; then
4009 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4010 else
4011 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4012 fi
4013 ;;
4014 esac
4015
4016 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4017 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4018 if test "${lt_cv_path_NM+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 if test -n "$NM"; then
4022 # Let the user override the test.
4023 lt_cv_path_NM="$NM"
4024 else
4025 lt_nm_to_check="${ac_tool_prefix}nm"
4026 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4027 lt_nm_to_check="$lt_nm_to_check nm"
4028 fi
4029 for lt_tmp_nm in $lt_nm_to_check; do
4030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4031 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4032 IFS="$lt_save_ifs"
4033 test -z "$ac_dir" && ac_dir=.
4034 tmp_nm="$ac_dir/$lt_tmp_nm"
4035 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4036 # Check to see if the nm accepts a BSD-compat flag.
4037 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4038 # nm: unknown option "B" ignored
4039 # Tru64's nm complains that /dev/null is an invalid object file
4040 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4041 */dev/null* | *'Invalid file or object type'*)
4042 lt_cv_path_NM="$tmp_nm -B"
4043 break
4044 ;;
4045 *)
4046 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4047 */dev/null*)
4048 lt_cv_path_NM="$tmp_nm -p"
4049 break
4050 ;;
4051 *)
4052 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4053 continue # so that we can try to find one that supports BSD flags
4054 ;;
4055 esac
4056 ;;
4057 esac
4058 fi
4059 done
4060 IFS="$lt_save_ifs"
4061 done
4062 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4063 fi
4064 fi
4065 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4066 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4067 NM="$lt_cv_path_NM"
4068
4069 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4070 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4071 LN_S=$as_ln_s
4072 if test "$LN_S" = "ln -s"; then
4073 { echo "$as_me:$LINENO: result: yes" >&5
4074 echo "${ECHO_T}yes" >&6; }
4075 else
4076 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4077 echo "${ECHO_T}no, using $LN_S" >&6; }
4078 fi
4079
4080 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4081 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4082 if test "${lt_cv_deplibs_check_method+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085 lt_cv_file_magic_cmd='$MAGIC_CMD'
4086 lt_cv_file_magic_test_file=
4087 lt_cv_deplibs_check_method='unknown'
4088 # Need to set the preceding variable on all platforms that support
4089 # interlibrary dependencies.
4090 # 'none' -- dependencies not supported.
4091 # `unknown' -- same as none, but documents that we really don't know.
4092 # 'pass_all' -- all dependencies passed with no checks.
4093 # 'test_compile' -- check by making test program.
4094 # 'file_magic [[regex]]' -- check by looking for files in library path
4095 # which responds to the $file_magic_cmd with a given extended regex.
4096 # If you have `file' or equivalent on your system and you're not sure
4097 # whether `pass_all' will *always* work, you probably want this one.
4098
4099 case $host_os in
4100 aix4* | aix5*)
4101 lt_cv_deplibs_check_method=pass_all
4102 ;;
4103
4104 beos*)
4105 lt_cv_deplibs_check_method=pass_all
4106 ;;
4107
4108 bsdi[45]*)
4109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4110 lt_cv_file_magic_cmd='/usr/bin/file -L'
4111 lt_cv_file_magic_test_file=/shlib/libc.so
4112 ;;
4113
4114 cygwin*)
4115 # func_win32_libid is a shell function defined in ltmain.sh
4116 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4117 lt_cv_file_magic_cmd='func_win32_libid'
4118 ;;
4119
4120 mingw* | pw32*)
4121 # Base MSYS/MinGW do not provide the 'file' command needed by
4122 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4123 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4124 lt_cv_file_magic_cmd='$OBJDUMP -f'
4125 ;;
4126
4127 darwin* | rhapsody*)
4128 lt_cv_deplibs_check_method=pass_all
4129 ;;
4130
4131 freebsd* | kfreebsd*-gnu | dragonfly*)
4132 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4133 case $host_cpu in
4134 i*86 )
4135 # Not sure whether the presence of OpenBSD here was a mistake.
4136 # Let's accept both of them until this is cleared up.
4137 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4138 lt_cv_file_magic_cmd=/usr/bin/file
4139 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4140 ;;
4141 esac
4142 else
4143 lt_cv_deplibs_check_method=pass_all
4144 fi
4145 ;;
4146
4147 gnu*)
4148 lt_cv_deplibs_check_method=pass_all
4149 ;;
4150
4151 hpux10.20* | hpux11*)
4152 lt_cv_file_magic_cmd=/usr/bin/file
4153 case $host_cpu in
4154 ia64*)
4155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4156 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4157 ;;
4158 hppa*64*)
4159 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4160 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4161 ;;
4162 *)
4163 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4164 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4165 ;;
4166 esac
4167 ;;
4168
4169 interix3*)
4170 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4172 ;;
4173
4174 irix5* | irix6* | nonstopux*)
4175 case $LD in
4176 *-32|*"-32 ") libmagic=32-bit;;
4177 *-n32|*"-n32 ") libmagic=N32;;
4178 *-64|*"-64 ") libmagic=64-bit;;
4179 *) libmagic=never-match;;
4180 esac
4181 lt_cv_deplibs_check_method=pass_all
4182 ;;
4183
4184 # This must be Linux ELF.
4185 linux*)
4186 lt_cv_deplibs_check_method=pass_all
4187 ;;
4188
4189 netbsd*)
4190 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4192 else
4193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4194 fi
4195 ;;
4196
4197 newos6*)
4198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4199 lt_cv_file_magic_cmd=/usr/bin/file
4200 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4201 ;;
4202
4203 nto-qnx*)
4204 lt_cv_deplibs_check_method=unknown
4205 ;;
4206
4207 openbsd*)
4208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4210 else
4211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4212 fi
4213 ;;
4214
4215 osf3* | osf4* | osf5*)
4216 lt_cv_deplibs_check_method=pass_all
4217 ;;
4218
4219 solaris*)
4220 lt_cv_deplibs_check_method=pass_all
4221 ;;
4222
4223 sysv4 | sysv4.3*)
4224 case $host_vendor in
4225 motorola)
4226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4228 ;;
4229 ncr)
4230 lt_cv_deplibs_check_method=pass_all
4231 ;;
4232 sequent)
4233 lt_cv_file_magic_cmd='/bin/file'
4234 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4235 ;;
4236 sni)
4237 lt_cv_file_magic_cmd='/bin/file'
4238 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4239 lt_cv_file_magic_test_file=/lib/libc.so
4240 ;;
4241 siemens)
4242 lt_cv_deplibs_check_method=pass_all
4243 ;;
4244 pc)
4245 lt_cv_deplibs_check_method=pass_all
4246 ;;
4247 esac
4248 ;;
4249
4250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4251 lt_cv_deplibs_check_method=pass_all
4252 ;;
4253 esac
4254
4255 fi
4256 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4257 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4258 file_magic_cmd=$lt_cv_file_magic_cmd
4259 deplibs_check_method=$lt_cv_deplibs_check_method
4260 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4261
4262
4263
4264
4265 # If no C compiler was specified, use CC.
4266 LTCC=${LTCC-"$CC"}
4267
4268 # If no C compiler flags were specified, use CFLAGS.
4269 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4270
4271 # Allow CC to be a program name with arguments.
4272 compiler=$CC
4273
4274
4275 # Check whether --enable-libtool-lock was given.
4276 if test "${enable_libtool_lock+set}" = set; then
4277 enableval=$enable_libtool_lock;
4278 fi
4279
4280 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4281
4282 # Some flags need to be propagated to the compiler or linker for good
4283 # libtool support.
4284 case $host in
4285 ia64-*-hpux*)
4286 # Find out which ABI we are using.
4287 echo 'int i;' > conftest.$ac_ext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; then
4293 case `/usr/bin/file conftest.$ac_objext` in
4294 *ELF-32*)
4295 HPUX_IA64_MODE="32"
4296 ;;
4297 *ELF-64*)
4298 HPUX_IA64_MODE="64"
4299 ;;
4300 esac
4301 fi
4302 rm -rf conftest*
4303 ;;
4304 *-*-irix6*)
4305 # Find out which ABI we are using.
4306 echo '#line 4306 "configure"' > conftest.$ac_ext
4307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4308 (eval $ac_compile) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; then
4312 if test "$lt_cv_prog_gnu_ld" = yes; then
4313 case `/usr/bin/file conftest.$ac_objext` in
4314 *32-bit*)
4315 LD="${LD-ld} -melf32bsmip"
4316 ;;
4317 *N32*)
4318 LD="${LD-ld} -melf32bmipn32"
4319 ;;
4320 *64-bit*)
4321 LD="${LD-ld} -melf64bmip"
4322 ;;
4323 esac
4324 else
4325 case `/usr/bin/file conftest.$ac_objext` in
4326 *32-bit*)
4327 LD="${LD-ld} -32"
4328 ;;
4329 *N32*)
4330 LD="${LD-ld} -n32"
4331 ;;
4332 *64-bit*)
4333 LD="${LD-ld} -64"
4334 ;;
4335 esac
4336 fi
4337 fi
4338 rm -rf conftest*
4339 ;;
4340
4341 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4342 # Find out which ABI we are using.
4343 echo 'int i;' > conftest.$ac_ext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; then
4349 case `/usr/bin/file conftest.o` in
4350 *32-bit*)
4351 case $host in
4352 x86_64-*linux*)
4353 LD="${LD-ld} -m elf_i386"
4354 ;;
4355 ppc64-*linux*|powerpc64-*linux*)
4356 LD="${LD-ld} -m elf32ppclinux"
4357 ;;
4358 s390x-*linux*)
4359 LD="${LD-ld} -m elf_s390"
4360 ;;
4361 sparc64-*linux*)
4362 LD="${LD-ld} -m elf32_sparc"
4363 ;;
4364 esac
4365 ;;
4366 *64-bit*)
4367 case $host in
4368 x86_64-*linux*)
4369 LD="${LD-ld} -m elf_x86_64"
4370 ;;
4371 ppc*-*linux*|powerpc*-*linux*)
4372 LD="${LD-ld} -m elf64ppc"
4373 ;;
4374 s390*-*linux*)
4375 LD="${LD-ld} -m elf64_s390"
4376 ;;
4377 sparc*-*linux*)
4378 LD="${LD-ld} -m elf64_sparc"
4379 ;;
4380 esac
4381 ;;
4382 esac
4383 fi
4384 rm -rf conftest*
4385 ;;
4386
4387 *-*-sco3.2v5*)
4388 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4389 SAVE_CFLAGS="$CFLAGS"
4390 CFLAGS="$CFLAGS -belf"
4391 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4392 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4393 if test "${lt_cv_cc_needs_belf+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396 ac_ext=c
4397 ac_cpp='$CPP $CPPFLAGS'
4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408
4409 int
4410 main ()
4411 {
4412
4413 ;
4414 return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest.$ac_objext conftest$ac_exeext
4418 if { (ac_try="$ac_link"
4419 case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_link") 2>conftest.er1
4425 ac_status=$?
4426 grep -v '^ *+' conftest.er1 >conftest.err
4427 rm -f conftest.er1
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } &&
4431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4432 { (case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_try") 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try='test -s conftest$ac_exeext'
4442 { (case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445 esac
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_try") 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; }; then
4451 lt_cv_cc_needs_belf=yes
4452 else
4453 echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4455
4456 lt_cv_cc_needs_belf=no
4457 fi
4458
4459 rm -f core conftest.err conftest.$ac_objext \
4460 conftest$ac_exeext conftest.$ac_ext
4461 ac_ext=c
4462 ac_cpp='$CPP $CPPFLAGS'
4463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4466
4467 fi
4468 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4469 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4470 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4471 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4472 CFLAGS="$SAVE_CFLAGS"
4473 fi
4474 ;;
4475 sparc*-*solaris*)
4476 # Find out which ABI we are using.
4477 echo 'int i;' > conftest.$ac_ext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; then
4483 case `/usr/bin/file conftest.o` in
4484 *64-bit*)
4485 case $lt_cv_prog_gnu_ld in
4486 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4487 *) LD="${LD-ld} -64" ;;
4488 esac
4489 ;;
4490 esac
4491 fi
4492 rm -rf conftest*
4493 ;;
4494
4495
4496 esac
4497
4498 need_locks="$enable_libtool_lock"
4499
4500
4501 ac_ext=c
4502 ac_cpp='$CPP $CPPFLAGS'
4503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4507 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4508 # On Suns, sometimes $CPP names a directory.
4509 if test -n "$CPP" && test -d "$CPP"; then
4510 CPP=
4511 fi
4512 if test -z "$CPP"; then
4513 if test "${ac_cv_prog_CPP+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516 # Double quotes because CPP needs to be expanded
4517 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4518 do
4519 ac_preproc_ok=false
4520 for ac_c_preproc_warn_flag in '' yes
4521 do
4522 # Use a header file that comes with gcc, so configuring glibc
4523 # with a fresh cross-compiler works.
4524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4525 # <limits.h> exists even on freestanding compilers.
4526 # On the NeXT, cc -E runs the code through the compiler's parser,
4527 # not just through cpp. "Syntax error" is here to catch this case.
4528 cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h. */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 #ifdef __STDC__
4535 # include <limits.h>
4536 #else
4537 # include <assert.h>
4538 #endif
4539 Syntax error
4540 _ACEOF
4541 if { (ac_try="$ac_cpp conftest.$ac_ext"
4542 case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545 esac
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4548 ac_status=$?
4549 grep -v '^ *+' conftest.er1 >conftest.err
4550 rm -f conftest.er1
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } >/dev/null; then
4554 if test -s conftest.err; then
4555 ac_cpp_err=$ac_c_preproc_warn_flag
4556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4557 else
4558 ac_cpp_err=
4559 fi
4560 else
4561 ac_cpp_err=yes
4562 fi
4563 if test -z "$ac_cpp_err"; then
4564 :
4565 else
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 # Broken: fails on valid input.
4570 continue
4571 fi
4572
4573 rm -f conftest.err conftest.$ac_ext
4574
4575 # OK, works on sane cases. Now check whether nonexistent headers
4576 # can be detected and how.
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h. */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #include <ac_nonexistent.h>
4584 _ACEOF
4585 if { (ac_try="$ac_cpp conftest.$ac_ext"
4586 case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4589 esac
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4592 ac_status=$?
4593 grep -v '^ *+' conftest.er1 >conftest.err
4594 rm -f conftest.er1
4595 cat conftest.err >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } >/dev/null; then
4598 if test -s conftest.err; then
4599 ac_cpp_err=$ac_c_preproc_warn_flag
4600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4601 else
4602 ac_cpp_err=
4603 fi
4604 else
4605 ac_cpp_err=yes
4606 fi
4607 if test -z "$ac_cpp_err"; then
4608 # Broken: success on invalid input.
4609 continue
4610 else
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4613
4614 # Passes both tests.
4615 ac_preproc_ok=:
4616 break
4617 fi
4618
4619 rm -f conftest.err conftest.$ac_ext
4620
4621 done
4622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4623 rm -f conftest.err conftest.$ac_ext
4624 if $ac_preproc_ok; then
4625 break
4626 fi
4627
4628 done
4629 ac_cv_prog_CPP=$CPP
4630
4631 fi
4632 CPP=$ac_cv_prog_CPP
4633 else
4634 ac_cv_prog_CPP=$CPP
4635 fi
4636 { echo "$as_me:$LINENO: result: $CPP" >&5
4637 echo "${ECHO_T}$CPP" >&6; }
4638 ac_preproc_ok=false
4639 for ac_c_preproc_warn_flag in '' yes
4640 do
4641 # Use a header file that comes with gcc, so configuring glibc
4642 # with a fresh cross-compiler works.
4643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4644 # <limits.h> exists even on freestanding compilers.
4645 # On the NeXT, cc -E runs the code through the compiler's parser,
4646 # not just through cpp. "Syntax error" is here to catch this case.
4647 cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h. */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 #ifdef __STDC__
4654 # include <limits.h>
4655 #else
4656 # include <assert.h>
4657 #endif
4658 Syntax error
4659 _ACEOF
4660 if { (ac_try="$ac_cpp conftest.$ac_ext"
4661 case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664 esac
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } >/dev/null; then
4673 if test -s conftest.err; then
4674 ac_cpp_err=$ac_c_preproc_warn_flag
4675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4676 else
4677 ac_cpp_err=
4678 fi
4679 else
4680 ac_cpp_err=yes
4681 fi
4682 if test -z "$ac_cpp_err"; then
4683 :
4684 else
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 # Broken: fails on valid input.
4689 continue
4690 fi
4691
4692 rm -f conftest.err conftest.$ac_ext
4693
4694 # OK, works on sane cases. Now check whether nonexistent headers
4695 # can be detected and how.
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h. */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 #include <ac_nonexistent.h>
4703 _ACEOF
4704 if { (ac_try="$ac_cpp conftest.$ac_ext"
4705 case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4708 esac
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } >/dev/null; then
4717 if test -s conftest.err; then
4718 ac_cpp_err=$ac_c_preproc_warn_flag
4719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4720 else
4721 ac_cpp_err=
4722 fi
4723 else
4724 ac_cpp_err=yes
4725 fi
4726 if test -z "$ac_cpp_err"; then
4727 # Broken: success on invalid input.
4728 continue
4729 else
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733 # Passes both tests.
4734 ac_preproc_ok=:
4735 break
4736 fi
4737
4738 rm -f conftest.err conftest.$ac_ext
4739
4740 done
4741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4742 rm -f conftest.err conftest.$ac_ext
4743 if $ac_preproc_ok; then
4744 :
4745 else
4746 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4747 See \`config.log' for more details." >&5
4748 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4749 See \`config.log' for more details." >&2;}
4750 { (exit 1); exit 1; }; }
4751 fi
4752
4753 ac_ext=c
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758
4759
4760 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4761 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4762 if test "${ac_cv_header_stdc+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765 cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h. */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 #include <stdlib.h>
4772 #include <stdarg.h>
4773 #include <string.h>
4774 #include <float.h>
4775
4776 int
4777 main ()
4778 {
4779
4780 ;
4781 return 0;
4782 }
4783 _ACEOF
4784 rm -f conftest.$ac_objext
4785 if { (ac_try="$ac_compile"
4786 case "(($ac_try" in
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4789 esac
4790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4791 (eval "$ac_compile") 2>conftest.er1
4792 ac_status=$?
4793 grep -v '^ *+' conftest.er1 >conftest.err
4794 rm -f conftest.er1
4795 cat conftest.err >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4799 { (case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4802 esac
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804 (eval "$ac_try") 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest.$ac_objext'
4809 { (case "(($ac_try" in
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4812 esac
4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814 (eval "$ac_try") 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 ac_cv_header_stdc=yes
4819 else
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 ac_cv_header_stdc=no
4824 fi
4825
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827
4828 if test $ac_cv_header_stdc = yes; then
4829 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 #include <string.h>
4837
4838 _ACEOF
4839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4840 $EGREP "memchr" >/dev/null 2>&1; then
4841 :
4842 else
4843 ac_cv_header_stdc=no
4844 fi
4845 rm -f conftest*
4846
4847 fi
4848
4849 if test $ac_cv_header_stdc = yes; then
4850 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4851 cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h. */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 #include <stdlib.h>
4858
4859 _ACEOF
4860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4861 $EGREP "free" >/dev/null 2>&1; then
4862 :
4863 else
4864 ac_cv_header_stdc=no
4865 fi
4866 rm -f conftest*
4867
4868 fi
4869
4870 if test $ac_cv_header_stdc = yes; then
4871 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4872 if test "$cross_compiling" = yes; then
4873 :
4874 else
4875 cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h. */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4881 #include <ctype.h>
4882 #include <stdlib.h>
4883 #if ((' ' & 0x0FF) == 0x020)
4884 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4885 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4886 #else
4887 # define ISLOWER(c) \
4888 (('a' <= (c) && (c) <= 'i') \
4889 || ('j' <= (c) && (c) <= 'r') \
4890 || ('s' <= (c) && (c) <= 'z'))
4891 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4892 #endif
4893
4894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4895 int
4896 main ()
4897 {
4898 int i;
4899 for (i = 0; i < 256; i++)
4900 if (XOR (islower (i), ISLOWER (i))
4901 || toupper (i) != TOUPPER (i))
4902 return 2;
4903 return 0;
4904 }
4905 _ACEOF
4906 rm -f conftest$ac_exeext
4907 if { (ac_try="$ac_link"
4908 case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911 esac
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913 (eval "$ac_link") 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4917 { (case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920 esac
4921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922 (eval "$ac_try") 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 :
4927 else
4928 echo "$as_me: program exited with status $ac_status" >&5
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 ( exit $ac_status )
4933 ac_cv_header_stdc=no
4934 fi
4935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4936 fi
4937
4938
4939 fi
4940 fi
4941 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4942 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4943 if test $ac_cv_header_stdc = yes; then
4944
4945 cat >>confdefs.h <<\_ACEOF
4946 #define STDC_HEADERS 1
4947 _ACEOF
4948
4949 fi
4950
4951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4962 inttypes.h stdint.h unistd.h
4963 do
4964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970 cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h. */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 $ac_includes_default
4977
4978 #include <$ac_header>
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (ac_try="$ac_compile"
4982 case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985 esac
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_compile") 2>conftest.er1
4988 ac_status=$?
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4995 { (case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998 esac
4999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000 (eval "$ac_try") 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; } &&
5004 { ac_try='test -s conftest.$ac_objext'
5005 { (case "(($ac_try" in
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5008 esac
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_try") 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5014 eval "$as_ac_Header=yes"
5015 else
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 eval "$as_ac_Header=no"
5020 fi
5021
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 fi
5024 ac_res=`eval echo '${'$as_ac_Header'}'`
5025 { echo "$as_me:$LINENO: result: $ac_res" >&5
5026 echo "${ECHO_T}$ac_res" >&6; }
5027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5028 cat >>confdefs.h <<_ACEOF
5029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5030 _ACEOF
5031
5032 fi
5033
5034 done
5035
5036
5037
5038 for ac_header in dlfcn.h
5039 do
5040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 fi
5047 ac_res=`eval echo '${'$as_ac_Header'}'`
5048 { echo "$as_me:$LINENO: result: $ac_res" >&5
5049 echo "${ECHO_T}$ac_res" >&6; }
5050 else
5051 # Is the header compilable?
5052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 $ac_includes_default
5061 #include <$ac_header>
5062 _ACEOF
5063 rm -f conftest.$ac_objext
5064 if { (ac_try="$ac_compile"
5065 case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068 esac
5069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070 (eval "$ac_compile") 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5078 { (case "(($ac_try" in
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5081 esac
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_try") 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; } &&
5087 { ac_try='test -s conftest.$ac_objext'
5088 { (case "(($ac_try" in
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5091 esac
5092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093 (eval "$ac_try") 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 ac_header_compiler=yes
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102 ac_header_compiler=no
5103 fi
5104
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5107 echo "${ECHO_T}$ac_header_compiler" >&6; }
5108
5109 # Is the header present?
5110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5112 cat >conftest.$ac_ext <<_ACEOF
5113 /* confdefs.h. */
5114 _ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5118 #include <$ac_header>
5119 _ACEOF
5120 if { (ac_try="$ac_cpp conftest.$ac_ext"
5121 case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } >/dev/null; then
5133 if test -s conftest.err; then
5134 ac_cpp_err=$ac_c_preproc_warn_flag
5135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5136 else
5137 ac_cpp_err=
5138 fi
5139 else
5140 ac_cpp_err=yes
5141 fi
5142 if test -z "$ac_cpp_err"; then
5143 ac_header_preproc=yes
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148 ac_header_preproc=no
5149 fi
5150
5151 rm -f conftest.err conftest.$ac_ext
5152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5153 echo "${ECHO_T}$ac_header_preproc" >&6; }
5154
5155 # So? What about this header?
5156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5157 yes:no: )
5158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5162 ac_header_preproc=yes
5163 ;;
5164 no:yes:* )
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5177 ( cat <<\_ASBOX
5178 ## --------------------------------------- ##
5179 ## Report this to httperf@linux.hpl.hp.com ##
5180 ## --------------------------------------- ##
5181 _ASBOX
5182 ) | sed "s/^/$as_me: WARNING: /" >&2
5183 ;;
5184 esac
5185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190 eval "$as_ac_Header=\$ac_header_preproc"
5191 fi
5192 ac_res=`eval echo '${'$as_ac_Header'}'`
5193 { echo "$as_me:$LINENO: result: $ac_res" >&5
5194 echo "${ECHO_T}$ac_res" >&6; }
5195
5196 fi
5197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5198 cat >>confdefs.h <<_ACEOF
5199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5200 _ACEOF
5201
5202 fi
5203
5204 done
5205
5206 ac_ext=cpp
5207 ac_cpp='$CXXCPP $CPPFLAGS'
5208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5211 if test -z "$CXX"; then
5212 if test -n "$CCC"; then
5213 CXX=$CCC
5214 else
5215 if test -n "$ac_tool_prefix"; then
5216 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5217 do
5218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_prog_CXX+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 if test -n "$CXX"; then
5226 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239 done
5240 done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 CXX=$ac_cv_prog_CXX
5246 if test -n "$CXX"; then
5247 { echo "$as_me:$LINENO: result: $CXX" >&5
5248 echo "${ECHO_T}$CXX" >&6; }
5249 else
5250 { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5252 fi
5253
5254
5255 test -n "$CXX" && break
5256 done
5257 fi
5258 if test -z "$CXX"; then
5259 ac_ct_CXX=$CXX
5260 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5261 do
5262 # Extract the first word of "$ac_prog", so it can be a program name with args.
5263 set dummy $ac_prog; ac_word=$2
5264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5266 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269 if test -n "$ac_ct_CXX"; then
5270 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5279 ac_cv_prog_ac_ct_CXX="$ac_prog"
5280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5282 fi
5283 done
5284 done
5285 IFS=$as_save_IFS
5286
5287 fi
5288 fi
5289 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5290 if test -n "$ac_ct_CXX"; then
5291 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5292 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5293 else
5294 { echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6; }
5296 fi
5297
5298