]> sourceware.org Git - systemtap.git/blame - configure
Version bumps for 0.9.6 release
[systemtap.git] / configure
CommitLineData
2f1a1aea
FCE
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
225d8d4b 3# Generated by GNU Autoconf 2.63 for systemtap 0.9.6.
2f1a1aea
FCE
4#
5# Report bugs to <systemtap@sources.redhat.com>.
6#
7fbd9d09 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
27aba29a 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2f1a1aea
FCE
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
7fbd9d09
FCE
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
2f1a1aea
FCE
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
27aba29a 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2f1a1aea
FCE
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
7fbd9d09
FCE
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
27aba29a
JS
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (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'
52else
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'
7fbd9d09 56 else
27aba29a
JS
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'
7fbd9d09 69 fi
27aba29a
JS
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if 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 }
2f1a1aea 81fi
2f1a1aea
FCE
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
7fbd9d09
FCE
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.)
7fbd9d09
FCE
96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
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.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
27aba29a 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7fbd9d09
FCE
119 { (exit 1); exit 1; }
120fi
121
2f1a1aea 122# Work around bugs in pre-3.0 UWIN ksh.
7fbd9d09
FCE
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
2f1a1aea
FCE
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
27aba29a
JS
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
2f1a1aea
FCE
135
136# Required to use basename.
7fbd9d09
FCE
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2f1a1aea
FCE
139 as_expr=expr
140else
141 as_expr=false
142fi
143
7fbd9d09 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2f1a1aea
FCE
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
7fbd9d09 152as_me=`$as_basename -- "$0" ||
2f1a1aea
FCE
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
7fbd9d09 155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 156$as_echo X/"$0" |
7fbd9d09
FCE
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'`
70d28673 170
7fbd9d09
FCE
171# CDPATH.
172$as_unset CDPATH
5e0d2ebf 173
5e0d2ebf 174
7fbd9d09
FCE
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
5e0d2ebf
DS
180fi
181
27aba29a 182 if test $as_have_required = yes && (eval ":
7fbd9d09
FCE
183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
5e0d2ebf 198
7fbd9d09
FCE
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
5e0d2ebf 206
7fbd9d09
FCE
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$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 :
240else
241 as_candidate_shells=
2f1a1aea
FCE
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
7fbd9d09 247 case $as_dir in
2f1a1aea 248 /*)
7fbd9d09
FCE
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
253done
254IFS=$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
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
27aba29a 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7fbd9d09
FCE
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
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
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
27aba29a 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7fbd9d09
FCE
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
5e0d2ebf
DS
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
7fbd9d09
FCE
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
27aba29a
JS
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+"$@"}
7fbd9d09
FCE
369fi
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; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
27aba29a
JS
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.
7fbd9d09
FCE
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" || {
2f1a1aea
FCE
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
7fbd9d09
FCE
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.
2f1a1aea 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7fbd9d09
FCE
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 |
2f1a1aea 464 sed '
7fbd9d09
FCE
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
2f1a1aea 469 N
7fbd9d09
FCE
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2f1a1aea 472 t loop
7fbd9d09 473 s/-\n.*//
2f1a1aea 474 ' >$as_me.lineno &&
7fbd9d09 475 chmod +x "$as_me.lineno" ||
27aba29a 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2f1a1aea
FCE
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
7fbd9d09
FCE
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
2f1a1aea
FCE
483 # Exit status is that of the last command.
484 exit
485}
486
487
7fbd9d09
FCE
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `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';;
2f1a1aea 503esac
7fbd9d09
FCE
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2f1a1aea
FCE
506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
7fbd9d09
FCE
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
27aba29a
JS
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (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
2f1a1aea 530 as_ln_s='cp -p'
27aba29a 531 fi
2f1a1aea
FCE
532else
533 as_ln_s='cp -p'
534fi
7fbd9d09
FCE
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
2f1a1aea
FCE
537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
7fbd9d09
FCE
545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
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
27aba29a 556 test -d "$1/.";
7fbd9d09
FCE
557 else
558 case $1 in
27aba29a 559 -*)set "./$1";;
7fbd9d09
FCE
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
2f1a1aea
FCE
567
568# Sed expression to map a string onto a valid CPP name.
569as_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.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
2f1a1aea 575
7fbd9d09 576exec 7<&0 </dev/null 6>&1
2f1a1aea
FCE
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.
581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
2f1a1aea
FCE
583#
584# Initializations.
585#
586ac_default_prefix=/usr/local
7fbd9d09 587ac_clean_files=
2f1a1aea 588ac_config_libobj_dir=.
7fbd9d09 589LIBOBJS=
2f1a1aea
FCE
590cross_compiling=no
591subdirs=
592MFLAGS=
593MAKEFLAGS=
594SHELL=${CONFIG_SHELL-/bin/sh}
595
2f1a1aea
FCE
596# Identity of this package.
597PACKAGE_NAME='systemtap'
598PACKAGE_TARNAME='systemtap'
225d8d4b
JS
599PACKAGE_VERSION='0.9.6'
600PACKAGE_STRING='systemtap 0.9.6'
2f1a1aea
FCE
601PACKAGE_BUGREPORT='systemtap@sources.redhat.com'
602
603# Factoring default headers for most tests.
604ac_includes_default="\
605#include <stdio.h>
7fbd9d09 606#ifdef HAVE_SYS_TYPES_H
2f1a1aea
FCE
607# include <sys/types.h>
608#endif
7fbd9d09 609#ifdef HAVE_SYS_STAT_H
2f1a1aea
FCE
610# include <sys/stat.h>
611#endif
7fbd9d09 612#ifdef STDC_HEADERS
2f1a1aea
FCE
613# include <stdlib.h>
614# include <stddef.h>
615#else
7fbd9d09 616# ifdef HAVE_STDLIB_H
2f1a1aea
FCE
617# include <stdlib.h>
618# endif
619#endif
7fbd9d09
FCE
620#ifdef HAVE_STRING_H
621# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
2f1a1aea
FCE
622# include <memory.h>
623# endif
624# include <string.h>
625#endif
7fbd9d09 626#ifdef HAVE_STRINGS_H
2f1a1aea
FCE
627# include <strings.h>
628#endif
7fbd9d09 629#ifdef HAVE_INTTYPES_H
2f1a1aea 630# include <inttypes.h>
2f1a1aea 631#endif
7fbd9d09
FCE
632#ifdef HAVE_STDINT_H
633# include <stdint.h>
634#endif
635#ifdef HAVE_UNISTD_H
2f1a1aea
FCE
636# include <unistd.h>
637#endif"
638
27aba29a
JS
639enable_option_checking=no
640ac_subst_vars='LTLIBOBJS
641LIBOBJS
642subdirs
643CXXCPP
644PROCFLAGS
645DATE
646stap_LIBS
647elfutils_abs_srcdir
648BUILD_ELFUTILS_FALSE
649BUILD_ELFUTILS_TRUE
1087b83f
TM
650BUILD_GRAPHER_FALSE
651BUILD_GRAPHER_TRUE
652GRAPHER_LIBS
653GRAPHER_CFLAGS
654PKG_CONFIG
27aba29a
JS
655BUILD_SERVER_FALSE
656BUILD_SERVER_TRUE
657nspr_CFLAGS
658nss_CFLAGS
659BUILD_REFDOCS_FALSE
660BUILD_REFDOCS_TRUE
661have_xmlto
662BUILD_DOCS_FALSE
663BUILD_DOCS_TRUE
664have_latex2html
665have_ps2pdf
666have_dvips
667have_latex
668BUILD_CRASHMOD_FALSE
669BUILD_CRASHMOD_TRUE
670staplog_CPPFLAGS
671sqlite3_LIBS
672PIECXXFLAGS
673PIECFLAGS
674PIELDFLAGS
675RANLIB
676ANSI2KNR
677U
678EGREP
679GREP
680CPP
681am__fastdepCXX_FALSE
682am__fastdepCXX_TRUE
683CXXDEPMODE
684ac_ct_CXX
685CXXFLAGS
686CXX
687am__fastdepCC_FALSE
688am__fastdepCC_TRUE
689CCDEPMODE
690AMDEPBACKSLASH
691AMDEP_FALSE
692AMDEP_TRUE
693am__quote
694am__include
695DEPDIR
696OBJEXT
697EXEEXT
698ac_ct_CC
699CPPFLAGS
700LDFLAGS
701CFLAGS
702CC
703LN_S
7fbd9d09 704MAINT
27aba29a
JS
705MAINTAINER_MODE_FALSE
706MAINTAINER_MODE_TRUE
707am__untar
708am__tar
709AMTAR
710am__leading_dot
711SET_MAKE
712AWK
713mkdir_p
7fbd9d09 714MKDIR_P
27aba29a
JS
715INSTALL_STRIP_PROGRAM
716STRIP
717install_sh
718MAKEINFO
719AUTOHEADER
720AUTOMAKE
721AUTOCONF
722ACLOCAL
723VERSION
724PACKAGE
725CYGPATH_W
726am__isrc
727INSTALL_DATA
728INSTALL_SCRIPT
729INSTALL_PROGRAM
730target_alias
731host_alias
732build_alias
733LIBS
734ECHO_T
735ECHO_N
736ECHO_C
737DEFS
738mandir
739localedir
740libdir
741psdir
742pdfdir
743dvidir
744htmldir
745infodir
746docdir
747oldincludedir
748includedir
749localstatedir
750sharedstatedir
751sysconfdir
752datadir
753datarootdir
754libexecdir
755sbindir
756bindir
757program_transform_name
758prefix
759exec_prefix
760PACKAGE_BUGREPORT
761PACKAGE_STRING
762PACKAGE_VERSION
763PACKAGE_TARNAME
764PACKAGE_NAME
765PATH_SEPARATOR
766SHELL'
2f1a1aea 767ac_subst_files=''
27aba29a
JS
768ac_user_opts='
769enable_option_checking
770enable_maintainer_mode
771enable_dependency_tracking
772enable_perfmon
773enable_prologues
774enable_ssp
775enable_pie
776enable_sqlite
777enable_crash
778enable_docs
779enable_refdocs
780enable_server
1087b83f 781enable_grapher
27aba29a
JS
782with_elfutils
783'
7fbd9d09
FCE
784 ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792CXX
793CXXFLAGS
794CCC
795CPP
1087b83f
TM
796PKG_CONFIG
797GRAPHER_CFLAGS
798GRAPHER_LIBS
7fbd9d09 799CXXCPP'
1087b83f 800ac_subdirs_all='testsuite'
2f1a1aea
FCE
801
802# Initialize some variables set by options.
803ac_init_help=
804ac_init_version=false
27aba29a
JS
805ac_unrecognized_opts=
806ac_unrecognized_sep=
2f1a1aea
FCE
807# The variables have the same names as the options, with
808# dashes changed to underlines.
809cache_file=/dev/null
810exec_prefix=NONE
811no_create=
812no_recursion=
813prefix=NONE
814program_prefix=NONE
815program_suffix=NONE
816program_transform_name=s,x,x,
817silent=
818site=
819srcdir=
820verbose=
821x_includes=NONE
822x_libraries=NONE
823
824# Installation directory options.
825# These are left unexpanded so users can "make install exec_prefix=/foo"
826# and all the variables that are supposed to be based on exec_prefix
827# by default will actually change.
828# Use braces instead of parens because sh, perl, etc. also accept them.
7fbd9d09 829# (The list follows the same order as the GNU Coding Standards.)
2f1a1aea
FCE
830bindir='${exec_prefix}/bin'
831sbindir='${exec_prefix}/sbin'
832libexecdir='${exec_prefix}/libexec'
7fbd9d09
FCE
833datarootdir='${prefix}/share'
834datadir='${datarootdir}'
2f1a1aea
FCE
835sysconfdir='${prefix}/etc'
836sharedstatedir='${prefix}/com'
837localstatedir='${prefix}/var'
2f1a1aea
FCE
838includedir='${prefix}/include'
839oldincludedir='/usr/include'
7fbd9d09
FCE
840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841infodir='${datarootdir}/info'
842htmldir='${docdir}'
843dvidir='${docdir}'
844pdfdir='${docdir}'
845psdir='${docdir}'
846libdir='${exec_prefix}/lib'
847localedir='${datarootdir}/locale'
848mandir='${datarootdir}/man'
2f1a1aea
FCE
849
850ac_prev=
7fbd9d09 851ac_dashdash=
2f1a1aea
FCE
852for ac_option
853do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
7fbd9d09 856 eval $ac_prev=\$ac_option
2f1a1aea
FCE
857 ac_prev=
858 continue
859 fi
860
7fbd9d09
FCE
861 case $ac_option in
862 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *) ac_optarg=yes ;;
864 esac
2f1a1aea
FCE
865
866 # Accept the important Cygnus configure options, so we can diagnose typos.
867
7fbd9d09
FCE
868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
2f1a1aea
FCE
871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
876
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
891
7fbd9d09 892 -datadir | --datadir | --datadi | --datad)
2f1a1aea 893 ac_prev=datadir ;;
7fbd9d09 894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
2f1a1aea
FCE
895 datadir=$ac_optarg ;;
896
7fbd9d09
FCE
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
2f1a1aea 904 -disable-* | --disable-*)
27aba29a 905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2f1a1aea 906 # Reject names that are not valid shell variable names.
27aba29a
JS
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
2f1a1aea 909 { (exit 1); exit 1; }; }
27aba29a
JS
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914"enable_$ac_useropt"
915"*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=no ;;
7fbd9d09
FCE
920
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
925
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
2f1a1aea
FCE
930
931 -enable-* | --enable-*)
27aba29a 932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2f1a1aea 933 # Reject names that are not valid shell variable names.
27aba29a
JS
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
2f1a1aea 936 { (exit 1); exit 1; }; }
27aba29a
JS
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941"enable_$ac_useropt"
942"*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
2f1a1aea
FCE
947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
7fbd9d09
FCE
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
2f1a1aea
FCE
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
7fbd9d09
FCE
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
2f1a1aea 1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
7fbd9d09 1009 | --localstate | --localstat | --localsta | --localst | --locals)
2f1a1aea
FCE
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7fbd9d09 1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2f1a1aea
FCE
1013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
7fbd9d09
FCE
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
2f1a1aea
FCE
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
27aba29a 1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2f1a1aea 1138 # Reject names that are not valid shell variable names.
27aba29a
JS
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2f1a1aea 1141 { (exit 1); exit 1; }; }
27aba29a
JS
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146"with_$ac_useropt"
1147"*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=\$ac_optarg ;;
2f1a1aea
FCE
1152
1153 -without-* | --without-*)
27aba29a 1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2f1a1aea 1155 # Reject names that are not valid shell variable names.
27aba29a
JS
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2f1a1aea 1158 { (exit 1); exit 1; }; }
27aba29a
JS
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163"with_$ac_useropt"
1164"*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=no ;;
2f1a1aea
FCE
1169
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1173
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1180
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1187
27aba29a 1188 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
2f1a1aea
FCE
1189Try \`$0 --help' for more information." >&2
1190 { (exit 1); exit 1; }; }
1191 ;;
1192
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
27aba29a 1197 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
2f1a1aea 1198 { (exit 1); exit 1; }; }
7fbd9d09 1199 eval $ac_envvar=\$ac_optarg
2f1a1aea
FCE
1200 export $ac_envvar ;;
1201
1202 *)
1203 # FIXME: should be removed in autoconf 3.0.
27aba29a 1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2f1a1aea 1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
27aba29a 1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2f1a1aea
FCE
1207 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208 ;;
1209
1210 esac
1211done
1212
1213if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
27aba29a 1215 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
2f1a1aea
FCE
1216 { (exit 1); exit 1; }; }
1217fi
1218
27aba29a
JS
1219if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
1222 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1223 { (exit 1); exit 1; }; } ;;
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac
1226fi
1227
1228# Check all directory arguments for consistency.
7fbd9d09
FCE
1229for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
818ba2bc 1233do
7fbd9d09 1234 eval ac_val=\$$ac_var
27aba29a
JS
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
8ae7a94a 1242 case $ac_val in
7fbd9d09
FCE
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2f1a1aea 1245 esac
27aba29a 1246 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7fbd9d09 1247 { (exit 1); exit 1; }; }
2f1a1aea
FCE
1248done
1249
1250# There might be people who depend on the old broken behavior: `$host'
1251# used to hold the argument of --host etc.
1252# FIXME: To remove some day.
1253build=$build_alias
1254host=$host_alias
1255target=$target_alias
1256
1257# FIXME: To remove some day.
1258if test "x$host_alias" != x; then
1259 if test "x$build_alias" = x; then
1260 cross_compiling=maybe
27aba29a 1261 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2f1a1aea
FCE
1262 If a cross compiler is detected then cross compile mode will be used." >&2
1263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1265 fi
1266fi
1267
1268ac_tool_prefix=
1269test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271test "$silent" = yes && exec 6>/dev/null
1272
1273
7fbd9d09
FCE
1274ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275ac_ls_di=`ls -di .` &&
1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
27aba29a 1277 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7fbd9d09
FCE
1278 { (exit 1); exit 1; }; }
1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
27aba29a 1280 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7fbd9d09
FCE
1281 { (exit 1); exit 1; }; }
1282
1283
2f1a1aea
FCE
1284# Find the source files, if location was not specified.
1285if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
7fbd9d09 1287 # Try the directory containing this script, then the parent directory.
27aba29a
JS
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293$as_echo X"$as_myself" |
7fbd9d09
FCE
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)[^/].*/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\).*/{
1307 s//\1/
1308 q
1309 }
1310 s/.*/./; q'`
2f1a1aea 1311 srcdir=$ac_confdir
7fbd9d09 1312 if test ! -r "$srcdir/$ac_unique_file"; then
2f1a1aea
FCE
1313 srcdir=..
1314 fi
1315else
1316 ac_srcdir_defaulted=no
1317fi
7fbd9d09
FCE
1318if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
27aba29a 1320 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
818ba2bc 1321 { (exit 1); exit 1; }; }
8ae7a94a 1322fi
7fbd9d09
FCE
1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324ac_abs_confdir=`(
27aba29a 1325 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
8ae7a94a 1326 { (exit 1); exit 1; }; }
7fbd9d09
FCE
1327 pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
2f1a1aea
FCE
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
225d8d4b 1352\`configure' configures systemtap 0.9.6 to adapt to many kinds of systems.
2f1a1aea
FCE
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE. See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371
2f1a1aea
FCE
1372Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
27aba29a 1374 [$ac_default_prefix]
2f1a1aea 1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
27aba29a 1376 [PREFIX]
2f1a1aea
FCE
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
27aba29a
JS
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
2f1a1aea
FCE
1405_ACEOF
1406
1407 cat <<\_ACEOF
1408
1409Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413_ACEOF
1414fi
1415
1416if test -n "$ac_init_help"; then
1417 case $ac_init_help in
225d8d4b 1418 short | recursive ) echo "Configuration of systemtap 0.9.6:";;
2f1a1aea
FCE
1419 esac
1420 cat <<\_ACEOF
1421
1422Optional Features:
27aba29a 1423 --disable-option-checking ignore unrecognized --enable/--with options
2f1a1aea
FCE
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-maintainer-mode enable make rules and dependencies not useful
1427 (and sometimes confusing) to the casual installer
1428 --disable-dependency-tracking speeds up one-time build
1429 --enable-dependency-tracking do not reject slow dependency extractors
e8f3c2c2
DS
1430 --enable-perfmon[=DIRECTORY]
1431 enable perfmon support (default is disabled).
1432 Optional DIRECTORY is the path to the perfmon
1433 installation (needed if installed in a non-standard
1434 location).
44f75386 1435 --enable-prologues make -P prologue-searching default
bbfd8c1a 1436 --disable-ssp disable gcc stack-protector
882ddac1 1437 --enable-pie enable position-independent-executable
9921a199 1438 --enable-sqlite build with sqlite support
564eb0a8
DS
1439 --enable-crash[=DIRECTORY]
1440 enable crash extension (default is disabled).
1441 Optional DIRECTORY is the path to the crash header
1442 file (needed if installed in a non-standard
1443 location).
465e8fbf
FCE
1444 --enable-docs enable building documentation (default on if latex
1445 etc. found).
92aff3c7
WC
1446 --enable-refdocs enable building reference documentation (default on
1447 if xmlto etc. found and other documentation built).
6275c8d7 1448 --enable-server enable building of stap-server/client (default on if
19a0d4b6 1449 nss etc. found).
1087b83f
TM
1450 --enable-grapher enable building of grapher (default on if gtkmm is
1451 found).
2f1a1aea 1452
4d9087fc
RM
1453Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-elfutils=DIRECTORY
1457 find elfutils source code in DIRECTORY
1458
2f1a1aea
FCE
1459Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
7fbd9d09
FCE
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
2f1a1aea
FCE
1467 CXX C++ compiler command
1468 CXXFLAGS C++ compiler flags
1469 CPP C preprocessor
1087b83f
TM
1470 PKG_CONFIG path to pkg-config utility
1471 GRAPHER_CFLAGS
1472 C compiler flags for GRAPHER, overriding pkg-config
1473 GRAPHER_LIBS
1474 linker flags for GRAPHER, overriding pkg-config
3bf6ac45 1475 CXXCPP C++ preprocessor
2f1a1aea
FCE
1476
1477Use these variables to override the choices made by `configure' or to help
1478it to find libraries and programs with nonstandard names/locations.
1479
1480Report bugs to <systemtap@sources.redhat.com>.
1481_ACEOF
7fbd9d09 1482ac_status=$?
2f1a1aea
FCE
1483fi
1484
1485if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
2f1a1aea 1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
27aba29a
JS
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
2f1a1aea
FCE
1491 ac_builddir=.
1492
7fbd9d09
FCE
1493case "$ac_dir" in
1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495*)
27aba29a 1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 1497 # A ".." for each directory in $ac_dir_suffix.
27aba29a 1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503esac
1504ac_abs_top_builddir=$ac_pwd
1505ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506# for backward compatibility:
1507ac_top_builddir=$ac_top_build_prefix
2f1a1aea
FCE
1508
1509case $srcdir in
7fbd9d09 1510 .) # We are building in place.
2f1a1aea 1511 ac_srcdir=.
7fbd9d09
FCE
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
2f1a1aea 1515 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
818ba2bc 1522esac
7fbd9d09
FCE
1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
2f1a1aea 1533 else
27aba29a 1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7fbd9d09
FCE
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
2f1a1aea
FCE
1537 done
1538fi
1539
7fbd9d09 1540test -n "$ac_init_help" && exit $ac_status
2f1a1aea
FCE
1541if $ac_init_version; then
1542 cat <<\_ACEOF
225d8d4b 1543systemtap configure 0.9.6
27aba29a 1544generated by GNU Autoconf 2.63
2f1a1aea 1545
7fbd9d09 1546Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
27aba29a 15472002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2f1a1aea
FCE
1548This configure script is free software; the Free Software Foundation
1549gives unlimited permission to copy, distribute and modify it.
1550_ACEOF
7fbd9d09 1551 exit
2f1a1aea 1552fi
7fbd9d09 1553cat >config.log <<_ACEOF
2f1a1aea
FCE
1554This file contains any messages produced by compilers while
1555running configure, to aid debugging if configure makes a mistake.
1556
225d8d4b 1557It was created by systemtap $as_me 0.9.6, which was
27aba29a 1558generated by GNU Autoconf 2.63. Invocation command line was
2f1a1aea
FCE
1559
1560 $ $0 $@
1561
1562_ACEOF
7fbd9d09 1563exec 5>>config.log
2f1a1aea
FCE
1564{
1565cat <<_ASUNAME
1566## --------- ##
1567## Platform. ##
1568## --------- ##
1569
1570hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1571uname -m = `(uname -m) 2>/dev/null || echo unknown`
1572uname -r = `(uname -r) 2>/dev/null || echo unknown`
1573uname -s = `(uname -s) 2>/dev/null || echo unknown`
1574uname -v = `(uname -v) 2>/dev/null || echo unknown`
1575
1576/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1577/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1578
1579/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1580/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1581/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7fbd9d09 1582/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2f1a1aea
FCE
1583/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1584/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1585/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1586
1587_ASUNAME
1588
1589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590for as_dir in $PATH
1591do
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
27aba29a 1594 $as_echo "PATH: $as_dir"
2f1a1aea 1595done
7fbd9d09 1596IFS=$as_save_IFS
2f1a1aea
FCE
1597
1598} >&5
1599
1600cat >&5 <<_ACEOF
1601
1602
1603## ----------- ##
1604## Core tests. ##
1605## ----------- ##
1606
1607_ACEOF
1608
1609
1610# Keep a trace of the command line.
1611# Strip out --no-create and --no-recursion so they do not pile up.
1612# Strip out --silent because we don't want to record it for future runs.
1613# Also quote any args containing shell meta-characters.
1614# Make two passes to allow for proper duplicate-argument suppression.
1615ac_configure_args=
1616ac_configure_args0=
1617ac_configure_args1=
2f1a1aea
FCE
1618ac_must_keep_next=false
1619for ac_pass in 1 2
1620do
1621 for ac_arg
1622 do
1623 case $ac_arg in
1624 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626 | -silent | --silent | --silen | --sile | --sil)
1627 continue ;;
7fbd9d09 1628 *\'*)
27aba29a 1629 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2f1a1aea
FCE
1630 esac
1631 case $ac_pass in
1632 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1633 2)
1634 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1635 if test $ac_must_keep_next = true; then
1636 ac_must_keep_next=false # Got value, back to normal.
1637 else
1638 case $ac_arg in
1639 *=* | --config-cache | -C | -disable-* | --disable-* \
1640 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1641 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1642 | -with-* | --with-* | -without-* | --without-* | --x)
1643 case "$ac_configure_args0 " in
1644 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1645 esac
1646 ;;
1647 -* ) ac_must_keep_next=true ;;
1648 esac
1649 fi
7fbd9d09 1650 ac_configure_args="$ac_configure_args '$ac_arg'"
2f1a1aea
FCE
1651 ;;
1652 esac
1653 done
1654done
1655$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1656$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1657
1658# When interrupted or exit'd, cleanup temporary files, and complete
1659# config.log. We remove comments because anyway the quotes in there
1660# would cause problems or look ugly.
7fbd9d09
FCE
1661# WARNING: Use '\'' to represent an apostrophe within the trap.
1662# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2f1a1aea
FCE
1663trap 'exit_status=$?
1664 # Save into config.log some information that might help in debugging.
1665 {
1666 echo
1667
1668 cat <<\_ASBOX
1669## ---------------- ##
1670## Cache variables. ##
1671## ---------------- ##
1672_ASBOX
1673 echo
1674 # The following way of writing the cache mishandles newlines in values,
7fbd9d09
FCE
1675(
1676 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1677 eval ac_val=\$$ac_var
1678 case $ac_val in #(
1679 *${as_nl}*)
1680 case $ac_var in #(
27aba29a
JS
1681 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1682$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7fbd9d09
FCE
1683 esac
1684 case $ac_var in #(
1685 _ | IFS | as_nl) ;; #(
27aba29a 1686 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7fbd9d09
FCE
1687 *) $as_unset $ac_var ;;
1688 esac ;;
1689 esac
1690 done
2f1a1aea 1691 (set) 2>&1 |
7fbd9d09
FCE
1692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
2f1a1aea 1694 sed -n \
7fbd9d09
FCE
1695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697 ;; #(
2f1a1aea 1698 *)
7fbd9d09 1699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2f1a1aea 1700 ;;
7fbd9d09
FCE
1701 esac |
1702 sort
1703)
2f1a1aea
FCE
1704 echo
1705
1706 cat <<\_ASBOX
1707## ----------------- ##
1708## Output variables. ##
1709## ----------------- ##
1710_ASBOX
1711 echo
1712 for ac_var in $ac_subst_vars
1713 do
7fbd9d09
FCE
1714 eval ac_val=\$$ac_var
1715 case $ac_val in
27aba29a 1716 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7fbd9d09 1717 esac
27aba29a 1718 $as_echo "$ac_var='\''$ac_val'\''"
2f1a1aea
FCE
1719 done | sort
1720 echo
1721
1722 if test -n "$ac_subst_files"; then
1723 cat <<\_ASBOX
7fbd9d09
FCE
1724## ------------------- ##
1725## File substitutions. ##
1726## ------------------- ##
2f1a1aea
FCE
1727_ASBOX
1728 echo
1729 for ac_var in $ac_subst_files
1730 do
7fbd9d09
FCE
1731 eval ac_val=\$$ac_var
1732 case $ac_val in
27aba29a 1733 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7fbd9d09 1734 esac
27aba29a 1735 $as_echo "$ac_var='\''$ac_val'\''"
2f1a1aea
FCE
1736 done | sort
1737 echo
1738 fi
1739
1740 if test -s confdefs.h; then
1741 cat <<\_ASBOX
1742## ----------- ##
1743## confdefs.h. ##
1744## ----------- ##
1745_ASBOX
1746 echo
7fbd9d09 1747 cat confdefs.h
2f1a1aea
FCE
1748 echo
1749 fi
1750 test "$ac_signal" != 0 &&
27aba29a
JS
1751 $as_echo "$as_me: caught signal $ac_signal"
1752 $as_echo "$as_me: exit $exit_status"
2f1a1aea 1753 } >&5
7fbd9d09
FCE
1754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2f1a1aea 1756 exit $exit_status
7fbd9d09 1757' 0
2f1a1aea
FCE
1758for ac_signal in 1 2 13 15; do
1759 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1760done
1761ac_signal=0
1762
1763# confdefs.h avoids OS command line length limits that DEFS can exceed.
7fbd9d09 1764rm -f -r conftest* confdefs.h
2f1a1aea
FCE
1765
1766# Predefined preprocessor variables.
1767
1768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_NAME "$PACKAGE_NAME"
1770_ACEOF
1771
1772
1773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775_ACEOF
1776
1777
1778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_VERSION "$PACKAGE_VERSION"
1780_ACEOF
1781
1782
1783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_STRING "$PACKAGE_STRING"
1785_ACEOF
1786
1787
1788cat >>confdefs.h <<_ACEOF
1789#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790_ACEOF
1791
1792
1793# Let the site file select an alternate cache file if it wants to.
27aba29a
JS
1794# Prefer an explicitly selected file to automatically selected ones.
1795ac_site_file1=NONE
1796ac_site_file2=NONE
7fbd9d09 1797if test -n "$CONFIG_SITE"; then
27aba29a 1798 ac_site_file1=$CONFIG_SITE
7fbd9d09 1799elif test "x$prefix" != xNONE; then
27aba29a
JS
1800 ac_site_file1=$prefix/share/config.site
1801 ac_site_file2=$prefix/etc/config.site
7fbd9d09 1802else
27aba29a
JS
1803 ac_site_file1=$ac_default_prefix/share/config.site
1804 ac_site_file2=$ac_default_prefix/etc/config.site
818ba2bc 1805fi
27aba29a 1806for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7fbd9d09 1807do
27aba29a 1808 test "x$ac_site_file" = xNONE && continue
2f1a1aea 1809 if test -r "$ac_site_file"; then
27aba29a
JS
1810 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1811$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2f1a1aea
FCE
1812 sed 's/^/| /' "$ac_site_file" >&5
1813 . "$ac_site_file"
1814 fi
1815done
1816
1817if test -r "$cache_file"; then
1818 # Some versions of bash will fail to source /dev/null (special
1819 # files actually), so we avoid doing that.
1820 if test -f "$cache_file"; then
27aba29a
JS
1821 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1822$as_echo "$as_me: loading cache $cache_file" >&6;}
2f1a1aea 1823 case $cache_file in
7fbd9d09
FCE
1824 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1825 *) . "./$cache_file";;
2f1a1aea
FCE
1826 esac
1827 fi
1828else
27aba29a
JS
1829 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1830$as_echo "$as_me: creating cache $cache_file" >&6;}
2f1a1aea
FCE
1831 >$cache_file
1832fi
1833
1834# Check that the precious variables saved in the cache have kept the same
1835# value.
1836ac_cache_corrupted=false
7fbd9d09 1837for ac_var in $ac_precious_vars; do
2f1a1aea
FCE
1838 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1839 eval ac_new_set=\$ac_env_${ac_var}_set
7fbd9d09
FCE
1840 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1841 eval ac_new_val=\$ac_env_${ac_var}_value
2f1a1aea
FCE
1842 case $ac_old_set,$ac_new_set in
1843 set,)
27aba29a
JS
1844 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1845$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2f1a1aea
FCE
1846 ac_cache_corrupted=: ;;
1847 ,set)
27aba29a
JS
1848 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1849$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2f1a1aea
FCE
1850 ac_cache_corrupted=: ;;
1851 ,);;
1852 *)
1853 if test "x$ac_old_val" != "x$ac_new_val"; then
27aba29a
JS
1854 # differences in whitespace do not lead to failure.
1855 ac_old_val_w=`echo x $ac_old_val`
1856 ac_new_val_w=`echo x $ac_new_val`
1857 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1858 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1859$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1860 ac_cache_corrupted=:
1861 else
1862 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1863$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1864 eval $ac_var=\$ac_old_val
1865 fi
1866 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1867$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1868 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1869$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2f1a1aea
FCE
1870 fi;;
1871 esac
1872 # Pass precious variables to config.status.
1873 if test "$ac_new_set" = set; then
1874 case $ac_new_val in
27aba29a 1875 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2f1a1aea
FCE
1876 *) ac_arg=$ac_var=$ac_new_val ;;
1877 esac
1878 case " $ac_configure_args " in
1879 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1880 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1881 esac
1882 fi
1883done
1884if $ac_cache_corrupted; then
27aba29a
JS
1885 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1887 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2f1a1aea
FCE
1891 { (exit 1); exit 1; }; }
1892fi
1893
8ae7a94a 1894
2f1a1aea
FCE
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
7fbd9d09
FCE
1918ac_ext=c
1919ac_cpp='$CPP $CPPFLAGS'
1920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922ac_compiler_gnu=$ac_cv_c_compiler_gnu
2f1a1aea
FCE
1923
1924
1925
2f1a1aea 1926
7fbd9d09 1927am__api_version='1.10'
10b20266 1928
2f1a1aea 1929ac_aux_dir=
7fbd9d09
FCE
1930for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1931 if test -f "$ac_dir/install-sh"; then
2f1a1aea
FCE
1932 ac_aux_dir=$ac_dir
1933 ac_install_sh="$ac_aux_dir/install-sh -c"
1934 break
7fbd9d09 1935 elif test -f "$ac_dir/install.sh"; then
2f1a1aea
FCE
1936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/install.sh -c"
1938 break
7fbd9d09 1939 elif test -f "$ac_dir/shtool"; then
2f1a1aea
FCE
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/shtool install -c"
1942 break
1943 fi
1944done
1945if test -z "$ac_aux_dir"; then
27aba29a
JS
1946 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1947$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2f1a1aea
FCE
1948 { (exit 1); exit 1; }; }
1949fi
7fbd9d09
FCE
1950
1951# These three variables are undocumented and unsupported,
1952# and are intended to be withdrawn in a future Autoconf release.
1953# They can cause serious problems if a builder's source tree is in a directory
1954# whose full name contains unusual characters.
1955ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1956ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1957ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1958
2f1a1aea
FCE
1959
1960# Find a good install program. We prefer a C program (faster),
1961# so one script is as good as another. But avoid the broken or
1962# incompatible versions:
1963# SysV /etc/install, /usr/sbin/install
1964# SunOS /usr/etc/install
1965# IRIX /sbin/install
1966# AIX /bin/install
1967# AmigaOS /C/install, which installs bootblocks on floppy discs
1968# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1969# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1970# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1971# OS/2's system install, which has a completely different semantic
1972# ./install, which can be erroneously created by make from ./install.sh.
27aba29a
JS
1973# Reject install programs that cannot install multiple files.
1974{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1975$as_echo_n "checking for a BSD-compatible install... " >&6; }
2f1a1aea
FCE
1976if test -z "$INSTALL"; then
1977if test "${ac_cv_path_install+set}" = set; then
27aba29a 1978 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
1979else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 # Account for people who put trailing slashes in PATH elements.
1986case $as_dir/ in
1987 ./ | .// | /cC/* | \
1988 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1989 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1990 /usr/ucb/* ) ;;
1991 *)
1992 # OSF1 and SCO ODT 3.0 have their own names for install.
1993 # Don't use installbsd from OSF since it installs stuff as root
1994 # by default.
1995 for ac_prog in ginstall scoinst install; do
1996 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 1997 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2f1a1aea
FCE
1998 if test $ac_prog = install &&
1999 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2000 # AIX install. It has an incompatible calling convention.
2001 :
2002 elif test $ac_prog = install &&
2003 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2004 # program-specific install script used by HP pwplus--don't use.
2005 :
2006 else
27aba29a
JS
2007 rm -rf conftest.one conftest.two conftest.dir
2008 echo one > conftest.one
2009 echo two > conftest.two
2010 mkdir conftest.dir
2011 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2012 test -s conftest.one && test -s conftest.two &&
2013 test -s conftest.dir/conftest.one &&
2014 test -s conftest.dir/conftest.two
2015 then
2016 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2017 break 3
2018 fi
2f1a1aea
FCE
2019 fi
2020 fi
2021 done
2022 done
2023 ;;
2024esac
27aba29a 2025
2f1a1aea 2026done
7fbd9d09 2027IFS=$as_save_IFS
2f1a1aea 2028
27aba29a 2029rm -rf conftest.one conftest.two conftest.dir
2f1a1aea
FCE
2030
2031fi
2032 if test "${ac_cv_path_install+set}" = set; then
2033 INSTALL=$ac_cv_path_install
2034 else
7fbd9d09
FCE
2035 # As a last resort, use the slow shell script. Don't cache a
2036 # value for INSTALL within a source directory, because that will
2f1a1aea 2037 # break other packages using the cache if that directory is
7fbd9d09 2038 # removed, or if the value is a relative name.
2f1a1aea
FCE
2039 INSTALL=$ac_install_sh
2040 fi
2041fi
27aba29a
JS
2042{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2043$as_echo "$INSTALL" >&6; }
2f1a1aea
FCE
2044
2045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2046# It thinks the first close brace ends the variable substitution.
2047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2048
2049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2050
2051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2052
27aba29a
JS
2053{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2054$as_echo_n "checking whether build environment is sane... " >&6; }
2f1a1aea
FCE
2055# Just in case
2056sleep 1
2057echo timestamp > conftest.file
2058# Do `set' in a subshell so we don't clobber the current shell's
2059# arguments. Must try -L first in case configure is actually a
2060# symlink; some systems play weird games with the mod time of symlinks
2061# (eg FreeBSD returns the mod time of the symlink's containing
2062# directory).
2063if (
2064 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2065 if test "$*" = "X"; then
2066 # -L didn't work.
2067 set X `ls -t $srcdir/configure conftest.file`
2068 fi
2069 rm -f conftest.file
2070 if test "$*" != "X $srcdir/configure conftest.file" \
2071 && test "$*" != "X conftest.file $srcdir/configure"; then
2072
2073 # If neither matched, then we have a broken ls. This can happen
2074 # if, for instance, CONFIG_SHELL is bash and it inherits a
2075 # broken ls alias from the environment. This has actually
2076 # happened. Such a system could not be considered "sane".
27aba29a 2077 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2f1a1aea 2078alias in your environment" >&5
27aba29a 2079$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2f1a1aea
FCE
2080alias in your environment" >&2;}
2081 { (exit 1); exit 1; }; }
2082 fi
2083
2084 test "$2" = conftest.file
2085 )
2086then
2087 # Ok.
2088 :
2089else
27aba29a 2090 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2f1a1aea 2091Check your system clock" >&5
27aba29a 2092$as_echo "$as_me: error: newly created file is older than distributed files!
2f1a1aea
FCE
2093Check your system clock" >&2;}
2094 { (exit 1); exit 1; }; }
2095fi
27aba29a
JS
2096{ $as_echo "$as_me:$LINENO: result: yes" >&5
2097$as_echo "yes" >&6; }
2f1a1aea 2098test "$program_prefix" != NONE &&
7fbd9d09 2099 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2f1a1aea
FCE
2100# Use a double $ so make ignores it.
2101test "$program_suffix" != NONE &&
7fbd9d09 2102 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
27aba29a 2103# Double any \ or $.
2f1a1aea 2104# By default was `s,x,x', remove it if useless.
27aba29a
JS
2105ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2106program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2f1a1aea
FCE
2107
2108# expand $ac_aux_dir to an absolute path
2109am_aux_dir=`cd $ac_aux_dir && pwd`
2110
2111test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2112# Use eval to expand $SHELL
2113if eval "$MISSING --run true"; then
2114 am_missing_run="$MISSING --run "
2115else
2116 am_missing_run=
27aba29a
JS
2117 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2118$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
818ba2bc
MW
2119fi
2120
27aba29a
JS
2121{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2122$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7fbd9d09
FCE
2123if test -z "$MKDIR_P"; then
2124 if test "${ac_cv_path_mkdir+set}" = set; then
27aba29a 2125 $as_echo_n "(cached) " >&6
7fbd9d09
FCE
2126else
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2129do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_prog in mkdir gmkdir; do
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2135 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2136 'mkdir (GNU coreutils) '* | \
2137 'mkdir (coreutils) '* | \
2138 'mkdir (fileutils) '4.1*)
2139 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2140 break 3;;
2141 esac
2142 done
2143 done
2144done
2145IFS=$as_save_IFS
2146
2147fi
2148
2149 if test "${ac_cv_path_mkdir+set}" = set; then
2150 MKDIR_P="$ac_cv_path_mkdir -p"
2f1a1aea 2151 else
7fbd9d09
FCE
2152 # As a last resort, use the slow shell script. Don't cache a
2153 # value for MKDIR_P within a source directory, because that will
2154 # break other packages using the cache if that directory is
2155 # removed, or if the value is a relative name.
2156 test -d ./--version && rmdir ./--version
2157 MKDIR_P="$ac_install_sh -d"
2f1a1aea
FCE
2158 fi
2159fi
27aba29a
JS
2160{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2161$as_echo "$MKDIR_P" >&6; }
7fbd9d09
FCE
2162
2163mkdir_p="$MKDIR_P"
2164case $mkdir_p in
2165 [\\/$]* | ?:[\\/]*) ;;
2166 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2167esac
2f1a1aea
FCE
2168
2169for ac_prog in gawk mawk nawk awk
2170do
2171 # Extract the first word of "$ac_prog", so it can be a program name with args.
2172set dummy $ac_prog; ac_word=$2
27aba29a
JS
2173{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2174$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2175if test "${ac_cv_prog_AWK+set}" = set; then
27aba29a 2176 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2177else
2178 if test -n "$AWK"; then
2179 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2180else
2181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182for as_dir in $PATH
2183do
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2188 ac_cv_prog_AWK="$ac_prog"
27aba29a 2189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2190 break 2
2191 fi
2192done
2193done
7fbd9d09 2194IFS=$as_save_IFS
2f1a1aea
FCE
2195
2196fi
2197fi
2198AWK=$ac_cv_prog_AWK
2199if test -n "$AWK"; then
27aba29a
JS
2200 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2201$as_echo "$AWK" >&6; }
2f1a1aea 2202else
27aba29a
JS
2203 { $as_echo "$as_me:$LINENO: result: no" >&5
2204$as_echo "no" >&6; }
2f1a1aea
FCE
2205fi
2206
7fbd9d09 2207
2f1a1aea
FCE
2208 test -n "$AWK" && break
2209done
2210
27aba29a
JS
2211{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2212$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2213set x ${MAKE-make}
2214ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7fbd9d09 2215if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 2216 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2217else
2218 cat >conftest.make <<\_ACEOF
7fbd9d09 2219SHELL = /bin/sh
2f1a1aea 2220all:
7fbd9d09 2221 @echo '@@@%%%=$(MAKE)=@@@%%%'
2f1a1aea
FCE
2222_ACEOF
2223# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7fbd9d09
FCE
2224case `${MAKE-make} -f conftest.make 2>/dev/null` in
2225 *@@@%%%=?*=@@@%%%*)
2226 eval ac_cv_prog_make_${ac_make}_set=yes;;
2227 *)
2228 eval ac_cv_prog_make_${ac_make}_set=no;;
2229esac
2f1a1aea
FCE
2230rm -f conftest.make
2231fi
7fbd9d09 2232if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
27aba29a
JS
2233 { $as_echo "$as_me:$LINENO: result: yes" >&5
2234$as_echo "yes" >&6; }
2f1a1aea
FCE
2235 SET_MAKE=
2236else
27aba29a
JS
2237 { $as_echo "$as_me:$LINENO: result: no" >&5
2238$as_echo "no" >&6; }
2f1a1aea
FCE
2239 SET_MAKE="MAKE=${MAKE-make}"
2240fi
2241
2242rm -rf .tst 2>/dev/null
2243mkdir .tst 2>/dev/null
2244if test -d .tst; then
2245 am__leading_dot=.
2246else
2247 am__leading_dot=_
2248fi
2249rmdir .tst 2>/dev/null
2250
7fbd9d09
FCE
2251if test "`cd $srcdir && pwd`" != "`pwd`"; then
2252 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2253 # is not polluted with repeated "-I."
2254 am__isrc=' -I$(srcdir)'
2255 # test to see if srcdir already configured
2256 if test -f $srcdir/config.status; then
27aba29a
JS
2257 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2258$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2f1a1aea 2259 { (exit 1); exit 1; }; }
7fbd9d09 2260 fi
2f1a1aea
FCE
2261fi
2262
2263# test whether we have cygpath
2264if test -z "$CYGPATH_W"; then
2265 if (cygpath --version) >/dev/null 2>/dev/null; then
2266 CYGPATH_W='cygpath -w'
2267 else
2268 CYGPATH_W=echo
2269 fi
2270fi
2271
2272
2273# Define the identity of the package.
2274 PACKAGE='systemtap'
225d8d4b 2275 VERSION='0.9.6'
2f1a1aea
FCE
2276
2277
2278cat >>confdefs.h <<_ACEOF
2279#define PACKAGE "$PACKAGE"
2280_ACEOF
2281
2282
2283cat >>confdefs.h <<_ACEOF
2284#define VERSION "$VERSION"
2285_ACEOF
2286
2287# Some tools Automake needs.
2288
2289ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2290
2291
2292AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2293
2294
2295AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2296
2297
2298AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2299
2300
2301MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2302
7fbd9d09 2303install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2f1a1aea
FCE
2304
2305# Installed binaries are usually stripped using `strip' when the user
2306# run `make install-strip'. However `strip' might not be the right
2307# tool to use in cross-compilation environments, therefore Automake
2308# will honor the `STRIP' environment variable to overrule this program.
2309if test "$cross_compiling" != no; then
2310 if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2312set dummy ${ac_tool_prefix}strip; ac_word=$2
27aba29a
JS
2313{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2314$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2315if test "${ac_cv_prog_STRIP+set}" = set; then
27aba29a 2316 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2317else
2318 if test -n "$STRIP"; then
2319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2320else
2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322for as_dir in $PATH
2323do
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
27aba29a 2329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2330 break 2
2331 fi
2332done
2333done
7fbd9d09 2334IFS=$as_save_IFS
2f1a1aea
FCE
2335
2336fi
2337fi
2338STRIP=$ac_cv_prog_STRIP
2339if test -n "$STRIP"; then
27aba29a
JS
2340 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2341$as_echo "$STRIP" >&6; }
2f1a1aea 2342else
27aba29a
JS
2343 { $as_echo "$as_me:$LINENO: result: no" >&5
2344$as_echo "no" >&6; }
2f1a1aea
FCE
2345fi
2346
7fbd9d09 2347
2f1a1aea
FCE
2348fi
2349if test -z "$ac_cv_prog_STRIP"; then
2350 ac_ct_STRIP=$STRIP
2351 # Extract the first word of "strip", so it can be a program name with args.
2352set dummy strip; ac_word=$2
27aba29a
JS
2353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2354$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2355if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
27aba29a 2356 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2357else
2358 if test -n "$ac_ct_STRIP"; then
2359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2360else
2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362for as_dir in $PATH
2363do
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2368 ac_cv_prog_ac_ct_STRIP="strip"
27aba29a 2369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2370 break 2
2371 fi
2372done
2373done
7fbd9d09 2374IFS=$as_save_IFS
2f1a1aea 2375
2f1a1aea
FCE
2376fi
2377fi
2378ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2379if test -n "$ac_ct_STRIP"; then
27aba29a
JS
2380 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2381$as_echo "$ac_ct_STRIP" >&6; }
2f1a1aea 2382else
27aba29a
JS
2383 { $as_echo "$as_me:$LINENO: result: no" >&5
2384$as_echo "no" >&6; }
2f1a1aea
FCE
2385fi
2386
7fbd9d09
FCE
2387 if test "x$ac_ct_STRIP" = x; then
2388 STRIP=":"
2389 else
2390 case $cross_compiling:$ac_tool_warned in
2391yes:)
27aba29a
JS
2392{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
2394ac_tool_warned=yes ;;
2395esac
2396 STRIP=$ac_ct_STRIP
2397 fi
2f1a1aea
FCE
2398else
2399 STRIP="$ac_cv_prog_STRIP"
2400fi
2401
2402fi
7fbd9d09 2403INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2f1a1aea
FCE
2404
2405# We need awk for the "check" target. The system "awk" is bad on
2406# some platforms.
2407# Always define AMTAR for backward compatibility.
2408
2409AMTAR=${AMTAR-"${am_missing_run}tar"}
2410
2411am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2412
2413
2414
2415
2416
27aba29a
JS
2417{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2418$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7fbd9d09 2419 # Check whether --enable-maintainer-mode was given.
2f1a1aea 2420if test "${enable_maintainer_mode+set}" = set; then
7fbd9d09 2421 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2f1a1aea
FCE
2422else
2423 USE_MAINTAINER_MODE=no
7fbd9d09 2424fi
2f1a1aea 2425
27aba29a
JS
2426 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2427$as_echo "$USE_MAINTAINER_MODE" >&6; }
7fbd9d09 2428 if test $USE_MAINTAINER_MODE = yes; then
2f1a1aea
FCE
2429 MAINTAINER_MODE_TRUE=
2430 MAINTAINER_MODE_FALSE='#'
2431else
2432 MAINTAINER_MODE_TRUE='#'
2433 MAINTAINER_MODE_FALSE=
2434fi
2435
2436 MAINT=$MAINTAINER_MODE_TRUE
2437
2438
2439
7fbd9d09
FCE
2440mkdir_p="$MKDIR_P"
2441case $mkdir_p in
2442 [\\/$]* | ?:[\\/]*) ;;
2443 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2444esac
2445
98aab489 2446
27aba29a
JS
2447{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
2448$as_echo_n "checking whether ln -s works... " >&6; }
2f1a1aea
FCE
2449LN_S=$as_ln_s
2450if test "$LN_S" = "ln -s"; then
27aba29a
JS
2451 { $as_echo "$as_me:$LINENO: result: yes" >&5
2452$as_echo "yes" >&6; }
2f1a1aea 2453else
27aba29a
JS
2454 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2455$as_echo "no, using $LN_S" >&6; }
2f1a1aea
FCE
2456fi
2457
2458ac_ext=c
2459ac_cpp='$CPP $CPPFLAGS'
2460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2465set dummy ${ac_tool_prefix}gcc; ac_word=$2
27aba29a
JS
2466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2467$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2468if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 2469 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2470else
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2473else
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
27aba29a 2482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2483 break 2
2484 fi
2485done
2486done
7fbd9d09 2487IFS=$as_save_IFS
2f1a1aea
FCE
2488
2489fi
2490fi
2491CC=$ac_cv_prog_CC
2492if test -n "$CC"; then
27aba29a
JS
2493 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2494$as_echo "$CC" >&6; }
2f1a1aea 2495else
27aba29a
JS
2496 { $as_echo "$as_me:$LINENO: result: no" >&5
2497$as_echo "no" >&6; }
2f1a1aea
FCE
2498fi
2499
7fbd9d09 2500
2f1a1aea
FCE
2501fi
2502if test -z "$ac_cv_prog_CC"; then
2503 ac_ct_CC=$CC
2504 # Extract the first word of "gcc", so it can be a program name with args.
2505set dummy gcc; ac_word=$2
27aba29a
JS
2506{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2507$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2508if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27aba29a 2509 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2510else
2511 if test -n "$ac_ct_CC"; then
2512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2513else
2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2521 ac_cv_prog_ac_ct_CC="gcc"
27aba29a 2522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2523 break 2
2524 fi
2525done
2526done
7fbd9d09 2527IFS=$as_save_IFS
2f1a1aea
FCE
2528
2529fi
2530fi
2531ac_ct_CC=$ac_cv_prog_ac_ct_CC
2532if test -n "$ac_ct_CC"; then
27aba29a
JS
2533 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2534$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 2535else
27aba29a
JS
2536 { $as_echo "$as_me:$LINENO: result: no" >&5
2537$as_echo "no" >&6; }
2f1a1aea
FCE
2538fi
2539
7fbd9d09
FCE
2540 if test "x$ac_ct_CC" = x; then
2541 CC=""
2542 else
2543 case $cross_compiling:$ac_tool_warned in
2544yes:)
27aba29a
JS
2545{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
2547ac_tool_warned=yes ;;
2548esac
2549 CC=$ac_ct_CC
2550 fi
2f1a1aea
FCE
2551else
2552 CC="$ac_cv_prog_CC"
2553fi
2554
2555if test -z "$CC"; then
7fbd9d09
FCE
2556 if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2f1a1aea 2558set dummy ${ac_tool_prefix}cc; ac_word=$2
27aba29a
JS
2559{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2560$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2561if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 2562 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2563else
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2574 ac_cv_prog_CC="${ac_tool_prefix}cc"
27aba29a 2575 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2576 break 2
2577 fi
2578done
2579done
7fbd9d09 2580IFS=$as_save_IFS
2f1a1aea
FCE
2581
2582fi
2583fi
2584CC=$ac_cv_prog_CC
2585if test -n "$CC"; then
27aba29a
JS
2586 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2587$as_echo "$CC" >&6; }
818ba2bc 2588else
27aba29a
JS
2589 { $as_echo "$as_me:$LINENO: result: no" >&5
2590$as_echo "no" >&6; }
818ba2bc
MW
2591fi
2592
818ba2bc 2593
7fbd9d09 2594 fi
2f1a1aea
FCE
2595fi
2596if test -z "$CC"; then
2597 # Extract the first word of "cc", so it can be a program name with args.
2598set dummy cc; ac_word=$2
27aba29a
JS
2599{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2600$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2601if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 2602 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2603else
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2606else
2607 ac_prog_rejected=no
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea
FCE
2615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2616 ac_prog_rejected=yes
2617 continue
2618 fi
2619 ac_cv_prog_CC="cc"
27aba29a 2620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2621 break 2
2622 fi
2623done
2624done
7fbd9d09 2625IFS=$as_save_IFS
2f1a1aea
FCE
2626
2627if test $ac_prog_rejected = yes; then
2628 # We found a bogon in the path, so make sure we never use it.
2629 set dummy $ac_cv_prog_CC
2630 shift
2631 if test $# != 0; then
2632 # We chose a different compiler from the bogus one.
2633 # However, it has the same basename, so the bogon will be chosen
2634 # first if we set CC to just the basename; use the full file name.
2635 shift
2636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2637 fi
2638fi
2639fi
2640fi
2641CC=$ac_cv_prog_CC
2642if test -n "$CC"; then
27aba29a
JS
2643 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2644$as_echo "$CC" >&6; }
2f1a1aea 2645else
27aba29a
JS
2646 { $as_echo "$as_me:$LINENO: result: no" >&5
2647$as_echo "no" >&6; }
2f1a1aea
FCE
2648fi
2649
7fbd9d09 2650
2f1a1aea
FCE
2651fi
2652if test -z "$CC"; then
2653 if test -n "$ac_tool_prefix"; then
7fbd9d09 2654 for ac_prog in cl.exe
2f1a1aea
FCE
2655 do
2656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27aba29a
JS
2658{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2659$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2660if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 2661 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2662else
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2665else
2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
27aba29a 2674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2675 break 2
2676 fi
2677done
2678done
7fbd9d09 2679IFS=$as_save_IFS
2f1a1aea
FCE
2680
2681fi
2682fi
2683CC=$ac_cv_prog_CC
2684if test -n "$CC"; then
27aba29a
JS
2685 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2686$as_echo "$CC" >&6; }
2f1a1aea 2687else
27aba29a
JS
2688 { $as_echo "$as_me:$LINENO: result: no" >&5
2689$as_echo "no" >&6; }
2f1a1aea
FCE
2690fi
2691
7fbd9d09 2692
2f1a1aea
FCE
2693 test -n "$CC" && break
2694 done
2695fi
2696if test -z "$CC"; then
2697 ac_ct_CC=$CC
7fbd9d09 2698 for ac_prog in cl.exe
2f1a1aea
FCE
2699do
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701set dummy $ac_prog; ac_word=$2
27aba29a
JS
2702{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2703$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 2704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27aba29a 2705 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2706else
2707 if test -n "$ac_ct_CC"; then
2708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2709else
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2717 ac_cv_prog_ac_ct_CC="$ac_prog"
27aba29a 2718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2719 break 2
2720 fi
2721done
2722done
7fbd9d09 2723IFS=$as_save_IFS
2f1a1aea
FCE
2724
2725fi
2726fi
2727ac_ct_CC=$ac_cv_prog_ac_ct_CC
2728if test -n "$ac_ct_CC"; then
27aba29a
JS
2729 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2730$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 2731else
27aba29a
JS
2732 { $as_echo "$as_me:$LINENO: result: no" >&5
2733$as_echo "no" >&6; }
2f1a1aea
FCE
2734fi
2735
7fbd9d09 2736
2f1a1aea
FCE
2737 test -n "$ac_ct_CC" && break
2738done
2739
7fbd9d09
FCE
2740 if test "x$ac_ct_CC" = x; then
2741 CC=""
2742 else
2743 case $cross_compiling:$ac_tool_warned in
2744yes:)
27aba29a
JS
2745{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
2747ac_tool_warned=yes ;;
2748esac
2749 CC=$ac_ct_CC
2750 fi
2f1a1aea
FCE
2751fi
2752
2753fi
2754
2755
27aba29a
JS
2756test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2758{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2f1a1aea 2759See \`config.log' for more details." >&5
27aba29a 2760$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2f1a1aea 2761See \`config.log' for more details." >&2;}
27aba29a 2762 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
2763
2764# Provide some information about the compiler.
27aba29a
JS
2765$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2766set X $ac_compile
2767ac_compiler=$2
7fbd9d09
FCE
2768{ (ac_try="$ac_compiler --version >&5"
2769case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772esac
27aba29a
JS
2773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2774$as_echo "$ac_try_echo") >&5
7fbd9d09 2775 (eval "$ac_compiler --version >&5") 2>&5
2f1a1aea 2776 ac_status=$?
27aba29a 2777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 2778 (exit $ac_status); }
7fbd9d09
FCE
2779{ (ac_try="$ac_compiler -v >&5"
2780case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783esac
27aba29a
JS
2784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2785$as_echo "$ac_try_echo") >&5
7fbd9d09 2786 (eval "$ac_compiler -v >&5") 2>&5
2f1a1aea 2787 ac_status=$?
27aba29a 2788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 2789 (exit $ac_status); }
7fbd9d09
FCE
2790{ (ac_try="$ac_compiler -V >&5"
2791case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794esac
27aba29a
JS
2795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2796$as_echo "$ac_try_echo") >&5
7fbd9d09 2797 (eval "$ac_compiler -V >&5") 2>&5
2f1a1aea 2798 ac_status=$?
27aba29a 2799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea
FCE
2800 (exit $ac_status); }
2801
2802cat >conftest.$ac_ext <<_ACEOF
2803/* confdefs.h. */
2804_ACEOF
2805cat confdefs.h >>conftest.$ac_ext
2806cat >>conftest.$ac_ext <<_ACEOF
2807/* end confdefs.h. */
2808
2809int
2810main ()
2811{
2812
2813 ;
2814 return 0;
2815}
2816_ACEOF
2817ac_clean_files_save=$ac_clean_files
27aba29a 2818ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2f1a1aea
FCE
2819# Try to create an executable without -o first, disregard a.out.
2820# It will help us diagnose broken compilers, and finding out an intuition
2821# of exeext.
27aba29a
JS
2822{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2823$as_echo_n "checking for C compiler default output file name... " >&6; }
2824ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2825
2826# The possible output files:
2827ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2828
7fbd9d09
FCE
2829ac_rmfiles=
2830for ac_file in $ac_files
2831do
2832 case $ac_file in
27aba29a 2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7fbd9d09
FCE
2834 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2835 esac
2836done
2837rm -f $ac_rmfiles
2838
2839if { (ac_try="$ac_link_default"
2840case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843esac
27aba29a
JS
2844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2845$as_echo "$ac_try_echo") >&5
7fbd9d09 2846 (eval "$ac_link_default") 2>&5
2f1a1aea 2847 ac_status=$?
27aba29a 2848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 2849 (exit $ac_status); }; then
7fbd9d09
FCE
2850 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2851# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2852# in a Makefile. We should not override ac_cv_exeext if it was cached,
2853# so that the user can short-circuit this test for compilers unknown to
2854# Autoconf.
2855for ac_file in $ac_files ''
2f1a1aea
FCE
2856do
2857 test -f "$ac_file" || continue
2858 case $ac_file in
27aba29a 2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2f1a1aea
FCE
2860 ;;
2861 [ab].out )
2862 # We found the default executable, but exeext='' is most
2863 # certainly right.
2864 break;;
2865 *.* )
7fbd9d09
FCE
2866 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2867 then :; else
2868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 fi
2870 # We set ac_cv_exeext here because the later test for it is not
2871 # safe: cross compilers may not add the suffix if given an `-o'
2872 # argument, so we may need to know it at that point already.
2873 # Even if this section looks crufty: it has the advantage of
2874 # actually working.
2f1a1aea
FCE
2875 break;;
2876 * )
2877 break;;
2878 esac
2879done
7fbd9d09
FCE
2880test "$ac_cv_exeext" = no && ac_cv_exeext=
2881
2f1a1aea 2882else
7fbd9d09
FCE
2883 ac_file=''
2884fi
2885
27aba29a
JS
2886{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2887$as_echo "$ac_file" >&6; }
7fbd9d09 2888if test -z "$ac_file"; then
27aba29a 2889 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
2890sed 's/^/| /' conftest.$ac_ext >&5
2891
27aba29a
JS
2892{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2894{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2f1a1aea 2895See \`config.log' for more details." >&5
27aba29a 2896$as_echo "$as_me: error: C compiler cannot create executables
2f1a1aea 2897See \`config.log' for more details." >&2;}
27aba29a 2898 { (exit 77); exit 77; }; }; }
2f1a1aea
FCE
2899fi
2900
2901ac_exeext=$ac_cv_exeext
2f1a1aea 2902
7fbd9d09 2903# Check that the compiler produces executables we can run. If not, either
2f1a1aea 2904# the compiler is broken, or we cross compile.
27aba29a
JS
2905{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2906$as_echo_n "checking whether the C compiler works... " >&6; }
2f1a1aea
FCE
2907# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2908# If not cross compiling, check that we can run a simple program.
2909if test "$cross_compiling" != yes; then
2910 if { ac_try='./$ac_file'
7fbd9d09
FCE
2911 { (case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914esac
27aba29a
JS
2915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2916$as_echo "$ac_try_echo") >&5
7fbd9d09 2917 (eval "$ac_try") 2>&5
2f1a1aea 2918 ac_status=$?
27aba29a 2919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea
FCE
2920 (exit $ac_status); }; }; then
2921 cross_compiling=no
2922 else
2923 if test "$cross_compiling" = maybe; then
2924 cross_compiling=yes
2925 else
27aba29a
JS
2926 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2928{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2f1a1aea
FCE
2929If you meant to cross compile, use \`--host'.
2930See \`config.log' for more details." >&5
27aba29a 2931$as_echo "$as_me: error: cannot run C compiled programs.
2f1a1aea
FCE
2932If you meant to cross compile, use \`--host'.
2933See \`config.log' for more details." >&2;}
27aba29a 2934 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
2935 fi
2936 fi
2937fi
27aba29a
JS
2938{ $as_echo "$as_me:$LINENO: result: yes" >&5
2939$as_echo "yes" >&6; }
2f1a1aea 2940
27aba29a 2941rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2f1a1aea 2942ac_clean_files=$ac_clean_files_save
7fbd9d09 2943# Check that the compiler produces executables we can run. If not, either
2f1a1aea 2944# the compiler is broken, or we cross compile.
27aba29a
JS
2945{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2946$as_echo_n "checking whether we are cross compiling... " >&6; }
2947{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2948$as_echo "$cross_compiling" >&6; }
7fbd9d09 2949
27aba29a
JS
2950{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2951$as_echo_n "checking for suffix of executables... " >&6; }
7fbd9d09
FCE
2952if { (ac_try="$ac_link"
2953case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956esac
27aba29a
JS
2957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2958$as_echo "$ac_try_echo") >&5
7fbd9d09 2959 (eval "$ac_link") 2>&5
2f1a1aea 2960 ac_status=$?
27aba29a 2961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea
FCE
2962 (exit $ac_status); }; then
2963 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2964# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2965# work properly (i.e., refer to `conftest.exe'), while it won't with
2966# `rm'.
2967for ac_file in conftest.exe conftest conftest.*; do
2968 test -f "$ac_file" || continue
2969 case $ac_file in
27aba29a 2970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2f1a1aea 2971 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2f1a1aea
FCE
2972 break;;
2973 * ) break;;
2974 esac
2975done
2976else
27aba29a
JS
2977 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2f1a1aea 2980See \`config.log' for more details." >&5
27aba29a 2981$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2f1a1aea 2982See \`config.log' for more details." >&2;}
27aba29a 2983 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
2984fi
2985
2986rm -f conftest$ac_cv_exeext
27aba29a
JS
2987{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2988$as_echo "$ac_cv_exeext" >&6; }
2f1a1aea
FCE
2989
2990rm -f conftest.$ac_ext
2991EXEEXT=$ac_cv_exeext
2992ac_exeext=$EXEEXT
27aba29a
JS
2993{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2994$as_echo_n "checking for suffix of object files... " >&6; }
2f1a1aea 2995if test "${ac_cv_objext+set}" = set; then
27aba29a 2996 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2997else
2998 cat >conftest.$ac_ext <<_ACEOF
2999/* confdefs.h. */
3000_ACEOF
3001cat confdefs.h >>conftest.$ac_ext
3002cat >>conftest.$ac_ext <<_ACEOF
3003/* end confdefs.h. */
3004
3005int
3006main ()
3007{
3008
3009 ;
3010 return 0;
3011}
3012_ACEOF
3013rm -f conftest.o conftest.obj
7fbd9d09
FCE
3014if { (ac_try="$ac_compile"
3015case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
27aba29a
JS
3019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3020$as_echo "$ac_try_echo") >&5
7fbd9d09 3021 (eval "$ac_compile") 2>&5
2f1a1aea 3022 ac_status=$?
27aba29a 3023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 3024 (exit $ac_status); }; then
7fbd9d09
FCE
3025 for ac_file in conftest.o conftest.obj conftest.*; do
3026 test -f "$ac_file" || continue;
2f1a1aea 3027 case $ac_file in
27aba29a 3028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2f1a1aea
FCE
3029 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3030 break;;
3031 esac
3032done
3033else
27aba29a 3034 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3035sed 's/^/| /' conftest.$ac_ext >&5
3036
27aba29a
JS
3037{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3039{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2f1a1aea 3040See \`config.log' for more details." >&5
27aba29a 3041$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2f1a1aea 3042See \`config.log' for more details." >&2;}
27aba29a 3043 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
3044fi
3045
3046rm -f conftest.$ac_cv_objext conftest.$ac_ext
3047fi
27aba29a
JS
3048{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3049$as_echo "$ac_cv_objext" >&6; }
2f1a1aea
FCE
3050OBJEXT=$ac_cv_objext
3051ac_objext=$OBJEXT
27aba29a
JS
3052{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3053$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2f1a1aea 3054if test "${ac_cv_c_compiler_gnu+set}" = set; then
27aba29a 3055 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3056else
3057 cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h. */
3063
3064int
3065main ()
3066{
3067#ifndef __GNUC__
3068 choke me
3069#endif
3070
3071 ;
3072 return 0;
3073}
3074_ACEOF
3075rm -f conftest.$ac_objext
7fbd9d09
FCE
3076if { (ac_try="$ac_compile"
3077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
27aba29a
JS
3081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3082$as_echo "$ac_try_echo") >&5
7fbd9d09 3083 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
27aba29a 3088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3089 (exit $ac_status); } && {
3090 test -z "$ac_c_werror_flag" ||
3091 test ! -s conftest.err
3092 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3093 ac_compiler_gnu=yes
3094else
27aba29a 3095 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3096sed 's/^/| /' conftest.$ac_ext >&5
3097
7fbd9d09 3098 ac_compiler_gnu=no
2f1a1aea 3099fi
7fbd9d09
FCE
3100
3101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
3102ac_cv_c_compiler_gnu=$ac_compiler_gnu
3103
3104fi
27aba29a
JS
3105{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3106$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3107if test $ac_compiler_gnu = yes; then
3108 GCC=yes
3109else
3110 GCC=
3111fi
2f1a1aea
FCE
3112ac_test_CFLAGS=${CFLAGS+set}
3113ac_save_CFLAGS=$CFLAGS
27aba29a
JS
3114{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3115$as_echo_n "checking whether $CC accepts -g... " >&6; }
2f1a1aea 3116if test "${ac_cv_prog_cc_g+set}" = set; then
27aba29a 3117 $as_echo_n "(cached) " >&6
2f1a1aea 3118else
7fbd9d09
FCE
3119 ac_save_c_werror_flag=$ac_c_werror_flag
3120 ac_c_werror_flag=yes
3121 ac_cv_prog_cc_g=no
3122 CFLAGS="-g"
3123 cat >conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h. */
3129
3130int
3131main ()
3132{
3133
3134 ;
3135 return 0;
3136}
3137_ACEOF
3138rm -f conftest.$ac_objext
7fbd9d09
FCE
3139if { (ac_try="$ac_compile"
3140case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
27aba29a
JS
3144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3145$as_echo "$ac_try_echo") >&5
7fbd9d09 3146 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3147 ac_status=$?
3148 grep -v '^ *+' conftest.er1 >conftest.err
3149 rm -f conftest.er1
3150 cat conftest.err >&5
27aba29a 3151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3152 (exit $ac_status); } && {
3153 test -z "$ac_c_werror_flag" ||
3154 test ! -s conftest.err
3155 } && test -s conftest.$ac_objext; then
3156 ac_cv_prog_cc_g=yes
3157else
27aba29a 3158 $as_echo "$as_me: failed program was:" >&5
7fbd9d09
FCE
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161 CFLAGS=""
3162 cat >conftest.$ac_ext <<_ACEOF
3163/* confdefs.h. */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h. */
3168
3169int
3170main ()
3171{
3172
3173 ;
3174 return 0;
3175}
3176_ACEOF
3177rm -f conftest.$ac_objext
3178if { (ac_try="$ac_compile"
3179case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182esac
27aba29a
JS
3183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3184$as_echo "$ac_try_echo") >&5
7fbd9d09 3185 (eval "$ac_compile") 2>conftest.er1
2f1a1aea 3186 ac_status=$?
7fbd9d09
FCE
3187 grep -v '^ *+' conftest.er1 >conftest.err
3188 rm -f conftest.er1
3189 cat conftest.err >&5
27aba29a 3190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3191 (exit $ac_status); } && {
3192 test -z "$ac_c_werror_flag" ||
3193 test ! -s conftest.err
3194 } && test -s conftest.$ac_objext; then
3195 :
3196else
27aba29a 3197 $as_echo "$as_me: failed program was:" >&5
7fbd9d09
FCE
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
3200 ac_c_werror_flag=$ac_save_c_werror_flag
3201 CFLAGS="-g"
3202 cat >conftest.$ac_ext <<_ACEOF
3203/* confdefs.h. */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
3207/* end confdefs.h. */
3208
3209int
3210main ()
3211{
3212
3213 ;
3214 return 0;
3215}
3216_ACEOF
3217rm -f conftest.$ac_objext
3218if { (ac_try="$ac_compile"
3219case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222esac
27aba29a
JS
3223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224$as_echo "$ac_try_echo") >&5
7fbd9d09 3225 (eval "$ac_compile") 2>conftest.er1
2f1a1aea 3226 ac_status=$?
7fbd9d09
FCE
3227 grep -v '^ *+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
27aba29a 3230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3231 (exit $ac_status); } && {
3232 test -z "$ac_c_werror_flag" ||
3233 test ! -s conftest.err
3234 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3235 ac_cv_prog_cc_g=yes
3236else
27aba29a 3237 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3238sed 's/^/| /' conftest.$ac_ext >&5
3239
7fbd9d09
FCE
3240
3241fi
3242
3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea 3244fi
7fbd9d09
FCE
3245
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247fi
3248
3249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
2f1a1aea 3251fi
27aba29a
JS
3252{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253$as_echo "$ac_cv_prog_cc_g" >&6; }
2f1a1aea
FCE
3254if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
3259 else
3260 CFLAGS="-g"
3261 fi
3262else
3263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
3265 else
3266 CFLAGS=
3267 fi
3268fi
27aba29a
JS
3269{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3270$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7fbd9d09 3271if test "${ac_cv_prog_cc_c89+set}" = set; then
27aba29a 3272 $as_echo_n "(cached) " >&6
2f1a1aea 3273else
7fbd9d09 3274 ac_cv_prog_cc_c89=no
2f1a1aea
FCE
3275ac_save_CC=$CC
3276cat >conftest.$ac_ext <<_ACEOF
3277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
3282#include <stdarg.h>
3283#include <stdio.h>
3284#include <sys/types.h>
3285#include <sys/stat.h>
3286/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287struct buf { int x; };
3288FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289static char *e (p, i)
3290 char **p;
3291 int i;
3292{
3293 return p[i];
3294}
3295static char *f (char * (*g) (char **, int), char **p, ...)
3296{
3297 char *s;
3298 va_list v;
3299 va_start (v,p);
3300 s = g (p, va_arg (v,int));
3301 va_end (v);
3302 return s;
3303}
3304
3305/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
7fbd9d09 3308 as 'x'. The following induces an error, until -std is added to get
2f1a1aea
FCE
3309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
7fbd9d09 3311 that's true only with -std. */
2f1a1aea
FCE
3312int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3313
7fbd9d09
FCE
3314/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3315 inside strings and character constants. */
3316#define FOO(x) 'x'
3317int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3318
2f1a1aea
FCE
3319int test (int i, double x);
3320struct s1 {int (*f) (int a);};
3321struct s2 {int (*f) (double a);};
3322int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3323int argc;
3324char **argv;
3325int
3326main ()
3327{
3328return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3329 ;
3330 return 0;
3331}
3332_ACEOF
7fbd9d09
FCE
3333for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2f1a1aea
FCE
3335do
3336 CC="$ac_save_CC $ac_arg"
3337 rm -f conftest.$ac_objext
7fbd9d09
FCE
3338if { (ac_try="$ac_compile"
3339case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342esac
27aba29a
JS
3343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344$as_echo "$ac_try_echo") >&5
7fbd9d09 3345 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3346 ac_status=$?
3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
27aba29a 3350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3351 (exit $ac_status); } && {
3352 test -z "$ac_c_werror_flag" ||
3353 test ! -s conftest.err
3354 } && test -s conftest.$ac_objext; then
3355 ac_cv_prog_cc_c89=$ac_arg
818ba2bc 3356else
27aba29a 3357 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
7fbd9d09 3360
2f1a1aea 3361fi
7fbd9d09
FCE
3362
3363rm -f core conftest.err conftest.$ac_objext
3364 test "x$ac_cv_prog_cc_c89" != "xno" && break
2f1a1aea 3365done
7fbd9d09 3366rm -f conftest.$ac_ext
2f1a1aea
FCE
3367CC=$ac_save_CC
3368
3369fi
7fbd9d09
FCE
3370# AC_CACHE_VAL
3371case "x$ac_cv_prog_cc_c89" in
3372 x)
27aba29a
JS
3373 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3374$as_echo "none needed" >&6; } ;;
7fbd9d09 3375 xno)
27aba29a
JS
3376 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3377$as_echo "unsupported" >&6; } ;;
2f1a1aea 3378 *)
7fbd9d09 3379 CC="$CC $ac_cv_prog_cc_c89"
27aba29a
JS
3380 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2f1a1aea
FCE
3382esac
3383
818ba2bc 3384
818ba2bc
MW
3385ac_ext=c
3386ac_cpp='$CPP $CPPFLAGS'
3387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390DEPDIR="${am__leading_dot}deps"
3391
7fbd9d09 3392ac_config_commands="$ac_config_commands depfiles"
818ba2bc
MW
3393
3394
3395am_make=${MAKE-make}
3396cat > confinc << 'END'
3397am__doit:
8ae7a94a
FCE
3398 @echo done
3399.PHONY: am__doit
3400END
3401# If we don't find an include directive, just comment out the code.
27aba29a
JS
3402{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3403$as_echo_n "checking for style of include used by $am_make... " >&6; }
8ae7a94a
FCE
3404am__include="#"
3405am__quote=
3406_am_result=none
3407# First try GNU make style include.
3408echo "include confinc" > confmf
3409# We grep out `Entering directory' and `Leaving directory'
3410# messages which can occur if `w' ends up in MAKEFLAGS.
3411# In particular we don't look at `^make:' because GNU make might
3412# be invoked under some other name (usually "gmake"), in which
3413# case it prints its new name instead of `make'.
3414if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3415 am__include=include
3416 am__quote=
3417 _am_result=GNU
3418fi
3419# Now try BSD make style include.
3420if test "$am__include" = "#"; then
3421 echo '.include "confinc"' > confmf
3422 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3423 am__include=.include
3424 am__quote="\""
3425 _am_result=BSD
3426 fi
3427fi
2f1a1aea 3428
8ae7a94a 3429
27aba29a
JS
3430{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3431$as_echo "$_am_result" >&6; }
2f1a1aea
FCE
3432rm -f confinc confmf
3433
7fbd9d09 3434# Check whether --enable-dependency-tracking was given.
2f1a1aea 3435if test "${enable_dependency_tracking+set}" = set; then
7fbd9d09
FCE
3436 enableval=$enable_dependency_tracking;
3437fi
2f1a1aea 3438
2f1a1aea
FCE
3439if test "x$enable_dependency_tracking" != xno; then
3440 am_depcomp="$ac_aux_dir/depcomp"
3441 AMDEPBACKSLASH='\'
3442fi
7fbd9d09 3443 if test "x$enable_dependency_tracking" != xno; then
2f1a1aea
FCE
3444 AMDEP_TRUE=
3445 AMDEP_FALSE='#'
3446else
3447 AMDEP_TRUE='#'
3448 AMDEP_FALSE=
3449fi
3450
3451
3452
2f1a1aea
FCE
3453depcc="$CC" am_compiler_list=
3454
27aba29a
JS
3455{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3456$as_echo_n "checking dependency style of $depcc... " >&6; }
2f1a1aea 3457if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
27aba29a 3458 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3459else
3460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3461 # We make a subdir and do the tests there. Otherwise we can end up
3462 # making bogus files that we don't know about and never remove. For
3463 # instance it was reported that on HP-UX the gcc test will end up
3464 # making a dummy file named `D' -- because `-MD' means `put the output
3465 # in D'.
3466 mkdir conftest.dir
3467 # Copy depcomp to subdir because otherwise we won't find it if we're
3468 # using a relative directory.
3469 cp "$am_depcomp" conftest.dir
3470 cd conftest.dir
3471 # We will build objects and dependencies in a subdirectory because
3472 # it helps to detect inapplicable dependency modes. For instance
3473 # both Tru64's cc and ICC support -MD to output dependencies as a
3474 # side effect of compilation, but ICC will put the dependencies in
3475 # the current directory while Tru64 will put them in the object
3476 # directory.
3477 mkdir sub
3478
3479 am_cv_CC_dependencies_compiler_type=none
3480 if test "$am_compiler_list" = ""; then
3481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3482 fi
3483 for depmode in $am_compiler_list; do
3484 # Setup a source with many dependencies, because some compilers
3485 # like to wrap large dependency lists on column 80 (with \), and
3486 # we should not choose a depcomp mode which is confused by this.
3487 #
3488 # We need to recreate these files for each test, as the compiler may
3489 # overwrite some of them when testing with obscure command lines.
3490 # This happens at least with the AIX C compiler.
3491 : > sub/conftest.c
3492 for i in 1 2 3 4 5 6; do
3493 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3494 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3495 # Solaris 8's {/usr,}/bin/sh.
3496 touch sub/conftst$i.h
3497 done
3498 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3499
3500 case $depmode in
3501 nosideeffect)
3502 # after this tag, mechanisms are not by side-effect, so they'll
3503 # only be used when explicitly requested
3504 if test "x$enable_dependency_tracking" = xyes; then
3505 continue
3506 else
3507 break
3508 fi
3509 ;;
3510 none) break ;;
3511 esac
3512 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3513 # mode. It turns out that the SunPro C++ compiler does not properly
3514 # handle `-M -o', and we need to detect this.
3515 if depmode=$depmode \
3516 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3518 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3519 >/dev/null 2>conftest.err &&
7fbd9d09 3520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
3521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3522 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3524 # icc doesn't choke on unknown options, it will just issue warnings
3525 # or remarks (even with -Werror). So we grep stderr for any message
3526 # that says an option was ignored or not supported.
3527 # When given -MP, icc 7.0 and 7.1 complain thusly:
3528 # icc: Command line warning: ignoring option '-M'; no argument required
3529 # The diagnosis changed in icc 8.0:
3530 # icc: Command line remark: option '-MP' not supported
3531 if (grep 'ignoring option' conftest.err ||
3532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3533 am_cv_CC_dependencies_compiler_type=$depmode
3534 break
3535 fi
3536 fi
3537 done
3538
3539 cd ..
3540 rm -rf conftest.dir
3541else
3542 am_cv_CC_dependencies_compiler_type=none
3543fi
3544
3545fi
27aba29a
JS
3546{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3547$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
3548CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3549
7fbd9d09 3550 if
2f1a1aea
FCE
3551 test "x$enable_dependency_tracking" != xno \
3552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3553 am__fastdepCC_TRUE=
3554 am__fastdepCC_FALSE='#'
3555else
3556 am__fastdepCC_TRUE='#'
3557 am__fastdepCC_FALSE=
3558fi
3559
3560
7fbd9d09 3561ac_ext=cpp
2f1a1aea
FCE
3562ac_cpp='$CXXCPP $CPPFLAGS'
3563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7fbd9d09
FCE
3566if test -z "$CXX"; then
3567 if test -n "$CCC"; then
3568 CXX=$CCC
3569 else
3570 if test -n "$ac_tool_prefix"; then
3571 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2f1a1aea
FCE
3572 do
3573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3574set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27aba29a
JS
3575{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3576$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 3577if test "${ac_cv_prog_CXX+set}" = set; then
27aba29a 3578 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3579else
3580 if test -n "$CXX"; then
3581 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3582else
3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH
3585do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 3590 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
27aba29a 3591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3592 break 2
3593 fi
3594done
3595done
7fbd9d09 3596IFS=$as_save_IFS
2f1a1aea
FCE
3597
3598fi
3599fi
3600CXX=$ac_cv_prog_CXX
3601if test -n "$CXX"; then
27aba29a
JS
3602 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3603$as_echo "$CXX" >&6; }
2f1a1aea 3604else
27aba29a
JS
3605 { $as_echo "$as_me:$LINENO: result: no" >&5
3606$as_echo "no" >&6; }
2f1a1aea
FCE
3607fi
3608
7fbd9d09 3609
2f1a1aea
FCE
3610 test -n "$CXX" && break
3611 done
3612fi
3613if test -z "$CXX"; then
3614 ac_ct_CXX=$CXX
7fbd9d09 3615 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2f1a1aea
FCE
3616do
3617 # Extract the first word of "$ac_prog", so it can be a program name with args.
3618set dummy $ac_prog; ac_word=$2
27aba29a
JS
3619{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3620$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 3621if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
27aba29a 3622 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3623else
3624 if test -n "$ac_ct_CXX"; then
3625 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3626else
3627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628for as_dir in $PATH
3629do
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 3634 ac_cv_prog_ac_ct_CXX="$ac_prog"
27aba29a 3635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3636 break 2
3637 fi
3638done
3639done
7fbd9d09 3640IFS=$as_save_IFS
2f1a1aea
FCE
3641
3642fi
3643fi
3644ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3645if test -n "$ac_ct_CXX"; then
27aba29a
JS
3646 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3647$as_echo "$ac_ct_CXX" >&6; }
2f1a1aea 3648else
27aba29a
JS
3649 { $as_echo "$as_me:$LINENO: result: no" >&5
3650$as_echo "no" >&6; }
2f1a1aea
FCE
3651fi
3652
7fbd9d09 3653
2f1a1aea
FCE
3654 test -n "$ac_ct_CXX" && break
3655done
2f1a1aea 3656
7fbd9d09
FCE
3657 if test "x$ac_ct_CXX" = x; then
3658 CXX="g++"
3659 else
3660 case $cross_compiling:$ac_tool_warned in
3661yes:)
27aba29a
JS
3662{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
3664ac_tool_warned=yes ;;
3665esac
3666 CXX=$ac_ct_CXX
3667 fi
2f1a1aea
FCE
3668fi
3669
7fbd9d09
FCE
3670 fi
3671fi
2f1a1aea 3672# Provide some information about the compiler.
27aba29a
JS
3673$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3674set X $ac_compile
3675ac_compiler=$2
7fbd9d09
FCE
3676{ (ac_try="$ac_compiler --version >&5"
3677case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680esac
27aba29a
JS
3681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3682$as_echo "$ac_try_echo") >&5
7fbd9d09 3683 (eval "$ac_compiler --version >&5") 2>&5
2f1a1aea 3684 ac_status=$?
27aba29a 3685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 3686 (exit $ac_status); }
7fbd9d09
FCE
3687{ (ac_try="$ac_compiler -v >&5"
3688case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691esac
27aba29a
JS
3692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3693$as_echo "$ac_try_echo") >&5
7fbd9d09 3694 (eval "$ac_compiler -v >&5") 2>&5
2f1a1aea 3695 ac_status=$?
27aba29a 3696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 3697 (exit $ac_status); }
7fbd9d09
FCE
3698{ (ac_try="$ac_compiler -V >&5"
3699case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702esac
27aba29a
JS
3703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704$as_echo "$ac_try_echo") >&5
7fbd9d09 3705 (eval "$ac_compiler -V >&5") 2>&5
2f1a1aea 3706 ac_status=$?
27aba29a 3707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea
FCE
3708 (exit $ac_status); }
3709
27aba29a
JS
3710{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3711$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2f1a1aea 3712if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
27aba29a 3713 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3714else
3715 cat >conftest.$ac_ext <<_ACEOF
3716/* confdefs.h. */
3717_ACEOF
3718cat confdefs.h >>conftest.$ac_ext
3719cat >>conftest.$ac_ext <<_ACEOF
3720/* end confdefs.h. */
3721
3722int
3723main ()
3724{
3725#ifndef __GNUC__
3726 choke me
3727#endif
3728
3729 ;
3730 return 0;
3731}
3732_ACEOF
3733rm -f conftest.$ac_objext
7fbd9d09
FCE
3734if { (ac_try="$ac_compile"
3735case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738esac
27aba29a
JS
3739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3740$as_echo "$ac_try_echo") >&5
7fbd9d09 3741 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3742 ac_status=$?
3743 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1
3745 cat conftest.err >&5
27aba29a 3746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3747 (exit $ac_status); } && {
3748 test -z "$ac_cxx_werror_flag" ||
3749 test ! -s conftest.err
3750 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3751 ac_compiler_gnu=yes
3752else
27aba29a 3753 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3754sed 's/^/| /' conftest.$ac_ext >&5
3755
7fbd9d09 3756 ac_compiler_gnu=no
2f1a1aea 3757fi
7fbd9d09
FCE
3758
3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
3760ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3761
3762fi
27aba29a
JS
3763{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3764$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3765if test $ac_compiler_gnu = yes; then
3766 GXX=yes
3767else
3768 GXX=
3769fi
2f1a1aea
FCE
3770ac_test_CXXFLAGS=${CXXFLAGS+set}
3771ac_save_CXXFLAGS=$CXXFLAGS
27aba29a
JS
3772{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3773$as_echo_n "checking whether $CXX accepts -g... " >&6; }
2f1a1aea 3774if test "${ac_cv_prog_cxx_g+set}" = set; then
27aba29a 3775 $as_echo_n "(cached) " >&6
2f1a1aea 3776else
7fbd9d09
FCE
3777 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3778 ac_cxx_werror_flag=yes
3779 ac_cv_prog_cxx_g=no
3780 CXXFLAGS="-g"
3781 cat >conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3782/* confdefs.h. */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
3786/* end confdefs.h. */
3787
3788int
3789main ()
3790{
3791
3792 ;
3793 return 0;
3794}
3795_ACEOF
3796rm -f conftest.$ac_objext
7fbd9d09
FCE
3797if { (ac_try="$ac_compile"
3798case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801esac
27aba29a
JS
3802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3803$as_echo "$ac_try_echo") >&5
7fbd9d09 3804 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
27aba29a 3809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3810 (exit $ac_status); } && {
3811 test -z "$ac_cxx_werror_flag" ||
3812 test ! -s conftest.err
3813 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3814 ac_cv_prog_cxx_g=yes
3815else
27aba29a 3816 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3817sed 's/^/| /' conftest.$ac_ext >&5
3818
7fbd9d09
FCE
3819 CXXFLAGS=""
3820 cat >conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3821/* confdefs.h. */
3822_ACEOF
3823cat confdefs.h >>conftest.$ac_ext
3824cat >>conftest.$ac_ext <<_ACEOF
3825/* end confdefs.h. */
7fbd9d09 3826
2f1a1aea
FCE
3827int
3828main ()
3829{
7fbd9d09 3830
2f1a1aea
FCE
3831 ;
3832 return 0;
3833}
3834_ACEOF
3835rm -f conftest.$ac_objext
7fbd9d09
FCE
3836if { (ac_try="$ac_compile"
3837case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840esac
27aba29a
JS
3841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3842$as_echo "$ac_try_echo") >&5
7fbd9d09 3843 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3844 ac_status=$?
3845 grep -v '^ *+' conftest.er1 >conftest.err
3846 rm -f conftest.er1
3847 cat conftest.err >&5
27aba29a 3848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3849 (exit $ac_status); } && {
3850 test -z "$ac_cxx_werror_flag" ||
3851 test ! -s conftest.err
3852 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3853 :
3854else
27aba29a 3855 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3856sed 's/^/| /' conftest.$ac_ext >&5
3857
7fbd9d09
FCE
3858 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3859 CXXFLAGS="-g"
3860 cat >conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3861/* confdefs.h. */
3862_ACEOF
3863cat confdefs.h >>conftest.$ac_ext
3864cat >>conftest.$ac_ext <<_ACEOF
3865/* end confdefs.h. */
7fbd9d09 3866
2f1a1aea
FCE
3867int
3868main ()
3869{
7fbd9d09 3870
2f1a1aea
FCE
3871 ;
3872 return 0;
3873}
3874_ACEOF
3875rm -f conftest.$ac_objext
7fbd9d09
FCE
3876if { (ac_try="$ac_compile"
3877case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880esac
27aba29a
JS
3881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3882$as_echo "$ac_try_echo") >&5
7fbd9d09 3883 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
27aba29a 3888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
3889 (exit $ac_status); } && {
3890 test -z "$ac_cxx_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest.$ac_objext; then
3893 ac_cv_prog_cxx_g=yes
2f1a1aea 3894else
27aba29a 3895 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3896sed 's/^/| /' conftest.$ac_ext >&5
3897
7fbd9d09 3898
70d28673 3899fi
7fbd9d09
FCE
3900
3901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902fi
3903
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e0d2ebf
DS
3905fi
3906
7fbd9d09
FCE
3907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3909fi
27aba29a
JS
3910{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3911$as_echo "$ac_cv_prog_cxx_g" >&6; }
7fbd9d09
FCE
3912if test "$ac_test_CXXFLAGS" = set; then
3913 CXXFLAGS=$ac_save_CXXFLAGS
3914elif test $ac_cv_prog_cxx_g = yes; then
3915 if test "$GXX" = yes; then
3916 CXXFLAGS="-g -O2"
3917 else
3918 CXXFLAGS="-g"
3919 fi
3920else
3921 if test "$GXX" = yes; then
3922 CXXFLAGS="-O2"
3923 else
3924 CXXFLAGS=
3925 fi
3926fi
2f1a1aea
FCE
3927ac_ext=c
3928ac_cpp='$CPP $CPPFLAGS'
3929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932
3933depcc="$CXX" am_compiler_list=
3934
27aba29a
JS
3935{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3936$as_echo_n "checking dependency style of $depcc... " >&6; }
2f1a1aea 3937if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
27aba29a 3938 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3939else
3940 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3941 # We make a subdir and do the tests there. Otherwise we can end up
3942 # making bogus files that we don't know about and never remove. For
3943 # instance it was reported that on HP-UX the gcc test will end up
3944 # making a dummy file named `D' -- because `-MD' means `put the output
3945 # in D'.
3946 mkdir conftest.dir
3947 # Copy depcomp to subdir because otherwise we won't find it if we're
3948 # using a relative directory.
3949 cp "$am_depcomp" conftest.dir
3950 cd conftest.dir
3951 # We will build objects and dependencies in a subdirectory because
3952 # it helps to detect inapplicable dependency modes. For instance
3953 # both Tru64's cc and ICC support -MD to output dependencies as a
3954 # side effect of compilation, but ICC will put the dependencies in
3955 # the current directory while Tru64 will put them in the object
3956 # directory.
3957 mkdir sub
3958
3959 am_cv_CXX_dependencies_compiler_type=none
3960 if test "$am_compiler_list" = ""; then
3961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3962 fi
3963 for depmode in $am_compiler_list; do
3964 # Setup a source with many dependencies, because some compilers
3965 # like to wrap large dependency lists on column 80 (with \), and
3966 # we should not choose a depcomp mode which is confused by this.
3967 #
3968 # We need to recreate these files for each test, as the compiler may
3969 # overwrite some of them when testing with obscure command lines.
3970 # This happens at least with the AIX C compiler.
3971 : > sub/conftest.c
3972 for i in 1 2 3 4 5 6; do
3973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3975 # Solaris 8's {/usr,}/bin/sh.
3976 touch sub/conftst$i.h
3977 done
3978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3979
3980 case $depmode in
3981 nosideeffect)
3982 # after this tag, mechanisms are not by side-effect, so they'll
3983 # only be used when explicitly requested
3984 if test "x$enable_dependency_tracking" = xyes; then
3985 continue
3986 else
3987 break
3988 fi
3989 ;;
3990 none) break ;;
3991 esac
3992 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3993 # mode. It turns out that the SunPro C++ compiler does not properly
3994 # handle `-M -o', and we need to detect this.
3995 if depmode=$depmode \
3996 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3997 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3998 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3999 >/dev/null 2>conftest.err &&
7fbd9d09 4000 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
4001 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4002 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4003 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4004 # icc doesn't choke on unknown options, it will just issue warnings
4005 # or remarks (even with -Werror). So we grep stderr for any message
4006 # that says an option was ignored or not supported.
4007 # When given -MP, icc 7.0 and 7.1 complain thusly:
4008 # icc: Command line warning: ignoring option '-M'; no argument required
4009 # The diagnosis changed in icc 8.0:
4010 # icc: Command line remark: option '-MP' not supported
4011 if (grep 'ignoring option' conftest.err ||
4012 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4013 am_cv_CXX_dependencies_compiler_type=$depmode
4014 break
4015 fi
4016 fi
4017 done
4018
4019 cd ..
4020 rm -rf conftest.dir
4021else
4022 am_cv_CXX_dependencies_compiler_type=none
4023fi
4024
4025fi
27aba29a
JS
4026{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4027$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
4028CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4029
7fbd9d09 4030 if
2f1a1aea
FCE
4031 test "x$enable_dependency_tracking" != xno \
4032 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4033 am__fastdepCXX_TRUE=
4034 am__fastdepCXX_FALSE='#'
4035else
4036 am__fastdepCXX_TRUE='#'
4037 am__fastdepCXX_FALSE=
4038fi
4039
4040
4041ac_ext=c
4042ac_cpp='$CPP $CPPFLAGS'
4043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045ac_compiler_gnu=$ac_cv_c_compiler_gnu
27aba29a
JS
4046{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4047$as_echo_n "checking how to run the C preprocessor... " >&6; }
2f1a1aea
FCE
4048# On Suns, sometimes $CPP names a directory.
4049if test -n "$CPP" && test -d "$CPP"; then
4050 CPP=
4051fi
4052if test -z "$CPP"; then
4053 if test "${ac_cv_prog_CPP+set}" = set; then
27aba29a 4054 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4055else
4056 # Double quotes because CPP needs to be expanded
4057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4058 do
4059 ac_preproc_ok=false
4060for ac_c_preproc_warn_flag in '' yes
4061do
4062 # Use a header file that comes with gcc, so configuring glibc
4063 # with a fresh cross-compiler works.
4064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4065 # <limits.h> exists even on freestanding compilers.
4066 # On the NeXT, cc -E runs the code through the compiler's parser,
4067 # not just through cpp. "Syntax error" is here to catch this case.
4068 cat >conftest.$ac_ext <<_ACEOF
4069/* confdefs.h. */
4070_ACEOF
4071cat confdefs.h >>conftest.$ac_ext
4072cat >>conftest.$ac_ext <<_ACEOF
4073/* end confdefs.h. */
4074#ifdef __STDC__
4075# include <limits.h>
4076#else
4077# include <assert.h>
4078#endif
4079 Syntax error
4080_ACEOF
7fbd9d09
FCE
4081if { (ac_try="$ac_cpp conftest.$ac_ext"
4082case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085esac
27aba29a
JS
4086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4087$as_echo "$ac_try_echo") >&5
7fbd9d09 4088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2f1a1aea
FCE
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
27aba29a 4093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4094 (exit $ac_status); } >/dev/null && {
4095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4096 test ! -s conftest.err
4097 }; then
2f1a1aea
FCE
4098 :
4099else
27aba29a 4100 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4101sed 's/^/| /' conftest.$ac_ext >&5
4102
4103 # Broken: fails on valid input.
4104continue
4105fi
7fbd9d09 4106
2f1a1aea
FCE
4107rm -f conftest.err conftest.$ac_ext
4108
7fbd9d09 4109 # OK, works on sane cases. Now check whether nonexistent headers
2f1a1aea
FCE
4110 # can be detected and how.
4111 cat >conftest.$ac_ext <<_ACEOF
4112/* confdefs.h. */
4113_ACEOF
4114cat confdefs.h >>conftest.$ac_ext
4115cat >>conftest.$ac_ext <<_ACEOF
4116/* end confdefs.h. */
4117#include <ac_nonexistent.h>
4118_ACEOF
7fbd9d09
FCE
4119if { (ac_try="$ac_cpp conftest.$ac_ext"
4120case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4123esac
27aba29a
JS
4124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4125$as_echo "$ac_try_echo") >&5
7fbd9d09 4126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2f1a1aea
FCE
4127 ac_status=$?
4128 grep -v '^ *+' conftest.er1 >conftest.err
4129 rm -f conftest.er1
4130 cat conftest.err >&5
27aba29a 4131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4132 (exit $ac_status); } >/dev/null && {
4133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4134 test ! -s conftest.err
4135 }; then
2f1a1aea
FCE
4136 # Broken: success on invalid input.
4137continue
4138else
27aba29a 4139 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4140sed 's/^/| /' conftest.$ac_ext >&5
4141
4142 # Passes both tests.
4143ac_preproc_ok=:
4144break
4145fi
7fbd9d09 4146
2f1a1aea
FCE
4147rm -f conftest.err conftest.$ac_ext
4148
4149done
4150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151rm -f conftest.err conftest.$ac_ext
4152if $ac_preproc_ok; then
4153 break
4154fi
4155
4156 done
4157 ac_cv_prog_CPP=$CPP
4158
4159fi
4160 CPP=$ac_cv_prog_CPP
4161else
4162 ac_cv_prog_CPP=$CPP
4163fi
27aba29a
JS
4164{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4165$as_echo "$CPP" >&6; }
2f1a1aea
FCE
4166ac_preproc_ok=false
4167for ac_c_preproc_warn_flag in '' yes
4168do
4169 # Use a header file that comes with gcc, so configuring glibc
4170 # with a fresh cross-compiler works.
4171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4172 # <limits.h> exists even on freestanding compilers.
4173 # On the NeXT, cc -E runs the code through the compiler's parser,
4174 # not just through cpp. "Syntax error" is here to catch this case.
4175 cat >conftest.$ac_ext <<_ACEOF
4176/* confdefs.h. */
4177_ACEOF
4178cat confdefs.h >>conftest.$ac_ext
4179cat >>conftest.$ac_ext <<_ACEOF
4180/* end confdefs.h. */
4181#ifdef __STDC__
4182# include <limits.h>
4183#else
4184# include <assert.h>
4185#endif
4186 Syntax error
4187_ACEOF
7fbd9d09
FCE
4188if { (ac_try="$ac_cpp conftest.$ac_ext"
4189case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4192esac
27aba29a
JS
4193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4194$as_echo "$ac_try_echo") >&5
7fbd9d09 4195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2f1a1aea
FCE
4196 ac_status=$?
4197 grep -v '^ *+' conftest.er1 >conftest.err
4198 rm -f conftest.er1
4199 cat conftest.err >&5
27aba29a 4200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4201 (exit $ac_status); } >/dev/null && {
4202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4203 test ! -s conftest.err
4204 }; then
2f1a1aea
FCE
4205 :
4206else
27aba29a 4207 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 # Broken: fails on valid input.
4211continue
4212fi
7fbd9d09 4213
2f1a1aea
FCE
4214rm -f conftest.err conftest.$ac_ext
4215
7fbd9d09 4216 # OK, works on sane cases. Now check whether nonexistent headers
2f1a1aea
FCE
4217 # can be detected and how.
4218 cat >conftest.$ac_ext <<_ACEOF
4219/* confdefs.h. */
4220_ACEOF
4221cat confdefs.h >>conftest.$ac_ext
4222cat >>conftest.$ac_ext <<_ACEOF
4223/* end confdefs.h. */
4224#include <ac_nonexistent.h>
4225_ACEOF
7fbd9d09
FCE
4226if { (ac_try="$ac_cpp conftest.$ac_ext"
4227case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
27aba29a
JS
4231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4232$as_echo "$ac_try_echo") >&5
7fbd9d09 4233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2f1a1aea
FCE
4234 ac_status=$?
4235 grep -v '^ *+' conftest.er1 >conftest.err
4236 rm -f conftest.er1
4237 cat conftest.err >&5
27aba29a 4238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4239 (exit $ac_status); } >/dev/null && {
4240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4241 test ! -s conftest.err
4242 }; then
2f1a1aea
FCE
4243 # Broken: success on invalid input.
4244continue
4245else
27aba29a 4246 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 # Passes both tests.
4250ac_preproc_ok=:
4251break
4252fi
7fbd9d09 4253
2f1a1aea
FCE
4254rm -f conftest.err conftest.$ac_ext
4255
4256done
4257# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4258rm -f conftest.err conftest.$ac_ext
4259if $ac_preproc_ok; then
4260 :
4261else
27aba29a
JS
4262 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4264{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2f1a1aea 4265See \`config.log' for more details." >&5
27aba29a 4266$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2f1a1aea 4267See \`config.log' for more details." >&2;}
27aba29a 4268 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
4269fi
4270
4271ac_ext=c
4272ac_cpp='$CPP $CPPFLAGS'
4273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276
4277ac_ext=c
4278ac_cpp='$CPP $CPPFLAGS'
4279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282if test -n "$ac_tool_prefix"; then
4283 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4284set dummy ${ac_tool_prefix}gcc; ac_word=$2
27aba29a
JS
4285{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4286$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 4287if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 4288 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4289else
4290 if test -n "$CC"; then
4291 ac_cv_prog_CC="$CC" # Let the user override the test.
4292else
4293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294for as_dir in $PATH
4295do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4300 ac_cv_prog_CC="${ac_tool_prefix}gcc"
27aba29a 4301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4302 break 2
4303 fi
4304done
4305done
7fbd9d09 4306IFS=$as_save_IFS
2f1a1aea
FCE
4307
4308fi
4309fi
4310CC=$ac_cv_prog_CC
4311if test -n "$CC"; then
27aba29a
JS
4312 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4313$as_echo "$CC" >&6; }
2f1a1aea 4314else
27aba29a
JS
4315 { $as_echo "$as_me:$LINENO: result: no" >&5
4316$as_echo "no" >&6; }
2f1a1aea
FCE
4317fi
4318
7fbd9d09 4319
2f1a1aea
FCE
4320fi
4321if test -z "$ac_cv_prog_CC"; then
4322 ac_ct_CC=$CC
4323 # Extract the first word of "gcc", so it can be a program name with args.
4324set dummy gcc; ac_word=$2
27aba29a
JS
4325{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4326$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 4327if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27aba29a 4328 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4329else
4330 if test -n "$ac_ct_CC"; then
4331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4332else
4333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334for as_dir in $PATH
4335do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4340 ac_cv_prog_ac_ct_CC="gcc"
27aba29a 4341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4342 break 2
4343 fi
4344done
4345done
7fbd9d09 4346IFS=$as_save_IFS
2f1a1aea
FCE
4347
4348fi
4349fi
4350ac_ct_CC=$ac_cv_prog_ac_ct_CC
4351if test -n "$ac_ct_CC"; then
27aba29a
JS
4352 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4353$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 4354else
27aba29a
JS
4355 { $as_echo "$as_me:$LINENO: result: no" >&5
4356$as_echo "no" >&6; }
2f1a1aea
FCE
4357fi
4358
7fbd9d09
FCE
4359 if test "x$ac_ct_CC" = x; then
4360 CC=""
4361 else
4362 case $cross_compiling:$ac_tool_warned in
4363yes:)
27aba29a
JS
4364{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
4366ac_tool_warned=yes ;;
4367esac
4368 CC=$ac_ct_CC
4369 fi
2f1a1aea
FCE
4370else
4371 CC="$ac_cv_prog_CC"
4372fi
4373
4374if test -z "$CC"; then
7fbd9d09
FCE
4375 if test -n "$ac_tool_prefix"; then
4376 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2f1a1aea 4377set dummy ${ac_tool_prefix}cc; ac_word=$2
27aba29a
JS
4378{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4379$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 4380if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 4381 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4382else
4383 if test -n "$CC"; then
4384 ac_cv_prog_CC="$CC" # Let the user override the test.
4385else
4386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4393 ac_cv_prog_CC="${ac_tool_prefix}cc"
27aba29a 4394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4395 break 2
4396 fi
4397done
4398done
7fbd9d09 4399IFS=$as_save_IFS
2f1a1aea
FCE
4400
4401fi
4402fi
4403CC=$ac_cv_prog_CC
4404if test -n "$CC"; then
27aba29a
JS
4405 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4406$as_echo "$CC" >&6; }
818ba2bc 4407else
27aba29a
JS
4408 { $as_echo "$as_me:$LINENO: result: no" >&5
4409$as_echo "no" >&6; }
818ba2bc
MW
4410fi
4411
818ba2bc 4412
7fbd9d09 4413 fi
8ae7a94a
FCE
4414fi
4415if test -z "$CC"; then
4416 # Extract the first word of "cc", so it can be a program name with args.
4417set dummy cc; ac_word=$2
27aba29a
JS
4418{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4419$as_echo_n "checking for $ac_word... " >&6; }
8ae7a94a 4420if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 4421 $as_echo_n "(cached) " >&6
8ae7a94a
FCE
4422else
4423 if test -n "$CC"; then
2f1a1aea
FCE
4424 ac_cv_prog_CC="$CC" # Let the user override the test.
4425else
4426 ac_prog_rejected=no
4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea
FCE
4434 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4435 ac_prog_rejected=yes
4436 continue
4437 fi
4438 ac_cv_prog_CC="cc"
27aba29a 4439 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4440 break 2
4441 fi
4442done
4443done
7fbd9d09 4444IFS=$as_save_IFS
2f1a1aea
FCE
4445
4446if test $ac_prog_rejected = yes; then
4447 # We found a bogon in the path, so make sure we never use it.
4448 set dummy $ac_cv_prog_CC
4449 shift
4450 if test $# != 0; then
4451 # We chose a different compiler from the bogus one.
4452 # However, it has the same basename, so the bogon will be chosen
4453 # first if we set CC to just the basename; use the full file name.
4454 shift
4455 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4456 fi
4457fi
4458fi
4459fi
4460CC=$ac_cv_prog_CC
4461if test -n "$CC"; then
27aba29a
JS
4462 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4463$as_echo "$CC" >&6; }
2f1a1aea 4464else
27aba29a
JS
4465 { $as_echo "$as_me:$LINENO: result: no" >&5
4466$as_echo "no" >&6; }
2f1a1aea
FCE
4467fi
4468
7fbd9d09 4469
2f1a1aea
FCE
4470fi
4471if test -z "$CC"; then
4472 if test -n "$ac_tool_prefix"; then
7fbd9d09 4473 for ac_prog in cl.exe
2f1a1aea
FCE
4474 do
4475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4476set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27aba29a
JS
4477{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4478$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 4479if test "${ac_cv_prog_CC+set}" = set; then
27aba29a 4480 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4481else
4482 if test -n "$CC"; then
4483 ac_cv_prog_CC="$CC" # Let the user override the test.
4484else
4485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH
4487do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4492 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
27aba29a 4493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4494 break 2
4495 fi
4496done
4497done
7fbd9d09 4498IFS=$as_save_IFS
2f1a1aea
FCE
4499
4500fi
4501fi
4502CC=$ac_cv_prog_CC
4503if test -n "$CC"; then
27aba29a
JS
4504 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4505$as_echo "$CC" >&6; }
2f1a1aea 4506else
27aba29a
JS
4507 { $as_echo "$as_me:$LINENO: result: no" >&5
4508$as_echo "no" >&6; }
2f1a1aea
FCE
4509fi
4510
7fbd9d09 4511
2f1a1aea
FCE
4512 test -n "$CC" && break
4513 done
4514fi
4515if test -z "$CC"; then
4516 ac_ct_CC=$CC
7fbd9d09 4517 for ac_prog in cl.exe
2f1a1aea
FCE
4518do
4519 # Extract the first word of "$ac_prog", so it can be a program name with args.
4520set dummy $ac_prog; ac_word=$2
27aba29a
JS
4521{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4522$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 4523if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27aba29a 4524 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4525else
4526 if test -n "$ac_ct_CC"; then
4527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4528else
4529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH
4531do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4536 ac_cv_prog_ac_ct_CC="$ac_prog"
27aba29a 4537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4538 break 2
4539 fi
4540done
4541done
7fbd9d09 4542IFS=$as_save_IFS
2f1a1aea
FCE
4543
4544fi
4545fi
4546ac_ct_CC=$ac_cv_prog_ac_ct_CC
4547if test -n "$ac_ct_CC"; then
27aba29a
JS
4548 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4549$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 4550else
27aba29a
JS
4551 { $as_echo "$as_me:$LINENO: result: no" >&5
4552$as_echo "no" >&6; }
2f1a1aea
FCE
4553fi
4554
7fbd9d09 4555
2f1a1aea
FCE
4556 test -n "$ac_ct_CC" && break
4557done
4558
7fbd9d09
FCE
4559 if test "x$ac_ct_CC" = x; then
4560 CC=""
4561 else
4562 case $cross_compiling:$ac_tool_warned in
4563yes:)
27aba29a
JS
4564{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
4566ac_tool_warned=yes ;;
4567esac
4568 CC=$ac_ct_CC
4569 fi
2f1a1aea
FCE
4570fi
4571
4572fi
4573
4574
27aba29a
JS
4575test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4577{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2f1a1aea 4578See \`config.log' for more details." >&5
27aba29a 4579$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2f1a1aea 4580See \`config.log' for more details." >&2;}
27aba29a 4581 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
4582
4583# Provide some information about the compiler.
27aba29a
JS
4584$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4585set X $ac_compile
4586ac_compiler=$2
7fbd9d09
FCE
4587{ (ac_try="$ac_compiler --version >&5"
4588case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591esac
27aba29a
JS
4592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4593$as_echo "$ac_try_echo") >&5
7fbd9d09 4594 (eval "$ac_compiler --version >&5") 2>&5
2f1a1aea 4595 ac_status=$?
27aba29a 4596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 4597 (exit $ac_status); }
7fbd9d09
FCE
4598{ (ac_try="$ac_compiler -v >&5"
4599case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602esac
27aba29a
JS
4603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4604$as_echo "$ac_try_echo") >&5
7fbd9d09 4605 (eval "$ac_compiler -v >&5") 2>&5
2f1a1aea 4606 ac_status=$?
27aba29a 4607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 4608 (exit $ac_status); }
7fbd9d09
FCE
4609{ (ac_try="$ac_compiler -V >&5"
4610case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613esac
27aba29a
JS
4614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4615$as_echo "$ac_try_echo") >&5
7fbd9d09 4616 (eval "$ac_compiler -V >&5") 2>&5
2f1a1aea 4617 ac_status=$?
27aba29a 4618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea
FCE
4619 (exit $ac_status); }
4620
27aba29a
JS
4621{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4622$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2f1a1aea 4623if test "${ac_cv_c_compiler_gnu+set}" = set; then
27aba29a 4624 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4625else
4626 cat >conftest.$ac_ext <<_ACEOF
4627/* confdefs.h. */
4628_ACEOF
4629cat confdefs.h >>conftest.$ac_ext
4630cat >>conftest.$ac_ext <<_ACEOF
4631/* end confdefs.h. */
4632
4633int
4634main ()
4635{
4636#ifndef __GNUC__
4637 choke me
4638#endif
4639
4640 ;
4641 return 0;
4642}
4643_ACEOF
4644rm -f conftest.$ac_objext
7fbd9d09
FCE
4645if { (ac_try="$ac_compile"
4646case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4649esac
27aba29a
JS
4650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4651$as_echo "$ac_try_echo") >&5
7fbd9d09 4652 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
27aba29a 4657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4658 (exit $ac_status); } && {
4659 test -z "$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
4662 ac_compiler_gnu=yes
4663else
27aba29a 4664 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4665sed 's/^/| /' conftest.$ac_ext >&5
4666
7fbd9d09 4667 ac_compiler_gnu=no
2f1a1aea 4668fi
7fbd9d09
FCE
4669
4670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
4671ac_cv_c_compiler_gnu=$ac_compiler_gnu
4672
4673fi
27aba29a
JS
4674{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4675$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4676if test $ac_compiler_gnu = yes; then
4677 GCC=yes
4678else
4679 GCC=
4680fi
2f1a1aea
FCE
4681ac_test_CFLAGS=${CFLAGS+set}
4682ac_save_CFLAGS=$CFLAGS
27aba29a
JS
4683{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4684$as_echo_n "checking whether $CC accepts -g... " >&6; }
2f1a1aea 4685if test "${ac_cv_prog_cc_g+set}" = set; then
27aba29a 4686 $as_echo_n "(cached) " >&6
2f1a1aea 4687else
7fbd9d09
FCE
4688 ac_save_c_werror_flag=$ac_c_werror_flag
4689 ac_c_werror_flag=yes
4690 ac_cv_prog_cc_g=no
4691 CFLAGS="-g"
4692 cat >conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4693/* confdefs.h. */
4694_ACEOF
4695cat confdefs.h >>conftest.$ac_ext
4696cat >>conftest.$ac_ext <<_ACEOF
4697/* end confdefs.h. */
4698
4699int
4700main ()
4701{
4702
4703 ;
4704 return 0;
4705}
4706_ACEOF
4707rm -f conftest.$ac_objext
7fbd9d09
FCE
4708if { (ac_try="$ac_compile"
4709case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712esac
27aba29a
JS
4713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4714$as_echo "$ac_try_echo") >&5
7fbd9d09 4715 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
4716 ac_status=$?
4717 grep -v '^ *+' conftest.er1 >conftest.err
4718 rm -f conftest.er1
4719 cat conftest.err >&5
27aba29a 4720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4721 (exit $ac_status); } && {
4722 test -z "$ac_c_werror_flag" ||
4723 test ! -s conftest.err
4724 } && test -s conftest.$ac_objext; then
4725 ac_cv_prog_cc_g=yes
4726else
27aba29a 4727 $as_echo "$as_me: failed program was:" >&5
7fbd9d09
FCE
4728sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 CFLAGS=""
4731 cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h. */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h. */
4737
4738int
4739main ()
4740{
4741
4742 ;
4743 return 0;
4744}
4745_ACEOF
4746rm -f conftest.$ac_objext
4747if { (ac_try="$ac_compile"
4748case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751esac
27aba29a
JS
4752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4753$as_echo "$ac_try_echo") >&5
7fbd9d09 4754 (eval "$ac_compile") 2>conftest.er1
5e0d2ebf 4755 ac_status=$?
7fbd9d09
FCE
4756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
27aba29a 4759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4760 (exit $ac_status); } && {
4761 test -z "$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4763 } && test -s conftest.$ac_objext; then
4764 :
4765else
27aba29a 4766 $as_echo "$as_me: failed program was:" >&5
7fbd9d09
FCE
4767sed 's/^/| /' conftest.$ac_ext >&5
4768
4769 ac_c_werror_flag=$ac_save_c_werror_flag
4770 CFLAGS="-g"
4771 cat >conftest.$ac_ext <<_ACEOF
4772/* confdefs.h. */
4773_ACEOF
4774cat confdefs.h >>conftest.$ac_ext
4775cat >>conftest.$ac_ext <<_ACEOF
4776/* end confdefs.h. */
4777
4778int
4779main ()
4780{
4781
4782 ;
4783 return 0;
4784}
4785_ACEOF
4786rm -f conftest.$ac_objext
4787if { (ac_try="$ac_compile"
4788case "(($ac_try" in
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4791esac
27aba29a
JS
4792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4793$as_echo "$ac_try_echo") >&5
7fbd9d09 4794 (eval "$ac_compile") 2>conftest.er1
5e0d2ebf 4795 ac_status=$?
7fbd9d09
FCE
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
27aba29a 4799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4800 (exit $ac_status); } && {
4801 test -z "$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 } && test -s conftest.$ac_objext; then
5e0d2ebf
DS
4804 ac_cv_prog_cc_g=yes
4805else
27aba29a 4806 $as_echo "$as_me: failed program was:" >&5
5e0d2ebf
DS
4807sed 's/^/| /' conftest.$ac_ext >&5
4808
7fbd9d09
FCE
4809
4810fi
4811
4812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813fi
4814
4815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e0d2ebf 4816fi
7fbd9d09
FCE
4817
4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 ac_c_werror_flag=$ac_save_c_werror_flag
70d28673 4820fi
27aba29a
JS
4821{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4822$as_echo "$ac_cv_prog_cc_g" >&6; }
70d28673
DS
4823if test "$ac_test_CFLAGS" = set; then
4824 CFLAGS=$ac_save_CFLAGS
4825elif test $ac_cv_prog_cc_g = yes; then
4826 if test "$GCC" = yes; then
4827 CFLAGS="-g -O2"
4828 else
4829 CFLAGS="-g"
4830 fi
4831else
4832 if test "$GCC" = yes; then
4833 CFLAGS="-O2"
4834 else
4835 CFLAGS=
4836 fi
4837fi
27aba29a
JS
4838{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4839$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7fbd9d09 4840if test "${ac_cv_prog_cc_c89+set}" = set; then
27aba29a 4841 $as_echo_n "(cached) " >&6
70d28673 4842else
7fbd9d09 4843 ac_cv_prog_cc_c89=no
70d28673
DS
4844ac_save_CC=$CC
4845cat >conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4846/* confdefs.h. */
4847_ACEOF
4848cat confdefs.h >>conftest.$ac_ext
4849cat >>conftest.$ac_ext <<_ACEOF
4850/* end confdefs.h. */
70d28673
DS
4851#include <stdarg.h>
4852#include <stdio.h>
4853#include <sys/types.h>
4854#include <sys/stat.h>
4855/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4856struct buf { int x; };
4857FILE * (*rcsopen) (struct buf *, struct stat *, int);
4858static char *e (p, i)
4859 char **p;
4860 int i;
4861{
4862 return p[i];
4863}
4864static char *f (char * (*g) (char **, int), char **p, ...)
4865{
4866 char *s;
4867 va_list v;
4868 va_start (v,p);
4869 s = g (p, va_arg (v,int));
4870 va_end (v);
4871 return s;
4872}
4873
4874/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4875 function prototypes and stuff, but not '\xHH' hex character constants.
4876 These don't provoke an error unfortunately, instead are silently treated
7fbd9d09 4877 as 'x'. The following induces an error, until -std is added to get
70d28673
DS
4878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4879 array size at least. It's necessary to write '\x00'==0 to get something
7fbd9d09 4880 that's true only with -std. */
70d28673
DS
4881int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4882
7fbd9d09
FCE
4883/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4884 inside strings and character constants. */
4885#define FOO(x) 'x'
4886int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4887
70d28673
DS
4888int test (int i, double x);
4889struct s1 {int (*f) (int a);};
4890struct s2 {int (*f) (double a);};
4891int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4892int argc;
4893char **argv;
2f1a1aea
FCE
4894int
4895main ()
4896{
70d28673 4897return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2f1a1aea
FCE
4898 ;
4899 return 0;
4900}
4901_ACEOF
7fbd9d09
FCE
4902for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4903 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
70d28673
DS
4904do
4905 CC="$ac_save_CC $ac_arg"
4906 rm -f conftest.$ac_objext
7fbd9d09
FCE
4907if { (ac_try="$ac_compile"
4908case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911esac
27aba29a
JS
4912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4913$as_echo "$ac_try_echo") >&5
7fbd9d09 4914 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
4915 ac_status=$?
4916 grep -v '^ *+' conftest.er1 >conftest.err
4917 rm -f conftest.er1
4918 cat conftest.err >&5
27aba29a 4919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
4920 (exit $ac_status); } && {
4921 test -z "$ac_c_werror_flag" ||
4922 test ! -s conftest.err
4923 } && test -s conftest.$ac_objext; then
4924 ac_cv_prog_cc_c89=$ac_arg
818ba2bc 4925else
27aba29a 4926 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4927sed 's/^/| /' conftest.$ac_ext >&5
4928
7fbd9d09 4929
2f1a1aea 4930fi
7fbd9d09
FCE
4931
4932rm -f core conftest.err conftest.$ac_objext
4933 test "x$ac_cv_prog_cc_c89" != "xno" && break
2f1a1aea 4934done
7fbd9d09 4935rm -f conftest.$ac_ext
70d28673
DS
4936CC=$ac_save_CC
4937
2f1a1aea 4938fi
7fbd9d09
FCE
4939# AC_CACHE_VAL
4940case "x$ac_cv_prog_cc_c89" in
4941 x)
27aba29a
JS
4942 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4943$as_echo "none needed" >&6; } ;;
7fbd9d09 4944 xno)
27aba29a
JS
4945 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4946$as_echo "unsupported" >&6; } ;;
70d28673 4947 *)
7fbd9d09 4948 CC="$CC $ac_cv_prog_cc_c89"
27aba29a
JS
4949 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4950$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
70d28673 4951esac
2f1a1aea 4952
2f1a1aea 4953
2f1a1aea
FCE
4954ac_ext=c
4955ac_cpp='$CPP $CPPFLAGS'
4956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959
4960depcc="$CC" am_compiler_list=
4961
27aba29a
JS
4962{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4963$as_echo_n "checking dependency style of $depcc... " >&6; }
2f1a1aea 4964if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
27aba29a 4965 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4966else
4967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4968 # We make a subdir and do the tests there. Otherwise we can end up
4969 # making bogus files that we don't know about and never remove. For
4970 # instance it was reported that on HP-UX the gcc test will end up
4971 # making a dummy file named `D' -- because `-MD' means `put the output
4972 # in D'.
4973 mkdir conftest.dir
4974 # Copy depcomp to subdir because otherwise we won't find it if we're
4975 # using a relative directory.
4976 cp "$am_depcomp" conftest.dir
4977 cd conftest.dir
4978 # We will build objects and dependencies in a subdirectory because
4979 # it helps to detect inapplicable dependency modes. For instance
4980 # both Tru64's cc and ICC support -MD to output dependencies as a
4981 # side effect of compilation, but ICC will put the dependencies in
4982 # the current directory while Tru64 will put them in the object
4983 # directory.
4984 mkdir sub
4985
4986 am_cv_CC_dependencies_compiler_type=none
4987 if test "$am_compiler_list" = ""; then
4988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4989 fi
4990 for depmode in $am_compiler_list; do
4991 # Setup a source with many dependencies, because some compilers
4992 # like to wrap large dependency lists on column 80 (with \), and
4993 # we should not choose a depcomp mode which is confused by this.
4994 #
4995 # We need to recreate these files for each test, as the compiler may
4996 # overwrite some of them when testing with obscure command lines.
4997 # This happens at least with the AIX C compiler.
4998 : > sub/conftest.c
4999 for i in 1 2 3 4 5 6; do
5000 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5001 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5002 # Solaris 8's {/usr,}/bin/sh.
5003 touch sub/conftst$i.h
5004 done
5005 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5006
5007 case $depmode in
5008 nosideeffect)
5009 # after this tag, mechanisms are not by side-effect, so they'll
5010 # only be used when explicitly requested
5011 if test "x$enable_dependency_tracking" = xyes; then
5012 continue
5013 else
5014 break
5015 fi
5016 ;;
5017 none) break ;;
5018 esac
5019 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5020 # mode. It turns out that the SunPro C++ compiler does not properly
5021 # handle `-M -o', and we need to detect this.
5022 if depmode=$depmode \
5023 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5025 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5026 >/dev/null 2>conftest.err &&
7fbd9d09 5027 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
5028 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5029 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5030 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5031 # icc doesn't choke on unknown options, it will just issue warnings
5032 # or remarks (even with -Werror). So we grep stderr for any message
5033 # that says an option was ignored or not supported.
5034 # When given -MP, icc 7.0 and 7.1 complain thusly:
5035 # icc: Command line warning: ignoring option '-M'; no argument required
5036 # The diagnosis changed in icc 8.0:
5037 # icc: Command line remark: option '-MP' not supported
5038 if (grep 'ignoring option' conftest.err ||
5039 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5040 am_cv_CC_dependencies_compiler_type=$depmode
5041 break
5042 fi
5043 fi
5044 done
5045
5046 cd ..
5047 rm -rf conftest.dir
5048else
5049 am_cv_CC_dependencies_compiler_type=none
5050fi
5051
5052fi
27aba29a
JS
5053{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5054$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
5055CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5056
7fbd9d09 5057 if
2f1a1aea
FCE
5058 test "x$enable_dependency_tracking" != xno \
5059 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5060 am__fastdepCC_TRUE=
5061 am__fastdepCC_FALSE='#'
5062else
5063 am__fastdepCC_TRUE='#'
5064 am__fastdepCC_FALSE=
5065fi
5066
5067
5068
5069am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5070
8ae7a94a 5071if test "x$CC" != xcc; then
27aba29a
JS
5072 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5073$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
8ae7a94a 5074else
27aba29a
JS
5075 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5076$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
8ae7a94a 5077fi
27aba29a 5078set dummy $CC; ac_cc=`$as_echo "$2" |
8ae7a94a 5079 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7fbd9d09 5080if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 5081 $as_echo_n "(cached) " >&6
8ae7a94a
FCE
5082else
5083 cat >conftest.$ac_ext <<_ACEOF
5084/* confdefs.h. */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h. */
5089
5090int
5091main ()
5092{
5093
5094 ;
5095 return 0;
5096}
5097_ACEOF
5098# Make sure it works both with $CC and with simple cc.
5099# We do the test twice because some compilers refuse to overwrite an
5100# existing .o file with -o, though they will create one.
7fbd9d09
FCE
5101ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5102rm -f conftest2.*
5103if { (case "(($ac_try" in
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5106esac
27aba29a
JS
5107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5108$as_echo "$ac_try_echo") >&5
7fbd9d09 5109 (eval "$ac_try") 2>&5
8ae7a94a 5110 ac_status=$?
27aba29a 5111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8ae7a94a 5112 (exit $ac_status); } &&
7fbd9d09
FCE
5113 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116esac
27aba29a
JS
5117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5118$as_echo "$ac_try_echo") >&5
7fbd9d09 5119 (eval "$ac_try") 2>&5
8ae7a94a 5120 ac_status=$?
27aba29a 5121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8ae7a94a
FCE
5122 (exit $ac_status); };
5123then
5124 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5125 if test "x$CC" != xcc; then
5126 # Test first that cc exists at all.
5127 if { ac_try='cc -c conftest.$ac_ext >&5'
7fbd9d09
FCE
5128 { (case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5131esac
27aba29a
JS
5132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5133$as_echo "$ac_try_echo") >&5
7fbd9d09 5134 (eval "$ac_try") 2>&5
8ae7a94a 5135 ac_status=$?
27aba29a 5136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8ae7a94a 5137 (exit $ac_status); }; }; then
7fbd9d09
FCE
5138 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5139 rm -f conftest2.*
5140 if { (case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143esac
27aba29a
JS
5144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5145$as_echo "$ac_try_echo") >&5
7fbd9d09 5146 (eval "$ac_try") 2>&5
8ae7a94a 5147 ac_status=$?
27aba29a 5148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8ae7a94a 5149 (exit $ac_status); } &&
7fbd9d09
FCE
5150 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153esac
27aba29a
JS
5154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5155$as_echo "$ac_try_echo") >&5
7fbd9d09 5156 (eval "$ac_try") 2>&5
8ae7a94a 5157 ac_status=$?
27aba29a 5158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8ae7a94a
FCE
5159 (exit $ac_status); };
5160 then
5161 # cc works too.
5162 :
5163 else
5164 # cc exists but doesn't like -o.
5165 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5166 fi
5167 fi
5168 fi
5169else
5170 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5171fi
7fbd9d09 5172rm -f core conftest*
8ae7a94a
FCE
5173
5174fi
7fbd9d09 5175if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
27aba29a
JS
5176 { $as_echo "$as_me:$LINENO: result: yes" >&5
5177$as_echo "yes" >&6; }
8ae7a94a 5178else
27aba29a
JS
5179 { $as_echo "$as_me:$LINENO: result: no" >&5
5180$as_echo "no" >&6; }
8ae7a94a
FCE
5181
5182cat >>confdefs.h <<\_ACEOF
5183#define NO_MINUS_C_MINUS_O 1
5184_ACEOF
5185
5186fi
5187
5188# FIXME: we rely on the cache variable name because
5189# there is no other way.
5190set dummy $CC
5191ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5192if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5193 # Losing compiler, so override with the script.
5194 # FIXME: It is wrong to rewrite CC.
5195 # But if we don't then we get into trouble of one sort or another.
5196 # A longer-term fix would be to have automake use am__CC in this case,
5197 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5198 CC="$am_aux_dir/compile $CC"
5199fi
5200
7fbd9d09 5201
27aba29a
JS
5202{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
5203$as_echo_n "checking for function prototypes... " >&6; }
7fbd9d09 5204if test "$ac_cv_prog_cc_c89" != no; then
27aba29a
JS
5205 { $as_echo "$as_me:$LINENO: result: yes" >&5
5206$as_echo "yes" >&6; }
2f1a1aea
FCE
5207
5208cat >>confdefs.h <<\_ACEOF
5209#define PROTOTYPES 1
5210_ACEOF
5211
5212
5213cat >>confdefs.h <<\_ACEOF
5214#define __PROTOTYPES 1
5215_ACEOF
5216
5217else
27aba29a
JS
5218 { $as_echo "$as_me:$LINENO: result: no" >&5
5219$as_echo "no" >&6; }
7fbd9d09
FCE
5220fi
5221
5222
5223
27aba29a
JS
5224{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5225$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7fbd9d09 5226if test "${ac_cv_path_GREP+set}" = set; then
27aba29a 5227 $as_echo_n "(cached) " >&6
7fbd9d09 5228else
27aba29a 5229 if test -z "$GREP"; then
7fbd9d09 5230 ac_path_GREP_found=false
27aba29a
JS
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7fbd9d09
FCE
5233for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5234do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_prog in grep ggrep; do
27aba29a
JS
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5240 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5241# Check for GNU ac_path_GREP and select it if it is found.
7fbd9d09
FCE
5242 # Check for GNU $ac_path_GREP
5243case `"$ac_path_GREP" --version 2>&1` in
5244*GNU*)
5245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5246*)
5247 ac_count=0
27aba29a 5248 $as_echo_n 0123456789 >"conftest.in"
7fbd9d09
FCE
5249 while :
5250 do
5251 cat "conftest.in" "conftest.in" >"conftest.tmp"
5252 mv "conftest.tmp" "conftest.in"
5253 cp "conftest.in" "conftest.nl"
27aba29a 5254 $as_echo 'GREP' >> "conftest.nl"
7fbd9d09
FCE
5255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5257 ac_count=`expr $ac_count + 1`
5258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5259 # Best one so far, save it but keep looking for a better one
5260 ac_cv_path_GREP="$ac_path_GREP"
5261 ac_path_GREP_max=$ac_count
5262 fi
5263 # 10*(2^10) chars as input seems more than enough
5264 test $ac_count -gt 10 && break
5265 done
5266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5267esac
5268
27aba29a
JS
5269 $ac_path_GREP_found && break 3
5270 done
7fbd9d09
FCE
5271 done
5272done
7fbd9d09 5273IFS=$as_save_IFS
27aba29a
JS
5274 if test -z "$ac_cv_path_GREP"; then
5275 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5276$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7fbd9d09 5277 { (exit 1); exit 1; }; }
27aba29a 5278 fi
7fbd9d09
FCE
5279else
5280 ac_cv_path_GREP=$GREP
70d28673
DS
5281fi
5282
7fbd9d09 5283fi
27aba29a
JS
5284{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5285$as_echo "$ac_cv_path_GREP" >&6; }
7fbd9d09
FCE
5286 GREP="$ac_cv_path_GREP"
5287
70d28673 5288
27aba29a
JS
5289{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5290$as_echo_n "checking for egrep... " >&6; }
7fbd9d09 5291if test "${ac_cv_path_EGREP+set}" = set; then
27aba29a 5292 $as_echo_n "(cached) " >&6
7fbd9d09
FCE
5293else
5294 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5295 then ac_cv_path_EGREP="$GREP -E"
5296 else
27aba29a 5297 if test -z "$EGREP"; then
7fbd9d09 5298 ac_path_EGREP_found=false
27aba29a
JS
5299 # Loop through the user's path and test for each of PROGNAME-LIST
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7fbd9d09
FCE
5301for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5302do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_prog in egrep; do
27aba29a
JS
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5308 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5309# Check for GNU ac_path_EGREP and select it if it is found.
7fbd9d09
FCE
5310 # Check for GNU $ac_path_EGREP
5311case `"$ac_path_EGREP" --version 2>&1` in
5312*GNU*)
5313 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5314*)
5315 ac_count=0
27aba29a 5316 $as_echo_n 0123456789 >"conftest.in"
7fbd9d09
FCE
5317 while :
5318 do
5319 cat "conftest.in" "conftest.in" >"conftest.tmp"
5320 mv "conftest.tmp" "conftest.in"
5321 cp "conftest.in" "conftest.nl"
27aba29a 5322 $as_echo 'EGREP' >> "conftest.nl"
7fbd9d09
FCE
5323 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5325 ac_count=`expr $ac_count + 1`
5326 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5327 # Best one so far, save it but keep looking for a better one
5328 ac_cv_path_EGREP="$ac_path_EGREP"
5329 ac_path_EGREP_max=$ac_count
2f1a1aea 5330 fi
7fbd9d09
FCE
5331 # 10*(2^10) chars as input seems more than enough
5332 test $ac_count -gt 10 && break
5333 done
5334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5335esac
5336
27aba29a
JS
5337 $ac_path_EGREP_found && break 3
5338 done
7fbd9d09
FCE
5339 done
5340done
7fbd9d09 5341IFS=$as_save_IFS
27aba29a
JS
5342 if test -z "$ac_cv_path_EGREP"; then
5343 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5344$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7fbd9d09 5345 { (exit 1); exit 1; }; }
27aba29a 5346 fi
7fbd9d09
FCE
5347else
5348 ac_cv_path_EGREP=$EGREP
5349fi
5350
7fbd9d09 5351 fi
2f1a1aea 5352fi
27aba29a
JS
5353{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5354$as_echo "$ac_cv_path_EGREP" >&6; }
7fbd9d09 5355 EGREP="$ac_cv_path_EGREP"
2f1a1aea
FCE
5356
5357
27aba29a
JS
5358{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5359$as_echo_n "checking for ANSI C header files... " >&6; }
2f1a1aea 5360if test "${ac_cv_header_stdc+set}" = set; then
27aba29a 5361 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5362else
5363 cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h. */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h. */
5369#include <stdlib.h>
5370#include <stdarg.h>
5371#include <string.h>
5372#include <float.h>
5373
5374int
5375main ()
5376{
5377
5378 ;
5379 return 0;
5380}
5381_ACEOF
5382rm -f conftest.$ac_objext
7fbd9d09
FCE
5383if { (ac_try="$ac_compile"
5384case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387esac
27aba29a
JS
5388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5389$as_echo "$ac_try_echo") >&5
7fbd9d09 5390 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
27aba29a 5395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
5396 (exit $ac_status); } && {
5397 test -z "$ac_c_werror_flag" ||
5398 test ! -s conftest.err
5399 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
5400 ac_cv_header_stdc=yes
5401else
27aba29a 5402 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
7fbd9d09 5405 ac_cv_header_stdc=no
2f1a1aea 5406fi
7fbd9d09
FCE
5407
5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
5409
5410if test $ac_cv_header_stdc = yes; then
5411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5412 cat >conftest.$ac_ext <<_ACEOF
5413/* confdefs.h. */
5414_ACEOF
5415cat confdefs.h >>conftest.$ac_ext
5416cat >>conftest.$ac_ext <<_ACEOF
5417/* end confdefs.h. */
5418#include <string.h>
5419
5420_ACEOF
5421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5422 $EGREP "memchr" >/dev/null 2>&1; then
5423 :
5424else
5425 ac_cv_header_stdc=no
5426fi
5427rm -f conftest*
5428
5429fi
5430
5431if test $ac_cv_header_stdc = yes; then
5432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5433 cat >conftest.$ac_ext <<_ACEOF
5434/* confdefs.h. */
5435_ACEOF
5436cat confdefs.h >>conftest.$ac_ext
5437cat >>conftest.$ac_ext <<_ACEOF
5438/* end confdefs.h. */
5439#include <stdlib.h>
5440
5441_ACEOF
5442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5443 $EGREP "free" >/dev/null 2>&1; then
5444 :
5445else
5446 ac_cv_header_stdc=no
5447fi
5448rm -f conftest*
5449
5450fi
5451
5452if test $ac_cv_header_stdc = yes; then
5453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5454 if test "$cross_compiling" = yes; then
5455 :
5456else
5457 cat >conftest.$ac_ext <<_ACEOF
5458/* confdefs.h. */
5459_ACEOF
5460cat confdefs.h >>conftest.$ac_ext
5461cat >>conftest.$ac_ext <<_ACEOF
5462/* end confdefs.h. */
5463#include <ctype.h>
7fbd9d09 5464#include <stdlib.h>
2f1a1aea
FCE
5465#if ((' ' & 0x0FF) == 0x020)
5466# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5467# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5468#else
5469# define ISLOWER(c) \
5470 (('a' <= (c) && (c) <= 'i') \
5471 || ('j' <= (c) && (c) <= 'r') \
5472 || ('s' <= (c) && (c) <= 'z'))
5473# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5474#endif
5475
5476#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5477int
5478main ()
5479{
5480 int i;
5481 for (i = 0; i < 256; i++)
5482 if (XOR (islower (i), ISLOWER (i))
5483 || toupper (i) != TOUPPER (i))
7fbd9d09
FCE
5484 return 2;
5485 return 0;
2f1a1aea
FCE
5486}
5487_ACEOF
5488rm -f conftest$ac_exeext
7fbd9d09
FCE
5489if { (ac_try="$ac_link"
5490case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493esac
27aba29a
JS
5494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5495$as_echo "$ac_try_echo") >&5
7fbd9d09 5496 (eval "$ac_link") 2>&5
2f1a1aea 5497 ac_status=$?
27aba29a 5498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea 5499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7fbd9d09
FCE
5500 { (case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503esac
27aba29a
JS
5504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5505$as_echo "$ac_try_echo") >&5
7fbd9d09 5506 (eval "$ac_try") 2>&5
2f1a1aea 5507 ac_status=$?
27aba29a 5508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2f1a1aea
FCE
5509 (exit $ac_status); }; }; then
5510 :
5511else
27aba29a
JS
5512 $as_echo "$as_me: program exited with status $ac_status" >&5
5513$as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
5514sed 's/^/| /' conftest.$ac_ext >&5
5515
5516( exit $ac_status )
5517ac_cv_header_stdc=no
5518fi
27aba29a 5519rm -rf conftest.dSYM
7fbd9d09 5520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2f1a1aea 5521fi
7fbd9d09
FCE
5522
5523
2f1a1aea
FCE
5524fi
5525fi
27aba29a
JS
5526{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5527$as_echo "$ac_cv_header_stdc" >&6; }
2f1a1aea
FCE
5528if test $ac_cv_header_stdc = yes; then
5529
5530cat >>confdefs.h <<\_ACEOF
5531#define STDC_HEADERS 1
5532_ACEOF
5533
5534fi
5535
5536# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5547 inttypes.h stdint.h unistd.h
5548do
27aba29a
JS
5549as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5550{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5551$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 5552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 5553 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5554else
5555 cat >conftest.$ac_ext <<_ACEOF
5556/* confdefs.h. */
5557_ACEOF
5558cat confdefs.h >>conftest.$ac_ext
5559cat >>conftest.$ac_ext <<_ACEOF
5560/* end confdefs.h. */
5561$ac_includes_default
5562
5563#include <$ac_header>
5564_ACEOF
5565rm -f conftest.$ac_objext
7fbd9d09
FCE
5566if { (ac_try="$ac_compile"
5567case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570esac
27aba29a
JS
5571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5572$as_echo "$ac_try_echo") >&5
7fbd9d09 5573 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
27aba29a 5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
5579 (exit $ac_status); } && {
5580 test -z "$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
5583 eval "$as_ac_Header=yes"
5584else
27aba29a 5585 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
5586sed 's/^/| /' conftest.$ac_ext >&5
5587
7fbd9d09 5588 eval "$as_ac_Header=no"
2f1a1aea 5589fi
7fbd9d09
FCE
5590
5591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea 5592fi
27aba29a
JS
5593ac_res=`eval 'as_val=${'$as_ac_Header'}
5594 $as_echo "$as_val"'`
5595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5596$as_echo "$ac_res" >&6; }
5597as_val=`eval 'as_val=${'$as_ac_Header'}
5598 $as_echo "$as_val"'`
5599 if test "x$as_val" = x""yes; then
2f1a1aea 5600 cat >>confdefs.h <<_ACEOF
27aba29a 5601#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2f1a1aea
FCE
5602_ACEOF
5603
5604fi
5605
5606done
5607
5608
5609
5610if test "$ac_cv_prog_cc_stdc" != no; then
5611 U= ANSI2KNR=
5612else
5613 U=_ ANSI2KNR=./ansi2knr
5614fi
5615# Ensure some checks needed by ansi2knr itself.
5616
5617
5618for ac_header in string.h
5619do
27aba29a 5620as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7fbd9d09 5621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a
JS
5622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5623$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 5624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 5625 $as_echo_n "(cached) " >&6
818ba2bc 5626fi
27aba29a
JS
5627ac_res=`eval 'as_val=${'$as_ac_Header'}
5628 $as_echo "$as_val"'`
5629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5630$as_echo "$ac_res" >&6; }
2f1a1aea
FCE
5631else
5632 # Is the header compilable?
27aba29a
JS
5633{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5634$as_echo_n "checking $ac_header usability... " >&6; }
2f1a1aea
FCE
5635cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h. */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h. */
5641$ac_includes_default
5642#include <$ac_header>
5643_ACEOF
5644rm -f conftest.$ac_objext
7fbd9d09
FCE
5645if { (ac_try="$ac_compile"
5646case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649esac
27aba29a
JS
5650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5651$as_echo "$ac_try_echo") >&5
7fbd9d09 5652 (eval "$ac_compile") 2>conftest.er1
2f1a1aea
FCE
5653 ac_status=$?
5654 grep -v '^ *+' conftest.er1 >conftest.err
5655 rm -f conftest.er1
5656 cat conftest.err >&5
27aba29a 5657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
5658 (exit $ac_status); } && {
5659 test -z "$ac_c_werror_flag" ||
5660 test ! -s conftest.err
5661 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
5662 ac_header_compiler=yes
5663else
27aba29a 5664 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
5665sed 's/^/| /' conftest.$ac_ext >&5
5666
7fbd9d09 5667 ac_header_compiler=no
2f1a1aea 5668fi
7fbd9d09
FCE
5669
5670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27aba29a
JS
5671{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5672$as_echo "$ac_header_compiler" >&6; }
2f1a1aea
FCE
5673
5674# Is the header present?
27aba29a
JS
5675{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5676$as_echo_n "checking $ac_header presence... " >&6; }
2f1a1aea
FCE
5677cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h. */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h. */
5683#include <$ac_header>
5684_ACEOF
7fbd9d09
FCE
5685if { (ac_try="$ac_cpp conftest.$ac_ext"
5686case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689esac
27aba29a
JS
5690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5691$as_echo "$ac_try_echo") >&5
7fbd9d09 5692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2f1a1aea
FCE
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
27aba29a 5697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
5698 (exit $ac_status); } >/dev/null && {
5699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5700 test ! -s conftest.err
5701 }; then
2f1a1aea
FCE
5702 ac_header_preproc=yes
5703else
27aba29a 5704 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
5705sed 's/^/| /' conftest.$ac_ext >&5
5706
5707 ac_header_preproc=no
5708fi
7fbd9d09 5709
2f1a1aea 5710rm -f conftest.err conftest.$ac_ext
27aba29a
JS
5711{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5712$as_echo "$ac_header_preproc" >&6; }
2f1a1aea
FCE
5713
5714# So? What about this header?
5715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5716 yes:no: )
27aba29a
JS
5717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5718$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5720$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2f1a1aea
FCE
5721 ac_header_preproc=yes
5722 ;;
5723 no:yes:* )
27aba29a
JS
5724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5725$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5727$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5729$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5731$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5733$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5735$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7fbd9d09 5736 ( cat <<\_ASBOX
2f1a1aea
FCE
5737## ------------------------------------------- ##
5738## Report this to systemtap@sources.redhat.com ##
5739## ------------------------------------------- ##
5740_ASBOX
7fbd9d09 5741 ) | sed "s/^/$as_me: WARNING: /" >&2
2f1a1aea
FCE
5742 ;;
5743esac
27aba29a
JS
5744{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5745$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 5746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 5747 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5748else
5749 eval "$as_ac_Header=\$ac_header_preproc"
5750fi
27aba29a
JS
5751ac_res=`eval 'as_val=${'$as_ac_Header'}
5752 $as_echo "$as_val"'`
5753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5754$as_echo "$ac_res" >&6; }
2f1a1aea
FCE
5755
5756fi
27aba29a
JS
5757as_val=`eval 'as_val=${'$as_ac_Header'}
5758 $as_echo "$as_val"'`
5759 if test "x$as_val" = x""yes; then
2f1a1aea 5760 cat >>confdefs.h <<_ACEOF
27aba29a 5761#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2f1a1aea
FCE
5762_ACEOF
5763
5764fi
5765
5766done
5767
5768
2f1a1aea
FCE
5769if test -n "$ac_tool_prefix"; then
5770 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5771set dummy ${ac_tool_prefix}ranlib; ac_word=$2
27aba29a
JS
5772{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5773$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 5774if test "${ac_cv_prog_RANLIB+set}" = set; then
27aba29a 5775 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5776else
5777 if test -n "$RANLIB"; then
5778 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 5787 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
27aba29a 5788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5789 break 2
5790 fi
5791done
5792done
7fbd9d09 5793IFS=$as_save_IFS
2f1a1aea
FCE
5794
5795fi
5796fi
5797RANLIB=$ac_cv_prog_RANLIB
5798if test -n "$RANLIB"; then
27aba29a
JS
5799 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5800$as_echo "$RANLIB" >&6; }
2f1a1aea 5801else
27aba29a
JS
5802 { $as_echo "$as_me:$LINENO: result: no" >&5
5803$as_echo "no" >&6; }
2f1a1aea
FCE
5804fi
5805
7fbd9d09 5806
2f1a1aea
FCE
5807fi
5808if test -z "$ac_cv_prog_RANLIB"; then
5809 ac_ct_RANLIB=$RANLIB
5810 # Extract the first word of "ranlib", so it can be a program name with args.
5811set dummy ranlib; ac_word=$2
27aba29a
JS
5812{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5813$as_echo_n "checking for $ac_word... " >&6; }
2f1a1aea 5814if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
27aba29a 5815 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5816else
5817 if test -n "$ac_ct_RANLIB"; then
5818 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 5827 ac_cv_prog_ac_ct_RANLIB="ranlib"
27aba29a 5828 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5829 break 2
5830 fi
5831done
5832done
7fbd9d09 5833IFS=$as_save_IFS
2f1a1aea 5834
2f1a1aea
FCE
5835fi
5836fi
5837ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5838if test -n "$ac_ct_RANLIB"; then
27aba29a
JS
5839 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5840$as_echo "$ac_ct_RANLIB" >&6; }
2f1a1aea 5841else
27aba29a
JS
5842 { $as_echo "$as_me:$LINENO: result: no" >&5
5843$as_echo "no" >&6; }
2f1a1aea
FCE
5844fi
5845
7fbd9d09
FCE
5846 if test "x$ac_ct_RANLIB" = x; then
5847 RANLIB=":"
5848 else
5849 case $cross_compiling:$ac_tool_warned in
5850yes:)
27aba29a
JS
5851{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
5853ac_tool_warned=yes ;;
5854esac
5855 RANLIB=$ac_ct_RANLIB
5856 fi
2f1a1aea
FCE
5857else
5858 RANLIB="$ac_cv_prog_RANLIB"
5859fi
5860
5861
5862
5863# Find a good install program. We prefer a C program (faster),
5864# so one script is as good as another. But avoid the broken or
5865# incompatible versions:
5866# SysV /etc/install, /usr/sbin/install
5867# SunOS /usr/etc/install
5868# IRIX /sbin/install
5869# AIX /bin/install
5870# AmigaOS /C/install, which installs bootblocks on floppy discs
5871# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5872# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5873# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5874# OS/2's system install, which has a completely different semantic
5875# ./install, which can be erroneously created by make from ./install.sh.
27aba29a
JS
5876# Reject install programs that cannot install multiple files.
5877{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5878$as_echo_n "checking for a BSD-compatible install... " >&6; }
2f1a1aea
FCE
5879if test -z "$INSTALL"; then
5880if test "${ac_cv_path_install+set}" = set; then
27aba29a 5881 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5882else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 # Account for people who put trailing slashes in PATH elements.
5889case $as_dir/ in
5890 ./ | .// | /cC/* | \
5891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5892 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5893 /usr/ucb/* ) ;;
5894 *)
5895 # OSF1 and SCO ODT 3.0 have their own names for install.
5896 # Don't use installbsd from OSF since it installs stuff as root
5897 # by default.
5898 for ac_prog in ginstall scoinst install; do
5899 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 5900 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2f1a1aea
FCE
5901 if test $ac_prog = install &&
5902 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5903 # AIX install. It has an incompatible calling convention.
5904 :
5905 elif test $ac_prog = install &&
5906 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5907 # program-specific install script used by HP pwplus--don't use.
5908 :
5909 else
27aba29a
JS
5910 rm -rf conftest.one conftest.two conftest.dir
5911 echo one > conftest.one
5912 echo two > conftest.two
5913 mkdir conftest.dir
5914 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5915 test -s conftest.one && test -s conftest.two &&
5916 test -s conftest.dir/conftest.one &&
5917 test -s conftest.dir/conftest.two
5918 then
5919 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5920 break 3
5921 fi
2f1a1aea
FCE
5922 fi
5923 fi
5924 done
5925 done
5926 ;;
5927esac
27aba29a 5928
2f1a1aea 5929done
7fbd9d09 5930IFS=$as_save_IFS
2f1a1aea 5931
27aba29a 5932rm -rf conftest.one conftest.two conftest.dir
2f1a1aea
FCE
5933
5934fi
5935 if test "${ac_cv_path_install+set}" = set; then
5936 INSTALL=$ac_cv_path_install
5937 else
7fbd9d09
FCE
5938 # As a last resort, use the slow shell script. Don't cache a
5939 # value for INSTALL within a source directory, because that will
2f1a1aea 5940 # break other packages using the cache if that directory is
7fbd9d09 5941 # removed, or if the value is a relative name.
2f1a1aea
FCE
5942 INSTALL=$ac_install_sh
5943 fi
5944fi
27aba29a
JS
5945{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5946$as_echo "$INSTALL" >&6; }
2f1a1aea
FCE
5947
5948# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5949# It thinks the first close brace ends the variable substitution.
5950test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5951
5952test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5953
5954test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5955
27aba29a
JS
5956{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5957$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5958set x ${MAKE-make}
5959ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7fbd9d09 5960if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 5961 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5962else
5963 cat >conftest.make <<\_ACEOF
7fbd9d09 5964SHELL = /bin/sh
2f1a1aea 5965all:
7fbd9d09 5966 @echo '@@@%%%=$(MAKE)=@@@%%%'
2f1a1aea
FCE
5967_ACEOF
5968# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7fbd9d09
FCE
5969case `${MAKE-make} -f conftest.make 2>/dev/null` in
5970 *@@@%%%=?*=@@@%%%*)
5971 eval ac_cv_prog_make_${ac_make}_set=yes;;
5972 *)
5973 eval ac_cv_prog_make_${ac_make}_set=no;;
5974esac
2f1a1aea
FCE
5975rm -f conftest.make
5976fi
7fbd9d09 5977if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
27aba29a
JS
5978 { $as_echo "$as_me:$LINENO: result: yes" >&5
5979$as_echo "yes" >&6; }
2f1a1aea
FCE
5980 SET_MAKE=
5981else
27aba29a
JS
5982 { $as_echo "$as_me:$LINENO: result: no" >&5
5983$as_echo "no" >&6; }
2f1a1aea
FCE
5984 SET_MAKE="MAKE=${MAKE-make}"
5985fi
5986
5987
5988
5989
7fbd9d09 5990# Check whether --enable-perfmon was given.
47dd066d 5991if test "${enable_perfmon+set}" = set; then
7fbd9d09 5992 enableval=$enable_perfmon;
564eb0a8
DS
5993 if test "$enable_perfmon" != "no"; then
5994 CPPFLAGS="$CPPFLAGS -DPERFMON"
5995 LIBS="$LIBS -lpfm"
5996 if test "$enable_perfmon" != "yes"; then
5997 CPPFLAGS="$CPPFLAGS -I$enable_perfmon/include"
5998 LDFLAGS="$LDFLAGS -L$enable_perfmon/lib"
5999 fi
47dd066d 6000
27aba29a
JS
6001{ $as_echo "$as_me:$LINENO: checking for pfm_start in -lpfm" >&5
6002$as_echo_n "checking for pfm_start in -lpfm... " >&6; }
47dd066d 6003if test "${ac_cv_lib_pfm_pfm_start+set}" = set; then
27aba29a 6004 $as_echo_n "(cached) " >&6
47dd066d
WC
6005else
6006 ac_check_lib_save_LIBS=$LIBS
6007LIBS="-lpfm $LIBS"
6008cat >conftest.$ac_ext <<_ACEOF
6009/* confdefs.h. */
6010_ACEOF
6011cat confdefs.h >>conftest.$ac_ext
6012cat >>conftest.$ac_ext <<_ACEOF
6013/* end confdefs.h. */
6014
7fbd9d09
FCE
6015/* Override any GCC internal prototype to avoid an error.
6016 Use char because int might match the return type of a GCC
6017 builtin and then its argument prototype would still apply. */
47dd066d
WC
6018#ifdef __cplusplus
6019extern "C"
6020#endif
47dd066d
WC
6021char pfm_start ();
6022int
6023main ()
6024{
7fbd9d09 6025return pfm_start ();
47dd066d
WC
6026 ;
6027 return 0;
6028}
6029_ACEOF
6030rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
6031if { (ac_try="$ac_link"
6032case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035esac
27aba29a
JS
6036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6037$as_echo "$ac_try_echo") >&5
7fbd9d09 6038 (eval "$ac_link") 2>conftest.er1
47dd066d
WC
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
27aba29a 6043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
27aba29a
JS
6047 } && test -s conftest$ac_exeext && {
6048 test "$cross_compiling" = yes ||
6049 $as_test_x conftest$ac_exeext
6050 }; then
47dd066d
WC
6051 ac_cv_lib_pfm_pfm_start=yes
6052else
27aba29a 6053 $as_echo "$as_me: failed program was:" >&5
47dd066d
WC
6054sed 's/^/| /' conftest.$ac_ext >&5
6055
7fbd9d09 6056 ac_cv_lib_pfm_pfm_start=no
47dd066d 6057fi
7fbd9d09 6058
27aba29a 6059rm -rf conftest.dSYM
7fbd9d09 6060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47dd066d
WC
6061 conftest$ac_exeext conftest.$ac_ext
6062LIBS=$ac_check_lib_save_LIBS
6063fi
27aba29a
JS
6064{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_start" >&5
6065$as_echo "$ac_cv_lib_pfm_pfm_start" >&6; }
6066if test "x$ac_cv_lib_pfm_pfm_start" = x""yes; then
47dd066d
WC
6067 cat >>confdefs.h <<_ACEOF
6068#define HAVE_LIBPFM 1
6069_ACEOF
6070
6071 LIBS="-lpfm $LIBS"
6072
6073else
6074
27aba29a
JS
6075 { { $as_echo "$as_me:$LINENO: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&5
6076$as_echo "$as_me: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&2;}
47dd066d
WC
6077 { (exit 1); exit 1; }; }
6078fi
6079
564eb0a8 6080 fi
7fbd9d09
FCE
6081fi
6082
70d28673
DS
6083
6084if test "${enable_prologues+set}" != set; then
27aba29a
JS
6085 { $as_echo "$as_me:$LINENO: checking to see if prologue searching should be the default" >&5
6086$as_echo_n "checking to see if prologue searching should be the default... " >&6; }
70d28673
DS
6087 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
6088 echo ' yes '
6089 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6090 enable_prologues=yes
27aba29a
JS
6091 { $as_echo "$as_me:$LINENO: result: yes" >&5
6092$as_echo "yes" >&6; }
70d28673 6093 else
27aba29a
JS
6094 { $as_echo "$as_me:$LINENO: result: no" >&5
6095$as_echo "no" >&6; }
70d28673
DS
6096 fi
6097fi
7fbd9d09 6098# Check whether --enable-prologues was given.
44f75386 6099if test "${enable_prologues+set}" = set; then
7fbd9d09 6100 enableval=$enable_prologues;
70d28673 6101if test "$enable_prologues" = yes; then
44f75386
FCE
6102
6103cat >>confdefs.h <<\_ACEOF
27aba29a 6104#define ENABLE_PROLOGUES /**/
44f75386
FCE
6105_ACEOF
6106
70d28673 6107fi
7fbd9d09 6108fi
70d28673 6109
7fbd9d09
FCE
6110
6111# Check whether --enable-ssp was given.
9921a199 6112if test "${enable_ssp+set}" = set; then
7fbd9d09
FCE
6113 enableval=$enable_ssp;
6114fi
9921a199 6115
bbfd8c1a
FCE
6116if test "x$enable_ssp" != xno; then
6117
6118 save_CFLAGS="$CFLAGS"
6119 save_CXXFLAGS="$CXXFLAGS"
f0510eaa
FCE
6120 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
6121 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
bbfd8c1a
FCE
6122 cat >conftest.$ac_ext <<_ACEOF
6123int something ();
6124_ACEOF
6125rm -f conftest.$ac_objext
7fbd9d09
FCE
6126if { (ac_try="$ac_compile"
6127case "(($ac_try" in
6128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6130esac
27aba29a
JS
6131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6132$as_echo "$ac_try_echo") >&5
7fbd9d09 6133 (eval "$ac_compile") 2>conftest.er1
bbfd8c1a
FCE
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
27aba29a 6138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6139 (exit $ac_status); } && {
6140 test -z "$ac_c_werror_flag" ||
6141 test ! -s conftest.err
6142 } && test -s conftest.$ac_objext; then
818ba2bc 6143
27aba29a
JS
6144 { $as_echo "$as_me:$LINENO: Compiling with gcc -fstack-protector-all et al." >&5
6145$as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
f0510eaa
FCE
6146 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
6147 CXFXLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
bbfd8c1a 6148else
27aba29a 6149 $as_echo "$as_me: failed program was:" >&5
bbfd8c1a
FCE
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
6152
27aba29a
JS
6153 { $as_echo "$as_me:$LINENO: Compiler does not support -fstack-protector-all et al." >&5
6154$as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
bbfd8c1a
FCE
6155 CFLAGS="$save_CFLAGS"
6156 CXXFLAGS="$save_CXXFLAGS"
6157fi
7fbd9d09
FCE
6158
6159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921a199 6160fi
70d28673 6161
42feb3c0 6162
e1e3ba36 6163# Compiling without fPIE by default (see PR 9922)
7fbd9d09 6164# Check whether --enable-pie was given.
8730f377 6165if test "${enable_pie+set}" = set; then
7fbd9d09
FCE
6166 enableval=$enable_pie;
6167fi
8730f377 6168
e1e3ba36 6169if test "x$enable_pie" == xyes; then
8730f377
FCE
6170
6171 save_CFLAGS="$CFLAGS"
6172 save_CXXFLAGS="$CXXFLAGS"
6173 save_LDFLAGS="$LDFLAGS"
7b53a460
SD
6174 CFLAGS="$CFLAGS -fPIE"
6175 CXXFLAGS="$CXXFLAGS -fPIE"
8730f377
FCE
6176 LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
6177 cat >conftest.$ac_ext <<_ACEOF
6178void main () {}
6179_ACEOF
6180rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
6181if { (ac_try="$ac_link"
6182case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185esac
27aba29a
JS
6186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6187$as_echo "$ac_try_echo") >&5
7fbd9d09 6188 (eval "$ac_link") 2>conftest.er1
8730f377
FCE
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
27aba29a 6193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6194 (exit $ac_status); } && {
6195 test -z "$ac_c_werror_flag" ||
6196 test ! -s conftest.err
27aba29a
JS
6197 } && test -s conftest$ac_exeext && {
6198 test "$cross_compiling" = yes ||
6199 $as_test_x conftest$ac_exeext
6200 }; then
818ba2bc 6201
27aba29a
JS
6202 { $as_echo "$as_me:$LINENO: Compiling with gcc pie et al." >&5
6203$as_echo "$as_me: Compiling with gcc pie et al." >&6;}
8730f377
FCE
6204 # LDFLAGS is special since it may be passed down to bundled-elfutils,
6205 # and interfere with the .so's built therein
5574ef2c 6206 PIELDFLAGS="$LDFLAGS"
8730f377 6207 LDFLAGS="$save_LDFLAGS"
5574ef2c
MW
6208 PIECFLAGS="$CFLAGS"
6209 CFLAGS="$save_CFLAGS"
6210 PIECXXFLAGS="$CXXFLAGS"
6211 CXXFLAGS="$save_CXXFLAGS"
8730f377
FCE
6212
6213else
27aba29a 6214 $as_echo "$as_me: failed program was:" >&5
8730f377
FCE
6215sed 's/^/| /' conftest.$ac_ext >&5
6216
6217
27aba29a
JS
6218 { $as_echo "$as_me:$LINENO: Compiler does not support -pie et al." >&5
6219$as_echo "$as_me: Compiler does not support -pie et al." >&6;}
5574ef2c 6220 PIECFLAGS=""
8730f377 6221 CFLAGS="$save_CFLAGS"
5574ef2c 6222 PIECXXFLAGS=""
8730f377
FCE
6223 CXXFLAGS="$save_CXXFLAGS"
6224 PIELDFLAGS=""
6225 LDFLAGS="$save_LDFLAGS"
6226fi
7fbd9d09 6227
27aba29a 6228rm -rf conftest.dSYM
7fbd9d09 6229rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8730f377
FCE
6230 conftest$ac_exeext conftest.$ac_ext
6231fi
6232
6233
6234
5574ef2c
MW
6235
6236
7fbd9d09 6237# Check whether --enable-sqlite was given.
9921a199 6238if test "${enable_sqlite+set}" = set; then
7fbd9d09 6239 enableval=$enable_sqlite;
9921a199 6240else
e8f3c2c2 6241 enable_sqlite=check
7fbd9d09
FCE
6242fi
6243 sqlite3_LIBS=
9921a199 6244if test "x$enable_sqlite" != xno; then
27aba29a
JS
6245 { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
6246$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
42feb3c0 6247if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
27aba29a 6248 $as_echo_n "(cached) " >&6
42feb3c0
WC
6249else
6250 ac_check_lib_save_LIBS=$LIBS
6251LIBS="-lsqlite3 $LIBS"
6252cat >conftest.$ac_ext <<_ACEOF
6253/* confdefs.h. */
6254_ACEOF
6255cat confdefs.h >>conftest.$ac_ext
6256cat >>conftest.$ac_ext <<_ACEOF
6257/* end confdefs.h. */
6258
7fbd9d09
FCE
6259/* Override any GCC internal prototype to avoid an error.
6260 Use char because int might match the return type of a GCC
6261 builtin and then its argument prototype would still apply. */
42feb3c0
WC
6262#ifdef __cplusplus
6263extern "C"
6264#endif
6265char sqlite3_open ();
6266int
6267main ()
6268{
7fbd9d09 6269return sqlite3_open ();
42feb3c0
WC
6270 ;
6271 return 0;
6272}
6273_ACEOF
6274rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
6275if { (ac_try="$ac_link"
6276case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279esac
27aba29a
JS
6280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6281$as_echo "$ac_try_echo") >&5
7fbd9d09 6282 (eval "$ac_link") 2>conftest.er1
42feb3c0
WC
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
27aba29a 6287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6288 (exit $ac_status); } && {
6289 test -z "$ac_c_werror_flag" ||
6290 test ! -s conftest.err
27aba29a
JS
6291 } && test -s conftest$ac_exeext && {
6292 test "$cross_compiling" = yes ||
6293 $as_test_x conftest$ac_exeext
6294 }; then
42feb3c0
WC
6295 ac_cv_lib_sqlite3_sqlite3_open=yes
6296else
27aba29a 6297 $as_echo "$as_me: failed program was:" >&5
42feb3c0
WC
6298sed 's/^/| /' conftest.$ac_ext >&5
6299
7fbd9d09 6300 ac_cv_lib_sqlite3_sqlite3_open=no
42feb3c0 6301fi
7fbd9d09 6302
27aba29a 6303rm -rf conftest.dSYM
7fbd9d09 6304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42feb3c0
WC
6305 conftest$ac_exeext conftest.$ac_ext
6306LIBS=$ac_check_lib_save_LIBS
6307fi
27aba29a
JS
6308{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
6309$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
6310if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then
9921a199 6311 sqlite3_LIBS=-lsqlite3
42feb3c0 6312
0d563e60
FCE
6313
6314cat >>confdefs.h <<\_ACEOF
07606685
DS
6315#define HAVE_LIBSQLITE3 1
6316_ACEOF
6317
9921a199
DS
6318else
6319 if test "x$enable_sqlite" != xcheck; then
27aba29a
JS
6320 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6322{ { $as_echo "$as_me:$LINENO: error: --enable-sqlite was given, but test for sqlite failed
9921a199 6323See \`config.log' for more details." >&5
27aba29a 6324$as_echo "$as_me: error: --enable-sqlite was given, but test for sqlite failed
9921a199 6325See \`config.log' for more details." >&2;}
27aba29a 6326 { (exit 1); exit 1; }; }; }
9921a199 6327 fi
42feb3c0
WC
6328fi
6329
9921a199 6330fi
44f75386 6331
e6c086bb 6332
7fbd9d09 6333# Check whether --enable-crash was given.
564eb0a8 6334if test "${enable_crash+set}" = set; then
7fbd9d09 6335 enableval=$enable_crash; if test "$enable_crash" != "no"; then
564eb0a8
DS
6336 save_CPPFLAGS="$CPPFLAGS"
6337 if test "$enable_crash" != "yes"; then
6338 staplog_CPPFLAGS=-I$enable_crash
6339 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
6340
6341 fi
35a04c8e
FCE
6342
6343for ac_header in crash/defs.h
6344do
27aba29a
JS
6345as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6346{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6347$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 6348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 6349 $as_echo_n "(cached) " >&6
35a04c8e
FCE
6350else
6351 cat >conftest.$ac_ext <<_ACEOF
6352/* confdefs.h. */
6353_ACEOF
6354cat confdefs.h >>conftest.$ac_ext
6355cat >>conftest.$ac_ext <<_ACEOF
6356/* end confdefs.h. */
6357
6358#define NR_CPUS 256
6359
6360
6361#include <$ac_header>
6362_ACEOF
6363rm -f conftest.$ac_objext
7fbd9d09
FCE
6364if { (ac_try="$ac_compile"
6365case "(($ac_try" in
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6368esac
27aba29a
JS
6369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6370$as_echo "$ac_try_echo") >&5
7fbd9d09 6371 (eval "$ac_compile") 2>conftest.er1
35a04c8e
FCE
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
27aba29a 6376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6377 (exit $ac_status); } && {
6378 test -z "$ac_c_werror_flag" ||
6379 test ! -s conftest.err
6380 } && test -s conftest.$ac_objext; then
35a04c8e
FCE
6381 eval "$as_ac_Header=yes"
6382else
27aba29a 6383 $as_echo "$as_me: failed program was:" >&5
35a04c8e
FCE
6384sed 's/^/| /' conftest.$ac_ext >&5
6385
7fbd9d09 6386 eval "$as_ac_Header=no"
35a04c8e 6387fi
7fbd9d09
FCE
6388
6389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35a04c8e 6390fi
27aba29a
JS
6391ac_res=`eval 'as_val=${'$as_ac_Header'}
6392 $as_echo "$as_val"'`
6393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6394$as_echo "$ac_res" >&6; }
6395as_val=`eval 'as_val=${'$as_ac_Header'}
6396 $as_echo "$as_val"'`
6397 if test "x$as_val" = x""yes; then
35a04c8e 6398 cat >>confdefs.h <<_ACEOF
27aba29a 6399#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35a04c8e 6400_ACEOF
564eb0a8 6401
35a04c8e 6402else
27aba29a
JS
6403 { { $as_echo "$as_me:$LINENO: error: cannot find required crash header (crash-devel may need to be installed)" >&5
6404$as_echo "$as_me: error: cannot find required crash header (crash-devel may need to be installed)" >&2;}
564eb0a8 6405 { (exit 1); exit 1; }; }
35a04c8e
FCE
6406fi
6407
6408done
6409
564eb0a8
DS
6410 CPPFLAGS="$save_CPPFLAGS"
6411 fi
6412else
6413 enable_crash="no"
7fbd9d09 6414fi
564eb0a8 6415
7fbd9d09 6416 if test "$enable_crash" != "no"; then
35a04c8e
FCE
6417 BUILD_CRASHMOD_TRUE=
6418 BUILD_CRASHMOD_FALSE='#'
6419else
6420 BUILD_CRASHMOD_TRUE='#'
6421 BUILD_CRASHMOD_FALSE=
6422fi
6423
6424
92aff3c7 6425building_docs="no"
7fbd9d09 6426# Check whether --enable-docs was given.
465e8fbf 6427if test "${enable_docs+set}" = set; then
7fbd9d09 6428 enableval=$enable_docs; enable_docs=$enableval
465e8fbf
FCE
6429else
6430 enable_docs="check"
7fbd9d09
FCE
6431fi
6432
465e8fbf
FCE
6433# Extract the first word of "latex", so it can be a program name with args.
6434set dummy latex; ac_word=$2
27aba29a
JS
6435{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6436$as_echo_n "checking for $ac_word... " >&6; }
465e8fbf 6437if test "${ac_cv_prog_have_latex+set}" = set; then
27aba29a 6438 $as_echo_n "(cached) " >&6
465e8fbf
FCE
6439else
6440 if test -n "$have_latex"; then
6441 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
6442else
6443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6450 ac_cv_prog_have_latex="yes"
27aba29a 6451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6452 break 2
6453 fi
6454done
6455done
7fbd9d09 6456IFS=$as_save_IFS
465e8fbf
FCE
6457
6458 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
6459fi
6460fi
6461have_latex=$ac_cv_prog_have_latex
6462if test -n "$have_latex"; then
27aba29a
JS
6463 { $as_echo "$as_me:$LINENO: result: $have_latex" >&5
6464$as_echo "$have_latex" >&6; }
465e8fbf 6465else
27aba29a
JS
6466 { $as_echo "$as_me:$LINENO: result: no" >&5
6467$as_echo "no" >&6; }
465e8fbf
FCE
6468fi
6469
7fbd9d09 6470
465e8fbf
FCE
6471# Extract the first word of "dvips", so it can be a program name with args.
6472set dummy dvips; ac_word=$2
27aba29a
JS
6473{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
465e8fbf 6475if test "${ac_cv_prog_have_dvips+set}" = set; then
27aba29a 6476 $as_echo_n "(cached) " >&6
465e8fbf
FCE
6477else
6478 if test -n "$have_dvips"; then
6479 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6488 ac_cv_prog_have_dvips="yes"
27aba29a 6489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6490 break 2
6491 fi
6492done
6493done
7fbd9d09 6494IFS=$as_save_IFS
465e8fbf
FCE
6495
6496 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
6497fi
6498fi
6499have_dvips=$ac_cv_prog_have_dvips
6500if test -n "$have_dvips"; then
27aba29a
JS
6501 { $as_echo "$as_me:$LINENO: result: $have_dvips" >&5
6502$as_echo "$have_dvips" >&6; }
465e8fbf 6503else
27aba29a
JS
6504 { $as_echo "$as_me:$LINENO: result: no" >&5
6505$as_echo "no" >&6; }
465e8fbf
FCE
6506fi
6507
7fbd9d09 6508
465e8fbf
FCE
6509# Extract the first word of "ps2pdf", so it can be a program name with args.
6510set dummy ps2pdf; ac_word=$2
27aba29a
JS
6511{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6512$as_echo_n "checking for $ac_word... " >&6; }
465e8fbf 6513if test "${ac_cv_prog_have_ps2pdf+set}" = set; then
27aba29a 6514 $as_echo_n "(cached) " >&6
465e8fbf
FCE
6515else
6516 if test -n "$have_ps2pdf"; then
6517 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6526 ac_cv_prog_have_ps2pdf="yes"
27aba29a 6527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6528 break 2
6529 fi
6530done
6531done
7fbd9d09 6532IFS=$as_save_IFS
465e8fbf
FCE
6533
6534 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
6535fi
6536fi
6537have_ps2pdf=$ac_cv_prog_have_ps2pdf
6538if test -n "$have_ps2pdf"; then
27aba29a
JS
6539 { $as_echo "$as_me:$LINENO: result: $have_ps2pdf" >&5
6540$as_echo "$have_ps2pdf" >&6; }
465e8fbf 6541else
27aba29a
JS
6542 { $as_echo "$as_me:$LINENO: result: no" >&5
6543$as_echo "no" >&6; }
465e8fbf
FCE
6544fi
6545
7fbd9d09 6546
465e8fbf
FCE
6547# Extract the first word of "latex2html", so it can be a program name with args.
6548set dummy latex2html; ac_word=$2
27aba29a
JS
6549{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6550$as_echo_n "checking for $ac_word... " >&6; }
465e8fbf 6551if test "${ac_cv_prog_have_latex2html+set}" = set; then
27aba29a 6552 $as_echo_n "(cached) " >&6
465e8fbf
FCE
6553else
6554 if test -n "$have_latex2html"; then
6555 ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test.
6556else
6557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558for as_dir in $PATH
6559do
6560 IFS=$as_save_IFS
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6564 ac_cv_prog_have_latex2html="yes"
27aba29a 6565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6566 break 2
6567 fi
6568done
6569done
7fbd9d09 6570IFS=$as_save_IFS
465e8fbf
FCE
6571
6572 test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no"
6573fi
6574fi
6575have_latex2html=$ac_cv_prog_have_latex2html
6576if test -n "$have_latex2html"; then
27aba29a
JS
6577 { $as_echo "$as_me:$LINENO: result: $have_latex2html" >&5
6578$as_echo "$have_latex2html" >&6; }
465e8fbf 6579else
27aba29a
JS
6580 { $as_echo "$as_me:$LINENO: result: no" >&5
6581$as_echo "no" >&6; }
465e8fbf
FCE
6582fi
6583
7fbd9d09 6584
2d4b8ddf
MW
6585if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then
6586 if test "$enable_docs" == "yes"; then
27aba29a
JS
6587 { { $as_echo "$as_me:$LINENO: error: cannot find all tools for building documentation" >&5
6588$as_echo "$as_me: error: cannot find all tools for building documentation" >&2;}
465e8fbf
FCE
6589 { (exit 1); exit 1; }; }
6590 fi
2d4b8ddf 6591 if test "$enable_docs" == "check"; then
27aba29a
JS
6592 { $as_echo "$as_me:$LINENO: WARNING: will not build documentation, cannot find all tools" >&5
6593$as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
2d4b8ddf 6594 fi
465e8fbf 6595fi
92aff3c7
WC
6596if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then
6597 building_docs="yes"
6598fi
7fbd9d09 6599 if test "$building_docs" == "yes"; then
465e8fbf
FCE
6600 BUILD_DOCS_TRUE=
6601 BUILD_DOCS_FALSE='#'
6602else
6603 BUILD_DOCS_TRUE='#'
6604 BUILD_DOCS_FALSE=
6605fi
6606
6607
92aff3c7 6608building_refdocs="no"
7fbd9d09 6609# Check whether --enable-refdocs was given.
92aff3c7 6610if test "${enable_refdocs+set}" = set; then
7fbd9d09 6611 enableval=$enable_refdocs; enable_refdocs=$enableval
92aff3c7
WC
6612else
6613 enable_refdocs="check"
7fbd9d09
FCE
6614fi
6615
92aff3c7 6616if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
27aba29a
JS
6617 { { $as_echo "$as_me:$LINENO: error: must use --enable-docs with --enable-refdocs" >&5
6618$as_echo "$as_me: error: must use --enable-docs with --enable-refdocs" >&2;}
92aff3c7
WC
6619 { (exit 1); exit 1; }; }
6620fi
6621# Extract the first word of "xmlto", so it can be a program name with args.
6622set dummy xmlto; ac_word=$2
27aba29a
JS
6623{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6624$as_echo_n "checking for $ac_word... " >&6; }
92aff3c7 6625if test "${ac_cv_prog_have_xmlto+set}" = set; then
27aba29a 6626 $as_echo_n "(cached) " >&6
92aff3c7
WC
6627else
6628 if test -n "$have_xmlto"; then
6629 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
6630else
6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
92aff3c7 6638 ac_cv_prog_have_xmlto="yes"
27aba29a 6639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
92aff3c7
WC
6640 break 2
6641 fi
6642done
6643done
7fbd9d09 6644IFS=$as_save_IFS
92aff3c7
WC
6645
6646 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
6647fi
6648fi
6649have_xmlto=$ac_cv_prog_have_xmlto
6650if test -n "$have_xmlto"; then
27aba29a
JS
6651 { $as_echo "$as_me:$LINENO: result: $have_xmlto" >&5
6652$as_echo "$have_xmlto" >&6; }
92aff3c7 6653else
27aba29a
JS
6654 { $as_echo "$as_me:$LINENO: result: no" >&5
6655$as_echo "no" >&6; }
92aff3c7
WC
6656fi
6657
7fbd9d09 6658
aa5951be 6659if test "x${have_xmlto}" == "xyes"; then
27aba29a
JS
6660{ $as_echo "$as_me:$LINENO: checking for xmlto pdf support" >&5
6661$as_echo_n "checking for xmlto pdf support... " >&6; }
aa5951be
WC
6662cat > conftest.$ac_ext << EOF
6663<?xml version="1.0" encoding="UTF-8"?>
6664<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
6665"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
6666 <book id="pdffromxml">
6667 </book>
6668EOF
6669 xmlto pdf conftest.$ac_ext >& /dev/null
6670 if test $? == 0; then
6671 have_xmlto_pdf="yes"
27aba29a
JS
6672 { $as_echo "$as_me:$LINENO: result: yes" >&5
6673$as_echo "yes" >&6; }
aa5951be 6674 else
27aba29a
JS
6675 { $as_echo "$as_me:$LINENO: result: no" >&5
6676$as_echo "no" >&6; }
aa5951be
WC
6677 fi
6678fi
92aff3c7 6679if test "$enable_refdocs" == "yes"; then
aa5951be 6680 if test "x${have_xmlto}${have_xmlto_pdf}" != "xyesyes"; then
64e0a05d
FCE
6681 { { $as_echo "$as_me:$LINENO: error: cannot find proper xmlto for building reference documentation" >&5
6682$as_echo "$as_me: error: cannot find proper xmlto for building reference documentation" >&2;}
92aff3c7
WC
6683 { (exit 1); exit 1; }; }
6684 fi
6685fi
aa5951be 6686if test "x${have_xmlto}${have_xmlto_pdf}" == "xyesyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
92aff3c7
WC
6687 building_refdocs="yes"
6688fi
7fbd9d09 6689 if test "$building_refdocs" == "yes"; then
92aff3c7
WC
6690 BUILD_REFDOCS_TRUE=
6691 BUILD_REFDOCS_FALSE='#'
6692else
6693 BUILD_REFDOCS_TRUE='#'
6694 BUILD_REFDOCS_FALSE=
6695fi
6696
6697
7fbd9d09 6698# Check whether --enable-server was given.
19a0d4b6 6699if test "${enable_server+set}" = set; then
7fbd9d09 6700 enableval=$enable_server; enable_server=$enableval
19a0d4b6
MW
6701else
6702 enable_server="check"
7fbd9d09
FCE
6703fi
6704
27aba29a
JS
6705{ $as_echo "$as_me:$LINENO: checking for /usr/include/nss3" >&5
6706$as_echo_n "checking for /usr/include/nss3... " >&6; }
8ca54d60 6707if test "${ac_cv_file__usr_include_nss3+set}" = set; then
27aba29a 6708 $as_echo_n "(cached) " >&6
43498922 6709else
8ca54d60 6710 test "$cross_compiling" = yes &&
27aba29a
JS
6711 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6712$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8ca54d60
EB
6713 { (exit 1); exit 1; }; }
6714if test -r "/usr/include/nss3"; then
6715 ac_cv_file__usr_include_nss3=yes
6716else
6717 ac_cv_file__usr_include_nss3=no
43498922 6718fi
8ca54d60 6719fi
27aba29a
JS
6720{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss3" >&5
6721$as_echo "$ac_cv_file__usr_include_nss3" >&6; }
6722if test "x$ac_cv_file__usr_include_nss3" = x""yes; then
8ca54d60 6723 nssdir=nss3
43498922 6724else
8ca54d60 6725
27aba29a
JS
6726 { $as_echo "$as_me:$LINENO: checking for /usr/include/nss" >&5
6727$as_echo_n "checking for /usr/include/nss... " >&6; }
8ca54d60 6728if test "${ac_cv_file__usr_include_nss+set}" = set; then
27aba29a 6729 $as_echo_n "(cached) " >&6
8ca54d60
EB
6730else
6731 test "$cross_compiling" = yes &&
27aba29a
JS
6732 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6733$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8ca54d60
EB
6734 { (exit 1); exit 1; }; }
6735if test -r "/usr/include/nss"; then
6736 ac_cv_file__usr_include_nss=yes
6737else
6738 ac_cv_file__usr_include_nss=no
6739fi
6740fi
27aba29a
JS
6741{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss" >&5
6742$as_echo "$ac_cv_file__usr_include_nss" >&6; }
6743if test "x$ac_cv_file__usr_include_nss" = x""yes; then
8ca54d60 6744 nssdir=nss
43498922
DB
6745fi
6746
6747
6748fi
8ca54d60 6749
27aba29a
JS
6750{ $as_echo "$as_me:$LINENO: checking for /usr/include/nspr4" >&5
6751$as_echo_n "checking for /usr/include/nspr4... " >&6; }
8ca54d60 6752if test "${ac_cv_file__usr_include_nspr4+set}" = set; then
27aba29a 6753 $as_echo_n "(cached) " >&6
43498922 6754else
8ca54d60 6755 test "$cross_compiling" = yes &&
27aba29a
JS
6756 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6757$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8ca54d60
EB
6758 { (exit 1); exit 1; }; }
6759if test -r "/usr/include/nspr4"; then
6760 ac_cv_file__usr_include_nspr4=yes
43498922 6761else
8ca54d60
EB
6762 ac_cv_file__usr_include_nspr4=no
6763fi
43498922 6764fi
27aba29a
JS
6765{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr4" >&5
6766$as_echo "$ac_cv_file__usr_include_nspr4" >&6; }
6767if test "x$ac_cv_file__usr_include_nspr4" = x""yes; then
8ca54d60
EB
6768 nsprdir=nspr4
6769else
43498922 6770
27aba29a
JS
6771 { $as_echo "$as_me:$LINENO: checking for /usr/include/nspr" >&5
6772$as_echo_n "checking for /usr/include/nspr... " >&6; }
8ca54d60 6773if test "${ac_cv_file__usr_include_nspr+set}" = set; then
27aba29a 6774 $as_echo_n "(cached) " >&6
43498922 6775else
8ca54d60 6776 test "$cross_compiling" = yes &&
27aba29a
JS
6777 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6778$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8ca54d60
EB
6779 { (exit 1); exit 1; }; }
6780if test -r "/usr/include/nspr"; then
6781 ac_cv_file__usr_include_nspr=yes
6782else
6783 ac_cv_file__usr_include_nspr=no
43498922 6784fi
43498922 6785fi
27aba29a
JS
6786{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr" >&5
6787$as_echo "$ac_cv_file__usr_include_nspr" >&6; }
6788if test "x$ac_cv_file__usr_include_nspr" = x""yes; then
8ca54d60
EB
6789 nsprdir=nspr
6790fi
6791
43498922
DB
6792
6793fi
6794
8ca54d60
EB
6795if test "x$nssdir" != "x" -a "x$nsprdir" != "x"; then
6796nss_CFLAGS="-I/usr/include/$nssdir"
6797nspr_CFLAGS="-I/usr/include/$nsprdir"
6798
6799
6800save_CPPFLAGS="$CPPFLAGS"
6801CPPFLAGS="$CFLAGS $nss_CFLAGS $nspr_CFLAGS"
6802
6803
6804
6805
6806
19a0d4b6 6807
8ca54d60
EB
6808
6809for ac_header in "$nsprdir/nspr.h" "$nsprdir/plgetopt.h" "$nsprdir/prerror.h" "$nssdir/ssl.h" "$nssdir/nss.h" "$nssdir/pk11func.h" "$nssdir/secerr.h"
6810do
27aba29a 6811as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7fbd9d09 6812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a
JS
6813 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6814$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 6815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 6816 $as_echo_n "(cached) " >&6
818ba2bc 6817fi
27aba29a
JS
6818ac_res=`eval 'as_val=${'$as_ac_Header'}
6819 $as_echo "$as_val"'`
6820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6821$as_echo "$ac_res" >&6; }
8ca54d60
EB
6822else
6823 # Is the header compilable?
27aba29a
JS
6824{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6825$as_echo_n "checking $ac_header usability... " >&6; }
8ca54d60
EB
6826cat >conftest.$ac_ext <<_ACEOF
6827/* confdefs.h. */
6828_ACEOF
6829cat confdefs.h >>conftest.$ac_ext
6830cat >>conftest.$ac_ext <<_ACEOF
6831/* end confdefs.h. */
6832$ac_includes_default
6833#include <$ac_header>
6834_ACEOF
6835rm -f conftest.$ac_objext
7fbd9d09
FCE
6836if { (ac_try="$ac_compile"
6837case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840esac
27aba29a
JS
6841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6842$as_echo "$ac_try_echo") >&5
7fbd9d09 6843 (eval "$ac_compile") 2>conftest.er1
43498922 6844 ac_status=$?
8ca54d60
EB
6845 grep -v '^ *+' conftest.er1 >conftest.err
6846 rm -f conftest.er1
6847 cat conftest.err >&5
27aba29a 6848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6849 (exit $ac_status); } && {
6850 test -z "$ac_c_werror_flag" ||
6851 test ! -s conftest.err
6852 } && test -s conftest.$ac_objext; then
8ca54d60 6853 ac_header_compiler=yes
43498922 6854else
27aba29a 6855 $as_echo "$as_me: failed program was:" >&5
8ca54d60
EB
6856sed 's/^/| /' conftest.$ac_ext >&5
6857
7fbd9d09 6858 ac_header_compiler=no
43498922 6859fi
7fbd9d09
FCE
6860
6861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27aba29a
JS
6862{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6863$as_echo "$ac_header_compiler" >&6; }
8ca54d60
EB
6864
6865# Is the header present?
27aba29a
JS
6866{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6867$as_echo_n "checking $ac_header presence... " >&6; }
8ca54d60
EB
6868cat >conftest.$ac_ext <<_ACEOF
6869/* confdefs.h. */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h. */
6874#include <$ac_header>
6875_ACEOF
7fbd9d09
FCE
6876if { (ac_try="$ac_cpp conftest.$ac_ext"
6877case "(($ac_try" in
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6880esac
27aba29a
JS
6881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6882$as_echo "$ac_try_echo") >&5
7fbd9d09 6883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43498922 6884 ac_status=$?
8ca54d60
EB
6885 grep -v '^ *+' conftest.er1 >conftest.err
6886 rm -f conftest.er1
6887 cat conftest.err >&5
27aba29a 6888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
6889 (exit $ac_status); } >/dev/null && {
6890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6891 test ! -s conftest.err
6892 }; then
8ca54d60 6893 ac_header_preproc=yes
43498922 6894else
27aba29a 6895 $as_echo "$as_me: failed program was:" >&5
8ca54d60 6896sed 's/^/| /' conftest.$ac_ext >&5
43498922 6897
8ca54d60
EB
6898 ac_header_preproc=no
6899fi
7fbd9d09 6900
8ca54d60 6901rm -f conftest.err conftest.$ac_ext
27aba29a
JS
6902{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6903$as_echo "$ac_header_preproc" >&6; }
43498922 6904
8ca54d60
EB
6905# So? What about this header?
6906case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6907 yes:no: )
27aba29a
JS
6908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6909$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6911$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8ca54d60
EB
6912 ac_header_preproc=yes
6913 ;;
6914 no:yes:* )
27aba29a
JS
6915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6916$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6918$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6920$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6922$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6924$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6926$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7fbd9d09 6927 ( cat <<\_ASBOX
8ca54d60
EB
6928## ------------------------------------------- ##
6929## Report this to systemtap@sources.redhat.com ##
6930## ------------------------------------------- ##
6931_ASBOX
7fbd9d09 6932 ) | sed "s/^/$as_me: WARNING: /" >&2
8ca54d60
EB
6933 ;;
6934esac
27aba29a
JS
6935{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6936$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 6937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 6938 $as_echo_n "(cached) " >&6
43498922 6939else
8ca54d60 6940 eval "$as_ac_Header=\$ac_header_preproc"
43498922 6941fi
27aba29a
JS
6942ac_res=`eval 'as_val=${'$as_ac_Header'}
6943 $as_echo "$as_val"'`
6944 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6945$as_echo "$ac_res" >&6; }
43498922 6946
8ca54d60 6947fi
27aba29a
JS
6948as_val=`eval 'as_val=${'$as_ac_Header'}
6949 $as_echo "$as_val"'`
6950 if test "x$as_val" = x""yes; then
8ca54d60 6951 cat >>confdefs.h <<_ACEOF
27aba29a 6952#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8ca54d60
EB
6953_ACEOF
6954 have_nss_includes=yes
43498922 6955else
8ca54d60 6956 have_nss_includes=no
43498922
DB
6957fi
6958
8ca54d60
EB
6959done
6960
6961CPPFLAGS="$save_CPPFLAGS"
6962have_nss_libs=no
27aba29a
JS
6963{ $as_echo "$as_me:$LINENO: checking for PR_Connect in -lnspr4" >&5
6964$as_echo_n "checking for PR_Connect in -lnspr4... " >&6; }
8ca54d60 6965if test "${ac_cv_lib_nspr4_PR_Connect+set}" = set; then
27aba29a 6966 $as_echo_n "(cached) " >&6
8ca54d60
EB
6967else
6968 ac_check_lib_save_LIBS=$LIBS
6969LIBS="-lnspr4 $LIBS"
6970cat >conftest.$ac_ext <<_ACEOF
6971/* confdefs.h. */
6972_ACEOF
6973cat confdefs.h >>conftest.$ac_ext
6974cat >>conftest.$ac_ext <<_ACEOF
6975/* end confdefs.h. */
19a0d4b6 6976
7fbd9d09
FCE
6977/* Override any GCC internal prototype to avoid an error.
6978 Use char because int might match the return type of a GCC
6979 builtin and then its argument prototype would still apply. */
8ca54d60
EB
6980#ifdef __cplusplus
6981extern "C"
6982#endif
6983char PR_Connect ();
6984int
6985main ()
6986{
7fbd9d09 6987return PR_Connect ();
8ca54d60
EB
6988 ;
6989 return 0;
6990}
6991_ACEOF
6992rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
6993if { (ac_try="$ac_link"
6994case "(($ac_try" in
6995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6997esac
27aba29a
JS
6998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6999$as_echo "$ac_try_echo") >&5
7fbd9d09 7000 (eval "$ac_link") 2>conftest.er1
43498922 7001 ac_status=$?
8ca54d60
EB
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
27aba29a 7005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7006 (exit $ac_status); } && {
7007 test -z "$ac_c_werror_flag" ||
7008 test ! -s conftest.err
27aba29a
JS
7009 } && test -s conftest$ac_exeext && {
7010 test "$cross_compiling" = yes ||
7011 $as_test_x conftest$ac_exeext
7012 }; then
8ca54d60 7013 ac_cv_lib_nspr4_PR_Connect=yes
43498922 7014else
27aba29a 7015 $as_echo "$as_me: failed program was:" >&5
8ca54d60
EB
7016sed 's/^/| /' conftest.$ac_ext >&5
7017
7fbd9d09 7018 ac_cv_lib_nspr4_PR_Connect=no
43498922 7019fi
7fbd9d09 7020
27aba29a 7021rm -rf conftest.dSYM
7fbd9d09 7022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8ca54d60
EB
7023 conftest$ac_exeext conftest.$ac_ext
7024LIBS=$ac_check_lib_save_LIBS
43498922 7025fi
27aba29a
JS
7026{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nspr4_PR_Connect" >&5
7027$as_echo "$ac_cv_lib_nspr4_PR_Connect" >&6; }
7028if test "x$ac_cv_lib_nspr4_PR_Connect" = x""yes; then
8ca54d60 7029
27aba29a
JS
7030 { $as_echo "$as_me:$LINENO: checking for SSL_ReHandshake in -lssl3" >&5
7031$as_echo_n "checking for SSL_ReHandshake in -lssl3... " >&6; }
8ca54d60 7032if test "${ac_cv_lib_ssl3_SSL_ReHandshake+set}" = set; then
27aba29a 7033 $as_echo_n "(cached) " >&6
8ca54d60
EB
7034else
7035 ac_check_lib_save_LIBS=$LIBS
7036LIBS="-lssl3 $LIBS"
7037cat >conftest.$ac_ext <<_ACEOF
7038/* confdefs.h. */
7039_ACEOF
7040cat confdefs.h >>conftest.$ac_ext
7041cat >>conftest.$ac_ext <<_ACEOF
7042/* end confdefs.h. */
7043
7fbd9d09
FCE
7044/* Override any GCC internal prototype to avoid an error.
7045 Use char because int might match the return type of a GCC
7046 builtin and then its argument prototype would still apply. */
8ca54d60
EB
7047#ifdef __cplusplus
7048extern "C"
7049#endif
7050char SSL_ReHandshake ();
7051int
7052main ()
7053{
7fbd9d09 7054return SSL_ReHandshake ();
8ca54d60
EB
7055 ;
7056 return 0;
7057}
7058_ACEOF
7059rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
7060if { (ac_try="$ac_link"
7061case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064esac
27aba29a
JS
7065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7066$as_echo "$ac_try_echo") >&5
7fbd9d09 7067 (eval "$ac_link") 2>conftest.er1
43498922 7068 ac_status=$?
8ca54d60
EB
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
27aba29a 7072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
27aba29a
JS
7076 } && test -s conftest$ac_exeext && {
7077 test "$cross_compiling" = yes ||
7078 $as_test_x conftest$ac_exeext
7079 }; then
8ca54d60 7080 ac_cv_lib_ssl3_SSL_ReHandshake=yes
43498922 7081else
27aba29a 7082 $as_echo "$as_me: failed program was:" >&5
8ca54d60 7083sed 's/^/| /' conftest.$ac_ext >&5
43498922 7084
7fbd9d09 7085 ac_cv_lib_ssl3_SSL_ReHandshake=no
8ca54d60 7086fi
7fbd9d09 7087
27aba29a 7088rm -rf conftest.dSYM
7fbd9d09 7089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8ca54d60
EB
7090 conftest$ac_exeext conftest.$ac_ext
7091LIBS=$ac_check_lib_save_LIBS
7092fi
27aba29a
JS
7093{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl3_SSL_ReHandshake" >&5
7094$as_echo "$ac_cv_lib_ssl3_SSL_ReHandshake" >&6; }
7095if test "x$ac_cv_lib_ssl3_SSL_ReHandshake" = x""yes; then
8ca54d60
EB
7096 have_nss_libs=yes
7097fi
43498922 7098
43498922 7099
43498922 7100fi
43498922 7101
19a0d4b6 7102fi
8ca54d60 7103if test "x${have_nss_includes}${have_nss_libs}" != "xyesyes"; then
19a0d4b6 7104 if test "$enable_server" == "yes"; then
27aba29a
JS
7105 { { $as_echo "$as_me:$LINENO: error: cannot find all libraries for stap-server" >&5
7106$as_echo "$as_me: error: cannot find all libraries for stap-server" >&2;}
19a0d4b6
MW
7107 { (exit 1); exit 1; }; }
7108 fi
7109 if test "$enable_server" == "check"; then
27aba29a
JS
7110 { $as_echo "$as_me:$LINENO: WARNING: will not build stap-server, cannot find all libraries" >&5
7111$as_echo "$as_me: WARNING: will not build stap-server, cannot find all libraries" >&2;}
19a0d4b6
MW
7112 fi
7113fi
7fbd9d09 7114 if test "x${have_nss_includes}${have_nss_libs}" == "xyesyes" -a "$enable_server" != "no"; then
19a0d4b6
MW
7115 BUILD_SERVER_TRUE=
7116 BUILD_SERVER_FALSE='#'
7117else
7118 BUILD_SERVER_TRUE='#'
7119 BUILD_SERVER_FALSE=
43498922
DB
7120fi
7121
19a0d4b6 7122
1087b83f
TM
7123# Check whether --enable-grapher was given.
7124if test "${enable_grapher+set}" = set; then
7125 enableval=$enable_grapher; enable_grapher=$enableval
7126else
7127 enable_grapher="check"
7128fi
7129
7130
7131
7132if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7135set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7136{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7137$as_echo_n "checking for $ac_word... " >&6; }
7138if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7139 $as_echo_n "(cached) " >&6
7140else
7141 case $PKG_CONFIG in
7142 [\\/]* | ?:[\\/]*)
7143 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7144 ;;
7145 *)
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147for as_dir in $PATH
7148do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157done
7158done
7159IFS=$as_save_IFS
7160
7161 ;;
7162esac
7163fi
7164PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7165if test -n "$PKG_CONFIG"; then
7166 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7167$as_echo "$PKG_CONFIG" >&6; }
7168else
7169 { $as_echo "$as_me:$LINENO: result: no" >&5
7170$as_echo "no" >&6; }
7171fi
7172
7173
7174fi
7175if test -z "$ac_cv_path_PKG_CONFIG"; then
7176 ac_pt_PKG_CONFIG=$PKG_CONFIG
7177 # Extract the first word of "pkg-config", so it can be a program name with args.
7178set dummy pkg-config; ac_word=$2
7179{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7180$as_echo_n "checking for $ac_word... " >&6; }
7181if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7182 $as_echo_n "(cached) " >&6
7183else
7184 case $ac_pt_PKG_CONFIG in
7185 [\\/]* | ?:[\\/]*)
7186 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7187 ;;
7188 *)
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7196 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200done
7201done
7202IFS=$as_save_IFS
7203
7204 ;;
7205esac
7206fi
7207ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7208if test -n "$ac_pt_PKG_CONFIG"; then
7209 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7210$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7211else
7212 { $as_echo "$as_me:$LINENO: result: no" >&5
7213$as_echo "no" >&6; }
7214fi
7215
7216 if test "x$ac_pt_PKG_CONFIG" = x; then
7217 PKG_CONFIG=""
7218 else
7219 case $cross_compiling:$ac_tool_warned in
7220yes:)
7221{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7223ac_tool_warned=yes ;;
7224esac
7225 PKG_CONFIG=$ac_pt_PKG_CONFIG
7226 fi
7227else
7228 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7229fi
7230
7231fi
7232if test -n "$PKG_CONFIG"; then
7233 _pkg_min_version=0.9.0
7234 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7235$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7236 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7237 { $as_echo "$as_me:$LINENO: result: yes" >&5
7238$as_echo "yes" >&6; }
7239 else
7240 { $as_echo "$as_me:$LINENO: result: no" >&5
7241$as_echo "no" >&6; }
7242 PKG_CONFIG=""
7243 fi
7244
7245fi
7246
7247pkg_failed=no
7248{ $as_echo "$as_me:$LINENO: checking for GRAPHER" >&5
7249$as_echo_n "checking for GRAPHER... " >&6; }
7250
7251if test -n "$GRAPHER_CFLAGS"; then
7252 pkg_cv_GRAPHER_CFLAGS="$GRAPHER_CFLAGS"
7253 elif test -n "$PKG_CONFIG"; then
7254 if test -n "$PKG_CONFIG" && \
7255 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\"") >&5
7256 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5
7257 ac_status=$?
7258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; then
7260 pkg_cv_GRAPHER_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.8.0" 2>/dev/null`
7261else
7262 pkg_failed=yes
7263fi
7264 else
7265 pkg_failed=untried
7266fi
7267if test -n "$GRAPHER_LIBS"; then
7268 pkg_cv_GRAPHER_LIBS="$GRAPHER_LIBS"
7269 elif test -n "$PKG_CONFIG"; then
7270 if test -n "$PKG_CONFIG" && \
7271 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\"") >&5
7272 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5
7273 ac_status=$?
7274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; then
7276 pkg_cv_GRAPHER_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.8.0" 2>/dev/null`
7277else
7278 pkg_failed=yes
7279fi
7280 else
7281 pkg_failed=untried
7282fi
7283
7284
7285
7286if test $pkg_failed = yes; then
7287
7288if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7289 _pkg_short_errors_supported=yes
7290else
7291 _pkg_short_errors_supported=no
7292fi
7293 if test $_pkg_short_errors_supported = yes; then
7294 GRAPHER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1`
7295 else
7296 GRAPHER_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1`
7297 fi
7298 # Put the nasty error message in config.log where it belongs
7299 echo "$GRAPHER_PKG_ERRORS" >&5
7300
7301 { $as_echo "$as_me:$LINENO: result: no" >&5
7302$as_echo "no" >&6; }
7303 have_gtkmm=no
7304elif test $pkg_failed = untried; then
7305 have_gtkmm=no
7306else
7307 GRAPHER_CFLAGS=$pkg_cv_GRAPHER_CFLAGS
7308 GRAPHER_LIBS=$pkg_cv_GRAPHER_LIBS
7309 { $as_echo "$as_me:$LINENO: result: yes" >&5
7310$as_echo "yes" >&6; }
7311 have_gtkmm=yes
7312fi
7313 if test "x${have_gtkmm}" == "xyes" -a x"$enable_grapher" != "xno"; then
7314 BUILD_GRAPHER_TRUE=
7315 BUILD_GRAPHER_FALSE='#'
7316else
7317 BUILD_GRAPHER_TRUE='#'
7318 BUILD_GRAPHER_FALSE=
7319fi
7320
7321
e8f3c2c2
DS
7322build_elfutils=no
7323
7fbd9d09 7324# Check whether --with-elfutils was given.
e8f3c2c2 7325if test "${with_elfutils+set}" = set; then
7fbd9d09 7326 withval=$with_elfutils;
e8f3c2c2 7327case "$with_elfutils" in
27aba29a
JS
7328yes) { { $as_echo "$as_me:$LINENO: error: --with-elfutils requires an argument" >&5
7329$as_echo "$as_me: error: --with-elfutils requires an argument" >&2;}
e8f3c2c2
DS
7330 { (exit 1); exit 1; }; } ;;
7331''|no) ;;
7332*) build_elfutils=yes ;;
7333esac
7fbd9d09 7334fi
e8f3c2c2 7335
7fbd9d09 7336 if test $build_elfutils = yes; then
e8f3c2c2
DS
7337 BUILD_ELFUTILS_TRUE=
7338 BUILD_ELFUTILS_FALSE='#'
7339else
7340 BUILD_ELFUTILS_TRUE='#'
7341 BUILD_ELFUTILS_FALSE=
7342fi
7343
7344elfutils_abs_srcdir=`if test $build_elfutils = yes; then
7345 cd $with_elfutils && pwd
7346fi
7347`
7348
7349
9cb3a339 7350if test $build_elfutils = no; then
8d4b1ab0 7351 # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/
4d9087fc 7352 save_LIBS="$LIBS"
4645fadb 7353
27aba29a
JS
7354{ $as_echo "$as_me:$LINENO: checking for dwfl_module_getsym in -ldw" >&5
7355$as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
4645fadb 7356if test "${ac_cv_lib_dw_dwfl_module_getsym+set}" = set; then
27aba29a 7357 $as_echo_n "(cached) " >&6
4645fadb
JS
7358else
7359 ac_check_lib_save_LIBS=$LIBS
7360LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS"
7361cat >conftest.$ac_ext <<_ACEOF
7362/* confdefs.h. */
7363_ACEOF
7364cat confdefs.h >>conftest.$ac_ext
7365cat >>conftest.$ac_ext <<_ACEOF
7366/* end confdefs.h. */
7367
7fbd9d09
FCE
7368/* Override any GCC internal prototype to avoid an error.
7369 Use char because int might match the return type of a GCC
7370 builtin and then its argument prototype would still apply. */
4645fadb
JS
7371#ifdef __cplusplus
7372extern "C"
7373#endif
7374char dwfl_module_getsym ();
7375int
7376main ()
7377{
7fbd9d09 7378return dwfl_module_getsym ();
4645fadb
JS
7379 ;
7380 return 0;
7381}
7382_ACEOF
7383rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
7384if { (ac_try="$ac_link"
7385case "(($ac_try" in
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7388esac
27aba29a
JS
7389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7390$as_echo "$ac_try_echo") >&5
7fbd9d09 7391 (eval "$ac_link") 2>conftest.er1
4645fadb
JS
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
27aba29a 7396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7397 (exit $ac_status); } && {
7398 test -z "$ac_c_werror_flag" ||
7399 test ! -s conftest.err
27aba29a
JS
7400 } && test -s conftest$ac_exeext && {
7401 test "$cross_compiling" = yes ||
7402 $as_test_x conftest$ac_exeext
7403 }; then
4645fadb
JS
7404 ac_cv_lib_dw_dwfl_module_getsym=yes
7405else
27aba29a 7406 $as_echo "$as_me: failed program was:" >&5
4645fadb
JS
7407sed 's/^/| /' conftest.$ac_ext >&5
7408
7fbd9d09 7409 ac_cv_lib_dw_dwfl_module_getsym=no
4645fadb 7410fi
7fbd9d09 7411
27aba29a 7412rm -rf conftest.dSYM
7fbd9d09 7413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4645fadb
JS
7414 conftest$ac_exeext conftest.$ac_ext
7415LIBS=$ac_check_lib_save_LIBS
7416fi
27aba29a
JS
7417{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
7418$as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
7419if test "x$ac_cv_lib_dw_dwfl_module_getsym" = x""yes; then
4645fadb
JS
7420 cat >>confdefs.h <<_ACEOF
7421#define HAVE_LIBDW 1
7422_ACEOF
7423
7424 LIBS="-ldw $LIBS"
7425
7426else
7427
27aba29a
JS
7428 { { $as_echo "$as_me:$LINENO: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&5
7429$as_echo "$as_me: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&2;}
4645fadb
JS
7430 { (exit 1); exit 1; }; }
7431fi
7432
87cb1275 7433
27aba29a
JS
7434{ $as_echo "$as_me:$LINENO: checking for dwarf_getelf in -ldw" >&5
7435$as_echo_n "checking for dwarf_getelf in -ldw... " >&6; }
87cb1275 7436if test "${ac_cv_lib_dw_dwarf_getelf+set}" = set; then
27aba29a 7437 $as_echo_n "(cached) " >&6
87cb1275
MW
7438else
7439 ac_check_lib_save_LIBS=$LIBS
7440LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS"
7441cat >conftest.$ac_ext <<_ACEOF
7442/* confdefs.h. */
7443_ACEOF
7444cat confdefs.h >>conftest.$ac_ext
7445cat >>conftest.$ac_ext <<_ACEOF
7446/* end confdefs.h. */
7447
7fbd9d09
FCE
7448/* Override any GCC internal prototype to avoid an error.
7449 Use char because int might match the return type of a GCC
7450 builtin and then its argument prototype would still apply. */
87cb1275
MW
7451#ifdef __cplusplus
7452extern "C"
7453#endif
7454char dwarf_getelf ();
7455int
7456main ()
7457{
7fbd9d09 7458return dwarf_getelf ();
87cb1275
MW
7459 ;
7460 return 0;
7461}
7462_ACEOF
7463rm -f conftest.$ac_objext conftest$ac_exeext
7fbd9d09
FCE
7464if { (ac_try="$ac_link"
7465case "(($ac_try" in
7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467 *) ac_try_echo=$ac_try;;
7468esac
27aba29a
JS
7469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7470$as_echo "$ac_try_echo") >&5
7fbd9d09 7471 (eval "$ac_link") 2>conftest.er1
87cb1275
MW
7472 ac_status=$?
7473 grep -v '^ *+' conftest.er1 >conftest.err
7474 rm -f conftest.er1
7475 cat conftest.err >&5
27aba29a 7476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
27aba29a
JS
7480 } && test -s conftest$ac_exeext && {
7481 test "$cross_compiling" = yes ||
7482 $as_test_x conftest$ac_exeext
7483 }; then
87cb1275
MW
7484 ac_cv_lib_dw_dwarf_getelf=yes
7485else
27aba29a 7486 $as_echo "$as_me: failed program was:" >&5
87cb1275
MW
7487sed 's/^/| /' conftest.$ac_ext >&5
7488
7fbd9d09 7489 ac_cv_lib_dw_dwarf_getelf=no
87cb1275 7490fi
7fbd9d09 7491
27aba29a 7492rm -rf conftest.dSYM
7fbd9d09 7493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
87cb1275
MW
7494 conftest$ac_exeext conftest.$ac_ext
7495LIBS=$ac_check_lib_save_LIBS
7496fi
27aba29a
JS
7497{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwarf_getelf" >&5
7498$as_echo "$ac_cv_lib_dw_dwarf_getelf" >&6; }
7499if test "x$ac_cv_lib_dw_dwarf_getelf" = x""yes; then
87cb1275
MW
7500 cat >>confdefs.h <<_ACEOF
7501#define HAVE_LIBDW 1
7502_ACEOF
7503
7504 LIBS="-ldw $LIBS"
7505
7506else
7507
27aba29a
JS
7508 { { $as_echo "$as_me:$LINENO: error: elfutils, libdw too old, need 0.126+" >&5
7509$as_echo "$as_me: error: elfutils, libdw too old, need 0.126+" >&2;}
87cb1275
MW
7510 { (exit 1); exit 1; }; }
7511fi
7512
cfa2ca3c 7513 stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
e8f3c2c2 7514 LIBS="$save_LIBS"
4d9087fc
RM
7515else
7516 # We built our own and stap_LDFLAGS points at the install.
4645fadb
JS
7517 stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
7518fi
7519
6b1a0274 7520
27aba29a
JS
7521{ $as_echo "$as_me:$LINENO: stap will link $stap_LIBS" >&5
7522$as_echo "$as_me: stap will link $stap_LIBS" >&6;}
c3a3c0c9 7523
69c68955
FCE
7524date=`date +%Y-%m-%d`
7525
7526cat >>confdefs.h <<_ACEOF
7527#define DATE "$date"
7528_ACEOF
7529
82fab474 7530DATE="$date"
69c68955
FCE
7531
7532
10b20266
FCE
7533
7534# This procflags business is for staprun/stapio, which need to
7535# be compiled with the same bitness as the kernel. On e.g. PPC,
7536# userspace might be 32-bit default, but staprun needs to be
7537# 64-bit. See also bug #4037.
7538
5566993b
MH
7539processor=`uname -p`
7540case "$processor" in
c1536577 7541ppc64) PROCFLAGS=-m64 ;;
5566993b
MH
7542x86_64) PROCFLAGS=-m64 ;;
7543*) PROCFLAGS=""
7544esac
7545
7546
3bf6ac45 7547# Use tr1/unordered_map if available
7fbd9d09 7548ac_ext=cpp
3bf6ac45
TM
7549ac_cpp='$CXXCPP $CPPFLAGS'
7550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7553
7554
7fbd9d09 7555ac_ext=cpp
3bf6ac45
TM
7556ac_cpp='$CXXCPP $CPPFLAGS'
7557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27aba29a
JS
7560{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7561$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3bf6ac45
TM
7562if test -z "$CXXCPP"; then
7563 if test "${ac_cv_prog_CXXCPP+set}" = set; then
27aba29a 7564 $as_echo_n "(cached) " >&6
3bf6ac45
TM
7565else
7566 # Double quotes because CXXCPP needs to be expanded
7567 for CXXCPP in "$CXX -E" "/lib/cpp"
7568 do
7569 ac_preproc_ok=false
7570for ac_cxx_preproc_warn_flag in '' yes
7571do
7572 # Use a header file that comes with gcc, so configuring glibc
7573 # with a fresh cross-compiler works.
7574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7575 # <limits.h> exists even on freestanding compilers.
7576 # On the NeXT, cc -E runs the code through the compiler's parser,
7577 # not just through cpp. "Syntax error" is here to catch this case.
7578 cat >conftest.$ac_ext <<_ACEOF
7579/* confdefs.h. */
7580_ACEOF
7581cat confdefs.h >>conftest.$ac_ext
7582cat >>conftest.$ac_ext <<_ACEOF
7583/* end confdefs.h. */
7584#ifdef __STDC__
7585# include <limits.h>
7586#else
7587# include <assert.h>
7588#endif
7589 Syntax error
7590_ACEOF
7fbd9d09
FCE
7591if { (ac_try="$ac_cpp conftest.$ac_ext"
7592case "(($ac_try" in
7593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7594 *) ac_try_echo=$ac_try;;
7595esac
27aba29a
JS
7596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7597$as_echo "$ac_try_echo") >&5
7fbd9d09 7598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3bf6ac45
TM
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
27aba29a 7603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7604 (exit $ac_status); } >/dev/null && {
7605 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7606 test ! -s conftest.err
7607 }; then
3bf6ac45
TM
7608 :
7609else
27aba29a 7610 $as_echo "$as_me: failed program was:" >&5
3bf6ac45
TM
7611sed 's/^/| /' conftest.$ac_ext >&5
7612
7613 # Broken: fails on valid input.
7614continue
7615fi
7fbd9d09 7616
3bf6ac45
TM
7617rm -f conftest.err conftest.$ac_ext
7618
7fbd9d09 7619 # OK, works on sane cases. Now check whether nonexistent headers
3bf6ac45
TM
7620 # can be detected and how.
7621 cat >conftest.$ac_ext <<_ACEOF
7622/* confdefs.h. */
7623_ACEOF
7624cat confdefs.h >>conftest.$ac_ext
7625cat >>conftest.$ac_ext <<_ACEOF
7626/* end confdefs.h. */
7627#include <ac_nonexistent.h>
7628_ACEOF
7fbd9d09
FCE
7629if { (ac_try="$ac_cpp conftest.$ac_ext"
7630case "(($ac_try" in
7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7633esac
27aba29a
JS
7634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7635$as_echo "$ac_try_echo") >&5
7fbd9d09 7636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3bf6ac45
TM
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
27aba29a 7641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7642 (exit $ac_status); } >/dev/null && {
7643 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7644 test ! -s conftest.err
7645 }; then
3bf6ac45
TM
7646 # Broken: success on invalid input.
7647continue
7648else
27aba29a 7649 $as_echo "$as_me: failed program was:" >&5
3bf6ac45
TM
7650sed 's/^/| /' conftest.$ac_ext >&5
7651
7652 # Passes both tests.
7653ac_preproc_ok=:
7654break
7655fi
7fbd9d09 7656
3bf6ac45
TM
7657rm -f conftest.err conftest.$ac_ext
7658
7659done
7660# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7661rm -f conftest.err conftest.$ac_ext
7662if $ac_preproc_ok; then
7663 break
7664fi
7665
7666 done
7667 ac_cv_prog_CXXCPP=$CXXCPP
7668
7669fi
7670 CXXCPP=$ac_cv_prog_CXXCPP
7671else
7672 ac_cv_prog_CXXCPP=$CXXCPP
7673fi
27aba29a
JS
7674{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
7675$as_echo "$CXXCPP" >&6; }
3bf6ac45
TM
7676ac_preproc_ok=false
7677for ac_cxx_preproc_warn_flag in '' yes
7678do
7679 # Use a header file that comes with gcc, so configuring glibc
7680 # with a fresh cross-compiler works.
7681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7682 # <limits.h> exists even on freestanding compilers.
7683 # On the NeXT, cc -E runs the code through the compiler's parser,
7684 # not just through cpp. "Syntax error" is here to catch this case.
7685 cat >conftest.$ac_ext <<_ACEOF
7686/* confdefs.h. */
7687_ACEOF
7688cat confdefs.h >>conftest.$ac_ext
7689cat >>conftest.$ac_ext <<_ACEOF
7690/* end confdefs.h. */
7691#ifdef __STDC__
7692# include <limits.h>
7693#else
7694# include <assert.h>
7695#endif
7696 Syntax error
7697_ACEOF
7fbd9d09
FCE
7698if { (ac_try="$ac_cpp conftest.$ac_ext"
7699case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7702esac
27aba29a
JS
7703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7704$as_echo "$ac_try_echo") >&5
7fbd9d09 7705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3bf6ac45
TM
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
27aba29a 7710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7711 (exit $ac_status); } >/dev/null && {
7712 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7713 test ! -s conftest.err
7714 }; then
3bf6ac45
TM
7715 :
7716else
27aba29a 7717 $as_echo "$as_me: failed program was:" >&5
3bf6ac45
TM
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720 # Broken: fails on valid input.
7721continue
7722fi
7fbd9d09 7723
3bf6ac45
TM
7724rm -f conftest.err conftest.$ac_ext
7725
7fbd9d09 7726 # OK, works on sane cases. Now check whether nonexistent headers
3bf6ac45
TM
7727 # can be detected and how.
7728 cat >conftest.$ac_ext <<_ACEOF
7729/* confdefs.h. */
7730_ACEOF
7731cat confdefs.h >>conftest.$ac_ext
7732cat >>conftest.$ac_ext <<_ACEOF
7733/* end confdefs.h. */
7734#include <ac_nonexistent.h>
7735_ACEOF
7fbd9d09
FCE
7736if { (ac_try="$ac_cpp conftest.$ac_ext"
7737case "(($ac_try" in
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7740esac
27aba29a
JS
7741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7742$as_echo "$ac_try_echo") >&5
7fbd9d09 7743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3bf6ac45
TM
7744 ac_status=$?
7745 grep -v '^ *+' conftest.er1 >conftest.err
7746 rm -f conftest.er1
7747 cat conftest.err >&5
27aba29a 7748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7749 (exit $ac_status); } >/dev/null && {
7750 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7751 test ! -s conftest.err
7752 }; then
3bf6ac45
TM
7753 # Broken: success on invalid input.
7754continue
7755else
27aba29a 7756 $as_echo "$as_me: failed program was:" >&5
3bf6ac45
TM
7757sed 's/^/| /' conftest.$ac_ext >&5
7758
7759 # Passes both tests.
7760ac_preproc_ok=:
7761break
7762fi
7fbd9d09 7763
3bf6ac45
TM
7764rm -f conftest.err conftest.$ac_ext
7765
7766done
7767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7768rm -f conftest.err conftest.$ac_ext
7769if $ac_preproc_ok; then
7770 :
7771else
27aba29a
JS
7772 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7774{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3bf6ac45 7775See \`config.log' for more details." >&5
27aba29a 7776$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3bf6ac45 7777See \`config.log' for more details." >&2;}
27aba29a 7778 { (exit 1); exit 1; }; }; }
3bf6ac45
TM
7779fi
7780
7fbd9d09 7781ac_ext=cpp
3bf6ac45
TM
7782ac_cpp='$CXXCPP $CPPFLAGS'
7783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7786
7787
7788
7789for ac_header in tr1/unordered_map
7790do
27aba29a 7791as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7fbd9d09 7792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a
JS
7793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7794$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 7795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 7796 $as_echo_n "(cached) " >&6
818ba2bc 7797fi
27aba29a
JS
7798ac_res=`eval 'as_val=${'$as_ac_Header'}
7799 $as_echo "$as_val"'`
7800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7801$as_echo "$ac_res" >&6; }
3bf6ac45
TM
7802else
7803 # Is the header compilable?
27aba29a
JS
7804{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7805$as_echo_n "checking $ac_header usability... " >&6; }
3bf6ac45
TM
7806cat >conftest.$ac_ext <<_ACEOF
7807/* confdefs.h. */
7808_ACEOF
7809cat confdefs.h >>conftest.$ac_ext
7810cat >>conftest.$ac_ext <<_ACEOF
7811/* end confdefs.h. */
7812$ac_includes_default
7813#include <$ac_header>
7814_ACEOF
7815rm -f conftest.$ac_objext
7fbd9d09
FCE
7816if { (ac_try="$ac_compile"
7817case "(($ac_try" in
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7820esac
27aba29a
JS
7821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7822$as_echo "$ac_try_echo") >&5
7fbd9d09 7823 (eval "$ac_compile") 2>conftest.er1
3bf6ac45
TM
7824 ac_status=$?
7825 grep -v '^ *+' conftest.er1 >conftest.err
7826 rm -f conftest.er1
7827 cat conftest.err >&5
27aba29a 7828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7829 (exit $ac_status); } && {
7830 test -z "$ac_cxx_werror_flag" ||
7831 test ! -s conftest.err
7832 } && test -s conftest.$ac_objext; then
3bf6ac45
TM
7833 ac_header_compiler=yes
7834else
27aba29a 7835 $as_echo "$as_me: failed program was:" >&5
3bf6ac45
TM
7836sed 's/^/| /' conftest.$ac_ext >&5
7837
7fbd9d09 7838 ac_header_compiler=no
3bf6ac45 7839fi
7fbd9d09
FCE
7840
7841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27aba29a
JS
7842{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7843$as_echo "$ac_header_compiler" >&6; }
3bf6ac45
TM
7844
7845# Is the header present?
27aba29a
JS
7846{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7847$as_echo_n "checking $ac_header presence... " >&6; }
3bf6ac45
TM
7848cat >conftest.$ac_ext <<_ACEOF
7849/* confdefs.h. */
7850_ACEOF
7851cat confdefs.h >>conftest.$ac_ext
7852cat >>conftest.$ac_ext <<_ACEOF
7853/* end confdefs.h. */
7854#include <$ac_header>
7855_ACEOF
7fbd9d09
FCE
7856if { (ac_try="$ac_cpp conftest.$ac_ext"
7857case "(($ac_try" in
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7860esac
27aba29a
JS
7861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862$as_echo "$ac_try_echo") >&5
7fbd9d09 7863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3bf6ac45
TM
7864 ac_status=$?
7865 grep -v '^ *+' conftest.er1 >conftest.err
7866 rm -f conftest.er1
7867 cat conftest.err >&5
27aba29a 7868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
7869 (exit $ac_status); } >/dev/null && {
7870 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7871 test ! -s conftest.err
7872 }; then
3bf6ac45
TM
7873 ac_header_preproc=yes
7874else
27aba29a 7875 $as_echo "$as_me: failed program was:" >&5
3bf6ac45
TM
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 ac_header_preproc=no
7879fi
7fbd9d09 7880
3bf6ac45 7881rm -f conftest.err conftest.$ac_ext
27aba29a
JS
7882{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7883$as_echo "$ac_header_preproc" >&6; }
3bf6ac45
TM
7884
7885# So? What about this header?
7886case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7887 yes:no: )
27aba29a
JS
7888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7889$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7891$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3bf6ac45
TM
7892 ac_header_preproc=yes
7893 ;;
7894 no:yes:* )
27aba29a
JS
7895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7896$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7898$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7900$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7902$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7904$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7906$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7fbd9d09 7907 ( cat <<\_ASBOX
3bf6ac45
TM
7908## ------------------------------------------- ##
7909## Report this to systemtap@sources.redhat.com ##
7910## ------------------------------------------- ##
7911_ASBOX
7fbd9d09 7912 ) | sed "s/^/$as_me: WARNING: /" >&2
3bf6ac45
TM
7913 ;;
7914esac
27aba29a
JS
7915{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7916$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 7917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 7918 $as_echo_n "(cached) " >&6
3bf6ac45
TM
7919else
7920 eval "$as_ac_Header=\$ac_header_preproc"
7921fi
27aba29a
JS
7922ac_res=`eval 'as_val=${'$as_ac_Header'}
7923 $as_echo "$as_val"'`
7924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7925$as_echo "$ac_res" >&6; }
3bf6ac45
TM
7926
7927fi
27aba29a
JS
7928as_val=`eval 'as_val=${'$as_ac_Header'}
7929 $as_echo "$as_val"'`
7930 if test "x$as_val" = x""yes; then
3bf6ac45 7931 cat >>confdefs.h <<_ACEOF
27aba29a 7932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3bf6ac45
TM
7933_ACEOF
7934
7935fi
7936
7937done
7938
7939ac_ext=c
7940ac_cpp='$CPP $CPPFLAGS'
7941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944
7945
e016a49a
FCE
7946
7947if test $build_elfutils = yes; then
7948 case "$with_elfutils" in
7949 /*) elfutils_srcdir="$with_elfutils" ;;
7950 *) elfutils_srcdir="../$with_elfutils" ;;
7951 esac
27aba29a
JS
7952 { $as_echo "$as_me:$LINENO: running ${elfutils_srcdir}/configure" >&5
7953$as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
e016a49a
FCE
7954 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
7955 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
7956 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
7957 # So we must make sure to pass those settings to elfutils configure.
7958 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
7959 here=`pwd`
7960 (mkdir -p build-elfutils && cd build-elfutils &&
7961 ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
7962 --includedir="${here}/include-elfutils" \
7963 --libdir="${here}/lib-elfutils" \
7964 --exec-prefix="$exec_prefix" \
7965 --prefix="$prefix" \
7966 CFLAGS="${CFLAGS/-Wall/}" \
7967 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
e3633556
MW
7968 if test -f ${elfutils_srcdir}/config/version.h.in; then
7969 echo Trying to install elfutils version header...
7970 make install-pkgincludeHEADERS
7971 fi
7972 # so that elfutils/version.h - available from 0.138 - may be found.
93f86457 7973 # Don't use install-data because that will fail (installing in $prefix).
e016a49a 7974 )
93f86457 7975 if test $? != 0; then exit; fi
1c4cf93d
MW
7976 save_CPPFLAGS=${CPPFLAGS}
7977 CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils
7978
7979for ac_header in elfutils/version.h
7980do
27aba29a 7981as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7fbd9d09 7982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a
JS
7983 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7984$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 7985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 7986 $as_echo_n "(cached) " >&6
818ba2bc 7987fi
27aba29a
JS
7988ac_res=`eval 'as_val=${'$as_ac_Header'}
7989 $as_echo "$as_val"'`
7990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7991$as_echo "$ac_res" >&6; }
1c4cf93d
MW
7992else
7993 # Is the header compilable?
27aba29a
JS
7994{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7995$as_echo_n "checking $ac_header usability... " >&6; }
1c4cf93d
MW
7996cat >conftest.$ac_ext <<_ACEOF
7997/* confdefs.h. */
7998_ACEOF
7999cat confdefs.h >>conftest.$ac_ext
8000cat >>conftest.$ac_ext <<_ACEOF
8001/* end confdefs.h. */
8002$ac_includes_default
8003#include <$ac_header>
8004_ACEOF
8005rm -f conftest.$ac_objext
7fbd9d09
FCE
8006if { (ac_try="$ac_compile"
8007case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010esac
27aba29a
JS
8011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8012$as_echo "$ac_try_echo") >&5
7fbd9d09 8013 (eval "$ac_compile") 2>conftest.er1
1c4cf93d
MW
8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
27aba29a 8018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
8019 (exit $ac_status); } && {
8020 test -z "$ac_c_werror_flag" ||
8021 test ! -s conftest.err
8022 } && test -s conftest.$ac_objext; then
1c4cf93d
MW
8023 ac_header_compiler=yes
8024else
27aba29a 8025 $as_echo "$as_me: failed program was:" >&5
1c4cf93d
MW
8026sed 's/^/| /' conftest.$ac_ext >&5
8027
7fbd9d09 8028 ac_header_compiler=no
e016a49a 8029fi
7fbd9d09
FCE
8030
8031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27aba29a
JS
8032{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8033$as_echo "$ac_header_compiler" >&6; }
1c4cf93d
MW
8034
8035# Is the header present?
27aba29a
JS
8036{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8037$as_echo_n "checking $ac_header presence... " >&6; }
1c4cf93d
MW
8038cat >conftest.$ac_ext <<_ACEOF
8039/* confdefs.h. */
8040_ACEOF
8041cat confdefs.h >>conftest.$ac_ext
8042cat >>conftest.$ac_ext <<_ACEOF
8043/* end confdefs.h. */
8044#include <$ac_header>
8045_ACEOF
7fbd9d09
FCE
8046if { (ac_try="$ac_cpp conftest.$ac_ext"
8047case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8050esac
27aba29a
JS
8051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8052$as_echo "$ac_try_echo") >&5
7fbd9d09 8053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1c4cf93d
MW
8054 ac_status=$?
8055 grep -v '^ *+' conftest.er1 >conftest.err
8056 rm -f conftest.er1
8057 cat conftest.err >&5
27aba29a 8058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
8059 (exit $ac_status); } >/dev/null && {
8060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8061 test ! -s conftest.err
8062 }; then
1c4cf93d
MW
8063 ac_header_preproc=yes
8064else
27aba29a 8065 $as_echo "$as_me: failed program was:" >&5
1c4cf93d
MW
8066sed 's/^/| /' conftest.$ac_ext >&5
8067
8068 ac_header_preproc=no
8069fi
7fbd9d09 8070
1c4cf93d 8071rm -f conftest.err conftest.$ac_ext
27aba29a
JS
8072{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8073$as_echo "$ac_header_preproc" >&6; }
1c4cf93d
MW
8074
8075# So? What about this header?
8076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8077 yes:no: )
27aba29a
JS
8078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8079$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8081$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
1c4cf93d
MW
8082 ac_header_preproc=yes
8083 ;;
8084 no:yes:* )
27aba29a
JS
8085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8086$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8088$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8090$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8092$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8094$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8096$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7fbd9d09 8097 ( cat <<\_ASBOX
1c4cf93d
MW
8098## ------------------------------------------- ##
8099## Report this to systemtap@sources.redhat.com ##
8100## ------------------------------------------- ##
8101_ASBOX
7fbd9d09 8102 ) | sed "s/^/$as_me: WARNING: /" >&2
1c4cf93d
MW
8103 ;;
8104esac
27aba29a
JS
8105{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8106$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 8107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 8108 $as_echo_n "(cached) " >&6
1c4cf93d
MW
8109else
8110 eval "$as_ac_Header=\$ac_header_preproc"
8111fi
27aba29a
JS
8112ac_res=`eval 'as_val=${'$as_ac_Header'}
8113 $as_echo "$as_val"'`
8114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8115$as_echo "$ac_res" >&6; }
1c4cf93d
MW
8116
8117fi
27aba29a
JS
8118as_val=`eval 'as_val=${'$as_ac_Header'}
8119 $as_echo "$as_val"'`
8120 if test "x$as_val" = x""yes; then
1c4cf93d 8121 cat >>confdefs.h <<_ACEOF
27aba29a 8122#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1c4cf93d
MW
8123_ACEOF
8124
8125fi
8126
8127done
8128
8129 CPPFLAGS="$save_CPPFLAGS"
8130else
e016a49a
FCE
8131
8132for ac_header in elfutils/version.h
8133do
27aba29a 8134as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7fbd9d09 8135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a
JS
8136 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8137$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 8138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 8139 $as_echo_n "(cached) " >&6
818ba2bc 8140fi
27aba29a
JS
8141ac_res=`eval 'as_val=${'$as_ac_Header'}
8142 $as_echo "$as_val"'`
8143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8144$as_echo "$ac_res" >&6; }
e016a49a
FCE
8145else
8146 # Is the header compilable?
27aba29a
JS
8147{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8148$as_echo_n "checking $ac_header usability... " >&6; }
e016a49a
FCE
8149cat >conftest.$ac_ext <<_ACEOF
8150/* confdefs.h. */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h. */
8155$ac_includes_default
8156#include <$ac_header>
8157_ACEOF
8158rm -f conftest.$ac_objext
7fbd9d09
FCE
8159if { (ac_try="$ac_compile"
8160case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163esac
27aba29a
JS
8164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8165$as_echo "$ac_try_echo") >&5
7fbd9d09 8166 (eval "$ac_compile") 2>conftest.er1
e016a49a
FCE
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
27aba29a 8171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
e016a49a
FCE
8176 ac_header_compiler=yes
8177else
27aba29a 8178 $as_echo "$as_me: failed program was:" >&5
e016a49a
FCE
8179sed 's/^/| /' conftest.$ac_ext >&5
8180
7fbd9d09 8181 ac_header_compiler=no
e016a49a 8182fi
7fbd9d09
FCE
8183
8184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27aba29a
JS
8185{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8186$as_echo "$ac_header_compiler" >&6; }
e016a49a
FCE
8187
8188# Is the header present?
27aba29a
JS
8189{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8190$as_echo_n "checking $ac_header presence... " >&6; }
e016a49a
FCE
8191cat >conftest.$ac_ext <<_ACEOF
8192/* confdefs.h. */
8193_ACEOF
8194cat confdefs.h >>conftest.$ac_ext
8195cat >>conftest.$ac_ext <<_ACEOF
8196/* end confdefs.h. */
8197#include <$ac_header>
8198_ACEOF
7fbd9d09
FCE
8199if { (ac_try="$ac_cpp conftest.$ac_ext"
8200case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8203esac
27aba29a
JS
8204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8205$as_echo "$ac_try_echo") >&5
7fbd9d09 8206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
e016a49a
FCE
8207 ac_status=$?
8208 grep -v '^ *+' conftest.er1 >conftest.err
8209 rm -f conftest.er1
8210 cat conftest.err >&5
27aba29a 8211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fbd9d09
FCE
8212 (exit $ac_status); } >/dev/null && {
8213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8214 test ! -s conftest.err
8215 }; then
e016a49a
FCE
8216 ac_header_preproc=yes
8217else
27aba29a 8218 $as_echo "$as_me: failed program was:" >&5
e016a49a
FCE
8219sed 's/^/| /' conftest.$ac_ext >&5
8220
8221 ac_header_preproc=no
8222fi
7fbd9d09 8223
e016a49a 8224rm -f conftest.err conftest.$ac_ext
27aba29a
JS
8225{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8226$as_echo "$ac_header_preproc" >&6; }
e016a49a
FCE
8227
8228# So? What about this header?
8229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8230 yes:no: )
27aba29a
JS
8231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8232$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8234$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
e016a49a
FCE
8235 ac_header_preproc=yes
8236 ;;
8237 no:yes:* )
27aba29a
JS
8238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8239$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8241$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8243$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8245$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8247$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8249$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7fbd9d09 8250 ( cat <<\_ASBOX
e016a49a
FCE
8251## ------------------------------------------- ##
8252## Report this to systemtap@sources.redhat.com ##
8253## ------------------------------------------- ##
8254_ASBOX
7fbd9d09 8255 ) | sed "s/^/$as_me: WARNING: /" >&2
e016a49a
FCE
8256 ;;
8257esac
27aba29a
JS
8258{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8259$as_echo_n "checking for $ac_header... " >&6; }
7fbd9d09 8260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27aba29a 8261 $as_echo_n "(cached) " >&6
e016a49a
FCE
8262else
8263 eval "$as_ac_Header=\$ac_header_preproc"
8264fi
27aba29a
JS
8265ac_res=`eval 'as_val=${'$as_ac_Header'}
8266 $as_echo "$as_val"'`
8267 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8268$as_echo "$ac_res" >&6; }
e016a49a
FCE
8269
8270fi
27aba29a
JS
8271as_val=`eval 'as_val=${'$as_ac_Header'}
8272 $as_echo "$as_val"'`
8273 if test "x$as_val" = x""yes; then
e016a49a 8274 cat >>confdefs.h <<_ACEOF
27aba29a 8275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
e016a49a
FCE
8276_ACEOF
8277
8278fi
8279
8280done
8281
1c4cf93d 8282fi
e016a49a 8283
50431f30
MW
8284
8285cat >>confdefs.h <<_ACEOF
8286#define STAP_PREFIX "$prefix"
8287_ACEOF
8288
8289
7fbd9d09 8290ac_config_headers="$ac_config_headers config.h:config.in"
daae650d 8291
1087b83f 8292ac_config_files="$ac_config_files Makefile doc/Makefile doc/SystemTap_Tapset_Reference/Makefile grapher/Makefile stap.1 stapprobes.3stap stapfuncs.3stap stapvars.3stap stapex.3stap staprun.8 stap-server.8 man/stapprobes.iosched.3stap man/stapprobes.netdev.3stap man/stapprobes.nfs.3stap man/stapprobes.nfsd.3stap man/stapprobes.pagefault.3stap man/stapprobes.kprocess.3stap man/stapprobes.rpc.3stap man/stapprobes.scsi.3stap man/stapprobes.signal.3stap man/stapprobes.socket.3stap man/stapprobes.tcp.3stap man/stapprobes.udp.3stap initscript/systemtap"
daae650d 8293
27aba29a
JS
8294
8295
1087b83f 8296subdirs="$subdirs testsuite"
5ba96b90 8297
7fbd9d09 8298ac_config_files="$ac_config_files run-stap"
2f62657c 8299
65ffc3f3 8300ac_config_files="$ac_config_files run-staprun"
3c960a7c 8301
2f1a1aea
FCE
8302cat >confcache <<\_ACEOF
8303# This file is a shell script that caches the results of configure
8304# tests run on this system so they can be shared between configure
8305# scripts and configure runs, see configure's option --config-cache.
8306# It is not useful on other systems. If it contains results you don't
8307# want to keep, you may remove or edit it.
8308#
8309# config.status only pays attention to the cache file if you give it
8310# the --recheck option to rerun configure.
8311#
8312# `ac_cv_env_foo' variables (set or unset) will be overridden when
8313# loading this file, other *unset* `ac_cv_foo' will be assigned the
8314# following values.
8315
8316_ACEOF
8317
8318# The following way of writing the cache mishandles newlines in values,
8319# but we know of no workaround that is simple, portable, and efficient.
7fbd9d09 8320# So, we kill variables containing newlines.
2f1a1aea
FCE
8321# Ultrix sh set writes to stderr and can't be redirected directly,
8322# and sets the high bit in the cache file unless we assign to the vars.
7fbd9d09
FCE
8323(
8324 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8325 eval ac_val=\$$ac_var
8326 case $ac_val in #(
8327 *${as_nl}*)
8328 case $ac_var in #(
27aba29a
JS
8329 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8330$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7fbd9d09
FCE
8331 esac
8332 case $ac_var in #(
8333 _ | IFS | as_nl) ;; #(
27aba29a 8334 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7fbd9d09
FCE
8335 *) $as_unset $ac_var ;;
8336 esac ;;
8337 esac
8338 done
8339
2f1a1aea 8340 (set) 2>&1 |
7fbd9d09
FCE
8341 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8342 *${as_nl}ac_space=\ *)
2f1a1aea
FCE
8343 # `set' does not quote correctly, so add quotes (double-quote
8344 # substitution turns \\\\ into \\, and sed turns \\ into \).
8345 sed -n \
8346 "s/'/'\\\\''/g;
8347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7fbd9d09 8348 ;; #(
2f1a1aea
FCE
8349 *)
8350 # `set' quotes correctly as required by POSIX, so do not add quotes.
7fbd9d09 8351 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2f1a1aea 8352 ;;
7fbd9d09
FCE
8353 esac |
8354 sort
8355) |
2f1a1aea 8356 sed '
7fbd9d09 8357 /^ac_cv_env_/b end
2f1a1aea 8358 t clear
7fbd9d09 8359 :clear
2f1a1aea
FCE
8360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8361 t end
7fbd9d09
FCE
8362 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8363 :end' >>confcache
8364if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8365 if test -w "$cache_file"; then
8366 test "x$cache_file" != "x/dev/null" &&
27aba29a
JS
8367 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8368$as_echo "$as_me: updating cache $cache_file" >&6;}
2f1a1aea
FCE
8369 cat confcache >$cache_file
8370 else
27aba29a
JS
8371 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8372$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2f1a1aea
FCE
8373 fi
8374fi
8375rm -f confcache
8376
8377test "x$prefix" = xNONE && prefix=$ac_default_prefix
8378# Let make expand exec_prefix.
8379test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8380
2f1a1aea
FCE
8381DEFS=-DHAVE_CONFIG_H
8382
8383ac_libobjs=
8384ac_ltlibobjs=
8385for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8386 # 1. Remove the extension, and $U if already installed.
7fbd9d09 8387 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27aba29a 8388 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7fbd9d09
FCE
8389 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8390 # will be set to the directory where LIBOBJS objects are built.
8391 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8392 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2f1a1aea
FCE
8393done
8394LIBOBJS=$ac_libobjs
8395
8396LTLIBOBJS=$ac_ltlibobjs
8397
8398
8399if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27aba29a 8400 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
2f1a1aea 8401Usually this means the macro was only invoked conditionally." >&5
27aba29a 8402$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
2f1a1aea
FCE
8403Usually this means the macro was only invoked conditionally." >&2;}
8404 { (exit 1); exit 1; }; }
8405fi
8406if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27aba29a 8407 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
2f1a1aea 8408Usually this means the macro was only invoked conditionally." >&5
27aba29a 8409$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
2f1a1aea
FCE
8410Usually this means the macro was only invoked conditionally." >&2;}
8411 { (exit 1); exit 1; }; }
8412fi
8413if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27aba29a 8414 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2f1a1aea 8415Usually this means the macro was only invoked conditionally." >&5
27aba29a 8416$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2f1a1aea
FCE
8417Usually this means the macro was only invoked conditionally." >&2;}
8418 { (exit 1); exit 1; }; }
8419fi
8420if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27aba29a 8421 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
2f1a1aea 8422Usually this means the macro was only invoked conditionally." >&5
27aba29a 8423$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
2f1a1aea
FCE
8424Usually this means the macro was only invoked conditionally." >&2;}
8425 { (exit 1); exit 1; }; }
8426fi
8427if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27aba29a 8428 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2f1a1aea 8429Usually this means the macro was only invoked conditionally." >&5
27aba29a 8430$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2f1a1aea
FCE
8431Usually this means the macro was only invoked conditionally." >&2;}
8432 { (exit 1); exit 1; }; }
8433fi
e8f3c2c2 8434if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
27aba29a 8435 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_CRASHMOD\" was never defined.
4d9087fc 8436Usually this means the macro was only invoked conditionally." >&5
27aba29a 8437$as_echo "$as_me: error: conditional \"BUILD_CRASHMOD\" was never defined.
4d9087fc
RM
8438Usually this means the macro was only invoked conditionally." >&2;}
8439 { (exit 1); exit 1; }; }
8440fi
465e8fbf 8441if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
27aba29a 8442 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
92aff3c7 8443Usually this means the macro was only invoked conditionally." >&5
27aba29a 8444$as_echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
92aff3c7
WC
8445Usually this means the macro was only invoked conditionally." >&2;}
8446 { (exit 1); exit 1; }; }
8447fi
8448if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
27aba29a 8449 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_REFDOCS\" was never defined.
19a0d4b6 8450Usually this means the macro was only invoked conditionally." >&5
27aba29a 8451$as_echo "$as_me: error: conditional \"BUILD_REFDOCS\" was never defined.
19a0d4b6
MW
8452Usually this means the macro was only invoked conditionally." >&2;}
8453 { (exit 1); exit 1; }; }
8454fi
8455if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
27aba29a 8456 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SERVER\" was never defined.
465e8fbf 8457Usually this means the macro was only invoked conditionally." >&5
27aba29a 8458$as_echo "$as_me: error: conditional \"BUILD_SERVER\" was never defined.
465e8fbf
FCE
8459Usually this means the macro was only invoked conditionally." >&2;}
8460 { (exit 1); exit 1; }; }
8461fi
1087b83f
TM
8462if test -z "${BUILD_GRAPHER_TRUE}" && test -z "${BUILD_GRAPHER_FALSE}"; then
8463 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_GRAPHER\" was never defined.
8464Usually this means the macro was only invoked conditionally." >&5
8465$as_echo "$as_me: error: conditional \"BUILD_GRAPHER\" was never defined.
8466Usually this means the macro was only invoked conditionally." >&2;}
8467 { (exit 1); exit 1; }; }
8468fi
e8f3c2c2 8469if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
27aba29a 8470 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ELFUTILS\" was never defined.
35a04c8e 8471Usually this means the macro was only invoked conditionally." >&5
27aba29a 8472$as_echo "$as_me: error: conditional \"BUILD_ELFUTILS\" was never defined.
35a04c8e
FCE
8473Usually this means the macro was only invoked conditionally." >&2;}
8474 { (exit 1); exit 1; }; }
8475fi
2f1a1aea
FCE
8476
8477: ${CONFIG_STATUS=./config.status}
27aba29a 8478ac_write_fail=0
2f1a1aea
FCE
8479ac_clean_files_save=$ac_clean_files
8480ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27aba29a
JS
8481{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8482$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8483cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea
FCE
8484#! $SHELL
8485# Generated by $as_me.
8486# Run this file to recreate the current configuration.
8487# Compiler output produced by configure, useful for debugging
8488# configure, is in config.log if it exists.
8489
8490debug=false
8491ac_cs_recheck=false
8492ac_cs_silent=false
8493SHELL=\${CONFIG_SHELL-$SHELL}
8494_ACEOF
8495
27aba29a 8496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2f1a1aea
FCE
8497## --------------------- ##
8498## M4sh Initialization. ##
8499## --------------------- ##
8500
7fbd9d09
FCE
8501# Be more Bourne compatible
8502DUALCASE=1; export DUALCASE # for MKS sh
2f1a1aea
FCE
8503if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8504 emulate sh
8505 NULLCMD=:
27aba29a 8506 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2f1a1aea
FCE
8507 # is contrary to our usage. Disable this feature.
8508 alias -g '${1+"$@"}'='"$@"'
7fbd9d09 8509 setopt NO_GLOB_SUBST
2f1a1aea 8510else
7fbd9d09
FCE
8511 case `(set -o) 2>/dev/null` in
8512 *posix*) set -o posix ;;
8513esac
8514
2f1a1aea
FCE
8515fi
8516
8517
7fbd9d09
FCE
8518
8519
8520# PATH needs CR
8521# Avoid depending upon Character Ranges.
8522as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8523as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8524as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8525as_cr_digits='0123456789'
8526as_cr_alnum=$as_cr_Letters$as_cr_digits
8527
27aba29a
JS
8528as_nl='
8529'
8530export as_nl
8531# Printing a long string crashes Solaris 7 /usr/bin/printf.
8532as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8533as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8534as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8535if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8536 as_echo='printf %s\n'
8537 as_echo_n='printf %s'
8538else
8539 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8540 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8541 as_echo_n='/usr/ucb/echo -n'
7fbd9d09 8542 else
27aba29a
JS
8543 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8544 as_echo_n_body='eval
8545 arg=$1;
8546 case $arg in
8547 *"$as_nl"*)
8548 expr "X$arg" : "X\\(.*\\)$as_nl";
8549 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8550 esac;
8551 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8552 '
8553 export as_echo_n_body
8554 as_echo_n='sh -c $as_echo_n_body as_echo'
7fbd9d09 8555 fi
27aba29a
JS
8556 export as_echo_body
8557 as_echo='sh -c $as_echo_body as_echo'
8558fi
8559
8560# The user is always right.
8561if test "${PATH_SEPARATOR+set}" != set; then
8562 PATH_SEPARATOR=:
8563 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8564 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8565 PATH_SEPARATOR=';'
8566 }
7fbd9d09
FCE
8567fi
8568
8569# Support unset when possible.
8570if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8571 as_unset=unset
8572else
8573 as_unset=false
8574fi
8575
8576
8577# IFS
8578# We need space, tab and new line, in precisely that order. Quoting is
8579# there to prevent editors from complaining about space-tab.
8580# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8581# splitting by setting IFS to empty value.)
7fbd9d09
FCE
8582IFS=" "" $as_nl"
8583
8584# Find who we are. Look in the path if we contain no directory separator.
8585case $0 in
8586 *[\\/]* ) as_myself=$0 ;;
8587 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588for as_dir in $PATH
8589do
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
8592 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8593done
8594IFS=$as_save_IFS
8595
8596 ;;
8597esac
8598# We did not find ourselves, most probably we were run as `sh COMMAND'
8599# in which case we are not to be found in the path.
8600if test "x$as_myself" = x; then
8601 as_myself=$0
8602fi
8603if test ! -f "$as_myself"; then
27aba29a 8604 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7fbd9d09
FCE
8605 { (exit 1); exit 1; }
8606fi
8607
8608# Work around bugs in pre-3.0 UWIN ksh.
8609for as_var in ENV MAIL MAILPATH
8610do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8611done
8612PS1='$ '
2f1a1aea
FCE
8613PS2='> '
8614PS4='+ '
8615
8616# NLS nuisances.
27aba29a
JS
8617LC_ALL=C
8618export LC_ALL
8619LANGUAGE=C
8620export LANGUAGE
2f1a1aea
FCE
8621
8622# Required to use basename.
7fbd9d09
FCE
8623if expr a : '\(a\)' >/dev/null 2>&1 &&
8624 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2f1a1aea
FCE
8625 as_expr=expr
8626else
8627 as_expr=false
8628fi
8629
7fbd9d09 8630if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2f1a1aea
FCE
8631 as_basename=basename
8632else
8633 as_basename=false
8634fi
8635
8636
8637# Name of the executable.
7fbd9d09 8638as_me=`$as_basename -- "$0" ||
2f1a1aea
FCE
8639$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8640 X"$0" : 'X\(//\)$' \| \
7fbd9d09 8641 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 8642$as_echo X/"$0" |
7fbd9d09
FCE
8643 sed '/^.*\/\([^/][^/]*\)\/*$/{
8644 s//\1/
8645 q
8646 }
8647 /^X\/\(\/\/\)$/{
8648 s//\1/
8649 q
8650 }
8651 /^X\/\(\/\).*/{
8652 s//\1/
8653 q
8654 }
8655 s/.*/./; q'`
8ae7a94a 8656
7fbd9d09
FCE
8657# CDPATH.
8658$as_unset CDPATH
2f1a1aea 8659
8ae7a94a 8660
818ba2bc 8661
818ba2bc
MW
8662 as_lineno_1=$LINENO
8663 as_lineno_2=$LINENO
818ba2bc 8664 test "x$as_lineno_1" != "x$as_lineno_2" &&
7fbd9d09 8665 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
818ba2bc
MW
8666
8667 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8668 # uniformly replaced by the line number. The first 'sed' inserts a
7fbd9d09
FCE
8669 # line-number line after each line using $LINENO; the second 'sed'
8670 # does the real work. The second script uses 'N' to pair each
8671 # line-number line with the line containing $LINENO, and appends
8672 # trailing '-' during substitution so that $LINENO is not a special
8673 # case at line end.
2f1a1aea 8674 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7fbd9d09
FCE
8675 # scripts with optimization help from Paolo Bonzini. Blame Lee
8676 # E. McMahon (1931-1989) for sed's syntax. :-)
8677 sed -n '
8678 p
8679 /[$]LINENO/=
8680 ' <$as_myself |
2f1a1aea 8681 sed '
7fbd9d09
FCE
8682 s/[$]LINENO.*/&-/
8683 t lineno
8684 b
8685 :lineno
2f1a1aea 8686 N
7fbd9d09
FCE
8687 :loop
8688 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2f1a1aea 8689 t loop
7fbd9d09 8690 s/-\n.*//
2f1a1aea 8691 ' >$as_me.lineno &&
7fbd9d09 8692 chmod +x "$as_me.lineno" ||
27aba29a 8693 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2f1a1aea
FCE
8694 { (exit 1); exit 1; }; }
8695
8696 # Don't try to exec as it changes $[0], causing all sort of problems
8697 # (the dirname of $[0] is not the place where we might find the
7fbd9d09
FCE
8698 # original and so on. Autoconf is especially sensitive to this).
8699 . "./$as_me.lineno"
2f1a1aea
FCE
8700 # Exit status is that of the last command.
8701 exit
8702}
8703
8704
7fbd9d09
FCE
8705if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8706 as_dirname=dirname
8707else
8708 as_dirname=false
8709fi
8710
8711ECHO_C= ECHO_N= ECHO_T=
8712case `echo -n x` in
8713-n*)
8714 case `echo 'x\c'` in
8715 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8716 *) ECHO_C='\c';;
8717 esac;;
8718*)
8719 ECHO_N='-n';;
2f1a1aea 8720esac
7fbd9d09
FCE
8721if expr a : '\(a\)' >/dev/null 2>&1 &&
8722 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2f1a1aea
FCE
8723 as_expr=expr
8724else
8725 as_expr=false
8726fi
8727
8728rm -f conf$$ conf$$.exe conf$$.file
7fbd9d09
FCE
8729if test -d conf$$.dir; then
8730 rm -f conf$$.dir/conf$$.file
8731else
8732 rm -f conf$$.dir
27aba29a
JS
8733 mkdir conf$$.dir 2>/dev/null
8734fi
8735if (echo >conf$$.file) 2>/dev/null; then
8736 if ln -s conf$$.file conf$$ 2>/dev/null; then
8737 as_ln_s='ln -s'
8738 # ... but there are two gotchas:
8739 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8740 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8741 # In both cases, we have to default to `cp -p'.
8742 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8743 as_ln_s='cp -p'
8744 elif ln conf$$.file conf$$ 2>/dev/null; then
8745 as_ln_s=ln
8746 else
2f1a1aea 8747 as_ln_s='cp -p'
27aba29a 8748 fi
2f1a1aea
FCE
8749else
8750 as_ln_s='cp -p'
8751fi
7fbd9d09
FCE
8752rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8753rmdir conf$$.dir 2>/dev/null
2f1a1aea
FCE
8754
8755if mkdir -p . 2>/dev/null; then
8756 as_mkdir_p=:
8757else
8758 test -d ./-p && rmdir ./-p
8759 as_mkdir_p=false
8760fi
8761
7fbd9d09
FCE
8762if test -x / >/dev/null 2>&1; then
8763 as_test_x='test -x'
8764else
8765 if ls -dL / >/dev/null 2>&1; then
8766 as_ls_L_option=L
8767 else
8768 as_ls_L_option=
8769 fi
8770 as_test_x='
8771 eval sh -c '\''
8772 if test -d "$1"; then
27aba29a 8773 test -d "$1/.";
7fbd9d09
FCE
8774 else
8775 case $1 in
27aba29a 8776 -*)set "./$1";;
7fbd9d09
FCE
8777 esac;
8778 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8779 ???[sx]*):;;*)false;;esac;fi
8780 '\'' sh
8781 '
8782fi
8783as_executable_p=$as_test_x
2f1a1aea
FCE
8784
8785# Sed expression to map a string onto a valid CPP name.
8786as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8787
8788# Sed expression to map a string onto a valid variable name.
8789as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8790
8791
2f1a1aea
FCE
8792exec 6>&1
8793
7fbd9d09 8794# Save the log message, to keep $[0] and so on meaningful, and to
2f1a1aea 8795# report actual input values of CONFIG_FILES etc. instead of their
7fbd9d09
FCE
8796# values after options handling.
8797ac_log="
225d8d4b 8798This file was extended by systemtap $as_me 0.9.6, which was
27aba29a 8799generated by GNU Autoconf 2.63. Invocation command line was
2f1a1aea
FCE
8800
8801 CONFIG_FILES = $CONFIG_FILES
8802 CONFIG_HEADERS = $CONFIG_HEADERS
8803 CONFIG_LINKS = $CONFIG_LINKS
8804 CONFIG_COMMANDS = $CONFIG_COMMANDS
8805 $ $0 $@
8806
7fbd9d09
FCE
8807on `(hostname || uname -n) 2>/dev/null | sed 1q`
8808"
8809
2f1a1aea
FCE
8810_ACEOF
8811
27aba29a
JS
8812case $ac_config_files in *"
8813"*) set x $ac_config_files; shift; ac_config_files=$*;;
8814esac
8815
8816case $ac_config_headers in *"
8817"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8818esac
8819
8820
8821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
818ba2bc 8822# Files that config.status was made for.
7fbd9d09
FCE
8823config_files="$ac_config_files"
8824config_headers="$ac_config_headers"
8825config_commands="$ac_config_commands"
daae650d 8826
7fbd9d09 8827_ACEOF
8ae7a94a 8828
27aba29a 8829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2f1a1aea
FCE
8830ac_cs_usage="\
8831\`$as_me' instantiates files from templates according to the
8832current configuration.
8833
27aba29a 8834Usage: $0 [OPTION]... [FILE]...
2f1a1aea
FCE
8835
8836 -h, --help print this help, then exit
7fbd9d09 8837 -V, --version print version number and configuration settings, then exit
27aba29a
JS
8838 -q, --quiet, --silent
8839 do not print progress messages
2f1a1aea
FCE
8840 -d, --debug don't remove temporary files
8841 --recheck update $as_me by reconfiguring in the same conditions
27aba29a
JS
8842 --file=FILE[:TEMPLATE]
8843 instantiate the configuration file FILE
8844 --header=FILE[:TEMPLATE]
8845 instantiate the configuration header FILE
2f1a1aea
FCE
8846
8847Configuration files:
8848$config_files
8849
8850Configuration headers:
8851$config_headers
8852
8853Configuration commands:
8854$config_commands
8855
8856Report bugs to <bug-autoconf@gnu.org>."
818ba2bc 8857
7fbd9d09 8858_ACEOF
27aba29a 8859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea 8860ac_cs_version="\\
225d8d4b 8861systemtap config.status 0.9.6
27aba29a
JS
8862configured by $0, generated by GNU Autoconf 2.63,
8863 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2f1a1aea 8864
27aba29a 8865Copyright (C) 2008 Free Software Foundation, Inc.
2f1a1aea
FCE
8866This config.status script is free software; the Free Software Foundation
8867gives unlimited permission to copy, distribute and modify it."
7fbd9d09
FCE
8868
8869ac_pwd='$ac_pwd'
8870srcdir='$srcdir'
8871INSTALL='$INSTALL'
8872MKDIR_P='$MKDIR_P'
27aba29a
JS
8873AWK='$AWK'
8874test -n "\$AWK" || AWK=awk
2f1a1aea
FCE
8875_ACEOF
8876
27aba29a
JS
8877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8878# The default lists apply if the user does not specify any file.
2f1a1aea
FCE
8879ac_need_defaults=:
8880while test $# != 0
8881do
8882 case $1 in
8883 --*=*)
7fbd9d09
FCE
8884 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8885 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2f1a1aea
FCE
8886 ac_shift=:
8887 ;;
7fbd9d09 8888 *)
2f1a1aea
FCE
8889 ac_option=$1
8890 ac_optarg=$2
8891 ac_shift=shift
8892 ;;
2f1a1aea
FCE
8893 esac
8894
8895 case $ac_option in
8896 # Handling of the options.
2f1a1aea
FCE
8897 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8898 ac_cs_recheck=: ;;
7fbd9d09 8899 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27aba29a 8900 $as_echo "$ac_cs_version"; exit ;;
7fbd9d09 8901 --debug | --debu | --deb | --de | --d | -d )
2f1a1aea
FCE
8902 debug=: ;;
8903 --file | --fil | --fi | --f )
8904 $ac_shift
27aba29a
JS
8905 case $ac_optarg in
8906 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8907 esac
8908 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
2f1a1aea
FCE
8909 ac_need_defaults=false;;
8910 --header | --heade | --head | --hea )
8911 $ac_shift
27aba29a
JS
8912 case $ac_optarg in
8913 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8914 esac
8915 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
2f1a1aea 8916 ac_need_defaults=false;;
7fbd9d09
FCE
8917 --he | --h)
8918 # Conflict between --help and --header
27aba29a 8919 { $as_echo "$as_me: error: ambiguous option: $1
7fbd9d09
FCE
8920Try \`$0 --help' for more information." >&2
8921 { (exit 1); exit 1; }; };;
8922 --help | --hel | -h )
27aba29a 8923 $as_echo "$ac_cs_usage"; exit ;;
2f1a1aea
FCE
8924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8925 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8926 ac_cs_silent=: ;;
8927
8928 # This is an error.
27aba29a 8929 -*) { $as_echo "$as_me: error: unrecognized option: $1
7fbd9d09 8930Try \`$0 --help' for more information." >&2
2f1a1aea
FCE
8931 { (exit 1); exit 1; }; } ;;
8932
7fbd9d09
FCE
8933 *) ac_config_targets="$ac_config_targets $1"
8934 ac_need_defaults=false ;;
2f1a1aea
FCE
8935
8936 esac
8937 shift
8938done
8939
8940ac_configure_extra_args=
8941
8942if $ac_cs_silent; then
8943 exec 6>/dev/null
8944 ac_configure_extra_args="$ac_configure_extra_args --silent"
8945fi
8946
8947_ACEOF
27aba29a 8948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea 8949if \$ac_cs_recheck; then
27aba29a
JS
8950 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8951 shift
8952 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8953 CONFIG_SHELL='$SHELL'
7fbd9d09 8954 export CONFIG_SHELL
27aba29a 8955 exec "\$@"
2f1a1aea
FCE
8956fi
8957
8958_ACEOF
27aba29a 8959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
8960exec 5>>config.log
8961{
8962 echo
8963 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8964## Running $as_me. ##
8965_ASBOX
27aba29a 8966 $as_echo "$ac_log"
7fbd9d09 8967} >&5
2f1a1aea 8968
7fbd9d09 8969_ACEOF
27aba29a 8970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea 8971#
7fbd9d09 8972# INIT-COMMANDS
2f1a1aea 8973#
2f1a1aea
FCE
8974AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8975
8976_ACEOF
8977
27aba29a 8978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
8979
8980# Handling of arguments.
2f1a1aea
FCE
8981for ac_config_target in $ac_config_targets
8982do
7fbd9d09
FCE
8983 case $ac_config_target in
8984 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8985 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8986 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8987 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8988 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
1087b83f 8989 "grapher/Makefile") CONFIG_FILES="$CONFIG_FILES grapher/Makefile" ;;
7fbd9d09 8990 "stap.1") CONFIG_FILES="$CONFIG_FILES stap.1" ;;
e97c0b29
WC
8991 "stapprobes.3stap") CONFIG_FILES="$CONFIG_FILES stapprobes.3stap" ;;
8992 "stapfuncs.3stap") CONFIG_FILES="$CONFIG_FILES stapfuncs.3stap" ;;
8993 "stapvars.3stap") CONFIG_FILES="$CONFIG_FILES stapvars.3stap" ;;
8994 "stapex.3stap") CONFIG_FILES="$CONFIG_FILES stapex.3stap" ;;
7fbd9d09
FCE
8995 "staprun.8") CONFIG_FILES="$CONFIG_FILES staprun.8" ;;
8996 "stap-server.8") CONFIG_FILES="$CONFIG_FILES stap-server.8" ;;
e97c0b29
WC
8997 "man/stapprobes.iosched.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.iosched.3stap" ;;
8998 "man/stapprobes.netdev.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.netdev.3stap" ;;
8999 "man/stapprobes.nfs.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfs.3stap" ;;
9000 "man/stapprobes.nfsd.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfsd.3stap" ;;
9001 "man/stapprobes.pagefault.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.pagefault.3stap" ;;
1f65cc4f 9002 "man/stapprobes.kprocess.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.kprocess.3stap" ;;
e97c0b29
WC
9003 "man/stapprobes.rpc.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.rpc.3stap" ;;
9004 "man/stapprobes.scsi.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.scsi.3stap" ;;
9005 "man/stapprobes.signal.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.signal.3stap" ;;
9006 "man/stapprobes.socket.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.socket.3stap" ;;
9007 "man/stapprobes.tcp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.tcp.3stap" ;;
9008 "man/stapprobes.udp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.udp.3stap" ;;
7fbd9d09
FCE
9009 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
9010 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
65ffc3f3 9011 "run-staprun") CONFIG_FILES="$CONFIG_FILES run-staprun" ;;
7fbd9d09 9012
27aba29a
JS
9013 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9014$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2f1a1aea
FCE
9015 { (exit 1); exit 1; }; };;
9016 esac
9017done
9018
7fbd9d09 9019
2f1a1aea
FCE
9020# If the user did not use the arguments to specify the items to instantiate,
9021# then the envvar interface is used. Set only those that are not.
9022# We use the long form for the default assignment because of an extremely
9023# bizarre bug on SunOS 4.1.3.
9024if $ac_need_defaults; then
9025 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9026 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9027 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9028fi
9029
9030# Have a temporary directory for convenience. Make it in the build tree
7fbd9d09 9031# simply because there is no reason against having it here, and in addition,
2f1a1aea 9032# creating and moving files from /tmp can sometimes cause problems.
7fbd9d09
FCE
9033# Hook for its removal unless debugging.
9034# Note that there is a small window in which the directory will not be cleaned:
9035# after its creation but before its name has been assigned to `$tmp'.
2f1a1aea
FCE
9036$debug ||
9037{
7fbd9d09
FCE
9038 tmp=
9039 trap 'exit_status=$?
9040 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9041' 0
2f1a1aea
FCE
9042 trap '{ (exit 1); exit 1; }' 1 2 13 15
9043}
2f1a1aea
FCE
9044# Create a (secure) tmp directory for tmp files.
9045
9046{
7fbd9d09 9047 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2f1a1aea
FCE
9048 test -n "$tmp" && test -d "$tmp"
9049} ||
9050{
7fbd9d09
FCE
9051 tmp=./conf$$-$RANDOM
9052 (umask 077 && mkdir "$tmp")
2f1a1aea
FCE
9053} ||
9054{
27aba29a 9055 $as_echo "$as_me: cannot create a temporary directory in ." >&2
2f1a1aea
FCE
9056 { (exit 1); exit 1; }
9057}
9058
27aba29a
JS
9059# Set up the scripts for CONFIG_FILES section.
9060# No need to generate them if there are no CONFIG_FILES.
9061# This happens for instance with `./config.status config.h'.
7fbd9d09
FCE
9062if test -n "$CONFIG_FILES"; then
9063
7fbd9d09 9064
27aba29a
JS
9065ac_cr='\r'
9066ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9067if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9068 ac_cs_awk_cr='\\r'
9069else
9070 ac_cs_awk_cr=$ac_cr
7fbd9d09 9071fi
5e0d2ebf 9072
27aba29a 9073echo 'BEGIN {' >"$tmp/subs1.awk" &&
7fbd9d09
FCE
9074_ACEOF
9075
9076
27aba29a
JS
9077{
9078 echo "cat >conf$$subs.awk <<_ACEOF" &&
9079 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9080 echo "_ACEOF"
9081} >conf$$subs.sh ||
9082 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9083$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9084 { (exit 1); exit 1; }; }
9085ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7fbd9d09
FCE
9086ac_delim='%!_!# '
9087for ac_last_try in false false false false false :; do
27aba29a
JS
9088 . ./conf$$subs.sh ||
9089 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9090$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9091 { (exit 1); exit 1; }; }
9092
9093 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9094 if test $ac_delim_n = $ac_delim_num; then
7fbd9d09
FCE
9095 break
9096 elif $ac_last_try; then
27aba29a
JS
9097 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9098$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7fbd9d09
FCE
9099 { (exit 1); exit 1; }; }
9100 else
9101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9102 fi
9103done
27aba29a
JS
9104rm -f conf$$subs.sh
9105
9106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9107cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9108_ACEOF
9109sed -n '
9110h
9111s/^/S["/; s/!.*/"]=/
9112p
9113g
9114s/^[^!]*!//
9115:repl
9116t repl
9117s/'"$ac_delim"'$//
9118t delim
9119:nl
9120h
9121s/\(.\{148\}\).*/\1/
9122t more1
9123s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9124p
9125n
9126b repl
9127:more1
9128s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9129p
9130g
9131s/.\{148\}//
9132t nl
9133:delim
9134h
9135s/\(.\{148\}\).*/\1/
9136t more2
9137s/["\\]/\\&/g; s/^/"/; s/$/"/
9138p
9139b
9140:more2
9141s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9142p
9143g
9144s/.\{148\}//
9145t delim
9146' <conf$$subs.awk | sed '
9147/^[^""]/{
9148 N
9149 s/\n//
9150}
9151' >>$CONFIG_STATUS || ac_write_fail=1
9152rm -f conf$$subs.awk
9153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9154_ACAWK
9155cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9156 for (key in S) S_is_set[key] = 1
9157 FS = "\a"
7fbd9d09 9158
27aba29a
JS
9159}
9160{
9161 line = $ 0
9162 nfields = split(line, field, "@")
9163 substed = 0
9164 len = length(field[1])
9165 for (i = 2; i < nfields; i++) {
9166 key = field[i]
9167 keylen = length(key)
9168 if (S_is_set[key]) {
9169 value = S[key]
9170 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9171 len += length(value) + length(field[++i])
9172 substed = 1
9173 } else
9174 len += 1 + keylen
9175 }
9176
9177 print line
9178}
7fbd9d09 9179
27aba29a 9180_ACAWK
7fbd9d09 9181_ACEOF
27aba29a
JS
9182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9183if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9184 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9185else
9186 cat
9187fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9188 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
9189$as_echo "$as_me: error: could not setup config files machinery" >&2;}
9190 { (exit 1); exit 1; }; }
7fbd9d09
FCE
9191_ACEOF
9192
7fbd9d09
FCE
9193# VPATH may cause trouble with some makes, so we remove $(srcdir),
9194# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9195# trailing colons and then remove the whole line if VPATH becomes empty
9196# (actually we leave an empty line to preserve line numbers).
9197if test "x$srcdir" = x.; then
9198 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9199s/:*\$(srcdir):*/:/
9200s/:*\${srcdir}:*/:/
9201s/:*@srcdir@:*/:/
9202s/^\([^=]*=[ ]*\):*/\1/
9203s/:*$//
9204s/^[^=]*=[ ]*$//
9205}'
9206fi
9207
27aba29a 9208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
9209fi # test -n "$CONFIG_FILES"
9210
27aba29a
JS
9211# Set up the scripts for CONFIG_HEADERS section.
9212# No need to generate them if there are no CONFIG_HEADERS.
9213# This happens for instance with `./config.status Makefile'.
9214if test -n "$CONFIG_HEADERS"; then
9215cat >"$tmp/defines.awk" <<\_ACAWK ||
9216BEGIN {
9217_ACEOF
9218
9219# Transform confdefs.h into an awk script `defines.awk', embedded as
9220# here-document in config.status, that substitutes the proper values into
9221# config.h.in to produce config.h.
9222
9223# Create a delimiter string that does not exist in confdefs.h, to ease
9224# handling of long lines.
9225ac_delim='%!_!# '
9226for ac_last_try in false false :; do
9227 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9228 if test -z "$ac_t"; then
9229 break
9230 elif $ac_last_try; then
9231 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9232$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9233 { (exit 1); exit 1; }; }
9234 else
9235 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9236 fi
9237done
9238
9239# For the awk script, D is an array of macro values keyed by name,
9240# likewise P contains macro parameters if any. Preserve backslash
9241# newline sequences.
9242
9243ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9244sed -n '
9245s/.\{148\}/&'"$ac_delim"'/g
9246t rset
9247:rset
9248s/^[ ]*#[ ]*define[ ][ ]*/ /
9249t def
9250d
9251:def
9252s/\\$//
9253t bsnl
9254s/["\\]/\\&/g
9255s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9256D["\1"]=" \3"/p
9257s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9258d
9259:bsnl
9260s/["\\]/\\&/g
9261s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9262D["\1"]=" \3\\\\\\n"\\/p
9263t cont
9264s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9265t cont
9266d
9267:cont
9268n
9269s/.\{148\}/&'"$ac_delim"'/g
9270t clear
9271:clear
9272s/\\$//
9273t bsnlc
9274s/["\\]/\\&/g; s/^/"/; s/$/"/p
9275d
9276:bsnlc
9277s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9278b cont
9279' <confdefs.h | sed '
9280s/'"$ac_delim"'/"\\\
9281"/g' >>$CONFIG_STATUS || ac_write_fail=1
9282
9283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9284 for (key in D) D_is_set[key] = 1
9285 FS = "\a"
9286}
9287/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9288 line = \$ 0
9289 split(line, arg, " ")
9290 if (arg[1] == "#") {
9291 defundef = arg[2]
9292 mac1 = arg[3]
9293 } else {
9294 defundef = substr(arg[1], 2)
9295 mac1 = arg[2]
9296 }
9297 split(mac1, mac2, "(") #)
9298 macro = mac2[1]
9299 prefix = substr(line, 1, index(line, defundef) - 1)
9300 if (D_is_set[macro]) {
9301 # Preserve the white space surrounding the "#".
9302 print prefix "define", macro P[macro] D[macro]
9303 next
9304 } else {
9305 # Replace #undef with comments. This is necessary, for example,
9306 # in the case of _POSIX_SOURCE, which is predefined and required
9307 # on some systems where configure will not decide to define it.
9308 if (defundef == "undef") {
9309 print "/*", prefix defundef, macro, "*/"
9310 next
9311 }
9312 }
9313}
9314{ print }
9315_ACAWK
9316_ACEOF
9317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9318 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9319$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9320 { (exit 1); exit 1; }; }
9321fi # test -n "$CONFIG_HEADERS"
7fbd9d09 9322
27aba29a
JS
9323
9324eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9325shift
9326for ac_tag
7fbd9d09
FCE
9327do
9328 case $ac_tag in
9329 :[FHLC]) ac_mode=$ac_tag; continue;;
2f1a1aea 9330 esac
7fbd9d09
FCE
9331 case $ac_mode$ac_tag in
9332 :[FHL]*:*);;
27aba29a
JS
9333 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9334$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7fbd9d09
FCE
9335 { (exit 1); exit 1; }; };;
9336 :[FH]-) ac_tag=-:-;;
9337 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9338 esac
9339 ac_save_IFS=$IFS
9340 IFS=:
9341 set x $ac_tag
9342 IFS=$ac_save_IFS
9343 shift
9344 ac_file=$1
9345 shift
2f1a1aea 9346
7fbd9d09
FCE
9347 case $ac_mode in
9348 :L) ac_source=$1;;
9349 :[FH])
9350 ac_file_inputs=
9351 for ac_f
9352 do
9353 case $ac_f in
9354 -) ac_f="$tmp/stdin";;
9355 *) # Look for the file first in the build tree, then in the source tree
9356 # (if the path is not absolute). The absolute path cannot be DOS-style,
9357 # because $ac_f cannot contain `:'.
9358 test -f "$ac_f" ||
9359 case $ac_f in
9360 [\\/$]*) false;;
9361 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9362 esac ||
27aba29a
JS
9363 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9364$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7fbd9d09
FCE
9365 { (exit 1); exit 1; }; };;
9366 esac
27aba29a
JS
9367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9368 ac_file_inputs="$ac_file_inputs '$ac_f'"
7fbd9d09
FCE
9369 done
9370
9371 # Let's still pretend it is `configure' which instantiates (i.e., don't
9372 # use $as_me), people would be surprised to read:
9373 # /* config.h. Generated by config.status. */
27aba29a
JS
9374 configure_input='Generated from '`
9375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9376 `' by configure.'
7fbd9d09
FCE
9377 if test x"$ac_file" != x-; then
9378 configure_input="$ac_file. $configure_input"
27aba29a
JS
9379 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9380$as_echo "$as_me: creating $ac_file" >&6;}
7fbd9d09 9381 fi
27aba29a
JS
9382 # Neutralize special characters interpreted by sed in replacement strings.
9383 case $configure_input in #(
9384 *\&* | *\|* | *\\* )
9385 ac_sed_conf_input=`$as_echo "$configure_input" |
9386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9387 *) ac_sed_conf_input=$configure_input;;
9388 esac
7fbd9d09
FCE
9389
9390 case $ac_tag in
27aba29a
JS
9391 *:-:* | *:-) cat >"$tmp/stdin" \
9392 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9393$as_echo "$as_me: error: could not create $ac_file" >&2;}
9394 { (exit 1); exit 1; }; } ;;
7fbd9d09
FCE
9395 esac
9396 ;;
9397 esac
9398
9399 ac_dir=`$as_dirname -- "$ac_file" ||
2f1a1aea
FCE
9400$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9401 X"$ac_file" : 'X\(//\)[^/]' \| \
9402 X"$ac_file" : 'X\(//\)$' \| \
7fbd9d09 9403 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9404$as_echo X"$ac_file" |
7fbd9d09
FCE
9405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9406 s//\1/
9407 q
9408 }
9409 /^X\(\/\/\)[^/].*/{
9410 s//\1/
9411 q
9412 }
9413 /^X\(\/\/\)$/{
9414 s//\1/
9415 q
9416 }
9417 /^X\(\/\).*/{
9418 s//\1/
9419 q
9420 }
9421 s/.*/./; q'`
9422 { as_dir="$ac_dir"
9423 case $as_dir in #(
9424 -*) as_dir=./$as_dir;;
9425 esac
9426 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2f1a1aea 9427 as_dirs=
7fbd9d09
FCE
9428 while :; do
9429 case $as_dir in #(
27aba29a 9430 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7fbd9d09
FCE
9431 *) as_qdir=$as_dir;;
9432 esac
9433 as_dirs="'$as_qdir' $as_dirs"
9434 as_dir=`$as_dirname -- "$as_dir" ||
2f1a1aea
FCE
9435$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9436 X"$as_dir" : 'X\(//\)[^/]' \| \
9437 X"$as_dir" : 'X\(//\)$' \| \
7fbd9d09 9438 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9439$as_echo X"$as_dir" |
7fbd9d09
FCE
9440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9441 s//\1/
9442 q
9443 }
9444 /^X\(\/\/\)[^/].*/{
9445 s//\1/
9446 q
9447 }
9448 /^X\(\/\/\)$/{
9449 s//\1/
9450 q
9451 }
9452 /^X\(\/\).*/{
9453 s//\1/
9454 q
9455 }
9456 s/.*/./; q'`
9457 test -d "$as_dir" && break
2f1a1aea 9458 done
7fbd9d09 9459 test -z "$as_dirs" || eval "mkdir $as_dirs"
27aba29a
JS
9460 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9461$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2f1a1aea 9462 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
9463 ac_builddir=.
9464
7fbd9d09
FCE
9465case "$ac_dir" in
9466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9467*)
27aba29a 9468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 9469 # A ".." for each directory in $ac_dir_suffix.
27aba29a 9470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
9471 case $ac_top_builddir_sub in
9472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9474 esac ;;
9475esac
9476ac_abs_top_builddir=$ac_pwd
9477ac_abs_builddir=$ac_pwd$ac_dir_suffix
9478# for backward compatibility:
9479ac_top_builddir=$ac_top_build_prefix
2f1a1aea
FCE
9480
9481case $srcdir in
7fbd9d09 9482 .) # We are building in place.
2f1a1aea 9483 ac_srcdir=.
7fbd9d09
FCE
9484 ac_top_srcdir=$ac_top_builddir_sub
9485 ac_abs_top_srcdir=$ac_pwd ;;
9486 [\\/]* | ?:[\\/]* ) # Absolute name.
2f1a1aea 9487 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
9488 ac_top_srcdir=$srcdir
9489 ac_abs_top_srcdir=$srcdir ;;
9490 *) # Relative name.
9491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9492 ac_top_srcdir=$ac_top_build_prefix$srcdir
9493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2f1a1aea 9494esac
7fbd9d09 9495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2f1a1aea 9496
2f1a1aea 9497
7fbd9d09
FCE
9498 case $ac_mode in
9499 :F)
9500 #
9501 # CONFIG_FILE
9502 #
2f1a1aea
FCE
9503
9504 case $INSTALL in
9505 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7fbd9d09
FCE
9506 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9507 esac
9508 ac_MKDIR_P=$MKDIR_P
9509 case $MKDIR_P in
9510 [\\/$]* | ?:[\\/]* ) ;;
9511 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5e0d2ebf 9512 esac
7fbd9d09 9513_ACEOF
5e0d2ebf 9514
27aba29a 9515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
9516# If the template does not know about datarootdir, expand it.
9517# FIXME: This hack should be removed a few years after 2.60.
9518ac_datarootdir_hack=; ac_datarootdir_seen=
9519
27aba29a
JS
9520ac_sed_dataroot='
9521/datarootdir/ {
7fbd9d09
FCE
9522 p
9523 q
9524}
9525/@datadir@/p
9526/@docdir@/p
9527/@infodir@/p
9528/@localedir@/p
9529/@mandir@/p
27aba29a
JS
9530'
9531case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7fbd9d09
FCE
9532*datarootdir*) ac_datarootdir_seen=yes;;
9533*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27aba29a
JS
9534 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9535$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7fbd9d09 9536_ACEOF
27aba29a 9537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7fbd9d09
FCE
9538 ac_datarootdir_hack='
9539 s&@datadir@&$datadir&g
9540 s&@docdir@&$docdir&g
9541 s&@infodir@&$infodir&g
9542 s&@localedir@&$localedir&g
9543 s&@mandir@&$mandir&g
9544 s&\\\${datarootdir}&$datarootdir&g' ;;
9545esac
70d28673 9546_ACEOF
7fbd9d09
FCE
9547
9548# Neutralize VPATH when `$srcdir' = `.'.
9549# Shell code in configure.ac might set extrasub.
9550# FIXME: do we really want to maintain this feature?
27aba29a
JS
9551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9552ac_sed_extra="$ac_vpsub
2f1a1aea
FCE
9553$extrasub
9554_ACEOF
27aba29a 9555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2f1a1aea
FCE
9556:t
9557/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27aba29a 9558s|@configure_input@|$ac_sed_conf_input|;t t
7fbd9d09 9559s&@top_builddir@&$ac_top_builddir_sub&;t t
27aba29a 9560s&@top_build_prefix@&$ac_top_build_prefix&;t t
7fbd9d09
FCE
9561s&@srcdir@&$ac_srcdir&;t t
9562s&@abs_srcdir@&$ac_abs_srcdir&;t t
9563s&@top_srcdir@&$ac_top_srcdir&;t t
9564s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9565s&@builddir@&$ac_builddir&;t t
9566s&@abs_builddir@&$ac_abs_builddir&;t t
9567s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9568s&@INSTALL@&$ac_INSTALL&;t t
9569s&@MKDIR_P@&$ac_MKDIR_P&;t t
9570$ac_datarootdir_hack
27aba29a
JS
9571"
9572eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9573 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9574$as_echo "$as_me: error: could not create $ac_file" >&2;}
9575 { (exit 1); exit 1; }; }
7fbd9d09
FCE
9576
9577test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9578 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9579 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27aba29a 9580 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7fbd9d09 9581which seems to be undefined. Please make sure it is defined." >&5
27aba29a 9582$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7fbd9d09
FCE
9583which seems to be undefined. Please make sure it is defined." >&2;}
9584
9585 rm -f "$tmp/stdin"
818ba2bc 9586 case $ac_file in
27aba29a
JS
9587 -) cat "$tmp/out" && rm -f "$tmp/out";;
9588 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9589 esac \
9590 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9591$as_echo "$as_me: error: could not create $ac_file" >&2;}
9592 { (exit 1); exit 1; }; }
7fbd9d09
FCE
9593 ;;
9594 :H)
9595 #
9596 # CONFIG_HEADER
9597 #
818ba2bc 9598 if test x"$ac_file" != x-; then
27aba29a
JS
9599 {
9600 $as_echo "/* $configure_input */" \
9601 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9602 } >"$tmp/config.h" \
9603 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9604$as_echo "$as_me: error: could not create $ac_file" >&2;}
9605 { (exit 1); exit 1; }; }
9606 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9607 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9608$as_echo "$as_me: $ac_file is unchanged" >&6;}
2f1a1aea 9609 else
27aba29a
JS
9610 rm -f "$ac_file"
9611 mv "$tmp/config.h" "$ac_file" \
9612 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9613$as_echo "$as_me: error: could not create $ac_file" >&2;}
9614 { (exit 1); exit 1; }; }
2f1a1aea
FCE
9615 fi
9616 else
27aba29a
JS
9617 $as_echo "/* $configure_input */" \
9618 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9619 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
9620$as_echo "$as_me: error: could not create -" >&2;}
9621 { (exit 1); exit 1; }; }
2f1a1aea 9622 fi
27aba29a
JS
9623# Compute "$ac_file"'s index in $config_headers.
9624_am_arg="$ac_file"
2f1a1aea
FCE
9625_am_stamp_count=1
9626for _am_header in $config_headers :; do
9627 case $_am_header in
7fbd9d09 9628 $_am_arg | $_am_arg:* )
2f1a1aea
FCE
9629 break ;;
9630 * )
9631 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9632 esac
9633done
7fbd9d09
FCE
9634echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9635$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9636 X"$_am_arg" : 'X\(//\)[^/]' \| \
9637 X"$_am_arg" : 'X\(//\)$' \| \
9638 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9639$as_echo X"$_am_arg" |
7fbd9d09
FCE
9640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9641 s//\1/
9642 q
9643 }
9644 /^X\(\/\/\)[^/].*/{
9645 s//\1/
9646 q
9647 }
9648 /^X\(\/\/\)$/{
9649 s//\1/
9650 q
9651 }
9652 /^X\(\/\).*/{
9653 s//\1/
9654 q
9655 }
9656 s/.*/./; q'`/stamp-h$_am_stamp_count
9657 ;;
818ba2bc 9658
27aba29a
JS
9659 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
9660$as_echo "$as_me: executing $ac_file commands" >&6;}
7fbd9d09
FCE
9661 ;;
9662 esac
818ba2bc
MW
9663
9664
7fbd9d09
FCE
9665 case $ac_file$ac_mode in
9666 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
2f1a1aea
FCE
9667 # Strip MF so we end up with the name of the file.
9668 mf=`echo "$mf" | sed -e 's/:.*$//'`
9669 # Check whether this is an Automake generated Makefile or not.
9670 # We used to match only the files named `Makefile.in', but
9671 # some people rename them; so instead we look at the file content.
9672 # Grep'ing the first line is not enough: some people post-process
9673 # each Makefile.in and add a new line on top of each file to say so.
7fbd9d09
FCE
9674 # Grep'ing the whole file is not good either: AIX grep has a line
9675 # limit of 2048, but all sed's we know have understand at least 4000.
9676 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9677 dirpart=`$as_dirname -- "$mf" ||
2f1a1aea
FCE
9678$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9679 X"$mf" : 'X\(//\)[^/]' \| \
9680 X"$mf" : 'X\(//\)$' \| \
7fbd9d09 9681 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9682$as_echo X"$mf" |
7fbd9d09
FCE
9683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9684 s//\1/
9685 q
9686 }
9687 /^X\(\/\/\)[^/].*/{
9688 s//\1/
9689 q
9690 }
9691 /^X\(\/\/\)$/{
9692 s//\1/
9693 q
9694 }
9695 /^X\(\/\).*/{
9696 s//\1/
9697 q
9698 }
9699 s/.*/./; q'`
2f1a1aea
FCE
9700 else
9701 continue
9702 fi
9703 # Extract the definition of DEPDIR, am__include, and am__quote
9704 # from the Makefile without running `make'.
9705 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9706 test -z "$DEPDIR" && continue
9707 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9708 test -z "am__include" && continue
9709 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9710 # When using ansi2knr, U may be empty or an underscore; expand it
9711 U=`sed -n 's/^U = //p' < "$mf"`
9712 # Find all dependency output files, they are included files with
9713 # $(DEPDIR) in their names. We invoke sed twice because it is the
9714 # simplest approach to changing $(DEPDIR) to its actual value in the
9715 # expansion.
9716 for file in `sed -n "
9717 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9718 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9719 # Make sure the directory exists.
9720 test -f "$dirpart/$file" && continue
7fbd9d09 9721 fdir=`$as_dirname -- "$file" ||
2f1a1aea
FCE
9722$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9723 X"$file" : 'X\(//\)[^/]' \| \
9724 X"$file" : 'X\(//\)$' \| \
7fbd9d09 9725 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9726$as_echo X"$file" |
7fbd9d09
FCE
9727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9728 s//\1/
9729 q
9730 }
9731 /^X\(\/\/\)[^/].*/{
9732 s//\1/
9733 q
9734 }
9735 /^X\(\/\/\)$/{
9736 s//\1/
9737 q
9738 }
9739 /^X\(\/\).*/{
9740 s//\1/
9741 q
9742 }
9743 s/.*/./; q'`
9744 { as_dir=$dirpart/$fdir
9745 case $as_dir in #(
9746 -*) as_dir=./$as_dir;;
9747 esac
9748 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2f1a1aea 9749 as_dirs=
7fbd9d09
FCE
9750 while :; do
9751 case $as_dir in #(
27aba29a 9752 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7fbd9d09
FCE
9753 *) as_qdir=$as_dir;;
9754 esac
9755 as_dirs="'$as_qdir' $as_dirs"
9756 as_dir=`$as_dirname -- "$as_dir" ||
2f1a1aea
FCE
9757$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9758 X"$as_dir" : 'X\(//\)[^/]' \| \
9759 X"$as_dir" : 'X\(//\)$' \| \
7fbd9d09 9760 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9761$as_echo X"$as_dir" |
7fbd9d09
FCE
9762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9763 s//\1/
9764 q
9765 }
9766 /^X\(\/\/\)[^/].*/{
9767 s//\1/
9768 q
9769 }
9770 /^X\(\/\/\)$/{
9771 s//\1/
9772 q
9773 }
9774 /^X\(\/\).*/{
9775 s//\1/
9776 q
9777 }
9778 s/.*/./; q'`
9779 test -d "$as_dir" && break
2f1a1aea 9780 done
7fbd9d09 9781 test -z "$as_dirs" || eval "mkdir $as_dirs"
27aba29a
JS
9782 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9783$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2f1a1aea 9784 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
9785 # echo "creating $dirpart/$file"
9786 echo '# dummy' > "$dirpart/$file"
9787 done
9788done
9789 ;;
7fbd9d09 9790 "run-stap":F) chmod +x run-stap ;;
65ffc3f3 9791 "run-staprun":F) chmod +x run-staprun ;;
7fbd9d09 9792
2f1a1aea 9793 esac
7fbd9d09 9794done # for ac_tag
2f1a1aea 9795
2f1a1aea
FCE
9796
9797{ (exit 0); exit 0; }
9798_ACEOF
9799chmod +x $CONFIG_STATUS
9800ac_clean_files=$ac_clean_files_save
9801
27aba29a
JS
9802test $ac_write_fail = 0 ||
9803 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
9804$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
9805 { (exit 1); exit 1; }; }
9806
2f1a1aea
FCE
9807
9808# configure is writing to config.log, and then calls config.status.
9809# config.status does its own redirection, appending to config.log.
9810# Unfortunately, on DOS this fails, as config.log is still kept open
9811# by configure, so config.status won't be able to write to it; its
9812# output is simply discarded. So we exec the FD to /dev/null,
9813# effectively closing config.log, so it can be properly (re)opened and
9814# appended to by config.status. When coming back to configure, we
9815# need to make the FD available again.
9816if test "$no_create" != yes; then
9817 ac_cs_success=:
9818 ac_config_status_args=
9819 test "$silent" = yes &&
9820 ac_config_status_args="$ac_config_status_args --quiet"
9821 exec 5>/dev/null
9822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9823 exec 5>>config.log
9824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9825 # would make configure fail if this is the last instruction.
9826 $ac_cs_success || { (exit 1); exit 1; }
9827fi
9828
5ba96b90
FCE
9829#
9830# CONFIG_SUBDIRS section.
9831#
9832if test "$no_recursion" != yes; then
9833
27aba29a
JS
9834 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9835 # so they do not pile up.
5ba96b90
FCE
9836 ac_sub_configure_args=
9837 ac_prev=
7fbd9d09
FCE
9838 eval "set x $ac_configure_args"
9839 shift
9840 for ac_arg
9841 do
5ba96b90
FCE
9842 if test -n "$ac_prev"; then
9843 ac_prev=
9844 continue
9845 fi
9846 case $ac_arg in
9847 -cache-file | --cache-file | --cache-fil | --cache-fi \
9848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9849 ac_prev=cache_file ;;
9850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9852 | --c=*)
9853 ;;
9854 --config-cache | -C)
9855 ;;
9856 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9857 ac_prev=srcdir ;;
9858 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9859 ;;
9860 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9861 ac_prev=prefix ;;
9862 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9863 ;;
27aba29a
JS
9864 --disable-option-checking)
9865 ;;
7fbd9d09
FCE
9866 *)
9867 case $ac_arg in
27aba29a 9868 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fbd9d09
FCE
9869 esac
9870 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
5ba96b90
FCE
9871 esac
9872 done
9873
9874 # Always prepend --prefix to ensure using the same prefix
9875 # in subdir configurations.
7fbd9d09
FCE
9876 ac_arg="--prefix=$prefix"
9877 case $ac_arg in
27aba29a 9878 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fbd9d09
FCE
9879 esac
9880 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9881
9882 # Pass --silent
9883 if test "$silent" = yes; then
9884 ac_sub_configure_args="--silent $ac_sub_configure_args"
9885 fi
daae650d 9886
27aba29a
JS
9887 # Always prepend --disable-option-checking to silence warnings, since
9888 # different subdirs can have different --enable and --with options.
9889 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9890
5ba96b90
FCE
9891 ac_popdir=`pwd`
9892 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9893
9894 # Do not complain, so a configure script can configure whichever
9895 # parts of a large source tree are present.
7fbd9d09
FCE
9896 test -d "$srcdir/$ac_dir" || continue
9897
9898 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27aba29a
JS
9899 $as_echo "$as_me:$LINENO: $ac_msg" >&5
9900 $as_echo "$ac_msg" >&6
7fbd9d09
FCE
9901 { as_dir="$ac_dir"
9902 case $as_dir in #(
9903 -*) as_dir=./$as_dir;;
9904 esac
9905 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5ba96b90 9906 as_dirs=
7fbd9d09
FCE
9907 while :; do
9908 case $as_dir in #(
27aba29a 9909 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7fbd9d09
FCE
9910 *) as_qdir=$as_dir;;
9911 esac
9912 as_dirs="'$as_qdir' $as_dirs"
9913 as_dir=`$as_dirname -- "$as_dir" ||
5ba96b90
FCE
9914$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9915 X"$as_dir" : 'X\(//\)[^/]' \| \
9916 X"$as_dir" : 'X\(//\)$' \| \
7fbd9d09 9917 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27aba29a 9918$as_echo X"$as_dir" |
7fbd9d09
FCE
9919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9920 s//\1/
9921 q
9922 }
9923 /^X\(\/\/\)[^/].*/{
9924 s//\1/
9925 q
9926 }
9927 /^X\(\/\/\)$/{
9928 s//\1/
9929 q
9930 }
9931 /^X\(\/\).*/{
9932 s//\1/
9933 q
9934 }
9935 s/.*/./; q'`
9936 test -d "$as_dir" && break
5ba96b90 9937 done
7fbd9d09 9938 test -z "$as_dirs" || eval "mkdir $as_dirs"
27aba29a
JS
9939 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9940$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
5ba96b90 9941 { (exit 1); exit 1; }; }; }
5ba96b90
FCE
9942 ac_builddir=.
9943
7fbd9d09
FCE
9944case "$ac_dir" in
9945.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9946*)
27aba29a 9947 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 9948 # A ".." for each directory in $ac_dir_suffix.
27aba29a 9949 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
9950 case $ac_top_builddir_sub in
9951 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9952 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9953 esac ;;
9954esac
9955ac_abs_top_builddir=$ac_pwd
9956ac_abs_builddir=$ac_pwd$ac_dir_suffix
9957# for backward compatibility:
9958ac_top_builddir=$ac_top_build_prefix
5ba96b90
FCE
9959
9960case $srcdir in
7fbd9d09 9961 .) # We are building in place.
5ba96b90 9962 ac_srcdir=.
7fbd9d09
FCE
9963 ac_top_srcdir=$ac_top_builddir_sub
9964 ac_abs_top_srcdir=$ac_pwd ;;
9965 [\\/]* | ?:[\\/]* ) # Absolute name.
5ba96b90 9966 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
9967 ac_top_srcdir=$srcdir
9968 ac_abs_top_srcdir=$srcdir ;;
9969 *) # Relative name.
9970 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9971 ac_top_srcdir=$ac_top_build_prefix$srcdir
9972 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5ba96b90 9973esac
7fbd9d09 9974ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5ba96b90
FCE
9975
9976
7fbd9d09 9977 cd "$ac_dir"
5ba96b90
FCE
9978
9979 # Check for guested configure; otherwise get Cygnus style configure.
7fbd9d09
FCE
9980 if test -f "$ac_srcdir/configure.gnu"; then
9981 ac_sub_configure=$ac_srcdir/configure.gnu
9982 elif test -f "$ac_srcdir/configure"; then
9983 ac_sub_configure=$ac_srcdir/configure
9984 elif test -f "$ac_srcdir/configure.in"; then
9985 # This should be Cygnus configure.
9986 ac_sub_configure=$ac_aux_dir/configure
5ba96b90 9987 else
27aba29a
JS
9988 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9989$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
5ba96b90
FCE
9990 ac_sub_configure=
9991 fi
9992
9993 # The recursion is here.
9994 if test -n "$ac_sub_configure"; then
9995 # Make the cache file name correct relative to the subdirectory.
9996 case $cache_file in
9997 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7fbd9d09
FCE
9998 *) # Relative name.
9999 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5ba96b90
FCE
10000 esac
10001
27aba29a
JS
10002 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10003$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5ba96b90 10004 # The eval makes quoting arguments work.
7fbd9d09
FCE
10005 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10006 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27aba29a
JS
10007 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10008$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
5ba96b90
FCE
10009 { (exit 1); exit 1; }; }
10010 fi
10011
7fbd9d09 10012 cd "$ac_popdir"
5ba96b90
FCE
10013 done
10014fi
27aba29a
JS
10015if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10016 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10017$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10018fi
5ba96b90 10019
4d9087fc 10020
af29024d 10021if test "${prefix}" = "/usr/local"; then
27aba29a
JS
10022 { $as_echo "$as_me:$LINENO: " >&5
10023$as_echo "$as_me: " >&6;}
10024 { $as_echo "$as_me:$LINENO: For a private or temporary build of systemtap, we recommend" >&5
10025$as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
10026 { $as_echo "$as_me:$LINENO: configuring with a prefix. For example, try" >&5
10027$as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
10028 { $as_echo "$as_me:$LINENO: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
10029$as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
10030 { $as_echo "$as_me:$LINENO: Running systemtap uninstalled, entirely out of the build tree," >&5
10031$as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
10032 { $as_echo "$as_me:$LINENO: is not supported." >&5
10033$as_echo "$as_me: is not supported." >&6;}
af29024d 10034fi
This page took 1.447659 seconds and 5 git commands to generate.