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