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