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