]> sourceware.org Git - systemtap.git/blame - configure
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
[systemtap.git] / configure
CommitLineData
2f1a1aea
FCE
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
562d60b0 3# Generated by GNU Autoconf 2.61 for systemtap 1.0.
2f1a1aea
FCE
4#
5# Report bugs to <systemtap@sources.redhat.com>.
6#
7fbd9d09 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
562d60b0 8# 2002, 2003, 2004, 2005, 2006 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.
412e1bf7
FCE
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
2f1a1aea 14
7fbd9d09
FCE
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
412e1bf7 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2f1a1aea
FCE
18 emulate sh
19 NULLCMD=:
562d60b0 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2f1a1aea
FCE
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
7fbd9d09
FCE
23 setopt NO_GLOB_SUBST
24else
412e1bf7
FCE
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
7fbd9d09 27esac
412e1bf7 28
7fbd9d09
FCE
29fi
30
31
412e1bf7
FCE
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
8d9ee48a
JS
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
562d60b0
DB
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
2f1a1aea 53fi
2f1a1aea 54
412e1bf7
FCE
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
2f1a1aea 62
7fbd9d09
FCE
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
562d60b0
DB
68as_nl='
69'
7fbd9d09
FCE
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
412e1bf7 73case $0 in
7fbd9d09
FCE
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
412e1bf7
FCE
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
7fbd9d09
FCE
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
562d60b0 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
412e1bf7 93 { (exit 1); exit 1; }
7fbd9d09
FCE
94fi
95
412e1bf7
FCE
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7fbd9d09 99done
2f1a1aea
FCE
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
562d60b0
DB
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115done
2f1a1aea 116
412e1bf7
FCE
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
562d60b0 137echo X/"$0" |
412e1bf7
FCE
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
7fbd9d09 152# CDPATH.
412e1bf7
FCE
153$as_unset CDPATH
154
5e0d2ebf 155
7fbd9d09 156if test "x$CONFIG_SHELL" = x; then
412e1bf7
FCE
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
7fbd9d09 159else
412e1bf7 160 as_have_required=no
5e0d2ebf 161fi
412e1bf7 162
562d60b0 163 if test $as_have_required = yes && (eval ":
412e1bf7
FCE
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
5e0d2ebf 179
7fbd9d09 180exitcode=0
412e1bf7
FCE
181if as_func_success; then
182 :
7fbd9d09 183else
412e1bf7
FCE
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
7fbd9d09
FCE
191fi
192
412e1bf7
FCE
193if as_func_ret_success; then
194 :
7fbd9d09 195else
412e1bf7
FCE
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2f1a1aea
FCE
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
412e1bf7 228 case $as_dir in
2f1a1aea 229 /*)
7fbd9d09 230 for as_base in sh bash ksh sh5; do
412e1bf7 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
7fbd9d09
FCE
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
412e1bf7
FCE
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
562d60b0 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
412e1bf7
FCE
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
7fbd9d09 253
7fbd9d09 254fi
412e1bf7
FCE
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
562d60b0 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
412e1bf7
FCE
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
7fbd9d09
FCE
275fi
276
412e1bf7
FCE
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
4a3c19da 293}
7fbd9d09 294
412e1bf7
FCE
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
7fbd9d09 302
412e1bf7
FCE
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
7fbd9d09 307
412e1bf7
FCE
308if as_func_ret_success; then
309 :
7fbd9d09 310else
412e1bf7
FCE
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
4a3c19da 322else
412e1bf7
FCE
323 exitcode=1
324 echo positional parameters were not saved.
325fi
7fbd9d09 326
412e1bf7 327test $exitcode = 0) || { (exit 1); exit 1; }
7fbd9d09 328
412e1bf7
FCE
329(
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
4a3c19da 334
412e1bf7
FCE
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
562d60b0
DB
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
412e1bf7
FCE
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
7fbd9d09 387else
412e1bf7
FCE
388 exitcode=1
389 echo as_func_success failed.
7fbd9d09
FCE
390fi
391
412e1bf7
FCE
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
4a3c19da 399else
412e1bf7
FCE
400 exitcode=1
401 echo as_func_ret_success failed.
7fbd9d09
FCE
402fi
403
412e1bf7
FCE
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
7fbd9d09 411else
412e1bf7
FCE
412 exitcode=1
413 echo positional parameters were not saved.
7fbd9d09
FCE
414fi
415
412e1bf7
FCE
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
562d60b0
DB
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
412e1bf7 421}
7fbd9d09
FCE
422
423
2f1a1aea 424
412e1bf7
FCE
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
7fbd9d09
FCE
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
2f1a1aea 444 sed '
7fbd9d09
FCE
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
2f1a1aea 449 N
7fbd9d09
FCE
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2f1a1aea 452 t loop
7fbd9d09 453 s/-\n.*//
2f1a1aea 454 ' >$as_me.lineno &&
7fbd9d09 455 chmod +x "$as_me.lineno" ||
562d60b0 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
412e1bf7 457 { (exit 1); exit 1; }; }
2f1a1aea
FCE
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
7fbd9d09
FCE
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
2f1a1aea
FCE
463 # Exit status is that of the last command.
464 exit
4a3c19da 465}
7fbd9d09 466
412e1bf7
FCE
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
7fbd9d09 474ECHO_C= ECHO_N= ECHO_T=
412e1bf7 475case `echo -n x` in
7fbd9d09 476-n*)
412e1bf7 477 case `echo 'x\c'` in
7fbd9d09 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
412e1bf7 479 *) ECHO_C='\c';;
7fbd9d09
FCE
480 esac;;
481*)
482 ECHO_N='-n';;
2f1a1aea 483esac
562d60b0 484
412e1bf7
FCE
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
2f1a1aea
FCE
491
492rm -f conf$$ conf$$.exe conf$$.file
7fbd9d09
FCE
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
562d60b0
DB
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2f1a1aea 507 as_ln_s='cp -p'
562d60b0
DB
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
2f1a1aea
FCE
510else
511 as_ln_s='cp -p'
512fi
7fbd9d09
FCE
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
2f1a1aea
FCE
515
516if mkdir -p . 2>/dev/null; then
412e1bf7 517 as_mkdir_p=:
2f1a1aea
FCE
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
7fbd9d09
FCE
523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
562d60b0 534 test -d "$1/.";
7fbd9d09 535 else
412e1bf7 536 case $1 in
562d60b0 537 -*)set "./$1";;
7fbd9d09 538 esac;
412e1bf7 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7fbd9d09
FCE
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
2f1a1aea
FCE
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
412e1bf7 553
7fbd9d09 554exec 7<&0 </dev/null 6>&1
2f1a1aea
FCE
555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
2f1a1aea
FCE
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
7fbd9d09 565ac_clean_files=
2f1a1aea 566ac_config_libobj_dir=.
7fbd9d09 567LIBOBJS=
2f1a1aea
FCE
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
412e1bf7 572SHELL=${CONFIG_SHELL-/bin/sh}
2f1a1aea 573
2f1a1aea
FCE
574# Identity of this package.
575PACKAGE_NAME='systemtap'
576PACKAGE_TARNAME='systemtap'
6a7aa1a1
JS
577PACKAGE_VERSION='1.0'
578PACKAGE_STRING='systemtap 1.0'
2f1a1aea
FCE
579PACKAGE_BUGREPORT='systemtap@sources.redhat.com'
580
581# Factoring default headers for most tests.
582ac_includes_default="\
583#include <stdio.h>
7fbd9d09 584#ifdef HAVE_SYS_TYPES_H
2f1a1aea
FCE
585# include <sys/types.h>
586#endif
7fbd9d09 587#ifdef HAVE_SYS_STAT_H
2f1a1aea
FCE
588# include <sys/stat.h>
589#endif
7fbd9d09 590#ifdef STDC_HEADERS
2f1a1aea
FCE
591# include <stdlib.h>
592# include <stddef.h>
593#else
7fbd9d09 594# ifdef HAVE_STDLIB_H
2f1a1aea
FCE
595# include <stdlib.h>
596# endif
597#endif
7fbd9d09
FCE
598#ifdef HAVE_STRING_H
599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
2f1a1aea
FCE
600# include <memory.h>
601# endif
602# include <string.h>
603#endif
7fbd9d09 604#ifdef HAVE_STRINGS_H
2f1a1aea
FCE
605# include <strings.h>
606#endif
7fbd9d09 607#ifdef HAVE_INTTYPES_H
2f1a1aea 608# include <inttypes.h>
2f1a1aea 609#endif
7fbd9d09
FCE
610#ifdef HAVE_STDINT_H
611# include <stdint.h>
612#endif
613#ifdef HAVE_UNISTD_H
2f1a1aea
FCE
614# include <unistd.h>
615#endif"
616
562d60b0
DB
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654INSTALL_PROGRAM
655INSTALL_SCRIPT
656INSTALL_DATA
657am__isrc
658CYGPATH_W
659PACKAGE
660VERSION
661ACLOCAL
662AUTOCONF
663AUTOMAKE
664AUTOHEADER
665MAKEINFO
666install_sh
667STRIP
668INSTALL_STRIP_PROGRAM
8d9ee48a 669mkdir_p
562d60b0
DB
670AWK
671SET_MAKE
672am__leading_dot
673AMTAR
674am__tar
675am__untar
676MAINTAINER_MODE_TRUE
677MAINTAINER_MODE_FALSE
678MAINT
7fbd9d09 679MKDIR_P
562d60b0
DB
680LN_S
681CC
682CFLAGS
683LDFLAGS
684CPPFLAGS
685ac_ct_CC
686EXEEXT
687OBJEXT
688DEPDIR
689am__include
690am__quote
691AMDEP_TRUE
692AMDEP_FALSE
693AMDEPBACKSLASH
694CCDEPMODE
695am__fastdepCC_TRUE
696am__fastdepCC_FALSE
697CXX
698CXXFLAGS
699ac_ct_CXX
700CXXDEPMODE
701am__fastdepCXX_TRUE
702am__fastdepCXX_FALSE
703CPP
704GREP
705EGREP
706U
707ANSI2KNR
708RANLIB
709PIELDFLAGS
710PIECFLAGS
711PIECXXFLAGS
712sqlite3_LIBS
713BUILD_TRANSLATOR_TRUE
714BUILD_TRANSLATOR_FALSE
715staplog_CPPFLAGS
716BUILD_CRASHMOD_TRUE
717BUILD_CRASHMOD_FALSE
718have_latex
719have_dvips
720have_ps2pdf
721have_latex2html
722BUILD_DOCS_TRUE
723BUILD_DOCS_FALSE
724have_xmlto
725BUILD_REFDOCS_TRUE
726BUILD_REFDOCS_FALSE
727XMLTO_STRINGPARAM_TRUE
728XMLTO_STRINGPARAM_FALSE
729BUILD_PDFREFDOCS_TRUE
730BUILD_PDFREFDOCS_FALSE
731have_certutil
732nss_CFLAGS
733nspr_CFLAGS
734BUILD_SERVER_TRUE
735BUILD_SERVER_FALSE
736HAVE_NSS_TRUE
737HAVE_NSS_FALSE
738PKG_CONFIG
739gtkmm_CFLAGS
740gtkmm_LIBS
741libglade_CFLAGS
742libglade_LIBS
743CXXCPP
744BUILD_GRAPHER_TRUE
745BUILD_GRAPHER_FALSE
746rpm_LIBS
747RPM_CFLAGS
748RPM_LIBS
749BUILD_ELFUTILS_TRUE
750BUILD_ELFUTILS_FALSE
751elfutils_abs_srcdir
752stap_LIBS
753DATE
562d60b0
DB
754subdirs
755LIBOBJS
756LTLIBOBJS'
2f1a1aea 757ac_subst_files=''
7fbd9d09
FCE
758 ac_precious_vars='build_alias
759host_alias
760target_alias
761CC
762CFLAGS
763LDFLAGS
764LIBS
765CPPFLAGS
766CXX
767CXXFLAGS
768CCC
769CPP
1087b83f 770PKG_CONFIG
c3f070d9
DS
771gtkmm_CFLAGS
772gtkmm_LIBS
f8a49389
DS
773libglade_CFLAGS
774libglade_LIBS
775CXXCPP
2ed04863 776RPM_CFLAGS
f8a49389 777RPM_LIBS'
1087b83f 778ac_subdirs_all='testsuite'
2f1a1aea
FCE
779
780# Initialize some variables set by options.
781ac_init_help=
782ac_init_version=false
783# The variables have the same names as the options, with
784# dashes changed to underlines.
785cache_file=/dev/null
786exec_prefix=NONE
787no_create=
788no_recursion=
789prefix=NONE
790program_prefix=NONE
791program_suffix=NONE
792program_transform_name=s,x,x,
793silent=
794site=
795srcdir=
796verbose=
797x_includes=NONE
798x_libraries=NONE
799
800# Installation directory options.
801# These are left unexpanded so users can "make install exec_prefix=/foo"
802# and all the variables that are supposed to be based on exec_prefix
803# by default will actually change.
804# Use braces instead of parens because sh, perl, etc. also accept them.
7fbd9d09 805# (The list follows the same order as the GNU Coding Standards.)
2f1a1aea
FCE
806bindir='${exec_prefix}/bin'
807sbindir='${exec_prefix}/sbin'
808libexecdir='${exec_prefix}/libexec'
7fbd9d09
FCE
809datarootdir='${prefix}/share'
810datadir='${datarootdir}'
2f1a1aea
FCE
811sysconfdir='${prefix}/etc'
812sharedstatedir='${prefix}/com'
813localstatedir='${prefix}/var'
2f1a1aea
FCE
814includedir='${prefix}/include'
815oldincludedir='/usr/include'
7fbd9d09
FCE
816docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817infodir='${datarootdir}/info'
818htmldir='${docdir}'
819dvidir='${docdir}'
820pdfdir='${docdir}'
821psdir='${docdir}'
822libdir='${exec_prefix}/lib'
823localedir='${datarootdir}/locale'
824mandir='${datarootdir}/man'
2f1a1aea
FCE
825
826ac_prev=
7fbd9d09 827ac_dashdash=
2f1a1aea
FCE
828for ac_option
829do
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
7fbd9d09 832 eval $ac_prev=\$ac_option
2f1a1aea
FCE
833 ac_prev=
834 continue
835 fi
836
7fbd9d09
FCE
837 case $ac_option in
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *) ac_optarg=yes ;;
840 esac
2f1a1aea
FCE
841
842 # Accept the important Cygnus configure options, so we can diagnose typos.
843
7fbd9d09
FCE
844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
2f1a1aea
FCE
847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
7fbd9d09 868 -datadir | --datadir | --datadi | --datad)
2f1a1aea 869 ac_prev=datadir ;;
7fbd9d09 870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
2f1a1aea
FCE
871 datadir=$ac_optarg ;;
872
7fbd9d09
FCE
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
2f1a1aea 880 -disable-* | --disable-*)
562d60b0 881 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2f1a1aea 882 # Reject names that are not valid shell variable names.
562d60b0
DB
883 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412e1bf7 885 { (exit 1); exit 1; }; }
562d60b0
DB
886 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
887 eval enable_$ac_feature=no ;;
7fbd9d09
FCE
888
889 -docdir | --docdir | --docdi | --doc | --do)
890 ac_prev=docdir ;;
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892 docdir=$ac_optarg ;;
893
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895 ac_prev=dvidir ;;
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897 dvidir=$ac_optarg ;;
2f1a1aea
FCE
898
899 -enable-* | --enable-*)
562d60b0 900 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2f1a1aea 901 # Reject names that are not valid shell variable names.
562d60b0
DB
902 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
903 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412e1bf7 904 { (exit 1); exit 1; }; }
562d60b0
DB
905 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
906 eval enable_$ac_feature=\$ac_optarg ;;
2f1a1aea
FCE
907
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
916
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
919 with_gas=yes ;;
920
921 -help | --help | --hel | --he | -h)
922 ac_init_help=long ;;
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
927
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
932
7fbd9d09
FCE
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 ac_prev=htmldir ;;
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 | --ht=*)
937 htmldir=$ac_optarg ;;
938
2f1a1aea
FCE
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
945
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 ac_prev=infodir ;;
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
950
951 -libdir | --libdir | --libdi | --libd)
952 ac_prev=libdir ;;
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
954 libdir=$ac_optarg ;;
955
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
962
7fbd9d09
FCE
963 -localedir | --localedir | --localedi | --localed | --locale)
964 ac_prev=localedir ;;
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
967
2f1a1aea 968 -localstatedir | --localstatedir | --localstatedi | --localstated \
7fbd9d09 969 | --localstate | --localstat | --localsta | --localst | --locals)
2f1a1aea
FCE
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7fbd9d09 972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2f1a1aea
FCE
973 localstatedir=$ac_optarg ;;
974
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 ac_prev=mandir ;;
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 mandir=$ac_optarg ;;
979
980 -nfp | --nfp | --nf)
981 # Obsolete; use --without-fp.
982 with_fp=no ;;
983
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
986 no_create=yes ;;
987
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 no_recursion=yes ;;
991
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1000
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 ac_prev=prefix ;;
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1005
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1012
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1019
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1036
7fbd9d09
FCE
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 ac_prev=pdfdir ;;
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1041
1042 -psdir | --psdir | --psdi | --psd | --ps)
1043 ac_prev=psdir ;;
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 psdir=$ac_optarg ;;
1046
2f1a1aea
FCE
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 silent=yes ;;
1050
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 ac_prev=sbindir ;;
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 | --sbi=* | --sb=*)
1055 sbindir=$ac_optarg ;;
1056
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1060 | --sha | --sh)
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 | --sha=* | --sh=*)
1066 sharedstatedir=$ac_optarg ;;
1067
1068 -site | --site | --sit)
1069 ac_prev=site ;;
1070 -site=* | --site=* | --sit=*)
1071 site=$ac_optarg ;;
1072
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 ac_prev=srcdir ;;
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1077
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1084
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1089
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 verbose=yes ;;
1092
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1095
1096 -with-* | --with-*)
562d60b0 1097 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2f1a1aea 1098 # Reject names that are not valid shell variable names.
562d60b0
DB
1099 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid package name: $ac_package" >&2
412e1bf7 1101 { (exit 1); exit 1; }; }
562d60b0
DB
1102 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1103 eval with_$ac_package=\$ac_optarg ;;
2f1a1aea
FCE
1104
1105 -without-* | --without-*)
562d60b0 1106 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2f1a1aea 1107 # Reject names that are not valid shell variable names.
562d60b0
DB
1108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid package name: $ac_package" >&2
412e1bf7 1110 { (exit 1); exit 1; }; }
562d60b0
DB
1111 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1112 eval with_$ac_package=no ;;
2f1a1aea
FCE
1113
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1117
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1124
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1131
562d60b0 1132 -*) { echo "$as_me: error: unrecognized option: $ac_option
412e1bf7
FCE
1133Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
2f1a1aea
FCE
1135 ;;
1136
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
412e1bf7 1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
562d60b0 1141 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
412e1bf7 1142 { (exit 1); exit 1; }; }
7fbd9d09 1143 eval $ac_envvar=\$ac_optarg
2f1a1aea
FCE
1144 export $ac_envvar ;;
1145
1146 *)
1147 # FIXME: should be removed in autoconf 3.0.
562d60b0 1148 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2f1a1aea 1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
562d60b0 1150 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2f1a1aea
FCE
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1152 ;;
1153
1154 esac
1155done
1156
1157if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
562d60b0 1159 { echo "$as_me: error: missing argument to $ac_option" >&2
412e1bf7 1160 { (exit 1); exit 1; }; }
2f1a1aea
FCE
1161fi
1162
562d60b0 1163# Be sure to have absolute directory names.
7fbd9d09
FCE
1164for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
818ba2bc 1168do
7fbd9d09 1169 eval ac_val=\$$ac_var
8ae7a94a 1170 case $ac_val in
7fbd9d09
FCE
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2f1a1aea 1173 esac
562d60b0 1174 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
412e1bf7 1175 { (exit 1); exit 1; }; }
2f1a1aea
FCE
1176done
1177
1178# There might be people who depend on the old broken behavior: `$host'
1179# used to hold the argument of --host etc.
1180# FIXME: To remove some day.
1181build=$build_alias
1182host=$host_alias
1183target=$target_alias
1184
1185# FIXME: To remove some day.
1186if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
562d60b0 1189 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2f1a1aea
FCE
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1192 cross_compiling=yes
1193 fi
1194fi
1195
1196ac_tool_prefix=
1197test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198
1199test "$silent" = yes && exec 6>/dev/null
1200
1201
7fbd9d09
FCE
1202ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203ac_ls_di=`ls -di .` &&
1204ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
562d60b0 1205 { echo "$as_me: error: Working directory cannot be determined" >&2
412e1bf7 1206 { (exit 1); exit 1; }; }
7fbd9d09 1207test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
562d60b0 1208 { echo "$as_me: error: pwd does not report name of working directory" >&2
412e1bf7 1209 { (exit 1); exit 1; }; }
7fbd9d09
FCE
1210
1211
2f1a1aea
FCE
1212# Find the source files, if location was not specified.
1213if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
7fbd9d09 1215 # Try the directory containing this script, then the parent directory.
562d60b0
DB
1216 ac_confdir=`$as_dirname -- "$0" ||
1217$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$0" : 'X\(//\)[^/]' \| \
1219 X"$0" : 'X\(//\)$' \| \
1220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1221echo X"$0" |
7fbd9d09
FCE
1222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 s//\1/
1224 q
1225 }
1226 /^X\(\/\/\)[^/].*/{
1227 s//\1/
1228 q
1229 }
1230 /^X\(\/\/\)$/{
1231 s//\1/
1232 q
1233 }
1234 /^X\(\/\).*/{
1235 s//\1/
1236 q
1237 }
1238 s/.*/./; q'`
2f1a1aea 1239 srcdir=$ac_confdir
7fbd9d09 1240 if test ! -r "$srcdir/$ac_unique_file"; then
2f1a1aea
FCE
1241 srcdir=..
1242 fi
1243else
1244 ac_srcdir_defaulted=no
1245fi
7fbd9d09
FCE
1246if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
562d60b0 1248 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
412e1bf7 1249 { (exit 1); exit 1; }; }
8ae7a94a 1250fi
7fbd9d09
FCE
1251ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252ac_abs_confdir=`(
562d60b0 1253 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
412e1bf7 1254 { (exit 1); exit 1; }; }
7fbd9d09
FCE
1255 pwd)`
1256# When building in place, set srcdir=.
1257if test "$ac_abs_confdir" = "$ac_pwd"; then
1258 srcdir=.
1259fi
1260# Remove unnecessary trailing slashes from srcdir.
1261# Double slashes in file names in object file debugging info
1262# mess up M-x gdb in Emacs.
1263case $srcdir in
1264*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265esac
1266for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271done
2f1a1aea
FCE
1272
1273#
1274# Report the --help message.
1275#
1276if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1279 cat <<_ACEOF
6a7aa1a1 1280\`configure' configures systemtap 1.0 to adapt to many kinds of systems.
2f1a1aea
FCE
1281
1282Usage: $0 [OPTION]... [VAR=VALUE]...
1283
1284To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285VAR=VALUE. See below for descriptions of some of the useful variables.
1286
1287Defaults for the options are specified in brackets.
1288
1289Configuration:
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1299
2f1a1aea
FCE
1300Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
562d60b0 1302 [$ac_default_prefix]
2f1a1aea 1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
562d60b0 1304 [PREFIX]
2f1a1aea
FCE
1305
1306By default, \`make install' will install all the files in
1307\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309for instance \`--prefix=\$HOME'.
1310
1311For better control, use the options below.
1312
1313Fine tuning of the installation directories:
562d60b0
DB
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
2f1a1aea
FCE
1333_ACEOF
1334
1335 cat <<\_ACEOF
1336
1337Program names:
1338 --program-prefix=PREFIX prepend PREFIX to installed program names
1339 --program-suffix=SUFFIX append SUFFIX to installed program names
1340 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1341_ACEOF
1342fi
1343
1344if test -n "$ac_init_help"; then
1345 case $ac_init_help in
6a7aa1a1 1346 short | recursive ) echo "Configuration of systemtap 1.0:";;
2f1a1aea
FCE
1347 esac
1348 cat <<\_ACEOF
1349
1350Optional Features:
1351 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1352 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1353 --enable-maintainer-mode enable make rules and dependencies not useful
1354 (and sometimes confusing) to the casual installer
1355 --disable-dependency-tracking speeds up one-time build
1356 --enable-dependency-tracking do not reject slow dependency extractors
e8f3c2c2
DS
1357 --enable-perfmon[=DIRECTORY]
1358 enable perfmon support (default is disabled).
1359 Optional DIRECTORY is the path to the perfmon
1360 installation (needed if installed in a non-standard
1361 location).
44f75386 1362 --enable-prologues make -P prologue-searching default
bbfd8c1a 1363 --disable-ssp disable gcc stack-protector
882ddac1 1364 --enable-pie enable position-independent-executable
9921a199 1365 --enable-sqlite build with sqlite support
6d14a4a9 1366 --disable-translator build only runtime utilities
564eb0a8
DS
1367 --enable-crash[=DIRECTORY]
1368 enable crash extension (default is disabled).
1369 Optional DIRECTORY is the path to the crash header
1370 file (needed if installed in a non-standard
1371 location).
465e8fbf
FCE
1372 --enable-docs enable building documentation (default on if latex
1373 etc. found).
92aff3c7
WC
1374 --enable-refdocs enable building reference documentation (default on
1375 if xmlto etc. found and other documentation built).
6275c8d7 1376 --enable-server enable building of stap-server/client (default on if
19a0d4b6 1377 nss etc. found).
f8a49389
DS
1378 --enable-grapher enable building of grapher (default on if needed
1379 requirements are found).
2f1a1aea 1380
4d9087fc
RM
1381Optional Packages:
1382 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1383 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
4a3c19da
EM
1384 --with-rpm query rpm database for missing debuginfos [yes/no,
1385 def. auto=librpm.so]
4d9087fc
RM
1386 --with-elfutils=DIRECTORY
1387 find elfutils source code in DIRECTORY
1388
2f1a1aea
FCE
1389Some influential environment variables:
1390 CC C compiler command
1391 CFLAGS C compiler flags
1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1393 nonstandard directory <lib dir>
7fbd9d09
FCE
1394 LIBS libraries to pass to the linker, e.g. -l<library>
1395 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1396 you have headers in a nonstandard directory <include dir>
2f1a1aea
FCE
1397 CXX C++ compiler command
1398 CXXFLAGS C++ compiler flags
1399 CPP C preprocessor
1087b83f 1400 PKG_CONFIG path to pkg-config utility
c3f070d9
DS
1401 gtkmm_CFLAGS
1402 C compiler flags for gtkmm, overriding pkg-config
1403 gtkmm_LIBS linker flags for gtkmm, overriding pkg-config
f8a49389
DS
1404 libglade_CFLAGS
1405 C compiler flags for libglade, overriding pkg-config
1406 libglade_LIBS
1407 linker flags for libglade, overriding pkg-config
1408 CXXCPP C++ preprocessor
2ed04863
WC
1409 RPM_CFLAGS C compiler flags for RPM, overriding pkg-config
1410 RPM_LIBS linker flags for RPM, overriding pkg-config
2f1a1aea
FCE
1411
1412Use these variables to override the choices made by `configure' or to help
1413it to find libraries and programs with nonstandard names/locations.
1414
1415Report bugs to <systemtap@sources.redhat.com>.
1416_ACEOF
7fbd9d09 1417ac_status=$?
2f1a1aea
FCE
1418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
2f1a1aea 1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
562d60b0 1423 test -d "$ac_dir" || continue
2f1a1aea
FCE
1424 ac_builddir=.
1425
7fbd9d09
FCE
1426case "$ac_dir" in
1427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428*)
562d60b0 1429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7fbd9d09 1430 # A ".." for each directory in $ac_dir_suffix.
562d60b0 1431 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7fbd9d09
FCE
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 esac ;;
1436esac
1437ac_abs_top_builddir=$ac_pwd
1438ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439# for backward compatibility:
1440ac_top_builddir=$ac_top_build_prefix
2f1a1aea
FCE
1441
1442case $srcdir in
7fbd9d09 1443 .) # We are building in place.
2f1a1aea 1444 ac_srcdir=.
7fbd9d09
FCE
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
2f1a1aea 1448 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1451 *) # Relative name.
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
818ba2bc 1455esac
7fbd9d09
FCE
1456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1461 echo &&
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure" --help=recursive
2f1a1aea 1466 else
562d60b0 1467 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7fbd9d09
FCE
1468 fi || ac_status=$?
1469 cd "$ac_pwd" || { ac_status=$?; break; }
2f1a1aea
FCE
1470 done
1471fi
1472
7fbd9d09 1473test -n "$ac_init_help" && exit $ac_status
2f1a1aea
FCE
1474if $ac_init_version; then
1475 cat <<\_ACEOF
6a7aa1a1 1476systemtap configure 1.0
562d60b0 1477generated by GNU Autoconf 2.61
2f1a1aea 1478
412e1bf7 1479Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
562d60b0 14802002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2f1a1aea
FCE
1481This configure script is free software; the Free Software Foundation
1482gives unlimited permission to copy, distribute and modify it.
1483_ACEOF
7fbd9d09 1484 exit
2f1a1aea 1485fi
7fbd9d09 1486cat >config.log <<_ACEOF
2f1a1aea
FCE
1487This file contains any messages produced by compilers while
1488running configure, to aid debugging if configure makes a mistake.
1489
6a7aa1a1 1490It was created by systemtap $as_me 1.0, which was
562d60b0 1491generated by GNU Autoconf 2.61. Invocation command line was
2f1a1aea
FCE
1492
1493 $ $0 $@
1494
1495_ACEOF
7fbd9d09 1496exec 5>>config.log
2f1a1aea
FCE
1497{
1498cat <<_ASUNAME
1499## --------- ##
1500## Platform. ##
1501## --------- ##
1502
1503hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508
1509/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1511
1512/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1513/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1514/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7fbd9d09 1515/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2f1a1aea
FCE
1516/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1517/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1518/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1519
1520_ASUNAME
1521
1522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523for as_dir in $PATH
1524do
1525 IFS=$as_save_IFS
1526 test -z "$as_dir" && as_dir=.
562d60b0 1527 echo "PATH: $as_dir"
412e1bf7 1528done
7fbd9d09 1529IFS=$as_save_IFS
2f1a1aea
FCE
1530
1531} >&5
1532
1533cat >&5 <<_ACEOF
1534
1535
1536## ----------- ##
1537## Core tests. ##
1538## ----------- ##
1539
1540_ACEOF
1541
1542
1543# Keep a trace of the command line.
1544# Strip out --no-create and --no-recursion so they do not pile up.
1545# Strip out --silent because we don't want to record it for future runs.
1546# Also quote any args containing shell meta-characters.
1547# Make two passes to allow for proper duplicate-argument suppression.
1548ac_configure_args=
1549ac_configure_args0=
1550ac_configure_args1=
2f1a1aea
FCE
1551ac_must_keep_next=false
1552for ac_pass in 1 2
1553do
1554 for ac_arg
1555 do
1556 case $ac_arg in
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1560 continue ;;
7fbd9d09 1561 *\'*)
562d60b0 1562 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2f1a1aea
FCE
1563 esac
1564 case $ac_pass in
412e1bf7 1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2f1a1aea 1566 2)
412e1bf7 1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2f1a1aea
FCE
1568 if test $ac_must_keep_next = true; then
1569 ac_must_keep_next=false # Got value, back to normal.
1570 else
1571 case $ac_arg in
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 esac
1579 ;;
1580 -* ) ac_must_keep_next=true ;;
1581 esac
1582 fi
412e1bf7 1583 ac_configure_args="$ac_configure_args '$ac_arg'"
2f1a1aea
FCE
1584 ;;
1585 esac
1586 done
1587done
412e1bf7
FCE
1588$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2f1a1aea
FCE
1590
1591# When interrupted or exit'd, cleanup temporary files, and complete
1592# config.log. We remove comments because anyway the quotes in there
1593# would cause problems or look ugly.
7fbd9d09
FCE
1594# WARNING: Use '\'' to represent an apostrophe within the trap.
1595# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2f1a1aea
FCE
1596trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1598 {
1599 echo
1600
1601 cat <<\_ASBOX
1602## ---------------- ##
1603## Cache variables. ##
1604## ---------------- ##
1605_ASBOX
1606 echo
1607 # The following way of writing the cache mishandles newlines in values,
7fbd9d09
FCE
1608(
1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in #(
1612 *${as_nl}*)
1613 case $ac_var in #(
562d60b0
DB
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7fbd9d09
FCE
1616 esac
1617 case $ac_var in #(
1618 _ | IFS | as_nl) ;; #(
412e1bf7 1619 *) $as_unset $ac_var ;;
7fbd9d09
FCE
1620 esac ;;
1621 esac
1622 done
2f1a1aea 1623 (set) 2>&1 |
7fbd9d09
FCE
1624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
2f1a1aea 1626 sed -n \
7fbd9d09
FCE
1627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629 ;; #(
2f1a1aea 1630 *)
7fbd9d09 1631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2f1a1aea 1632 ;;
7fbd9d09
FCE
1633 esac |
1634 sort
1635)
2f1a1aea
FCE
1636 echo
1637
1638 cat <<\_ASBOX
1639## ----------------- ##
1640## Output variables. ##
1641## ----------------- ##
1642_ASBOX
1643 echo
1644 for ac_var in $ac_subst_vars
1645 do
7fbd9d09
FCE
1646 eval ac_val=\$$ac_var
1647 case $ac_val in
562d60b0 1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7fbd9d09 1649 esac
562d60b0 1650 echo "$ac_var='\''$ac_val'\''"
2f1a1aea
FCE
1651 done | sort
1652 echo
1653
1654 if test -n "$ac_subst_files"; then
1655 cat <<\_ASBOX
7fbd9d09
FCE
1656## ------------------- ##
1657## File substitutions. ##
1658## ------------------- ##
2f1a1aea
FCE
1659_ASBOX
1660 echo
1661 for ac_var in $ac_subst_files
1662 do
7fbd9d09
FCE
1663 eval ac_val=\$$ac_var
1664 case $ac_val in
562d60b0 1665 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7fbd9d09 1666 esac
562d60b0 1667 echo "$ac_var='\''$ac_val'\''"
2f1a1aea
FCE
1668 done | sort
1669 echo
1670 fi
1671
1672 if test -s confdefs.h; then
1673 cat <<\_ASBOX
1674## ----------- ##
1675## confdefs.h. ##
1676## ----------- ##
1677_ASBOX
1678 echo
7fbd9d09 1679 cat confdefs.h
2f1a1aea
FCE
1680 echo
1681 fi
1682 test "$ac_signal" != 0 &&
562d60b0
DB
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
2f1a1aea 1685 } >&5
7fbd9d09
FCE
1686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2f1a1aea 1688 exit $exit_status
7fbd9d09 1689' 0
2f1a1aea 1690for ac_signal in 1 2 13 15; do
412e1bf7 1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2f1a1aea
FCE
1692done
1693ac_signal=0
1694
1695# confdefs.h avoids OS command line length limits that DEFS can exceed.
7fbd9d09 1696rm -f -r conftest* confdefs.h
2f1a1aea
FCE
1697
1698# Predefined preprocessor variables.
1699
1700cat >>confdefs.h <<_ACEOF
1701#define PACKAGE_NAME "$PACKAGE_NAME"
1702_ACEOF
1703
412e1bf7 1704
2f1a1aea
FCE
1705cat >>confdefs.h <<_ACEOF
1706#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707_ACEOF
1708
412e1bf7 1709
2f1a1aea
FCE
1710cat >>confdefs.h <<_ACEOF
1711#define PACKAGE_VERSION "$PACKAGE_VERSION"
1712_ACEOF
1713
412e1bf7 1714
2f1a1aea
FCE
1715cat >>confdefs.h <<_ACEOF
1716#define PACKAGE_STRING "$PACKAGE_STRING"
1717_ACEOF
1718
2f1a1aea 1719
4a3c19da 1720cat >>confdefs.h <<_ACEOF
412e1bf7 1721#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
4a3c19da
EM
1722_ACEOF
1723
2f1a1aea
FCE
1724
1725# Let the site file select an alternate cache file if it wants to.
562d60b0 1726# Prefer explicitly selected file to automatically selected ones.
7fbd9d09 1727if test -n "$CONFIG_SITE"; then
562d60b0 1728 set x "$CONFIG_SITE"
7fbd9d09 1729elif test "x$prefix" != xNONE; then
562d60b0 1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
7fbd9d09 1731else
562d60b0
DB
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
818ba2bc 1734fi
562d60b0
DB
1735shift
1736for ac_site_file
7fbd9d09 1737do
2f1a1aea 1738 if test -r "$ac_site_file"; then
562d60b0
DB
1739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740echo "$as_me: loading site script $ac_site_file" >&6;}
2f1a1aea
FCE
1741 sed 's/^/| /' "$ac_site_file" >&5
1742 . "$ac_site_file"
1743 fi
1744done
1745
1746if test -r "$cache_file"; then
1747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
562d60b0
DB
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751echo "$as_me: loading cache $cache_file" >&6;}
2f1a1aea 1752 case $cache_file in
7fbd9d09
FCE
1753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
2f1a1aea
FCE
1755 esac
1756 fi
1757else
562d60b0
DB
1758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759echo "$as_me: creating cache $cache_file" >&6;}
2f1a1aea
FCE
1760 >$cache_file
1761fi
1762
1763# Check that the precious variables saved in the cache have kept the same
1764# value.
1765ac_cache_corrupted=false
7fbd9d09 1766for ac_var in $ac_precious_vars; do
2f1a1aea
FCE
1767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
7fbd9d09
FCE
1769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
2f1a1aea
FCE
1771 case $ac_old_set,$ac_new_set in
1772 set,)
562d60b0
DB
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2f1a1aea
FCE
1775 ac_cache_corrupted=: ;;
1776 ,set)
562d60b0
DB
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2f1a1aea
FCE
1779 ac_cache_corrupted=: ;;
1780 ,);;
1781 *)
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
562d60b0
DB
1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1786echo "$as_me: former value: $ac_old_val" >&2;}
1787 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1788echo "$as_me: current value: $ac_new_val" >&2;}
1789 ac_cache_corrupted=:
2f1a1aea
FCE
1790 fi;;
1791 esac
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1794 case $ac_new_val in
562d60b0 1795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4a3c19da
EM
1796 *) ac_arg=$ac_var=$ac_new_val ;;
1797 esac
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
412e1bf7 1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
4a3c19da
EM
1801 esac
1802 fi
1803done
1804if $ac_cache_corrupted; then
562d60b0
DB
1805 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
412e1bf7 1809 { (exit 1); exit 1; }; }
4a3c19da 1810fi
412e1bf7
FCE
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
2f1a1aea 1835
7fbd9d09
FCE
1836ac_ext=c
1837ac_cpp='$CPP $CPPFLAGS'
1838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840ac_compiler_gnu=$ac_cv_c_compiler_gnu
2f1a1aea
FCE
1841
1842
1843
2f1a1aea 1844
562d60b0 1845am__api_version='1.10'
10b20266 1846
2f1a1aea 1847ac_aux_dir=
412e1bf7
FCE
1848for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1849 if test -f "$ac_dir/install-sh"; then
1850 ac_aux_dir=$ac_dir
1851 ac_install_sh="$ac_aux_dir/install-sh -c"
1852 break
1853 elif test -f "$ac_dir/install.sh"; then
1854 ac_aux_dir=$ac_dir
1855 ac_install_sh="$ac_aux_dir/install.sh -c"
1856 break
1857 elif test -f "$ac_dir/shtool"; then
1858 ac_aux_dir=$ac_dir
1859 ac_install_sh="$ac_aux_dir/shtool install -c"
1860 break
1861 fi
2f1a1aea
FCE
1862done
1863if test -z "$ac_aux_dir"; then
562d60b0
DB
1864 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1865echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
412e1bf7 1866 { (exit 1); exit 1; }; }
2f1a1aea 1867fi
7fbd9d09
FCE
1868
1869# These three variables are undocumented and unsupported,
1870# and are intended to be withdrawn in a future Autoconf release.
1871# They can cause serious problems if a builder's source tree is in a directory
1872# whose full name contains unusual characters.
1873ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1874ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1875ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1876
2f1a1aea
FCE
1877
1878# Find a good install program. We prefer a C program (faster),
1879# so one script is as good as another. But avoid the broken or
1880# incompatible versions:
1881# SysV /etc/install, /usr/sbin/install
1882# SunOS /usr/etc/install
1883# IRIX /sbin/install
1884# AIX /bin/install
1885# AmigaOS /C/install, which installs bootblocks on floppy discs
1886# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1887# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1888# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1889# OS/2's system install, which has a completely different semantic
1890# ./install, which can be erroneously created by make from ./install.sh.
562d60b0
DB
1891{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1892echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2f1a1aea 1893if test -z "$INSTALL"; then
412e1bf7 1894if test "${ac_cv_path_install+set}" = set; then
562d60b0 1895 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
1896else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
412e1bf7
FCE
1902 # Account for people who put trailing slashes in PATH elements.
1903case $as_dir/ in
1904 ./ | .// | /cC/* | \
2f1a1aea 1905 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
412e1bf7 1906 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2f1a1aea
FCE
1907 /usr/ucb/* ) ;;
1908 *)
1909 # OSF1 and SCO ODT 3.0 have their own names for install.
1910 # Don't use installbsd from OSF since it installs stuff as root
1911 # by default.
1912 for ac_prog in ginstall scoinst install; do
1913 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 1914 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2f1a1aea
FCE
1915 if test $ac_prog = install &&
1916 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1917 # AIX install. It has an incompatible calling convention.
1918 :
1919 elif test $ac_prog = install &&
1920 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1921 # program-specific install script used by HP pwplus--don't use.
1922 :
1923 else
562d60b0
DB
1924 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1925 break 3
2f1a1aea
FCE
1926 fi
1927 fi
1928 done
1929 done
1930 ;;
1931esac
412e1bf7 1932done
7fbd9d09 1933IFS=$as_save_IFS
2f1a1aea
FCE
1934
1935
1936fi
1937 if test "${ac_cv_path_install+set}" = set; then
1938 INSTALL=$ac_cv_path_install
1939 else
7fbd9d09
FCE
1940 # As a last resort, use the slow shell script. Don't cache a
1941 # value for INSTALL within a source directory, because that will
2f1a1aea 1942 # break other packages using the cache if that directory is
7fbd9d09 1943 # removed, or if the value is a relative name.
2f1a1aea
FCE
1944 INSTALL=$ac_install_sh
1945 fi
1946fi
562d60b0
DB
1947{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1948echo "${ECHO_T}$INSTALL" >&6; }
2f1a1aea
FCE
1949
1950# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1951# It thinks the first close brace ends the variable substitution.
1952test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1953
1954test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1955
1956test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1957
562d60b0
DB
1958{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1959echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2f1a1aea
FCE
1960# Just in case
1961sleep 1
1962echo timestamp > conftest.file
1963# Do `set' in a subshell so we don't clobber the current shell's
1964# arguments. Must try -L first in case configure is actually a
1965# symlink; some systems play weird games with the mod time of symlinks
1966# (eg FreeBSD returns the mod time of the symlink's containing
1967# directory).
1968if (
562d60b0 1969 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2f1a1aea
FCE
1970 if test "$*" = "X"; then
1971 # -L didn't work.
562d60b0 1972 set X `ls -t $srcdir/configure conftest.file`
2f1a1aea
FCE
1973 fi
1974 rm -f conftest.file
1975 if test "$*" != "X $srcdir/configure conftest.file" \
1976 && test "$*" != "X conftest.file $srcdir/configure"; then
1977
1978 # If neither matched, then we have a broken ls. This can happen
1979 # if, for instance, CONFIG_SHELL is bash and it inherits a
1980 # broken ls alias from the environment. This has actually
1981 # happened. Such a system could not be considered "sane".
562d60b0 1982 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
412e1bf7 1983alias in your environment" >&5
562d60b0 1984echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
412e1bf7
FCE
1985alias in your environment" >&2;}
1986 { (exit 1); exit 1; }; }
2f1a1aea
FCE
1987 fi
1988
1989 test "$2" = conftest.file
1990 )
1991then
1992 # Ok.
1993 :
1994else
562d60b0 1995 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
412e1bf7 1996Check your system clock" >&5
562d60b0 1997echo "$as_me: error: newly created file is older than distributed files!
412e1bf7
FCE
1998Check your system clock" >&2;}
1999 { (exit 1); exit 1; }; }
2f1a1aea 2000fi
562d60b0
DB
2001{ echo "$as_me:$LINENO: result: yes" >&5
2002echo "${ECHO_T}yes" >&6; }
2f1a1aea 2003test "$program_prefix" != NONE &&
7fbd9d09 2004 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2f1a1aea
FCE
2005# Use a double $ so make ignores it.
2006test "$program_suffix" != NONE &&
7fbd9d09 2007 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
562d60b0 2008# Double any \ or $. echo might interpret backslashes.
2f1a1aea 2009# By default was `s,x,x', remove it if useless.
562d60b0
DB
2010cat <<\_ACEOF >conftest.sed
2011s/[\\$]/&&/g;s/;s,x,x,$//
2012_ACEOF
2013program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2014rm -f conftest.sed
2f1a1aea
FCE
2015
2016# expand $ac_aux_dir to an absolute path
2017am_aux_dir=`cd $ac_aux_dir && pwd`
2018
562d60b0 2019test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2f1a1aea
FCE
2020# Use eval to expand $SHELL
2021if eval "$MISSING --run true"; then
2022 am_missing_run="$MISSING --run "
2023else
2024 am_missing_run=
562d60b0
DB
2025 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2026echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8d9ee48a
JS
2027fi
2028
562d60b0
DB
2029{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2030echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
7fbd9d09 2031if test -z "$MKDIR_P"; then
412e1bf7 2032 if test "${ac_cv_path_mkdir+set}" = set; then
562d60b0 2033 echo $ECHO_N "(cached) $ECHO_C" >&6
7fbd9d09
FCE
2034else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2037do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
412e1bf7 2040 for ac_prog in mkdir gmkdir; do
7fbd9d09
FCE
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2043 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2044 'mkdir (GNU coreutils) '* | \
2045 'mkdir (coreutils) '* | \
2046 'mkdir (fileutils) '4.1*)
2047 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2048 break 3;;
2049 esac
2050 done
2051 done
412e1bf7 2052done
7fbd9d09
FCE
2053IFS=$as_save_IFS
2054
2055fi
2056
2057 if test "${ac_cv_path_mkdir+set}" = set; then
2058 MKDIR_P="$ac_cv_path_mkdir -p"
2f1a1aea 2059 else
7fbd9d09
FCE
2060 # As a last resort, use the slow shell script. Don't cache a
2061 # value for MKDIR_P within a source directory, because that will
2062 # break other packages using the cache if that directory is
2063 # removed, or if the value is a relative name.
2064 test -d ./--version && rmdir ./--version
2065 MKDIR_P="$ac_install_sh -d"
2f1a1aea
FCE
2066 fi
2067fi
562d60b0
DB
2068{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2069echo "${ECHO_T}$MKDIR_P" >&6; }
7fbd9d09
FCE
2070
2071mkdir_p="$MKDIR_P"
2072case $mkdir_p in
2073 [\\/$]* | ?:[\\/]*) ;;
2074 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2075esac
2f1a1aea
FCE
2076
2077for ac_prog in gawk mawk nawk awk
2078do
2079 # Extract the first word of "$ac_prog", so it can be a program name with args.
2080set dummy $ac_prog; ac_word=$2
562d60b0
DB
2081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 2083if test "${ac_cv_prog_AWK+set}" = set; then
562d60b0 2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
2085else
2086 if test -n "$AWK"; then
2087 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2088else
2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090for as_dir in $PATH
2091do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
412e1bf7 2094 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2096 ac_cv_prog_AWK="$ac_prog"
562d60b0 2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2098 break 2
2099 fi
2100done
412e1bf7 2101done
7fbd9d09 2102IFS=$as_save_IFS
2f1a1aea
FCE
2103
2104fi
2105fi
2106AWK=$ac_cv_prog_AWK
2107if test -n "$AWK"; then
562d60b0
DB
2108 { echo "$as_me:$LINENO: result: $AWK" >&5
2109echo "${ECHO_T}$AWK" >&6; }
2f1a1aea 2110else
562d60b0
DB
2111 { echo "$as_me:$LINENO: result: no" >&5
2112echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
2113fi
2114
7fbd9d09 2115
2f1a1aea
FCE
2116 test -n "$AWK" && break
2117done
2118
562d60b0
DB
2119{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2120echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2121set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
412e1bf7 2122if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
2124else
2125 cat >conftest.make <<\_ACEOF
412e1bf7
FCE
2126SHELL = /bin/sh
2127all:
2128 @echo '@@@%%%=$(MAKE)=@@@%%%'
2129_ACEOF
2130# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2131case `${MAKE-make} -f conftest.make 2>/dev/null` in
2132 *@@@%%%=?*=@@@%%%*)
2133 eval ac_cv_prog_make_${ac_make}_set=yes;;
2134 *)
2135 eval ac_cv_prog_make_${ac_make}_set=no;;
2136esac
2137rm -f conftest.make
4a3c19da 2138fi
412e1bf7 2139if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
562d60b0
DB
2140 { echo "$as_me:$LINENO: result: yes" >&5
2141echo "${ECHO_T}yes" >&6; }
412e1bf7 2142 SET_MAKE=
4a3c19da 2143else
562d60b0
DB
2144 { echo "$as_me:$LINENO: result: no" >&5
2145echo "${ECHO_T}no" >&6; }
412e1bf7 2146 SET_MAKE="MAKE=${MAKE-make}"
2f1a1aea
FCE
2147fi
2148
412e1bf7
FCE
2149rm -rf .tst 2>/dev/null
2150mkdir .tst 2>/dev/null
2151if test -d .tst; then
2152 am__leading_dot=.
4a3c19da 2153else
412e1bf7 2154 am__leading_dot=_
2f1a1aea 2155fi
412e1bf7 2156rmdir .tst 2>/dev/null
2f1a1aea 2157
412e1bf7
FCE
2158if test "`cd $srcdir && pwd`" != "`pwd`"; then
2159 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2160 # is not polluted with repeated "-I."
2161 am__isrc=' -I$(srcdir)'
2162 # test to see if srcdir already configured
2163 if test -f $srcdir/config.status; then
562d60b0
DB
2164 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2165echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
412e1bf7
FCE
2166 { (exit 1); exit 1; }; }
2167 fi
4a3c19da 2168fi
412e1bf7
FCE
2169
2170# test whether we have cygpath
2171if test -z "$CYGPATH_W"; then
2172 if (cygpath --version) >/dev/null 2>/dev/null; then
2173 CYGPATH_W='cygpath -w'
2174 else
2175 CYGPATH_W=echo
2176 fi
2177fi
2178
2179
2180# Define the identity of the package.
2181 PACKAGE='systemtap'
6a7aa1a1 2182 VERSION='1.0'
412e1bf7
FCE
2183
2184
2185cat >>confdefs.h <<_ACEOF
2186#define PACKAGE "$PACKAGE"
2187_ACEOF
2188
2189
2190cat >>confdefs.h <<_ACEOF
2191#define VERSION "$VERSION"
2192_ACEOF
2193
2194# Some tools Automake needs.
2195
2196ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2197
2198
2199AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2200
2201
8d9ee48a 2202AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2f78bee0 2203
8d9ee48a
JS
2204
2205AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2206
2207
562d60b0
DB
2208MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2209
2210install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2211
2212# Installed binaries are usually stripped using `strip' when the user
2213# run `make install-strip'. However `strip' might not be the right
2214# tool to use in cross-compilation environments, therefore Automake
2215# will honor the `STRIP' environment variable to overrule this program.
2216if test "$cross_compiling" != no; then
2217 if test -n "$ac_tool_prefix"; then
2218 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2219set dummy ${ac_tool_prefix}strip; ac_word=$2
2220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2222if test "${ac_cv_prog_STRIP+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
2225 if test -n "$STRIP"; then
2226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2227else
2228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229for as_dir in $PATH
2230do
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 break 2
2238 fi
2239done
2240done
2241IFS=$as_save_IFS
2242
2243fi
2244fi
2245STRIP=$ac_cv_prog_STRIP
2246if test -n "$STRIP"; then
2247 { echo "$as_me:$LINENO: result: $STRIP" >&5
2248echo "${ECHO_T}$STRIP" >&6; }
2249else
2250 { echo "$as_me:$LINENO: result: no" >&5
2251echo "${ECHO_T}no" >&6; }
2252fi
2253
2254
2255fi
2256if test -z "$ac_cv_prog_STRIP"; then
2257 ac_ct_STRIP=$STRIP
2258 # Extract the first word of "strip", so it can be a program name with args.
2259set dummy strip; ac_word=$2
2260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2262if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
2265 if test -n "$ac_ct_STRIP"; then
2266 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2267else
2268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269for as_dir in $PATH
2270do
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2275 ac_cv_prog_ac_ct_STRIP="strip"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 break 2
2278 fi
2279done
2280done
2281IFS=$as_save_IFS
2282
2283fi
2284fi
2285ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2286if test -n "$ac_ct_STRIP"; then
2287 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2288echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2289else
2290 { echo "$as_me:$LINENO: result: no" >&5
2291echo "${ECHO_T}no" >&6; }
2292fi
2293
2294 if test "x$ac_ct_STRIP" = x; then
2295 STRIP=":"
2296 else
2297 case $cross_compiling:$ac_tool_warned in
2298yes:)
2299{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2300whose name does not start with the host triplet. If you think this
2301configuration is useful to you, please write to autoconf@gnu.org." >&5
2302echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2303whose name does not start with the host triplet. If you think this
2304configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2305ac_tool_warned=yes ;;
2306esac
2307 STRIP=$ac_ct_STRIP
2308 fi
2309else
2310 STRIP="$ac_cv_prog_STRIP"
2311fi
2312
2313fi
2314INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2f1a1aea 2315
2f1a1aea
FCE
2316# We need awk for the "check" target. The system "awk" is bad on
2317# some platforms.
2318# Always define AMTAR for backward compatibility.
2319
2320AMTAR=${AMTAR-"${am_missing_run}tar"}
2321
2322am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2323
2324
2325
2326
2327
562d60b0
DB
2328{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2329echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
7fbd9d09 2330 # Check whether --enable-maintainer-mode was given.
412e1bf7 2331if test "${enable_maintainer_mode+set}" = set; then
7fbd9d09 2332 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2f1a1aea
FCE
2333else
2334 USE_MAINTAINER_MODE=no
7fbd9d09 2335fi
2f1a1aea 2336
562d60b0
DB
2337 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2338echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
7fbd9d09 2339 if test $USE_MAINTAINER_MODE = yes; then
2f1a1aea
FCE
2340 MAINTAINER_MODE_TRUE=
2341 MAINTAINER_MODE_FALSE='#'
2342else
2343 MAINTAINER_MODE_TRUE='#'
2344 MAINTAINER_MODE_FALSE=
2345fi
2346
2347 MAINT=$MAINTAINER_MODE_TRUE
2348
2349
2350
618a8a63
JS
2351
2352
7fbd9d09
FCE
2353mkdir_p="$MKDIR_P"
2354case $mkdir_p in
2355 [\\/$]* | ?:[\\/]*) ;;
2356 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2357esac
2358
98aab489 2359
562d60b0
DB
2360{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
2361echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2f1a1aea
FCE
2362LN_S=$as_ln_s
2363if test "$LN_S" = "ln -s"; then
562d60b0
DB
2364 { echo "$as_me:$LINENO: result: yes" >&5
2365echo "${ECHO_T}yes" >&6; }
2f1a1aea 2366else
562d60b0
DB
2367 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2368echo "${ECHO_T}no, using $LN_S" >&6; }
2f1a1aea
FCE
2369fi
2370
2371ac_ext=c
2372ac_cpp='$CPP $CPPFLAGS'
2373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2378set dummy ${ac_tool_prefix}gcc; ac_word=$2
562d60b0
DB
2379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 2381if test "${ac_cv_prog_CC+set}" = set; then
562d60b0 2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
2383else
2384 if test -n "$CC"; then
2385 ac_cv_prog_CC="$CC" # Let the user override the test.
2386else
2387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH
2389do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
412e1bf7 2392 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2394 ac_cv_prog_CC="${ac_tool_prefix}gcc"
562d60b0 2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2396 break 2
2397 fi
2398done
412e1bf7 2399done
7fbd9d09 2400IFS=$as_save_IFS
2f1a1aea
FCE
2401
2402fi
2403fi
2404CC=$ac_cv_prog_CC
2405if test -n "$CC"; then
562d60b0
DB
2406 { echo "$as_me:$LINENO: result: $CC" >&5
2407echo "${ECHO_T}$CC" >&6; }
2f1a1aea 2408else
562d60b0
DB
2409 { echo "$as_me:$LINENO: result: no" >&5
2410echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
2411fi
2412
7fbd9d09 2413
2f1a1aea
FCE
2414fi
2415if test -z "$ac_cv_prog_CC"; then
2416 ac_ct_CC=$CC
2417 # Extract the first word of "gcc", so it can be a program name with args.
2418set dummy gcc; ac_word=$2
562d60b0
DB
2419{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 2421if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
562d60b0 2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
2423else
2424 if test -n "$ac_ct_CC"; then
2425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2426else
2427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428for as_dir in $PATH
2429do
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
412e1bf7 2432 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2434 ac_cv_prog_ac_ct_CC="gcc"
562d60b0 2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2436 break 2
2437 fi
2438done
412e1bf7 2439done
7fbd9d09 2440IFS=$as_save_IFS
2f1a1aea
FCE
2441
2442fi
2443fi
2444ac_ct_CC=$ac_cv_prog_ac_ct_CC
2445if test -n "$ac_ct_CC"; then
562d60b0
DB
2446 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2447echo "${ECHO_T}$ac_ct_CC" >&6; }
2f1a1aea 2448else
562d60b0
DB
2449 { echo "$as_me:$LINENO: result: no" >&5
2450echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
2451fi
2452
7fbd9d09
FCE
2453 if test "x$ac_ct_CC" = x; then
2454 CC=""
2455 else
2456 case $cross_compiling:$ac_tool_warned in
2457yes:)
562d60b0
DB
2458{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2459whose name does not start with the host triplet. If you think this
2460configuration is useful to you, please write to autoconf@gnu.org." >&5
2461echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2462whose name does not start with the host triplet. If you think this
2463configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7fbd9d09
FCE
2464ac_tool_warned=yes ;;
2465esac
2466 CC=$ac_ct_CC
2467 fi
2f1a1aea
FCE
2468else
2469 CC="$ac_cv_prog_CC"
2470fi
2471
2472if test -z "$CC"; then
7fbd9d09
FCE
2473 if test -n "$ac_tool_prefix"; then
2474 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2f1a1aea 2475set dummy ${ac_tool_prefix}cc; ac_word=$2
562d60b0
DB
2476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 2478if test "${ac_cv_prog_CC+set}" = set; then
562d60b0 2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
2480else
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC="$CC" # Let the user override the test.
2483else
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
412e1bf7 2489 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2491 ac_cv_prog_CC="${ac_tool_prefix}cc"
562d60b0 2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2493 break 2
2494 fi
2495done
412e1bf7 2496done
7fbd9d09 2497IFS=$as_save_IFS
2f1a1aea
FCE
2498
2499fi
2500fi
2501CC=$ac_cv_prog_CC
2502if test -n "$CC"; then
562d60b0
DB
2503 { echo "$as_me:$LINENO: result: $CC" >&5
2504echo "${ECHO_T}$CC" >&6; }
818ba2bc 2505else
562d60b0
DB
2506 { echo "$as_me:$LINENO: result: no" >&5
2507echo "${ECHO_T}no" >&6; }
818ba2bc
MW
2508fi
2509
818ba2bc 2510
7fbd9d09 2511 fi
2f1a1aea
FCE
2512fi
2513if test -z "$CC"; then
2514 # Extract the first word of "cc", so it can be a program name with args.
2515set dummy cc; ac_word=$2
562d60b0
DB
2516{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 2518if test "${ac_cv_prog_CC+set}" = set; then
562d60b0 2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
2520else
2521 if test -n "$CC"; then
2522 ac_cv_prog_CC="$CC" # Let the user override the test.
2523else
2524 ac_prog_rejected=no
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
412e1bf7 2530 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea
FCE
2532 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2533 ac_prog_rejected=yes
2534 continue
2535 fi
2536 ac_cv_prog_CC="cc"
562d60b0 2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2538 break 2
2539 fi
2540done
412e1bf7 2541done
7fbd9d09 2542IFS=$as_save_IFS
2f1a1aea
FCE
2543
2544if test $ac_prog_rejected = yes; then
2545 # We found a bogon in the path, so make sure we never use it.
2546 set dummy $ac_cv_prog_CC
2547 shift
2548 if test $# != 0; then
2549 # We chose a different compiler from the bogus one.
2550 # However, it has the same basename, so the bogon will be chosen
2551 # first if we set CC to just the basename; use the full file name.
2552 shift
2553 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2554 fi
2555fi
2556fi
2557fi
2558CC=$ac_cv_prog_CC
2559if test -n "$CC"; then
562d60b0
DB
2560 { echo "$as_me:$LINENO: result: $CC" >&5
2561echo "${ECHO_T}$CC" >&6; }
2f1a1aea 2562else
562d60b0
DB
2563 { echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
2565fi
2566
7fbd9d09 2567
2f1a1aea
FCE
2568fi
2569if test -z "$CC"; then
2570 if test -n "$ac_tool_prefix"; then
7fbd9d09 2571 for ac_prog in cl.exe
2f1a1aea
FCE
2572 do
2573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2574set dummy $ac_tool_prefix$ac_prog; ac_word=$2
562d60b0
DB
2575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 2577if test "${ac_cv_prog_CC+set}" = set; then
562d60b0 2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
2579else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582else
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
412e1bf7 2588 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2590 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
562d60b0 2591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2592 break 2
2593 fi
2594done
412e1bf7 2595done
7fbd9d09 2596IFS=$as_save_IFS
2f1a1aea
FCE
2597
2598fi
2599fi
2600CC=$ac_cv_prog_CC
2601if test -n "$CC"; then
562d60b0
DB
2602 { echo "$as_me:$LINENO: result: $CC" >&5
2603echo "${ECHO_T}$CC" >&6; }
2f1a1aea 2604else
562d60b0
DB
2605 { echo "$as_me:$LINENO: result: no" >&5
2606echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
2607fi
2608
7fbd9d09 2609
2f1a1aea
FCE
2610 test -n "$CC" && break
2611 done
2612fi
2613if test -z "$CC"; then
2614 ac_ct_CC=$CC
7fbd9d09 2615 for ac_prog in cl.exe
2f1a1aea
FCE
2616do
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618set dummy $ac_prog; ac_word=$2
562d60b0
DB
2619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 2621if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
562d60b0 2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
2623else
2624 if test -n "$ac_ct_CC"; then
2625 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2626else
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
412e1bf7 2632 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2634 ac_cv_prog_ac_ct_CC="$ac_prog"
562d60b0 2635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2636 break 2
2637 fi
2638done
412e1bf7 2639done
7fbd9d09 2640IFS=$as_save_IFS
2f1a1aea
FCE
2641
2642fi
2643fi
2644ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645if test -n "$ac_ct_CC"; then
562d60b0
DB
2646 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2647echo "${ECHO_T}$ac_ct_CC" >&6; }
2f1a1aea 2648else
562d60b0
DB
2649 { echo "$as_me:$LINENO: result: no" >&5
2650echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
2651fi
2652
7fbd9d09 2653
2f1a1aea
FCE
2654 test -n "$ac_ct_CC" && break
2655done
2656
7fbd9d09
FCE
2657 if test "x$ac_ct_CC" = x; then
2658 CC=""
2659 else
2660 case $cross_compiling:$ac_tool_warned in
2661yes:)
562d60b0
DB
2662{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2663whose name does not start with the host triplet. If you think this
2664configuration is useful to you, please write to autoconf@gnu.org." >&5
2665echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2666whose name does not start with the host triplet. If you think this
2667configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7fbd9d09
FCE
2668ac_tool_warned=yes ;;
2669esac
2670 CC=$ac_ct_CC
2671 fi
2f1a1aea
FCE
2672fi
2673
2674fi
2675
2676
562d60b0 2677test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
412e1bf7 2678See \`config.log' for more details." >&5
562d60b0 2679echo "$as_me: error: no acceptable C compiler found in \$PATH
412e1bf7 2680See \`config.log' for more details." >&2;}
562d60b0 2681 { (exit 1); exit 1; }; }
2f1a1aea
FCE
2682
2683# Provide some information about the compiler.
562d60b0
DB
2684echo "$as_me:$LINENO: checking for C compiler version" >&5
2685ac_compiler=`set X $ac_compile; echo $2`
412e1bf7 2686{ (ac_try="$ac_compiler --version >&5"
7fbd9d09
FCE
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
562d60b0 2691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7 2692 (eval "$ac_compiler --version >&5") 2>&5
2f1a1aea 2693 ac_status=$?
562d60b0 2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
2695 (exit $ac_status); }
2696{ (ac_try="$ac_compiler -v >&5"
2697case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700esac
562d60b0 2701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
2702 (eval "$ac_compiler -v >&5") 2>&5
2703 ac_status=$?
562d60b0 2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
2705 (exit $ac_status); }
2706{ (ac_try="$ac_compiler -V >&5"
2707case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
562d60b0 2711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
2712 (eval "$ac_compiler -V >&5") 2>&5
2713 ac_status=$?
562d60b0 2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 2715 (exit $ac_status); }
2f1a1aea 2716
412e1bf7
FCE
2717cat >conftest.$ac_ext <<_ACEOF
2718/* confdefs.h. */
2719_ACEOF
2720cat confdefs.h >>conftest.$ac_ext
2721cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea 2722/* end confdefs.h. */
412e1bf7 2723
2f1a1aea
FCE
2724int
2725main ()
2726{
2727
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732ac_clean_files_save=$ac_clean_files
562d60b0 2733ac_clean_files="$ac_clean_files a.out a.exe b.out"
2f1a1aea
FCE
2734# Try to create an executable without -o first, disregard a.out.
2735# It will help us diagnose broken compilers, and finding out an intuition
2736# of exeext.
562d60b0
DB
2737{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2738echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2739ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2740#
2741# List of possible output files, starting from the most likely.
2742# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2743# only as a last resort. b.out is created by i960 compilers.
2744ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2745#
2746# The IRIX 6 linker writes into existing files which may not be
2747# executable, retaining their permissions. Remove them first so a
2748# subsequent execution test works.
7fbd9d09
FCE
2749ac_rmfiles=
2750for ac_file in $ac_files
2751do
2752 case $ac_file in
562d60b0 2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
7fbd9d09
FCE
2754 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2755 esac
2756done
2757rm -f $ac_rmfiles
2758
412e1bf7 2759if { (ac_try="$ac_link_default"
7fbd9d09
FCE
2760case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763esac
562d60b0 2764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7fbd9d09 2765 (eval "$ac_link_default") 2>&5
2f1a1aea 2766 ac_status=$?
562d60b0 2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 2768 (exit $ac_status); }; then
7fbd9d09
FCE
2769 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2770# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2771# in a Makefile. We should not override ac_cv_exeext if it was cached,
2772# so that the user can short-circuit this test for compilers unknown to
2773# Autoconf.
2774for ac_file in $ac_files ''
2f1a1aea
FCE
2775do
2776 test -f "$ac_file" || continue
2777 case $ac_file in
562d60b0 2778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2f1a1aea
FCE
2779 ;;
2780 [ab].out )
2781 # We found the default executable, but exeext='' is most
2782 # certainly right.
2783 break;;
2784 *.* )
412e1bf7 2785 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
7fbd9d09
FCE
2786 then :; else
2787 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2788 fi
2789 # We set ac_cv_exeext here because the later test for it is not
2790 # safe: cross compilers may not add the suffix if given an `-o'
2791 # argument, so we may need to know it at that point already.
2792 # Even if this section looks crufty: it has the advantage of
2793 # actually working.
2f1a1aea
FCE
2794 break;;
2795 * )
2796 break;;
2797 esac
2798done
7fbd9d09
FCE
2799test "$ac_cv_exeext" = no && ac_cv_exeext=
2800
2f1a1aea 2801else
7fbd9d09
FCE
2802 ac_file=''
2803fi
412e1bf7 2804
562d60b0
DB
2805{ echo "$as_me:$LINENO: result: $ac_file" >&5
2806echo "${ECHO_T}$ac_file" >&6; }
412e1bf7 2807if test -z "$ac_file"; then
562d60b0 2808 echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
2809sed 's/^/| /' conftest.$ac_ext >&5
2810
562d60b0 2811{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
412e1bf7 2812See \`config.log' for more details." >&5
562d60b0 2813echo "$as_me: error: C compiler cannot create executables
412e1bf7 2814See \`config.log' for more details." >&2;}
562d60b0 2815 { (exit 77); exit 77; }; }
2f1a1aea 2816fi
412e1bf7 2817
2f1a1aea 2818ac_exeext=$ac_cv_exeext
2f1a1aea 2819
7fbd9d09 2820# Check that the compiler produces executables we can run. If not, either
2f1a1aea 2821# the compiler is broken, or we cross compile.
562d60b0
DB
2822{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2823echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
412e1bf7 2824# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2f1a1aea
FCE
2825# If not cross compiling, check that we can run a simple program.
2826if test "$cross_compiling" != yes; then
2827 if { ac_try='./$ac_file'
412e1bf7 2828 { (case "(($ac_try" in
7fbd9d09
FCE
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2831esac
562d60b0 2832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7fbd9d09 2833 (eval "$ac_try") 2>&5
2f1a1aea 2834 ac_status=$?
562d60b0 2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 2836 (exit $ac_status); }; }; then
2f1a1aea
FCE
2837 cross_compiling=no
2838 else
2839 if test "$cross_compiling" = maybe; then
2840 cross_compiling=yes
2841 else
562d60b0 2842 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2f1a1aea 2843If you meant to cross compile, use \`--host'.
412e1bf7 2844See \`config.log' for more details." >&5
562d60b0 2845echo "$as_me: error: cannot run C compiled programs.
412e1bf7
FCE
2846If you meant to cross compile, use \`--host'.
2847See \`config.log' for more details." >&2;}
562d60b0 2848 { (exit 1); exit 1; }; }
2f1a1aea
FCE
2849 fi
2850 fi
2851fi
562d60b0
DB
2852{ echo "$as_me:$LINENO: result: yes" >&5
2853echo "${ECHO_T}yes" >&6; }
2f1a1aea 2854
562d60b0 2855rm -f a.out a.exe conftest$ac_cv_exeext b.out
2f1a1aea 2856ac_clean_files=$ac_clean_files_save
7fbd9d09 2857# Check that the compiler produces executables we can run. If not, either
2f1a1aea 2858# the compiler is broken, or we cross compile.
562d60b0
DB
2859{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2860echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2861{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2862echo "${ECHO_T}$cross_compiling" >&6; }
7fbd9d09 2863
562d60b0
DB
2864{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2865echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
412e1bf7 2866if { (ac_try="$ac_link"
7fbd9d09
FCE
2867case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870esac
562d60b0 2871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7fbd9d09 2872 (eval "$ac_link") 2>&5
2f1a1aea 2873 ac_status=$?
562d60b0 2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 2875 (exit $ac_status); }; then
2f1a1aea
FCE
2876 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2877# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2878# work properly (i.e., refer to `conftest.exe'), while it won't with
2879# `rm'.
2880for ac_file in conftest.exe conftest conftest.*; do
2881 test -f "$ac_file" || continue
2882 case $ac_file in
562d60b0 2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2f1a1aea 2884 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2f1a1aea
FCE
2885 break;;
2886 * ) break;;
2887 esac
2888done
2889else
562d60b0 2890 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
412e1bf7 2891See \`config.log' for more details." >&5
562d60b0 2892echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
412e1bf7 2893See \`config.log' for more details." >&2;}
562d60b0 2894 { (exit 1); exit 1; }; }
2f1a1aea 2895fi
412e1bf7 2896
2f1a1aea 2897rm -f conftest$ac_cv_exeext
562d60b0
DB
2898{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2899echo "${ECHO_T}$ac_cv_exeext" >&6; }
2f1a1aea
FCE
2900
2901rm -f conftest.$ac_ext
2902EXEEXT=$ac_cv_exeext
2903ac_exeext=$EXEEXT
562d60b0
DB
2904{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2905echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
412e1bf7 2906if test "${ac_cv_objext+set}" = set; then
562d60b0 2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea 2908else
412e1bf7
FCE
2909 cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
2914/* end confdefs.h. */
2915
2916int
2917main ()
2918{
2919
2920 ;
2921 return 0;
2922}
2923_ACEOF
2924rm -f conftest.o conftest.obj
412e1bf7 2925if { (ac_try="$ac_compile"
7fbd9d09
FCE
2926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
562d60b0 2930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7fbd9d09 2931 (eval "$ac_compile") 2>&5
2f1a1aea 2932 ac_status=$?
562d60b0 2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 2934 (exit $ac_status); }; then
7fbd9d09
FCE
2935 for ac_file in conftest.o conftest.obj conftest.*; do
2936 test -f "$ac_file" || continue;
2f1a1aea 2937 case $ac_file in
562d60b0 2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2f1a1aea
FCE
2939 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2940 break;;
2941 esac
2942done
2943else
562d60b0 2944 echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
562d60b0 2947{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
412e1bf7 2948See \`config.log' for more details." >&5
562d60b0 2949echo "$as_me: error: cannot compute suffix of object files: cannot compile
412e1bf7 2950See \`config.log' for more details." >&2;}
562d60b0 2951 { (exit 1); exit 1; }; }
2f1a1aea 2952fi
412e1bf7 2953
2f1a1aea
FCE
2954rm -f conftest.$ac_cv_objext conftest.$ac_ext
2955fi
562d60b0
DB
2956{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2957echo "${ECHO_T}$ac_cv_objext" >&6; }
2f1a1aea
FCE
2958OBJEXT=$ac_cv_objext
2959ac_objext=$OBJEXT
562d60b0
DB
2960{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2961echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
412e1bf7 2962if test "${ac_cv_c_compiler_gnu+set}" = set; then
562d60b0 2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea 2964else
412e1bf7
FCE
2965 cat >conftest.$ac_ext <<_ACEOF
2966/* confdefs.h. */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
2970/* end confdefs.h. */
2971
2972int
2973main ()
2974{
2975#ifndef __GNUC__
2976 choke me
2977#endif
2978
2979 ;
2980 return 0;
2981}
2982_ACEOF
412e1bf7
FCE
2983rm -f conftest.$ac_objext
2984if { (ac_try="$ac_compile"
2985case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
562d60b0 2989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
2990 (eval "$ac_compile") 2>conftest.er1
2991 ac_status=$?
2992 grep -v '^ *+' conftest.er1 >conftest.err
2993 rm -f conftest.er1
2994 cat conftest.err >&5
562d60b0 2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
2996 (exit $ac_status); } && {
2997 test -z "$ac_c_werror_flag" ||
2998 test ! -s conftest.err
2999 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3000 ac_compiler_gnu=yes
3001else
562d60b0 3002 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 ac_compiler_gnu=no
2f1a1aea 3006fi
412e1bf7 3007
7fbd9d09 3008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
3009ac_cv_c_compiler_gnu=$ac_compiler_gnu
3010
3011fi
562d60b0
DB
3012{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3013echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3014GCC=`test $ac_compiler_gnu = yes && echo yes`
2f1a1aea
FCE
3015ac_test_CFLAGS=${CFLAGS+set}
3016ac_save_CFLAGS=$CFLAGS
562d60b0
DB
3017{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3018echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
412e1bf7 3019if test "${ac_cv_prog_cc_g+set}" = set; then
562d60b0 3020 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea 3021else
7fbd9d09
FCE
3022 ac_save_c_werror_flag=$ac_c_werror_flag
3023 ac_c_werror_flag=yes
3024 ac_cv_prog_cc_g=no
3025 CFLAGS="-g"
412e1bf7
FCE
3026 cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h. */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3031/* end confdefs.h. */
3032
3033int
3034main ()
3035{
3036
3037 ;
3038 return 0;
3039}
3040_ACEOF
412e1bf7
FCE
3041rm -f conftest.$ac_objext
3042if { (ac_try="$ac_compile"
3043case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046esac
562d60b0 3047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
3048 (eval "$ac_compile") 2>conftest.er1
3049 ac_status=$?
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
562d60b0 3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
3054 (exit $ac_status); } && {
3055 test -z "$ac_c_werror_flag" ||
3056 test ! -s conftest.err
3057 } && test -s conftest.$ac_objext; then
7fbd9d09
FCE
3058 ac_cv_prog_cc_g=yes
3059else
562d60b0 3060 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063 CFLAGS=""
3064 cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h. */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
7fbd9d09
FCE
3069/* end confdefs.h. */
3070
3071int
3072main ()
3073{
3074
3075 ;
3076 return 0;
3077}
3078_ACEOF
412e1bf7
FCE
3079rm -f conftest.$ac_objext
3080if { (ac_try="$ac_compile"
3081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
562d60b0 3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
3086 (eval "$ac_compile") 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
562d60b0 3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
3092 (exit $ac_status); } && {
3093 test -z "$ac_c_werror_flag" ||
3094 test ! -s conftest.err
3095 } && test -s conftest.$ac_objext; then
3096 :
4a3c19da 3097else
562d60b0 3098 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
3099sed 's/^/| /' conftest.$ac_ext >&5
3100
3101 ac_c_werror_flag=$ac_save_c_werror_flag
7fbd9d09 3102 CFLAGS="-g"
412e1bf7
FCE
3103 cat >conftest.$ac_ext <<_ACEOF
3104/* confdefs.h. */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
7fbd9d09
FCE
3108/* end confdefs.h. */
3109
3110int
3111main ()
3112{
3113
3114 ;
3115 return 0;
3116}
3117_ACEOF
412e1bf7
FCE
3118rm -f conftest.$ac_objext
3119if { (ac_try="$ac_compile"
3120case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123esac
562d60b0 3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
3125 (eval "$ac_compile") 2>conftest.er1
3126 ac_status=$?
3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
562d60b0 3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
3131 (exit $ac_status); } && {
3132 test -z "$ac_c_werror_flag" ||
3133 test ! -s conftest.err
3134 } && test -s conftest.$ac_objext; then
2f1a1aea 3135 ac_cv_prog_cc_g=yes
412e1bf7 3136else
562d60b0 3137 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
3138sed 's/^/| /' conftest.$ac_ext >&5
3139
3140
7fbd9d09 3141fi
412e1bf7 3142
7fbd9d09 3143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea 3144fi
412e1bf7 3145
7fbd9d09
FCE
3146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147fi
412e1bf7 3148
7fbd9d09
FCE
3149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 ac_c_werror_flag=$ac_save_c_werror_flag
2f1a1aea 3151fi
562d60b0
DB
3152{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3153echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2f1a1aea
FCE
3154if test "$ac_test_CFLAGS" = set; then
3155 CFLAGS=$ac_save_CFLAGS
3156elif test $ac_cv_prog_cc_g = yes; then
3157 if test "$GCC" = yes; then
3158 CFLAGS="-g -O2"
3159 else
3160 CFLAGS="-g"
3161 fi
3162else
3163 if test "$GCC" = yes; then
3164 CFLAGS="-O2"
3165 else
3166 CFLAGS=
3167 fi
3168fi
562d60b0
DB
3169{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3170echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
412e1bf7 3171if test "${ac_cv_prog_cc_c89+set}" = set; then
562d60b0 3172 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea 3173else
7fbd9d09 3174 ac_cv_prog_cc_c89=no
2f1a1aea 3175ac_save_CC=$CC
412e1bf7
FCE
3176cat >conftest.$ac_ext <<_ACEOF
3177/* confdefs.h. */
3178_ACEOF
3179cat confdefs.h >>conftest.$ac_ext
3180cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3181/* end confdefs.h. */
3182#include <stdarg.h>
3183#include <stdio.h>
3184#include <sys/types.h>
3185#include <sys/stat.h>
3186/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3187struct buf { int x; };
3188FILE * (*rcsopen) (struct buf *, struct stat *, int);
3189static char *e (p, i)
3190 char **p;
3191 int i;
3192{
3193 return p[i];
3194}
3195static char *f (char * (*g) (char **, int), char **p, ...)
3196{
3197 char *s;
3198 va_list v;
3199 va_start (v,p);
3200 s = g (p, va_arg (v,int));
3201 va_end (v);
3202 return s;
3203}
3204
3205/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3206 function prototypes and stuff, but not '\xHH' hex character constants.
3207 These don't provoke an error unfortunately, instead are silently treated
7fbd9d09 3208 as 'x'. The following induces an error, until -std is added to get
2f1a1aea
FCE
3209 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3210 array size at least. It's necessary to write '\x00'==0 to get something
7fbd9d09 3211 that's true only with -std. */
2f1a1aea
FCE
3212int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3213
7fbd9d09
FCE
3214/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3215 inside strings and character constants. */
3216#define FOO(x) 'x'
3217int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3218
2f1a1aea
FCE
3219int test (int i, double x);
3220struct s1 {int (*f) (int a);};
3221struct s2 {int (*f) (double a);};
3222int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3223int argc;
3224char **argv;
3225int
3226main ()
3227{
3228return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3229 ;
3230 return 0;
3231}
3232_ACEOF
7fbd9d09
FCE
3233for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3234 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2f1a1aea
FCE
3235do
3236 CC="$ac_save_CC $ac_arg"
412e1bf7
FCE
3237 rm -f conftest.$ac_objext
3238if { (ac_try="$ac_compile"
3239case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242esac
562d60b0 3243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
3244 (eval "$ac_compile") 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
562d60b0 3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.$ac_objext; then
7fbd9d09 3254 ac_cv_prog_cc_c89=$ac_arg
412e1bf7 3255else
562d60b0 3256 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
3257sed 's/^/| /' conftest.$ac_ext >&5
3258
3259
2f1a1aea 3260fi
412e1bf7 3261
7fbd9d09
FCE
3262rm -f core conftest.err conftest.$ac_objext
3263 test "x$ac_cv_prog_cc_c89" != "xno" && break
2f1a1aea 3264done
7fbd9d09 3265rm -f conftest.$ac_ext
2f1a1aea
FCE
3266CC=$ac_save_CC
3267
3268fi
7fbd9d09
FCE
3269# AC_CACHE_VAL
3270case "x$ac_cv_prog_cc_c89" in
3271 x)
562d60b0
DB
3272 { echo "$as_me:$LINENO: result: none needed" >&5
3273echo "${ECHO_T}none needed" >&6; } ;;
7fbd9d09 3274 xno)
562d60b0
DB
3275 { echo "$as_me:$LINENO: result: unsupported" >&5
3276echo "${ECHO_T}unsupported" >&6; } ;;
2f1a1aea 3277 *)
7fbd9d09 3278 CC="$CC $ac_cv_prog_cc_c89"
562d60b0
DB
3279 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3280echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2f1a1aea
FCE
3281esac
3282
818ba2bc 3283
818ba2bc
MW
3284ac_ext=c
3285ac_cpp='$CPP $CPPFLAGS'
3286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289DEPDIR="${am__leading_dot}deps"
3290
7fbd9d09 3291ac_config_commands="$ac_config_commands depfiles"
818ba2bc
MW
3292
3293
3294am_make=${MAKE-make}
3295cat > confinc << 'END'
3296am__doit:
562d60b0 3297 @echo done
8ae7a94a
FCE
3298.PHONY: am__doit
3299END
3300# If we don't find an include directive, just comment out the code.
562d60b0
DB
3301{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3302echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
8ae7a94a
FCE
3303am__include="#"
3304am__quote=
3305_am_result=none
3306# First try GNU make style include.
3307echo "include confinc" > confmf
562d60b0
DB
3308# We grep out `Entering directory' and `Leaving directory'
3309# messages which can occur if `w' ends up in MAKEFLAGS.
3310# In particular we don't look at `^make:' because GNU make might
3311# be invoked under some other name (usually "gmake"), in which
3312# case it prints its new name instead of `make'.
3313if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3314 am__include=include
3315 am__quote=
3316 _am_result=GNU
3317fi
8ae7a94a
FCE
3318# Now try BSD make style include.
3319if test "$am__include" = "#"; then
3320 echo '.include "confinc"' > confmf
562d60b0
DB
3321 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3322 am__include=.include
3323 am__quote="\""
3324 _am_result=BSD
3325 fi
8ae7a94a 3326fi
2f1a1aea 3327
8ae7a94a 3328
562d60b0
DB
3329{ echo "$as_me:$LINENO: result: $_am_result" >&5
3330echo "${ECHO_T}$_am_result" >&6; }
2f1a1aea
FCE
3331rm -f confinc confmf
3332
7fbd9d09 3333# Check whether --enable-dependency-tracking was given.
412e1bf7 3334if test "${enable_dependency_tracking+set}" = set; then
7fbd9d09
FCE
3335 enableval=$enable_dependency_tracking;
3336fi
2f1a1aea 3337
2f1a1aea
FCE
3338if test "x$enable_dependency_tracking" != xno; then
3339 am_depcomp="$ac_aux_dir/depcomp"
3340 AMDEPBACKSLASH='\'
3341fi
7fbd9d09 3342 if test "x$enable_dependency_tracking" != xno; then
2f1a1aea
FCE
3343 AMDEP_TRUE=
3344 AMDEP_FALSE='#'
3345else
3346 AMDEP_TRUE='#'
3347 AMDEP_FALSE=
3348fi
3349
3350
3351
2f1a1aea
FCE
3352depcc="$CC" am_compiler_list=
3353
562d60b0
DB
3354{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3355echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
412e1bf7 3356if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
562d60b0 3357 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
3358else
3359 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3360 # We make a subdir and do the tests there. Otherwise we can end up
3361 # making bogus files that we don't know about and never remove. For
3362 # instance it was reported that on HP-UX the gcc test will end up
3363 # making a dummy file named `D' -- because `-MD' means `put the output
3364 # in D'.
3365 mkdir conftest.dir
3366 # Copy depcomp to subdir because otherwise we won't find it if we're
3367 # using a relative directory.
3368 cp "$am_depcomp" conftest.dir
3369 cd conftest.dir
3370 # We will build objects and dependencies in a subdirectory because
3371 # it helps to detect inapplicable dependency modes. For instance
3372 # both Tru64's cc and ICC support -MD to output dependencies as a
3373 # side effect of compilation, but ICC will put the dependencies in
3374 # the current directory while Tru64 will put them in the object
3375 # directory.
3376 mkdir sub
3377
3378 am_cv_CC_dependencies_compiler_type=none
3379 if test "$am_compiler_list" = ""; then
3380 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3381 fi
3382 for depmode in $am_compiler_list; do
3383 # Setup a source with many dependencies, because some compilers
3384 # like to wrap large dependency lists on column 80 (with \), and
3385 # we should not choose a depcomp mode which is confused by this.
3386 #
3387 # We need to recreate these files for each test, as the compiler may
3388 # overwrite some of them when testing with obscure command lines.
3389 # This happens at least with the AIX C compiler.
3390 : > sub/conftest.c
3391 for i in 1 2 3 4 5 6; do
3392 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3393 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3394 # Solaris 8's {/usr,}/bin/sh.
3395 touch sub/conftst$i.h
3396 done
3397 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3398
3399 case $depmode in
3400 nosideeffect)
3401 # after this tag, mechanisms are not by side-effect, so they'll
3402 # only be used when explicitly requested
3403 if test "x$enable_dependency_tracking" = xyes; then
3404 continue
3405 else
3406 break
3407 fi
3408 ;;
3409 none) break ;;
3410 esac
562d60b0
DB
3411 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3412 # mode. It turns out that the SunPro C++ compiler does not properly
3413 # handle `-M -o', and we need to detect this.
2f1a1aea 3414 if depmode=$depmode \
562d60b0 3415 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2f1a1aea 3416 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
562d60b0 3417 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2f1a1aea 3418 >/dev/null 2>conftest.err &&
7fbd9d09 3419 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea 3420 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
562d60b0 3421 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
3422 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3423 # icc doesn't choke on unknown options, it will just issue warnings
3424 # or remarks (even with -Werror). So we grep stderr for any message
3425 # that says an option was ignored or not supported.
3426 # When given -MP, icc 7.0 and 7.1 complain thusly:
3427 # icc: Command line warning: ignoring option '-M'; no argument required
3428 # The diagnosis changed in icc 8.0:
3429 # icc: Command line remark: option '-MP' not supported
3430 if (grep 'ignoring option' conftest.err ||
3431 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3432 am_cv_CC_dependencies_compiler_type=$depmode
3433 break
3434 fi
3435 fi
3436 done
3437
3438 cd ..
3439 rm -rf conftest.dir
3440else
3441 am_cv_CC_dependencies_compiler_type=none
3442fi
3443
3444fi
562d60b0
DB
3445{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3446echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
3447CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3448
7fbd9d09 3449 if
2f1a1aea
FCE
3450 test "x$enable_dependency_tracking" != xno \
3451 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3452 am__fastdepCC_TRUE=
3453 am__fastdepCC_FALSE='#'
3454else
3455 am__fastdepCC_TRUE='#'
3456 am__fastdepCC_FALSE=
3457fi
3458
3459
7fbd9d09 3460ac_ext=cpp
2f1a1aea
FCE
3461ac_cpp='$CXXCPP $CPPFLAGS'
3462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7fbd9d09
FCE
3465if test -z "$CXX"; then
3466 if test -n "$CCC"; then
3467 CXX=$CCC
3468 else
3469 if test -n "$ac_tool_prefix"; then
3470 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2f1a1aea
FCE
3471 do
3472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3473set dummy $ac_tool_prefix$ac_prog; ac_word=$2
562d60b0
DB
3474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 3476if test "${ac_cv_prog_CXX+set}" = set; then
562d60b0 3477 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
3478else
3479 if test -n "$CXX"; then
3480 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3481else
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
412e1bf7 3487 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 3489 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
562d60b0 3490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3491 break 2
3492 fi
3493done
412e1bf7 3494done
7fbd9d09 3495IFS=$as_save_IFS
2f1a1aea
FCE
3496
3497fi
3498fi
3499CXX=$ac_cv_prog_CXX
3500if test -n "$CXX"; then
562d60b0
DB
3501 { echo "$as_me:$LINENO: result: $CXX" >&5
3502echo "${ECHO_T}$CXX" >&6; }
2f1a1aea 3503else
562d60b0
DB
3504 { echo "$as_me:$LINENO: result: no" >&5
3505echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
3506fi
3507
7fbd9d09 3508
2f1a1aea
FCE
3509 test -n "$CXX" && break
3510 done
3511fi
3512if test -z "$CXX"; then
3513 ac_ct_CXX=$CXX
7fbd9d09 3514 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2f1a1aea
FCE
3515do
3516 # Extract the first word of "$ac_prog", so it can be a program name with args.
3517set dummy $ac_prog; ac_word=$2
562d60b0
DB
3518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 3520if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
562d60b0 3521 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
3522else
3523 if test -n "$ac_ct_CXX"; then
3524 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3525else
3526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH
3528do
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
412e1bf7 3531 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 3533 ac_cv_prog_ac_ct_CXX="$ac_prog"
562d60b0 3534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3535 break 2
3536 fi
3537done
412e1bf7 3538done
7fbd9d09 3539IFS=$as_save_IFS
2f1a1aea
FCE
3540
3541fi
3542fi
3543ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3544if test -n "$ac_ct_CXX"; then
562d60b0
DB
3545 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3546echo "${ECHO_T}$ac_ct_CXX" >&6; }
2f1a1aea 3547else
562d60b0
DB
3548 { echo "$as_me:$LINENO: result: no" >&5
3549echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
3550fi
3551
7fbd9d09 3552
2f1a1aea
FCE
3553 test -n "$ac_ct_CXX" && break
3554done
2f1a1aea 3555
7fbd9d09
FCE
3556 if test "x$ac_ct_CXX" = x; then
3557 CXX="g++"
3558 else
3559 case $cross_compiling:$ac_tool_warned in
3560yes:)
562d60b0
DB
3561{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3562whose name does not start with the host triplet. If you think this
3563configuration is useful to you, please write to autoconf@gnu.org." >&5
3564echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3565whose name does not start with the host triplet. If you think this
3566configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7fbd9d09
FCE
3567ac_tool_warned=yes ;;
3568esac
3569 CXX=$ac_ct_CXX
3570 fi
2f1a1aea
FCE
3571fi
3572
7fbd9d09
FCE
3573 fi
3574fi
2f1a1aea 3575# Provide some information about the compiler.
562d60b0
DB
3576echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3577ac_compiler=`set X $ac_compile; echo $2`
412e1bf7 3578{ (ac_try="$ac_compiler --version >&5"
7fbd9d09
FCE
3579case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582esac
562d60b0 3583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7 3584 (eval "$ac_compiler --version >&5") 2>&5
2f1a1aea 3585 ac_status=$?
562d60b0 3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
3587 (exit $ac_status); }
3588{ (ac_try="$ac_compiler -v >&5"
3589case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592esac
562d60b0 3593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
3594 (eval "$ac_compiler -v >&5") 2>&5
3595 ac_status=$?
562d60b0 3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
3597 (exit $ac_status); }
3598{ (ac_try="$ac_compiler -V >&5"
3599case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602esac
562d60b0 3603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
3604 (eval "$ac_compiler -V >&5") 2>&5
3605 ac_status=$?
562d60b0 3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 3607 (exit $ac_status); }
2f1a1aea 3608
562d60b0
DB
3609{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3610echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
412e1bf7 3611if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
562d60b0 3612 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea 3613else
412e1bf7
FCE
3614 cat >conftest.$ac_ext <<_ACEOF
3615/* confdefs.h. */
3616_ACEOF
3617cat confdefs.h >>conftest.$ac_ext
3618cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3619/* end confdefs.h. */
3620
3621int
3622main ()
3623{
3624#ifndef __GNUC__
3625 choke me
3626#endif
3627
3628 ;
3629 return 0;
3630}
3631_ACEOF
412e1bf7
FCE
3632rm -f conftest.$ac_objext
3633if { (ac_try="$ac_compile"
3634case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637esac
562d60b0 3638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
3639 (eval "$ac_compile") 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
562d60b0 3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
3645 (exit $ac_status); } && {
3646 test -z "$ac_cxx_werror_flag" ||
3647 test ! -s conftest.err
3648 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3649 ac_compiler_gnu=yes
3650else
562d60b0 3651 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 ac_compiler_gnu=no
2f1a1aea 3655fi
412e1bf7 3656
7fbd9d09 3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
3658ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3659
3660fi
562d60b0
DB
3661{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3662echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3663GXX=`test $ac_compiler_gnu = yes && echo yes`
2f1a1aea
FCE
3664ac_test_CXXFLAGS=${CXXFLAGS+set}
3665ac_save_CXXFLAGS=$CXXFLAGS
562d60b0
DB
3666{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3667echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
412e1bf7 3668if test "${ac_cv_prog_cxx_g+set}" = set; then
562d60b0 3669 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea 3670else
7fbd9d09
FCE
3671 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3672 ac_cxx_werror_flag=yes
3673 ac_cv_prog_cxx_g=no
3674 CXXFLAGS="-g"
412e1bf7
FCE
3675 cat >conftest.$ac_ext <<_ACEOF
3676/* confdefs.h. */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3680/* end confdefs.h. */
3681
3682int
3683main ()
3684{
3685
3686 ;
3687 return 0;
3688}
3689_ACEOF
412e1bf7
FCE
3690rm -f conftest.$ac_objext
3691if { (ac_try="$ac_compile"
3692case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695esac
562d60b0 3696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
3697 (eval "$ac_compile") 2>conftest.er1
3698 ac_status=$?
3699 grep -v '^ *+' conftest.er1 >conftest.err
3700 rm -f conftest.er1
3701 cat conftest.err >&5
562d60b0 3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
3703 (exit $ac_status); } && {
3704 test -z "$ac_cxx_werror_flag" ||
3705 test ! -s conftest.err
3706 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
3707 ac_cv_prog_cxx_g=yes
3708else
562d60b0 3709 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
3710sed 's/^/| /' conftest.$ac_ext >&5
3711
3712 CXXFLAGS=""
3713 cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h. */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea 3718/* end confdefs.h. */
7fbd9d09 3719
2f1a1aea
FCE
3720int
3721main ()
3722{
7fbd9d09 3723
2f1a1aea
FCE
3724 ;
3725 return 0;
3726}
3727_ACEOF
412e1bf7
FCE
3728rm -f conftest.$ac_objext
3729if { (ac_try="$ac_compile"
3730case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733esac
562d60b0 3734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
3735 (eval "$ac_compile") 2>conftest.er1
3736 ac_status=$?
3737 grep -v '^ *+' conftest.er1 >conftest.err
3738 rm -f conftest.er1
3739 cat conftest.err >&5
562d60b0 3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
3741 (exit $ac_status); } && {
3742 test -z "$ac_cxx_werror_flag" ||
3743 test ! -s conftest.err
3744 } && test -s conftest.$ac_objext; then
3745 :
4a3c19da 3746else
562d60b0 3747 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7fbd9d09 3751 CXXFLAGS="-g"
412e1bf7
FCE
3752 cat >conftest.$ac_ext <<_ACEOF
3753/* confdefs.h. */
3754_ACEOF
3755cat confdefs.h >>conftest.$ac_ext
3756cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea 3757/* end confdefs.h. */
7fbd9d09 3758
2f1a1aea
FCE
3759int
3760main ()
3761{
7fbd9d09 3762
2f1a1aea
FCE
3763 ;
3764 return 0;
3765}
4a3c19da 3766_ACEOF
412e1bf7
FCE
3767rm -f conftest.$ac_objext
3768if { (ac_try="$ac_compile"
3769case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772esac
562d60b0 3773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
3774 (eval "$ac_compile") 2>conftest.er1
3775 ac_status=$?
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
562d60b0 3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
3780 (exit $ac_status); } && {
3781 test -z "$ac_cxx_werror_flag" ||
3782 test ! -s conftest.err
3783 } && test -s conftest.$ac_objext; then
4a3c19da 3784 ac_cv_prog_cxx_g=yes
412e1bf7 3785else
562d60b0 3786 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789
70d28673 3790fi
412e1bf7 3791
7fbd9d09
FCE
3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793fi
412e1bf7 3794
7fbd9d09 3795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e0d2ebf 3796fi
412e1bf7 3797
7fbd9d09
FCE
3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3800fi
562d60b0
DB
3801{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3802echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7fbd9d09
FCE
3803if test "$ac_test_CXXFLAGS" = set; then
3804 CXXFLAGS=$ac_save_CXXFLAGS
3805elif test $ac_cv_prog_cxx_g = yes; then
3806 if test "$GXX" = yes; then
3807 CXXFLAGS="-g -O2"
3808 else
3809 CXXFLAGS="-g"
3810 fi
3811else
3812 if test "$GXX" = yes; then
3813 CXXFLAGS="-O2"
3814 else
3815 CXXFLAGS=
3816 fi
3817fi
2f1a1aea
FCE
3818ac_ext=c
3819ac_cpp='$CPP $CPPFLAGS'
3820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3822ac_compiler_gnu=$ac_cv_c_compiler_gnu
3823
3824depcc="$CXX" am_compiler_list=
3825
562d60b0
DB
3826{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3827echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
412e1bf7 3828if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
562d60b0 3829 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
3830else
3831 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3832 # We make a subdir and do the tests there. Otherwise we can end up
3833 # making bogus files that we don't know about and never remove. For
3834 # instance it was reported that on HP-UX the gcc test will end up
3835 # making a dummy file named `D' -- because `-MD' means `put the output
3836 # in D'.
3837 mkdir conftest.dir
3838 # Copy depcomp to subdir because otherwise we won't find it if we're
3839 # using a relative directory.
3840 cp "$am_depcomp" conftest.dir
3841 cd conftest.dir
3842 # We will build objects and dependencies in a subdirectory because
3843 # it helps to detect inapplicable dependency modes. For instance
3844 # both Tru64's cc and ICC support -MD to output dependencies as a
3845 # side effect of compilation, but ICC will put the dependencies in
3846 # the current directory while Tru64 will put them in the object
3847 # directory.
3848 mkdir sub
3849
3850 am_cv_CXX_dependencies_compiler_type=none
3851 if test "$am_compiler_list" = ""; then
3852 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3853 fi
3854 for depmode in $am_compiler_list; do
3855 # Setup a source with many dependencies, because some compilers
3856 # like to wrap large dependency lists on column 80 (with \), and
3857 # we should not choose a depcomp mode which is confused by this.
3858 #
3859 # We need to recreate these files for each test, as the compiler may
3860 # overwrite some of them when testing with obscure command lines.
3861 # This happens at least with the AIX C compiler.
3862 : > sub/conftest.c
3863 for i in 1 2 3 4 5 6; do
3864 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3865 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3866 # Solaris 8's {/usr,}/bin/sh.
3867 touch sub/conftst$i.h
3868 done
3869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3870
3871 case $depmode in
3872 nosideeffect)
3873 # after this tag, mechanisms are not by side-effect, so they'll
3874 # only be used when explicitly requested
3875 if test "x$enable_dependency_tracking" = xyes; then
3876 continue
3877 else
3878 break
3879 fi
3880 ;;
3881 none) break ;;
3882 esac
562d60b0
DB
3883 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3884 # mode. It turns out that the SunPro C++ compiler does not properly
3885 # handle `-M -o', and we need to detect this.
2f1a1aea 3886 if depmode=$depmode \
562d60b0 3887 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2f1a1aea 3888 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
562d60b0 3889 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2f1a1aea 3890 >/dev/null 2>conftest.err &&
7fbd9d09 3891 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea 3892 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
562d60b0 3893 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
3894 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3895 # icc doesn't choke on unknown options, it will just issue warnings
3896 # or remarks (even with -Werror). So we grep stderr for any message
3897 # that says an option was ignored or not supported.
3898 # When given -MP, icc 7.0 and 7.1 complain thusly:
3899 # icc: Command line warning: ignoring option '-M'; no argument required
3900 # The diagnosis changed in icc 8.0:
3901 # icc: Command line remark: option '-MP' not supported
3902 if (grep 'ignoring option' conftest.err ||
3903 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3904 am_cv_CXX_dependencies_compiler_type=$depmode
3905 break
3906 fi
3907 fi
3908 done
3909
3910 cd ..
3911 rm -rf conftest.dir
3912else
3913 am_cv_CXX_dependencies_compiler_type=none
3914fi
3915
3916fi
562d60b0
DB
3917{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3918echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
3919CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3920
7fbd9d09 3921 if
2f1a1aea
FCE
3922 test "x$enable_dependency_tracking" != xno \
3923 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3924 am__fastdepCXX_TRUE=
3925 am__fastdepCXX_FALSE='#'
3926else
3927 am__fastdepCXX_TRUE='#'
3928 am__fastdepCXX_FALSE=
3929fi
3930
3931
3932ac_ext=c
3933ac_cpp='$CPP $CPPFLAGS'
3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936ac_compiler_gnu=$ac_cv_c_compiler_gnu
562d60b0
DB
3937{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3938echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2f1a1aea
FCE
3939# On Suns, sometimes $CPP names a directory.
3940if test -n "$CPP" && test -d "$CPP"; then
3941 CPP=
3942fi
3943if test -z "$CPP"; then
412e1bf7 3944 if test "${ac_cv_prog_CPP+set}" = set; then
562d60b0 3945 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
3946else
3947 # Double quotes because CPP needs to be expanded
3948 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3949 do
3950 ac_preproc_ok=false
3951for ac_c_preproc_warn_flag in '' yes
3952do
3953 # Use a header file that comes with gcc, so configuring glibc
3954 # with a fresh cross-compiler works.
3955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3956 # <limits.h> exists even on freestanding compilers.
3957 # On the NeXT, cc -E runs the code through the compiler's parser,
3958 # not just through cpp. "Syntax error" is here to catch this case.
412e1bf7
FCE
3959 cat >conftest.$ac_ext <<_ACEOF
3960/* confdefs.h. */
3961_ACEOF
3962cat confdefs.h >>conftest.$ac_ext
3963cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
3964/* end confdefs.h. */
3965#ifdef __STDC__
3966# include <limits.h>
3967#else
3968# include <assert.h>
3969#endif
3970 Syntax error
3971_ACEOF
412e1bf7
FCE
3972if { (ac_try="$ac_cpp conftest.$ac_ext"
3973case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976esac
562d60b0 3977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
3978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
3982 cat conftest.err >&5
562d60b0 3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
3984 (exit $ac_status); } >/dev/null && {
3985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3987 }; then
3988 :
4a3c19da 3989else
562d60b0 3990 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
3991sed 's/^/| /' conftest.$ac_ext >&5
3992
2f1a1aea
FCE
3993 # Broken: fails on valid input.
3994continue
3995fi
412e1bf7 3996
2f1a1aea
FCE
3997rm -f conftest.err conftest.$ac_ext
3998
7fbd9d09 3999 # OK, works on sane cases. Now check whether nonexistent headers
2f1a1aea 4000 # can be detected and how.
412e1bf7
FCE
4001 cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h. */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4006/* end confdefs.h. */
4007#include <ac_nonexistent.h>
4008_ACEOF
412e1bf7
FCE
4009if { (ac_try="$ac_cpp conftest.$ac_ext"
4010case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013esac
562d60b0 4014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
4015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
562d60b0 4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
4021 (exit $ac_status); } >/dev/null && {
4022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 }; then
2f1a1aea
FCE
4025 # Broken: success on invalid input.
4026continue
4027else
562d60b0 4028 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
2f1a1aea
FCE
4031 # Passes both tests.
4032ac_preproc_ok=:
4033break
4034fi
412e1bf7 4035
2f1a1aea
FCE
4036rm -f conftest.err conftest.$ac_ext
4037
4038done
4039# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4040rm -f conftest.err conftest.$ac_ext
412e1bf7 4041if $ac_preproc_ok; then
2f1a1aea
FCE
4042 break
4043fi
4044
4045 done
4046 ac_cv_prog_CPP=$CPP
4047
4048fi
4049 CPP=$ac_cv_prog_CPP
4050else
4051 ac_cv_prog_CPP=$CPP
4052fi
562d60b0
DB
4053{ echo "$as_me:$LINENO: result: $CPP" >&5
4054echo "${ECHO_T}$CPP" >&6; }
2f1a1aea
FCE
4055ac_preproc_ok=false
4056for ac_c_preproc_warn_flag in '' yes
4057do
4058 # Use a header file that comes with gcc, so configuring glibc
4059 # with a fresh cross-compiler works.
4060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4061 # <limits.h> exists even on freestanding compilers.
4062 # On the NeXT, cc -E runs the code through the compiler's parser,
4063 # not just through cpp. "Syntax error" is here to catch this case.
412e1bf7
FCE
4064 cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h. */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4069/* end confdefs.h. */
4070#ifdef __STDC__
4071# include <limits.h>
4072#else
4073# include <assert.h>
4074#endif
4075 Syntax error
4076_ACEOF
412e1bf7
FCE
4077if { (ac_try="$ac_cpp conftest.$ac_ext"
4078case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
562d60b0 4082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
4083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
562d60b0 4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
4089 (exit $ac_status); } >/dev/null && {
4090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4091 test ! -s conftest.err
4092 }; then
4093 :
4a3c19da 4094else
562d60b0 4095 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
4096sed 's/^/| /' conftest.$ac_ext >&5
4097
2f1a1aea
FCE
4098 # Broken: fails on valid input.
4099continue
4100fi
412e1bf7 4101
2f1a1aea
FCE
4102rm -f conftest.err conftest.$ac_ext
4103
7fbd9d09 4104 # OK, works on sane cases. Now check whether nonexistent headers
2f1a1aea 4105 # can be detected and how.
412e1bf7
FCE
4106 cat >conftest.$ac_ext <<_ACEOF
4107/* confdefs.h. */
4108_ACEOF
4109cat confdefs.h >>conftest.$ac_ext
4110cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4111/* end confdefs.h. */
4112#include <ac_nonexistent.h>
4113_ACEOF
412e1bf7
FCE
4114if { (ac_try="$ac_cpp conftest.$ac_ext"
4115case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118esac
562d60b0 4119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
4120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
562d60b0 4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
4126 (exit $ac_status); } >/dev/null && {
4127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 }; then
2f1a1aea
FCE
4130 # Broken: success on invalid input.
4131continue
4132else
562d60b0 4133 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
2f1a1aea
FCE
4136 # Passes both tests.
4137ac_preproc_ok=:
4138break
4139fi
412e1bf7 4140
2f1a1aea
FCE
4141rm -f conftest.err conftest.$ac_ext
4142
4143done
4144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4145rm -f conftest.err conftest.$ac_ext
412e1bf7
FCE
4146if $ac_preproc_ok; then
4147 :
2f1a1aea 4148else
562d60b0 4149 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
412e1bf7 4150See \`config.log' for more details." >&5
562d60b0 4151echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
412e1bf7 4152See \`config.log' for more details." >&2;}
562d60b0 4153 { (exit 1); exit 1; }; }
2f1a1aea
FCE
4154fi
4155
4156ac_ext=c
4157ac_cpp='$CPP $CPPFLAGS'
4158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161
4162ac_ext=c
4163ac_cpp='$CPP $CPPFLAGS'
4164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167if test -n "$ac_tool_prefix"; then
4168 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4169set dummy ${ac_tool_prefix}gcc; ac_word=$2
562d60b0
DB
4170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 4172if test "${ac_cv_prog_CC+set}" = set; then
562d60b0 4173 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
4174else
4175 if test -n "$CC"; then
4176 ac_cv_prog_CC="$CC" # Let the user override the test.
4177else
4178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH
4180do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
412e1bf7 4183 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4185 ac_cv_prog_CC="${ac_tool_prefix}gcc"
562d60b0 4186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4187 break 2
4188 fi
4189done
412e1bf7 4190done
7fbd9d09 4191IFS=$as_save_IFS
2f1a1aea
FCE
4192
4193fi
4194fi
4195CC=$ac_cv_prog_CC
4196if test -n "$CC"; then
562d60b0
DB
4197 { echo "$as_me:$LINENO: result: $CC" >&5
4198echo "${ECHO_T}$CC" >&6; }
2f1a1aea 4199else
562d60b0
DB
4200 { echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
4202fi
4203
7fbd9d09 4204
2f1a1aea
FCE
4205fi
4206if test -z "$ac_cv_prog_CC"; then
4207 ac_ct_CC=$CC
4208 # Extract the first word of "gcc", so it can be a program name with args.
4209set dummy gcc; ac_word=$2
562d60b0
DB
4210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 4212if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
562d60b0 4213 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
4214else
4215 if test -n "$ac_ct_CC"; then
4216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4217else
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
412e1bf7 4223 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4225 ac_cv_prog_ac_ct_CC="gcc"
562d60b0 4226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4227 break 2
4228 fi
4229done
412e1bf7 4230done
7fbd9d09 4231IFS=$as_save_IFS
2f1a1aea
FCE
4232
4233fi
4234fi
4235ac_ct_CC=$ac_cv_prog_ac_ct_CC
4236if test -n "$ac_ct_CC"; then
562d60b0
DB
4237 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4238echo "${ECHO_T}$ac_ct_CC" >&6; }
2f1a1aea 4239else
562d60b0
DB
4240 { echo "$as_me:$LINENO: result: no" >&5
4241echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
4242fi
4243
7fbd9d09
FCE
4244 if test "x$ac_ct_CC" = x; then
4245 CC=""
4246 else
4247 case $cross_compiling:$ac_tool_warned in
4248yes:)
562d60b0
DB
4249{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4250whose name does not start with the host triplet. If you think this
4251configuration is useful to you, please write to autoconf@gnu.org." >&5
4252echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4253whose name does not start with the host triplet. If you think this
4254configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7fbd9d09
FCE
4255ac_tool_warned=yes ;;
4256esac
4257 CC=$ac_ct_CC
4258 fi
2f1a1aea
FCE
4259else
4260 CC="$ac_cv_prog_CC"
4261fi
4262
4263if test -z "$CC"; then
7fbd9d09
FCE
4264 if test -n "$ac_tool_prefix"; then
4265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2f1a1aea 4266set dummy ${ac_tool_prefix}cc; ac_word=$2
562d60b0
DB
4267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 4269if test "${ac_cv_prog_CC+set}" = set; then
562d60b0 4270 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
4271else
4272 if test -n "$CC"; then
4273 ac_cv_prog_CC="$CC" # Let the user override the test.
4274else
4275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276for as_dir in $PATH
4277do
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
412e1bf7 4280 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4282 ac_cv_prog_CC="${ac_tool_prefix}cc"
562d60b0 4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4284 break 2
4285 fi
4286done
412e1bf7 4287done
7fbd9d09 4288IFS=$as_save_IFS
2f1a1aea
FCE
4289
4290fi
4291fi
4292CC=$ac_cv_prog_CC
4293if test -n "$CC"; then
562d60b0
DB
4294 { echo "$as_me:$LINENO: result: $CC" >&5
4295echo "${ECHO_T}$CC" >&6; }
818ba2bc 4296else
562d60b0
DB
4297 { echo "$as_me:$LINENO: result: no" >&5
4298echo "${ECHO_T}no" >&6; }
818ba2bc
MW
4299fi
4300
818ba2bc 4301
7fbd9d09 4302 fi
8ae7a94a
FCE
4303fi
4304if test -z "$CC"; then
4305 # Extract the first word of "cc", so it can be a program name with args.
4306set dummy cc; ac_word=$2
562d60b0
DB
4307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 4309if test "${ac_cv_prog_CC+set}" = set; then
562d60b0 4310 echo $ECHO_N "(cached) $ECHO_C" >&6
8ae7a94a
FCE
4311else
4312 if test -n "$CC"; then
2f1a1aea
FCE
4313 ac_cv_prog_CC="$CC" # Let the user override the test.
4314else
4315 ac_prog_rejected=no
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=.
412e1bf7 4321 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea
FCE
4323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4324 ac_prog_rejected=yes
4325 continue
4326 fi
4327 ac_cv_prog_CC="cc"
562d60b0 4328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4329 break 2
4330 fi
4331done
412e1bf7 4332done
7fbd9d09 4333IFS=$as_save_IFS
2f1a1aea
FCE
4334
4335if test $ac_prog_rejected = yes; then
4336 # We found a bogon in the path, so make sure we never use it.
4337 set dummy $ac_cv_prog_CC
4338 shift
4339 if test $# != 0; then
4340 # We chose a different compiler from the bogus one.
4341 # However, it has the same basename, so the bogon will be chosen
4342 # first if we set CC to just the basename; use the full file name.
4343 shift
4344 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4345 fi
4346fi
4347fi
4348fi
4349CC=$ac_cv_prog_CC
4350if test -n "$CC"; then
562d60b0
DB
4351 { echo "$as_me:$LINENO: result: $CC" >&5
4352echo "${ECHO_T}$CC" >&6; }
2f1a1aea 4353else
562d60b0
DB
4354 { echo "$as_me:$LINENO: result: no" >&5
4355echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
4356fi
4357
7fbd9d09 4358
2f1a1aea
FCE
4359fi
4360if test -z "$CC"; then
4361 if test -n "$ac_tool_prefix"; then
7fbd9d09 4362 for ac_prog in cl.exe
2f1a1aea
FCE
4363 do
4364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4365set dummy $ac_tool_prefix$ac_prog; ac_word=$2
562d60b0
DB
4366{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 4368if test "${ac_cv_prog_CC+set}" = set; then
562d60b0 4369 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
4370else
4371 if test -n "$CC"; then
4372 ac_cv_prog_CC="$CC" # Let the user override the test.
4373else
4374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
412e1bf7 4379 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
562d60b0 4382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4383 break 2
4384 fi
4385done
412e1bf7 4386done
7fbd9d09 4387IFS=$as_save_IFS
2f1a1aea
FCE
4388
4389fi
4390fi
4391CC=$ac_cv_prog_CC
4392if test -n "$CC"; then
562d60b0
DB
4393 { echo "$as_me:$LINENO: result: $CC" >&5
4394echo "${ECHO_T}$CC" >&6; }
2f1a1aea 4395else
562d60b0
DB
4396 { echo "$as_me:$LINENO: result: no" >&5
4397echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
4398fi
4399
7fbd9d09 4400
2f1a1aea
FCE
4401 test -n "$CC" && break
4402 done
4403fi
4404if test -z "$CC"; then
4405 ac_ct_CC=$CC
7fbd9d09 4406 for ac_prog in cl.exe
2f1a1aea
FCE
4407do
4408 # Extract the first word of "$ac_prog", so it can be a program name with args.
4409set dummy $ac_prog; ac_word=$2
562d60b0
DB
4410{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 4412if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
562d60b0 4413 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
4414else
4415 if test -n "$ac_ct_CC"; then
4416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
412e1bf7 4423 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4425 ac_cv_prog_ac_ct_CC="$ac_prog"
562d60b0 4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4427 break 2
4428 fi
4429done
412e1bf7 4430done
7fbd9d09 4431IFS=$as_save_IFS
2f1a1aea
FCE
4432
4433fi
4434fi
4435ac_ct_CC=$ac_cv_prog_ac_ct_CC
4436if test -n "$ac_ct_CC"; then
562d60b0
DB
4437 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4438echo "${ECHO_T}$ac_ct_CC" >&6; }
2f1a1aea 4439else
562d60b0
DB
4440 { echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
4442fi
4443
7fbd9d09 4444
2f1a1aea
FCE
4445 test -n "$ac_ct_CC" && break
4446done
4447
7fbd9d09
FCE
4448 if test "x$ac_ct_CC" = x; then
4449 CC=""
4450 else
4451 case $cross_compiling:$ac_tool_warned in
4452yes:)
562d60b0
DB
4453{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4454whose name does not start with the host triplet. If you think this
4455configuration is useful to you, please write to autoconf@gnu.org." >&5
4456echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4457whose name does not start with the host triplet. If you think this
4458configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7fbd9d09
FCE
4459ac_tool_warned=yes ;;
4460esac
4461 CC=$ac_ct_CC
4462 fi
2f1a1aea
FCE
4463fi
4464
4465fi
4466
4467
562d60b0 4468test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
412e1bf7 4469See \`config.log' for more details." >&5
562d60b0 4470echo "$as_me: error: no acceptable C compiler found in \$PATH
412e1bf7 4471See \`config.log' for more details." >&2;}
562d60b0 4472 { (exit 1); exit 1; }; }
2f1a1aea
FCE
4473
4474# Provide some information about the compiler.
562d60b0
DB
4475echo "$as_me:$LINENO: checking for C compiler version" >&5
4476ac_compiler=`set X $ac_compile; echo $2`
412e1bf7 4477{ (ac_try="$ac_compiler --version >&5"
7fbd9d09
FCE
4478case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481esac
562d60b0 4482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7 4483 (eval "$ac_compiler --version >&5") 2>&5
2f1a1aea 4484 ac_status=$?
562d60b0 4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
4486 (exit $ac_status); }
4487{ (ac_try="$ac_compiler -v >&5"
4488case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491esac
562d60b0 4492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
4493 (eval "$ac_compiler -v >&5") 2>&5
4494 ac_status=$?
562d60b0 4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
4496 (exit $ac_status); }
4497{ (ac_try="$ac_compiler -V >&5"
4498case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501esac
562d60b0 4502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
4503 (eval "$ac_compiler -V >&5") 2>&5
4504 ac_status=$?
562d60b0 4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 4506 (exit $ac_status); }
2f1a1aea 4507
562d60b0
DB
4508{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4509echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
412e1bf7 4510if test "${ac_cv_c_compiler_gnu+set}" = set; then
562d60b0 4511 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea 4512else
412e1bf7
FCE
4513 cat >conftest.$ac_ext <<_ACEOF
4514/* confdefs.h. */
4515_ACEOF
4516cat confdefs.h >>conftest.$ac_ext
4517cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4518/* end confdefs.h. */
4519
4520int
4521main ()
4522{
4523#ifndef __GNUC__
4524 choke me
4525#endif
4526
4527 ;
4528 return 0;
4529}
4530_ACEOF
412e1bf7
FCE
4531rm -f conftest.$ac_objext
4532if { (ac_try="$ac_compile"
4533case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4536esac
562d60b0 4537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
4538 (eval "$ac_compile") 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
562d60b0 4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
4544 (exit $ac_status); } && {
4545 test -z "$ac_c_werror_flag" ||
4546 test ! -s conftest.err
4547 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
4548 ac_compiler_gnu=yes
4549else
562d60b0 4550 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553 ac_compiler_gnu=no
2f1a1aea 4554fi
412e1bf7 4555
7fbd9d09 4556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
4557ac_cv_c_compiler_gnu=$ac_compiler_gnu
4558
4559fi
562d60b0
DB
4560{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4561echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4562GCC=`test $ac_compiler_gnu = yes && echo yes`
2f1a1aea
FCE
4563ac_test_CFLAGS=${CFLAGS+set}
4564ac_save_CFLAGS=$CFLAGS
562d60b0
DB
4565{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4566echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
412e1bf7 4567if test "${ac_cv_prog_cc_g+set}" = set; then
562d60b0 4568 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea 4569else
7fbd9d09
FCE
4570 ac_save_c_werror_flag=$ac_c_werror_flag
4571 ac_c_werror_flag=yes
4572 ac_cv_prog_cc_g=no
4573 CFLAGS="-g"
412e1bf7
FCE
4574 cat >conftest.$ac_ext <<_ACEOF
4575/* confdefs.h. */
4576_ACEOF
4577cat confdefs.h >>conftest.$ac_ext
4578cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
4579/* end confdefs.h. */
4580
4581int
4582main ()
4583{
4584
4585 ;
4586 return 0;
4587}
4588_ACEOF
412e1bf7
FCE
4589rm -f conftest.$ac_objext
4590if { (ac_try="$ac_compile"
4591case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594esac
562d60b0 4595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
4596 (eval "$ac_compile") 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
562d60b0 4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
4602 (exit $ac_status); } && {
4603 test -z "$ac_c_werror_flag" ||
4604 test ! -s conftest.err
4605 } && test -s conftest.$ac_objext; then
7fbd9d09
FCE
4606 ac_cv_prog_cc_g=yes
4607else
562d60b0 4608 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
4609sed 's/^/| /' conftest.$ac_ext >&5
4610
4611 CFLAGS=""
4612 cat >conftest.$ac_ext <<_ACEOF
4613/* confdefs.h. */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
7fbd9d09
FCE
4617/* end confdefs.h. */
4618
4619int
4620main ()
4621{
4622
4623 ;
4624 return 0;
4625}
4626_ACEOF
412e1bf7
FCE
4627rm -f conftest.$ac_objext
4628if { (ac_try="$ac_compile"
4629case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632esac
562d60b0 4633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
4634 (eval "$ac_compile") 2>conftest.er1
4635 ac_status=$?
4636 grep -v '^ *+' conftest.er1 >conftest.err
4637 rm -f conftest.er1
4638 cat conftest.err >&5
562d60b0 4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
4640 (exit $ac_status); } && {
4641 test -z "$ac_c_werror_flag" ||
4642 test ! -s conftest.err
4643 } && test -s conftest.$ac_objext; then
4644 :
4a3c19da 4645else
562d60b0 4646 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 ac_c_werror_flag=$ac_save_c_werror_flag
7fbd9d09 4650 CFLAGS="-g"
412e1bf7
FCE
4651 cat >conftest.$ac_ext <<_ACEOF
4652/* confdefs.h. */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
7fbd9d09
FCE
4656/* end confdefs.h. */
4657
4658int
4659main ()
4660{
4661
4662 ;
4663 return 0;
4664}
4665_ACEOF
412e1bf7
FCE
4666rm -f conftest.$ac_objext
4667if { (ac_try="$ac_compile"
4668case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671esac
562d60b0 4672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
4673 (eval "$ac_compile") 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
562d60b0 4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
4679 (exit $ac_status); } && {
4680 test -z "$ac_c_werror_flag" ||
4681 test ! -s conftest.err
4682 } && test -s conftest.$ac_objext; then
5e0d2ebf 4683 ac_cv_prog_cc_g=yes
412e1bf7 4684else
562d60b0 4685 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
4686sed 's/^/| /' conftest.$ac_ext >&5
4687
4688
7fbd9d09 4689fi
412e1bf7 4690
7fbd9d09
FCE
4691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692fi
412e1bf7 4693
7fbd9d09 4694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e0d2ebf 4695fi
412e1bf7 4696
7fbd9d09
FCE
4697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 ac_c_werror_flag=$ac_save_c_werror_flag
70d28673 4699fi
562d60b0
DB
4700{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4701echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
70d28673
DS
4702if test "$ac_test_CFLAGS" = set; then
4703 CFLAGS=$ac_save_CFLAGS
4704elif test $ac_cv_prog_cc_g = yes; then
4705 if test "$GCC" = yes; then
4706 CFLAGS="-g -O2"
4707 else
4708 CFLAGS="-g"
4709 fi
4710else
4711 if test "$GCC" = yes; then
4712 CFLAGS="-O2"
4713 else
4714 CFLAGS=
4715 fi
4716fi
562d60b0
DB
4717{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4718echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
412e1bf7 4719if test "${ac_cv_prog_cc_c89+set}" = set; then
562d60b0 4720 echo $ECHO_N "(cached) $ECHO_C" >&6
70d28673 4721else
7fbd9d09 4722 ac_cv_prog_cc_c89=no
70d28673 4723ac_save_CC=$CC
412e1bf7
FCE
4724cat >conftest.$ac_ext <<_ACEOF
4725/* confdefs.h. */
4726_ACEOF
4727cat confdefs.h >>conftest.$ac_ext
4728cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea 4729/* end confdefs.h. */
70d28673
DS
4730#include <stdarg.h>
4731#include <stdio.h>
4732#include <sys/types.h>
4733#include <sys/stat.h>
4734/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4735struct buf { int x; };
4736FILE * (*rcsopen) (struct buf *, struct stat *, int);
4737static char *e (p, i)
4738 char **p;
4739 int i;
4740{
4741 return p[i];
4742}
4743static char *f (char * (*g) (char **, int), char **p, ...)
4744{
4745 char *s;
4746 va_list v;
4747 va_start (v,p);
4748 s = g (p, va_arg (v,int));
4749 va_end (v);
4750 return s;
4751}
4752
4753/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4754 function prototypes and stuff, but not '\xHH' hex character constants.
4755 These don't provoke an error unfortunately, instead are silently treated
7fbd9d09 4756 as 'x'. The following induces an error, until -std is added to get
70d28673
DS
4757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4758 array size at least. It's necessary to write '\x00'==0 to get something
7fbd9d09 4759 that's true only with -std. */
70d28673
DS
4760int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4761
7fbd9d09
FCE
4762/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4763 inside strings and character constants. */
4764#define FOO(x) 'x'
4765int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4766
70d28673
DS
4767int test (int i, double x);
4768struct s1 {int (*f) (int a);};
4769struct s2 {int (*f) (double a);};
4770int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4771int argc;
4772char **argv;
2f1a1aea
FCE
4773int
4774main ()
4775{
70d28673 4776return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2f1a1aea
FCE
4777 ;
4778 return 0;
4779}
4780_ACEOF
7fbd9d09
FCE
4781for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4782 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
70d28673
DS
4783do
4784 CC="$ac_save_CC $ac_arg"
412e1bf7
FCE
4785 rm -f conftest.$ac_objext
4786if { (ac_try="$ac_compile"
4787case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790esac
562d60b0 4791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
4792 (eval "$ac_compile") 2>conftest.er1
4793 ac_status=$?
4794 grep -v '^ *+' conftest.er1 >conftest.err
4795 rm -f conftest.er1
4796 cat conftest.err >&5
562d60b0 4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
4798 (exit $ac_status); } && {
4799 test -z "$ac_c_werror_flag" ||
4800 test ! -s conftest.err
4801 } && test -s conftest.$ac_objext; then
7fbd9d09 4802 ac_cv_prog_cc_c89=$ac_arg
412e1bf7 4803else
562d60b0 4804 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807
2f1a1aea 4808fi
412e1bf7 4809
7fbd9d09
FCE
4810rm -f core conftest.err conftest.$ac_objext
4811 test "x$ac_cv_prog_cc_c89" != "xno" && break
2f1a1aea 4812done
7fbd9d09 4813rm -f conftest.$ac_ext
70d28673
DS
4814CC=$ac_save_CC
4815
2f1a1aea 4816fi
7fbd9d09
FCE
4817# AC_CACHE_VAL
4818case "x$ac_cv_prog_cc_c89" in
4819 x)
562d60b0
DB
4820 { echo "$as_me:$LINENO: result: none needed" >&5
4821echo "${ECHO_T}none needed" >&6; } ;;
7fbd9d09 4822 xno)
562d60b0
DB
4823 { echo "$as_me:$LINENO: result: unsupported" >&5
4824echo "${ECHO_T}unsupported" >&6; } ;;
70d28673 4825 *)
7fbd9d09 4826 CC="$CC $ac_cv_prog_cc_c89"
562d60b0
DB
4827 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4828echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
70d28673 4829esac
2f1a1aea 4830
2f1a1aea 4831
2f1a1aea
FCE
4832ac_ext=c
4833ac_cpp='$CPP $CPPFLAGS'
4834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837
4838depcc="$CC" am_compiler_list=
4839
562d60b0
DB
4840{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4841echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
412e1bf7 4842if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
562d60b0 4843 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
4844else
4845 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4846 # We make a subdir and do the tests there. Otherwise we can end up
4847 # making bogus files that we don't know about and never remove. For
4848 # instance it was reported that on HP-UX the gcc test will end up
4849 # making a dummy file named `D' -- because `-MD' means `put the output
4850 # in D'.
4851 mkdir conftest.dir
4852 # Copy depcomp to subdir because otherwise we won't find it if we're
4853 # using a relative directory.
4854 cp "$am_depcomp" conftest.dir
4855 cd conftest.dir
4856 # We will build objects and dependencies in a subdirectory because
4857 # it helps to detect inapplicable dependency modes. For instance
4858 # both Tru64's cc and ICC support -MD to output dependencies as a
4859 # side effect of compilation, but ICC will put the dependencies in
4860 # the current directory while Tru64 will put them in the object
4861 # directory.
4862 mkdir sub
4863
4864 am_cv_CC_dependencies_compiler_type=none
4865 if test "$am_compiler_list" = ""; then
4866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4867 fi
4868 for depmode in $am_compiler_list; do
4869 # Setup a source with many dependencies, because some compilers
4870 # like to wrap large dependency lists on column 80 (with \), and
4871 # we should not choose a depcomp mode which is confused by this.
4872 #
4873 # We need to recreate these files for each test, as the compiler may
4874 # overwrite some of them when testing with obscure command lines.
4875 # This happens at least with the AIX C compiler.
4876 : > sub/conftest.c
4877 for i in 1 2 3 4 5 6; do
4878 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4879 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4880 # Solaris 8's {/usr,}/bin/sh.
4881 touch sub/conftst$i.h
4882 done
4883 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4884
4885 case $depmode in
4886 nosideeffect)
4887 # after this tag, mechanisms are not by side-effect, so they'll
4888 # only be used when explicitly requested
4889 if test "x$enable_dependency_tracking" = xyes; then
4890 continue
4891 else
4892 break
4893 fi
4894 ;;
4895 none) break ;;
4896 esac
562d60b0
DB
4897 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4898 # mode. It turns out that the SunPro C++ compiler does not properly
4899 # handle `-M -o', and we need to detect this.
2f1a1aea 4900 if depmode=$depmode \
562d60b0 4901 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2f1a1aea 4902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
562d60b0 4903 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2f1a1aea 4904 >/dev/null 2>conftest.err &&
7fbd9d09 4905 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea 4906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
562d60b0 4907 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
4908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4909 # icc doesn't choke on unknown options, it will just issue warnings
4910 # or remarks (even with -Werror). So we grep stderr for any message
4911 # that says an option was ignored or not supported.
4912 # When given -MP, icc 7.0 and 7.1 complain thusly:
4913 # icc: Command line warning: ignoring option '-M'; no argument required
4914 # The diagnosis changed in icc 8.0:
4915 # icc: Command line remark: option '-MP' not supported
4916 if (grep 'ignoring option' conftest.err ||
4917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4918 am_cv_CC_dependencies_compiler_type=$depmode
4919 break
4920 fi
4921 fi
4922 done
4923
4924 cd ..
4925 rm -rf conftest.dir
4926else
4927 am_cv_CC_dependencies_compiler_type=none
4928fi
4929
4930fi
562d60b0
DB
4931{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4932echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
4933CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4934
7fbd9d09 4935 if
2f1a1aea
FCE
4936 test "x$enable_dependency_tracking" != xno \
4937 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4938 am__fastdepCC_TRUE=
4939 am__fastdepCC_FALSE='#'
4940else
4941 am__fastdepCC_TRUE='#'
4942 am__fastdepCC_FALSE=
4943fi
4944
4945
4946
4947am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4948
8ae7a94a 4949if test "x$CC" != xcc; then
562d60b0
DB
4950 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4951echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
8ae7a94a 4952else
562d60b0
DB
4953 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4954echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
8ae7a94a 4955fi
562d60b0 4956set dummy $CC; ac_cc=`echo $2 |
8ae7a94a 4957 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
412e1bf7 4958if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 4959 echo $ECHO_N "(cached) $ECHO_C" >&6
8ae7a94a 4960else
412e1bf7
FCE
4961 cat >conftest.$ac_ext <<_ACEOF
4962/* confdefs.h. */
4963_ACEOF
4964cat confdefs.h >>conftest.$ac_ext
4965cat >>conftest.$ac_ext <<_ACEOF
8ae7a94a
FCE
4966/* end confdefs.h. */
4967
4968int
4969main ()
4970{
4971
4972 ;
4973 return 0;
4974}
4975_ACEOF
4976# Make sure it works both with $CC and with simple cc.
4977# We do the test twice because some compilers refuse to overwrite an
4978# existing .o file with -o, though they will create one.
7fbd9d09
FCE
4979ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4980rm -f conftest2.*
412e1bf7 4981if { (case "(($ac_try" in
7fbd9d09
FCE
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984esac
562d60b0 4985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7fbd9d09 4986 (eval "$ac_try") 2>&5
8ae7a94a 4987 ac_status=$?
562d60b0 4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
4989 (exit $ac_status); } &&
4990 test -f conftest2.$ac_objext && { (case "(($ac_try" in
7fbd9d09
FCE
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4993esac
562d60b0 4994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7fbd9d09 4995 (eval "$ac_try") 2>&5
8ae7a94a 4996 ac_status=$?
562d60b0 4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 4998 (exit $ac_status); };
8ae7a94a
FCE
4999then
5000 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5001 if test "x$CC" != xcc; then
5002 # Test first that cc exists at all.
5003 if { ac_try='cc -c conftest.$ac_ext >&5'
412e1bf7 5004 { (case "(($ac_try" in
7fbd9d09
FCE
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5007esac
562d60b0 5008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7fbd9d09 5009 (eval "$ac_try") 2>&5
8ae7a94a 5010 ac_status=$?
562d60b0 5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 5012 (exit $ac_status); }; }; then
7fbd9d09
FCE
5013 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5014 rm -f conftest2.*
412e1bf7 5015 if { (case "(($ac_try" in
7fbd9d09
FCE
5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5018esac
562d60b0 5019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7fbd9d09 5020 (eval "$ac_try") 2>&5
8ae7a94a 5021 ac_status=$?
562d60b0 5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
5023 (exit $ac_status); } &&
5024 test -f conftest2.$ac_objext && { (case "(($ac_try" in
7fbd9d09
FCE
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027esac
562d60b0 5028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7fbd9d09 5029 (eval "$ac_try") 2>&5
8ae7a94a 5030 ac_status=$?
562d60b0 5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 5032 (exit $ac_status); };
8ae7a94a
FCE
5033 then
5034 # cc works too.
5035 :
5036 else
5037 # cc exists but doesn't like -o.
5038 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5039 fi
5040 fi
5041 fi
5042else
5043 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5044fi
7fbd9d09 5045rm -f core conftest*
8ae7a94a
FCE
5046
5047fi
7fbd9d09 5048if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
562d60b0
DB
5049 { echo "$as_me:$LINENO: result: yes" >&5
5050echo "${ECHO_T}yes" >&6; }
8ae7a94a 5051else
562d60b0
DB
5052 { echo "$as_me:$LINENO: result: no" >&5
5053echo "${ECHO_T}no" >&6; }
8ae7a94a 5054
412e1bf7
FCE
5055cat >>confdefs.h <<\_ACEOF
5056#define NO_MINUS_C_MINUS_O 1
5057_ACEOF
8ae7a94a
FCE
5058
5059fi
5060
5061# FIXME: we rely on the cache variable name because
5062# there is no other way.
5063set dummy $CC
562d60b0
DB
5064ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5065if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
8ae7a94a
FCE
5066 # Losing compiler, so override with the script.
5067 # FIXME: It is wrong to rewrite CC.
5068 # But if we don't then we get into trouble of one sort or another.
5069 # A longer-term fix would be to have automake use am__CC in this case,
5070 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5071 CC="$am_aux_dir/compile $CC"
5072fi
5073
7fbd9d09 5074
562d60b0
DB
5075{ echo "$as_me:$LINENO: checking for function prototypes" >&5
5076echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
7fbd9d09 5077if test "$ac_cv_prog_cc_c89" != no; then
562d60b0
DB
5078 { echo "$as_me:$LINENO: result: yes" >&5
5079echo "${ECHO_T}yes" >&6; }
2f1a1aea 5080
412e1bf7
FCE
5081cat >>confdefs.h <<\_ACEOF
5082#define PROTOTYPES 1
5083_ACEOF
2f1a1aea
FCE
5084
5085
412e1bf7
FCE
5086cat >>confdefs.h <<\_ACEOF
5087#define __PROTOTYPES 1
5088_ACEOF
2f1a1aea
FCE
5089
5090else
562d60b0
DB
5091 { echo "$as_me:$LINENO: result: no" >&5
5092echo "${ECHO_T}no" >&6; }
7fbd9d09
FCE
5093fi
5094
5095
5096
562d60b0
DB
5097{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5098echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5099if test "${ac_cv_path_GREP+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101else
5102 # Extract the first word of "grep ggrep" to use in msg output
5103if test -z "$GREP"; then
5104set dummy grep ggrep; ac_prog_name=$2
412e1bf7 5105if test "${ac_cv_path_GREP+set}" = set; then
562d60b0 5106 echo $ECHO_N "(cached) $ECHO_C" >&6
7fbd9d09
FCE
5107else
5108 ac_path_GREP_found=false
562d60b0
DB
5109# Loop through the user's path and test for each of PROGNAME-LIST
5110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7fbd9d09
FCE
5111for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5112do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
412e1bf7 5115 for ac_prog in grep ggrep; do
562d60b0
DB
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5118 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5119 # Check for GNU ac_path_GREP and select it if it is found.
7fbd9d09
FCE
5120 # Check for GNU $ac_path_GREP
5121case `"$ac_path_GREP" --version 2>&1` in
5122*GNU*)
5123 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5124*)
5125 ac_count=0
562d60b0 5126 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7fbd9d09
FCE
5127 while :
5128 do
5129 cat "conftest.in" "conftest.in" >"conftest.tmp"
5130 mv "conftest.tmp" "conftest.in"
5131 cp "conftest.in" "conftest.nl"
562d60b0 5132 echo 'GREP' >> "conftest.nl"
7fbd9d09
FCE
5133 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
412e1bf7 5135 ac_count=`expr $ac_count + 1`
7fbd9d09
FCE
5136 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5137 # Best one so far, save it but keep looking for a better one
5138 ac_cv_path_GREP="$ac_path_GREP"
5139 ac_path_GREP_max=$ac_count
5140 fi
5141 # 10*(2^10) chars as input seems more than enough
5142 test $ac_count -gt 10 && break
5143 done
5144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5145esac
5146
562d60b0
DB
5147
5148 $ac_path_GREP_found && break 3
7fbd9d09 5149 done
412e1bf7 5150done
562d60b0
DB
5151
5152done
7fbd9d09 5153IFS=$as_save_IFS
562d60b0
DB
5154
5155
5156fi
5157
5158GREP="$ac_cv_path_GREP"
5159if test -z "$GREP"; then
5160 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5161echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
412e1bf7 5162 { (exit 1); exit 1; }; }
562d60b0
DB
5163fi
5164
7fbd9d09
FCE
5165else
5166 ac_cv_path_GREP=$GREP
70d28673
DS
5167fi
5168
562d60b0 5169
7fbd9d09 5170fi
562d60b0
DB
5171{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5172echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7fbd9d09
FCE
5173 GREP="$ac_cv_path_GREP"
5174
70d28673 5175
562d60b0
DB
5176{ echo "$as_me:$LINENO: checking for egrep" >&5
5177echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
412e1bf7 5178if test "${ac_cv_path_EGREP+set}" = set; then
562d60b0 5179 echo $ECHO_N "(cached) $ECHO_C" >&6
7fbd9d09
FCE
5180else
5181 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5182 then ac_cv_path_EGREP="$GREP -E"
5183 else
562d60b0
DB
5184 # Extract the first word of "egrep" to use in msg output
5185if test -z "$EGREP"; then
5186set dummy egrep; ac_prog_name=$2
5187if test "${ac_cv_path_EGREP+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
7fbd9d09 5190 ac_path_EGREP_found=false
562d60b0
DB
5191# Loop through the user's path and test for each of PROGNAME-LIST
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7fbd9d09
FCE
5193for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
412e1bf7 5197 for ac_prog in egrep; do
562d60b0
DB
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5200 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5201 # Check for GNU ac_path_EGREP and select it if it is found.
7fbd9d09
FCE
5202 # Check for GNU $ac_path_EGREP
5203case `"$ac_path_EGREP" --version 2>&1` in
5204*GNU*)
5205 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5206*)
5207 ac_count=0
562d60b0 5208 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7fbd9d09
FCE
5209 while :
5210 do
5211 cat "conftest.in" "conftest.in" >"conftest.tmp"
5212 mv "conftest.tmp" "conftest.in"
5213 cp "conftest.in" "conftest.nl"
562d60b0 5214 echo 'EGREP' >> "conftest.nl"
7fbd9d09
FCE
5215 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
412e1bf7 5217 ac_count=`expr $ac_count + 1`
7fbd9d09
FCE
5218 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5219 # Best one so far, save it but keep looking for a better one
5220 ac_cv_path_EGREP="$ac_path_EGREP"
5221 ac_path_EGREP_max=$ac_count
2f1a1aea 5222 fi
7fbd9d09
FCE
5223 # 10*(2^10) chars as input seems more than enough
5224 test $ac_count -gt 10 && break
5225 done
5226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5227esac
5228
562d60b0
DB
5229
5230 $ac_path_EGREP_found && break 3
7fbd9d09 5231 done
412e1bf7 5232done
562d60b0
DB
5233
5234done
7fbd9d09 5235IFS=$as_save_IFS
562d60b0
DB
5236
5237
5238fi
5239
5240EGREP="$ac_cv_path_EGREP"
5241if test -z "$EGREP"; then
5242 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5243echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
412e1bf7 5244 { (exit 1); exit 1; }; }
562d60b0
DB
5245fi
5246
7fbd9d09
FCE
5247else
5248 ac_cv_path_EGREP=$EGREP
5249fi
5250
562d60b0 5251
7fbd9d09 5252 fi
2f1a1aea 5253fi
562d60b0
DB
5254{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5255echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7fbd9d09 5256 EGREP="$ac_cv_path_EGREP"
2f1a1aea
FCE
5257
5258
562d60b0
DB
5259{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5260echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
412e1bf7 5261if test "${ac_cv_header_stdc+set}" = set; then
562d60b0 5262 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea 5263else
412e1bf7
FCE
5264 cat >conftest.$ac_ext <<_ACEOF
5265/* confdefs.h. */
5266_ACEOF
5267cat confdefs.h >>conftest.$ac_ext
5268cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
5269/* end confdefs.h. */
5270#include <stdlib.h>
5271#include <stdarg.h>
5272#include <string.h>
5273#include <float.h>
5274
5275int
5276main ()
5277{
5278
5279 ;
5280 return 0;
5281}
5282_ACEOF
412e1bf7
FCE
5283rm -f conftest.$ac_objext
5284if { (ac_try="$ac_compile"
5285case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288esac
562d60b0 5289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
5290 (eval "$ac_compile") 2>conftest.er1
5291 ac_status=$?
5292 grep -v '^ *+' conftest.er1 >conftest.err
5293 rm -f conftest.er1
5294 cat conftest.err >&5
562d60b0 5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
5296 (exit $ac_status); } && {
5297 test -z "$ac_c_werror_flag" ||
5298 test ! -s conftest.err
5299 } && test -s conftest.$ac_objext; then
2f1a1aea
FCE
5300 ac_cv_header_stdc=yes
5301else
562d60b0 5302 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
5303sed 's/^/| /' conftest.$ac_ext >&5
5304
5305 ac_cv_header_stdc=no
2f1a1aea 5306fi
412e1bf7 5307
7fbd9d09 5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
5309
5310if test $ac_cv_header_stdc = yes; then
5311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
412e1bf7
FCE
5312 cat >conftest.$ac_ext <<_ACEOF
5313/* confdefs.h. */
5314_ACEOF
5315cat confdefs.h >>conftest.$ac_ext
5316cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
5317/* end confdefs.h. */
5318#include <string.h>
5319
5320_ACEOF
5321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
412e1bf7
FCE
5322 $EGREP "memchr" >/dev/null 2>&1; then
5323 :
2f1a1aea
FCE
5324else
5325 ac_cv_header_stdc=no
5326fi
5327rm -f conftest*
5328
5329fi
5330
5331if test $ac_cv_header_stdc = yes; then
5332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
412e1bf7
FCE
5333 cat >conftest.$ac_ext <<_ACEOF
5334/* confdefs.h. */
5335_ACEOF
5336cat confdefs.h >>conftest.$ac_ext
5337cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
5338/* end confdefs.h. */
5339#include <stdlib.h>
5340
5341_ACEOF
5342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
412e1bf7
FCE
5343 $EGREP "free" >/dev/null 2>&1; then
5344 :
2f1a1aea
FCE
5345else
5346 ac_cv_header_stdc=no
5347fi
5348rm -f conftest*
5349
5350fi
5351
5352if test $ac_cv_header_stdc = yes; then
5353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
412e1bf7 5354 if test "$cross_compiling" = yes; then
2f1a1aea
FCE
5355 :
5356else
412e1bf7
FCE
5357 cat >conftest.$ac_ext <<_ACEOF
5358/* confdefs.h. */
5359_ACEOF
5360cat confdefs.h >>conftest.$ac_ext
5361cat >>conftest.$ac_ext <<_ACEOF
2f1a1aea
FCE
5362/* end confdefs.h. */
5363#include <ctype.h>
7fbd9d09 5364#include <stdlib.h>
2f1a1aea
FCE
5365#if ((' ' & 0x0FF) == 0x020)
5366# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5367# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5368#else
5369# define ISLOWER(c) \
5370 (('a' <= (c) && (c) <= 'i') \
5371 || ('j' <= (c) && (c) <= 'r') \
5372 || ('s' <= (c) && (c) <= 'z'))
5373# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5374#endif
5375
5376#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5377int
5378main ()
5379{
5380 int i;
5381 for (i = 0; i < 256; i++)
5382 if (XOR (islower (i), ISLOWER (i))
5383 || toupper (i) != TOUPPER (i))
7fbd9d09
FCE
5384 return 2;
5385 return 0;
2f1a1aea
FCE
5386}
5387_ACEOF
412e1bf7
FCE
5388rm -f conftest$ac_exeext
5389if { (ac_try="$ac_link"
5390case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393esac
562d60b0 5394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
5395 (eval "$ac_link") 2>&5
5396 ac_status=$?
562d60b0 5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
5398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5399 { (case "(($ac_try" in
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5402esac
562d60b0 5403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
5404 (eval "$ac_try") 2>&5
5405 ac_status=$?
562d60b0 5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
5407 (exit $ac_status); }; }; then
5408 :
5409else
562d60b0
DB
5410 echo "$as_me: program exited with status $ac_status" >&5
5411echo "$as_me: failed program was:" >&5
412e1bf7
FCE
5412sed 's/^/| /' conftest.$ac_ext >&5
5413
5414( exit $ac_status )
5415ac_cv_header_stdc=no
5416fi
412e1bf7
FCE
5417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5418fi
5419
5420
5421fi
5422fi
562d60b0
DB
5423{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5424echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
412e1bf7
FCE
5425if test $ac_cv_header_stdc = yes; then
5426
5427cat >>confdefs.h <<\_ACEOF
5428#define STDC_HEADERS 1
5429_ACEOF
5430
5431fi
5432
5433# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5444 inttypes.h stdint.h unistd.h
5445do
562d60b0
DB
5446as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5447{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
412e1bf7 5449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 5450 echo $ECHO_N "(cached) $ECHO_C" >&6
412e1bf7
FCE
5451else
5452 cat >conftest.$ac_ext <<_ACEOF
5453/* confdefs.h. */
5454_ACEOF
5455cat confdefs.h >>conftest.$ac_ext
5456cat >>conftest.$ac_ext <<_ACEOF
5457/* end confdefs.h. */
5458$ac_includes_default
7fbd9d09 5459
412e1bf7
FCE
5460#include <$ac_header>
5461_ACEOF
5462rm -f conftest.$ac_objext
5463if { (ac_try="$ac_compile"
5464case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467esac
562d60b0 5468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
5469 (eval "$ac_compile") 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
562d60b0 5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
5475 (exit $ac_status); } && {
5476 test -z "$ac_c_werror_flag" ||
5477 test ! -s conftest.err
5478 } && test -s conftest.$ac_objext; then
5479 eval "$as_ac_Header=yes"
4a3c19da 5480else
562d60b0 5481 echo "$as_me: failed program was:" >&5
412e1bf7 5482sed 's/^/| /' conftest.$ac_ext >&5
2f1a1aea 5483
412e1bf7 5484 eval "$as_ac_Header=no"
2f1a1aea 5485fi
7fbd9d09 5486
412e1bf7 5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea 5488fi
562d60b0
DB
5489ac_res=`eval echo '${'$as_ac_Header'}'`
5490 { echo "$as_me:$LINENO: result: $ac_res" >&5
5491echo "${ECHO_T}$ac_res" >&6; }
5492if test `eval echo '${'$as_ac_Header'}'` = yes; then
2f1a1aea 5493 cat >>confdefs.h <<_ACEOF
562d60b0 5494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2f1a1aea
FCE
5495_ACEOF
5496
5497fi
5498
5499done
5500
5501
5502
5503if test "$ac_cv_prog_cc_stdc" != no; then
5504 U= ANSI2KNR=
5505else
5506 U=_ ANSI2KNR=./ansi2knr
5507fi
5508# Ensure some checks needed by ansi2knr itself.
5509
412e1bf7 5510
2f1a1aea 5511for ac_header in string.h
412e1bf7 5512do
562d60b0 5513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
412e1bf7 5514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0
DB
5515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
412e1bf7 5517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 5518 echo $ECHO_N "(cached) $ECHO_C" >&6
412e1bf7 5519fi
562d60b0
DB
5520ac_res=`eval echo '${'$as_ac_Header'}'`
5521 { echo "$as_me:$LINENO: result: $ac_res" >&5
5522echo "${ECHO_T}$ac_res" >&6; }
412e1bf7
FCE
5523else
5524 # Is the header compilable?
562d60b0
DB
5525{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
412e1bf7
FCE
5527cat >conftest.$ac_ext <<_ACEOF
5528/* confdefs.h. */
5529_ACEOF
5530cat confdefs.h >>conftest.$ac_ext
5531cat >>conftest.$ac_ext <<_ACEOF
5532/* end confdefs.h. */
5533$ac_includes_default
5534#include <$ac_header>
5535_ACEOF
5536rm -f conftest.$ac_objext
5537if { (ac_try="$ac_compile"
5538case "(($ac_try" in
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5541esac
562d60b0 5542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
5543 (eval "$ac_compile") 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
562d60b0 5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
5549 (exit $ac_status); } && {
5550 test -z "$ac_c_werror_flag" ||
5551 test ! -s conftest.err
5552 } && test -s conftest.$ac_objext; then
5553 ac_header_compiler=yes
5554else
562d60b0 5555 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
5556sed 's/^/| /' conftest.$ac_ext >&5
5557
5558 ac_header_compiler=no
5559fi
5560
5561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
562d60b0
DB
5562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5563echo "${ECHO_T}$ac_header_compiler" >&6; }
412e1bf7
FCE
5564
5565# Is the header present?
562d60b0
DB
5566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
412e1bf7
FCE
5568cat >conftest.$ac_ext <<_ACEOF
5569/* confdefs.h. */
5570_ACEOF
5571cat confdefs.h >>conftest.$ac_ext
5572cat >>conftest.$ac_ext <<_ACEOF
5573/* end confdefs.h. */
5574#include <$ac_header>
5575_ACEOF
5576if { (ac_try="$ac_cpp conftest.$ac_ext"
5577case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580esac
562d60b0 5581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
5582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5583 ac_status=$?
5584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
562d60b0 5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
5588 (exit $ac_status); } >/dev/null && {
5589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5590 test ! -s conftest.err
5591 }; then
5592 ac_header_preproc=yes
5593else
562d60b0 5594 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
5595sed 's/^/| /' conftest.$ac_ext >&5
5596
5597 ac_header_preproc=no
5598fi
5599
5600rm -f conftest.err conftest.$ac_ext
562d60b0
DB
5601{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5602echo "${ECHO_T}$ac_header_preproc" >&6; }
412e1bf7
FCE
5603
5604# So? What about this header?
5605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5606 yes:no: )
562d60b0
DB
5607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
412e1bf7
FCE
5611 ac_header_preproc=yes
5612 ;;
5613 no:yes:* )
562d60b0
DB
5614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5617echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5621echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
412e1bf7
FCE
5626 ( cat <<\_ASBOX
5627## ------------------------------------------- ##
5628## Report this to systemtap@sources.redhat.com ##
5629## ------------------------------------------- ##
5630_ASBOX
5631 ) | sed "s/^/$as_me: WARNING: /" >&2
5632 ;;
5633esac
562d60b0
DB
5634{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
412e1bf7 5636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 5637 echo $ECHO_N "(cached) $ECHO_C" >&6
412e1bf7
FCE
5638else
5639 eval "$as_ac_Header=\$ac_header_preproc"
5640fi
562d60b0
DB
5641ac_res=`eval echo '${'$as_ac_Header'}'`
5642 { echo "$as_me:$LINENO: result: $ac_res" >&5
5643echo "${ECHO_T}$ac_res" >&6; }
412e1bf7
FCE
5644
5645fi
562d60b0 5646if test `eval echo '${'$as_ac_Header'}'` = yes; then
2f1a1aea 5647 cat >>confdefs.h <<_ACEOF
562d60b0 5648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2f1a1aea
FCE
5649_ACEOF
5650
5651fi
5652
5653done
5654
5655
2f1a1aea
FCE
5656if test -n "$ac_tool_prefix"; then
5657 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5658set dummy ${ac_tool_prefix}ranlib; ac_word=$2
562d60b0
DB
5659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 5661if test "${ac_cv_prog_RANLIB+set}" = set; then
562d60b0 5662 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
5663else
5664 if test -n "$RANLIB"; then
5665 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5666else
5667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH
5669do
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
412e1bf7 5672 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 5673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 5674 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
562d60b0 5675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5676 break 2
5677 fi
5678done
412e1bf7 5679done
7fbd9d09 5680IFS=$as_save_IFS
2f1a1aea
FCE
5681
5682fi
5683fi
5684RANLIB=$ac_cv_prog_RANLIB
5685if test -n "$RANLIB"; then
562d60b0
DB
5686 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5687echo "${ECHO_T}$RANLIB" >&6; }
2f1a1aea 5688else
562d60b0
DB
5689 { echo "$as_me:$LINENO: result: no" >&5
5690echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
5691fi
5692
7fbd9d09 5693
2f1a1aea
FCE
5694fi
5695if test -z "$ac_cv_prog_RANLIB"; then
5696 ac_ct_RANLIB=$RANLIB
5697 # Extract the first word of "ranlib", so it can be a program name with args.
5698set dummy ranlib; ac_word=$2
562d60b0
DB
5699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 5701if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
562d60b0 5702 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
5703else
5704 if test -n "$ac_ct_RANLIB"; then
5705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5706else
5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
412e1bf7 5712 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 5714 ac_cv_prog_ac_ct_RANLIB="ranlib"
562d60b0 5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5716 break 2
5717 fi
5718done
412e1bf7 5719done
7fbd9d09 5720IFS=$as_save_IFS
2f1a1aea 5721
2f1a1aea
FCE
5722fi
5723fi
5724ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5725if test -n "$ac_ct_RANLIB"; then
562d60b0
DB
5726 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5727echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2f1a1aea 5728else
562d60b0
DB
5729 { echo "$as_me:$LINENO: result: no" >&5
5730echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
5731fi
5732
7fbd9d09
FCE
5733 if test "x$ac_ct_RANLIB" = x; then
5734 RANLIB=":"
5735 else
5736 case $cross_compiling:$ac_tool_warned in
5737yes:)
562d60b0
DB
5738{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5739whose name does not start with the host triplet. If you think this
5740configuration is useful to you, please write to autoconf@gnu.org." >&5
5741echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5742whose name does not start with the host triplet. If you think this
5743configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7fbd9d09
FCE
5744ac_tool_warned=yes ;;
5745esac
5746 RANLIB=$ac_ct_RANLIB
5747 fi
2f1a1aea
FCE
5748else
5749 RANLIB="$ac_cv_prog_RANLIB"
5750fi
5751
5752
5753
412e1bf7
FCE
5754# Find a good install program. We prefer a C program (faster),
5755# so one script is as good as another. But avoid the broken or
5756# incompatible versions:
5757# SysV /etc/install, /usr/sbin/install
5758# SunOS /usr/etc/install
5759# IRIX /sbin/install
5760# AIX /bin/install
5761# AmigaOS /C/install, which installs bootblocks on floppy discs
5762# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5763# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5764# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5765# OS/2's system install, which has a completely different semantic
5766# ./install, which can be erroneously created by make from ./install.sh.
562d60b0
DB
5767{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5768echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
412e1bf7
FCE
5769if test -z "$INSTALL"; then
5770if test "${ac_cv_path_install+set}" = set; then
562d60b0 5771 echo $ECHO_N "(cached) $ECHO_C" >&6
412e1bf7
FCE
5772else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 # Account for people who put trailing slashes in PATH elements.
5779case $as_dir/ in
5780 ./ | .// | /cC/* | \
5781 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5782 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5783 /usr/ucb/* ) ;;
5784 *)
5785 # OSF1 and SCO ODT 3.0 have their own names for install.
5786 # Don't use installbsd from OSF since it installs stuff as root
5787 # by default.
5788 for ac_prog in ginstall scoinst install; do
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5791 if test $ac_prog = install &&
5792 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5793 # AIX install. It has an incompatible calling convention.
5794 :
5795 elif test $ac_prog = install &&
5796 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5797 # program-specific install script used by HP pwplus--don't use.
5798 :
5799 else
562d60b0
DB
5800 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5801 break 3
412e1bf7
FCE
5802 fi
5803 fi
5804 done
5805 done
5806 ;;
5807esac
412e1bf7
FCE
5808done
5809IFS=$as_save_IFS
5810
412e1bf7
FCE
5811
5812fi
5813 if test "${ac_cv_path_install+set}" = set; then
5814 INSTALL=$ac_cv_path_install
5815 else
5816 # As a last resort, use the slow shell script. Don't cache a
5817 # value for INSTALL within a source directory, because that will
5818 # break other packages using the cache if that directory is
5819 # removed, or if the value is a relative name.
5820 INSTALL=$ac_install_sh
5821 fi
5822fi
562d60b0
DB
5823{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5824echo "${ECHO_T}$INSTALL" >&6; }
412e1bf7
FCE
5825
5826# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5827# It thinks the first close brace ends the variable substitution.
5828test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5829
5830test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5831
5832test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2f1a1aea 5833
562d60b0
DB
5834{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5835echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5836set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
412e1bf7 5837if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 5838 echo $ECHO_N "(cached) $ECHO_C" >&6
2f1a1aea
FCE
5839else
5840 cat >conftest.make <<\_ACEOF
7fbd9d09 5841SHELL = /bin/sh
2f1a1aea 5842all:
7fbd9d09 5843 @echo '@@@%%%=$(MAKE)=@@@%%%'
2f1a1aea
FCE
5844_ACEOF
5845# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7fbd9d09
FCE
5846case `${MAKE-make} -f conftest.make 2>/dev/null` in
5847 *@@@%%%=?*=@@@%%%*)
5848 eval ac_cv_prog_make_${ac_make}_set=yes;;
5849 *)
5850 eval ac_cv_prog_make_${ac_make}_set=no;;
5851esac
2f1a1aea
FCE
5852rm -f conftest.make
5853fi
7fbd9d09 5854if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
562d60b0
DB
5855 { echo "$as_me:$LINENO: result: yes" >&5
5856echo "${ECHO_T}yes" >&6; }
2f1a1aea
FCE
5857 SET_MAKE=
5858else
562d60b0
DB
5859 { echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6; }
2f1a1aea
FCE
5861 SET_MAKE="MAKE=${MAKE-make}"
5862fi
5863
5864
5865
5866
7fbd9d09 5867# Check whether --enable-perfmon was given.
412e1bf7 5868if test "${enable_perfmon+set}" = set; then
7fbd9d09 5869 enableval=$enable_perfmon;
564eb0a8
DS
5870 if test "$enable_perfmon" != "no"; then
5871 CPPFLAGS="$CPPFLAGS -DPERFMON"
5872 LIBS="$LIBS -lpfm"
5873 if test "$enable_perfmon" != "yes"; then
5874 CPPFLAGS="$CPPFLAGS -I$enable_perfmon/include"
5875 LDFLAGS="$LDFLAGS -L$enable_perfmon/lib"
5876 fi
412e1bf7 5877
562d60b0
DB
5878{ echo "$as_me:$LINENO: checking for pfm_start in -lpfm" >&5
5879echo $ECHO_N "checking for pfm_start in -lpfm... $ECHO_C" >&6; }
412e1bf7 5880if test "${ac_cv_lib_pfm_pfm_start+set}" = set; then
562d60b0 5881 echo $ECHO_N "(cached) $ECHO_C" >&6
47dd066d
WC
5882else
5883 ac_check_lib_save_LIBS=$LIBS
5884LIBS="-lpfm $LIBS"
412e1bf7
FCE
5885cat >conftest.$ac_ext <<_ACEOF
5886/* confdefs.h. */
5887_ACEOF
5888cat confdefs.h >>conftest.$ac_ext
5889cat >>conftest.$ac_ext <<_ACEOF
47dd066d
WC
5890/* end confdefs.h. */
5891
7fbd9d09
FCE
5892/* Override any GCC internal prototype to avoid an error.
5893 Use char because int might match the return type of a GCC
5894 builtin and then its argument prototype would still apply. */
47dd066d
WC
5895#ifdef __cplusplus
5896extern "C"
5897#endif
47dd066d
WC
5898char pfm_start ();
5899int
5900main ()
5901{
7fbd9d09 5902return pfm_start ();
47dd066d
WC
5903 ;
5904 return 0;
5905}
5906_ACEOF
412e1bf7
FCE
5907rm -f conftest.$ac_objext conftest$ac_exeext
5908if { (ac_try="$ac_link"
5909case "(($ac_try" in
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5912esac
562d60b0 5913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
5914 (eval "$ac_link") 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
562d60b0 5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
5920 (exit $ac_status); } && {
5921 test -z "$ac_c_werror_flag" ||
5922 test ! -s conftest.err
562d60b0
DB
5923 } && test -s conftest$ac_exeext &&
5924 $as_test_x conftest$ac_exeext; then
47dd066d
WC
5925 ac_cv_lib_pfm_pfm_start=yes
5926else
562d60b0 5927 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
5928sed 's/^/| /' conftest.$ac_ext >&5
5929
5930 ac_cv_lib_pfm_pfm_start=no
47dd066d 5931fi
412e1bf7 5932
412e1bf7
FCE
5933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5934 conftest$ac_exeext conftest.$ac_ext
47dd066d
WC
5935LIBS=$ac_check_lib_save_LIBS
5936fi
562d60b0
DB
5937{ echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_start" >&5
5938echo "${ECHO_T}$ac_cv_lib_pfm_pfm_start" >&6; }
5939if test $ac_cv_lib_pfm_pfm_start = yes; then
47dd066d
WC
5940 cat >>confdefs.h <<_ACEOF
5941#define HAVE_LIBPFM 1
5942_ACEOF
5943
5944 LIBS="-lpfm $LIBS"
5945
5946else
5947
562d60b0
DB
5948 { { echo "$as_me:$LINENO: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&5
5949echo "$as_me: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&2;}
412e1bf7 5950 { (exit 1); exit 1; }; }
47dd066d
WC
5951fi
5952
564eb0a8 5953 fi
7fbd9d09
FCE
5954fi
5955
70d28673
DS
5956
5957if test "${enable_prologues+set}" != set; then
562d60b0
DB
5958 { echo "$as_me:$LINENO: checking to see if prologue searching should be the default" >&5
5959echo $ECHO_N "checking to see if prologue searching should be the default... $ECHO_C" >&6; }
70d28673
DS
5960 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
5961 echo ' yes '
5962 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5963 enable_prologues=yes
562d60b0
DB
5964 { echo "$as_me:$LINENO: result: yes" >&5
5965echo "${ECHO_T}yes" >&6; }
70d28673 5966 else
562d60b0
DB
5967 { echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6; }
70d28673
DS
5969 fi
5970fi
7fbd9d09 5971# Check whether --enable-prologues was given.
412e1bf7 5972if test "${enable_prologues+set}" = set; then
7fbd9d09 5973 enableval=$enable_prologues;
70d28673 5974if test "$enable_prologues" = yes; then
44f75386 5975
412e1bf7 5976cat >>confdefs.h <<\_ACEOF
562d60b0 5977#define ENABLE_PROLOGUES
412e1bf7 5978_ACEOF
44f75386 5979
70d28673 5980fi
7fbd9d09 5981fi
70d28673 5982
7fbd9d09
FCE
5983
5984# Check whether --enable-ssp was given.
412e1bf7 5985if test "${enable_ssp+set}" = set; then
7fbd9d09
FCE
5986 enableval=$enable_ssp;
5987fi
9921a199 5988
412e1bf7 5989if test "x$enable_ssp" != xno; then
bbfd8c1a
FCE
5990
5991 save_CFLAGS="$CFLAGS"
5992 save_CXXFLAGS="$CXXFLAGS"
f0510eaa
FCE
5993 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
5994 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
412e1bf7 5995 cat >conftest.$ac_ext <<_ACEOF
bbfd8c1a
FCE
5996int something ();
5997_ACEOF
412e1bf7
FCE
5998rm -f conftest.$ac_objext
5999if { (ac_try="$ac_compile"
6000case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003esac
562d60b0 6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
6005 (eval "$ac_compile") 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
562d60b0 6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
6011 (exit $ac_status); } && {
6012 test -z "$ac_c_werror_flag" ||
6013 test ! -s conftest.err
6014 } && test -s conftest.$ac_objext; then
818ba2bc 6015
562d60b0
DB
6016 { echo "$as_me:$LINENO: Compiling with gcc -fstack-protector-all et al." >&5
6017echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
f0510eaa
FCE
6018 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
6019 CXFXLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
bbfd8c1a 6020else
562d60b0 6021 echo "$as_me: failed program was:" >&5
412e1bf7 6022sed 's/^/| /' conftest.$ac_ext >&5
bbfd8c1a 6023
412e1bf7 6024
562d60b0
DB
6025 { echo "$as_me:$LINENO: Compiler does not support -fstack-protector-all et al." >&5
6026echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
bbfd8c1a
FCE
6027 CFLAGS="$save_CFLAGS"
6028 CXXFLAGS="$save_CXXFLAGS"
6029fi
412e1bf7 6030
7fbd9d09 6031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921a199 6032fi
70d28673 6033
412e1bf7 6034
e1e3ba36 6035# Compiling without fPIE by default (see PR 9922)
7fbd9d09 6036# Check whether --enable-pie was given.
412e1bf7 6037if test "${enable_pie+set}" = set; then
7fbd9d09
FCE
6038 enableval=$enable_pie;
6039fi
8730f377 6040
412e1bf7 6041if test "x$enable_pie" == xyes; then
8730f377
FCE
6042
6043 save_CFLAGS="$CFLAGS"
6044 save_CXXFLAGS="$CXXFLAGS"
6045 save_LDFLAGS="$LDFLAGS"
7b53a460
SD
6046 CFLAGS="$CFLAGS -fPIE"
6047 CXXFLAGS="$CXXFLAGS -fPIE"
8730f377 6048 LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
412e1bf7 6049 cat >conftest.$ac_ext <<_ACEOF
8730f377
FCE
6050void main () {}
6051_ACEOF
412e1bf7
FCE
6052rm -f conftest.$ac_objext conftest$ac_exeext
6053if { (ac_try="$ac_link"
6054case "(($ac_try" in
6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6057esac
562d60b0 6058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
6059 (eval "$ac_link") 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
562d60b0 6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
6065 (exit $ac_status); } && {
6066 test -z "$ac_c_werror_flag" ||
6067 test ! -s conftest.err
562d60b0
DB
6068 } && test -s conftest$ac_exeext &&
6069 $as_test_x conftest$ac_exeext; then
818ba2bc 6070
562d60b0
DB
6071 { echo "$as_me:$LINENO: Compiling with gcc pie et al." >&5
6072echo "$as_me: Compiling with gcc pie et al." >&6;}
8730f377
FCE
6073 # LDFLAGS is special since it may be passed down to bundled-elfutils,
6074 # and interfere with the .so's built therein
5574ef2c 6075 PIELDFLAGS="$LDFLAGS"
8730f377 6076 LDFLAGS="$save_LDFLAGS"
5574ef2c
MW
6077 PIECFLAGS="$CFLAGS"
6078 CFLAGS="$save_CFLAGS"
6079 PIECXXFLAGS="$CXXFLAGS"
6080 CXXFLAGS="$save_CXXFLAGS"
8730f377
FCE
6081
6082else
562d60b0 6083 echo "$as_me: failed program was:" >&5
412e1bf7 6084sed 's/^/| /' conftest.$ac_ext >&5
8730f377 6085
412e1bf7 6086
562d60b0
DB
6087 { echo "$as_me:$LINENO: Compiler does not support -pie et al." >&5
6088echo "$as_me: Compiler does not support -pie et al." >&6;}
5574ef2c 6089 PIECFLAGS=""
8730f377 6090 CFLAGS="$save_CFLAGS"
5574ef2c 6091 PIECXXFLAGS=""
8730f377
FCE
6092 CXXFLAGS="$save_CXXFLAGS"
6093 PIELDFLAGS=""
6094 LDFLAGS="$save_LDFLAGS"
6095fi
412e1bf7 6096
412e1bf7
FCE
6097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6098 conftest$ac_exeext conftest.$ac_ext
8730f377
FCE
6099fi
6100
6101
6102
5574ef2c 6103
412e1bf7 6104
7fbd9d09 6105# Check whether --enable-sqlite was given.
412e1bf7 6106if test "${enable_sqlite+set}" = set; then
7fbd9d09 6107 enableval=$enable_sqlite;
9921a199 6108else
e8f3c2c2 6109 enable_sqlite=check
7fbd9d09
FCE
6110fi
6111 sqlite3_LIBS=
412e1bf7 6112if test "x$enable_sqlite" != xno; then
562d60b0
DB
6113 { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
6114echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; }
412e1bf7 6115if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
562d60b0 6116 echo $ECHO_N "(cached) $ECHO_C" >&6
42feb3c0
WC
6117else
6118 ac_check_lib_save_LIBS=$LIBS
6119LIBS="-lsqlite3 $LIBS"
412e1bf7
FCE
6120cat >conftest.$ac_ext <<_ACEOF
6121/* confdefs.h. */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
42feb3c0
WC
6125/* end confdefs.h. */
6126
7fbd9d09
FCE
6127/* Override any GCC internal prototype to avoid an error.
6128 Use char because int might match the return type of a GCC
6129 builtin and then its argument prototype would still apply. */
42feb3c0
WC
6130#ifdef __cplusplus
6131extern "C"
6132#endif
6133char sqlite3_open ();
6134int
6135main ()
6136{
7fbd9d09 6137return sqlite3_open ();
42feb3c0
WC
6138 ;
6139 return 0;
6140}
6141_ACEOF
412e1bf7
FCE
6142rm -f conftest.$ac_objext conftest$ac_exeext
6143if { (ac_try="$ac_link"
6144case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147esac
562d60b0 6148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
6149 (eval "$ac_link") 2>conftest.er1
6150 ac_status=$?
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
562d60b0 6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
6155 (exit $ac_status); } && {
6156 test -z "$ac_c_werror_flag" ||
6157 test ! -s conftest.err
562d60b0
DB
6158 } && test -s conftest$ac_exeext &&
6159 $as_test_x conftest$ac_exeext; then
42feb3c0
WC
6160 ac_cv_lib_sqlite3_sqlite3_open=yes
6161else
562d60b0 6162 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
6165 ac_cv_lib_sqlite3_sqlite3_open=no
42feb3c0 6166fi
412e1bf7 6167
412e1bf7
FCE
6168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6169 conftest$ac_exeext conftest.$ac_ext
42feb3c0
WC
6170LIBS=$ac_check_lib_save_LIBS
6171fi
562d60b0
DB
6172{ echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
6173echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
6174if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
9921a199 6175 sqlite3_LIBS=-lsqlite3
42feb3c0 6176
0d563e60 6177
412e1bf7
FCE
6178cat >>confdefs.h <<\_ACEOF
6179#define HAVE_LIBSQLITE3 1
6180_ACEOF
07606685 6181
9921a199
DS
6182else
6183 if test "x$enable_sqlite" != xcheck; then
562d60b0 6184 { { echo "$as_me:$LINENO: error: --enable-sqlite was given, but test for sqlite failed
412e1bf7 6185See \`config.log' for more details." >&5
562d60b0 6186echo "$as_me: error: --enable-sqlite was given, but test for sqlite failed
412e1bf7 6187See \`config.log' for more details." >&2;}
562d60b0 6188 { (exit 1); exit 1; }; }
9921a199 6189 fi
42feb3c0
WC
6190fi
6191
9921a199 6192fi
44f75386 6193
412e1bf7 6194
6d14a4a9 6195# Check whether --enable-translator was given.
412e1bf7 6196if test "${enable_translator+set}" = set; then
6d14a4a9
EB
6197 enableval=$enable_translator;
6198else
6199 enable_translator="yes"
6200fi
6201
6202 if test "$enable_translator" == "yes"; then
6203 BUILD_TRANSLATOR_TRUE=
6204 BUILD_TRANSLATOR_FALSE='#'
6205else
6206 BUILD_TRANSLATOR_TRUE='#'
6207 BUILD_TRANSLATOR_FALSE=
6208fi
6209
6210
7fbd9d09 6211# Check whether --enable-crash was given.
412e1bf7 6212if test "${enable_crash+set}" = set; then
7fbd9d09 6213 enableval=$enable_crash; if test "$enable_crash" != "no"; then
564eb0a8
DS
6214 save_CPPFLAGS="$CPPFLAGS"
6215 if test "$enable_crash" != "yes"; then
6216 staplog_CPPFLAGS=-I$enable_crash
4a3c19da 6217 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
35a04c8e 6218
412e1bf7
FCE
6219 fi
6220
6221for ac_header in crash/defs.h
6222do
562d60b0
DB
6223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6224{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
412e1bf7 6226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 6227 echo $ECHO_N "(cached) $ECHO_C" >&6
412e1bf7
FCE
6228else
6229 cat >conftest.$ac_ext <<_ACEOF
6230/* confdefs.h. */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
6234/* end confdefs.h. */
6235
4a3c19da 6236#define NR_CPUS 256
7fbd9d09 6237
412e1bf7
FCE
6238
6239#include <$ac_header>
6240_ACEOF
6241rm -f conftest.$ac_objext
6242if { (ac_try="$ac_compile"
6243case "(($ac_try" in
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6246esac
562d60b0 6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
6248 (eval "$ac_compile") 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
562d60b0 6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
6254 (exit $ac_status); } && {
6255 test -z "$ac_c_werror_flag" ||
6256 test ! -s conftest.err
6257 } && test -s conftest.$ac_objext; then
6258 eval "$as_ac_Header=yes"
6259else
562d60b0 6260 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
6261sed 's/^/| /' conftest.$ac_ext >&5
6262
6263 eval "$as_ac_Header=no"
6264fi
6265
6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267fi
562d60b0
DB
6268ac_res=`eval echo '${'$as_ac_Header'}'`
6269 { echo "$as_me:$LINENO: result: $ac_res" >&5
6270echo "${ECHO_T}$ac_res" >&6; }
6271if test `eval echo '${'$as_ac_Header'}'` = yes; then
35a04c8e 6272 cat >>confdefs.h <<_ACEOF
562d60b0 6273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35a04c8e 6274_ACEOF
564eb0a8 6275
35a04c8e 6276else
562d60b0
DB
6277 { { echo "$as_me:$LINENO: error: cannot find required crash header (crash-devel may need to be installed)" >&5
6278echo "$as_me: error: cannot find required crash header (crash-devel may need to be installed)" >&2;}
412e1bf7 6279 { (exit 1); exit 1; }; }
35a04c8e
FCE
6280fi
6281
6282done
6283
564eb0a8
DS
6284 CPPFLAGS="$save_CPPFLAGS"
6285 fi
6286else
6287 enable_crash="no"
7fbd9d09 6288fi
564eb0a8 6289
7fbd9d09 6290 if test "$enable_crash" != "no"; then
35a04c8e
FCE
6291 BUILD_CRASHMOD_TRUE=
6292 BUILD_CRASHMOD_FALSE='#'
6293else
6294 BUILD_CRASHMOD_TRUE='#'
6295 BUILD_CRASHMOD_FALSE=
6296fi
6297
6298
92aff3c7 6299building_docs="no"
7fbd9d09 6300# Check whether --enable-docs was given.
412e1bf7 6301if test "${enable_docs+set}" = set; then
7fbd9d09 6302 enableval=$enable_docs; enable_docs=$enableval
465e8fbf
FCE
6303else
6304 enable_docs="check"
7fbd9d09
FCE
6305fi
6306
465e8fbf
FCE
6307# Extract the first word of "latex", so it can be a program name with args.
6308set dummy latex; ac_word=$2
562d60b0
DB
6309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 6311if test "${ac_cv_prog_have_latex+set}" = set; then
562d60b0 6312 echo $ECHO_N "(cached) $ECHO_C" >&6
465e8fbf
FCE
6313else
6314 if test -n "$have_latex"; then
6315 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
6316else
6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
412e1bf7 6322 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6324 ac_cv_prog_have_latex="yes"
562d60b0 6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6326 break 2
6327 fi
6328done
412e1bf7 6329done
7fbd9d09 6330IFS=$as_save_IFS
465e8fbf
FCE
6331
6332 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
6333fi
6334fi
6335have_latex=$ac_cv_prog_have_latex
6336if test -n "$have_latex"; then
562d60b0
DB
6337 { echo "$as_me:$LINENO: result: $have_latex" >&5
6338echo "${ECHO_T}$have_latex" >&6; }
465e8fbf 6339else
562d60b0
DB
6340 { echo "$as_me:$LINENO: result: no" >&5
6341echo "${ECHO_T}no" >&6; }
465e8fbf
FCE
6342fi
6343
7fbd9d09 6344
465e8fbf
FCE
6345# Extract the first word of "dvips", so it can be a program name with args.
6346set dummy dvips; ac_word=$2
562d60b0
DB
6347{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 6349if test "${ac_cv_prog_have_dvips+set}" = set; then
562d60b0 6350 echo $ECHO_N "(cached) $ECHO_C" >&6
465e8fbf
FCE
6351else
6352 if test -n "$have_dvips"; then
6353 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
412e1bf7 6360 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6362 ac_cv_prog_have_dvips="yes"
562d60b0 6363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6364 break 2
6365 fi
6366done
412e1bf7 6367done
7fbd9d09 6368IFS=$as_save_IFS
465e8fbf
FCE
6369
6370 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
6371fi
6372fi
6373have_dvips=$ac_cv_prog_have_dvips
6374if test -n "$have_dvips"; then
562d60b0
DB
6375 { echo "$as_me:$LINENO: result: $have_dvips" >&5
6376echo "${ECHO_T}$have_dvips" >&6; }
465e8fbf 6377else
562d60b0
DB
6378 { echo "$as_me:$LINENO: result: no" >&5
6379echo "${ECHO_T}no" >&6; }
465e8fbf
FCE
6380fi
6381
7fbd9d09 6382
465e8fbf
FCE
6383# Extract the first word of "ps2pdf", so it can be a program name with args.
6384set dummy ps2pdf; ac_word=$2
562d60b0
DB
6385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 6387if test "${ac_cv_prog_have_ps2pdf+set}" = set; then
562d60b0 6388 echo $ECHO_N "(cached) $ECHO_C" >&6
465e8fbf
FCE
6389else
6390 if test -n "$have_ps2pdf"; then
6391 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
6392else
6393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
412e1bf7 6398 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 6400 ac_cv_prog_have_ps2pdf="yes"
562d60b0 6401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
6402 break 2
6403 fi
6404done
412e1bf7 6405done
7fbd9d09 6406IFS=$as_save_IFS
465e8fbf
FCE
6407
6408 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
6409fi
6410fi
6411have_ps2pdf=$ac_cv_prog_have_ps2pdf
6412if test -n "$have_ps2pdf"; then
562d60b0
DB
6413 { echo "$as_me:$LINENO: result: $have_ps2pdf" >&5
6414echo "${ECHO_T}$have_ps2pdf" >&6; }
465e8fbf 6415else
562d60b0
DB
6416 { echo "$as_me:$LINENO: result: no" >&5
6417echo "${ECHO_T}no" >&6; }
465e8fbf
FCE
6418fi
6419
7fbd9d09 6420
b62c413b
EM
6421# Extract the first word of "latex2html", so it can be a program name with args.
6422set dummy latex2html; ac_word=$2
562d60b0
DB
6423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 6425if test "${ac_cv_prog_have_latex2html+set}" = set; then
562d60b0 6426 echo $ECHO_N "(cached) $ECHO_C" >&6
b62c413b
EM
6427else
6428 if test -n "$have_latex2html"; then
6429 ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
412e1bf7 6436 for ac_exec_ext in '' $ac_executable_extensions; do
b62c413b
EM
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6438 ac_cv_prog_have_latex2html="yes"
562d60b0 6439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b62c413b
EM
6440 break 2
6441 fi
6442done
412e1bf7 6443done
b62c413b
EM
6444IFS=$as_save_IFS
6445
6446 test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no"
6447fi
6448fi
6449have_latex2html=$ac_cv_prog_have_latex2html
6450if test -n "$have_latex2html"; then
562d60b0
DB
6451 { echo "$as_me:$LINENO: result: $have_latex2html" >&5
6452echo "${ECHO_T}$have_latex2html" >&6; }
b62c413b 6453else
562d60b0
DB
6454 { echo "$as_me:$LINENO: result: no" >&5
6455echo "${ECHO_T}no" >&6; }
b62c413b
EM
6456fi
6457
6458
6459if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then
2d4b8ddf 6460 if test "$enable_docs" == "yes"; then
562d60b0
DB
6461 { { echo "$as_me:$LINENO: error: cannot find all tools for building documentation" >&5
6462echo "$as_me: error: cannot find all tools for building documentation" >&2;}
412e1bf7 6463 { (exit 1); exit 1; }; }
465e8fbf 6464 fi
2d4b8ddf 6465 if test "$enable_docs" == "check"; then
562d60b0
DB
6466 { echo "$as_me:$LINENO: WARNING: will not build documentation, cannot find all tools" >&5
6467echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
2d4b8ddf 6468 fi
465e8fbf 6469fi
b62c413b 6470if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then
92aff3c7
WC
6471 building_docs="yes"
6472fi
7fbd9d09 6473 if test "$building_docs" == "yes"; then
465e8fbf
FCE
6474 BUILD_DOCS_TRUE=
6475 BUILD_DOCS_FALSE='#'
6476else
6477 BUILD_DOCS_TRUE='#'
6478 BUILD_DOCS_FALSE=
6479fi
6480
6481
92aff3c7 6482building_refdocs="no"
7fbd9d09 6483# Check whether --enable-refdocs was given.
412e1bf7 6484if test "${enable_refdocs+set}" = set; then
7fbd9d09 6485 enableval=$enable_refdocs; enable_refdocs=$enableval
92aff3c7
WC
6486else
6487 enable_refdocs="check"
7fbd9d09
FCE
6488fi
6489
92aff3c7 6490if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
562d60b0
DB
6491 { { echo "$as_me:$LINENO: error: must use --enable-docs with --enable-refdocs" >&5
6492echo "$as_me: error: must use --enable-docs with --enable-refdocs" >&2;}
412e1bf7 6493 { (exit 1); exit 1; }; }
92aff3c7
WC
6494fi
6495# Extract the first word of "xmlto", so it can be a program name with args.
6496set dummy xmlto; ac_word=$2
562d60b0
DB
6497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 6499if test "${ac_cv_prog_have_xmlto+set}" = set; then
562d60b0 6500 echo $ECHO_N "(cached) $ECHO_C" >&6
92aff3c7
WC
6501else
6502 if test -n "$have_xmlto"; then
6503 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
412e1bf7 6510 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
92aff3c7 6512 ac_cv_prog_have_xmlto="yes"
562d60b0 6513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
92aff3c7
WC
6514 break 2
6515 fi
6516done
412e1bf7 6517done
7fbd9d09 6518IFS=$as_save_IFS
92aff3c7
WC
6519
6520 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
6521fi
6522fi
6523have_xmlto=$ac_cv_prog_have_xmlto
6524if test -n "$have_xmlto"; then
562d60b0
DB
6525 { echo "$as_me:$LINENO: result: $have_xmlto" >&5
6526echo "${ECHO_T}$have_xmlto" >&6; }
92aff3c7 6527else
562d60b0
DB
6528 { echo "$as_me:$LINENO: result: no" >&5
6529echo "${ECHO_T}no" >&6; }
92aff3c7
WC
6530fi
6531
7fbd9d09 6532
ccf8bc85
EM
6533if test "$enable_refdocs" == "yes"; then
6534 if test "x${have_xmlto}" != "xyes"; then
562d60b0
DB
6535 { { echo "$as_me:$LINENO: error: cannot find xmlto for building reference documentation" >&5
6536echo "$as_me: error: cannot find xmlto for building reference documentation" >&2;}
412e1bf7 6537 { (exit 1); exit 1; }; }
ccf8bc85
EM
6538 fi
6539fi
6540if test "x${have_xmlto}" == "xyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
6541 building_refdocs="yes"
6542fi
6543 if test "$building_refdocs" == "yes"; then
6544 BUILD_REFDOCS_TRUE=
6545 BUILD_REFDOCS_FALSE='#'
6546else
6547 BUILD_REFDOCS_TRUE='#'
6548 BUILD_REFDOCS_FALSE=
6549fi
6550
6551
468abaf4 6552cat > conftest.xml << 'EOF'
aa5951be
WC
6553<?xml version="1.0" encoding="UTF-8"?>
6554<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
6555"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
468abaf4
FCE
6556 <book lang="en">
6557 <bookinfo><title>foo</title></bookinfo>
6558 <chapter><title>bar</title><para>baz</para></chapter>
aa5951be
WC
6559 </book>
6560EOF
468abaf4
FCE
6561
6562if test "x${have_xmlto}" == "xyes"; then
562d60b0
DB
6563{ echo "$as_me:$LINENO: checking for xmlto --stringparam support" >&5
6564echo $ECHO_N "checking for xmlto --stringparam support... $ECHO_C" >&6; }
520f5cca 6565 xmlto --stringparam man.authors.section.enabled=0 txt conftest.xml >/dev/null 2>&1
468abaf4
FCE
6566 if test $? == 0; then
6567 have_xmlto_stringparam="yes"
562d60b0
DB
6568 { echo "$as_me:$LINENO: result: yes" >&5
6569echo "${ECHO_T}yes" >&6; }
468abaf4 6570 else
562d60b0
DB
6571 { echo "$as_me:$LINENO: result: no" >&5
6572echo "${ECHO_T}no" >&6; }
468abaf4
FCE
6573 fi
6574 rm -f conftest.txt
6575fi
6576 if test "$have_xmlto_stringparam" == "yes"; then
6577 XMLTO_STRINGPARAM_TRUE=
6578 XMLTO_STRINGPARAM_FALSE='#'
6579else
6580 XMLTO_STRINGPARAM_TRUE='#'
6581 XMLTO_STRINGPARAM_FALSE=
6582fi
6583
6584
6585if test "x${building_refdocs}" == "xyes"; then
562d60b0
DB
6586{ echo "$as_me:$LINENO: checking for xmlto pdf support" >&5
6587echo $ECHO_N "checking for xmlto pdf support... $ECHO_C" >&6; }
468abaf4 6588 xmlto pdf conftest.xml >& /dev/null
aa5951be
WC
6589 if test $? == 0; then
6590 have_xmlto_pdf="yes"
562d60b0
DB
6591 { echo "$as_me:$LINENO: result: yes" >&5
6592echo "${ECHO_T}yes" >&6; }
aa5951be 6593 else
562d60b0
DB
6594 { echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6; }
6596 { echo "$as_me:$LINENO: WARNING: Not building reference documentation in PDF format" >&5
6597echo "$as_me: WARNING: Not building reference documentation in PDF format" >&2;}
aa5951be 6598 fi
468abaf4 6599 rm -f conftest.pdf
aa5951be 6600fi
7a18a126 6601 if test "maybe later" == "yes"; then
ccf8bc85
EM
6602 BUILD_PDFREFDOCS_TRUE=
6603 BUILD_PDFREFDOCS_FALSE='#'
92aff3c7 6604else
ccf8bc85
EM
6605 BUILD_PDFREFDOCS_TRUE='#'
6606 BUILD_PDFREFDOCS_FALSE=
92aff3c7
WC
6607fi
6608
6609
468abaf4
FCE
6610rm -f conftest.xml
6611
6612
7fbd9d09 6613# Check whether --enable-server was given.
412e1bf7 6614if test "${enable_server+set}" = set; then
7fbd9d09 6615 enableval=$enable_server; enable_server=$enableval
19a0d4b6
MW
6616else
6617 enable_server="check"
7fbd9d09
FCE
6618fi
6619
07f82253
MW
6620# Extract the first word of "certutil", so it can be a program name with args.
6621set dummy certutil; ac_word=$2
562d60b0
DB
6622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 6624if test "${ac_cv_prog_have_certutil+set}" = set; then
562d60b0 6625 echo $ECHO_N "(cached) $ECHO_C" >&6
07f82253
MW
6626else
6627 if test -n "$have_certutil"; then
6628 ac_cv_prog_have_certutil="$have_certutil" # Let the user override the test.
6629else
6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
412e1bf7 6635 for ac_exec_ext in '' $ac_executable_extensions; do
07f82253
MW
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_prog_have_certutil="yes"
562d60b0 6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
07f82253
MW
6639 break 2
6640 fi
6641done
412e1bf7 6642done
07f82253
MW
6643IFS=$as_save_IFS
6644
6645 test -z "$ac_cv_prog_have_certutil" && ac_cv_prog_have_certutil="no"
6646fi
6647fi
6648have_certutil=$ac_cv_prog_have_certutil
6649if test -n "$have_certutil"; then
562d60b0
DB
6650 { echo "$as_me:$LINENO: result: $have_certutil" >&5
6651echo "${ECHO_T}$have_certutil" >&6; }
07f82253 6652else
562d60b0
DB
6653 { echo "$as_me:$LINENO: result: no" >&5
6654echo "${ECHO_T}no" >&6; }
07f82253
MW
6655fi
6656
6657
562d60b0
DB
6658{ echo "$as_me:$LINENO: checking for /usr/include/nss3" >&5
6659echo $ECHO_N "checking for /usr/include/nss3... $ECHO_C" >&6; }
412e1bf7 6660if test "${ac_cv_file__usr_include_nss3+set}" = set; then
562d60b0 6661 echo $ECHO_N "(cached) $ECHO_C" >&6
43498922 6662else
8ca54d60 6663 test "$cross_compiling" = yes &&
562d60b0
DB
6664 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6665echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
412e1bf7 6666 { (exit 1); exit 1; }; }
8ca54d60
EB
6667if test -r "/usr/include/nss3"; then
6668 ac_cv_file__usr_include_nss3=yes
6669else
6670 ac_cv_file__usr_include_nss3=no
43498922 6671fi
8ca54d60 6672fi
562d60b0
DB
6673{ echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss3" >&5
6674echo "${ECHO_T}$ac_cv_file__usr_include_nss3" >&6; }
6675if test $ac_cv_file__usr_include_nss3 = yes; then
8ca54d60 6676 nssdir=nss3
43498922 6677else
8ca54d60 6678
562d60b0
DB
6679 { echo "$as_me:$LINENO: checking for /usr/include/nss" >&5
6680echo $ECHO_N "checking for /usr/include/nss... $ECHO_C" >&6; }
412e1bf7 6681if test "${ac_cv_file__usr_include_nss+set}" = set; then
562d60b0 6682 echo $ECHO_N "(cached) $ECHO_C" >&6
8ca54d60
EB
6683else
6684 test "$cross_compiling" = yes &&
562d60b0
DB
6685 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6686echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
412e1bf7 6687 { (exit 1); exit 1; }; }
8ca54d60
EB
6688if test -r "/usr/include/nss"; then
6689 ac_cv_file__usr_include_nss=yes
6690else
6691 ac_cv_file__usr_include_nss=no
6692fi
6693fi
562d60b0
DB
6694{ echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss" >&5
6695echo "${ECHO_T}$ac_cv_file__usr_include_nss" >&6; }
6696if test $ac_cv_file__usr_include_nss = yes; then
8ca54d60 6697 nssdir=nss
43498922
DB
6698fi
6699
6700
6701fi
8ca54d60 6702
562d60b0
DB
6703{ echo "$as_me:$LINENO: checking for /usr/include/nspr4" >&5
6704echo $ECHO_N "checking for /usr/include/nspr4... $ECHO_C" >&6; }
412e1bf7 6705if test "${ac_cv_file__usr_include_nspr4+set}" = set; then
562d60b0 6706 echo $ECHO_N "(cached) $ECHO_C" >&6
43498922 6707else
8ca54d60 6708 test "$cross_compiling" = yes &&
562d60b0
DB
6709 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6710echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
412e1bf7 6711 { (exit 1); exit 1; }; }
8ca54d60
EB
6712if test -r "/usr/include/nspr4"; then
6713 ac_cv_file__usr_include_nspr4=yes
43498922 6714else
8ca54d60
EB
6715 ac_cv_file__usr_include_nspr4=no
6716fi
43498922 6717fi
562d60b0
DB
6718{ echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr4" >&5
6719echo "${ECHO_T}$ac_cv_file__usr_include_nspr4" >&6; }
6720if test $ac_cv_file__usr_include_nspr4 = yes; then
8ca54d60
EB
6721 nsprdir=nspr4
6722else
43498922 6723
562d60b0
DB
6724 { echo "$as_me:$LINENO: checking for /usr/include/nspr" >&5
6725echo $ECHO_N "checking for /usr/include/nspr... $ECHO_C" >&6; }
412e1bf7 6726if test "${ac_cv_file__usr_include_nspr+set}" = set; then
562d60b0 6727 echo $ECHO_N "(cached) $ECHO_C" >&6
43498922 6728else
8ca54d60 6729 test "$cross_compiling" = yes &&
562d60b0
DB
6730 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6731echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
412e1bf7 6732 { (exit 1); exit 1; }; }
8ca54d60
EB
6733if test -r "/usr/include/nspr"; then
6734 ac_cv_file__usr_include_nspr=yes
6735else
6736 ac_cv_file__usr_include_nspr=no
43498922 6737fi
43498922 6738fi
562d60b0
DB
6739{ echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr" >&5
6740echo "${ECHO_T}$ac_cv_file__usr_include_nspr" >&6; }
6741if test $ac_cv_file__usr_include_nspr = yes; then
8ca54d60
EB
6742 nsprdir=nspr
6743fi
6744
43498922
DB
6745
6746fi
6747
8ca54d60
EB
6748if test "x$nssdir" != "x" -a "x$nsprdir" != "x"; then
6749nss_CFLAGS="-I/usr/include/$nssdir"
6750nspr_CFLAGS="-I/usr/include/$nsprdir"
6751
6752
6753save_CPPFLAGS="$CPPFLAGS"
6754CPPFLAGS="$CFLAGS $nss_CFLAGS $nspr_CFLAGS"
f8a49389 6755have_nss_includes=yes
412e1bf7
FCE
6756
6757
6758
6759
6760
6761
6762
8ca54d60 6763for ac_header in "$nsprdir/nspr.h" "$nsprdir/plgetopt.h" "$nsprdir/prerror.h" "$nssdir/ssl.h" "$nssdir/nss.h" "$nssdir/pk11func.h" "$nssdir/secerr.h"
412e1bf7 6764do
562d60b0 6765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
412e1bf7 6766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0
DB
6767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
412e1bf7 6769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 6770 echo $ECHO_N "(cached) $ECHO_C" >&6
412e1bf7 6771fi
562d60b0
DB
6772ac_res=`eval echo '${'$as_ac_Header'}'`
6773 { echo "$as_me:$LINENO: result: $ac_res" >&5
6774echo "${ECHO_T}$ac_res" >&6; }
412e1bf7
FCE
6775else
6776 # Is the header compilable?
562d60b0
DB
6777{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
412e1bf7
FCE
6779cat >conftest.$ac_ext <<_ACEOF
6780/* confdefs.h. */
6781_ACEOF
6782cat confdefs.h >>conftest.$ac_ext
6783cat >>conftest.$ac_ext <<_ACEOF
6784/* end confdefs.h. */
6785$ac_includes_default
6786#include <$ac_header>
6787_ACEOF
6788rm -f conftest.$ac_objext
6789if { (ac_try="$ac_compile"
6790case "(($ac_try" in
6791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792 *) ac_try_echo=$ac_try;;
6793esac
562d60b0 6794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
6795 (eval "$ac_compile") 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
562d60b0 6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
6801 (exit $ac_status); } && {
6802 test -z "$ac_c_werror_flag" ||
6803 test ! -s conftest.err
6804 } && test -s conftest.$ac_objext; then
6805 ac_header_compiler=yes
6806else
562d60b0 6807 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
6808sed 's/^/| /' conftest.$ac_ext >&5
6809
6810 ac_header_compiler=no
6811fi
6812
6813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
562d60b0
DB
6814{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6815echo "${ECHO_T}$ac_header_compiler" >&6; }
412e1bf7
FCE
6816
6817# Is the header present?
562d60b0
DB
6818{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6819echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
412e1bf7
FCE
6820cat >conftest.$ac_ext <<_ACEOF
6821/* confdefs.h. */
6822_ACEOF
6823cat confdefs.h >>conftest.$ac_ext
6824cat >>conftest.$ac_ext <<_ACEOF
6825/* end confdefs.h. */
6826#include <$ac_header>
6827_ACEOF
6828if { (ac_try="$ac_cpp conftest.$ac_ext"
6829case "(($ac_try" in
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6832esac
562d60b0 6833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
6834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6835 ac_status=$?
6836 grep -v '^ *+' conftest.er1 >conftest.err
6837 rm -f conftest.er1
6838 cat conftest.err >&5
562d60b0 6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
6840 (exit $ac_status); } >/dev/null && {
6841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6842 test ! -s conftest.err
6843 }; then
6844 ac_header_preproc=yes
6845else
562d60b0 6846 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
6847sed 's/^/| /' conftest.$ac_ext >&5
6848
6849 ac_header_preproc=no
6850fi
6851
6852rm -f conftest.err conftest.$ac_ext
562d60b0
DB
6853{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6854echo "${ECHO_T}$ac_header_preproc" >&6; }
412e1bf7
FCE
6855
6856# So? What about this header?
6857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6858 yes:no: )
562d60b0
DB
6859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
412e1bf7
FCE
6863 ac_header_preproc=yes
6864 ;;
6865 no:yes:* )
562d60b0
DB
6866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6869echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6873echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
412e1bf7
FCE
6878 ( cat <<\_ASBOX
6879## ------------------------------------------- ##
6880## Report this to systemtap@sources.redhat.com ##
6881## ------------------------------------------- ##
6882_ASBOX
6883 ) | sed "s/^/$as_me: WARNING: /" >&2
6884 ;;
6885esac
562d60b0
DB
6886{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
412e1bf7 6888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 6889 echo $ECHO_N "(cached) $ECHO_C" >&6
412e1bf7
FCE
6890else
6891 eval "$as_ac_Header=\$ac_header_preproc"
6892fi
562d60b0
DB
6893ac_res=`eval echo '${'$as_ac_Header'}'`
6894 { echo "$as_me:$LINENO: result: $ac_res" >&5
6895echo "${ECHO_T}$ac_res" >&6; }
412e1bf7
FCE
6896
6897fi
562d60b0 6898if test `eval echo '${'$as_ac_Header'}'` = yes; then
8ca54d60 6899 cat >>confdefs.h <<_ACEOF
562d60b0 6900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8ca54d60 6901_ACEOF
f8a49389 6902
43498922 6903else
8ca54d60 6904 have_nss_includes=no
43498922
DB
6905fi
6906
8ca54d60
EB
6907done
6908
6909CPPFLAGS="$save_CPPFLAGS"
6910have_nss_libs=no
562d60b0
DB
6911{ echo "$as_me:$LINENO: checking for PR_Connect in -lnspr4" >&5
6912echo $ECHO_N "checking for PR_Connect in -lnspr4... $ECHO_C" >&6; }
412e1bf7 6913if test "${ac_cv_lib_nspr4_PR_Connect+set}" = set; then
562d60b0 6914 echo $ECHO_N "(cached) $ECHO_C" >&6
8ca54d60
EB
6915else
6916 ac_check_lib_save_LIBS=$LIBS
6917LIBS="-lnspr4 $LIBS"
412e1bf7
FCE
6918cat >conftest.$ac_ext <<_ACEOF
6919/* confdefs.h. */
6920_ACEOF
6921cat confdefs.h >>conftest.$ac_ext
6922cat >>conftest.$ac_ext <<_ACEOF
8ca54d60 6923/* end confdefs.h. */
19a0d4b6 6924
7fbd9d09
FCE
6925/* Override any GCC internal prototype to avoid an error.
6926 Use char because int might match the return type of a GCC
6927 builtin and then its argument prototype would still apply. */
8ca54d60
EB
6928#ifdef __cplusplus
6929extern "C"
6930#endif
6931char PR_Connect ();
6932int
6933main ()
6934{
7fbd9d09 6935return PR_Connect ();
8ca54d60
EB
6936 ;
6937 return 0;
6938}
6939_ACEOF
412e1bf7
FCE
6940rm -f conftest.$ac_objext conftest$ac_exeext
6941if { (ac_try="$ac_link"
6942case "(($ac_try" in
6943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6945esac
562d60b0 6946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
6947 (eval "$ac_link") 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
562d60b0 6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
6953 (exit $ac_status); } && {
6954 test -z "$ac_c_werror_flag" ||
6955 test ! -s conftest.err
562d60b0
DB
6956 } && test -s conftest$ac_exeext &&
6957 $as_test_x conftest$ac_exeext; then
8ca54d60 6958 ac_cv_lib_nspr4_PR_Connect=yes
43498922 6959else
562d60b0 6960 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
6961sed 's/^/| /' conftest.$ac_ext >&5
6962
6963 ac_cv_lib_nspr4_PR_Connect=no
43498922 6964fi
412e1bf7 6965
412e1bf7
FCE
6966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6967 conftest$ac_exeext conftest.$ac_ext
8ca54d60 6968LIBS=$ac_check_lib_save_LIBS
43498922 6969fi
562d60b0
DB
6970{ echo "$as_me:$LINENO: result: $ac_cv_lib_nspr4_PR_Connect" >&5
6971echo "${ECHO_T}$ac_cv_lib_nspr4_PR_Connect" >&6; }
6972if test $ac_cv_lib_nspr4_PR_Connect = yes; then
8ca54d60 6973
562d60b0
DB
6974 { echo "$as_me:$LINENO: checking for SSL_ReHandshake in -lssl3" >&5
6975echo $ECHO_N "checking for SSL_ReHandshake in -lssl3... $ECHO_C" >&6; }
412e1bf7 6976if test "${ac_cv_lib_ssl3_SSL_ReHandshake+set}" = set; then
562d60b0 6977 echo $ECHO_N "(cached) $ECHO_C" >&6
8ca54d60
EB
6978else
6979 ac_check_lib_save_LIBS=$LIBS
6980LIBS="-lssl3 $LIBS"
412e1bf7
FCE
6981cat >conftest.$ac_ext <<_ACEOF
6982/* confdefs.h. */
6983_ACEOF
6984cat confdefs.h >>conftest.$ac_ext
6985cat >>conftest.$ac_ext <<_ACEOF
8ca54d60
EB
6986/* end confdefs.h. */
6987
7fbd9d09
FCE
6988/* Override any GCC internal prototype to avoid an error.
6989 Use char because int might match the return type of a GCC
6990 builtin and then its argument prototype would still apply. */
8ca54d60
EB
6991#ifdef __cplusplus
6992extern "C"
6993#endif
6994char SSL_ReHandshake ();
6995int
6996main ()
6997{
7fbd9d09 6998return SSL_ReHandshake ();
8ca54d60
EB
6999 ;
7000 return 0;
7001}
7002_ACEOF
412e1bf7
FCE
7003rm -f conftest.$ac_objext conftest$ac_exeext
7004if { (ac_try="$ac_link"
7005case "(($ac_try" in
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7008esac
562d60b0 7009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
7010 (eval "$ac_link") 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
562d60b0 7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
7016 (exit $ac_status); } && {
7017 test -z "$ac_c_werror_flag" ||
7018 test ! -s conftest.err
562d60b0
DB
7019 } && test -s conftest$ac_exeext &&
7020 $as_test_x conftest$ac_exeext; then
8ca54d60 7021 ac_cv_lib_ssl3_SSL_ReHandshake=yes
43498922 7022else
562d60b0 7023 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
7024sed 's/^/| /' conftest.$ac_ext >&5
7025
7026 ac_cv_lib_ssl3_SSL_ReHandshake=no
8ca54d60 7027fi
412e1bf7 7028
412e1bf7
FCE
7029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7030 conftest$ac_exeext conftest.$ac_ext
8ca54d60
EB
7031LIBS=$ac_check_lib_save_LIBS
7032fi
562d60b0
DB
7033{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl3_SSL_ReHandshake" >&5
7034echo "${ECHO_T}$ac_cv_lib_ssl3_SSL_ReHandshake" >&6; }
7035if test $ac_cv_lib_ssl3_SSL_ReHandshake = yes; then
8ca54d60
EB
7036 have_nss_libs=yes
7037fi
43498922 7038
43498922 7039
43498922 7040fi
43498922 7041
19a0d4b6 7042fi
07f82253 7043if test "x${have_nss_includes}${have_nss_libs}${have_certutil}" != "xyesyesyes"; then
19a0d4b6 7044 if test "$enable_server" == "yes"; then
562d60b0
DB
7045 { { echo "$as_me:$LINENO: error: cannot find all libraries or tools for stap-server" >&5
7046echo "$as_me: error: cannot find all libraries or tools for stap-server" >&2;}
412e1bf7 7047 { (exit 1); exit 1; }; }
19a0d4b6
MW
7048 fi
7049 if test "$enable_server" == "check"; then
562d60b0
DB
7050 { echo "$as_me:$LINENO: WARNING: will not build stap-server, cannot find all libraries or tools" >&5
7051echo "$as_me: WARNING: will not build stap-server, cannot find all libraries or tools" >&2;}
19a0d4b6 7052 fi
2035bcd4
DB
7053else
7054
412e1bf7
FCE
7055cat >>confdefs.h <<\_ACEOF
7056#define HAVE_NSS 1
7057_ACEOF
2035bcd4 7058
19a0d4b6 7059fi
d450a957 7060 if test "x${have_nss_includes}${have_nss_libs}${have_certutil}" == "xyesyesyes" -a "$enable_server" != "no"; then
19a0d4b6
MW
7061 BUILD_SERVER_TRUE=
7062 BUILD_SERVER_FALSE='#'
7063else
7064 BUILD_SERVER_TRUE='#'
7065 BUILD_SERVER_FALSE=
43498922
DB
7066fi
7067
07f82253 7068 if test "x${have_nss_includes}${have_nss_libs}${have_certutil}" == "xyesyesyes"; then
2035bcd4
DB
7069 HAVE_NSS_TRUE=
7070 HAVE_NSS_FALSE='#'
7071else
7072 HAVE_NSS_TRUE='#'
7073 HAVE_NSS_FALSE=
7074fi
7075
19a0d4b6 7076
1087b83f 7077# Check whether --enable-grapher was given.
412e1bf7 7078if test "${enable_grapher+set}" = set; then
c3f070d9 7079 enableval=$enable_grapher;
1087b83f 7080else
c3f070d9 7081 enable_grapher="check"
1087b83f
TM
7082fi
7083
7084
1087b83f
TM
7085if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7086 if test -n "$ac_tool_prefix"; then
7087 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7088set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
562d60b0
DB
7089{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 7091if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
562d60b0 7092 echo $ECHO_N "(cached) $ECHO_C" >&6
1087b83f
TM
7093else
7094 case $PKG_CONFIG in
7095 [\\/]* | ?:[\\/]*)
7096 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7097 ;;
7098 *)
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100for as_dir in $PATH
7101do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
412e1bf7 7104 for ac_exec_ext in '' $ac_executable_extensions; do
1087b83f
TM
7105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7106 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
562d60b0 7107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1087b83f
TM
7108 break 2
7109 fi
7110done
412e1bf7 7111done
1087b83f
TM
7112IFS=$as_save_IFS
7113
7114 ;;
7115esac
7116fi
7117PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7118if test -n "$PKG_CONFIG"; then
562d60b0
DB
7119 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7120echo "${ECHO_T}$PKG_CONFIG" >&6; }
1087b83f 7121else
562d60b0
DB
7122 { echo "$as_me:$LINENO: result: no" >&5
7123echo "${ECHO_T}no" >&6; }
1087b83f
TM
7124fi
7125
7126
7127fi
7128if test -z "$ac_cv_path_PKG_CONFIG"; then
7129 ac_pt_PKG_CONFIG=$PKG_CONFIG
7130 # Extract the first word of "pkg-config", so it can be a program name with args.
7131set dummy pkg-config; ac_word=$2
562d60b0
DB
7132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
412e1bf7 7134if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
562d60b0 7135 echo $ECHO_N "(cached) $ECHO_C" >&6
1087b83f
TM
7136else
7137 case $ac_pt_PKG_CONFIG in
7138 [\\/]* | ?:[\\/]*)
7139 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7140 ;;
7141 *)
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143for as_dir in $PATH
7144do
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
412e1bf7 7147 for ac_exec_ext in '' $ac_executable_extensions; do
1087b83f
TM
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
562d60b0 7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1087b83f
TM
7151 break 2
7152 fi
7153done
412e1bf7 7154done
1087b83f
TM
7155IFS=$as_save_IFS
7156
7157 ;;
7158esac
7159fi
7160ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7161if test -n "$ac_pt_PKG_CONFIG"; then
562d60b0
DB
7162 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7163echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
1087b83f 7164else
562d60b0
DB
7165 { echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6; }
1087b83f
TM
7167fi
7168
7169 if test "x$ac_pt_PKG_CONFIG" = x; then
7170 PKG_CONFIG=""
7171 else
7172 case $cross_compiling:$ac_tool_warned in
7173yes:)
562d60b0
DB
7174{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7175whose name does not start with the host triplet. If you think this
7176configuration is useful to you, please write to autoconf@gnu.org." >&5
7177echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7178whose name does not start with the host triplet. If you think this
7179configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1087b83f
TM
7180ac_tool_warned=yes ;;
7181esac
7182 PKG_CONFIG=$ac_pt_PKG_CONFIG
7183 fi
7184else
7185 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7186fi
7187
7188fi
7189if test -n "$PKG_CONFIG"; then
7190 _pkg_min_version=0.9.0
562d60b0
DB
7191 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7192echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
1087b83f 7193 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
562d60b0
DB
7194 { echo "$as_me:$LINENO: result: yes" >&5
7195echo "${ECHO_T}yes" >&6; }
1087b83f 7196 else
562d60b0
DB
7197 { echo "$as_me:$LINENO: result: no" >&5
7198echo "${ECHO_T}no" >&6; }
1087b83f
TM
7199 PKG_CONFIG=""
7200 fi
7201
7202fi
f8a49389
DS
7203
7204ac_ext=cpp
7205ac_cpp='$CXXCPP $CPPFLAGS'
7206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
562d60b0
DB
7209{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7210echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
f8a49389
DS
7211if test -z "$CXXCPP"; then
7212 if test "${ac_cv_prog_CXXCPP+set}" = set; then
562d60b0 7213 echo $ECHO_N "(cached) $ECHO_C" >&6
f8a49389
DS
7214else
7215 # Double quotes because CXXCPP needs to be expanded
7216 for CXXCPP in "$CXX -E" "/lib/cpp"
7217 do
7218 ac_preproc_ok=false
7219for ac_cxx_preproc_warn_flag in '' yes
7220do
7221 # Use a header file that comes with gcc, so configuring glibc
7222 # with a fresh cross-compiler works.
7223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224 # <limits.h> exists even on freestanding compilers.
7225 # On the NeXT, cc -E runs the code through the compiler's parser,
7226 # not just through cpp. "Syntax error" is here to catch this case.
7227 cat >conftest.$ac_ext <<_ACEOF
7228/* confdefs.h. */
7229_ACEOF
7230cat confdefs.h >>conftest.$ac_ext
7231cat >>conftest.$ac_ext <<_ACEOF
7232/* end confdefs.h. */
7233#ifdef __STDC__
7234# include <limits.h>
7235#else
7236# include <assert.h>
7237#endif
7238 Syntax error
7239_ACEOF
7240if { (ac_try="$ac_cpp conftest.$ac_ext"
7241case "(($ac_try" in
7242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7244esac
562d60b0 7245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
f8a49389
DS
7246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7247 ac_status=$?
7248 grep -v '^ *+' conftest.er1 >conftest.err
7249 rm -f conftest.er1
7250 cat conftest.err >&5
562d60b0 7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f8a49389
DS
7252 (exit $ac_status); } >/dev/null && {
7253 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7254 test ! -s conftest.err
7255 }; then
7256 :
7257else
562d60b0 7258 echo "$as_me: failed program was:" >&5
f8a49389
DS
7259sed 's/^/| /' conftest.$ac_ext >&5
7260
7261 # Broken: fails on valid input.
7262continue
7263fi
7264
7265rm -f conftest.err conftest.$ac_ext
7266
7267 # OK, works on sane cases. Now check whether nonexistent headers
7268 # can be detected and how.
7269 cat >conftest.$ac_ext <<_ACEOF
7270/* confdefs.h. */
7271_ACEOF
7272cat confdefs.h >>conftest.$ac_ext
7273cat >>conftest.$ac_ext <<_ACEOF
7274/* end confdefs.h. */
7275#include <ac_nonexistent.h>
7276_ACEOF
7277if { (ac_try="$ac_cpp conftest.$ac_ext"
7278case "(($ac_try" in
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7281esac
562d60b0 7282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
f8a49389
DS
7283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
562d60b0 7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f8a49389
DS
7289 (exit $ac_status); } >/dev/null && {
7290 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7291 test ! -s conftest.err
7292 }; then
7293 # Broken: success on invalid input.
7294continue
7295else
562d60b0 7296 echo "$as_me: failed program was:" >&5
f8a49389
DS
7297sed 's/^/| /' conftest.$ac_ext >&5
7298
7299 # Passes both tests.
7300ac_preproc_ok=:
7301break
7302fi
7303
7304rm -f conftest.err conftest.$ac_ext
7305
7306done
7307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7308rm -f conftest.err conftest.$ac_ext
7309if $ac_preproc_ok; then
7310 break
7311fi
7312
7313 done
7314 ac_cv_prog_CXXCPP=$CXXCPP
7315
7316fi
7317 CXXCPP=$ac_cv_prog_CXXCPP
7318else
7319 ac_cv_prog_CXXCPP=$CXXCPP
7320fi
562d60b0
DB
7321{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
7322echo "${ECHO_T}$CXXCPP" >&6; }
f8a49389
DS
7323ac_preproc_ok=false
7324for ac_cxx_preproc_warn_flag in '' yes
7325do
7326 # Use a header file that comes with gcc, so configuring glibc
7327 # with a fresh cross-compiler works.
7328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7329 # <limits.h> exists even on freestanding compilers.
7330 # On the NeXT, cc -E runs the code through the compiler's parser,
7331 # not just through cpp. "Syntax error" is here to catch this case.
7332 cat >conftest.$ac_ext <<_ACEOF
7333/* confdefs.h. */
7334_ACEOF
7335cat confdefs.h >>conftest.$ac_ext
7336cat >>conftest.$ac_ext <<_ACEOF
7337/* end confdefs.h. */
7338#ifdef __STDC__
7339# include <limits.h>
7340#else
7341# include <assert.h>
7342#endif
7343 Syntax error
7344_ACEOF
7345if { (ac_try="$ac_cpp conftest.$ac_ext"
7346case "(($ac_try" in
7347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348 *) ac_try_echo=$ac_try;;
7349esac
562d60b0 7350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
f8a49389
DS
7351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7352 ac_status=$?
7353 grep -v '^ *+' conftest.er1 >conftest.err
7354 rm -f conftest.er1
7355 cat conftest.err >&5
562d60b0 7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f8a49389
DS
7357 (exit $ac_status); } >/dev/null && {
7358 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7359 test ! -s conftest.err
7360 }; then
7361 :
7362else
562d60b0 7363 echo "$as_me: failed program was:" >&5
f8a49389
DS
7364sed 's/^/| /' conftest.$ac_ext >&5
7365
7366 # Broken: fails on valid input.
7367continue
7368fi
7369
7370rm -f conftest.err conftest.$ac_ext
7371
7372 # OK, works on sane cases. Now check whether nonexistent headers
7373 # can be detected and how.
7374 cat >conftest.$ac_ext <<_ACEOF
7375/* confdefs.h. */
7376_ACEOF
7377cat confdefs.h >>conftest.$ac_ext
7378cat >>conftest.$ac_ext <<_ACEOF
7379/* end confdefs.h. */
7380#include <ac_nonexistent.h>
7381_ACEOF
7382if { (ac_try="$ac_cpp conftest.$ac_ext"
7383case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386esac
562d60b0 7387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
f8a49389
DS
7388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
562d60b0 7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f8a49389
DS
7394 (exit $ac_status); } >/dev/null && {
7395 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7396 test ! -s conftest.err
7397 }; then
7398 # Broken: success on invalid input.
7399continue
7400else
562d60b0 7401 echo "$as_me: failed program was:" >&5
f8a49389
DS
7402sed 's/^/| /' conftest.$ac_ext >&5
7403
7404 # Passes both tests.
7405ac_preproc_ok=:
7406break
7407fi
7408
7409rm -f conftest.err conftest.$ac_ext
7410
7411done
7412# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7413rm -f conftest.err conftest.$ac_ext
7414if $ac_preproc_ok; then
7415 :
7416else
562d60b0 7417 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
f8a49389 7418See \`config.log' for more details." >&5
562d60b0 7419echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
f8a49389 7420See \`config.log' for more details." >&2;}
562d60b0 7421 { (exit 1); exit 1; }; }
f8a49389
DS
7422fi
7423
7424ac_ext=cpp
7425ac_cpp='$CXXCPP $CPPFLAGS'
7426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7429
7430
c3f070d9 7431if test "x$enable_grapher" != xno; then
1087b83f 7432
f8a49389 7433
1087b83f 7434pkg_failed=no
562d60b0
DB
7435{ echo "$as_me:$LINENO: checking for gtkmm" >&5
7436echo $ECHO_N "checking for gtkmm... $ECHO_C" >&6; }
7437
7438if test -n "$PKG_CONFIG"; then
7439 if test -n "$gtkmm_CFLAGS"; then
7440 pkg_cv_gtkmm_CFLAGS="$gtkmm_CFLAGS"
7441 else
7442 if test -n "$PKG_CONFIG" && \
7443 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\"") >&5
f8a49389 7444 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5
1087b83f 7445 ac_status=$?
562d60b0 7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 7447 (exit $ac_status); }; then
f8a49389 7448 pkg_cv_gtkmm_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.8.0" 2>/dev/null`
1087b83f
TM
7449else
7450 pkg_failed=yes
7451fi
562d60b0
DB
7452 fi
7453else
7454 pkg_failed=untried
1087b83f 7455fi
562d60b0
DB
7456if test -n "$PKG_CONFIG"; then
7457 if test -n "$gtkmm_LIBS"; then
7458 pkg_cv_gtkmm_LIBS="$gtkmm_LIBS"
7459 else
7460 if test -n "$PKG_CONFIG" && \
7461 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\"") >&5
f8a49389 7462 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5
1087b83f 7463 ac_status=$?
562d60b0 7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 7465 (exit $ac_status); }; then
f8a49389 7466 pkg_cv_gtkmm_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.8.0" 2>/dev/null`
1087b83f
TM
7467else
7468 pkg_failed=yes
7469fi
562d60b0
DB
7470 fi
7471else
7472 pkg_failed=untried
1087b83f
TM
7473fi
7474
7475
7476
7477if test $pkg_failed = yes; then
7478
7479if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7480 _pkg_short_errors_supported=yes
7481else
7482 _pkg_short_errors_supported=no
7483fi
7484 if test $_pkg_short_errors_supported = yes; then
562d60b0 7485 gtkmm_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.8.0"`
1087b83f 7486 else
562d60b0 7487 gtkmm_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.8.0"`
1087b83f
TM
7488 fi
7489 # Put the nasty error message in config.log where it belongs
c3f070d9 7490 echo "$gtkmm_PKG_ERRORS" >&5
1087b83f 7491
562d60b0
DB
7492 { echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6; }
c3f070d9 7494 have_gtkmm="no"
1087b83f 7495elif test $pkg_failed = untried; then
c3f070d9 7496 have_gtkmm="no"
1087b83f 7497else
c3f070d9
DS
7498 gtkmm_CFLAGS=$pkg_cv_gtkmm_CFLAGS
7499 gtkmm_LIBS=$pkg_cv_gtkmm_LIBS
562d60b0
DB
7500 { echo "$as_me:$LINENO: result: yes" >&5
7501echo "${ECHO_T}yes" >&6; }
c3f070d9
DS
7502 have_gtkmm="yes"
7503fi
f8a49389 7504 if test "x${have_gtkmm}" == "xno" -a x"$enable_grapher" == "xyes"; then
562d60b0
DB
7505 { echo "$as_me:$LINENO: WARNING: systemtap cannot find required gtkmm libs (gtkmm24-devel version 2.8.0 or higher may need to be installed)" >&5
7506echo "$as_me: WARNING: systemtap cannot find required gtkmm libs (gtkmm24-devel version 2.8.0 or higher may need to be installed)" >&2;}
c3f070d9
DS
7507fi
7508
f8a49389
DS
7509
7510
7511pkg_failed=no
562d60b0
DB
7512{ echo "$as_me:$LINENO: checking for libglade" >&5
7513echo $ECHO_N "checking for libglade... $ECHO_C" >&6; }
7514
7515if test -n "$PKG_CONFIG"; then
7516 if test -n "$libglade_CFLAGS"; then
7517 pkg_cv_libglade_CFLAGS="$libglade_CFLAGS"
7518 else
7519 if test -n "$PKG_CONFIG" && \
7520 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\"") >&5
f8a49389
DS
7521 ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5
7522 ac_status=$?
562d60b0 7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f8a49389
DS
7524 (exit $ac_status); }; then
7525 pkg_cv_libglade_CFLAGS=`$PKG_CONFIG --cflags "libglademm-2.4 >= 2.6.7" 2>/dev/null`
7526else
7527 pkg_failed=yes
7528fi
562d60b0
DB
7529 fi
7530else
7531 pkg_failed=untried
f8a49389 7532fi
562d60b0
DB
7533if test -n "$PKG_CONFIG"; then
7534 if test -n "$libglade_LIBS"; then
7535 pkg_cv_libglade_LIBS="$libglade_LIBS"
7536 else
7537 if test -n "$PKG_CONFIG" && \
7538 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\"") >&5
f8a49389
DS
7539 ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5
7540 ac_status=$?
562d60b0 7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f8a49389
DS
7542 (exit $ac_status); }; then
7543 pkg_cv_libglade_LIBS=`$PKG_CONFIG --libs "libglademm-2.4 >= 2.6.7" 2>/dev/null`
7544else
7545 pkg_failed=yes
7546fi
562d60b0
DB
7547 fi
7548else
7549 pkg_failed=untried
f8a49389
DS
7550fi
7551
7552
7553
7554if test $pkg_failed = yes; then
7555
7556if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7557 _pkg_short_errors_supported=yes
7558else
7559 _pkg_short_errors_supported=no
7560fi
7561 if test $_pkg_short_errors_supported = yes; then
562d60b0 7562 libglade_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libglademm-2.4 >= 2.6.7"`
f8a49389 7563 else
562d60b0 7564 libglade_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libglademm-2.4 >= 2.6.7"`
f8a49389
DS
7565 fi
7566 # Put the nasty error message in config.log where it belongs
7567 echo "$libglade_PKG_ERRORS" >&5
7568
562d60b0
DB
7569 { echo "$as_me:$LINENO: result: no" >&5
7570echo "${ECHO_T}no" >&6; }
f8a49389
DS
7571 have_libglade="no"
7572elif test $pkg_failed = untried; then
7573 have_libglade="no"
7574else
7575 libglade_CFLAGS=$pkg_cv_libglade_CFLAGS
7576 libglade_LIBS=$pkg_cv_libglade_LIBS
562d60b0
DB
7577 { echo "$as_me:$LINENO: result: yes" >&5
7578echo "${ECHO_T}yes" >&6; }
f8a49389
DS
7579 have_libglade="yes"
7580fi
7581 if test "x${have_libglade}" == "xno" -a x"$enable_grapher" == "xyes"; then
562d60b0
DB
7582 { echo "$as_me:$LINENO: WARNING: systemtap cannot find required libglade libs (libglademm24-devel version 2.6.7 or higher may need to be installed)" >&5
7583echo "$as_me: WARNING: systemtap cannot find required libglade libs (libglademm24-devel version 2.6.7 or higher may need to be installed)" >&2;}
f8a49389
DS
7584fi
7585
7586
7587 have_boost_headers="yes"
7588 ac_ext=cpp
7589ac_cpp='$CXXCPP $CPPFLAGS'
7590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7593
7594
7595
7596for ac_header in boost/algorithm/string.hpp boost/range.hpp
7597do
562d60b0 7598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
f8a49389 7599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0
DB
7600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
f8a49389 7602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 7603 echo $ECHO_N "(cached) $ECHO_C" >&6
f8a49389 7604fi
562d60b0
DB
7605ac_res=`eval echo '${'$as_ac_Header'}'`
7606 { echo "$as_me:$LINENO: result: $ac_res" >&5
7607echo "${ECHO_T}$ac_res" >&6; }
f8a49389
DS
7608else
7609 # Is the header compilable?
562d60b0
DB
7610{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7611echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
f8a49389
DS
7612cat >conftest.$ac_ext <<_ACEOF
7613/* confdefs.h. */
7614_ACEOF
7615cat confdefs.h >>conftest.$ac_ext
7616cat >>conftest.$ac_ext <<_ACEOF
7617/* end confdefs.h. */
7618$ac_includes_default
7619#include <$ac_header>
7620_ACEOF
7621rm -f conftest.$ac_objext
7622if { (ac_try="$ac_compile"
7623case "(($ac_try" in
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7626esac
562d60b0 7627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
f8a49389
DS
7628 (eval "$ac_compile") 2>conftest.er1
7629 ac_status=$?
7630 grep -v '^ *+' conftest.er1 >conftest.err
7631 rm -f conftest.er1
7632 cat conftest.err >&5
562d60b0 7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f8a49389
DS
7634 (exit $ac_status); } && {
7635 test -z "$ac_cxx_werror_flag" ||
7636 test ! -s conftest.err
7637 } && test -s conftest.$ac_objext; then
7638 ac_header_compiler=yes
7639else
562d60b0 7640 echo "$as_me: failed program was:" >&5
f8a49389
DS
7641sed 's/^/| /' conftest.$ac_ext >&5
7642
7643 ac_header_compiler=no
7644fi
7645
7646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
562d60b0
DB
7647{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7648echo "${ECHO_T}$ac_header_compiler" >&6; }
f8a49389
DS
7649
7650# Is the header present?
562d60b0
DB
7651{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7652echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
f8a49389
DS
7653cat >conftest.$ac_ext <<_ACEOF
7654/* confdefs.h. */
7655_ACEOF
7656cat confdefs.h >>conftest.$ac_ext
7657cat >>conftest.$ac_ext <<_ACEOF
7658/* end confdefs.h. */
7659#include <$ac_header>
7660_ACEOF
7661if { (ac_try="$ac_cpp conftest.$ac_ext"
7662case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7665esac
562d60b0 7666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
f8a49389
DS
7667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7668 ac_status=$?
7669 grep -v '^ *+' conftest.er1 >conftest.err
7670 rm -f conftest.er1
7671 cat conftest.err >&5
562d60b0 7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f8a49389
DS
7673 (exit $ac_status); } >/dev/null && {
7674 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7675 test ! -s conftest.err
7676 }; then
7677 ac_header_preproc=yes
7678else
562d60b0 7679 echo "$as_me: failed program was:" >&5
f8a49389
DS
7680sed 's/^/| /' conftest.$ac_ext >&5
7681
7682 ac_header_preproc=no
7683fi
7684
7685rm -f conftest.err conftest.$ac_ext
562d60b0
DB
7686{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7687echo "${ECHO_T}$ac_header_preproc" >&6; }
f8a49389
DS
7688
7689# So? What about this header?
7690case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7691 yes:no: )
562d60b0
DB
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7693echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7695echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
f8a49389
DS
7696 ac_header_preproc=yes
7697 ;;
7698 no:yes:* )
562d60b0
DB
7699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7700echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7702echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7704echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7706echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7708echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7710echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f8a49389
DS
7711 ( cat <<\_ASBOX
7712## ------------------------------------------- ##
7713## Report this to systemtap@sources.redhat.com ##
7714## ------------------------------------------- ##
7715_ASBOX
7716 ) | sed "s/^/$as_me: WARNING: /" >&2
7717 ;;
7718esac
562d60b0
DB
7719{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
f8a49389 7721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 7722 echo $ECHO_N "(cached) $ECHO_C" >&6
f8a49389
DS
7723else
7724 eval "$as_ac_Header=\$ac_header_preproc"
7725fi
562d60b0
DB
7726ac_res=`eval echo '${'$as_ac_Header'}'`
7727 { echo "$as_me:$LINENO: result: $ac_res" >&5
7728echo "${ECHO_T}$ac_res" >&6; }
f8a49389
DS
7729
7730fi
562d60b0 7731if test `eval echo '${'$as_ac_Header'}'` = yes; then
f8a49389 7732 cat >>confdefs.h <<_ACEOF
562d60b0 7733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
f8a49389
DS
7734_ACEOF
7735
7736else
7737 have_boost_headers="no"
7738fi
7739
7740done
7741
7742 ac_ext=c
7743ac_cpp='$CPP $CPPFLAGS'
7744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7746ac_compiler_gnu=$ac_cv_c_compiler_gnu
7747
7748 if test "x${have_boost_headers}" == "xno" -a x"$enable_grapher" == "xyes"; then
562d60b0
DB
7749 { echo "$as_me:$LINENO: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&5
7750echo "$as_me: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&2;}
f8a49389
DS
7751fi
7752
7753
7754 if test "x${have_gtkmm}${have_libglade}${have_boost_headers}" == "xyesyesyes"; then
7755 have_grapher_reqs="yes"
7756else
7757 have_grapher_reqs="no"
7758fi
7759
7760
7761fi
7762
7763if test "x${have_grapher_reqs}" == "xno" -a x"$enable_grapher" == "xyes"; then
562d60b0
DB
7764 { { echo "$as_me:$LINENO: error: systemtap cannot find grapher build requirements (gtkmm, libglade, and boost headers)" >&5
7765echo "$as_me: error: systemtap cannot find grapher build requirements (gtkmm, libglade, and boost headers)" >&2;}
f8a49389
DS
7766 { (exit 1); exit 1; }; }
7767fi
7768
7769 if test "x${have_grapher_reqs}" == "xyes" -a x"$enable_grapher" != "xno"; then
7770 BUILD_GRAPHER_TRUE=
7771 BUILD_GRAPHER_FALSE='#'
7772else
7773 BUILD_GRAPHER_TRUE='#'
7774 BUILD_GRAPHER_FALSE=
7775fi
1087b83f
TM
7776
7777
2ed04863
WC
7778
7779# Integration with rpm library to support missing debuginfo suggestions.
7780# --without-rpm: Disable any rpm support.
7781# --with-rpm=libname.so: Try to dynamically open `libname.so' during runtime.
7782# Even with runtime missing `libname.so' GDB will still other run correctly.
7783# Missing `libname.so' during ./configure will abort the configuration.
7784# --with-rpm=librpm.so: Like `--with-rpm=libname.so' but try to find specific
7785# minor version first such as `librpm-4.6.so' as minor version differences
7786# mean API+ABI incompatibility. If the specific match versioned library name
7787# could not be found still open dynamically at least `librpm.so'.
7788# --with-rpm: Like `--with-rpm=librpm.so' but if any of its detection fails try
7789# to find librpm for compilation-time linking by pkg-config. GDB binary will
7790# be probably linked with the version specific library (as `librpm-4.6.so').
7791# Failure to find librpm by pkg-config will abort the configuration.
7792# (default) --with-rpm=auto: Like `--with-rpm=librpm.so' but if even pkg-config
7793# cannot find librpm use to the rpmless compilation (like `--without-rpm').
7794
7795
7796# Check whether --with-rpm was given.
412e1bf7 7797if test "${with_rpm+set}" = set; then
2ed04863
WC
7798 withval=$with_rpm;
7799else
7800 with_rpm="auto"
7801fi
7802
7803
7804
7805
7806if test "x$with_rpm" != "xno"; then
7807 if test "x$with_rpm" = "xyes"; then
7808 LIBRPM="librpm.so"
7809 RPM_REQUIRE=true
7810 DLOPEN_REQUIRE=false
7811 elif test "x$with_rpm" = "xauto"; then
7812 LIBRPM="librpm.so"
7813 RPM_REQUIRE=false
7814 DLOPEN_REQUIRE=false
7815 else
7816 LIBRPM="$with_rpm"
7817 RPM_REQUIRE=true
7818 DLOPEN_REQUIRE=true
7819 fi
7820 LIBRPM_STRING='"'"$LIBRPM"'"'
7821
562d60b0
DB
7822 { echo "$as_me:$LINENO: checking specific librpm version" >&5
7823echo $ECHO_N "checking specific librpm version... $ECHO_C" >&6; }
2ed04863
WC
7824 HAVE_DLOPEN_LIBRPM=false
7825 save_LIBS="$LIBS"
7826 LIBS="$LIBS -ldl"
412e1bf7 7827 if test "$cross_compiling" = yes; then
562d60b0 7828 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
412e1bf7 7829See \`config.log' for more details." >&5
562d60b0 7830echo "$as_me: error: cannot run test program while cross compiling
412e1bf7 7831See \`config.log' for more details." >&2;}
562d60b0 7832 { (exit 1); exit 1; }; }
412e1bf7
FCE
7833else
7834 cat >conftest.$ac_ext <<_ACEOF
7835/* confdefs.h. */
7836_ACEOF
7837cat confdefs.h >>conftest.$ac_ext
7838cat >>conftest.$ac_ext <<_ACEOF
2ed04863
WC
7839/* end confdefs.h. */
7840
7841#include <rpm/rpmlib.h>
7842#include <dlfcn.h>
7843#include <errno.h>
7844
7845int
7846main ()
7847{
7848
7849 void *h;
7850 const char *const *rpmverp;
7851 FILE *f;
7852
7853 f = fopen ("conftest.out", "w");
7854 if (!f)
7855 {
7856 fprintf (stderr, "Cannot write \"%s\": %s\n", "conftest.out",
7857 strerror (errno));
7858 return 1;
7859 }
7860 h = dlopen ($LIBRPM_STRING, RTLD_LAZY);
7861 if (!h)
7862 {
7863 fprintf (stderr, "dlopen (\"%s\"): %s\n", $LIBRPM_STRING, dlerror ());
7864 return 1;
7865 }
7866 rpmverp = dlsym (h, "RPMVERSION");
7867 if (!rpmverp)
7868 {
7869 fprintf (stderr, "dlsym (\"RPMVERSION\"): %s\n", dlerror ());
7870 return 1;
7871 }
7872 fprintf (stderr, "RPMVERSION is: \"");
7873 fprintf (stderr, "%s\"\n", *rpmverp);
7874
7875 /* Try to find the specific librpm version only for "librpm.so" as we do
7876 not know how to assemble the version string otherwise. */
7877
7878 if (strcmp ("librpm.so", $LIBRPM_STRING) != 0)
7879 {
7880 fprintf (f, "%s\n", $LIBRPM_STRING);
7881 return 0;
7882 }
7883 else
7884 {
7885 char *h2_name;
7886 void *h2;
7887 int major, minor;
7888
7889 if (sscanf (*rpmverp, "%d.%d", &major, &minor) != 2)
7890 {
7891 fprintf (stderr, "Unable to parse RPMVERSION.\n");
7892 fprintf (f, "%s\n", $LIBRPM_STRING);
7893 return 0;
7894 }
7895 /* Avoid the square brackets by malloc. */
7896 h2_name = malloc (64);
7897 sprintf (h2_name, "librpm-%d.%d.so", major, minor);
7898 h2 = dlopen (h2_name, RTLD_LAZY);
7899 if (!h2)
7900 {
7901 fprintf (stderr, "dlopen (\"%s\"): %s\n", h2_name, dlerror ());
7902 fprintf (f, "%s\n", $LIBRPM_STRING);
7903 return 0;
7904 }
7905 if (h2 != h)
7906 {
7907 fprintf (stderr, "dlopen of \"%s\" and \"%s\" are different.\n",
7908 $LIBRPM_STRING, h2_name);
7909 fprintf (f, "%s\n", $LIBRPM_STRING);
7910 return 0;
7911 }
7912 /* Found the valid .so name with a specific version. */
7913 fprintf (f, "%s\n", h2_name);
7914 return 0;
7915 }
7916
7917 ;
7918 return 0;
7919}
7920_ACEOF
412e1bf7
FCE
7921rm -f conftest$ac_exeext
7922if { (ac_try="$ac_link"
7923case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926esac
562d60b0 7927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
7928 (eval "$ac_link") 2>&5
7929 ac_status=$?
562d60b0 7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
7931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7932 { (case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935esac
562d60b0 7936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
7937 (eval "$ac_try") 2>&5
7938 ac_status=$?
562d60b0 7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 7940 (exit $ac_status); }; }; then
2ed04863
WC
7941
7942 DLOPEN_LIBRPM="`cat conftest.out`"
7943 if test "x$DLOPEN_LIBRPM" != "x"; then
7944 HAVE_DLOPEN_LIBRPM=true
562d60b0
DB
7945 { echo "$as_me:$LINENO: result: $DLOPEN_LIBRPM" >&5
7946echo "${ECHO_T}$DLOPEN_LIBRPM" >&6; }
2ed04863
WC
7947 fi
7948
412e1bf7 7949else
562d60b0
DB
7950 echo "$as_me: program exited with status $ac_status" >&5
7951echo "$as_me: failed program was:" >&5
412e1bf7
FCE
7952sed 's/^/| /' conftest.$ac_ext >&5
7953
2ed04863 7954fi
412e1bf7 7955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2ed04863
WC
7956fi
7957
412e1bf7 7958
2ed04863
WC
7959 rm -f conftest.out
7960
7961
7962
7963
7964 if $HAVE_DLOPEN_LIBRPM; then
7965
562d60b0
DB
7966 { echo "$as_me:$LINENO: checking rpm library API compatibility" >&5
7967echo $ECHO_N "checking rpm library API compatibility... $ECHO_C" >&6; }
2ed04863
WC
7968 # The compilation requires -Werror to verify anything.
7969 save_CFLAGS="$CFLAGS"
7970 CFLAGS="$CFLAGS -Werror"
412e1bf7
FCE
7971 cat >conftest.$ac_ext <<_ACEOF
7972/* confdefs.h. */
7973_ACEOF
7974cat confdefs.h >>conftest.$ac_ext
7975cat >>conftest.$ac_ext <<_ACEOF
2ed04863
WC
7976/* end confdefs.h. */
7977
7978/* Duplicate here the declarations to verify they match "symfile.c". */
7979#include <rpm/rpmlib.h>
7980#include <rpm/rpmts.h>
7981#include <rpm/rpmdb.h>
7982#include <rpm/header.h>
7983extern char * headerFormat(Header h, const char * fmt, errmsg_t * errmsg);
7984extern int rpmReadConfigFiles(const char * file, const char * target);
7985extern rpmdbMatchIterator rpmdbFreeIterator(rpmdbMatchIterator mi);
7986extern Header rpmdbNextIterator(rpmdbMatchIterator mi);
7987extern rpmts rpmtsCreate(void);
7988extern rpmts rpmtsFree(rpmts ts);
7989extern rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmTag rpmtag,
7990 const void * keyp, size_t keylen);
7991
7992int
7993main ()
7994{
7995
7996 ;
7997 return 0;
7998}
7999_ACEOF
412e1bf7
FCE
8000rm -f conftest.$ac_objext
8001if { (ac_try="$ac_compile"
8002case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005esac
562d60b0 8006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
8007 (eval "$ac_compile") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
562d60b0 8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.$ac_objext; then
2ed04863
WC
8017
8018 LIBRPM_COMPAT=true
8019 rpm_LIBS=-lrpm
562d60b0
DB
8020 { echo "$as_me:$LINENO: result: yes" >&5
8021echo "${ECHO_T}yes" >&6; }
2ed04863
WC
8022
8023else
562d60b0 8024 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
8025sed 's/^/| /' conftest.$ac_ext >&5
8026
2ed04863
WC
8027
8028 LIBRPM_COMPAT=false
8029 rpm_LIBS=
562d60b0
DB
8030 { echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6; }
2ed04863
WC
8032
8033fi
412e1bf7 8034
2ed04863
WC
8035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 CFLAGS="$save_CFLAGS"
8037
8038 if ! $LIBRPM_COMPAT; then
8039 HAVE_DLOPEN_LIBRPM=false
8040 fi
8041 fi
8042
8043 if $HAVE_DLOPEN_LIBRPM; then
8044 DLOPEN_LIBRPM_STRING='"'"$DLOPEN_LIBRPM"'"'
8045
8046cat >>confdefs.h <<_ACEOF
8047#define DLOPEN_LIBRPM $DLOPEN_LIBRPM_STRING
8048_ACEOF
8049
8050
412e1bf7
FCE
8051cat >>confdefs.h <<\_ACEOF
8052#define HAVE_LIBRPM 1
8053_ACEOF
2ed04863
WC
8054
8055 else
562d60b0
DB
8056 { echo "$as_me:$LINENO: result: no" >&5
8057echo "${ECHO_T}no" >&6; }
2ed04863
WC
8058 LIBS="$save_LIBS"
8059 if $DLOPEN_REQUIRE; then
562d60b0
DB
8060 { { echo "$as_me:$LINENO: error: Specific name $LIBRPM was requested but it could not be opened." >&5
8061echo "$as_me: error: Specific name $LIBRPM was requested but it could not be opened." >&2;}
412e1bf7 8062 { (exit 1); exit 1; }; }
2ed04863
WC
8063 fi
8064
8065pkg_failed=no
562d60b0
DB
8066{ echo "$as_me:$LINENO: checking for RPM" >&5
8067echo $ECHO_N "checking for RPM... $ECHO_C" >&6; }
8068
8069if test -n "$PKG_CONFIG"; then
8070 if test -n "$RPM_CFLAGS"; then
8071 pkg_cv_RPM_CFLAGS="$RPM_CFLAGS"
8072 else
8073 if test -n "$PKG_CONFIG" && \
8074 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"rpm\"") >&5
2ed04863
WC
8075 ($PKG_CONFIG --exists --print-errors "rpm") 2>&5
8076 ac_status=$?
562d60b0 8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 8078 (exit $ac_status); }; then
2ed04863
WC
8079 pkg_cv_RPM_CFLAGS=`$PKG_CONFIG --cflags "rpm" 2>/dev/null`
8080else
8081 pkg_failed=yes
8082fi
562d60b0
DB
8083 fi
8084else
8085 pkg_failed=untried
2ed04863 8086fi
562d60b0
DB
8087if test -n "$PKG_CONFIG"; then
8088 if test -n "$RPM_LIBS"; then
8089 pkg_cv_RPM_LIBS="$RPM_LIBS"
8090 else
8091 if test -n "$PKG_CONFIG" && \
8092 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"rpm\"") >&5
2ed04863
WC
8093 ($PKG_CONFIG --exists --print-errors "rpm") 2>&5
8094 ac_status=$?
562d60b0 8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7 8096 (exit $ac_status); }; then
2ed04863
WC
8097 pkg_cv_RPM_LIBS=`$PKG_CONFIG --libs "rpm" 2>/dev/null`
8098else
8099 pkg_failed=yes
8100fi
562d60b0
DB
8101 fi
8102else
8103 pkg_failed=untried
2ed04863
WC
8104fi
8105
8106
8107
8108if test $pkg_failed = yes; then
8109
8110if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8111 _pkg_short_errors_supported=yes
8112else
8113 _pkg_short_errors_supported=no
8114fi
8115 if test $_pkg_short_errors_supported = yes; then
562d60b0 8116 RPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "rpm"`
2ed04863 8117 else
562d60b0 8118 RPM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "rpm"`
2ed04863
WC
8119 fi
8120 # Put the nasty error message in config.log where it belongs
8121 echo "$RPM_PKG_ERRORS" >&5
8122
562d60b0
DB
8123 { echo "$as_me:$LINENO: result: no" >&5
8124echo "${ECHO_T}no" >&6; }
2ed04863
WC
8125 HAVE_LIBRPM=false
8126elif test $pkg_failed = untried; then
8127 HAVE_LIBRPM=false
8128else
8129 RPM_CFLAGS=$pkg_cv_RPM_CFLAGS
8130 RPM_LIBS=$pkg_cv_RPM_LIBS
562d60b0
DB
8131 { echo "$as_me:$LINENO: result: yes" >&5
8132echo "${ECHO_T}yes" >&6; }
2ed04863
WC
8133 HAVE_LIBRPM=true
8134fi
8135
8136 if $HAVE_LIBRPM; then
8137
562d60b0
DB
8138 { echo "$as_me:$LINENO: checking rpm library API compatibility" >&5
8139echo $ECHO_N "checking rpm library API compatibility... $ECHO_C" >&6; }
2ed04863
WC
8140 # The compilation requires -Werror to verify anything.
8141 save_CFLAGS="$CFLAGS"
8142 CFLAGS="$CFLAGS -Werror"
412e1bf7
FCE
8143 cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h. */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
2ed04863
WC
8148/* end confdefs.h. */
8149
8150/* Duplicate here the declarations to verify they match "symfile.c". */
8151#include <rpm/rpmlib.h>
8152#include <rpm/rpmts.h>
8153#include <rpm/rpmdb.h>
8154#include <rpm/header.h>
8155extern char * headerFormat(Header h, const char * fmt, errmsg_t * errmsg);
8156extern int rpmReadConfigFiles(const char * file, const char * target);
8157extern rpmdbMatchIterator rpmdbFreeIterator(rpmdbMatchIterator mi);
8158extern Header rpmdbNextIterator(rpmdbMatchIterator mi);
8159extern rpmts rpmtsCreate(void);
8160extern rpmts rpmtsFree(rpmts ts);
8161extern rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmTag rpmtag,
8162 const void * keyp, size_t keylen);
8163
8164int
8165main ()
8166{
8167
8168 ;
8169 return 0;
8170}
8171_ACEOF
412e1bf7
FCE
8172rm -f conftest.$ac_objext
8173if { (ac_try="$ac_compile"
8174case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177esac
562d60b0 8178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
8179 (eval "$ac_compile") 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
562d60b0 8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest.$ac_objext; then
2ed04863
WC
8189
8190 LIBRPM_COMPAT=true
8191 rpm_LIBS=-lrpm
562d60b0
DB
8192 { echo "$as_me:$LINENO: result: yes" >&5
8193echo "${ECHO_T}yes" >&6; }
2ed04863
WC
8194
8195else
562d60b0 8196 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
8197sed 's/^/| /' conftest.$ac_ext >&5
8198
2ed04863
WC
8199
8200 LIBRPM_COMPAT=false
8201 rpm_LIBS=
562d60b0
DB
8202 { echo "$as_me:$LINENO: result: no" >&5
8203echo "${ECHO_T}no" >&6; }
2ed04863
WC
8204
8205fi
412e1bf7 8206
2ed04863
WC
8207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 CFLAGS="$save_CFLAGS"
8209
8210 if ! $LIBRPM_COMPAT; then
8211 HAVE_LIBRPM=false
8212 RPM_PKG_ERRORS="Found $LIBRPM API is incompatibile with this GDB"
8213 fi
8214 fi
8215
8216 if $HAVE_LIBRPM; then
8217
412e1bf7
FCE
8218cat >>confdefs.h <<\_ACEOF
8219#define HAVE_LIBRPM 1
8220_ACEOF
2ed04863
WC
8221
8222 CFLAGS="$CFLAGS $RPM_CFLAGS"
8223 LIBS="$LIBS $RPM_LIBS"
8224 else
8225 if $RPM_REQUIRE; then
562d60b0
DB
8226 { { echo "$as_me:$LINENO: error: $RPM_PKG_ERRORS" >&5
8227echo "$as_me: error: $RPM_PKG_ERRORS" >&2;}
412e1bf7 8228 { (exit 1); exit 1; }; }
2ed04863 8229 else
562d60b0
DB
8230 { echo "$as_me:$LINENO: WARNING: $RPM_PKG_ERRORS" >&5
8231echo "$as_me: WARNING: $RPM_PKG_ERRORS" >&2;}
2ed04863
WC
8232 fi
8233 fi
8234 fi
8235fi
8236
8237
e8f3c2c2
DS
8238build_elfutils=no
8239
7fbd9d09 8240# Check whether --with-elfutils was given.
412e1bf7 8241if test "${with_elfutils+set}" = set; then
7fbd9d09 8242 withval=$with_elfutils;
e8f3c2c2 8243case "$with_elfutils" in
562d60b0
DB
8244yes) { { echo "$as_me:$LINENO: error: --with-elfutils requires an argument" >&5
8245echo "$as_me: error: --with-elfutils requires an argument" >&2;}
412e1bf7 8246 { (exit 1); exit 1; }; } ;;
e8f3c2c2
DS
8247''|no) ;;
8248*) build_elfutils=yes ;;
8249esac
7fbd9d09 8250fi
e8f3c2c2 8251
7fbd9d09 8252 if test $build_elfutils = yes; then
e8f3c2c2
DS
8253 BUILD_ELFUTILS_TRUE=
8254 BUILD_ELFUTILS_FALSE='#'
8255else
8256 BUILD_ELFUTILS_TRUE='#'
8257 BUILD_ELFUTILS_FALSE=
8258fi
8259
412e1bf7 8260elfutils_abs_srcdir=`if test $build_elfutils = yes; then
e8f3c2c2 8261 cd $with_elfutils && pwd
412e1bf7
FCE
8262fi
8263`
e8f3c2c2
DS
8264
8265
9cb3a339 8266if test $build_elfutils = no; then
8d4b1ab0 8267 # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/
4d9087fc 8268 save_LIBS="$LIBS"
412e1bf7 8269
562d60b0
DB
8270{ echo "$as_me:$LINENO: checking for dwfl_module_getsym in -ldw" >&5
8271echo $ECHO_N "checking for dwfl_module_getsym in -ldw... $ECHO_C" >&6; }
412e1bf7 8272if test "${ac_cv_lib_dw_dwfl_module_getsym+set}" = set; then
562d60b0 8273 echo $ECHO_N "(cached) $ECHO_C" >&6
4645fadb
JS
8274else
8275 ac_check_lib_save_LIBS=$LIBS
8276LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS"
412e1bf7
FCE
8277cat >conftest.$ac_ext <<_ACEOF
8278/* confdefs.h. */
8279_ACEOF
8280cat confdefs.h >>conftest.$ac_ext
8281cat >>conftest.$ac_ext <<_ACEOF
4645fadb
JS
8282/* end confdefs.h. */
8283
7fbd9d09
FCE
8284/* Override any GCC internal prototype to avoid an error.
8285 Use char because int might match the return type of a GCC
8286 builtin and then its argument prototype would still apply. */
4645fadb
JS
8287#ifdef __cplusplus
8288extern "C"
8289#endif
8290char dwfl_module_getsym ();
8291int
8292main ()
8293{
7fbd9d09 8294return dwfl_module_getsym ();
4645fadb
JS
8295 ;
8296 return 0;
8297}
8298_ACEOF
412e1bf7
FCE
8299rm -f conftest.$ac_objext conftest$ac_exeext
8300if { (ac_try="$ac_link"
8301case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8304esac
562d60b0 8305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
8306 (eval "$ac_link") 2>conftest.er1
8307 ac_status=$?
8308 grep -v '^ *+' conftest.er1 >conftest.err
8309 rm -f conftest.er1
8310 cat conftest.err >&5
562d60b0 8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
8312 (exit $ac_status); } && {
8313 test -z "$ac_c_werror_flag" ||
8314 test ! -s conftest.err
562d60b0
DB
8315 } && test -s conftest$ac_exeext &&
8316 $as_test_x conftest$ac_exeext; then
4645fadb
JS
8317 ac_cv_lib_dw_dwfl_module_getsym=yes
8318else
562d60b0 8319 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
8320sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 ac_cv_lib_dw_dwfl_module_getsym=no
4645fadb 8323fi
412e1bf7 8324
412e1bf7
FCE
8325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8326 conftest$ac_exeext conftest.$ac_ext
4645fadb
JS
8327LIBS=$ac_check_lib_save_LIBS
8328fi
562d60b0
DB
8329{ echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
8330echo "${ECHO_T}$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
8331if test $ac_cv_lib_dw_dwfl_module_getsym = yes; then
4645fadb
JS
8332 cat >>confdefs.h <<_ACEOF
8333#define HAVE_LIBDW 1
8334_ACEOF
8335
8336 LIBS="-ldw $LIBS"
8337
8338else
8339
562d60b0
DB
8340 { { echo "$as_me:$LINENO: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&5
8341echo "$as_me: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&2;}
412e1bf7 8342 { (exit 1); exit 1; }; }
4645fadb
JS
8343fi
8344
412e1bf7 8345
562d60b0
DB
8346{ echo "$as_me:$LINENO: checking for dwarf_getelf in -ldw" >&5
8347echo $ECHO_N "checking for dwarf_getelf in -ldw... $ECHO_C" >&6; }
412e1bf7 8348if test "${ac_cv_lib_dw_dwarf_getelf+set}" = set; then
562d60b0 8349 echo $ECHO_N "(cached) $ECHO_C" >&6
87cb1275
MW
8350else
8351 ac_check_lib_save_LIBS=$LIBS
8352LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS"
412e1bf7
FCE
8353cat >conftest.$ac_ext <<_ACEOF
8354/* confdefs.h. */
8355_ACEOF
8356cat confdefs.h >>conftest.$ac_ext
8357cat >>conftest.$ac_ext <<_ACEOF
87cb1275
MW
8358/* end confdefs.h. */
8359
7fbd9d09
FCE
8360/* Override any GCC internal prototype to avoid an error.
8361 Use char because int might match the return type of a GCC
8362 builtin and then its argument prototype would still apply. */
87cb1275
MW
8363#ifdef __cplusplus
8364extern "C"
8365#endif
8366char dwarf_getelf ();
8367int
8368main ()
8369{
7fbd9d09 8370return dwarf_getelf ();
87cb1275
MW
8371 ;
8372 return 0;
8373}
8374_ACEOF
412e1bf7
FCE
8375rm -f conftest.$ac_objext conftest$ac_exeext
8376if { (ac_try="$ac_link"
8377case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380esac
562d60b0 8381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
8382 (eval "$ac_link") 2>conftest.er1
8383 ac_status=$?
8384 grep -v '^ *+' conftest.er1 >conftest.err
8385 rm -f conftest.er1
8386 cat conftest.err >&5
562d60b0 8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
8388 (exit $ac_status); } && {
8389 test -z "$ac_c_werror_flag" ||
8390 test ! -s conftest.err
562d60b0
DB
8391 } && test -s conftest$ac_exeext &&
8392 $as_test_x conftest$ac_exeext; then
87cb1275
MW
8393 ac_cv_lib_dw_dwarf_getelf=yes
8394else
562d60b0 8395 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
8396sed 's/^/| /' conftest.$ac_ext >&5
8397
8398 ac_cv_lib_dw_dwarf_getelf=no
87cb1275 8399fi
412e1bf7 8400
412e1bf7
FCE
8401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8402 conftest$ac_exeext conftest.$ac_ext
87cb1275
MW
8403LIBS=$ac_check_lib_save_LIBS
8404fi
562d60b0
DB
8405{ echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwarf_getelf" >&5
8406echo "${ECHO_T}$ac_cv_lib_dw_dwarf_getelf" >&6; }
8407if test $ac_cv_lib_dw_dwarf_getelf = yes; then
87cb1275
MW
8408 cat >>confdefs.h <<_ACEOF
8409#define HAVE_LIBDW 1
8410_ACEOF
8411
8412 LIBS="-ldw $LIBS"
8413
8414else
8415
562d60b0
DB
8416 { { echo "$as_me:$LINENO: error: elfutils, libdw too old, need 0.126+" >&5
8417echo "$as_me: error: elfutils, libdw too old, need 0.126+" >&2;}
412e1bf7 8418 { (exit 1); exit 1; }; }
87cb1275
MW
8419fi
8420
cfa2ca3c 8421 stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
e8f3c2c2 8422 LIBS="$save_LIBS"
4d9087fc
RM
8423else
8424 # We built our own and stap_LDFLAGS points at the install.
4645fadb
JS
8425 stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
8426fi
8427
6b1a0274 8428
562d60b0
DB
8429{ echo "$as_me:$LINENO: stap will link $stap_LIBS" >&5
8430echo "$as_me: stap will link $stap_LIBS" >&6;}
c3a3c0c9 8431
69c68955
FCE
8432date=`date +%Y-%m-%d`
8433
8434cat >>confdefs.h <<_ACEOF
8435#define DATE "$date"
8436_ACEOF
8437
82fab474 8438DATE="$date"
69c68955
FCE
8439
8440
47f390f9
FCE
8441# Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
8442# being compiled on 32-bit userspace but running against 64-bit kernels.
8443# This is no longer necessary.
5566993b 8444
3bf6ac45 8445# Use tr1/unordered_map if available
7fbd9d09 8446ac_ext=cpp
3bf6ac45
TM
8447ac_cpp='$CXXCPP $CPPFLAGS'
8448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8451
8452
3bf6ac45 8453for ac_header in tr1/unordered_map
412e1bf7 8454do
562d60b0 8455as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
412e1bf7 8456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0
DB
8457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
412e1bf7 8459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 8460 echo $ECHO_N "(cached) $ECHO_C" >&6
412e1bf7 8461fi
562d60b0
DB
8462ac_res=`eval echo '${'$as_ac_Header'}'`
8463 { echo "$as_me:$LINENO: result: $ac_res" >&5
8464echo "${ECHO_T}$ac_res" >&6; }
469c1a1b
FCE
8465else
8466 # Is the header compilable?
562d60b0
DB
8467{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8468echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
469c1a1b
FCE
8469cat >conftest.$ac_ext <<_ACEOF
8470/* confdefs.h. */
8471_ACEOF
8472cat confdefs.h >>conftest.$ac_ext
8473cat >>conftest.$ac_ext <<_ACEOF
8474/* end confdefs.h. */
8475$ac_includes_default
8476#include <$ac_header>
8477_ACEOF
8478rm -f conftest.$ac_objext
8479if { (ac_try="$ac_compile"
8480case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483esac
562d60b0 8484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
469c1a1b
FCE
8485 (eval "$ac_compile") 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
562d60b0 8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
469c1a1b
FCE
8491 (exit $ac_status); } && {
8492 test -z "$ac_cxx_werror_flag" ||
8493 test ! -s conftest.err
8494 } && test -s conftest.$ac_objext; then
8495 ac_header_compiler=yes
8496else
562d60b0 8497 echo "$as_me: failed program was:" >&5
469c1a1b
FCE
8498sed 's/^/| /' conftest.$ac_ext >&5
8499
8500 ac_header_compiler=no
8501fi
8502
8503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
562d60b0
DB
8504{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8505echo "${ECHO_T}$ac_header_compiler" >&6; }
469c1a1b
FCE
8506
8507# Is the header present?
562d60b0
DB
8508{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
469c1a1b
FCE
8510cat >conftest.$ac_ext <<_ACEOF
8511/* confdefs.h. */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h. */
8516#include <$ac_header>
8517_ACEOF
8518if { (ac_try="$ac_cpp conftest.$ac_ext"
8519case "(($ac_try" in
8520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521 *) ac_try_echo=$ac_try;;
8522esac
562d60b0 8523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
469c1a1b
FCE
8524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
562d60b0 8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
469c1a1b
FCE
8530 (exit $ac_status); } >/dev/null && {
8531 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8532 test ! -s conftest.err
8533 }; then
8534 ac_header_preproc=yes
8535else
562d60b0 8536 echo "$as_me: failed program was:" >&5
469c1a1b
FCE
8537sed 's/^/| /' conftest.$ac_ext >&5
8538
8539 ac_header_preproc=no
8540fi
8541
8542rm -f conftest.err conftest.$ac_ext
562d60b0
DB
8543{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8544echo "${ECHO_T}$ac_header_preproc" >&6; }
469c1a1b
FCE
8545
8546# So? What about this header?
8547case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8548 yes:no: )
562d60b0
DB
8549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8550echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8552echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
469c1a1b
FCE
8553 ac_header_preproc=yes
8554 ;;
8555 no:yes:* )
562d60b0
DB
8556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8559echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8561echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8563echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8567echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
469c1a1b
FCE
8568 ( cat <<\_ASBOX
8569## ------------------------------------------- ##
8570## Report this to systemtap@sources.redhat.com ##
8571## ------------------------------------------- ##
8572_ASBOX
8573 ) | sed "s/^/$as_me: WARNING: /" >&2
8574 ;;
8575esac
562d60b0
DB
8576{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
469c1a1b 8578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 8579 echo $ECHO_N "(cached) $ECHO_C" >&6
469c1a1b
FCE
8580else
8581 eval "$as_ac_Header=\$ac_header_preproc"
8582fi
562d60b0
DB
8583ac_res=`eval echo '${'$as_ac_Header'}'`
8584 { echo "$as_me:$LINENO: result: $ac_res" >&5
8585echo "${ECHO_T}$ac_res" >&6; }
469c1a1b
FCE
8586
8587fi
562d60b0 8588if test `eval echo '${'$as_ac_Header'}'` = yes; then
469c1a1b 8589 cat >>confdefs.h <<_ACEOF
562d60b0 8590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
469c1a1b
FCE
8591_ACEOF
8592
8593fi
8594
8595done
8596
8597
8598for ac_header in tr1/memory
8599do
562d60b0 8600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
469c1a1b 8601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0
DB
8602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
469c1a1b 8604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 8605 echo $ECHO_N "(cached) $ECHO_C" >&6
469c1a1b 8606fi
562d60b0
DB
8607ac_res=`eval echo '${'$as_ac_Header'}'`
8608 { echo "$as_me:$LINENO: result: $ac_res" >&5
8609echo "${ECHO_T}$ac_res" >&6; }
469c1a1b
FCE
8610else
8611 # Is the header compilable?
562d60b0
DB
8612{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
469c1a1b
FCE
8614cat >conftest.$ac_ext <<_ACEOF
8615/* confdefs.h. */
8616_ACEOF
8617cat confdefs.h >>conftest.$ac_ext
8618cat >>conftest.$ac_ext <<_ACEOF
8619/* end confdefs.h. */
8620$ac_includes_default
8621#include <$ac_header>
8622_ACEOF
8623rm -f conftest.$ac_objext
8624if { (ac_try="$ac_compile"
8625case "(($ac_try" in
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8628esac
562d60b0 8629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
469c1a1b
FCE
8630 (eval "$ac_compile") 2>conftest.er1
8631 ac_status=$?
8632 grep -v '^ *+' conftest.er1 >conftest.err
8633 rm -f conftest.er1
8634 cat conftest.err >&5
562d60b0 8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
469c1a1b
FCE
8636 (exit $ac_status); } && {
8637 test -z "$ac_cxx_werror_flag" ||
8638 test ! -s conftest.err
8639 } && test -s conftest.$ac_objext; then
8640 ac_header_compiler=yes
8641else
562d60b0 8642 echo "$as_me: failed program was:" >&5
469c1a1b
FCE
8643sed 's/^/| /' conftest.$ac_ext >&5
8644
8645 ac_header_compiler=no
8646fi
8647
8648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
562d60b0
DB
8649{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8650echo "${ECHO_T}$ac_header_compiler" >&6; }
469c1a1b
FCE
8651
8652# Is the header present?
562d60b0
DB
8653{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
469c1a1b
FCE
8655cat >conftest.$ac_ext <<_ACEOF
8656/* confdefs.h. */
8657_ACEOF
8658cat confdefs.h >>conftest.$ac_ext
8659cat >>conftest.$ac_ext <<_ACEOF
8660/* end confdefs.h. */
8661#include <$ac_header>
8662_ACEOF
8663if { (ac_try="$ac_cpp conftest.$ac_ext"
8664case "(($ac_try" in
8665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666 *) ac_try_echo=$ac_try;;
8667esac
562d60b0 8668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
469c1a1b
FCE
8669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8670 ac_status=$?
8671 grep -v '^ *+' conftest.er1 >conftest.err
8672 rm -f conftest.er1
8673 cat conftest.err >&5
562d60b0 8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
469c1a1b
FCE
8675 (exit $ac_status); } >/dev/null && {
8676 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8677 test ! -s conftest.err
8678 }; then
8679 ac_header_preproc=yes
8680else
562d60b0 8681 echo "$as_me: failed program was:" >&5
469c1a1b
FCE
8682sed 's/^/| /' conftest.$ac_ext >&5
8683
8684 ac_header_preproc=no
8685fi
8686
8687rm -f conftest.err conftest.$ac_ext
562d60b0
DB
8688{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8689echo "${ECHO_T}$ac_header_preproc" >&6; }
469c1a1b
FCE
8690
8691# So? What about this header?
8692case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8693 yes:no: )
562d60b0
DB
8694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
469c1a1b
FCE
8698 ac_header_preproc=yes
8699 ;;
8700 no:yes:* )
562d60b0
DB
8701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8704echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8708echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
469c1a1b
FCE
8713 ( cat <<\_ASBOX
8714## ------------------------------------------- ##
8715## Report this to systemtap@sources.redhat.com ##
8716## ------------------------------------------- ##
8717_ASBOX
8718 ) | sed "s/^/$as_me: WARNING: /" >&2
8719 ;;
8720esac
562d60b0
DB
8721{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
469c1a1b 8723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 8724 echo $ECHO_N "(cached) $ECHO_C" >&6
469c1a1b
FCE
8725else
8726 eval "$as_ac_Header=\$ac_header_preproc"
8727fi
562d60b0
DB
8728ac_res=`eval echo '${'$as_ac_Header'}'`
8729 { echo "$as_me:$LINENO: result: $ac_res" >&5
8730echo "${ECHO_T}$ac_res" >&6; }
469c1a1b
FCE
8731
8732fi
562d60b0 8733if test `eval echo '${'$as_ac_Header'}'` = yes; then
469c1a1b 8734 cat >>confdefs.h <<_ACEOF
562d60b0 8735#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
469c1a1b
FCE
8736_ACEOF
8737
8738fi
8739
8740done
8741
8742
8743for ac_header in boost/shared_ptr.hpp
8744do
562d60b0 8745as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
469c1a1b 8746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0
DB
8747 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
469c1a1b 8749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 8750 echo $ECHO_N "(cached) $ECHO_C" >&6
469c1a1b 8751fi
562d60b0
DB
8752ac_res=`eval echo '${'$as_ac_Header'}'`
8753 { echo "$as_me:$LINENO: result: $ac_res" >&5
8754echo "${ECHO_T}$ac_res" >&6; }
412e1bf7
FCE
8755else
8756 # Is the header compilable?
562d60b0
DB
8757{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
412e1bf7
FCE
8759cat >conftest.$ac_ext <<_ACEOF
8760/* confdefs.h. */
8761_ACEOF
8762cat confdefs.h >>conftest.$ac_ext
8763cat >>conftest.$ac_ext <<_ACEOF
8764/* end confdefs.h. */
8765$ac_includes_default
8766#include <$ac_header>
8767_ACEOF
8768rm -f conftest.$ac_objext
8769if { (ac_try="$ac_compile"
8770case "(($ac_try" in
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8773esac
562d60b0 8774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
8775 (eval "$ac_compile") 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
562d60b0 8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
8781 (exit $ac_status); } && {
8782 test -z "$ac_cxx_werror_flag" ||
8783 test ! -s conftest.err
8784 } && test -s conftest.$ac_objext; then
8785 ac_header_compiler=yes
8786else
562d60b0 8787 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
8788sed 's/^/| /' conftest.$ac_ext >&5
8789
8790 ac_header_compiler=no
8791fi
8792
8793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
562d60b0
DB
8794{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8795echo "${ECHO_T}$ac_header_compiler" >&6; }
412e1bf7
FCE
8796
8797# Is the header present?
562d60b0
DB
8798{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8799echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
412e1bf7
FCE
8800cat >conftest.$ac_ext <<_ACEOF
8801/* confdefs.h. */
8802_ACEOF
8803cat confdefs.h >>conftest.$ac_ext
8804cat >>conftest.$ac_ext <<_ACEOF
8805/* end confdefs.h. */
8806#include <$ac_header>
8807_ACEOF
8808if { (ac_try="$ac_cpp conftest.$ac_ext"
8809case "(($ac_try" in
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8812esac
562d60b0 8813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
8814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
562d60b0 8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
8820 (exit $ac_status); } >/dev/null && {
8821 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8822 test ! -s conftest.err
8823 }; then
8824 ac_header_preproc=yes
8825else
562d60b0 8826 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
8827sed 's/^/| /' conftest.$ac_ext >&5
8828
8829 ac_header_preproc=no
8830fi
8831
8832rm -f conftest.err conftest.$ac_ext
562d60b0
DB
8833{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8834echo "${ECHO_T}$ac_header_preproc" >&6; }
412e1bf7
FCE
8835
8836# So? What about this header?
8837case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8838 yes:no: )
562d60b0
DB
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8840echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8842echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
412e1bf7
FCE
8843 ac_header_preproc=yes
8844 ;;
8845 no:yes:* )
562d60b0
DB
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8847echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8849echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8851echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8853echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8855echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8857echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
412e1bf7
FCE
8858 ( cat <<\_ASBOX
8859## ------------------------------------------- ##
8860## Report this to systemtap@sources.redhat.com ##
8861## ------------------------------------------- ##
8862_ASBOX
8863 ) | sed "s/^/$as_me: WARNING: /" >&2
8864 ;;
8865esac
562d60b0
DB
8866{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
412e1bf7 8868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 8869 echo $ECHO_N "(cached) $ECHO_C" >&6
412e1bf7
FCE
8870else
8871 eval "$as_ac_Header=\$ac_header_preproc"
8872fi
562d60b0
DB
8873ac_res=`eval echo '${'$as_ac_Header'}'`
8874 { echo "$as_me:$LINENO: result: $ac_res" >&5
8875echo "${ECHO_T}$ac_res" >&6; }
412e1bf7
FCE
8876
8877fi
562d60b0 8878if test `eval echo '${'$as_ac_Header'}'` = yes; then
3bf6ac45 8879 cat >>confdefs.h <<_ACEOF
562d60b0 8880#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3bf6ac45
TM
8881_ACEOF
8882
8883fi
8884
8885done
8886
8887ac_ext=c
8888ac_cpp='$CPP $CPPFLAGS'
8889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8891ac_compiler_gnu=$ac_cv_c_compiler_gnu
8892
8893
e016a49a
FCE
8894
8895if test $build_elfutils = yes; then
8896 case "$with_elfutils" in
8897 /*) elfutils_srcdir="$with_elfutils" ;;
8898 *) elfutils_srcdir="../$with_elfutils" ;;
8899 esac
562d60b0
DB
8900 { echo "$as_me:$LINENO: running ${elfutils_srcdir}/configure" >&5
8901echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
29b694a7
DS
8902
8903 save_CFLAGS="$CFLAGS"
8904 save_CXXFLAGS="$CXXFLAGS"
8905 CXXFLAGS="$CXXFLAGS -fgnu89-inline"
8906 CFLAGS="$CFLAGS -fgnu89-inline"
8907 gnu89_inline_flag=""
8908 cat >conftest.$ac_ext <<_ACEOF
8909int something ();
8910_ACEOF
8911rm -f conftest.$ac_objext
8912if { (ac_try="$ac_compile"
8913case "(($ac_try" in
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8916esac
562d60b0 8917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29b694a7
DS
8918 (eval "$ac_compile") 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
562d60b0 8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29b694a7
DS
8924 (exit $ac_status); } && {
8925 test -z "$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest.$ac_objext; then
8928
562d60b0
DB
8929 { echo "$as_me:$LINENO: Compiling elfutils with gcc -fgnu89-inline" >&5
8930echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
29b694a7
DS
8931 gnu89_inline_flag="-fgnu89-inline"
8932else
562d60b0 8933 echo "$as_me: failed program was:" >&5
29b694a7
DS
8934sed 's/^/| /' conftest.$ac_ext >&5
8935
8936
562d60b0
DB
8937 { echo "$as_me:$LINENO: Compiler does not support -fgnu89-inline" >&5
8938echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
29b694a7
DS
8939fi
8940
8941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 CFLAGS="$save_CFLAGS"
8943 CXXFLAGS="$save_CXXFLAGS"
8944
e016a49a
FCE
8945 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
8946 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
8947 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
8948 # So we must make sure to pass those settings to elfutils configure.
8949 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
8950 here=`pwd`
8951 (mkdir -p build-elfutils && cd build-elfutils &&
412e1bf7 8952 bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
e016a49a
FCE
8953 --includedir="${here}/include-elfutils" \
8954 --libdir="${here}/lib-elfutils" \
8955 --exec-prefix="$exec_prefix" \
8956 --prefix="$prefix" \
29b694a7 8957 CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag" \
e016a49a 8958 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
e3633556
MW
8959 if test -f ${elfutils_srcdir}/config/version.h.in; then
8960 echo Trying to install elfutils version header...
8961 make install-pkgincludeHEADERS
8962 fi
8963 # so that elfutils/version.h - available from 0.138 - may be found.
93f86457 8964 # Don't use install-data because that will fail (installing in $prefix).
e016a49a 8965 )
93f86457 8966 if test $? != 0; then exit; fi
1c4cf93d
MW
8967 save_CPPFLAGS=${CPPFLAGS}
8968 CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils
412e1bf7
FCE
8969
8970for ac_header in elfutils/version.h
8971do
562d60b0 8972as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
412e1bf7 8973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0
DB
8974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
412e1bf7 8976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 8977 echo $ECHO_N "(cached) $ECHO_C" >&6
412e1bf7 8978fi
562d60b0
DB
8979ac_res=`eval echo '${'$as_ac_Header'}'`
8980 { echo "$as_me:$LINENO: result: $ac_res" >&5
8981echo "${ECHO_T}$ac_res" >&6; }
412e1bf7
FCE
8982else
8983 # Is the header compilable?
562d60b0
DB
8984{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8985echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
412e1bf7
FCE
8986cat >conftest.$ac_ext <<_ACEOF
8987/* confdefs.h. */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
8991/* end confdefs.h. */
8992$ac_includes_default
8993#include <$ac_header>
8994_ACEOF
8995rm -f conftest.$ac_objext
8996if { (ac_try="$ac_compile"
8997case "(($ac_try" in
8998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999 *) ac_try_echo=$ac_try;;
9000esac
562d60b0 9001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
9002 (eval "$ac_compile") 2>conftest.er1
9003 ac_status=$?
9004 grep -v '^ *+' conftest.er1 >conftest.err
9005 rm -f conftest.er1
9006 cat conftest.err >&5
562d60b0 9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
9008 (exit $ac_status); } && {
9009 test -z "$ac_c_werror_flag" ||
9010 test ! -s conftest.err
9011 } && test -s conftest.$ac_objext; then
9012 ac_header_compiler=yes
9013else
562d60b0 9014 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
9015sed 's/^/| /' conftest.$ac_ext >&5
9016
9017 ac_header_compiler=no
9018fi
9019
9020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
562d60b0
DB
9021{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9022echo "${ECHO_T}$ac_header_compiler" >&6; }
412e1bf7
FCE
9023
9024# Is the header present?
562d60b0
DB
9025{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9026echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
412e1bf7
FCE
9027cat >conftest.$ac_ext <<_ACEOF
9028/* confdefs.h. */
9029_ACEOF
9030cat confdefs.h >>conftest.$ac_ext
9031cat >>conftest.$ac_ext <<_ACEOF
9032/* end confdefs.h. */
9033#include <$ac_header>
9034_ACEOF
9035if { (ac_try="$ac_cpp conftest.$ac_ext"
9036case "(($ac_try" in
9037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038 *) ac_try_echo=$ac_try;;
9039esac
562d60b0 9040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
9041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9042 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1
9045 cat conftest.err >&5
562d60b0 9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
9047 (exit $ac_status); } >/dev/null && {
9048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9049 test ! -s conftest.err
9050 }; then
9051 ac_header_preproc=yes
9052else
562d60b0 9053 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
9054sed 's/^/| /' conftest.$ac_ext >&5
9055
9056 ac_header_preproc=no
9057fi
9058
9059rm -f conftest.err conftest.$ac_ext
562d60b0
DB
9060{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9061echo "${ECHO_T}$ac_header_preproc" >&6; }
412e1bf7
FCE
9062
9063# So? What about this header?
9064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9065 yes:no: )
562d60b0
DB
9066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9067echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9069echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
412e1bf7
FCE
9070 ac_header_preproc=yes
9071 ;;
9072 no:yes:* )
562d60b0
DB
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9074echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9076echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9078echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9080echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9082echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9084echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
412e1bf7
FCE
9085 ( cat <<\_ASBOX
9086## ------------------------------------------- ##
9087## Report this to systemtap@sources.redhat.com ##
9088## ------------------------------------------- ##
9089_ASBOX
9090 ) | sed "s/^/$as_me: WARNING: /" >&2
9091 ;;
9092esac
562d60b0
DB
9093{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
412e1bf7 9095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 9096 echo $ECHO_N "(cached) $ECHO_C" >&6
412e1bf7
FCE
9097else
9098 eval "$as_ac_Header=\$ac_header_preproc"
9099fi
562d60b0
DB
9100ac_res=`eval echo '${'$as_ac_Header'}'`
9101 { echo "$as_me:$LINENO: result: $ac_res" >&5
9102echo "${ECHO_T}$ac_res" >&6; }
412e1bf7
FCE
9103
9104fi
562d60b0 9105if test `eval echo '${'$as_ac_Header'}'` = yes; then
1c4cf93d 9106 cat >>confdefs.h <<_ACEOF
562d60b0 9107#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1c4cf93d
MW
9108_ACEOF
9109
9110fi
9111
9112done
9113
9114 CPPFLAGS="$save_CPPFLAGS"
9115else
412e1bf7
FCE
9116
9117for ac_header in elfutils/version.h
9118do
562d60b0 9119as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
412e1bf7 9120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0
DB
9121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
412e1bf7 9123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 9124 echo $ECHO_N "(cached) $ECHO_C" >&6
412e1bf7 9125fi
562d60b0
DB
9126ac_res=`eval echo '${'$as_ac_Header'}'`
9127 { echo "$as_me:$LINENO: result: $ac_res" >&5
9128echo "${ECHO_T}$ac_res" >&6; }
412e1bf7
FCE
9129else
9130 # Is the header compilable?
562d60b0
DB
9131{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9132echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
412e1bf7
FCE
9133cat >conftest.$ac_ext <<_ACEOF
9134/* confdefs.h. */
9135_ACEOF
9136cat confdefs.h >>conftest.$ac_ext
9137cat >>conftest.$ac_ext <<_ACEOF
9138/* end confdefs.h. */
9139$ac_includes_default
9140#include <$ac_header>
9141_ACEOF
9142rm -f conftest.$ac_objext
9143if { (ac_try="$ac_compile"
9144case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147esac
562d60b0 9148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
9149 (eval "$ac_compile") 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
562d60b0 9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
9155 (exit $ac_status); } && {
9156 test -z "$ac_c_werror_flag" ||
9157 test ! -s conftest.err
9158 } && test -s conftest.$ac_objext; then
9159 ac_header_compiler=yes
9160else
562d60b0 9161 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
9162sed 's/^/| /' conftest.$ac_ext >&5
9163
9164 ac_header_compiler=no
9165fi
9166
9167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
562d60b0
DB
9168{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9169echo "${ECHO_T}$ac_header_compiler" >&6; }
412e1bf7
FCE
9170
9171# Is the header present?
562d60b0
DB
9172{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9173echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
412e1bf7
FCE
9174cat >conftest.$ac_ext <<_ACEOF
9175/* confdefs.h. */
9176_ACEOF
9177cat confdefs.h >>conftest.$ac_ext
9178cat >>conftest.$ac_ext <<_ACEOF
9179/* end confdefs.h. */
9180#include <$ac_header>
9181_ACEOF
9182if { (ac_try="$ac_cpp conftest.$ac_ext"
9183case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186esac
562d60b0 9187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
412e1bf7
FCE
9188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9189 ac_status=$?
9190 grep -v '^ *+' conftest.er1 >conftest.err
9191 rm -f conftest.er1
9192 cat conftest.err >&5
562d60b0 9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
412e1bf7
FCE
9194 (exit $ac_status); } >/dev/null && {
9195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9196 test ! -s conftest.err
9197 }; then
9198 ac_header_preproc=yes
9199else
562d60b0 9200 echo "$as_me: failed program was:" >&5
412e1bf7
FCE
9201sed 's/^/| /' conftest.$ac_ext >&5
9202
9203 ac_header_preproc=no
9204fi
9205
9206rm -f conftest.err conftest.$ac_ext
562d60b0
DB
9207{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9208echo "${ECHO_T}$ac_header_preproc" >&6; }
412e1bf7
FCE
9209
9210# So? What about this header?
9211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9212 yes:no: )
562d60b0
DB
9213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
412e1bf7
FCE
9217 ac_header_preproc=yes
9218 ;;
9219 no:yes:* )
562d60b0
DB
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
412e1bf7
FCE
9232 ( cat <<\_ASBOX
9233## ------------------------------------------- ##
9234## Report this to systemtap@sources.redhat.com ##
9235## ------------------------------------------- ##
9236_ASBOX
9237 ) | sed "s/^/$as_me: WARNING: /" >&2
9238 ;;
9239esac
562d60b0
DB
9240{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
412e1bf7 9242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
562d60b0 9243 echo $ECHO_N "(cached) $ECHO_C" >&6
412e1bf7
FCE
9244else
9245 eval "$as_ac_Header=\$ac_header_preproc"
9246fi
562d60b0
DB
9247ac_res=`eval echo '${'$as_ac_Header'}'`
9248 { echo "$as_me:$LINENO: result: $ac_res" >&5
9249echo "${ECHO_T}$ac_res" >&6; }
412e1bf7
FCE
9250
9251fi
562d60b0 9252if test `eval echo '${'$as_ac_Header'}'` = yes; then
e016a49a 9253 cat >>confdefs.h <<_ACEOF
562d60b0 9254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e016a49a
FCE
9255_ACEOF
9256
9257fi
9258
9259done
9260
1c4cf93d 9261fi
e016a49a 9262
50431f30
MW
9263
9264cat >>confdefs.h <<_ACEOF
9265#define STAP_PREFIX "$prefix"
9266_ACEOF
9267
9268
7fbd9d09 9269ac_config_headers="$ac_config_headers config.h:config.in"
daae650d 9270
8d9ee48a
JS
9271ac_config_files="$ac_config_files Makefile doc/Makefile doc/SystemTap_Tapset_Reference/Makefile grapher/Makefile grapher/stapgraph.1 stap.1 stapprobes.3stap stapfuncs.3stap stapvars.3stap stapex.3stap staprun.8 stap-server.8 man/stapprobes.iosched.3stap man/stapprobes.irq.3stap man/stapprobes.netdev.3stap man/stapprobes.nfs.3stap man/stapprobes.nfsd.3stap man/stapprobes.pagefault.3stap man/stapprobes.kprocess.3stap man/stapprobes.rpc.3stap man/stapprobes.scsi.3stap man/stapprobes.signal.3stap man/stapprobes.socket.3stap man/stapprobes.tcp.3stap man/stapprobes.udp.3stap man/stapprobes.snmp.3stap initscript/systemtap initscript/stap-server"
9272
1087b83f 9273subdirs="$subdirs testsuite"
5ba96b90 9274
6d14a4a9
EB
9275if test $enable_translator == "yes"; then
9276 ac_config_files="$ac_config_files run-stap"
2f62657c 9277
6d14a4a9 9278fi
65ffc3f3 9279ac_config_files="$ac_config_files run-staprun"
3c960a7c 9280
e4aaabda
MW
9281ac_config_files="$ac_config_files dtrace"
9282
2f1a1aea
FCE
9283cat >confcache <<\_ACEOF
9284# This file is a shell script that caches the results of configure
9285# tests run on this system so they can be shared between configure
9286# scripts and configure runs, see configure's option --config-cache.
9287# It is not useful on other systems. If it contains results you don't
9288# want to keep, you may remove or edit it.
9289#
9290# config.status only pays attention to the cache file if you give it
9291# the --recheck option to rerun configure.
9292#
9293# `ac_cv_env_foo' variables (set or unset) will be overridden when
9294# loading this file, other *unset* `ac_cv_foo' will be assigned the
9295# following values.
9296
9297_ACEOF
9298
9299# The following way of writing the cache mishandles newlines in values,
9300# but we know of no workaround that is simple, portable, and efficient.
7fbd9d09 9301# So, we kill variables containing newlines.
2f1a1aea
FCE
9302# Ultrix sh set writes to stderr and can't be redirected directly,
9303# and sets the high bit in the cache file unless we assign to the vars.
7fbd9d09
FCE
9304(
9305 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9306 eval ac_val=\$$ac_var
9307 case $ac_val in #(
9308 *${as_nl}*)
9309 case $ac_var in #(
562d60b0
DB
9310 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9311echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7fbd9d09
FCE
9312 esac
9313 case $ac_var in #(
9314 _ | IFS | as_nl) ;; #(
412e1bf7 9315 *) $as_unset $ac_var ;;
7fbd9d09
FCE
9316 esac ;;
9317 esac
9318 done
9319
2f1a1aea 9320 (set) 2>&1 |
7fbd9d09
FCE
9321 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9322 *${as_nl}ac_space=\ *)
412e1bf7
FCE
9323 # `set' does not quote correctly, so add quotes (double-quote
9324 # substitution turns \\\\ into \\, and sed turns \\ into \).
2f1a1aea
FCE
9325 sed -n \
9326 "s/'/'\\\\''/g;
9327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7fbd9d09 9328 ;; #(
2f1a1aea
FCE
9329 *)
9330 # `set' quotes correctly as required by POSIX, so do not add quotes.
7fbd9d09 9331 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2f1a1aea 9332 ;;
7fbd9d09
FCE
9333 esac |
9334 sort
9335) |
2f1a1aea 9336 sed '
7fbd9d09 9337 /^ac_cv_env_/b end
2f1a1aea 9338 t clear
7fbd9d09 9339 :clear
2f1a1aea
FCE
9340 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9341 t end
7fbd9d09
FCE
9342 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9343 :end' >>confcache
9344if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9345 if test -w "$cache_file"; then
9346 test "x$cache_file" != "x/dev/null" &&
562d60b0
DB
9347 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9348echo "$as_me: updating cache $cache_file" >&6;}
2f1a1aea
FCE
9349 cat confcache >$cache_file
9350 else
562d60b0
DB
9351 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9352echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2f1a1aea
FCE
9353 fi
9354fi
9355rm -f confcache
9356
9357test "x$prefix" = xNONE && prefix=$ac_default_prefix
9358# Let make expand exec_prefix.
9359test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9360
2f1a1aea
FCE
9361DEFS=-DHAVE_CONFIG_H
9362
9363ac_libobjs=
9364ac_ltlibobjs=
9365for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9366 # 1. Remove the extension, and $U if already installed.
7fbd9d09 9367 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
562d60b0 9368 ac_i=`echo "$ac_i" | sed "$ac_script"`
7fbd9d09
FCE
9369 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9370 # will be set to the directory where LIBOBJS objects are built.
412e1bf7
FCE
9371 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9372 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2f1a1aea
FCE
9373done
9374LIBOBJS=$ac_libobjs
9375
9376LTLIBOBJS=$ac_ltlibobjs
9377
9378
9379if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
562d60b0 9380 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
412e1bf7 9381Usually this means the macro was only invoked conditionally." >&5
562d60b0 9382echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
412e1bf7
FCE
9383Usually this means the macro was only invoked conditionally." >&2;}
9384 { (exit 1); exit 1; }; }
2f1a1aea
FCE
9385fi
9386if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
562d60b0 9387 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
412e1bf7 9388Usually this means the macro was only invoked conditionally." >&5
562d60b0 9389echo "$as_me: error: conditional \"AMDEP\" was never defined.
412e1bf7
FCE
9390Usually this means the macro was only invoked conditionally." >&2;}
9391 { (exit 1); exit 1; }; }
2f1a1aea
FCE
9392fi
9393if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
562d60b0 9394 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
412e1bf7 9395Usually this means the macro was only invoked conditionally." >&5
562d60b0 9396echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
412e1bf7
FCE
9397Usually this means the macro was only invoked conditionally." >&2;}
9398 { (exit 1); exit 1; }; }
2f1a1aea
FCE
9399fi
9400if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
562d60b0 9401 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
412e1bf7 9402Usually this means the macro was only invoked conditionally." >&5
562d60b0 9403echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
412e1bf7
FCE
9404Usually this means the macro was only invoked conditionally." >&2;}
9405 { (exit 1); exit 1; }; }
2f1a1aea
FCE
9406fi
9407if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
562d60b0 9408 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
412e1bf7 9409Usually this means the macro was only invoked conditionally." >&5
562d60b0 9410echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
412e1bf7
FCE
9411Usually this means the macro was only invoked conditionally." >&2;}
9412 { (exit 1); exit 1; }; }
2f1a1aea 9413fi
6d14a4a9 9414if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
562d60b0 9415 { { echo "$as_me:$LINENO: error: conditional \"BUILD_TRANSLATOR\" was never defined.
412e1bf7 9416Usually this means the macro was only invoked conditionally." >&5
562d60b0 9417echo "$as_me: error: conditional \"BUILD_TRANSLATOR\" was never defined.
412e1bf7
FCE
9418Usually this means the macro was only invoked conditionally." >&2;}
9419 { (exit 1); exit 1; }; }
6d14a4a9 9420fi
e8f3c2c2 9421if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
562d60b0 9422 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CRASHMOD\" was never defined.
412e1bf7 9423Usually this means the macro was only invoked conditionally." >&5
562d60b0 9424echo "$as_me: error: conditional \"BUILD_CRASHMOD\" was never defined.
412e1bf7
FCE
9425Usually this means the macro was only invoked conditionally." >&2;}
9426 { (exit 1); exit 1; }; }
4d9087fc 9427fi
465e8fbf 9428if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
562d60b0 9429 { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
412e1bf7 9430Usually this means the macro was only invoked conditionally." >&5
562d60b0 9431echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
412e1bf7
FCE
9432Usually this means the macro was only invoked conditionally." >&2;}
9433 { (exit 1); exit 1; }; }
92aff3c7
WC
9434fi
9435if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
562d60b0 9436 { { echo "$as_me:$LINENO: error: conditional \"BUILD_REFDOCS\" was never defined.
412e1bf7 9437Usually this means the macro was only invoked conditionally." >&5
562d60b0 9438echo "$as_me: error: conditional \"BUILD_REFDOCS\" was never defined.
468abaf4
FCE
9439Usually this means the macro was only invoked conditionally." >&2;}
9440 { (exit 1); exit 1; }; }
9441fi
9442if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
562d60b0 9443 { { echo "$as_me:$LINENO: error: conditional \"XMLTO_STRINGPARAM\" was never defined.
468abaf4 9444Usually this means the macro was only invoked conditionally." >&5
562d60b0 9445echo "$as_me: error: conditional \"XMLTO_STRINGPARAM\" was never defined.
412e1bf7
FCE
9446Usually this means the macro was only invoked conditionally." >&2;}
9447 { (exit 1); exit 1; }; }
19a0d4b6 9448fi
ccf8bc85 9449if test -z "${BUILD_PDFREFDOCS_TRUE}" && test -z "${BUILD_PDFREFDOCS_FALSE}"; then
562d60b0 9450 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PDFREFDOCS\" was never defined.
412e1bf7 9451Usually this means the macro was only invoked conditionally." >&5
562d60b0 9452echo "$as_me: error: conditional \"BUILD_PDFREFDOCS\" was never defined.
412e1bf7
FCE
9453Usually this means the macro was only invoked conditionally." >&2;}
9454 { (exit 1); exit 1; }; }
ccf8bc85 9455fi
19a0d4b6 9456if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
562d60b0 9457 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SERVER\" was never defined.
412e1bf7 9458Usually this means the macro was only invoked conditionally." >&5
562d60b0 9459echo "$as_me: error: conditional \"BUILD_SERVER\" was never defined.
412e1bf7
FCE
9460Usually this means the macro was only invoked conditionally." >&2;}
9461 { (exit 1); exit 1; }; }
2035bcd4
DB
9462fi
9463if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
562d60b0 9464 { { echo "$as_me:$LINENO: error: conditional \"HAVE_NSS\" was never defined.
412e1bf7 9465Usually this means the macro was only invoked conditionally." >&5
562d60b0 9466echo "$as_me: error: conditional \"HAVE_NSS\" was never defined.
412e1bf7
FCE
9467Usually this means the macro was only invoked conditionally." >&2;}
9468 { (exit 1); exit 1; }; }
465e8fbf 9469fi
1087b83f 9470if test -z "${BUILD_GRAPHER_TRUE}" && test -z "${BUILD_GRAPHER_FALSE}"; then
562d60b0 9471 { { echo "$as_me:$LINENO: error: conditional \"BUILD_GRAPHER\" was never defined.
412e1bf7 9472Usually this means the macro was only invoked conditionally." >&5
562d60b0 9473echo "$as_me: error: conditional \"BUILD_GRAPHER\" was never defined.
412e1bf7
FCE
9474Usually this means the macro was only invoked conditionally." >&2;}
9475 { (exit 1); exit 1; }; }
1087b83f 9476fi
e8f3c2c2 9477if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
562d60b0 9478 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ELFUTILS\" was never defined.
412e1bf7 9479Usually this means the macro was only invoked conditionally." >&5
562d60b0 9480echo "$as_me: error: conditional \"BUILD_ELFUTILS\" was never defined.
412e1bf7
FCE
9481Usually this means the macro was only invoked conditionally." >&2;}
9482 { (exit 1); exit 1; }; }
35a04c8e 9483fi
2f1a1aea
FCE
9484
9485: ${CONFIG_STATUS=./config.status}
9486ac_clean_files_save=$ac_clean_files
9487ac_clean_files="$ac_clean_files $CONFIG_STATUS"
562d60b0
DB
9488{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9489echo "$as_me: creating $CONFIG_STATUS" >&6;}
9490cat >$CONFIG_STATUS <<_ACEOF
2f1a1aea
FCE
9491#! $SHELL
9492# Generated by $as_me.
9493# Run this file to recreate the current configuration.
9494# Compiler output produced by configure, useful for debugging
9495# configure, is in config.log if it exists.
9496
9497debug=false
9498ac_cs_recheck=false
9499ac_cs_silent=false
4a3c19da 9500SHELL=\${CONFIG_SHELL-$SHELL}
412e1bf7
FCE
9501_ACEOF
9502
562d60b0 9503cat >>$CONFIG_STATUS <<\_ACEOF
412e1bf7
FCE
9504## --------------------- ##
9505## M4sh Initialization. ##
9506## --------------------- ##
2f1a1aea 9507
7fbd9d09
FCE
9508# Be more Bourne compatible
9509DUALCASE=1; export DUALCASE # for MKS sh
412e1bf7 9510if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2f1a1aea
FCE
9511 emulate sh
9512 NULLCMD=:
562d60b0 9513 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2f1a1aea
FCE
9514 # is contrary to our usage. Disable this feature.
9515 alias -g '${1+"$@"}'='"$@"'
7fbd9d09 9516 setopt NO_GLOB_SUBST
4a3c19da 9517else
412e1bf7
FCE
9518 case `(set -o) 2>/dev/null` in
9519 *posix*) set -o posix ;;
4a3c19da 9520esac
412e1bf7 9521
4a3c19da
EM
9522fi
9523
7fbd9d09 9524
412e1bf7
FCE
9525
9526
9527# PATH needs CR
9528# Avoid depending upon Character Ranges.
9529as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9530as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9531as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9532as_cr_digits='0123456789'
9533as_cr_alnum=$as_cr_Letters$as_cr_digits
9534
8d9ee48a
JS
9535# The user is always right.
9536if test "${PATH_SEPARATOR+set}" != set; then
562d60b0
DB
9537 echo "#! /bin/sh" >conf$$.sh
9538 echo "exit 0" >>conf$$.sh
9539 chmod +x conf$$.sh
9540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9541 PATH_SEPARATOR=';'
9542 else
9543 PATH_SEPARATOR=:
9544 fi
9545 rm -f conf$$.sh
7fbd9d09
FCE
9546fi
9547
412e1bf7
FCE
9548# Support unset when possible.
9549if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9550 as_unset=unset
9551else
9552 as_unset=false
9553fi
9554
7fbd9d09
FCE
9555
9556# IFS
9557# We need space, tab and new line, in precisely that order. Quoting is
9558# there to prevent editors from complaining about space-tab.
9559# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9560# splitting by setting IFS to empty value.)
562d60b0
DB
9561as_nl='
9562'
7fbd9d09
FCE
9563IFS=" "" $as_nl"
9564
9565# Find who we are. Look in the path if we contain no directory separator.
412e1bf7 9566case $0 in
7fbd9d09
FCE
9567 *[\\/]* ) as_myself=$0 ;;
9568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569for as_dir in $PATH
9570do
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
412e1bf7
FCE
9573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9574done
7fbd9d09
FCE
9575IFS=$as_save_IFS
9576
9577 ;;
9578esac
9579# We did not find ourselves, most probably we were run as `sh COMMAND'
9580# in which case we are not to be found in the path.
9581if test "x$as_myself" = x; then
9582 as_myself=$0
9583fi
9584if test ! -f "$as_myself"; then
562d60b0 9585 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
412e1bf7 9586 { (exit 1); exit 1; }
7fbd9d09
FCE
9587fi
9588
412e1bf7
FCE
9589# Work around bugs in pre-3.0 UWIN ksh.
9590for as_var in ENV MAIL MAILPATH
9591do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7fbd9d09
FCE
9592done
9593PS1='$ '
2f1a1aea
FCE
9594PS2='> '
9595PS4='+ '
9596
9597# NLS nuisances.
562d60b0
DB
9598for as_var in \
9599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9601 LC_TELEPHONE LC_TIME
9602do
9603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9604 eval $as_var=C; export $as_var
9605 else
9606 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9607 fi
9608done
2f1a1aea 9609
412e1bf7 9610# Required to use basename.
7fbd9d09
FCE
9611if expr a : '\(a\)' >/dev/null 2>&1 &&
9612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2f1a1aea
FCE
9613 as_expr=expr
9614else
9615 as_expr=false
9616fi
9617
7fbd9d09 9618if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2f1a1aea
FCE
9619 as_basename=basename
9620else
9621 as_basename=false
9622fi
9623
9624
412e1bf7 9625# Name of the executable.
7fbd9d09 9626as_me=`$as_basename -- "$0" ||
2f1a1aea
FCE
9627$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9628 X"$0" : 'X\(//\)$' \| \
7fbd9d09 9629 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
562d60b0 9630echo X/"$0" |
7fbd9d09
FCE
9631 sed '/^.*\/\([^/][^/]*\)\/*$/{
9632 s//\1/
9633 q
9634 }
9635 /^X\/\(\/\/\)$/{
9636 s//\1/
9637 q
9638 }
9639 /^X\/\(\/\).*/{
9640 s//\1/
9641 q
9642 }
9643 s/.*/./; q'`
8ae7a94a 9644
412e1bf7
FCE
9645# CDPATH.
9646$as_unset CDPATH
9647
9648
9649
9650 as_lineno_1=$LINENO
9651 as_lineno_2=$LINENO
9652 test "x$as_lineno_1" != "x$as_lineno_2" &&
9653 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9654
9655 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9656 # uniformly replaced by the line number. The first 'sed' inserts a
9657 # line-number line after each line using $LINENO; the second 'sed'
9658 # does the real work. The second script uses 'N' to pair each
9659 # line-number line with the line containing $LINENO, and appends
9660 # trailing '-' during substitution so that $LINENO is not a special
9661 # case at line end.
9662 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9663 # scripts with optimization help from Paolo Bonzini. Blame Lee
9664 # E. McMahon (1931-1989) for sed's syntax. :-)
9665 sed -n '
9666 p
9667 /[$]LINENO/=
9668 ' <$as_myself |
9669 sed '
9670 s/[$]LINENO.*/&-/
9671 t lineno
9672 b
9673 :lineno
9674 N
9675 :loop
9676 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9677 t loop
9678 s/-\n.*//
9679 ' >$as_me.lineno &&
9680 chmod +x "$as_me.lineno" ||
562d60b0 9681 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
412e1bf7
FCE
9682 { (exit 1); exit 1; }; }
9683
9684 # Don't try to exec as it changes $[0], causing all sort of problems
9685 # (the dirname of $[0] is not the place where we might find the
9686 # original and so on. Autoconf is especially sensitive to this).
9687 . "./$as_me.lineno"
9688 # Exit status is that of the last command.
9689 exit
9690}
9691
9692
9693if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9694 as_dirname=dirname
9695else
9696 as_dirname=false
9697fi
7fbd9d09
FCE
9698
9699ECHO_C= ECHO_N= ECHO_T=
412e1bf7 9700case `echo -n x` in
7fbd9d09 9701-n*)
412e1bf7 9702 case `echo 'x\c'` in
7fbd9d09 9703 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
412e1bf7 9704 *) ECHO_C='\c';;
7fbd9d09
FCE
9705 esac;;
9706*)
9707 ECHO_N='-n';;
2f1a1aea 9708esac
562d60b0 9709
412e1bf7
FCE
9710if expr a : '\(a\)' >/dev/null 2>&1 &&
9711 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9712 as_expr=expr
9713else
9714 as_expr=false
9715fi
2f1a1aea
FCE
9716
9717rm -f conf$$ conf$$.exe conf$$.file
7fbd9d09
FCE
9718if test -d conf$$.dir; then
9719 rm -f conf$$.dir/conf$$.file
9720else
9721 rm -f conf$$.dir
562d60b0
DB
9722 mkdir conf$$.dir
9723fi
9724echo >conf$$.file
9725if ln -s conf$$.file conf$$ 2>/dev/null; then
9726 as_ln_s='ln -s'
9727 # ... but there are two gotchas:
9728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9730 # In both cases, we have to default to `cp -p'.
9731 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2f1a1aea 9732 as_ln_s='cp -p'
562d60b0
DB
9733elif ln conf$$.file conf$$ 2>/dev/null; then
9734 as_ln_s=ln
2f1a1aea
FCE
9735else
9736 as_ln_s='cp -p'
9737fi
7fbd9d09
FCE
9738rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9739rmdir conf$$.dir 2>/dev/null
2f1a1aea
FCE
9740
9741if mkdir -p . 2>/dev/null; then
412e1bf7 9742 as_mkdir_p=:
2f1a1aea
FCE
9743else
9744 test -d ./-p && rmdir ./-p
9745 as_mkdir_p=false
9746fi
9747
7fbd9d09
FCE
9748if test -x / >/dev/null 2>&1; then
9749 as_test_x='test -x'
9750else
9751 if ls -dL / >/dev/null 2>&1; then
9752 as_ls_L_option=L
9753 else
9754 as_ls_L_option=
9755 fi
9756 as_test_x='
9757 eval sh -c '\''
9758 if test -d "$1"; then
562d60b0 9759 test -d "$1/.";
7fbd9d09 9760 else
412e1bf7 9761 case $1 in
562d60b0 9762 -*)set "./$1";;
7fbd9d09 9763 esac;
412e1bf7 9764 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7fbd9d09
FCE
9765 ???[sx]*):;;*)false;;esac;fi
9766 '\'' sh
9767 '
9768fi
9769as_executable_p=$as_test_x
2f1a1aea
FCE
9770
9771# Sed expression to map a string onto a valid CPP name.
9772as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9773
9774# Sed expression to map a string onto a valid variable name.
9775as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9776
9777
2f1a1aea
FCE
9778exec 6>&1
9779
412e1bf7 9780# Save the log message, to keep $[0] and so on meaningful, and to
2f1a1aea 9781# report actual input values of CONFIG_FILES etc. instead of their
7fbd9d09
FCE
9782# values after options handling.
9783ac_log="
6a7aa1a1 9784This file was extended by systemtap $as_me 1.0, which was
562d60b0 9785generated by GNU Autoconf 2.61. Invocation command line was
2f1a1aea
FCE
9786
9787 CONFIG_FILES = $CONFIG_FILES
9788 CONFIG_HEADERS = $CONFIG_HEADERS
9789 CONFIG_LINKS = $CONFIG_LINKS
9790 CONFIG_COMMANDS = $CONFIG_COMMANDS
9791 $ $0 $@
9792
7fbd9d09
FCE
9793on `(hostname || uname -n) 2>/dev/null | sed 1q`
9794"
9795
2f1a1aea
FCE
9796_ACEOF
9797
562d60b0 9798cat >>$CONFIG_STATUS <<_ACEOF
818ba2bc 9799# Files that config.status was made for.
7fbd9d09
FCE
9800config_files="$ac_config_files"
9801config_headers="$ac_config_headers"
9802config_commands="$ac_config_commands"
daae650d 9803
7fbd9d09 9804_ACEOF
8ae7a94a 9805
562d60b0 9806cat >>$CONFIG_STATUS <<\_ACEOF
2f1a1aea 9807ac_cs_usage="\
412e1bf7
FCE
9808\`$as_me' instantiates files from templates according to the
9809current configuration.
2f1a1aea 9810
562d60b0 9811Usage: $0 [OPTIONS] [FILE]...
2f1a1aea
FCE
9812
9813 -h, --help print this help, then exit
7fbd9d09 9814 -V, --version print version number and configuration settings, then exit
562d60b0 9815 -q, --quiet do not print progress messages
2f1a1aea
FCE
9816 -d, --debug don't remove temporary files
9817 --recheck update $as_me by reconfiguring in the same conditions
562d60b0
DB
9818 --file=FILE[:TEMPLATE]
9819 instantiate the configuration file FILE
9820 --header=FILE[:TEMPLATE]
9821 instantiate the configuration header FILE
2f1a1aea
FCE
9822
9823Configuration files:
9824$config_files
9825
9826Configuration headers:
9827$config_headers
9828
9829Configuration commands:
9830$config_commands
9831
412e1bf7 9832Report bugs to <bug-autoconf@gnu.org>."
818ba2bc 9833
7fbd9d09 9834_ACEOF
562d60b0 9835cat >>$CONFIG_STATUS <<_ACEOF
2f1a1aea 9836ac_cs_version="\\
6a7aa1a1 9837systemtap config.status 1.0
562d60b0
DB
9838configured by $0, generated by GNU Autoconf 2.61,
9839 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2f1a1aea 9840
562d60b0 9841Copyright (C) 2006 Free Software Foundation, Inc.
2f1a1aea
FCE
9842This config.status script is free software; the Free Software Foundation
9843gives unlimited permission to copy, distribute and modify it."
7fbd9d09
FCE
9844
9845ac_pwd='$ac_pwd'
9846srcdir='$srcdir'
9847INSTALL='$INSTALL'
9848MKDIR_P='$MKDIR_P'
2f1a1aea
FCE
9849_ACEOF
9850
562d60b0
DB
9851cat >>$CONFIG_STATUS <<\_ACEOF
9852# If no file are specified by the user, then we need to provide default
9853# value. By we need to know if files were specified by the user.
2f1a1aea
FCE
9854ac_need_defaults=:
9855while test $# != 0
9856do
9857 case $1 in
9858 --*=*)
7fbd9d09
FCE
9859 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9860 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2f1a1aea
FCE
9861 ac_shift=:
9862 ;;
7fbd9d09 9863 *)
2f1a1aea
FCE
9864 ac_option=$1
9865 ac_optarg=$2
9866 ac_shift=shift
9867 ;;
2f1a1aea
FCE
9868 esac
9869
9870 case $ac_option in
9871 # Handling of the options.
2f1a1aea
FCE
9872 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9873 ac_cs_recheck=: ;;
7fbd9d09 9874 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
562d60b0 9875 echo "$ac_cs_version"; exit ;;
7fbd9d09 9876 --debug | --debu | --deb | --de | --d | -d )
2f1a1aea
FCE
9877 debug=: ;;
9878 --file | --fil | --fi | --f )
9879 $ac_shift
562d60b0 9880 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2f1a1aea
FCE
9881 ac_need_defaults=false;;
9882 --header | --heade | --head | --hea )
9883 $ac_shift
562d60b0 9884 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2f1a1aea 9885 ac_need_defaults=false;;
7fbd9d09
FCE
9886 --he | --h)
9887 # Conflict between --help and --header
562d60b0 9888 { echo "$as_me: error: ambiguous option: $1
412e1bf7
FCE
9889Try \`$0 --help' for more information." >&2
9890 { (exit 1); exit 1; }; };;
7fbd9d09 9891 --help | --hel | -h )
562d60b0 9892 echo "$ac_cs_usage"; exit ;;
2f1a1aea
FCE
9893 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9894 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9895 ac_cs_silent=: ;;
9896
9897 # This is an error.
562d60b0 9898 -*) { echo "$as_me: error: unrecognized option: $1
412e1bf7
FCE
9899Try \`$0 --help' for more information." >&2
9900 { (exit 1); exit 1; }; } ;;
2f1a1aea 9901
412e1bf7 9902 *) ac_config_targets="$ac_config_targets $1"
7fbd9d09 9903 ac_need_defaults=false ;;
2f1a1aea
FCE
9904
9905 esac
9906 shift
9907done
9908
9909ac_configure_extra_args=
9910
9911if $ac_cs_silent; then
9912 exec 6>/dev/null
9913 ac_configure_extra_args="$ac_configure_extra_args --silent"
9914fi
9915
9916_ACEOF
562d60b0 9917cat >>$CONFIG_STATUS <<_ACEOF
2f1a1aea 9918if \$ac_cs_recheck; then
562d60b0
DB
9919 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9920 CONFIG_SHELL=$SHELL
7fbd9d09 9921 export CONFIG_SHELL
562d60b0 9922 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2f1a1aea
FCE
9923fi
9924
9925_ACEOF
562d60b0 9926cat >>$CONFIG_STATUS <<\_ACEOF
7fbd9d09
FCE
9927exec 5>>config.log
9928{
9929 echo
9930 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9931## Running $as_me. ##
9932_ASBOX
562d60b0 9933 echo "$ac_log"
7fbd9d09 9934} >&5
2f1a1aea 9935
7fbd9d09 9936_ACEOF
562d60b0 9937cat >>$CONFIG_STATUS <<_ACEOF
2f1a1aea 9938#
7fbd9d09 9939# INIT-COMMANDS
2f1a1aea 9940#
2f1a1aea
FCE
9941AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9942
9943_ACEOF
9944
562d60b0 9945cat >>$CONFIG_STATUS <<\_ACEOF
7fbd9d09
FCE
9946
9947# Handling of arguments.
2f1a1aea
FCE
9948for ac_config_target in $ac_config_targets
9949do
7fbd9d09
FCE
9950 case $ac_config_target in
9951 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9952 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9953 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9954 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9955 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
1087b83f 9956 "grapher/Makefile") CONFIG_FILES="$CONFIG_FILES grapher/Makefile" ;;
9ed28fbc 9957 "grapher/stapgraph.1") CONFIG_FILES="$CONFIG_FILES grapher/stapgraph.1" ;;
7fbd9d09 9958 "stap.1") CONFIG_FILES="$CONFIG_FILES stap.1" ;;
e97c0b29
WC
9959 "stapprobes.3stap") CONFIG_FILES="$CONFIG_FILES stapprobes.3stap" ;;
9960 "stapfuncs.3stap") CONFIG_FILES="$CONFIG_FILES stapfuncs.3stap" ;;
9961 "stapvars.3stap") CONFIG_FILES="$CONFIG_FILES stapvars.3stap" ;;
9962 "stapex.3stap") CONFIG_FILES="$CONFIG_FILES stapex.3stap" ;;
7fbd9d09
FCE
9963 "staprun.8") CONFIG_FILES="$CONFIG_FILES staprun.8" ;;
9964 "stap-server.8") CONFIG_FILES="$CONFIG_FILES stap-server.8" ;;
e97c0b29 9965 "man/stapprobes.iosched.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.iosched.3stap" ;;
8d9ee48a 9966 "man/stapprobes.irq.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.irq.3stap" ;;
e97c0b29
WC
9967 "man/stapprobes.netdev.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.netdev.3stap" ;;
9968 "man/stapprobes.nfs.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfs.3stap" ;;
9969 "man/stapprobes.nfsd.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfsd.3stap" ;;
9970 "man/stapprobes.pagefault.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.pagefault.3stap" ;;
1f65cc4f 9971 "man/stapprobes.kprocess.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.kprocess.3stap" ;;
e97c0b29
WC
9972 "man/stapprobes.rpc.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.rpc.3stap" ;;
9973 "man/stapprobes.scsi.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.scsi.3stap" ;;
9974 "man/stapprobes.signal.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.signal.3stap" ;;
9975 "man/stapprobes.socket.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.socket.3stap" ;;
9976 "man/stapprobes.tcp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.tcp.3stap" ;;
9977 "man/stapprobes.udp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.udp.3stap" ;;
364ad890 9978 "man/stapprobes.snmp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.snmp.3stap" ;;
7fbd9d09 9979 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
2f78bee0 9980 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
7fbd9d09 9981 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
65ffc3f3 9982 "run-staprun") CONFIG_FILES="$CONFIG_FILES run-staprun" ;;
e4aaabda 9983 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
7fbd9d09 9984
562d60b0
DB
9985 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9986echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
412e1bf7 9987 { (exit 1); exit 1; }; };;
2f1a1aea
FCE
9988 esac
9989done
9990
7fbd9d09 9991
2f1a1aea
FCE
9992# If the user did not use the arguments to specify the items to instantiate,
9993# then the envvar interface is used. Set only those that are not.
9994# We use the long form for the default assignment because of an extremely
9995# bizarre bug on SunOS 4.1.3.
9996if $ac_need_defaults; then
9997 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9998 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9999 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10000fi
10001
10002# Have a temporary directory for convenience. Make it in the build tree
7fbd9d09 10003# simply because there is no reason against having it here, and in addition,
2f1a1aea 10004# creating and moving files from /tmp can sometimes cause problems.
7fbd9d09
FCE
10005# Hook for its removal unless debugging.
10006# Note that there is a small window in which the directory will not be cleaned:
10007# after its creation but before its name has been assigned to `$tmp'.
2f1a1aea
FCE
10008$debug ||
10009{
7fbd9d09
FCE
10010 tmp=
10011 trap 'exit_status=$?
10012 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10013' 0
412e1bf7 10014 trap '{ (exit 1); exit 1; }' 1 2 13 15
2f1a1aea 10015}
2f1a1aea
FCE
10016# Create a (secure) tmp directory for tmp files.
10017
10018{
7fbd9d09 10019 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2f1a1aea
FCE
10020 test -n "$tmp" && test -d "$tmp"
10021} ||
10022{
7fbd9d09
FCE
10023 tmp=./conf$$-$RANDOM
10024 (umask 077 && mkdir "$tmp")
412e1bf7
FCE
10025} ||
10026{
562d60b0 10027 echo "$me: cannot create a temporary directory in ." >&2
412e1bf7
FCE
10028 { (exit 1); exit 1; }
10029}
2f1a1aea 10030
562d60b0
DB
10031#
10032# Set up the sed scripts for CONFIG_FILES section.
10033#
10034
10035# No need to generate the scripts if there are no CONFIG_FILES.
10036# This happens for instance when ./config.status config.h
7fbd9d09
FCE
10037if test -n "$CONFIG_FILES"; then
10038
562d60b0
DB
10039_ACEOF
10040
2f78bee0 10041
562d60b0
DB
10042
10043ac_delim='%!_!# '
10044for ac_last_try in false false false false false :; do
10045 cat >conf$$subs.sed <<_ACEOF
10046SHELL!$SHELL$ac_delim
10047PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10048PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10049PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10050PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10051PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10052PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10053exec_prefix!$exec_prefix$ac_delim
10054prefix!$prefix$ac_delim
10055program_transform_name!$program_transform_name$ac_delim
10056bindir!$bindir$ac_delim
10057sbindir!$sbindir$ac_delim
10058libexecdir!$libexecdir$ac_delim
10059datarootdir!$datarootdir$ac_delim
10060datadir!$datadir$ac_delim
10061sysconfdir!$sysconfdir$ac_delim
10062sharedstatedir!$sharedstatedir$ac_delim
10063localstatedir!$localstatedir$ac_delim
10064includedir!$includedir$ac_delim
10065oldincludedir!$oldincludedir$ac_delim
10066docdir!$docdir$ac_delim
10067infodir!$infodir$ac_delim
10068htmldir!$htmldir$ac_delim
10069dvidir!$dvidir$ac_delim
10070pdfdir!$pdfdir$ac_delim
10071psdir!$psdir$ac_delim
10072libdir!$libdir$ac_delim
10073localedir!$localedir$ac_delim
10074mandir!$mandir$ac_delim
10075DEFS!$DEFS$ac_delim
10076ECHO_C!$ECHO_C$ac_delim
10077ECHO_N!$ECHO_N$ac_delim
10078ECHO_T!$ECHO_T$ac_delim
10079LIBS!$LIBS$ac_delim
10080build_alias!$build_alias$ac_delim
10081host_alias!$host_alias$ac_delim
10082target_alias!$target_alias$ac_delim
10083INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10084INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10085INSTALL_DATA!$INSTALL_DATA$ac_delim
10086am__isrc!$am__isrc$ac_delim
10087CYGPATH_W!$CYGPATH_W$ac_delim
10088PACKAGE!$PACKAGE$ac_delim
10089VERSION!$VERSION$ac_delim
10090ACLOCAL!$ACLOCAL$ac_delim
10091AUTOCONF!$AUTOCONF$ac_delim
10092AUTOMAKE!$AUTOMAKE$ac_delim
10093AUTOHEADER!$AUTOHEADER$ac_delim
10094MAKEINFO!$MAKEINFO$ac_delim
10095install_sh!$install_sh$ac_delim
10096STRIP!$STRIP$ac_delim
10097INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10098mkdir_p!$mkdir_p$ac_delim
10099AWK!$AWK$ac_delim
10100SET_MAKE!$SET_MAKE$ac_delim
10101am__leading_dot!$am__leading_dot$ac_delim
10102AMTAR!$AMTAR$ac_delim
10103am__tar!$am__tar$ac_delim
10104am__untar!$am__untar$ac_delim
10105MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
10106MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
10107MAINT!$MAINT$ac_delim
10108MKDIR_P!$MKDIR_P$ac_delim
10109LN_S!$LN_S$ac_delim
10110CC!$CC$ac_delim
10111CFLAGS!$CFLAGS$ac_delim
10112LDFLAGS!$LDFLAGS$ac_delim
10113CPPFLAGS!$CPPFLAGS$ac_delim
10114ac_ct_CC!$ac_ct_CC$ac_delim
10115EXEEXT!$EXEEXT$ac_delim
10116OBJEXT!$OBJEXT$ac_delim
10117DEPDIR!$DEPDIR$ac_delim
10118am__include!$am__include$ac_delim
10119am__quote!$am__quote$ac_delim
10120AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10121AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10122AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10123CCDEPMODE!$CCDEPMODE$ac_delim
10124am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10125am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
10126CXX!$CXX$ac_delim
10127CXXFLAGS!$CXXFLAGS$ac_delim
10128ac_ct_CXX!$ac_ct_CXX$ac_delim
10129CXXDEPMODE!$CXXDEPMODE$ac_delim
10130am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
10131am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
10132CPP!$CPP$ac_delim
10133GREP!$GREP$ac_delim
10134EGREP!$EGREP$ac_delim
10135U!$U$ac_delim
10136ANSI2KNR!$ANSI2KNR$ac_delim
10137RANLIB!$RANLIB$ac_delim
10138PIELDFLAGS!$PIELDFLAGS$ac_delim
10139PIECFLAGS!$PIECFLAGS$ac_delim
10140PIECXXFLAGS!$PIECXXFLAGS$ac_delim
10141sqlite3_LIBS!$sqlite3_LIBS$ac_delim
10142BUILD_TRANSLATOR_TRUE!$BUILD_TRANSLATOR_TRUE$ac_delim
10143_ACEOF
10144
10145 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10146 break
10147 elif $ac_last_try; then
10148 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10149echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10150 { (exit 1); exit 1; }; }
10151 else
10152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10153 fi
10154done
10155
10156ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10157if test -n "$ac_eof"; then
10158 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10159 ac_eof=`expr $ac_eof + 1`
7fbd9d09 10160fi
5e0d2ebf 10161
562d60b0
DB
10162cat >>$CONFIG_STATUS <<_ACEOF
10163cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10164/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10165_ACEOF
10166sed '
10167s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10168s/^/s,@/; s/!/@,|#_!!_#|/
10169:n
10170t n
10171s/'"$ac_delim"'$/,g/; t
10172s/$/\\/; p
10173N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10174' >>$CONFIG_STATUS <conf$$subs.sed
10175rm -f conf$$subs.sed
10176cat >>$CONFIG_STATUS <<_ACEOF
10177CEOF$ac_eof
7fbd9d09
FCE
10178_ACEOF
10179
10180
10181ac_delim='%!_!# '
10182for ac_last_try in false false false false false :; do
562d60b0
DB
10183 cat >conf$$subs.sed <<_ACEOF
10184BUILD_TRANSLATOR_FALSE!$BUILD_TRANSLATOR_FALSE$ac_delim
10185staplog_CPPFLAGS!$staplog_CPPFLAGS$ac_delim
10186BUILD_CRASHMOD_TRUE!$BUILD_CRASHMOD_TRUE$ac_delim
10187BUILD_CRASHMOD_FALSE!$BUILD_CRASHMOD_FALSE$ac_delim
10188have_latex!$have_latex$ac_delim
10189have_dvips!$have_dvips$ac_delim
10190have_ps2pdf!$have_ps2pdf$ac_delim
10191have_latex2html!$have_latex2html$ac_delim
10192BUILD_DOCS_TRUE!$BUILD_DOCS_TRUE$ac_delim
10193BUILD_DOCS_FALSE!$BUILD_DOCS_FALSE$ac_delim
10194have_xmlto!$have_xmlto$ac_delim
10195BUILD_REFDOCS_TRUE!$BUILD_REFDOCS_TRUE$ac_delim
10196BUILD_REFDOCS_FALSE!$BUILD_REFDOCS_FALSE$ac_delim
10197XMLTO_STRINGPARAM_TRUE!$XMLTO_STRINGPARAM_TRUE$ac_delim
10198XMLTO_STRINGPARAM_FALSE!$XMLTO_STRINGPARAM_FALSE$ac_delim
10199BUILD_PDFREFDOCS_TRUE!$BUILD_PDFREFDOCS_TRUE$ac_delim
10200BUILD_PDFREFDOCS_FALSE!$BUILD_PDFREFDOCS_FALSE$ac_delim
10201have_certutil!$have_certutil$ac_delim
10202nss_CFLAGS!$nss_CFLAGS$ac_delim
10203nspr_CFLAGS!$nspr_CFLAGS$ac_delim
10204BUILD_SERVER_TRUE!$BUILD_SERVER_TRUE$ac_delim
10205BUILD_SERVER_FALSE!$BUILD_SERVER_FALSE$ac_delim
10206HAVE_NSS_TRUE!$HAVE_NSS_TRUE$ac_delim
10207HAVE_NSS_FALSE!$HAVE_NSS_FALSE$ac_delim
10208PKG_CONFIG!$PKG_CONFIG$ac_delim
10209gtkmm_CFLAGS!$gtkmm_CFLAGS$ac_delim
10210gtkmm_LIBS!$gtkmm_LIBS$ac_delim
10211libglade_CFLAGS!$libglade_CFLAGS$ac_delim
10212libglade_LIBS!$libglade_LIBS$ac_delim
10213CXXCPP!$CXXCPP$ac_delim
10214BUILD_GRAPHER_TRUE!$BUILD_GRAPHER_TRUE$ac_delim
10215BUILD_GRAPHER_FALSE!$BUILD_GRAPHER_FALSE$ac_delim
10216rpm_LIBS!$rpm_LIBS$ac_delim
10217RPM_CFLAGS!$RPM_CFLAGS$ac_delim
10218RPM_LIBS!$RPM_LIBS$ac_delim
10219BUILD_ELFUTILS_TRUE!$BUILD_ELFUTILS_TRUE$ac_delim
10220BUILD_ELFUTILS_FALSE!$BUILD_ELFUTILS_FALSE$ac_delim
10221elfutils_abs_srcdir!$elfutils_abs_srcdir$ac_delim
10222stap_LIBS!$stap_LIBS$ac_delim
10223DATE!$DATE$ac_delim
562d60b0
DB
10224subdirs!$subdirs$ac_delim
10225LIBOBJS!$LIBOBJS$ac_delim
10226LTLIBOBJS!$LTLIBOBJS$ac_delim
10227_ACEOF
10228
5d1c958c 10229 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 43; then
7fbd9d09
FCE
10230 break
10231 elif $ac_last_try; then
562d60b0
DB
10232 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10233echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
412e1bf7 10234 { (exit 1); exit 1; }; }
7fbd9d09
FCE
10235 else
10236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10237 fi
10238done
10239
562d60b0
DB
10240ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10241if test -n "$ac_eof"; then
10242 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10243 ac_eof=`expr $ac_eof + 1`
10244fi
7fbd9d09 10245
562d60b0
DB
10246cat >>$CONFIG_STATUS <<_ACEOF
10247cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10248/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7fbd9d09 10249_ACEOF
562d60b0
DB
10250sed '
10251s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10252s/^/s,@/; s/!/@,|#_!!_#|/
10253:n
10254t n
10255s/'"$ac_delim"'$/,g/; t
10256s/$/\\/; p
10257N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10258' >>$CONFIG_STATUS <conf$$subs.sed
10259rm -f conf$$subs.sed
10260cat >>$CONFIG_STATUS <<_ACEOF
10261:end
10262s/|#_!!_#|//g
10263CEOF$ac_eof
7fbd9d09
FCE
10264_ACEOF
10265
562d60b0 10266
7fbd9d09
FCE
10267# VPATH may cause trouble with some makes, so we remove $(srcdir),
10268# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10269# trailing colons and then remove the whole line if VPATH becomes empty
10270# (actually we leave an empty line to preserve line numbers).
10271if test "x$srcdir" = x.; then
10272 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10273s/:*\$(srcdir):*/:/
10274s/:*\${srcdir}:*/:/
10275s/:*@srcdir@:*/:/
10276s/^\([^=]*=[ ]*\):*/\1/
10277s/:*$//
10278s/^[^=]*=[ ]*$//
10279}'
10280fi
10281
562d60b0 10282cat >>$CONFIG_STATUS <<\_ACEOF
7fbd9d09
FCE
10283fi # test -n "$CONFIG_FILES"
10284
27aba29a 10285
562d60b0 10286for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
7fbd9d09
FCE
10287do
10288 case $ac_tag in
10289 :[FHLC]) ac_mode=$ac_tag; continue;;
2f1a1aea 10290 esac
7fbd9d09
FCE
10291 case $ac_mode$ac_tag in
10292 :[FHL]*:*);;
562d60b0
DB
10293 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10294echo "$as_me: error: Invalid tag $ac_tag." >&2;}
412e1bf7 10295 { (exit 1); exit 1; }; };;
7fbd9d09
FCE
10296 :[FH]-) ac_tag=-:-;;
10297 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10298 esac
10299 ac_save_IFS=$IFS
10300 IFS=:
10301 set x $ac_tag
10302 IFS=$ac_save_IFS
10303 shift
10304 ac_file=$1
10305 shift
2f1a1aea 10306
7fbd9d09
FCE
10307 case $ac_mode in
10308 :L) ac_source=$1;;
10309 :[FH])
10310 ac_file_inputs=
10311 for ac_f
10312 do
10313 case $ac_f in
10314 -) ac_f="$tmp/stdin";;
10315 *) # Look for the file first in the build tree, then in the source tree
10316 # (if the path is not absolute). The absolute path cannot be DOS-style,
10317 # because $ac_f cannot contain `:'.
10318 test -f "$ac_f" ||
10319 case $ac_f in
10320 [\\/$]*) false;;
10321 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10322 esac ||
562d60b0
DB
10323 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10324echo "$as_me: error: cannot find input file: $ac_f" >&2;}
412e1bf7 10325 { (exit 1); exit 1; }; };;
7fbd9d09 10326 esac
562d60b0 10327 ac_file_inputs="$ac_file_inputs $ac_f"
7fbd9d09
FCE
10328 done
10329
10330 # Let's still pretend it is `configure' which instantiates (i.e., don't
10331 # use $as_me), people would be surprised to read:
10332 # /* config.h. Generated by config.status. */
562d60b0
DB
10333 configure_input="Generated from "`IFS=:
10334 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7fbd9d09
FCE
10335 if test x"$ac_file" != x-; then
10336 configure_input="$ac_file. $configure_input"
562d60b0
DB
10337 { echo "$as_me:$LINENO: creating $ac_file" >&5
10338echo "$as_me: creating $ac_file" >&6;}
7fbd9d09
FCE
10339 fi
10340
10341 case $ac_tag in
562d60b0 10342 *:-:* | *:-) cat >"$tmp/stdin";;
7fbd9d09
FCE
10343 esac
10344 ;;
10345 esac
10346
10347 ac_dir=`$as_dirname -- "$ac_file" ||
2f1a1aea
FCE
10348$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10349 X"$ac_file" : 'X\(//\)[^/]' \| \
10350 X"$ac_file" : 'X\(//\)$' \| \
7fbd9d09 10351 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
562d60b0 10352echo X"$ac_file" |
7fbd9d09
FCE
10353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10354 s//\1/
10355 q
10356 }
10357 /^X\(\/\/\)[^/].*/{
10358 s//\1/
10359 q
10360 }
10361 /^X\(\/\/\)$/{
10362 s//\1/
10363 q
10364 }
10365 /^X\(\/\).*/{
10366 s//\1/
10367 q
10368 }
10369 s/.*/./; q'`
412e1bf7
FCE
10370 { as_dir="$ac_dir"
10371 case $as_dir in #(
10372 -*) as_dir=./$as_dir;;
10373 esac
10374 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10375 as_dirs=
10376 while :; do
10377 case $as_dir in #(
562d60b0 10378 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
412e1bf7
FCE
10379 *) as_qdir=$as_dir;;
10380 esac
10381 as_dirs="'$as_qdir' $as_dirs"
10382 as_dir=`$as_dirname -- "$as_dir" ||
10383$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10384 X"$as_dir" : 'X\(//\)[^/]' \| \
10385 X"$as_dir" : 'X\(//\)$' \| \
10386 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
562d60b0 10387echo X"$as_dir" |
412e1bf7
FCE
10388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10389 s//\1/
10390 q
10391 }
10392 /^X\(\/\/\)[^/].*/{
10393 s//\1/
10394 q
10395 }
10396 /^X\(\/\/\)$/{
10397 s//\1/
10398 q
10399 }
10400 /^X\(\/\).*/{
10401 s//\1/
10402 q
10403 }
10404 s/.*/./; q'`
10405 test -d "$as_dir" && break
10406 done
10407 test -z "$as_dirs" || eval "mkdir $as_dirs"
562d60b0
DB
10408 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10409echo "$as_me: error: cannot create directory $as_dir" >&2;}
412e1bf7 10410 { (exit 1); exit 1; }; }; }
2f1a1aea
FCE
10411 ac_builddir=.
10412
7fbd9d09
FCE
10413case "$ac_dir" in
10414.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10415*)
562d60b0 10416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7fbd9d09 10417 # A ".." for each directory in $ac_dir_suffix.
562d60b0 10418 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7fbd9d09
FCE
10419 case $ac_top_builddir_sub in
10420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10422 esac ;;
10423esac
10424ac_abs_top_builddir=$ac_pwd
10425ac_abs_builddir=$ac_pwd$ac_dir_suffix
10426# for backward compatibility:
10427ac_top_builddir=$ac_top_build_prefix
2f1a1aea
FCE
10428
10429case $srcdir in
7fbd9d09 10430 .) # We are building in place.
2f1a1aea 10431 ac_srcdir=.
7fbd9d09
FCE
10432 ac_top_srcdir=$ac_top_builddir_sub
10433 ac_abs_top_srcdir=$ac_pwd ;;
10434 [\\/]* | ?:[\\/]* ) # Absolute name.
2f1a1aea 10435 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
10436 ac_top_srcdir=$srcdir
10437 ac_abs_top_srcdir=$srcdir ;;
10438 *) # Relative name.
10439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10440 ac_top_srcdir=$ac_top_build_prefix$srcdir
10441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2f1a1aea 10442esac
7fbd9d09 10443ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2f1a1aea 10444
2f1a1aea 10445
7fbd9d09
FCE
10446 case $ac_mode in
10447 :F)
10448 #
10449 # CONFIG_FILE
10450 #
2f1a1aea
FCE
10451
10452 case $INSTALL in
10453 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7fbd9d09
FCE
10454 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10455 esac
10456 ac_MKDIR_P=$MKDIR_P
10457 case $MKDIR_P in
10458 [\\/$]* | ?:[\\/]* ) ;;
10459 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5e0d2ebf 10460 esac
7fbd9d09 10461_ACEOF
5e0d2ebf 10462
562d60b0 10463cat >>$CONFIG_STATUS <<\_ACEOF
7fbd9d09
FCE
10464# If the template does not know about datarootdir, expand it.
10465# FIXME: This hack should be removed a few years after 2.60.
10466ac_datarootdir_hack=; ac_datarootdir_seen=
412e1bf7 10467
562d60b0 10468case `sed -n '/datarootdir/ {
7fbd9d09
FCE
10469 p
10470 q
10471}
10472/@datadir@/p
10473/@docdir@/p
10474/@infodir@/p
10475/@localedir@/p
412e1bf7 10476/@mandir@/p
562d60b0 10477' $ac_file_inputs` in
7fbd9d09
FCE
10478*datarootdir*) ac_datarootdir_seen=yes;;
10479*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
562d60b0
DB
10480 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10481echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7fbd9d09 10482_ACEOF
562d60b0 10483cat >>$CONFIG_STATUS <<_ACEOF
7fbd9d09
FCE
10484 ac_datarootdir_hack='
10485 s&@datadir@&$datadir&g
10486 s&@docdir@&$docdir&g
10487 s&@infodir@&$infodir&g
10488 s&@localedir@&$localedir&g
10489 s&@mandir@&$mandir&g
412e1bf7 10490 s&\\\${datarootdir}&$datarootdir&g' ;;
7fbd9d09 10491esac
70d28673 10492_ACEOF
7fbd9d09
FCE
10493
10494# Neutralize VPATH when `$srcdir' = `.'.
10495# Shell code in configure.ac might set extrasub.
10496# FIXME: do we really want to maintain this feature?
562d60b0
DB
10497cat >>$CONFIG_STATUS <<_ACEOF
10498 sed "$ac_vpsub
2f1a1aea
FCE
10499$extrasub
10500_ACEOF
562d60b0 10501cat >>$CONFIG_STATUS <<\_ACEOF
2f1a1aea
FCE
10502:t
10503/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
562d60b0 10504s&@configure_input@&$configure_input&;t t
7fbd9d09
FCE
10505s&@top_builddir@&$ac_top_builddir_sub&;t t
10506s&@srcdir@&$ac_srcdir&;t t
10507s&@abs_srcdir@&$ac_abs_srcdir&;t t
10508s&@top_srcdir@&$ac_top_srcdir&;t t
10509s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10510s&@builddir@&$ac_builddir&;t t
10511s&@abs_builddir@&$ac_abs_builddir&;t t
10512s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10513s&@INSTALL@&$ac_INSTALL&;t t
10514s&@MKDIR_P@&$ac_MKDIR_P&;t t
10515$ac_datarootdir_hack
562d60b0 10516" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7fbd9d09
FCE
10517
10518test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10519 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10520 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
562d60b0 10521 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7fbd9d09 10522which seems to be undefined. Please make sure it is defined." >&5
562d60b0 10523echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7fbd9d09
FCE
10524which seems to be undefined. Please make sure it is defined." >&2;}
10525
10526 rm -f "$tmp/stdin"
818ba2bc 10527 case $ac_file in
562d60b0
DB
10528 -) cat "$tmp/out"; rm -f "$tmp/out";;
10529 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10530 esac
7fbd9d09
FCE
10531 ;;
10532 :H)
10533 #
10534 # CONFIG_HEADER
10535 #
562d60b0
DB
10536_ACEOF
10537
10538# Transform confdefs.h into a sed script `conftest.defines', that
10539# substitutes the proper values into config.h.in to produce config.h.
10540rm -f conftest.defines conftest.tail
10541# First, append a space to every undef/define line, to ease matching.
10542echo 's/$/ /' >conftest.defines
10543# Then, protect against being on the right side of a sed subst, or in
10544# an unquoted here document, in config.status. If some macros were
10545# called several times there might be several #defines for the same
10546# symbol, which is useless. But do not sort them, since the last
10547# AC_DEFINE must be honored.
10548ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10549# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10550# NAME is the cpp macro being defined, VALUE is the value it is being given.
10551# PARAMS is the parameter list in the macro definition--in most cases, it's
10552# just an empty string.
10553ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10554ac_dB='\\)[ (].*,\\1define\\2'
10555ac_dC=' '
10556ac_dD=' ,'
10557
10558uniq confdefs.h |
10559 sed -n '
10560 t rset
10561 :rset
10562 s/^[ ]*#[ ]*define[ ][ ]*//
10563 t ok
10564 d
10565 :ok
10566 s/[\\&,]/\\&/g
10567 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10568 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10569 ' >>conftest.defines
10570
10571# Remove the space that was appended to ease matching.
10572# Then replace #undef with comments. This is necessary, for
10573# example, in the case of _POSIX_SOURCE, which is predefined and required
10574# on some systems where configure will not decide to define it.
10575# (The regexp can be short, since the line contains either #define or #undef.)
10576echo 's/ $//
10577s,^[ #]*u.*,/* & */,' >>conftest.defines
10578
10579# Break up conftest.defines:
10580ac_max_sed_lines=50
10581
10582# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10583# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10584# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10585# et cetera.
10586ac_in='$ac_file_inputs'
10587ac_out='"$tmp/out1"'
10588ac_nxt='"$tmp/out2"'
10589
10590while :
10591do
10592 # Write a here document:
10593 cat >>$CONFIG_STATUS <<_ACEOF
10594 # First, check the format of the line:
10595 cat >"\$tmp/defines.sed" <<\\CEOF
10596/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10597/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10598b
10599:def
10600_ACEOF
10601 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10602 echo 'CEOF
10603 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10604 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10605 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10606 grep . conftest.tail >/dev/null || break
10607 rm -f conftest.defines
10608 mv conftest.tail conftest.defines
10609done
10610rm -f conftest.defines conftest.tail
10611
10612echo "ac_result=$ac_in" >>$CONFIG_STATUS
10613cat >>$CONFIG_STATUS <<\_ACEOF
818ba2bc 10614 if test x"$ac_file" != x-; then
562d60b0
DB
10615 echo "/* $configure_input */" >"$tmp/config.h"
10616 cat "$ac_result" >>"$tmp/config.h"
10617 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10618 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10619echo "$as_me: $ac_file is unchanged" >&6;}
2f1a1aea 10620 else
562d60b0
DB
10621 rm -f $ac_file
10622 mv "$tmp/config.h" $ac_file
2f1a1aea
FCE
10623 fi
10624 else
562d60b0
DB
10625 echo "/* $configure_input */"
10626 cat "$ac_result"
2f1a1aea 10627 fi
562d60b0
DB
10628 rm -f "$tmp/out12"
10629# Compute $ac_file's index in $config_headers.
2f1a1aea
FCE
10630_am_stamp_count=1
10631for _am_header in $config_headers :; do
10632 case $_am_header in
562d60b0 10633 $ac_file | $ac_file:* )
2f1a1aea
FCE
10634 break ;;
10635 * )
10636 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10637 esac
10638done
562d60b0
DB
10639echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
10640$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10641 X$ac_file : 'X\(//\)[^/]' \| \
10642 X$ac_file : 'X\(//\)$' \| \
10643 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
10644echo X$ac_file |
7fbd9d09
FCE
10645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10646 s//\1/
10647 q
10648 }
10649 /^X\(\/\/\)[^/].*/{
10650 s//\1/
10651 q
10652 }
10653 /^X\(\/\/\)$/{
10654 s//\1/
10655 q
10656 }
10657 /^X\(\/\).*/{
10658 s//\1/
10659 q
10660 }
10661 s/.*/./; q'`/stamp-h$_am_stamp_count
10662 ;;
818ba2bc 10663
562d60b0
DB
10664 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
10665echo "$as_me: executing $ac_file commands" >&6;}
7fbd9d09
FCE
10666 ;;
10667 esac
818ba2bc
MW
10668
10669
7fbd9d09 10670 case $ac_file$ac_mode in
562d60b0
DB
10671 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10672 # Strip MF so we end up with the name of the file.
10673 mf=`echo "$mf" | sed -e 's/:.*$//'`
10674 # Check whether this is an Automake generated Makefile or not.
10675 # We used to match only the files named `Makefile.in', but
10676 # some people rename them; so instead we look at the file content.
10677 # Grep'ing the first line is not enough: some people post-process
10678 # each Makefile.in and add a new line on top of each file to say so.
10679 # Grep'ing the whole file is not good either: AIX grep has a line
10680 # limit of 2048, but all sed's we know have understand at least 4000.
10681 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
10682 dirpart=`$as_dirname -- "$mf" ||
2f1a1aea
FCE
10683$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10684 X"$mf" : 'X\(//\)[^/]' \| \
10685 X"$mf" : 'X\(//\)$' \| \
7fbd9d09 10686 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
562d60b0 10687echo X"$mf" |
7fbd9d09
FCE
10688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10689 s//\1/
10690 q
10691 }
10692 /^X\(\/\/\)[^/].*/{
10693 s//\1/
10694 q
10695 }
10696 /^X\(\/\/\)$/{
10697 s//\1/
10698 q
10699 }
10700 /^X\(\/\).*/{
10701 s//\1/
10702 q
10703 }
10704 s/.*/./; q'`
562d60b0
DB
10705 else
10706 continue
10707 fi
10708 # Extract the definition of DEPDIR, am__include, and am__quote
10709 # from the Makefile without running `make'.
10710 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10711 test -z "$DEPDIR" && continue
10712 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10713 test -z "am__include" && continue
10714 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10715 # When using ansi2knr, U may be empty or an underscore; expand it
10716 U=`sed -n 's/^U = //p' < "$mf"`
10717 # Find all dependency output files, they are included files with
10718 # $(DEPDIR) in their names. We invoke sed twice because it is the
10719 # simplest approach to changing $(DEPDIR) to its actual value in the
10720 # expansion.
10721 for file in `sed -n "
10722 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10723 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10724 # Make sure the directory exists.
10725 test -f "$dirpart/$file" && continue
10726 fdir=`$as_dirname -- "$file" ||
2f1a1aea
FCE
10727$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10728 X"$file" : 'X\(//\)[^/]' \| \
10729 X"$file" : 'X\(//\)$' \| \
7fbd9d09 10730 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
562d60b0 10731echo X"$file" |
7fbd9d09
FCE
10732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10733 s//\1/
10734 q
10735 }
10736 /^X\(\/\/\)[^/].*/{
10737 s//\1/
10738 q
10739 }
10740 /^X\(\/\/\)$/{
10741 s//\1/
10742 q
10743 }
10744 /^X\(\/\).*/{
10745 s//\1/
10746 q
10747 }
10748 s/.*/./; q'`
562d60b0 10749 { as_dir=$dirpart/$fdir
412e1bf7
FCE
10750 case $as_dir in #(
10751 -*) as_dir=./$as_dir;;
10752 esac
10753 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10754 as_dirs=
10755 while :; do
10756 case $as_dir in #(
562d60b0 10757 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
412e1bf7
FCE
10758 *) as_qdir=$as_dir;;
10759 esac
10760 as_dirs="'$as_qdir' $as_dirs"
10761 as_dir=`$as_dirname -- "$as_dir" ||
10762$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10763 X"$as_dir" : 'X\(//\)[^/]' \| \
10764 X"$as_dir" : 'X\(//\)$' \| \
10765 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
562d60b0 10766echo X"$as_dir" |
412e1bf7
FCE
10767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10768 s//\1/
10769 q
10770 }
10771 /^X\(\/\/\)[^/].*/{
10772 s//\1/
10773 q
10774 }
10775 /^X\(\/\/\)$/{
10776 s//\1/
10777 q
10778 }
10779 /^X\(\/\).*/{
10780 s//\1/
10781 q
10782 }
10783 s/.*/./; q'`
10784 test -d "$as_dir" && break
10785 done
10786 test -z "$as_dirs" || eval "mkdir $as_dirs"
562d60b0
DB
10787 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10788echo "$as_me: error: cannot create directory $as_dir" >&2;}
412e1bf7 10789 { (exit 1); exit 1; }; }; }
562d60b0
DB
10790 # echo "creating $dirpart/$file"
10791 echo '# dummy' > "$dirpart/$file"
2f1a1aea 10792 done
562d60b0 10793done
2f1a1aea 10794 ;;
7fbd9d09 10795 "run-stap":F) chmod +x run-stap ;;
65ffc3f3 10796 "run-staprun":F) chmod +x run-staprun ;;
e4aaabda 10797 "dtrace":F) chmod +x dtrace ;;
7fbd9d09 10798
2f1a1aea 10799 esac
7fbd9d09 10800done # for ac_tag
2f1a1aea 10801
2f1a1aea 10802
412e1bf7 10803{ (exit 0); exit 0; }
2f1a1aea 10804_ACEOF
412e1bf7 10805chmod +x $CONFIG_STATUS
2f1a1aea
FCE
10806ac_clean_files=$ac_clean_files_save
10807
10808
10809# configure is writing to config.log, and then calls config.status.
10810# config.status does its own redirection, appending to config.log.
10811# Unfortunately, on DOS this fails, as config.log is still kept open
10812# by configure, so config.status won't be able to write to it; its
10813# output is simply discarded. So we exec the FD to /dev/null,
10814# effectively closing config.log, so it can be properly (re)opened and
10815# appended to by config.status. When coming back to configure, we
10816# need to make the FD available again.
10817if test "$no_create" != yes; then
10818 ac_cs_success=:
10819 ac_config_status_args=
10820 test "$silent" = yes &&
10821 ac_config_status_args="$ac_config_status_args --quiet"
10822 exec 5>/dev/null
10823 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10824 exec 5>>config.log
10825 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10826 # would make configure fail if this is the last instruction.
412e1bf7 10827 $ac_cs_success || { (exit 1); exit 1; }
2f1a1aea
FCE
10828fi
10829
5ba96b90
FCE
10830#
10831# CONFIG_SUBDIRS section.
10832#
10833if test "$no_recursion" != yes; then
10834
562d60b0 10835 # Remove --cache-file and --srcdir arguments so they do not pile up.
5ba96b90
FCE
10836 ac_sub_configure_args=
10837 ac_prev=
7fbd9d09
FCE
10838 eval "set x $ac_configure_args"
10839 shift
10840 for ac_arg
10841 do
5ba96b90
FCE
10842 if test -n "$ac_prev"; then
10843 ac_prev=
10844 continue
10845 fi
10846 case $ac_arg in
10847 -cache-file | --cache-file | --cache-fil | --cache-fi \
10848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10849 ac_prev=cache_file ;;
10850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10852 | --c=*)
10853 ;;
10854 --config-cache | -C)
10855 ;;
10856 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10857 ac_prev=srcdir ;;
10858 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10859 ;;
10860 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10861 ac_prev=prefix ;;
10862 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10863 ;;
7fbd9d09
FCE
10864 *)
10865 case $ac_arg in
562d60b0 10866 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fbd9d09 10867 esac
412e1bf7 10868 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
5ba96b90
FCE
10869 esac
10870 done
10871
10872 # Always prepend --prefix to ensure using the same prefix
10873 # in subdir configurations.
7fbd9d09
FCE
10874 ac_arg="--prefix=$prefix"
10875 case $ac_arg in
562d60b0 10876 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fbd9d09
FCE
10877 esac
10878 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10879
10880 # Pass --silent
10881 if test "$silent" = yes; then
10882 ac_sub_configure_args="--silent $ac_sub_configure_args"
10883 fi
daae650d 10884
5ba96b90
FCE
10885 ac_popdir=`pwd`
10886 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10887
10888 # Do not complain, so a configure script can configure whichever
10889 # parts of a large source tree are present.
7fbd9d09
FCE
10890 test -d "$srcdir/$ac_dir" || continue
10891
10892 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
562d60b0
DB
10893 echo "$as_me:$LINENO: $ac_msg" >&5
10894 echo "$ac_msg" >&6
412e1bf7
FCE
10895 { as_dir="$ac_dir"
10896 case $as_dir in #(
10897 -*) as_dir=./$as_dir;;
10898 esac
10899 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10900 as_dirs=
10901 while :; do
10902 case $as_dir in #(
562d60b0 10903 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
412e1bf7
FCE
10904 *) as_qdir=$as_dir;;
10905 esac
10906 as_dirs="'$as_qdir' $as_dirs"
10907 as_dir=`$as_dirname -- "$as_dir" ||
10908$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10909 X"$as_dir" : 'X\(//\)[^/]' \| \
10910 X"$as_dir" : 'X\(//\)$' \| \
10911 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
562d60b0 10912echo X"$as_dir" |
412e1bf7
FCE
10913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10914 s//\1/
10915 q
10916 }
10917 /^X\(\/\/\)[^/].*/{
10918 s//\1/
10919 q
10920 }
10921 /^X\(\/\/\)$/{
10922 s//\1/
10923 q
10924 }
10925 /^X\(\/\).*/{
10926 s//\1/
10927 q
10928 }
10929 s/.*/./; q'`
10930 test -d "$as_dir" && break
10931 done
10932 test -z "$as_dirs" || eval "mkdir $as_dirs"
562d60b0
DB
10933 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10934echo "$as_me: error: cannot create directory $as_dir" >&2;}
412e1bf7 10935 { (exit 1); exit 1; }; }; }
5ba96b90
FCE
10936 ac_builddir=.
10937
7fbd9d09
FCE
10938case "$ac_dir" in
10939.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10940*)
562d60b0 10941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7fbd9d09 10942 # A ".." for each directory in $ac_dir_suffix.
562d60b0 10943 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7fbd9d09
FCE
10944 case $ac_top_builddir_sub in
10945 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10946 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10947 esac ;;
10948esac
10949ac_abs_top_builddir=$ac_pwd
10950ac_abs_builddir=$ac_pwd$ac_dir_suffix
10951# for backward compatibility:
10952ac_top_builddir=$ac_top_build_prefix
5ba96b90
FCE
10953
10954case $srcdir in
7fbd9d09 10955 .) # We are building in place.
5ba96b90 10956 ac_srcdir=.
7fbd9d09
FCE
10957 ac_top_srcdir=$ac_top_builddir_sub
10958 ac_abs_top_srcdir=$ac_pwd ;;
10959 [\\/]* | ?:[\\/]* ) # Absolute name.
5ba96b90 10960 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
10961 ac_top_srcdir=$srcdir
10962 ac_abs_top_srcdir=$srcdir ;;
10963 *) # Relative name.
10964 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10965 ac_top_srcdir=$ac_top_build_prefix$srcdir
10966 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5ba96b90 10967esac
7fbd9d09 10968ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5ba96b90
FCE
10969
10970
7fbd9d09 10971 cd "$ac_dir"
5ba96b90
FCE
10972
10973 # Check for guested configure; otherwise get Cygnus style configure.
7fbd9d09
FCE
10974 if test -f "$ac_srcdir/configure.gnu"; then
10975 ac_sub_configure=$ac_srcdir/configure.gnu
10976 elif test -f "$ac_srcdir/configure"; then
10977 ac_sub_configure=$ac_srcdir/configure
10978 elif test -f "$ac_srcdir/configure.in"; then
10979 # This should be Cygnus configure.
10980 ac_sub_configure=$ac_aux_dir/configure
5ba96b90 10981 else
562d60b0
DB
10982 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10983echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
5ba96b90
FCE
10984 ac_sub_configure=
10985 fi
10986
10987 # The recursion is here.
10988 if test -n "$ac_sub_configure"; then
10989 # Make the cache file name correct relative to the subdirectory.
10990 case $cache_file in
10991 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7fbd9d09
FCE
10992 *) # Relative name.
10993 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5ba96b90
FCE
10994 esac
10995
562d60b0
DB
10996 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10997echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5ba96b90 10998 # The eval makes quoting arguments work.
7fbd9d09
FCE
10999 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11000 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
562d60b0
DB
11001 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
11002echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
412e1bf7 11003 { (exit 1); exit 1; }; }
5ba96b90
FCE
11004 fi
11005
7fbd9d09 11006 cd "$ac_popdir"
5ba96b90
FCE
11007 done
11008fi
11009
4d9087fc 11010
af29024d 11011if test "${prefix}" = "/usr/local"; then
562d60b0
DB
11012 { echo "$as_me:$LINENO: " >&5
11013echo "$as_me: " >&6;}
11014 { echo "$as_me:$LINENO: For a private or temporary build of systemtap, we recommend" >&5
11015echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
11016 { echo "$as_me:$LINENO: configuring with a prefix. For example, try" >&5
11017echo "$as_me: configuring with a prefix. For example, try" >&6;}
11018 { echo "$as_me:$LINENO: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
11019echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
11020 { echo "$as_me:$LINENO: Running systemtap uninstalled, entirely out of the build tree," >&5
11021echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
11022 { echo "$as_me:$LINENO: is not supported." >&5
11023echo "$as_me: is not supported." >&6;}
af29024d 11024fi
This page took 1.782499 seconds and 5 git commands to generate.