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