]> sourceware.org Git - systemtap.git/blame - configure
tracepoints: Work with the tracequery's .o rather than .ko
[systemtap.git] / configure
CommitLineData
2f1a1aea
FCE
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
c3de29bd 3# Generated by GNU Autoconf 2.68 for systemtap 1.7.
2f1a1aea 4#
306dd4f8 5# Report bugs to <systemtap@sourceware.org>.
2f1a1aea 6#
1ef0423a 7#
7fbd9d09 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5d4aa1f5
FCE
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
1ef0423a
FCE
11#
12#
2f1a1aea
FCE
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
1ef0423a
FCE
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
2f1a1aea 18
7fbd9d09
FCE
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
1ef0423a 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2f1a1aea
FCE
22 emulate sh
23 NULLCMD=:
0710d850 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2f1a1aea
FCE
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
7fbd9d09
FCE
27 setopt NO_GLOB_SUBST
28else
1ef0423a
FCE
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
7fbd9d09 34esac
7fbd9d09
FCE
35fi
36
37
0710d850
DS
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1ef0423a
FCE
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
0710d850
DS
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
31f9baea 58 else
0710d850
DS
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
1ef0423a 62 case $arg in #(
0710d850
DS
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
31f9baea 71 fi
0710d850
DS
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
2f1a1aea 83fi
2f1a1aea 84
2f1a1aea 85
7fbd9d09
FCE
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
7fbd9d09
FCE
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
c3de29bd 94as_myself=
1ef0423a 95case $0 in #((
7fbd9d09
FCE
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
1ef0423a
FCE
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
7fbd9d09
FCE
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
0710d850 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1ef0423a 115 exit 1
7fbd9d09
FCE
116fi
117
1ef0423a
FCE
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7fbd9d09 125done
2f1a1aea
FCE
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
0710d850
DS
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
2f1a1aea 135
1ef0423a
FCE
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
c3de29bd 220 # Preserve -v and -x to the replacement shell.
1ef0423a
FCE
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
c3de29bd
LB
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
1ef0423a
FCE
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
fcca127c
FCE
242$0: systemtap@sourceware.org about your system, including
243$0: any error possibly output before this message. Then
244$0: install a modern shell, or manually run the script
245$0: under such a shell if you do have one."
1ef0423a
FCE
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
5d4aa1f5 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1ef0423a
FCE
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
5d4aa1f5
FCE
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
1ef0423a
FCE
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5d4aa1f5 374# script with STATUS, using 1 if that was 0.
1ef0423a
FCE
375as_fn_error ()
376{
5d4aa1f5
FCE
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1ef0423a 381 fi
5d4aa1f5 382 $as_echo "$as_me: error: $2" >&2
1ef0423a
FCE
383 as_fn_exit $as_status
384} # as_fn_error
385
412e1bf7
FCE
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
1ef0423a
FCE
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
412e1bf7 404
412e1bf7
FCE
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
0710d850 409$as_echo X/"$0" |
412e1bf7
FCE
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
1ef0423a
FCE
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
412e1bf7 430
5e0d2ebf 431
1ef0423a
FCE
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
412e1bf7 454
1ef0423a
FCE
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
412e1bf7 461}
5e0d2ebf 462
1ef0423a
FCE
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472*)
473 ECHO_N='-n';;
474esac
5e5aee9f 475
1ef0423a
FCE
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
412e1bf7 482fi
1ef0423a
FCE
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
ec1a2239 497else
1ef0423a 498 as_ln_s='cp -p'
e6364d79 499fi
1ef0423a
FCE
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
e6364d79 502
1ef0423a
FCE
503if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
5e5aee9f
FCE
508fi
509
1ef0423a
FCE
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
412e1bf7 512else
1ef0423a
FCE
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
412e1bf7 530fi
1ef0423a 531as_executable_p=$as_test_x
412e1bf7 532
1ef0423a
FCE
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
412e1bf7 535
1ef0423a
FCE
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7fbd9d09
FCE
538
539
1ef0423a
FCE
540test -n "$DJDIR" || exec 7<&0 </dev/null
541exec 6>&1
5e5aee9f
FCE
542
543# Name of the host.
5d4aa1f5 544# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
2f1a1aea
FCE
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
2f1a1aea
FCE
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
7fbd9d09 552ac_clean_files=
2f1a1aea 553ac_config_libobj_dir=.
7fbd9d09 554LIBOBJS=
2f1a1aea
FCE
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
2f1a1aea 559
2f1a1aea
FCE
560# Identity of this package.
561PACKAGE_NAME='systemtap'
562PACKAGE_TARNAME='systemtap'
94d406fc
SC
563PACKAGE_VERSION='1.7'
564PACKAGE_STRING='systemtap 1.7'
306dd4f8 565PACKAGE_BUGREPORT='systemtap@sourceware.org'
1ef0423a 566PACKAGE_URL=''
2f1a1aea
FCE
567
568# Factoring default headers for most tests.
569ac_includes_default="\
570#include <stdio.h>
7fbd9d09 571#ifdef HAVE_SYS_TYPES_H
2f1a1aea
FCE
572# include <sys/types.h>
573#endif
7fbd9d09 574#ifdef HAVE_SYS_STAT_H
2f1a1aea
FCE
575# include <sys/stat.h>
576#endif
7fbd9d09 577#ifdef STDC_HEADERS
2f1a1aea
FCE
578# include <stdlib.h>
579# include <stddef.h>
580#else
7fbd9d09 581# ifdef HAVE_STDLIB_H
2f1a1aea
FCE
582# include <stdlib.h>
583# endif
584#endif
7fbd9d09
FCE
585#ifdef HAVE_STRING_H
586# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
2f1a1aea
FCE
587# include <memory.h>
588# endif
589# include <string.h>
590#endif
7fbd9d09 591#ifdef HAVE_STRINGS_H
2f1a1aea
FCE
592# include <strings.h>
593#endif
7fbd9d09 594#ifdef HAVE_INTTYPES_H
2f1a1aea 595# include <inttypes.h>
2f1a1aea 596#endif
7fbd9d09
FCE
597#ifdef HAVE_STDINT_H
598# include <stdint.h>
599#endif
600#ifdef HAVE_UNISTD_H
2f1a1aea
FCE
601# include <unistd.h>
602#endif"
603
8f223b3e 604gt_needs=
0710d850
DS
605enable_option_checking=no
606ac_subst_vars='am__EXEEXT_FALSE
607am__EXEEXT_TRUE
608LTLIBOBJS
609LIBOBJS
610subdirs
62c8a962 611STAP_PREFIX
8f223b3e 612LOCALEDIR
62c8a962 613ENABLE_NLS
f9794ee4 614support_section_question
0710d850
DS
615DATE
616stap_LIBS
617elfutils_abs_srcdir
618BUILD_ELFUTILS_FALSE
619BUILD_ELFUTILS_TRUE
0710d850
DS
620BUILD_GRAPHER_FALSE
621BUILD_GRAPHER_TRUE
622CXXCPP
623libglade_LIBS
624libglade_CFLAGS
625gtkmm_LIBS
626gtkmm_CFLAGS
2dce8c42
DB
627HAVE_AVAHI_FALSE
628HAVE_AVAHI_TRUE
28f121c3
DEP
629avahi_LIBS
630avahi_CFLAGS
0710d850
DS
631BUILD_SERVER_FALSE
632BUILD_SERVER_TRUE
a0e2728a
DB
633HAVE_NSS_FALSE
634HAVE_NSS_TRUE
28f121c3 635nss_LIBS
0710d850 636nss_CFLAGS
28f121c3
DEP
637PKG_CONFIG_LIBDIR
638PKG_CONFIG_PATH
639PKG_CONFIG
0710d850
DS
640BUILD_PDFREFDOCS_FALSE
641BUILD_PDFREFDOCS_TRUE
642XMLTO_STRINGPARAM_FALSE
643XMLTO_STRINGPARAM_TRUE
644BUILD_REFDOCS_FALSE
645BUILD_REFDOCS_TRUE
646have_xmlto
53ade4da
MW
647PUBLICAN_BRAND
648BUILD_PUBLICAN_FALSE
649BUILD_PUBLICAN_TRUE
650have_publican
0710d850
DS
651BUILD_DOCS_FALSE
652BUILD_DOCS_TRUE
653have_latex2html
654have_ps2pdf
655have_dvips
656have_latex
657BUILD_CRASHMOD_FALSE
658BUILD_CRASHMOD_TRUE
659staplog_CPPFLAGS
660BUILD_TRANSLATOR_FALSE
661BUILD_TRANSLATOR_TRUE
662sqlite3_LIBS
663PIECXXFLAGS
664PIECFLAGS
665PIELDFLAGS
8f223b3e
FCE
666POSUB
667LTLIBINTL
668LIBINTL
669INTLLIBS
670LTLIBICONV
671LIBICONV
8f223b3e
FCE
672host_os
673host_vendor
674host_cpu
675host
676build_os
677build_vendor
678build_cpu
679build
680XGETTEXT_EXTRA_OPTIONS
681MSGMERGE
682XGETTEXT_015
683XGETTEXT
684GMSGFMT_015
685MSGFMT_015
686GMSGFMT
687MSGFMT
688GETTEXT_MACRO_VERSION
689USE_NLS
0710d850
DS
690RANLIB
691ANSI2KNR
692U
0710d850
DS
693am__fastdepCXX_FALSE
694am__fastdepCXX_TRUE
695CXXDEPMODE
696ac_ct_CXX
697CXXFLAGS
698CXX
8f223b3e
FCE
699LN_S
700EGREP
701GREP
702CPP
0710d850
DS
703am__fastdepCC_FALSE
704am__fastdepCC_TRUE
705CCDEPMODE
706AMDEPBACKSLASH
707AMDEP_FALSE
708AMDEP_TRUE
709am__quote
710am__include
711DEPDIR
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
0710d850
DS
719AM_BACKSLASH
720AM_DEFAULT_VERBOSITY
31f9baea 721MAINT
0710d850
DS
722MAINTAINER_MODE_FALSE
723MAINTAINER_MODE_TRUE
724am__untar
725am__tar
726AMTAR
727am__leading_dot
728SET_MAKE
729AWK
730mkdir_p
7fbd9d09 731MKDIR_P
0710d850
DS
732INSTALL_STRIP_PROGRAM
733STRIP
734install_sh
735MAKEINFO
736AUTOHEADER
737AUTOMAKE
738AUTOCONF
739ACLOCAL
740VERSION
741PACKAGE
742CYGPATH_W
743am__isrc
744INSTALL_DATA
745INSTALL_SCRIPT
746INSTALL_PROGRAM
747target_alias
748host_alias
749build_alias
750LIBS
751ECHO_T
752ECHO_N
753ECHO_C
754DEFS
755mandir
756localedir
757libdir
758psdir
759pdfdir
760dvidir
761htmldir
762infodir
763docdir
764oldincludedir
765includedir
766localstatedir
767sharedstatedir
768sysconfdir
769datadir
770datarootdir
771libexecdir
772sbindir
773bindir
774program_transform_name
775prefix
776exec_prefix
1ef0423a 777PACKAGE_URL
0710d850
DS
778PACKAGE_BUGREPORT
779PACKAGE_STRING
780PACKAGE_VERSION
781PACKAGE_TARNAME
782PACKAGE_NAME
783PATH_SEPARATOR
784SHELL'
2f1a1aea 785ac_subst_files=''
0710d850
DS
786ac_user_opts='
787enable_option_checking
788enable_maintainer_mode
789enable_silent_rules
790enable_dependency_tracking
8f223b3e
FCE
791enable_nls
792with_gnu_ld
793enable_rpath
794with_libiconv_prefix
795with_libintl_prefix
0710d850 796enable_prologues
0f5d597d 797enable_sdt_probes
0710d850
DS
798enable_ssp
799enable_pie
800enable_sqlite
801enable_translator
802enable_crash
803enable_docs
53ade4da
MW
804enable_publican
805with_publican_brand
0710d850 806enable_refdocs
28f121c3 807with_nss
0710d850 808enable_server
28f121c3 809with_avahi
0710d850
DS
810enable_grapher
811with_rpm
812with_elfutils
813'
7fbd9d09
FCE
814 ac_precious_vars='build_alias
815host_alias
816target_alias
817CC
818CFLAGS
819LDFLAGS
820LIBS
821CPPFLAGS
8f223b3e 822CPP
7fbd9d09
FCE
823CXX
824CXXFLAGS
825CCC
1087b83f 826PKG_CONFIG
5d4aa1f5
FCE
827PKG_CONFIG_PATH
828PKG_CONFIG_LIBDIR
28f121c3
DEP
829nss_CFLAGS
830nss_LIBS
831avahi_CFLAGS
832avahi_LIBS
c3f070d9
DS
833gtkmm_CFLAGS
834gtkmm_LIBS
f8a49389
DS
835libglade_CFLAGS
836libglade_LIBS
7f9ad862 837CXXCPP'
fcca127c 838ac_subdirs_all='testsuite runtime/staprun'
2f1a1aea
FCE
839
840# Initialize some variables set by options.
841ac_init_help=
842ac_init_version=false
0710d850
DS
843ac_unrecognized_opts=
844ac_unrecognized_sep=
2f1a1aea
FCE
845# The variables have the same names as the options, with
846# dashes changed to underlines.
847cache_file=/dev/null
848exec_prefix=NONE
849no_create=
850no_recursion=
851prefix=NONE
852program_prefix=NONE
853program_suffix=NONE
854program_transform_name=s,x,x,
855silent=
856site=
857srcdir=
858verbose=
859x_includes=NONE
860x_libraries=NONE
861
862# Installation directory options.
863# These are left unexpanded so users can "make install exec_prefix=/foo"
864# and all the variables that are supposed to be based on exec_prefix
865# by default will actually change.
866# Use braces instead of parens because sh, perl, etc. also accept them.
7fbd9d09 867# (The list follows the same order as the GNU Coding Standards.)
2f1a1aea
FCE
868bindir='${exec_prefix}/bin'
869sbindir='${exec_prefix}/sbin'
870libexecdir='${exec_prefix}/libexec'
7fbd9d09
FCE
871datarootdir='${prefix}/share'
872datadir='${datarootdir}'
2f1a1aea
FCE
873sysconfdir='${prefix}/etc'
874sharedstatedir='${prefix}/com'
875localstatedir='${prefix}/var'
2f1a1aea
FCE
876includedir='${prefix}/include'
877oldincludedir='/usr/include'
7fbd9d09
FCE
878docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879infodir='${datarootdir}/info'
880htmldir='${docdir}'
881dvidir='${docdir}'
882pdfdir='${docdir}'
883psdir='${docdir}'
884libdir='${exec_prefix}/lib'
885localedir='${datarootdir}/locale'
886mandir='${datarootdir}/man'
2f1a1aea
FCE
887
888ac_prev=
7fbd9d09 889ac_dashdash=
2f1a1aea
FCE
890for ac_option
891do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
7fbd9d09 894 eval $ac_prev=\$ac_option
2f1a1aea
FCE
895 ac_prev=
896 continue
897 fi
898
7fbd9d09 899 case $ac_option in
c3de29bd
LB
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *=) ac_optarg= ;;
902 *) ac_optarg=yes ;;
7fbd9d09 903 esac
2f1a1aea
FCE
904
905 # Accept the important Cygnus configure options, so we can diagnose typos.
906
7fbd9d09
FCE
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
2f1a1aea
FCE
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
915
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
930
7fbd9d09 931 -datadir | --datadir | --datadi | --datad)
2f1a1aea 932 ac_prev=datadir ;;
7fbd9d09 933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
2f1a1aea
FCE
934 datadir=$ac_optarg ;;
935
7fbd9d09
FCE
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
2f1a1aea 943 -disable-* | --disable-*)
0710d850 944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2f1a1aea 945 # Reject names that are not valid shell variable names.
0710d850 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5d4aa1f5 947 as_fn_error $? "invalid feature name: $ac_useropt"
0710d850
DS
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952"enable_$ac_useropt"
953"*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
7fbd9d09
FCE
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
2f1a1aea
FCE
968
969 -enable-* | --enable-*)
0710d850 970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2f1a1aea 971 # Reject names that are not valid shell variable names.
0710d850 972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5d4aa1f5 973 as_fn_error $? "invalid feature name: $ac_useropt"
0710d850
DS
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978"enable_$ac_useropt"
979"*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
2f1a1aea
FCE
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1004
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1009
7fbd9d09
FCE
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
2f1a1aea
FCE
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1039
7fbd9d09
FCE
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
2f1a1aea 1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
7fbd9d09 1046 | --localstate | --localstat | --localsta | --localst | --locals)
2f1a1aea
FCE
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7fbd9d09 1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2f1a1aea
FCE
1050 localstatedir=$ac_optarg ;;
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1113
7fbd9d09
FCE
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
2f1a1aea
FCE
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1172
1173 -with-* | --with-*)
0710d850 1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2f1a1aea 1175 # Reject names that are not valid shell variable names.
0710d850 1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5d4aa1f5 1177 as_fn_error $? "invalid package name: $ac_useropt"
0710d850
DS
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182"with_$ac_useropt"
1183"*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
2f1a1aea
FCE
1188
1189 -without-* | --without-*)
0710d850 1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2f1a1aea 1191 # Reject names that are not valid shell variable names.
0710d850 1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5d4aa1f5 1193 as_fn_error $? "invalid package name: $ac_useropt"
0710d850
DS
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198"with_$ac_useropt"
1199"*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
2f1a1aea
FCE
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1222
5d4aa1f5
FCE
1223 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224Try \`$0 --help' for more information"
2f1a1aea
FCE
1225 ;;
1226
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1ef0423a
FCE
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
5d4aa1f5 1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1ef0423a 1233 esac
7fbd9d09 1234 eval $ac_envvar=\$ac_optarg
2f1a1aea
FCE
1235 export $ac_envvar ;;
1236
1237 *)
1238 # FIXME: should be removed in autoconf 3.0.
0710d850 1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2f1a1aea 1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
0710d850 1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c3de29bd 1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2f1a1aea
FCE
1243 ;;
1244
1245 esac
1246done
1247
1248if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5d4aa1f5 1250 as_fn_error $? "missing argument to $ac_option"
2f1a1aea
FCE
1251fi
1252
0710d850
DS
1253if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
5d4aa1f5 1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
0710d850
DS
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1259fi
1260
1261# Check all directory arguments for consistency.
7fbd9d09
FCE
1262for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
818ba2bc 1266do
7fbd9d09 1267 eval ac_val=\$$ac_var
0710d850
DS
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
8ae7a94a 1275 case $ac_val in
7fbd9d09
FCE
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2f1a1aea 1278 esac
5d4aa1f5 1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2f1a1aea
FCE
1280done
1281
1282# There might be people who depend on the old broken behavior: `$host'
1283# used to hold the argument of --host etc.
1284# FIXME: To remove some day.
1285build=$build_alias
1286host=$host_alias
1287target=$target_alias
1288
1289# FIXME: To remove some day.
1290if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
5d4aa1f5
FCE
1293 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1294 If a cross compiler is detected then cross compile mode will be used" >&2
2f1a1aea
FCE
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1297 fi
1298fi
1299
1300ac_tool_prefix=
1301test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303test "$silent" = yes && exec 6>/dev/null
1304
1305
7fbd9d09
FCE
1306ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307ac_ls_di=`ls -di .` &&
1308ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
5d4aa1f5 1309 as_fn_error $? "working directory cannot be determined"
7fbd9d09 1310test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
5d4aa1f5 1311 as_fn_error $? "pwd does not report name of working directory"
7fbd9d09
FCE
1312
1313
2f1a1aea
FCE
1314# Find the source files, if location was not specified.
1315if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
7fbd9d09 1317 # Try the directory containing this script, then the parent directory.
0710d850
DS
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323$as_echo X"$as_myself" |
7fbd9d09
FCE
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\).*/{
1337 s//\1/
1338 q
1339 }
1340 s/.*/./; q'`
2f1a1aea 1341 srcdir=$ac_confdir
7fbd9d09 1342 if test ! -r "$srcdir/$ac_unique_file"; then
2f1a1aea
FCE
1343 srcdir=..
1344 fi
1345else
1346 ac_srcdir_defaulted=no
1347fi
7fbd9d09
FCE
1348if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
5d4aa1f5 1350 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
8ae7a94a 1351fi
7fbd9d09
FCE
1352ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353ac_abs_confdir=`(
5d4aa1f5 1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7fbd9d09
FCE
1355 pwd)`
1356# When building in place, set srcdir=.
1357if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1359fi
1360# Remove unnecessary trailing slashes from srcdir.
1361# Double slashes in file names in object file debugging info
1362# mess up M-x gdb in Emacs.
1363case $srcdir in
1364*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365esac
1366for ac_var in $ac_precious_vars; do
1367 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_env_${ac_var}_value=\$${ac_var}
1369 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371done
2f1a1aea
FCE
1372
1373#
1374# Report the --help message.
1375#
1376if test "$ac_init_help" = "long"; then
1377 # Omit some internal or obsolete options to make the list less imposing.
1378 # This message is too long to be a string in the A/UX 3.1 sh.
1379 cat <<_ACEOF
94d406fc 1380\`configure' configures systemtap 1.7 to adapt to many kinds of systems.
2f1a1aea
FCE
1381
1382Usage: $0 [OPTION]... [VAR=VALUE]...
1383
1384To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385VAR=VALUE. See below for descriptions of some of the useful variables.
1386
1387Defaults for the options are specified in brackets.
1388
1389Configuration:
1390 -h, --help display this help and exit
1391 --help=short display options specific to this package
1392 --help=recursive display the short help of all the included packages
1393 -V, --version display version information and exit
5d4aa1f5 1394 -q, --quiet, --silent do not print \`checking ...' messages
2f1a1aea
FCE
1395 --cache-file=FILE cache test results in FILE [disabled]
1396 -C, --config-cache alias for \`--cache-file=config.cache'
1397 -n, --no-create do not create output files
1398 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399
2f1a1aea
FCE
1400Installation directories:
1401 --prefix=PREFIX install architecture-independent files in PREFIX
0710d850 1402 [$ac_default_prefix]
2f1a1aea 1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
0710d850 1404 [PREFIX]
2f1a1aea
FCE
1405
1406By default, \`make install' will install all the files in
1407\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1408an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409for instance \`--prefix=\$HOME'.
1410
1411For better control, use the options below.
1412
1413Fine tuning of the installation directories:
0710d850
DS
1414 --bindir=DIR user executables [EPREFIX/bin]
1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
2f1a1aea
FCE
1433_ACEOF
1434
1435 cat <<\_ACEOF
1436
1437Program names:
1438 --program-prefix=PREFIX prepend PREFIX to installed program names
1439 --program-suffix=SUFFIX append SUFFIX to installed program names
1440 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
8f223b3e
FCE
1441
1442System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2f1a1aea
FCE
1445_ACEOF
1446fi
1447
1448if test -n "$ac_init_help"; then
1449 case $ac_init_help in
94d406fc 1450 short | recursive ) echo "Configuration of systemtap 1.7:";;
2f1a1aea
FCE
1451 esac
1452 cat <<\_ACEOF
1453
1454Optional Features:
0710d850 1455 --disable-option-checking ignore unrecognized --enable/--with options
2f1a1aea
FCE
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-maintainer-mode enable make rules and dependencies not useful
1459 (and sometimes confusing) to the casual installer
0710d850
DS
1460 --enable-silent-rules less verbose build output (undo: `make V=1')
1461 --disable-silent-rules verbose build output (undo: `make V=0')
2f1a1aea
FCE
1462 --disable-dependency-tracking speeds up one-time build
1463 --enable-dependency-tracking do not reject slow dependency extractors
8f223b3e
FCE
1464 --disable-nls do not use Native Language Support
1465 --disable-rpath do not hardcode runtime library paths
44f75386 1466 --enable-prologues make -P prologue-searching default
0f5d597d 1467 --disable-sdt-probes disable process.mark probes in stap, staprun, stapio
bbfd8c1a 1468 --disable-ssp disable gcc stack-protector
882ddac1 1469 --enable-pie enable position-independent-executable
9921a199 1470 --enable-sqlite build with sqlite support
6d14a4a9 1471 --disable-translator build only runtime utilities
564eb0a8
DS
1472 --enable-crash[=DIRECTORY]
1473 enable crash extension (default is disabled).
1474 Optional DIRECTORY is the path to the crash header
1475 file (needed if installed in a non-standard
1476 location).
465e8fbf
FCE
1477 --enable-docs enable building documentation (default on if latex
1478 etc. found).
53ade4da
MW
1479 --enable-publican enable building publican documentation guides
1480 (default on if publican found and other
1481 documentation built).
92aff3c7
WC
1482 --enable-refdocs enable building reference documentation (default on
1483 if xmlto etc. found and other documentation built).
a0e2728a
DB
1484 --enable-server enable building of stap-server (default on if nss
1485 etc. found).
f8a49389
DS
1486 --enable-grapher enable building of grapher (default on if needed
1487 requirements are found).
2f1a1aea 1488
4d9087fc
RM
1489Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
8f223b3e
FCE
1492 --with-gnu-ld assume the C compiler uses GNU ld default=no
1493 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1494 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1495 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1496 --without-libintl-prefix don't search for libintl in includedir and libdir
53ade4da
MW
1497 --with-publican-brand=BRAND
1498 building publican documentation guides using given
89bc1a6a 1499 brand (defaults to "common").
28f121c3
DEP
1500 --without-nss Do not use NSS even if present
1501 --without-avahi Do not use Avahi even if present
0f5d597d 1502 --with-rpm query rpm database for missing debuginfos
4d9087fc
RM
1503 --with-elfutils=DIRECTORY
1504 find elfutils source code in DIRECTORY
1505
2f1a1aea
FCE
1506Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
7fbd9d09 1511 LIBS libraries to pass to the linker, e.g. -l<library>
1ef0423a 1512 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7fbd9d09 1513 you have headers in a nonstandard directory <include dir>
8f223b3e 1514 CPP C preprocessor
2f1a1aea
FCE
1515 CXX C++ compiler command
1516 CXXFLAGS C++ compiler flags
1087b83f 1517 PKG_CONFIG path to pkg-config utility
5d4aa1f5
FCE
1518 PKG_CONFIG_PATH
1519 directories to add to pkg-config's search path
1520 PKG_CONFIG_LIBDIR
1521 path overriding pkg-config's built-in search path
28f121c3
DEP
1522 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1523 nss_LIBS linker flags for nss, overriding pkg-config
1524 avahi_CFLAGS
1525 C compiler flags for avahi, overriding pkg-config
1526 avahi_LIBS linker flags for avahi, overriding pkg-config
c3f070d9
DS
1527 gtkmm_CFLAGS
1528 C compiler flags for gtkmm, overriding pkg-config
1529 gtkmm_LIBS linker flags for gtkmm, overriding pkg-config
f8a49389
DS
1530 libglade_CFLAGS
1531 C compiler flags for libglade, overriding pkg-config
1532 libglade_LIBS
1533 linker flags for libglade, overriding pkg-config
1534 CXXCPP C++ preprocessor
2f1a1aea
FCE
1535
1536Use these variables to override the choices made by `configure' or to help
1537it to find libraries and programs with nonstandard names/locations.
1538
306dd4f8 1539Report bugs to <systemtap@sourceware.org>.
2f1a1aea 1540_ACEOF
7fbd9d09 1541ac_status=$?
2f1a1aea
FCE
1542fi
1543
1544if test "$ac_init_help" = "recursive"; then
1545 # If there are subdirs, report their specific --help.
2f1a1aea 1546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
0710d850
DS
1547 test -d "$ac_dir" ||
1548 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549 continue
2f1a1aea
FCE
1550 ac_builddir=.
1551
7fbd9d09
FCE
1552case "$ac_dir" in
1553.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554*)
0710d850 1555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 1556 # A ".." for each directory in $ac_dir_suffix.
0710d850 1557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 esac ;;
1562esac
1563ac_abs_top_builddir=$ac_pwd
1564ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565# for backward compatibility:
1566ac_top_builddir=$ac_top_build_prefix
2f1a1aea
FCE
1567
1568case $srcdir in
7fbd9d09 1569 .) # We are building in place.
2f1a1aea 1570 ac_srcdir=.
7fbd9d09
FCE
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
2f1a1aea 1574 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1577 *) # Relative name.
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
818ba2bc 1581esac
7fbd9d09
FCE
1582ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
2f1a1aea 1592 else
0710d850 1593 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7fbd9d09
FCE
1594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
2f1a1aea
FCE
1596 done
1597fi
1598
7fbd9d09 1599test -n "$ac_init_help" && exit $ac_status
2f1a1aea
FCE
1600if $ac_init_version; then
1601 cat <<\_ACEOF
94d406fc 1602systemtap configure 1.7
c3de29bd 1603generated by GNU Autoconf 2.68
2f1a1aea 1604
5d4aa1f5 1605Copyright (C) 2010 Free Software Foundation, Inc.
2f1a1aea
FCE
1606This configure script is free software; the Free Software Foundation
1607gives unlimited permission to copy, distribute and modify it.
1608_ACEOF
7fbd9d09 1609 exit
2f1a1aea 1610fi
4b5627b1 1611
1ef0423a
FCE
1612## ------------------------ ##
1613## Autoconf initialization. ##
1614## ------------------------ ##
4b5627b1 1615
1ef0423a
FCE
1616# ac_fn_c_try_compile LINENO
1617# --------------------------
1618# Try to compile conftest.$ac_ext, and return whether this succeeded.
1619ac_fn_c_try_compile ()
ec1a2239 1620{
1ef0423a
FCE
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext
1623 if { { ac_try="$ac_compile"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
4b5627b1 1646
1ef0423a
FCE
1647 ac_retval=1
1648fi
c3de29bd 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a 1650 as_fn_set_status $ac_retval
ec1a2239 1651
1ef0423a 1652} # ac_fn_c_try_compile
ec1a2239 1653
1ef0423a
FCE
1654# ac_fn_c_try_cpp LINENO
1655# ----------------------
1656# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657ac_fn_c_try_cpp ()
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_cpp conftest.$ac_ext"
1661case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c3de29bd 1675 test $ac_status = 0; } > conftest.i && {
1ef0423a
FCE
1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 }; then :
1679 ac_retval=0
1680else
1681 $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685fi
c3de29bd 1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a
FCE
1687 as_fn_set_status $ac_retval
1688
1689} # ac_fn_c_try_cpp
1690
1ef0423a
FCE
1691# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1692# -------------------------------------------------------
1693# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1694# the include files in INCLUDES and setting the cache variable VAR
1695# accordingly.
1696ac_fn_c_check_header_mongrel ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c3de29bd 1699 if eval \${$3+:} false; then :
1ef0423a
FCE
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701$as_echo_n "checking for $2... " >&6; }
c3de29bd 1702if eval \${$3+:} false; then :
1ef0423a
FCE
1703 $as_echo_n "(cached) " >&6
1704fi
1705eval ac_res=\$$3
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707$as_echo "$ac_res" >&6; }
1708else
1709 # Is the header compilable?
1710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1711$as_echo_n "checking $2 usability... " >&6; }
1712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h. */
1714$4
1715#include <$2>
1716_ACEOF
1717if ac_fn_c_try_compile "$LINENO"; then :
1718 ac_header_compiler=yes
1719else
1720 ac_header_compiler=no
1721fi
1722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1724$as_echo "$ac_header_compiler" >&6; }
1725
1726# Is the header present?
1727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1728$as_echo_n "checking $2 presence... " >&6; }
1729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h. */
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_cpp "$LINENO"; then :
1734 ac_header_preproc=yes
1735else
1736 ac_header_preproc=no
1737fi
c3de29bd 1738rm -f conftest.err conftest.i conftest.$ac_ext
1ef0423a
FCE
1739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1740$as_echo "$ac_header_preproc" >&6; }
1741
1742# So? What about this header?
1743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1744 yes:no: )
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1746$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1748$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1749 ;;
1750 no:yes:* )
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1752$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1754$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1756$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1758$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1760$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
5d4aa1f5 1761( $as_echo "## --------------------------------------- ##
306dd4f8 1762## Report this to systemtap@sourceware.org ##
5d4aa1f5 1763## --------------------------------------- ##"
1ef0423a
FCE
1764 ) | sed "s/^/$as_me: WARNING: /" >&2
1765 ;;
1766esac
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
c3de29bd 1769if eval \${$3+:} false; then :
1ef0423a
FCE
1770 $as_echo_n "(cached) " >&6
1771else
1772 eval "$3=\$ac_header_compiler"
1773fi
1774eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776$as_echo "$ac_res" >&6; }
1777fi
c3de29bd 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a
FCE
1779
1780} # ac_fn_c_check_header_mongrel
1781
8f223b3e
FCE
1782# ac_fn_c_try_run LINENO
1783# ----------------------
1784# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785# that executables *can* be run.
1786ac_fn_c_try_run ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_link"
1790case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800 { { case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_try") 2>&5
1807 ac_status=$?
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; }; }; then :
1810 ac_retval=0
1811else
1812 $as_echo "$as_me: program exited with status $ac_status" >&5
1813 $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=$ac_status
1817fi
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
c3de29bd 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8f223b3e
FCE
1820 as_fn_set_status $ac_retval
1821
1822} # ac_fn_c_try_run
1823
1ef0423a
FCE
1824# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1825# -------------------------------------------------------
1826# Tests whether HEADER exists and can be compiled using the include files in
1827# INCLUDES, setting the cache variable VAR accordingly.
1828ac_fn_c_check_header_compile ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832$as_echo_n "checking for $2... " >&6; }
c3de29bd 1833if eval \${$3+:} false; then :
1ef0423a
FCE
1834 $as_echo_n "(cached) " >&6
1835else
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h. */
1838$4
1839#include <$2>
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"; then :
1842 eval "$3=yes"
1843else
1844 eval "$3=no"
1845fi
1846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847fi
1848eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850$as_echo "$ac_res" >&6; }
c3de29bd 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a
FCE
1852
1853} # ac_fn_c_check_header_compile
1854
8f223b3e
FCE
1855# ac_fn_cxx_try_compile LINENO
1856# ----------------------------
1857# Try to compile conftest.$ac_ext, and return whether this succeeded.
1858ac_fn_cxx_try_compile ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext
1862 if { { ac_try="$ac_compile"
1863case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1875 fi
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_cxx_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext; then :
1881 ac_retval=0
1882else
1883 $as_echo "$as_me: failed program was:" >&5
1884sed 's/^/| /' conftest.$ac_ext >&5
1885
1886 ac_retval=1
1887fi
c3de29bd 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8f223b3e
FCE
1889 as_fn_set_status $ac_retval
1890
1891} # ac_fn_cxx_try_compile
1892
1ef0423a
FCE
1893# ac_fn_c_try_link LINENO
1894# -----------------------
1895# Try to link conftest.$ac_ext, and return whether this succeeded.
1896ac_fn_c_try_link ()
1897{
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1901case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904esac
1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906$as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 $as_test_x conftest$ac_exeext
1921 }; then :
1922 ac_retval=0
1923else
1924 $as_echo "$as_me: failed program was:" >&5
1925sed 's/^/| /' conftest.$ac_ext >&5
1926
1927 ac_retval=1
1928fi
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
c3de29bd 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a
FCE
1935 as_fn_set_status $ac_retval
1936
1937} # ac_fn_c_try_link
1938
e04a4b41
JS
1939# ac_fn_c_check_func LINENO FUNC VAR
1940# ----------------------------------
1941# Tests whether FUNC exists, setting the cache variable VAR accordingly
1942ac_fn_c_check_func ()
1943{
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
c3de29bd 1947if eval \${$3+:} false; then :
e04a4b41
JS
1948 $as_echo_n "(cached) " >&6
1949else
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h. */
1952/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1954#define $2 innocuous_$2
1955
1956/* System header to define __stub macros and hopefully few prototypes,
1957 which can conflict with char $2 (); below.
1958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1959 <limits.h> exists even on freestanding compilers. */
1960
1961#ifdef __STDC__
1962# include <limits.h>
1963#else
1964# include <assert.h>
1965#endif
1966
1967#undef $2
1968
1969/* Override any GCC internal prototype to avoid an error.
1970 Use char because int might match the return type of a GCC
1971 builtin and then its argument prototype would still apply. */
1972#ifdef __cplusplus
1973extern "C"
1974#endif
1975char $2 ();
1976/* The GNU C library defines this for functions which it implements
1977 to always fail with ENOSYS. Some functions are actually named
1978 something starting with __ and the normal name is an alias. */
1979#if defined __stub_$2 || defined __stub___$2
1980choke me
1981#endif
1982
1983int
1984main ()
1985{
1986return $2 ();
1987 ;
1988 return 0;
1989}
1990_ACEOF
1991if ac_fn_c_try_link "$LINENO"; then :
1992 eval "$3=yes"
1993else
1994 eval "$3=no"
1995fi
1996rm -f core conftest.err conftest.$ac_objext \
1997 conftest$ac_exeext conftest.$ac_ext
1998fi
1999eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
c3de29bd 2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e04a4b41
JS
2003
2004} # ac_fn_c_check_func
2005
1ef0423a
FCE
2006# ac_fn_cxx_try_cpp LINENO
2007# ------------------------
2008# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2009ac_fn_cxx_try_cpp ()
2010{
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if { { ac_try="$ac_cpp conftest.$ac_ext"
2013case "(($ac_try" in
2014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015 *) ac_try_echo=$ac_try;;
2016esac
2017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018$as_echo "$ac_try_echo"; } >&5
2019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2020 ac_status=$?
2021 if test -s conftest.err; then
2022 grep -v '^ *+' conftest.err >conftest.er1
2023 cat conftest.er1 >&5
2024 mv -f conftest.er1 conftest.err
2025 fi
2026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c3de29bd 2027 test $ac_status = 0; } > conftest.i && {
1ef0423a
FCE
2028 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2029 test ! -s conftest.err
2030 }; then :
2031 ac_retval=0
2032else
2033 $as_echo "$as_me: failed program was:" >&5
2034sed 's/^/| /' conftest.$ac_ext >&5
2035
2036 ac_retval=1
2037fi
c3de29bd 2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a
FCE
2039 as_fn_set_status $ac_retval
2040
2041} # ac_fn_cxx_try_cpp
2042
2043# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2044# ---------------------------------------------------------
2045# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2046# the include files in INCLUDES and setting the cache variable VAR
2047# accordingly.
2048ac_fn_cxx_check_header_mongrel ()
2049{
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c3de29bd 2051 if eval \${$3+:} false; then :
1ef0423a
FCE
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053$as_echo_n "checking for $2... " >&6; }
c3de29bd 2054if eval \${$3+:} false; then :
1ef0423a
FCE
2055 $as_echo_n "(cached) " >&6
2056fi
2057eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059$as_echo "$ac_res" >&6; }
2060else
2061 # Is the header compilable?
2062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2063$as_echo_n "checking $2 usability... " >&6; }
2064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h. */
2066$4
2067#include <$2>
2068_ACEOF
2069if ac_fn_cxx_try_compile "$LINENO"; then :
2070 ac_header_compiler=yes
2071else
2072 ac_header_compiler=no
2073fi
2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2076$as_echo "$ac_header_compiler" >&6; }
2077
2078# Is the header present?
2079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2080$as_echo_n "checking $2 presence... " >&6; }
2081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083#include <$2>
2084_ACEOF
2085if ac_fn_cxx_try_cpp "$LINENO"; then :
2086 ac_header_preproc=yes
2087else
2088 ac_header_preproc=no
2089fi
c3de29bd 2090rm -f conftest.err conftest.i conftest.$ac_ext
1ef0423a
FCE
2091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2092$as_echo "$ac_header_preproc" >&6; }
2093
2094# So? What about this header?
2095case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2096 yes:no: )
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2098$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2100$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2101 ;;
2102 no:yes:* )
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2104$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2106$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2108$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2110$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2112$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
5d4aa1f5 2113( $as_echo "## --------------------------------------- ##
306dd4f8 2114## Report this to systemtap@sourceware.org ##
5d4aa1f5 2115## --------------------------------------- ##"
1ef0423a
FCE
2116 ) | sed "s/^/$as_me: WARNING: /" >&2
2117 ;;
2118esac
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120$as_echo_n "checking for $2... " >&6; }
c3de29bd 2121if eval \${$3+:} false; then :
1ef0423a
FCE
2122 $as_echo_n "(cached) " >&6
2123else
2124 eval "$3=\$ac_header_compiler"
2125fi
2126eval ac_res=\$$3
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128$as_echo "$ac_res" >&6; }
2129fi
c3de29bd 2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a
FCE
2131
2132} # ac_fn_cxx_check_header_mongrel
2133cat >config.log <<_ACEOF
2134This file contains any messages produced by compilers while
2135running configure, to aid debugging if configure makes a mistake.
2136
94d406fc 2137It was created by systemtap $as_me 1.7, which was
c3de29bd 2138generated by GNU Autoconf 2.68. Invocation command line was
1ef0423a
FCE
2139
2140 $ $0 $@
2141
2142_ACEOF
2143exec 5>>config.log
2144{
2145cat <<_ASUNAME
2146## --------- ##
2147## Platform. ##
2148## --------- ##
2149
2150hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2151uname -m = `(uname -m) 2>/dev/null || echo unknown`
2152uname -r = `(uname -r) 2>/dev/null || echo unknown`
2153uname -s = `(uname -s) 2>/dev/null || echo unknown`
2154uname -v = `(uname -v) 2>/dev/null || echo unknown`
2155
2156/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2157/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2158
2159/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2160/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2161/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2162/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2163/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2164/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2165/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2166
2167_ASUNAME
2f1a1aea
FCE
2168
2169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170for as_dir in $PATH
2171do
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
1ef0423a
FCE
2174 $as_echo "PATH: $as_dir"
2175 done
7fbd9d09 2176IFS=$as_save_IFS
2f1a1aea
FCE
2177
2178} >&5
2179
2180cat >&5 <<_ACEOF
2181
2182
2183## ----------- ##
2184## Core tests. ##
2185## ----------- ##
2186
2187_ACEOF
2188
2189
2190# Keep a trace of the command line.
2191# Strip out --no-create and --no-recursion so they do not pile up.
2192# Strip out --silent because we don't want to record it for future runs.
2193# Also quote any args containing shell meta-characters.
2194# Make two passes to allow for proper duplicate-argument suppression.
2195ac_configure_args=
2196ac_configure_args0=
2197ac_configure_args1=
2f1a1aea
FCE
2198ac_must_keep_next=false
2199for ac_pass in 1 2
2200do
2201 for ac_arg
2202 do
2203 case $ac_arg in
2204 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2206 | -silent | --silent | --silen | --sile | --sil)
2207 continue ;;
7fbd9d09 2208 *\'*)
0710d850 2209 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2f1a1aea
FCE
2210 esac
2211 case $ac_pass in
1ef0423a 2212 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2f1a1aea 2213 2)
1ef0423a 2214 as_fn_append ac_configure_args1 " '$ac_arg'"
2f1a1aea
FCE
2215 if test $ac_must_keep_next = true; then
2216 ac_must_keep_next=false # Got value, back to normal.
2217 else
2218 case $ac_arg in
2219 *=* | --config-cache | -C | -disable-* | --disable-* \
2220 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2221 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2222 | -with-* | --with-* | -without-* | --without-* | --x)
2223 case "$ac_configure_args0 " in
2224 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2225 esac
2226 ;;
2227 -* ) ac_must_keep_next=true ;;
2228 esac
2229 fi
1ef0423a 2230 as_fn_append ac_configure_args " '$ac_arg'"
2f1a1aea
FCE
2231 ;;
2232 esac
2233 done
2234done
1ef0423a
FCE
2235{ ac_configure_args0=; unset ac_configure_args0;}
2236{ ac_configure_args1=; unset ac_configure_args1;}
2f1a1aea
FCE
2237
2238# When interrupted or exit'd, cleanup temporary files, and complete
2239# config.log. We remove comments because anyway the quotes in there
2240# would cause problems or look ugly.
7fbd9d09
FCE
2241# WARNING: Use '\'' to represent an apostrophe within the trap.
2242# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2f1a1aea
FCE
2243trap 'exit_status=$?
2244 # Save into config.log some information that might help in debugging.
2245 {
2246 echo
2247
5d4aa1f5 2248 $as_echo "## ---------------- ##
2f1a1aea 2249## Cache variables. ##
5d4aa1f5 2250## ---------------- ##"
2f1a1aea
FCE
2251 echo
2252 # The following way of writing the cache mishandles newlines in values,
7fbd9d09
FCE
2253(
2254 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2255 eval ac_val=\$$ac_var
2256 case $ac_val in #(
2257 *${as_nl}*)
2258 case $ac_var in #(
1ef0423a 2259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
0710d850 2260$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7fbd9d09
FCE
2261 esac
2262 case $ac_var in #(
2263 _ | IFS | as_nl) ;; #(
0710d850 2264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1ef0423a 2265 *) { eval $ac_var=; unset $ac_var;} ;;
7fbd9d09
FCE
2266 esac ;;
2267 esac
2268 done
2f1a1aea 2269 (set) 2>&1 |
7fbd9d09
FCE
2270 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2271 *${as_nl}ac_space=\ *)
2f1a1aea 2272 sed -n \
7fbd9d09
FCE
2273 "s/'\''/'\''\\\\'\'''\''/g;
2274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2275 ;; #(
2f1a1aea 2276 *)
7fbd9d09 2277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2f1a1aea 2278 ;;
7fbd9d09
FCE
2279 esac |
2280 sort
2281)
2f1a1aea
FCE
2282 echo
2283
5d4aa1f5 2284 $as_echo "## ----------------- ##
2f1a1aea 2285## Output variables. ##
5d4aa1f5 2286## ----------------- ##"
2f1a1aea
FCE
2287 echo
2288 for ac_var in $ac_subst_vars
2289 do
7fbd9d09
FCE
2290 eval ac_val=\$$ac_var
2291 case $ac_val in
0710d850 2292 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7fbd9d09 2293 esac
0710d850 2294 $as_echo "$ac_var='\''$ac_val'\''"
2f1a1aea
FCE
2295 done | sort
2296 echo
2297
2298 if test -n "$ac_subst_files"; then
5d4aa1f5 2299 $as_echo "## ------------------- ##
7fbd9d09 2300## File substitutions. ##
5d4aa1f5 2301## ------------------- ##"
2f1a1aea
FCE
2302 echo
2303 for ac_var in $ac_subst_files
2304 do
7fbd9d09
FCE
2305 eval ac_val=\$$ac_var
2306 case $ac_val in
0710d850 2307 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7fbd9d09 2308 esac
0710d850 2309 $as_echo "$ac_var='\''$ac_val'\''"
2f1a1aea
FCE
2310 done | sort
2311 echo
2312 fi
2313
2314 if test -s confdefs.h; then
5d4aa1f5 2315 $as_echo "## ----------- ##
2f1a1aea 2316## confdefs.h. ##
5d4aa1f5 2317## ----------- ##"
2f1a1aea 2318 echo
7fbd9d09 2319 cat confdefs.h
2f1a1aea
FCE
2320 echo
2321 fi
2322 test "$ac_signal" != 0 &&
0710d850
DS
2323 $as_echo "$as_me: caught signal $ac_signal"
2324 $as_echo "$as_me: exit $exit_status"
2f1a1aea 2325 } >&5
7fbd9d09
FCE
2326 rm -f core *.core core.conftest.* &&
2327 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2f1a1aea 2328 exit $exit_status
7fbd9d09 2329' 0
2f1a1aea 2330for ac_signal in 1 2 13 15; do
1ef0423a 2331 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2f1a1aea
FCE
2332done
2333ac_signal=0
2334
2335# confdefs.h avoids OS command line length limits that DEFS can exceed.
7fbd9d09 2336rm -f -r conftest* confdefs.h
2f1a1aea 2337
1ef0423a
FCE
2338$as_echo "/* confdefs.h */" > confdefs.h
2339
2f1a1aea
FCE
2340# Predefined preprocessor variables.
2341
2342cat >>confdefs.h <<_ACEOF
2343#define PACKAGE_NAME "$PACKAGE_NAME"
2344_ACEOF
2345
2f1a1aea
FCE
2346cat >>confdefs.h <<_ACEOF
2347#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2348_ACEOF
2349
2f1a1aea
FCE
2350cat >>confdefs.h <<_ACEOF
2351#define PACKAGE_VERSION "$PACKAGE_VERSION"
2352_ACEOF
2353
2f1a1aea
FCE
2354cat >>confdefs.h <<_ACEOF
2355#define PACKAGE_STRING "$PACKAGE_STRING"
2356_ACEOF
2357
ec1a2239 2358cat >>confdefs.h <<_ACEOF
5e5aee9f 2359#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
ec1a2239
LB
2360_ACEOF
2361
1ef0423a
FCE
2362cat >>confdefs.h <<_ACEOF
2363#define PACKAGE_URL "$PACKAGE_URL"
2364_ACEOF
2365
2f1a1aea
FCE
2366
2367# Let the site file select an alternate cache file if it wants to.
0710d850
DS
2368# Prefer an explicitly selected file to automatically selected ones.
2369ac_site_file1=NONE
2370ac_site_file2=NONE
7fbd9d09 2371if test -n "$CONFIG_SITE"; then
5d4aa1f5
FCE
2372 # We do not want a PATH search for config.site.
2373 case $CONFIG_SITE in #((
2374 -*) ac_site_file1=./$CONFIG_SITE;;
2375 */*) ac_site_file1=$CONFIG_SITE;;
2376 *) ac_site_file1=./$CONFIG_SITE;;
2377 esac
7fbd9d09 2378elif test "x$prefix" != xNONE; then
0710d850
DS
2379 ac_site_file1=$prefix/share/config.site
2380 ac_site_file2=$prefix/etc/config.site
7fbd9d09 2381else
0710d850
DS
2382 ac_site_file1=$ac_default_prefix/share/config.site
2383 ac_site_file2=$ac_default_prefix/etc/config.site
818ba2bc 2384fi
0710d850 2385for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7fbd9d09 2386do
0710d850 2387 test "x$ac_site_file" = xNONE && continue
1ef0423a
FCE
2388 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
0710d850 2390$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2f1a1aea 2391 sed 's/^/| /' "$ac_site_file" >&5
5d4aa1f5
FCE
2392 . "$ac_site_file" \
2393 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395as_fn_error $? "failed to load site script $ac_site_file
2396See \`config.log' for more details" "$LINENO" 5; }
2f1a1aea
FCE
2397 fi
2398done
2399
2400if test -r "$cache_file"; then
1ef0423a
FCE
2401 # Some versions of bash will fail to source /dev/null (special files
2402 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2403 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
0710d850 2405$as_echo "$as_me: loading cache $cache_file" >&6;}
2f1a1aea 2406 case $cache_file in
7fbd9d09
FCE
2407 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2408 *) . "./$cache_file";;
2f1a1aea
FCE
2409 esac
2410 fi
2411else
1ef0423a 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
0710d850 2413$as_echo "$as_me: creating cache $cache_file" >&6;}
2f1a1aea
FCE
2414 >$cache_file
2415fi
2416
8f223b3e 2417gt_needs="$gt_needs "
2f1a1aea
FCE
2418# Check that the precious variables saved in the cache have kept the same
2419# value.
2420ac_cache_corrupted=false
7fbd9d09 2421for ac_var in $ac_precious_vars; do
2f1a1aea
FCE
2422 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2423 eval ac_new_set=\$ac_env_${ac_var}_set
7fbd9d09
FCE
2424 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2425 eval ac_new_val=\$ac_env_${ac_var}_value
2f1a1aea
FCE
2426 case $ac_old_set,$ac_new_set in
2427 set,)
1ef0423a 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
0710d850 2429$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2f1a1aea
FCE
2430 ac_cache_corrupted=: ;;
2431 ,set)
1ef0423a 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
0710d850 2433$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2f1a1aea
FCE
2434 ac_cache_corrupted=: ;;
2435 ,);;
2436 *)
2437 if test "x$ac_old_val" != "x$ac_new_val"; then
0710d850
DS
2438 # differences in whitespace do not lead to failure.
2439 ac_old_val_w=`echo x $ac_old_val`
2440 ac_new_val_w=`echo x $ac_new_val`
2441 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1ef0423a 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
0710d850
DS
2443$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2444 ac_cache_corrupted=:
2445 else
1ef0423a 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
0710d850
DS
2447$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2448 eval $ac_var=\$ac_old_val
2449 fi
1ef0423a 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
0710d850 2451$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1ef0423a 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
0710d850 2453$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2f1a1aea
FCE
2454 fi;;
2455 esac
2456 # Pass precious variables to config.status.
2457 if test "$ac_new_set" = set; then
2458 case $ac_new_val in
0710d850 2459 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4a3c19da
EM
2460 *) ac_arg=$ac_var=$ac_new_val ;;
2461 esac
2462 case " $ac_configure_args " in
2463 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1ef0423a 2464 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4a3c19da
EM
2465 esac
2466 fi
2467done
2468if $ac_cache_corrupted; then
1ef0423a 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 2470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1ef0423a 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
0710d850 2472$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
5d4aa1f5 2473 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
4a3c19da 2474fi
1ef0423a
FCE
2475## -------------------- ##
2476## Main body of script. ##
2477## -------------------- ##
2f1a1aea 2478
7fbd9d09
FCE
2479ac_ext=c
2480ac_cpp='$CPP $CPPFLAGS'
2481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483ac_compiler_gnu=$ac_cv_c_compiler_gnu
2f1a1aea
FCE
2484
2485
2486
2f1a1aea 2487
0710d850 2488am__api_version='1.11'
10b20266 2489
2f1a1aea 2490ac_aux_dir=
412e1bf7 2491for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5d4aa1f5
FCE
2492 if test -f "$ac_dir/install-sh"; then
2493 ac_aux_dir=$ac_dir
2494 ac_install_sh="$ac_aux_dir/install-sh -c"
2495 break
2496 elif test -f "$ac_dir/install.sh"; then
2497 ac_aux_dir=$ac_dir
2498 ac_install_sh="$ac_aux_dir/install.sh -c"
2499 break
2500 elif test -f "$ac_dir/shtool"; then
2501 ac_aux_dir=$ac_dir
2502 ac_install_sh="$ac_aux_dir/shtool install -c"
2503 break
2504 fi
2f1a1aea
FCE
2505done
2506if test -z "$ac_aux_dir"; then
5d4aa1f5 2507 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2f1a1aea 2508fi
7fbd9d09
FCE
2509
2510# These three variables are undocumented and unsupported,
2511# and are intended to be withdrawn in a future Autoconf release.
2512# They can cause serious problems if a builder's source tree is in a directory
2513# whose full name contains unusual characters.
2514ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2515ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2516ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2517
2f1a1aea
FCE
2518
2519# Find a good install program. We prefer a C program (faster),
2520# so one script is as good as another. But avoid the broken or
2521# incompatible versions:
2522# SysV /etc/install, /usr/sbin/install
2523# SunOS /usr/etc/install
2524# IRIX /sbin/install
2525# AIX /bin/install
2526# AmigaOS /C/install, which installs bootblocks on floppy discs
2527# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2528# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2529# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2530# OS/2's system install, which has a completely different semantic
2531# ./install, which can be erroneously created by make from ./install.sh.
0710d850 2532# Reject install programs that cannot install multiple files.
1ef0423a 2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
0710d850 2534$as_echo_n "checking for a BSD-compatible install... " >&6; }
2f1a1aea 2535if test -z "$INSTALL"; then
c3de29bd 2536if ${ac_cv_path_install+:} false; then :
0710d850 2537 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2538else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
1ef0423a
FCE
2544 # Account for people who put trailing slashes in PATH elements.
2545case $as_dir/ in #((
2546 ./ | .// | /[cC]/* | \
2f1a1aea 2547 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1ef0423a 2548 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2f1a1aea
FCE
2549 /usr/ucb/* ) ;;
2550 *)
2551 # OSF1 and SCO ODT 3.0 have their own names for install.
2552 # Don't use installbsd from OSF since it installs stuff as root
2553 # by default.
2554 for ac_prog in ginstall scoinst install; do
2555 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2556 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2f1a1aea
FCE
2557 if test $ac_prog = install &&
2558 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559 # AIX install. It has an incompatible calling convention.
2560 :
2561 elif test $ac_prog = install &&
2562 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563 # program-specific install script used by HP pwplus--don't use.
2564 :
2565 else
0710d850
DS
2566 rm -rf conftest.one conftest.two conftest.dir
2567 echo one > conftest.one
2568 echo two > conftest.two
2569 mkdir conftest.dir
2570 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2571 test -s conftest.one && test -s conftest.two &&
2572 test -s conftest.dir/conftest.one &&
2573 test -s conftest.dir/conftest.two
2574 then
2575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2576 break 3
2577 fi
2f1a1aea
FCE
2578 fi
2579 fi
2580 done
2581 done
2582 ;;
2583esac
0710d850 2584
1ef0423a 2585 done
7fbd9d09 2586IFS=$as_save_IFS
2f1a1aea 2587
0710d850 2588rm -rf conftest.one conftest.two conftest.dir
2f1a1aea
FCE
2589
2590fi
2591 if test "${ac_cv_path_install+set}" = set; then
2592 INSTALL=$ac_cv_path_install
2593 else
7fbd9d09
FCE
2594 # As a last resort, use the slow shell script. Don't cache a
2595 # value for INSTALL within a source directory, because that will
2f1a1aea 2596 # break other packages using the cache if that directory is
7fbd9d09 2597 # removed, or if the value is a relative name.
2f1a1aea
FCE
2598 INSTALL=$ac_install_sh
2599 fi
2600fi
1ef0423a 2601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
0710d850 2602$as_echo "$INSTALL" >&6; }
2f1a1aea
FCE
2603
2604# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605# It thinks the first close brace ends the variable substitution.
2606test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607
2608test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2609
2610test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611
1ef0423a 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
0710d850 2613$as_echo_n "checking whether build environment is sane... " >&6; }
2f1a1aea
FCE
2614# Just in case
2615sleep 1
2616echo timestamp > conftest.file
0710d850
DS
2617# Reject unsafe characters in $srcdir or the absolute working directory
2618# name. Accept space and tab only in the latter.
2619am_lf='
2620'
2621case `pwd` in
2622 *[\\\"\#\$\&\'\`$am_lf]*)
5d4aa1f5 2623 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
0710d850
DS
2624esac
2625case $srcdir in
2626 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5d4aa1f5 2627 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
0710d850
DS
2628esac
2629
2f1a1aea
FCE
2630# Do `set' in a subshell so we don't clobber the current shell's
2631# arguments. Must try -L first in case configure is actually a
2632# symlink; some systems play weird games with the mod time of symlinks
2633# (eg FreeBSD returns the mod time of the symlink's containing
2634# directory).
2635if (
0710d850 2636 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2f1a1aea
FCE
2637 if test "$*" = "X"; then
2638 # -L didn't work.
0710d850 2639 set X `ls -t "$srcdir/configure" conftest.file`
2f1a1aea
FCE
2640 fi
2641 rm -f conftest.file
2642 if test "$*" != "X $srcdir/configure conftest.file" \
2643 && test "$*" != "X conftest.file $srcdir/configure"; then
2644
2645 # If neither matched, then we have a broken ls. This can happen
2646 # if, for instance, CONFIG_SHELL is bash and it inherits a
2647 # broken ls alias from the environment. This has actually
2648 # happened. Such a system could not be considered "sane".
5d4aa1f5 2649 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
1ef0423a 2650alias in your environment" "$LINENO" 5
2f1a1aea
FCE
2651 fi
2652
2653 test "$2" = conftest.file
2654 )
2655then
2656 # Ok.
2657 :
2658else
5d4aa1f5 2659 as_fn_error $? "newly created file is older than distributed files!
1ef0423a 2660Check your system clock" "$LINENO" 5
2f1a1aea 2661fi
1ef0423a 2662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0710d850 2663$as_echo "yes" >&6; }
2f1a1aea 2664test "$program_prefix" != NONE &&
7fbd9d09 2665 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2f1a1aea
FCE
2666# Use a double $ so make ignores it.
2667test "$program_suffix" != NONE &&
7fbd9d09 2668 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
0710d850 2669# Double any \ or $.
2f1a1aea 2670# By default was `s,x,x', remove it if useless.
0710d850
DS
2671ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2672program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2f1a1aea
FCE
2673
2674# expand $ac_aux_dir to an absolute path
2675am_aux_dir=`cd $ac_aux_dir && pwd`
2676
0710d850
DS
2677if test x"${MISSING+set}" != xset; then
2678 case $am_aux_dir in
2679 *\ * | *\ *)
2680 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2681 *)
2682 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2683 esac
2684fi
2f1a1aea
FCE
2685# Use eval to expand $SHELL
2686if eval "$MISSING --run true"; then
2687 am_missing_run="$MISSING --run "
2688else
2689 am_missing_run=
1ef0423a 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
0710d850
DS
2691$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2692fi
2693
2694if test x"${install_sh}" != xset; then
2695 case $am_aux_dir in
2696 *\ * | *\ *)
2697 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2698 *)
2699 install_sh="\${SHELL} $am_aux_dir/install-sh"
2700 esac
8d9d8fe1
DB
2701fi
2702
0710d850
DS
2703# Installed binaries are usually stripped using `strip' when the user
2704# run `make install-strip'. However `strip' might not be the right
2705# tool to use in cross-compilation environments, therefore Automake
2706# will honor the `STRIP' environment variable to overrule this program.
2707if test "$cross_compiling" != no; then
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2710set dummy ${ac_tool_prefix}strip; ac_word=$2
1ef0423a 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 2712$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 2713if ${ac_cv_prog_STRIP+:} false; then :
0710d850
DS
2714 $as_echo_n "(cached) " >&6
2715else
2716 if test -n "$STRIP"; then
2717 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2718else
2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
1ef0423a 2724 for ac_exec_ext in '' $ac_executable_extensions; do
0710d850
DS
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1ef0423a 2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0710d850
DS
2728 break 2
2729 fi
2730done
1ef0423a 2731 done
0710d850
DS
2732IFS=$as_save_IFS
2733
2734fi
2735fi
2736STRIP=$ac_cv_prog_STRIP
2737if test -n "$STRIP"; then
1ef0423a 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
0710d850
DS
2739$as_echo "$STRIP" >&6; }
2740else
1ef0423a 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850
DS
2742$as_echo "no" >&6; }
2743fi
2744
2745
2746fi
2747if test -z "$ac_cv_prog_STRIP"; then
2748 ac_ct_STRIP=$STRIP
2749 # Extract the first word of "strip", so it can be a program name with args.
2750set dummy strip; ac_word=$2
1ef0423a 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 2752$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 2753if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
0710d850
DS
2754 $as_echo_n "(cached) " >&6
2755else
2756 if test -n "$ac_ct_STRIP"; then
2757 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
1ef0423a 2764 for ac_exec_ext in '' $ac_executable_extensions; do
0710d850
DS
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_STRIP="strip"
1ef0423a 2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0710d850
DS
2768 break 2
2769 fi
2770done
1ef0423a 2771 done
0710d850
DS
2772IFS=$as_save_IFS
2773
2774fi
2775fi
2776ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2777if test -n "$ac_ct_STRIP"; then
1ef0423a 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
0710d850
DS
2779$as_echo "$ac_ct_STRIP" >&6; }
2780else
1ef0423a 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850
DS
2782$as_echo "no" >&6; }
2783fi
2784
2785 if test "x$ac_ct_STRIP" = x; then
2786 STRIP=":"
2787 else
2788 case $cross_compiling:$ac_tool_warned in
2789yes:)
1ef0423a 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850
DS
2791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2792ac_tool_warned=yes ;;
2793esac
2794 STRIP=$ac_ct_STRIP
2795 fi
2796else
2797 STRIP="$ac_cv_prog_STRIP"
2798fi
2799
2800fi
2801INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2802
1ef0423a 2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
0710d850 2804$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7fbd9d09 2805if test -z "$MKDIR_P"; then
c3de29bd 2806 if ${ac_cv_path_mkdir+:} false; then :
0710d850 2807 $as_echo_n "(cached) " >&6
7fbd9d09
FCE
2808else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2811do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
1ef0423a 2814 for ac_prog in mkdir gmkdir; do
7fbd9d09
FCE
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2817 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2818 'mkdir (GNU coreutils) '* | \
2819 'mkdir (coreutils) '* | \
2820 'mkdir (fileutils) '4.1*)
2821 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2822 break 3;;
2823 esac
2824 done
2825 done
1ef0423a 2826 done
7fbd9d09
FCE
2827IFS=$as_save_IFS
2828
2829fi
2830
1ef0423a 2831 test -d ./--version && rmdir ./--version
7fbd9d09
FCE
2832 if test "${ac_cv_path_mkdir+set}" = set; then
2833 MKDIR_P="$ac_cv_path_mkdir -p"
2f1a1aea 2834 else
7fbd9d09
FCE
2835 # As a last resort, use the slow shell script. Don't cache a
2836 # value for MKDIR_P within a source directory, because that will
2837 # break other packages using the cache if that directory is
2838 # removed, or if the value is a relative name.
7fbd9d09 2839 MKDIR_P="$ac_install_sh -d"
2f1a1aea
FCE
2840 fi
2841fi
1ef0423a 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
0710d850 2843$as_echo "$MKDIR_P" >&6; }
7fbd9d09
FCE
2844
2845mkdir_p="$MKDIR_P"
2846case $mkdir_p in
2847 [\\/$]* | ?:[\\/]*) ;;
2848 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2849esac
2f1a1aea
FCE
2850
2851for ac_prog in gawk mawk nawk awk
2852do
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854set dummy $ac_prog; ac_word=$2
1ef0423a 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 2856$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 2857if ${ac_cv_prog_AWK+:} false; then :
0710d850 2858 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2859else
2860 if test -n "$AWK"; then
2861 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2862else
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
1ef0423a 2868 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 2870 ac_cv_prog_AWK="$ac_prog"
1ef0423a 2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
2872 break 2
2873 fi
2874done
1ef0423a 2875 done
7fbd9d09 2876IFS=$as_save_IFS
2f1a1aea
FCE
2877
2878fi
2879fi
2880AWK=$ac_cv_prog_AWK
2881if test -n "$AWK"; then
1ef0423a 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
0710d850 2883$as_echo "$AWK" >&6; }
2f1a1aea 2884else
1ef0423a 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 2886$as_echo "no" >&6; }
2f1a1aea
FCE
2887fi
2888
7fbd9d09 2889
2f1a1aea
FCE
2890 test -n "$AWK" && break
2891done
2892
1ef0423a 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
0710d850
DS
2894$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2895set x ${MAKE-make}
2896ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
c3de29bd 2897if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
0710d850 2898 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2899else
2900 cat >conftest.make <<\_ACEOF
412e1bf7
FCE
2901SHELL = /bin/sh
2902all:
2903 @echo '@@@%%%=$(MAKE)=@@@%%%'
2904_ACEOF
5d4aa1f5 2905# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
412e1bf7
FCE
2906case `${MAKE-make} -f conftest.make 2>/dev/null` in
2907 *@@@%%%=?*=@@@%%%*)
2908 eval ac_cv_prog_make_${ac_make}_set=yes;;
2909 *)
2910 eval ac_cv_prog_make_${ac_make}_set=no;;
2911esac
2912rm -f conftest.make
4a3c19da 2913fi
412e1bf7 2914if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1ef0423a 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0710d850 2916$as_echo "yes" >&6; }
412e1bf7 2917 SET_MAKE=
4a3c19da 2918else
1ef0423a 2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 2920$as_echo "no" >&6; }
412e1bf7 2921 SET_MAKE="MAKE=${MAKE-make}"
2f1a1aea
FCE
2922fi
2923
412e1bf7
FCE
2924rm -rf .tst 2>/dev/null
2925mkdir .tst 2>/dev/null
2926if test -d .tst; then
2927 am__leading_dot=.
4a3c19da 2928else
412e1bf7 2929 am__leading_dot=_
2f1a1aea 2930fi
412e1bf7 2931rmdir .tst 2>/dev/null
2f1a1aea 2932
412e1bf7
FCE
2933if test "`cd $srcdir && pwd`" != "`pwd`"; then
2934 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2935 # is not polluted with repeated "-I."
2936 am__isrc=' -I$(srcdir)'
2937 # test to see if srcdir already configured
2938 if test -f $srcdir/config.status; then
5d4aa1f5 2939 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
412e1bf7 2940 fi
4a3c19da 2941fi
412e1bf7
FCE
2942
2943# test whether we have cygpath
2944if test -z "$CYGPATH_W"; then
2945 if (cygpath --version) >/dev/null 2>/dev/null; then
2946 CYGPATH_W='cygpath -w'
2947 else
2948 CYGPATH_W=echo
2949 fi
2950fi
2951
2952
2953# Define the identity of the package.
2954 PACKAGE='systemtap'
94d406fc 2955 VERSION='1.7'
412e1bf7
FCE
2956
2957
2958cat >>confdefs.h <<_ACEOF
2959#define PACKAGE "$PACKAGE"
2960_ACEOF
2961
2962
2963cat >>confdefs.h <<_ACEOF
2964#define VERSION "$VERSION"
2965_ACEOF
2966
2967# Some tools Automake needs.
2968
2969ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2970
2971
2972AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2973
2974
0710d850 2975AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
31f9baea 2976
0710d850
DS
2977
2978AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2979
2980
2981MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2f1a1aea 2982
2f1a1aea
FCE
2983# We need awk for the "check" target. The system "awk" is bad on
2984# some platforms.
2985# Always define AMTAR for backward compatibility.
2986
2987AMTAR=${AMTAR-"${am_missing_run}tar"}
2988
2989am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2990
2991
2992
2993
2994
0710d850 2995
1ef0423a 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
0710d850 2997$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7fbd9d09 2998 # Check whether --enable-maintainer-mode was given.
1ef0423a 2999if test "${enable_maintainer_mode+set}" = set; then :
7fbd9d09 3000 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2f1a1aea
FCE
3001else
3002 USE_MAINTAINER_MODE=no
7fbd9d09 3003fi
2f1a1aea 3004
1ef0423a 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
0710d850 3006$as_echo "$USE_MAINTAINER_MODE" >&6; }
7fbd9d09 3007 if test $USE_MAINTAINER_MODE = yes; then
2f1a1aea
FCE
3008 MAINTAINER_MODE_TRUE=
3009 MAINTAINER_MODE_FALSE='#'
3010else
3011 MAINTAINER_MODE_TRUE='#'
3012 MAINTAINER_MODE_FALSE=
3013fi
3014
3015 MAINT=$MAINTAINER_MODE_TRUE
3016
3017
3018
0710d850 3019# Check whether --enable-silent-rules was given.
1ef0423a 3020if test "${enable_silent_rules+set}" = set; then :
0710d850
DS
3021 enableval=$enable_silent_rules;
3022fi
3023
3024case $enable_silent_rules in
3025yes) AM_DEFAULT_VERBOSITY=0;;
3026no) AM_DEFAULT_VERBOSITY=1;;
3027*) AM_DEFAULT_VERBOSITY=0;;
3028esac
3029AM_BACKSLASH='\'
618a8a63
JS
3030
3031
8f223b3e
FCE
3032DEPDIR="${am__leading_dot}deps"
3033
3034ac_config_commands="$ac_config_commands depfiles"
3035
3036
3037am_make=${MAKE-make}
3038cat > confinc << 'END'
3039am__doit:
3040 @echo this is the am__doit target
3041.PHONY: am__doit
3042END
3043# If we don't find an include directive, just comment out the code.
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3045$as_echo_n "checking for style of include used by $am_make... " >&6; }
3046am__include="#"
3047am__quote=
3048_am_result=none
3049# First try GNU make style include.
3050echo "include confinc" > confmf
3051# Ignore all kinds of additional output from `make'.
3052case `$am_make -s -f confmf 2> /dev/null` in #(
3053*the\ am__doit\ target*)
3054 am__include=include
3055 am__quote=
3056 _am_result=GNU
3057 ;;
7fbd9d09 3058esac
8f223b3e
FCE
3059# Now try BSD make style include.
3060if test "$am__include" = "#"; then
3061 echo '.include "confinc"' > confmf
3062 case `$am_make -s -f confmf 2> /dev/null` in #(
3063 *the\ am__doit\ target*)
3064 am__include=.include
3065 am__quote="\""
3066 _am_result=BSD
3067 ;;
3068 esac
3069fi
7fbd9d09 3070
98aab489 3071
8f223b3e
FCE
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3073$as_echo "$_am_result" >&6; }
3074rm -f confinc confmf
3075
3076# Check whether --enable-dependency-tracking was given.
3077if test "${enable_dependency_tracking+set}" = set; then :
3078 enableval=$enable_dependency_tracking;
3079fi
3080
3081if test "x$enable_dependency_tracking" != xno; then
3082 am_depcomp="$ac_aux_dir/depcomp"
3083 AMDEPBACKSLASH='\'
3084fi
3085 if test "x$enable_dependency_tracking" != xno; then
3086 AMDEP_TRUE=
3087 AMDEP_FALSE='#'
2f1a1aea 3088else
8f223b3e
FCE
3089 AMDEP_TRUE='#'
3090 AMDEP_FALSE=
2f1a1aea
FCE
3091fi
3092
8f223b3e 3093
2f1a1aea
FCE
3094ac_ext=c
3095ac_cpp='$CPP $CPPFLAGS'
3096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099if test -n "$ac_tool_prefix"; then
3100 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3101set dummy ${ac_tool_prefix}gcc; ac_word=$2
1ef0423a 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3103$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3104if ${ac_cv_prog_CC+:} false; then :
0710d850 3105 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3106else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109else
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
1ef0423a 3115 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 3117 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1ef0423a 3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3119 break 2
3120 fi
3121done
1ef0423a 3122 done
7fbd9d09 3123IFS=$as_save_IFS
2f1a1aea
FCE
3124
3125fi
3126fi
3127CC=$ac_cv_prog_CC
3128if test -n "$CC"; then
1ef0423a 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 3130$as_echo "$CC" >&6; }
2f1a1aea 3131else
1ef0423a 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3133$as_echo "no" >&6; }
2f1a1aea
FCE
3134fi
3135
7fbd9d09 3136
2f1a1aea
FCE
3137fi
3138if test -z "$ac_cv_prog_CC"; then
3139 ac_ct_CC=$CC
3140 # Extract the first word of "gcc", so it can be a program name with args.
3141set dummy gcc; ac_word=$2
1ef0423a 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3143$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3144if ${ac_cv_prog_ac_ct_CC+:} false; then :
0710d850 3145 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3146else
3147 if test -n "$ac_ct_CC"; then
3148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3149else
3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
1ef0423a 3155 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 3157 ac_cv_prog_ac_ct_CC="gcc"
1ef0423a 3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3159 break 2
3160 fi
3161done
1ef0423a 3162 done
7fbd9d09 3163IFS=$as_save_IFS
2f1a1aea
FCE
3164
3165fi
3166fi
3167ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168if test -n "$ac_ct_CC"; then
1ef0423a 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
0710d850 3170$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 3171else
1ef0423a 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3173$as_echo "no" >&6; }
2f1a1aea
FCE
3174fi
3175
7fbd9d09
FCE
3176 if test "x$ac_ct_CC" = x; then
3177 CC=""
3178 else
3179 case $cross_compiling:$ac_tool_warned in
3180yes:)
1ef0423a 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 3182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
3183ac_tool_warned=yes ;;
3184esac
3185 CC=$ac_ct_CC
3186 fi
2f1a1aea
FCE
3187else
3188 CC="$ac_cv_prog_CC"
3189fi
3190
3191if test -z "$CC"; then
7fbd9d09
FCE
3192 if test -n "$ac_tool_prefix"; then
3193 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2f1a1aea 3194set dummy ${ac_tool_prefix}cc; ac_word=$2
1ef0423a 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3196$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3197if ${ac_cv_prog_CC+:} false; then :
0710d850 3198 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3199else
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3202else
3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204for as_dir in $PATH
3205do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
1ef0423a 3208 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 3210 ac_cv_prog_CC="${ac_tool_prefix}cc"
1ef0423a 3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3212 break 2
3213 fi
3214done
1ef0423a 3215 done
7fbd9d09 3216IFS=$as_save_IFS
2f1a1aea
FCE
3217
3218fi
3219fi
3220CC=$ac_cv_prog_CC
3221if test -n "$CC"; then
1ef0423a 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 3223$as_echo "$CC" >&6; }
818ba2bc 3224else
1ef0423a 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3226$as_echo "no" >&6; }
818ba2bc
MW
3227fi
3228
818ba2bc 3229
7fbd9d09 3230 fi
2f1a1aea
FCE
3231fi
3232if test -z "$CC"; then
3233 # Extract the first word of "cc", so it can be a program name with args.
3234set dummy cc; ac_word=$2
1ef0423a 3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3236$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3237if ${ac_cv_prog_CC+:} false; then :
0710d850 3238 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3239else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242else
3243 ac_prog_rejected=no
3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
1ef0423a 3249 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea
FCE
3251 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3252 ac_prog_rejected=yes
3253 continue
3254 fi
3255 ac_cv_prog_CC="cc"
1ef0423a 3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3257 break 2
3258 fi
3259done
1ef0423a 3260 done
7fbd9d09 3261IFS=$as_save_IFS
2f1a1aea
FCE
3262
3263if test $ac_prog_rejected = yes; then
3264 # We found a bogon in the path, so make sure we never use it.
3265 set dummy $ac_cv_prog_CC
3266 shift
3267 if test $# != 0; then
3268 # We chose a different compiler from the bogus one.
3269 # However, it has the same basename, so the bogon will be chosen
3270 # first if we set CC to just the basename; use the full file name.
3271 shift
3272 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3273 fi
3274fi
3275fi
3276fi
3277CC=$ac_cv_prog_CC
3278if test -n "$CC"; then
1ef0423a 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 3280$as_echo "$CC" >&6; }
2f1a1aea 3281else
1ef0423a 3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3283$as_echo "no" >&6; }
2f1a1aea
FCE
3284fi
3285
7fbd9d09 3286
2f1a1aea
FCE
3287fi
3288if test -z "$CC"; then
3289 if test -n "$ac_tool_prefix"; then
7fbd9d09 3290 for ac_prog in cl.exe
2f1a1aea
FCE
3291 do
3292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3293set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1ef0423a 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3295$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3296if ${ac_cv_prog_CC+:} false; then :
0710d850 3297 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3298else
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
1ef0423a 3307 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 3309 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1ef0423a 3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3311 break 2
3312 fi
3313done
1ef0423a 3314 done
7fbd9d09 3315IFS=$as_save_IFS
2f1a1aea
FCE
3316
3317fi
3318fi
3319CC=$ac_cv_prog_CC
3320if test -n "$CC"; then
1ef0423a 3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 3322$as_echo "$CC" >&6; }
2f1a1aea 3323else
1ef0423a 3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3325$as_echo "no" >&6; }
2f1a1aea
FCE
3326fi
3327
7fbd9d09 3328
2f1a1aea
FCE
3329 test -n "$CC" && break
3330 done
3331fi
3332if test -z "$CC"; then
3333 ac_ct_CC=$CC
7fbd9d09 3334 for ac_prog in cl.exe
2f1a1aea
FCE
3335do
3336 # Extract the first word of "$ac_prog", so it can be a program name with args.
3337set dummy $ac_prog; ac_word=$2
1ef0423a 3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3339$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3340if ${ac_cv_prog_ac_ct_CC+:} false; then :
0710d850 3341 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3342else
3343 if test -n "$ac_ct_CC"; then
3344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3345else
3346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347for as_dir in $PATH
3348do
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
1ef0423a 3351 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 3352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 3353 ac_cv_prog_ac_ct_CC="$ac_prog"
1ef0423a 3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3355 break 2
3356 fi
3357done
1ef0423a 3358 done
7fbd9d09 3359IFS=$as_save_IFS
2f1a1aea
FCE
3360
3361fi
3362fi
3363ac_ct_CC=$ac_cv_prog_ac_ct_CC
3364if test -n "$ac_ct_CC"; then
1ef0423a 3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
0710d850 3366$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 3367else
1ef0423a 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3369$as_echo "no" >&6; }
2f1a1aea
FCE
3370fi
3371
7fbd9d09 3372
2f1a1aea
FCE
3373 test -n "$ac_ct_CC" && break
3374done
3375
7fbd9d09
FCE
3376 if test "x$ac_ct_CC" = x; then
3377 CC=""
3378 else
3379 case $cross_compiling:$ac_tool_warned in
3380yes:)
1ef0423a 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 3382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
3383ac_tool_warned=yes ;;
3384esac
3385 CC=$ac_ct_CC
3386 fi
2f1a1aea
FCE
3387fi
3388
3389fi
3390
3391
1ef0423a 3392test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 3393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
3394as_fn_error $? "no acceptable C compiler found in \$PATH
3395See \`config.log' for more details" "$LINENO" 5; }
2f1a1aea
FCE
3396
3397# Provide some information about the compiler.
1ef0423a 3398$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
0710d850
DS
3399set X $ac_compile
3400ac_compiler=$2
1ef0423a
FCE
3401for ac_option in --version -v -V -qversion; do
3402 { { ac_try="$ac_compiler $ac_option >&5"
5e5aee9f
FCE
3403case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406esac
1ef0423a
FCE
3407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408$as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5e5aee9f 3410 ac_status=$?
1ef0423a
FCE
3411 if test -s conftest.err; then
3412 sed '10a\
3413... rest of stderr output deleted ...
3414 10q' conftest.err >conftest.er1
3415 cat conftest.er1 >&5
3416 fi
3417 rm -f conftest.er1 conftest.err
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }
3420done
2f1a1aea 3421
1ef0423a 3422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 3423/* end confdefs.h. */
412e1bf7 3424
2f1a1aea
FCE
3425int
3426main ()
3427{
3428
3429 ;
3430 return 0;
3431}
3432_ACEOF
3433ac_clean_files_save=$ac_clean_files
0710d850 3434ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2f1a1aea
FCE
3435# Try to create an executable without -o first, disregard a.out.
3436# It will help us diagnose broken compilers, and finding out an intuition
3437# of exeext.
1ef0423a
FCE
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3439$as_echo_n "checking whether the C compiler works... " >&6; }
0710d850
DS
3440ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3441
3442# The possible output files:
3443ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3444
7fbd9d09
FCE
3445ac_rmfiles=
3446for ac_file in $ac_files
3447do
3448 case $ac_file in
0710d850 3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7fbd9d09
FCE
3450 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3451 esac
3452done
3453rm -f $ac_rmfiles
3454
1ef0423a 3455if { { ac_try="$ac_link_default"
7fbd9d09
FCE
3456case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459esac
1ef0423a
FCE
3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461$as_echo "$ac_try_echo"; } >&5
7fbd9d09 3462 (eval "$ac_link_default") 2>&5
2f1a1aea 3463 ac_status=$?
1ef0423a
FCE
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }; then :
7fbd9d09
FCE
3466 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3467# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3468# in a Makefile. We should not override ac_cv_exeext if it was cached,
3469# so that the user can short-circuit this test for compilers unknown to
3470# Autoconf.
3471for ac_file in $ac_files ''
2f1a1aea
FCE
3472do
3473 test -f "$ac_file" || continue
3474 case $ac_file in
0710d850 3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2f1a1aea
FCE
3476 ;;
3477 [ab].out )
3478 # We found the default executable, but exeext='' is most
3479 # certainly right.
3480 break;;
3481 *.* )
1ef0423a 3482 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
7fbd9d09
FCE
3483 then :; else
3484 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3485 fi
3486 # We set ac_cv_exeext here because the later test for it is not
3487 # safe: cross compilers may not add the suffix if given an `-o'
3488 # argument, so we may need to know it at that point already.
3489 # Even if this section looks crufty: it has the advantage of
3490 # actually working.
2f1a1aea
FCE
3491 break;;
3492 * )
3493 break;;
3494 esac
3495done
7fbd9d09
FCE
3496test "$ac_cv_exeext" = no && ac_cv_exeext=
3497
2f1a1aea 3498else
7fbd9d09
FCE
3499 ac_file=''
3500fi
1ef0423a
FCE
3501if test -z "$ac_file"; then :
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503$as_echo "no" >&6; }
3504$as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
1ef0423a 3507{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 3508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
3509as_fn_error 77 "C compiler cannot create executables
3510See \`config.log' for more details" "$LINENO" 5; }
1ef0423a
FCE
3511else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3513$as_echo "yes" >&6; }
2f1a1aea 3514fi
1ef0423a
FCE
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3516$as_echo_n "checking for C compiler default output file name... " >&6; }
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3518$as_echo "$ac_file" >&6; }
2f1a1aea 3519ac_exeext=$ac_cv_exeext
2f1a1aea 3520
0710d850 3521rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2f1a1aea 3522ac_clean_files=$ac_clean_files_save
1ef0423a 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
0710d850 3524$as_echo_n "checking for suffix of executables... " >&6; }
1ef0423a 3525if { { ac_try="$ac_link"
7fbd9d09
FCE
3526case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529esac
1ef0423a
FCE
3530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531$as_echo "$ac_try_echo"; } >&5
7fbd9d09 3532 (eval "$ac_link") 2>&5
2f1a1aea 3533 ac_status=$?
1ef0423a
FCE
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; then :
2f1a1aea
FCE
3536 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3537# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3538# work properly (i.e., refer to `conftest.exe'), while it won't with
3539# `rm'.
3540for ac_file in conftest.exe conftest conftest.*; do
3541 test -f "$ac_file" || continue
3542 case $ac_file in
0710d850 3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2f1a1aea 3544 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2f1a1aea
FCE
3545 break;;
3546 * ) break;;
3547 esac
3548done
3549else
1ef0423a 3550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 3551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
3552as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3553See \`config.log' for more details" "$LINENO" 5; }
2f1a1aea 3554fi
1ef0423a
FCE
3555rm -f conftest conftest$ac_cv_exeext
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
0710d850 3557$as_echo "$ac_cv_exeext" >&6; }
2f1a1aea
FCE
3558
3559rm -f conftest.$ac_ext
3560EXEEXT=$ac_cv_exeext
3561ac_exeext=$EXEEXT
1ef0423a
FCE
3562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563/* end confdefs.h. */
3564#include <stdio.h>
3565int
3566main ()
3567{
3568FILE *f = fopen ("conftest.out", "w");
3569 return ferror (f) || fclose (f) != 0;
3570
3571 ;
3572 return 0;
3573}
3574_ACEOF
3575ac_clean_files="$ac_clean_files conftest.out"
3576# Check that the compiler produces executables we can run. If not, either
3577# the compiler is broken, or we cross compile.
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3579$as_echo_n "checking whether we are cross compiling... " >&6; }
3580if test "$cross_compiling" != yes; then
3581 { { ac_try="$ac_link"
3582case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585esac
3586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587$as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link") 2>&5
3589 ac_status=$?
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }
3592 if { ac_try='./conftest$ac_cv_exeext'
3593 { { case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596esac
3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598$as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_try") 2>&5
3600 ac_status=$?
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; }; then
3603 cross_compiling=no
3604 else
3605 if test "$cross_compiling" = maybe; then
3606 cross_compiling=yes
3607 else
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5 3610as_fn_error $? "cannot run C compiled programs.
1ef0423a 3611If you meant to cross compile, use \`--host'.
5d4aa1f5 3612See \`config.log' for more details" "$LINENO" 5; }
1ef0423a
FCE
3613 fi
3614 fi
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3617$as_echo "$cross_compiling" >&6; }
3618
3619rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3620ac_clean_files=$ac_clean_files_save
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
0710d850 3622$as_echo_n "checking for suffix of object files... " >&6; }
c3de29bd 3623if ${ac_cv_objext+:} false; then :
0710d850 3624 $as_echo_n "(cached) " >&6
2f1a1aea 3625else
1ef0423a 3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea
FCE
3627/* end confdefs.h. */
3628
3629int
3630main ()
3631{
3632
3633 ;
3634 return 0;
3635}
3636_ACEOF
3637rm -f conftest.o conftest.obj
1ef0423a 3638if { { ac_try="$ac_compile"
7fbd9d09
FCE
3639case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642esac
1ef0423a
FCE
3643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644$as_echo "$ac_try_echo"; } >&5
7fbd9d09 3645 (eval "$ac_compile") 2>&5
2f1a1aea 3646 ac_status=$?
1ef0423a
FCE
3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648 test $ac_status = 0; }; then :
7fbd9d09
FCE
3649 for ac_file in conftest.o conftest.obj conftest.*; do
3650 test -f "$ac_file" || continue;
2f1a1aea 3651 case $ac_file in
0710d850 3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2f1a1aea
FCE
3653 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3654 break;;
3655 esac
3656done
3657else
0710d850 3658 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
1ef0423a 3661{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 3662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
3663as_fn_error $? "cannot compute suffix of object files: cannot compile
3664See \`config.log' for more details" "$LINENO" 5; }
2f1a1aea 3665fi
2f1a1aea
FCE
3666rm -f conftest.$ac_cv_objext conftest.$ac_ext
3667fi
1ef0423a 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
0710d850 3669$as_echo "$ac_cv_objext" >&6; }
2f1a1aea
FCE
3670OBJEXT=$ac_cv_objext
3671ac_objext=$OBJEXT
1ef0423a 3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
0710d850 3673$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
c3de29bd 3674if ${ac_cv_c_compiler_gnu+:} false; then :
0710d850 3675 $as_echo_n "(cached) " >&6
2f1a1aea 3676else
1ef0423a 3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea
FCE
3678/* end confdefs.h. */
3679
3680int
3681main ()
3682{
3683#ifndef __GNUC__
3684 choke me
3685#endif
3686
3687 ;
3688 return 0;
3689}
3690_ACEOF
1ef0423a 3691if ac_fn_c_try_compile "$LINENO"; then :
2f1a1aea
FCE
3692 ac_compiler_gnu=yes
3693else
1ef0423a 3694 ac_compiler_gnu=no
2f1a1aea 3695fi
7fbd9d09 3696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
3697ac_cv_c_compiler_gnu=$ac_compiler_gnu
3698
3699fi
1ef0423a 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
0710d850
DS
3701$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3702if test $ac_compiler_gnu = yes; then
3703 GCC=yes
3704else
3705 GCC=
3706fi
2f1a1aea
FCE
3707ac_test_CFLAGS=${CFLAGS+set}
3708ac_save_CFLAGS=$CFLAGS
1ef0423a 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
0710d850 3710$as_echo_n "checking whether $CC accepts -g... " >&6; }
c3de29bd 3711if ${ac_cv_prog_cc_g+:} false; then :
0710d850 3712 $as_echo_n "(cached) " >&6
2f1a1aea 3713else
7fbd9d09
FCE
3714 ac_save_c_werror_flag=$ac_c_werror_flag
3715 ac_c_werror_flag=yes
3716 ac_cv_prog_cc_g=no
3717 CFLAGS="-g"
1ef0423a 3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea
FCE
3719/* end confdefs.h. */
3720
3721int
3722main ()
3723{
3724
3725 ;
3726 return 0;
3727}
3728_ACEOF
1ef0423a 3729if ac_fn_c_try_compile "$LINENO"; then :
7fbd9d09
FCE
3730 ac_cv_prog_cc_g=yes
3731else
1ef0423a
FCE
3732 CFLAGS=""
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7fbd9d09
FCE
3734/* end confdefs.h. */
3735
3736int
3737main ()
3738{
3739
3740 ;
3741 return 0;
3742}
3743_ACEOF
1ef0423a 3744if ac_fn_c_try_compile "$LINENO"; then :
5e5aee9f 3745
1ef0423a
FCE
3746else
3747 ac_c_werror_flag=$ac_save_c_werror_flag
7fbd9d09 3748 CFLAGS="-g"
1ef0423a 3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7fbd9d09
FCE
3750/* end confdefs.h. */
3751
3752int
3753main ()
3754{
3755
3756 ;
3757 return 0;
3758}
3759_ACEOF
1ef0423a 3760if ac_fn_c_try_compile "$LINENO"; then :
2f1a1aea 3761 ac_cv_prog_cc_g=yes
7fbd9d09 3762fi
7fbd9d09 3763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea 3764fi
7fbd9d09
FCE
3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766fi
7fbd9d09
FCE
3767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 ac_c_werror_flag=$ac_save_c_werror_flag
2f1a1aea 3769fi
1ef0423a 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
0710d850 3771$as_echo "$ac_cv_prog_cc_g" >&6; }
2f1a1aea
FCE
3772if test "$ac_test_CFLAGS" = set; then
3773 CFLAGS=$ac_save_CFLAGS
3774elif test $ac_cv_prog_cc_g = yes; then
3775 if test "$GCC" = yes; then
3776 CFLAGS="-g -O2"
3777 else
3778 CFLAGS="-g"
3779 fi
3780else
3781 if test "$GCC" = yes; then
3782 CFLAGS="-O2"
3783 else
3784 CFLAGS=
3785 fi
3786fi
1ef0423a 3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
0710d850 3788$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
c3de29bd 3789if ${ac_cv_prog_cc_c89+:} false; then :
0710d850 3790 $as_echo_n "(cached) " >&6
2f1a1aea 3791else
7fbd9d09 3792 ac_cv_prog_cc_c89=no
2f1a1aea 3793ac_save_CC=$CC
1ef0423a 3794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea
FCE
3795/* end confdefs.h. */
3796#include <stdarg.h>
3797#include <stdio.h>
3798#include <sys/types.h>
3799#include <sys/stat.h>
3800/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3801struct buf { int x; };
3802FILE * (*rcsopen) (struct buf *, struct stat *, int);
3803static char *e (p, i)
3804 char **p;
3805 int i;
3806{
3807 return p[i];
3808}
3809static char *f (char * (*g) (char **, int), char **p, ...)
3810{
3811 char *s;
3812 va_list v;
3813 va_start (v,p);
3814 s = g (p, va_arg (v,int));
3815 va_end (v);
3816 return s;
3817}
3818
3819/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3820 function prototypes and stuff, but not '\xHH' hex character constants.
3821 These don't provoke an error unfortunately, instead are silently treated
7fbd9d09 3822 as 'x'. The following induces an error, until -std is added to get
2f1a1aea
FCE
3823 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3824 array size at least. It's necessary to write '\x00'==0 to get something
7fbd9d09 3825 that's true only with -std. */
2f1a1aea
FCE
3826int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3827
7fbd9d09
FCE
3828/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3829 inside strings and character constants. */
3830#define FOO(x) 'x'
3831int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3832
2f1a1aea
FCE
3833int test (int i, double x);
3834struct s1 {int (*f) (int a);};
3835struct s2 {int (*f) (double a);};
3836int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3837int argc;
3838char **argv;
3839int
3840main ()
3841{
3842return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3843 ;
3844 return 0;
3845}
3846_ACEOF
7fbd9d09
FCE
3847for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3848 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2f1a1aea
FCE
3849do
3850 CC="$ac_save_CC $ac_arg"
1ef0423a 3851 if ac_fn_c_try_compile "$LINENO"; then :
7fbd9d09 3852 ac_cv_prog_cc_c89=$ac_arg
2f1a1aea 3853fi
7fbd9d09
FCE
3854rm -f core conftest.err conftest.$ac_objext
3855 test "x$ac_cv_prog_cc_c89" != "xno" && break
2f1a1aea 3856done
7fbd9d09 3857rm -f conftest.$ac_ext
2f1a1aea
FCE
3858CC=$ac_save_CC
3859
3860fi
7fbd9d09
FCE
3861# AC_CACHE_VAL
3862case "x$ac_cv_prog_cc_c89" in
3863 x)
1ef0423a 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
0710d850 3865$as_echo "none needed" >&6; } ;;
7fbd9d09 3866 xno)
1ef0423a 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
0710d850 3868$as_echo "unsupported" >&6; } ;;
2f1a1aea 3869 *)
7fbd9d09 3870 CC="$CC $ac_cv_prog_cc_c89"
1ef0423a 3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
0710d850 3872$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2f1a1aea 3873esac
1ef0423a 3874if test "x$ac_cv_prog_cc_c89" != xno; then :
2f1a1aea 3875
1ef0423a 3876fi
818ba2bc 3877
818ba2bc
MW
3878ac_ext=c
3879ac_cpp='$CPP $CPPFLAGS'
3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882ac_compiler_gnu=$ac_cv_c_compiler_gnu
818ba2bc 3883
8f223b3e 3884depcc="$CC" am_compiler_list=
2f1a1aea 3885
1ef0423a 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
0710d850 3887$as_echo_n "checking dependency style of $depcc... " >&6; }
c3de29bd 3888if ${am_cv_CC_dependencies_compiler_type+:} false; then :
0710d850 3889 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3890else
3891 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3892 # We make a subdir and do the tests there. Otherwise we can end up
3893 # making bogus files that we don't know about and never remove. For
3894 # instance it was reported that on HP-UX the gcc test will end up
3895 # making a dummy file named `D' -- because `-MD' means `put the output
3896 # in D'.
3897 mkdir conftest.dir
3898 # Copy depcomp to subdir because otherwise we won't find it if we're
3899 # using a relative directory.
3900 cp "$am_depcomp" conftest.dir
3901 cd conftest.dir
3902 # We will build objects and dependencies in a subdirectory because
3903 # it helps to detect inapplicable dependency modes. For instance
3904 # both Tru64's cc and ICC support -MD to output dependencies as a
3905 # side effect of compilation, but ICC will put the dependencies in
3906 # the current directory while Tru64 will put them in the object
3907 # directory.
3908 mkdir sub
3909
3910 am_cv_CC_dependencies_compiler_type=none
3911 if test "$am_compiler_list" = ""; then
3912 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3913 fi
0710d850
DS
3914 am__universal=false
3915 case " $depcc " in #(
3916 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3917 esac
3918
2f1a1aea
FCE
3919 for depmode in $am_compiler_list; do
3920 # Setup a source with many dependencies, because some compilers
3921 # like to wrap large dependency lists on column 80 (with \), and
3922 # we should not choose a depcomp mode which is confused by this.
3923 #
3924 # We need to recreate these files for each test, as the compiler may
3925 # overwrite some of them when testing with obscure command lines.
3926 # This happens at least with the AIX C compiler.
3927 : > sub/conftest.c
3928 for i in 1 2 3 4 5 6; do
3929 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3930 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3931 # Solaris 8's {/usr,}/bin/sh.
3932 touch sub/conftst$i.h
3933 done
3934 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3935
0710d850
DS
3936 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3937 # mode. It turns out that the SunPro C++ compiler does not properly
3938 # handle `-M -o', and we need to detect this. Also, some Intel
3939 # versions had trouble with output in subdirs
3940 am__obj=sub/conftest.${OBJEXT-o}
3941 am__minus_obj="-o $am__obj"
2f1a1aea 3942 case $depmode in
0710d850
DS
3943 gcc)
3944 # This depmode causes a compiler race in universal mode.
3945 test "$am__universal" = false || continue
3946 ;;
2f1a1aea
FCE
3947 nosideeffect)
3948 # after this tag, mechanisms are not by side-effect, so they'll
3949 # only be used when explicitly requested
3950 if test "x$enable_dependency_tracking" = xyes; then
3951 continue
3952 else
3953 break
3954 fi
3955 ;;
0710d850
DS
3956 msvisualcpp | msvcmsys)
3957 # This compiler won't grok `-c -o', but also, the minuso test has
3958 # not run yet. These depmodes are late enough in the game, and
3959 # so weak that their functioning should not be impacted.
3960 am__obj=conftest.${OBJEXT-o}
3961 am__minus_obj=
3962 ;;
2f1a1aea
FCE
3963 none) break ;;
3964 esac
2f1a1aea 3965 if depmode=$depmode \
0710d850 3966 source=sub/conftest.c object=$am__obj \
2f1a1aea 3967 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
0710d850 3968 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2f1a1aea 3969 >/dev/null 2>conftest.err &&
7fbd9d09 3970 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea 3971 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
0710d850 3972 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
3973 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3974 # icc doesn't choke on unknown options, it will just issue warnings
3975 # or remarks (even with -Werror). So we grep stderr for any message
3976 # that says an option was ignored or not supported.
3977 # When given -MP, icc 7.0 and 7.1 complain thusly:
3978 # icc: Command line warning: ignoring option '-M'; no argument required
3979 # The diagnosis changed in icc 8.0:
3980 # icc: Command line remark: option '-MP' not supported
3981 if (grep 'ignoring option' conftest.err ||
3982 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3983 am_cv_CC_dependencies_compiler_type=$depmode
3984 break
3985 fi
3986 fi
3987 done
3988
3989 cd ..
3990 rm -rf conftest.dir
3991else
3992 am_cv_CC_dependencies_compiler_type=none
3993fi
3994
3995fi
1ef0423a 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
0710d850 3997$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
3998CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3999
7fbd9d09 4000 if
2f1a1aea
FCE
4001 test "x$enable_dependency_tracking" != xno \
4002 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4003 am__fastdepCC_TRUE=
4004 am__fastdepCC_FALSE='#'
4005else
4006 am__fastdepCC_TRUE='#'
4007 am__fastdepCC_FALSE=
4008fi
4009
4010
8f223b3e
FCE
4011
4012ac_ext=c
4013ac_cpp='$CPP $CPPFLAGS'
4014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4018$as_echo_n "checking how to run the C preprocessor... " >&6; }
4019# On Suns, sometimes $CPP names a directory.
4020if test -n "$CPP" && test -d "$CPP"; then
4021 CPP=
4022fi
4023if test -z "$CPP"; then
c3de29bd 4024 if ${ac_cv_prog_CPP+:} false; then :
0710d850 4025 $as_echo_n "(cached) " >&6
2f1a1aea 4026else
8f223b3e
FCE
4027 # Double quotes because CPP needs to be expanded
4028 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4029 do
4030 ac_preproc_ok=false
4031for ac_c_preproc_warn_flag in '' yes
2f1a1aea 4032do
8f223b3e
FCE
4033 # Use a header file that comes with gcc, so configuring glibc
4034 # with a fresh cross-compiler works.
4035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4036 # <limits.h> exists even on freestanding compilers.
4037 # On the NeXT, cc -E runs the code through the compiler's parser,
4038 # not just through cpp. "Syntax error" is here to catch this case.
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040/* end confdefs.h. */
4041#ifdef __STDC__
4042# include <limits.h>
4043#else
4044# include <assert.h>
4045#endif
4046 Syntax error
4047_ACEOF
4048if ac_fn_c_try_cpp "$LINENO"; then :
2f1a1aea 4049
8f223b3e
FCE
4050else
4051 # Broken: fails on valid input.
4052continue
2f1a1aea 4053fi
c3de29bd 4054rm -f conftest.err conftest.i conftest.$ac_ext
8f223b3e
FCE
4055
4056 # OK, works on sane cases. Now check whether nonexistent headers
4057 # can be detected and how.
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059/* end confdefs.h. */
4060#include <ac_nonexistent.h>
4061_ACEOF
4062if ac_fn_c_try_cpp "$LINENO"; then :
4063 # Broken: success on invalid input.
4064continue
2f1a1aea 4065else
8f223b3e
FCE
4066 # Passes both tests.
4067ac_preproc_ok=:
4068break
4069fi
c3de29bd 4070rm -f conftest.err conftest.i conftest.$ac_ext
8f223b3e
FCE
4071
4072done
4073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
c3de29bd 4074rm -f conftest.i conftest.err conftest.$ac_ext
8f223b3e
FCE
4075if $ac_preproc_ok; then :
4076 break
2f1a1aea
FCE
4077fi
4078
8f223b3e
FCE
4079 done
4080 ac_cv_prog_CPP=$CPP
7fbd9d09 4081
2f1a1aea 4082fi
8f223b3e 4083 CPP=$ac_cv_prog_CPP
2f1a1aea 4084else
8f223b3e
FCE
4085 ac_cv_prog_CPP=$CPP
4086fi
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4088$as_echo "$CPP" >&6; }
4089ac_preproc_ok=false
4090for ac_c_preproc_warn_flag in '' yes
2f1a1aea 4091do
8f223b3e
FCE
4092 # Use a header file that comes with gcc, so configuring glibc
4093 # with a fresh cross-compiler works.
4094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4095 # <limits.h> exists even on freestanding compilers.
4096 # On the NeXT, cc -E runs the code through the compiler's parser,
4097 # not just through cpp. "Syntax error" is here to catch this case.
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099/* end confdefs.h. */
4100#ifdef __STDC__
4101# include <limits.h>
4102#else
4103# include <assert.h>
4104#endif
4105 Syntax error
4106_ACEOF
4107if ac_fn_c_try_cpp "$LINENO"; then :
2f1a1aea 4108
2f1a1aea 4109else
8f223b3e
FCE
4110 # Broken: fails on valid input.
4111continue
2f1a1aea 4112fi
c3de29bd 4113rm -f conftest.err conftest.i conftest.$ac_ext
2f1a1aea 4114
8f223b3e
FCE
4115 # OK, works on sane cases. Now check whether nonexistent headers
4116 # can be detected and how.
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h. */
4119#include <ac_nonexistent.h>
4120_ACEOF
4121if ac_fn_c_try_cpp "$LINENO"; then :
4122 # Broken: success on invalid input.
4123continue
4124else
4125 # Passes both tests.
4126ac_preproc_ok=:
4127break
4128fi
c3de29bd 4129rm -f conftest.err conftest.i conftest.$ac_ext
7fbd9d09 4130
2f1a1aea 4131done
8f223b3e 4132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
c3de29bd 4133rm -f conftest.i conftest.err conftest.$ac_ext
8f223b3e 4134if $ac_preproc_ok; then :
2f1a1aea 4135
8f223b3e
FCE
4136else
4137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
4139as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4140See \`config.log' for more details" "$LINENO" 5; }
2f1a1aea
FCE
4141fi
4142
8f223b3e
FCE
4143ac_ext=c
4144ac_cpp='$CPP $CPPFLAGS'
4145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148
4149
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4151$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
c3de29bd 4152if ${ac_cv_path_GREP+:} false; then :
8f223b3e
FCE
4153 $as_echo_n "(cached) " >&6
4154else
4155 if test -z "$GREP"; then
4156 ac_path_GREP_found=false
4157 # Loop through the user's path and test for each of PROGNAME-LIST
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4160do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_prog in grep ggrep; do
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4166 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4167# Check for GNU ac_path_GREP and select it if it is found.
4168 # Check for GNU $ac_path_GREP
4169case `"$ac_path_GREP" --version 2>&1` in
4170*GNU*)
4171 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4172*)
4173 ac_count=0
4174 $as_echo_n 0123456789 >"conftest.in"
4175 while :
4176 do
4177 cat "conftest.in" "conftest.in" >"conftest.tmp"
4178 mv "conftest.tmp" "conftest.in"
4179 cp "conftest.in" "conftest.nl"
4180 $as_echo 'GREP' >> "conftest.nl"
4181 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4183 as_fn_arith $ac_count + 1 && ac_count=$as_val
4184 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4185 # Best one so far, save it but keep looking for a better one
4186 ac_cv_path_GREP="$ac_path_GREP"
4187 ac_path_GREP_max=$ac_count
4188 fi
4189 # 10*(2^10) chars as input seems more than enough
4190 test $ac_count -gt 10 && break
4191 done
4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5e5aee9f 4193esac
8f223b3e
FCE
4194
4195 $ac_path_GREP_found && break 3
4196 done
4197 done
4198 done
4199IFS=$as_save_IFS
4200 if test -z "$ac_cv_path_GREP"; then
5d4aa1f5 4201 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1ef0423a 4202 fi
8f223b3e
FCE
4203else
4204 ac_cv_path_GREP=$GREP
4205fi
2f1a1aea 4206
8f223b3e
FCE
4207fi
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4209$as_echo "$ac_cv_path_GREP" >&6; }
4210 GREP="$ac_cv_path_GREP"
4211
4212
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4214$as_echo_n "checking for egrep... " >&6; }
c3de29bd 4215if ${ac_cv_path_EGREP+:} false; then :
8f223b3e
FCE
4216 $as_echo_n "(cached) " >&6
4217else
4218 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4219 then ac_cv_path_EGREP="$GREP -E"
4220 else
4221 if test -z "$EGREP"; then
4222 ac_path_EGREP_found=false
4223 # Loop through the user's path and test for each of PROGNAME-LIST
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4226do
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_prog in egrep; do
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4232 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4233# Check for GNU ac_path_EGREP and select it if it is found.
4234 # Check for GNU $ac_path_EGREP
4235case `"$ac_path_EGREP" --version 2>&1` in
4236*GNU*)
4237 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4238*)
4239 ac_count=0
4240 $as_echo_n 0123456789 >"conftest.in"
4241 while :
4242 do
4243 cat "conftest.in" "conftest.in" >"conftest.tmp"
4244 mv "conftest.tmp" "conftest.in"
4245 cp "conftest.in" "conftest.nl"
4246 $as_echo 'EGREP' >> "conftest.nl"
4247 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4249 as_fn_arith $ac_count + 1 && ac_count=$as_val
4250 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4251 # Best one so far, save it but keep looking for a better one
4252 ac_cv_path_EGREP="$ac_path_EGREP"
4253 ac_path_EGREP_max=$ac_count
4254 fi
4255 # 10*(2^10) chars as input seems more than enough
4256 test $ac_count -gt 10 && break
4257 done
4258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4259esac
4260
4261 $ac_path_EGREP_found && break 3
4262 done
4263 done
4264 done
4265IFS=$as_save_IFS
4266 if test -z "$ac_cv_path_EGREP"; then
5d4aa1f5 4267 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8f223b3e
FCE
4268 fi
4269else
4270 ac_cv_path_EGREP=$EGREP
4271fi
4272
4273 fi
4274fi
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4276$as_echo "$ac_cv_path_EGREP" >&6; }
4277 EGREP="$ac_cv_path_EGREP"
4278
4279
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4281$as_echo_n "checking for ANSI C header files... " >&6; }
c3de29bd 4282if ${ac_cv_header_stdc+:} false; then :
0710d850 4283 $as_echo_n "(cached) " >&6
2f1a1aea 4284else
1ef0423a 4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 4286/* end confdefs.h. */
8f223b3e
FCE
4287#include <stdlib.h>
4288#include <stdarg.h>
4289#include <string.h>
4290#include <float.h>
2f1a1aea
FCE
4291
4292int
4293main ()
4294{
2f1a1aea
FCE
4295
4296 ;
4297 return 0;
4298}
4299_ACEOF
8f223b3e
FCE
4300if ac_fn_c_try_compile "$LINENO"; then :
4301 ac_cv_header_stdc=yes
2f1a1aea 4302else
8f223b3e 4303 ac_cv_header_stdc=no
2f1a1aea 4304fi
7fbd9d09 4305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea 4306
8f223b3e
FCE
4307if test $ac_cv_header_stdc = yes; then
4308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310/* end confdefs.h. */
4311#include <string.h>
4312
4313_ACEOF
4314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4315 $EGREP "memchr" >/dev/null 2>&1; then :
4316
0710d850 4317else
8f223b3e 4318 ac_cv_header_stdc=no
0710d850 4319fi
8f223b3e 4320rm -f conftest*
2f1a1aea 4321
8f223b3e
FCE
4322fi
4323
4324if test $ac_cv_header_stdc = yes; then
4325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h. */
4328#include <stdlib.h>
2f1a1aea 4329
2f1a1aea 4330_ACEOF
8f223b3e
FCE
4331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4332 $EGREP "free" >/dev/null 2>&1; then :
4333
2f1a1aea 4334else
8f223b3e
FCE
4335 ac_cv_header_stdc=no
4336fi
4337rm -f conftest*
4338
4339fi
4340
4341if test $ac_cv_header_stdc = yes; then
4342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4343 if test "$cross_compiling" = yes; then :
4344 :
4345else
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 4347/* end confdefs.h. */
8f223b3e
FCE
4348#include <ctype.h>
4349#include <stdlib.h>
4350#if ((' ' & 0x0FF) == 0x020)
4351# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4352# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4353#else
4354# define ISLOWER(c) \
4355 (('a' <= (c) && (c) <= 'i') \
4356 || ('j' <= (c) && (c) <= 'r') \
4357 || ('s' <= (c) && (c) <= 'z'))
4358# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4359#endif
7fbd9d09 4360
8f223b3e 4361#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2f1a1aea
FCE
4362int
4363main ()
4364{
8f223b3e
FCE
4365 int i;
4366 for (i = 0; i < 256; i++)
4367 if (XOR (islower (i), ISLOWER (i))
4368 || toupper (i) != TOUPPER (i))
4369 return 2;
2f1a1aea
FCE
4370 return 0;
4371}
4372_ACEOF
8f223b3e 4373if ac_fn_c_try_run "$LINENO"; then :
5e5aee9f 4374
1ef0423a 4375else
8f223b3e
FCE
4376 ac_cv_header_stdc=no
4377fi
4378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4379 conftest.$ac_objext conftest.beam conftest.$ac_ext
4380fi
4381
4382fi
4383fi
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4385$as_echo "$ac_cv_header_stdc" >&6; }
4386if test $ac_cv_header_stdc = yes; then
4387
4388$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4389
4390fi
4391
4392# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4393for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4394 inttypes.h stdint.h unistd.h
4395do :
4396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4397ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4398"
5d4aa1f5 4399if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8f223b3e
FCE
4400 cat >>confdefs.h <<_ACEOF
4401#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4402_ACEOF
4403
4404fi
4405
4406done
4407
4408
4409
4410 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
c3de29bd 4411if test "x$ac_cv_header_minix_config_h" = xyes; then :
8f223b3e
FCE
4412 MINIX=yes
4413else
4414 MINIX=
4415fi
4416
4417
4418 if test "$MINIX" = yes; then
4419
4420$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4421
4422
4423$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4424
4425
4426$as_echo "#define _MINIX 1" >>confdefs.h
4427
4428 fi
4429
4430
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4432$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
c3de29bd 4433if ${ac_cv_safe_to_define___extensions__+:} false; then :
8f223b3e
FCE
4434 $as_echo_n "(cached) " >&6
4435else
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 4437/* end confdefs.h. */
7fbd9d09 4438
8f223b3e
FCE
4439# define __EXTENSIONS__ 1
4440 $ac_includes_default
2f1a1aea
FCE
4441int
4442main ()
4443{
7fbd9d09 4444
2f1a1aea
FCE
4445 ;
4446 return 0;
4447}
4a3c19da 4448_ACEOF
8f223b3e
FCE
4449if ac_fn_c_try_compile "$LINENO"; then :
4450 ac_cv_safe_to_define___extensions__=yes
4451else
4452 ac_cv_safe_to_define___extensions__=no
5e0d2ebf 4453fi
7fbd9d09 4454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fbd9d09 4455fi
8f223b3e
FCE
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4457$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4458 test $ac_cv_safe_to_define___extensions__ = yes &&
4459 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
2f1a1aea 4460
8f223b3e 4461 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
2f1a1aea 4462
8f223b3e 4463 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
2f1a1aea 4464
8f223b3e 4465 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
0710d850 4466
8f223b3e 4467 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
2f1a1aea 4468
2f1a1aea 4469
8f223b3e
FCE
4470mkdir_p="$MKDIR_P"
4471case $mkdir_p in
4472 [\\/$]* | ?:[\\/]*) ;;
4473 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4474esac
2f1a1aea 4475
2f1a1aea 4476
8f223b3e
FCE
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4478$as_echo_n "checking whether ln -s works... " >&6; }
4479LN_S=$as_ln_s
4480if test "$LN_S" = "ln -s"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4482$as_echo "yes" >&6; }
2f1a1aea 4483else
8f223b3e
FCE
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4485$as_echo "no, using $LN_S" >&6; }
2f1a1aea
FCE
4486fi
4487
2f1a1aea
FCE
4488ac_ext=c
4489ac_cpp='$CPP $CPPFLAGS'
4490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492ac_compiler_gnu=$ac_cv_c_compiler_gnu
8f223b3e
FCE
4493if test -n "$ac_tool_prefix"; then
4494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4495set dummy ${ac_tool_prefix}gcc; ac_word=$2
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 4498if ${ac_cv_prog_CC+:} false; then :
0710d850 4499 $as_echo_n "(cached) " >&6
2f1a1aea 4500else
8f223b3e
FCE
4501 if test -n "$CC"; then
4502 ac_cv_prog_CC="$CC" # Let the user override the test.
2f1a1aea
FCE
4503else
4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
1ef0423a 4509 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4511 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1ef0423a 4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4513 break 2
4514 fi
4515done
1ef0423a 4516 done
7fbd9d09 4517IFS=$as_save_IFS
2f1a1aea
FCE
4518
4519fi
4520fi
4521CC=$ac_cv_prog_CC
4522if test -n "$CC"; then
1ef0423a 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 4524$as_echo "$CC" >&6; }
2f1a1aea 4525else
1ef0423a 4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 4527$as_echo "no" >&6; }
2f1a1aea
FCE
4528fi
4529
7fbd9d09 4530
2f1a1aea
FCE
4531fi
4532if test -z "$ac_cv_prog_CC"; then
4533 ac_ct_CC=$CC
4534 # Extract the first word of "gcc", so it can be a program name with args.
4535set dummy gcc; ac_word=$2
1ef0423a 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 4537$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 4538if ${ac_cv_prog_ac_ct_CC+:} false; then :
0710d850 4539 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4540else
4541 if test -n "$ac_ct_CC"; then
4542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4543else
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
1ef0423a 4549 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4551 ac_cv_prog_ac_ct_CC="gcc"
1ef0423a 4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4553 break 2
4554 fi
4555done
1ef0423a 4556 done
7fbd9d09 4557IFS=$as_save_IFS
2f1a1aea
FCE
4558
4559fi
4560fi
4561ac_ct_CC=$ac_cv_prog_ac_ct_CC
4562if test -n "$ac_ct_CC"; then
1ef0423a 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
0710d850 4564$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 4565else
1ef0423a 4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 4567$as_echo "no" >&6; }
2f1a1aea
FCE
4568fi
4569
7fbd9d09
FCE
4570 if test "x$ac_ct_CC" = x; then
4571 CC=""
4572 else
4573 case $cross_compiling:$ac_tool_warned in
4574yes:)
1ef0423a 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 4576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
4577ac_tool_warned=yes ;;
4578esac
4579 CC=$ac_ct_CC
4580 fi
2f1a1aea
FCE
4581else
4582 CC="$ac_cv_prog_CC"
4583fi
4584
4585if test -z "$CC"; then
7fbd9d09
FCE
4586 if test -n "$ac_tool_prefix"; then
4587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2f1a1aea 4588set dummy ${ac_tool_prefix}cc; ac_word=$2
1ef0423a 4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 4590$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 4591if ${ac_cv_prog_CC+:} false; then :
0710d850 4592 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4593else
4594 if test -n "$CC"; then
4595 ac_cv_prog_CC="$CC" # Let the user override the test.
4596else
4597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
1ef0423a 4602 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4604 ac_cv_prog_CC="${ac_tool_prefix}cc"
1ef0423a 4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4606 break 2
4607 fi
4608done
1ef0423a 4609 done
7fbd9d09 4610IFS=$as_save_IFS
2f1a1aea
FCE
4611
4612fi
4613fi
4614CC=$ac_cv_prog_CC
4615if test -n "$CC"; then
1ef0423a 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 4617$as_echo "$CC" >&6; }
818ba2bc 4618else
1ef0423a 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 4620$as_echo "no" >&6; }
818ba2bc
MW
4621fi
4622
818ba2bc 4623
7fbd9d09 4624 fi
8ae7a94a
FCE
4625fi
4626if test -z "$CC"; then
4627 # Extract the first word of "cc", so it can be a program name with args.
4628set dummy cc; ac_word=$2
1ef0423a 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 4630$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 4631if ${ac_cv_prog_CC+:} false; then :
0710d850 4632 $as_echo_n "(cached) " >&6
8ae7a94a
FCE
4633else
4634 if test -n "$CC"; then
2f1a1aea
FCE
4635 ac_cv_prog_CC="$CC" # Let the user override the test.
4636else
4637 ac_prog_rejected=no
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
1ef0423a 4643 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea
FCE
4645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4646 ac_prog_rejected=yes
4647 continue
4648 fi
4649 ac_cv_prog_CC="cc"
1ef0423a 4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4651 break 2
4652 fi
4653done
1ef0423a 4654 done
7fbd9d09 4655IFS=$as_save_IFS
2f1a1aea
FCE
4656
4657if test $ac_prog_rejected = yes; then
4658 # We found a bogon in the path, so make sure we never use it.
4659 set dummy $ac_cv_prog_CC
4660 shift
4661 if test $# != 0; then
4662 # We chose a different compiler from the bogus one.
4663 # However, it has the same basename, so the bogon will be chosen
4664 # first if we set CC to just the basename; use the full file name.
4665 shift
4666 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4667 fi
4668fi
4669fi
4670fi
4671CC=$ac_cv_prog_CC
4672if test -n "$CC"; then
1ef0423a 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 4674$as_echo "$CC" >&6; }
2f1a1aea 4675else
1ef0423a 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 4677$as_echo "no" >&6; }
2f1a1aea
FCE
4678fi
4679
7fbd9d09 4680
2f1a1aea
FCE
4681fi
4682if test -z "$CC"; then
4683 if test -n "$ac_tool_prefix"; then
7fbd9d09 4684 for ac_prog in cl.exe
2f1a1aea
FCE
4685 do
4686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4687set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1ef0423a 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 4689$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 4690if ${ac_cv_prog_CC+:} false; then :
0710d850 4691 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4692else
4693 if test -n "$CC"; then
4694 ac_cv_prog_CC="$CC" # Let the user override the test.
4695else
4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
1ef0423a 4701 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4703 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1ef0423a 4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4705 break 2
4706 fi
4707done
1ef0423a 4708 done
7fbd9d09 4709IFS=$as_save_IFS
2f1a1aea
FCE
4710
4711fi
4712fi
4713CC=$ac_cv_prog_CC
4714if test -n "$CC"; then
1ef0423a 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 4716$as_echo "$CC" >&6; }
2f1a1aea 4717else
1ef0423a 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 4719$as_echo "no" >&6; }
2f1a1aea
FCE
4720fi
4721
7fbd9d09 4722
2f1a1aea
FCE
4723 test -n "$CC" && break
4724 done
4725fi
4726if test -z "$CC"; then
4727 ac_ct_CC=$CC
7fbd9d09 4728 for ac_prog in cl.exe
2f1a1aea
FCE
4729do
4730 # Extract the first word of "$ac_prog", so it can be a program name with args.
4731set dummy $ac_prog; ac_word=$2
1ef0423a 4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 4733$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 4734if ${ac_cv_prog_ac_ct_CC+:} false; then :
0710d850 4735 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4736else
4737 if test -n "$ac_ct_CC"; then
4738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4739else
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
1ef0423a 4745 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2f1a1aea 4747 ac_cv_prog_ac_ct_CC="$ac_prog"
1ef0423a 4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
4749 break 2
4750 fi
4751done
1ef0423a 4752 done
7fbd9d09 4753IFS=$as_save_IFS
2f1a1aea
FCE
4754
4755fi
4756fi
4757ac_ct_CC=$ac_cv_prog_ac_ct_CC
4758if test -n "$ac_ct_CC"; then
1ef0423a 4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
0710d850 4760$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 4761else
1ef0423a 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 4763$as_echo "no" >&6; }
2f1a1aea
FCE
4764fi
4765
7fbd9d09 4766
2f1a1aea
FCE
4767 test -n "$ac_ct_CC" && break
4768done
4769
7fbd9d09
FCE
4770 if test "x$ac_ct_CC" = x; then
4771 CC=""
4772 else
4773 case $cross_compiling:$ac_tool_warned in
4774yes:)
1ef0423a 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 4776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
4777ac_tool_warned=yes ;;
4778esac
4779 CC=$ac_ct_CC
4780 fi
2f1a1aea
FCE
4781fi
4782
4783fi
4784
4785
1ef0423a 4786test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 4787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
4788as_fn_error $? "no acceptable C compiler found in \$PATH
4789See \`config.log' for more details" "$LINENO" 5; }
2f1a1aea
FCE
4790
4791# Provide some information about the compiler.
1ef0423a 4792$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
0710d850
DS
4793set X $ac_compile
4794ac_compiler=$2
1ef0423a
FCE
4795for ac_option in --version -v -V -qversion; do
4796 { { ac_try="$ac_compiler $ac_option >&5"
5e5aee9f
FCE
4797case "(($ac_try" in
4798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799 *) ac_try_echo=$ac_try;;
4800esac
1ef0423a
FCE
4801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4802$as_echo "$ac_try_echo"; } >&5
4803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5e5aee9f 4804 ac_status=$?
1ef0423a
FCE
4805 if test -s conftest.err; then
4806 sed '10a\
4807... rest of stderr output deleted ...
4808 10q' conftest.err >conftest.er1
4809 cat conftest.er1 >&5
4810 fi
4811 rm -f conftest.er1 conftest.err
4812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4813 test $ac_status = 0; }
4814done
2f1a1aea 4815
1ef0423a 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
0710d850 4817$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
c3de29bd 4818if ${ac_cv_c_compiler_gnu+:} false; then :
0710d850 4819 $as_echo_n "(cached) " >&6
2f1a1aea 4820else
1ef0423a 4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea
FCE
4822/* end confdefs.h. */
4823
4824int
4825main ()
4826{
4827#ifndef __GNUC__
4828 choke me
4829#endif
4830
4831 ;
4832 return 0;
4833}
4834_ACEOF
1ef0423a 4835if ac_fn_c_try_compile "$LINENO"; then :
2f1a1aea
FCE
4836 ac_compiler_gnu=yes
4837else
1ef0423a 4838 ac_compiler_gnu=no
2f1a1aea 4839fi
7fbd9d09 4840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
4841ac_cv_c_compiler_gnu=$ac_compiler_gnu
4842
4843fi
1ef0423a 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
0710d850
DS
4845$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4846if test $ac_compiler_gnu = yes; then
4847 GCC=yes
4848else
4849 GCC=
4850fi
2f1a1aea
FCE
4851ac_test_CFLAGS=${CFLAGS+set}
4852ac_save_CFLAGS=$CFLAGS
1ef0423a 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
0710d850 4854$as_echo_n "checking whether $CC accepts -g... " >&6; }
c3de29bd 4855if ${ac_cv_prog_cc_g+:} false; then :
0710d850 4856 $as_echo_n "(cached) " >&6
2f1a1aea 4857else
7fbd9d09
FCE
4858 ac_save_c_werror_flag=$ac_c_werror_flag
4859 ac_c_werror_flag=yes
4860 ac_cv_prog_cc_g=no
4861 CFLAGS="-g"
1ef0423a 4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea
FCE
4863/* end confdefs.h. */
4864
4865int
4866main ()
4867{
4868
4869 ;
4870 return 0;
4871}
4872_ACEOF
1ef0423a 4873if ac_fn_c_try_compile "$LINENO"; then :
7fbd9d09
FCE
4874 ac_cv_prog_cc_g=yes
4875else
1ef0423a
FCE
4876 CFLAGS=""
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7fbd9d09
FCE
4878/* end confdefs.h. */
4879
4880int
4881main ()
4882{
4883
4884 ;
4885 return 0;
4886}
4887_ACEOF
1ef0423a 4888if ac_fn_c_try_compile "$LINENO"; then :
5e5aee9f 4889
1ef0423a
FCE
4890else
4891 ac_c_werror_flag=$ac_save_c_werror_flag
7fbd9d09 4892 CFLAGS="-g"
1ef0423a 4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7fbd9d09
FCE
4894/* end confdefs.h. */
4895
4896int
4897main ()
4898{
4899
4900 ;
4901 return 0;
4902}
4903_ACEOF
1ef0423a 4904if ac_fn_c_try_compile "$LINENO"; then :
5e0d2ebf 4905 ac_cv_prog_cc_g=yes
7fbd9d09 4906fi
7fbd9d09
FCE
4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908fi
7fbd9d09 4909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e0d2ebf 4910fi
7fbd9d09
FCE
4911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912 ac_c_werror_flag=$ac_save_c_werror_flag
70d28673 4913fi
1ef0423a 4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
0710d850 4915$as_echo "$ac_cv_prog_cc_g" >&6; }
70d28673
DS
4916if test "$ac_test_CFLAGS" = set; then
4917 CFLAGS=$ac_save_CFLAGS
4918elif test $ac_cv_prog_cc_g = yes; then
4919 if test "$GCC" = yes; then
4920 CFLAGS="-g -O2"
4921 else
4922 CFLAGS="-g"
4923 fi
4924else
4925 if test "$GCC" = yes; then
4926 CFLAGS="-O2"
4927 else
4928 CFLAGS=
4929 fi
4930fi
1ef0423a 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
0710d850 4932$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
c3de29bd 4933if ${ac_cv_prog_cc_c89+:} false; then :
0710d850 4934 $as_echo_n "(cached) " >&6
70d28673 4935else
7fbd9d09 4936 ac_cv_prog_cc_c89=no
70d28673 4937ac_save_CC=$CC
1ef0423a 4938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 4939/* end confdefs.h. */
70d28673
DS
4940#include <stdarg.h>
4941#include <stdio.h>
4942#include <sys/types.h>
4943#include <sys/stat.h>
4944/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4945struct buf { int x; };
4946FILE * (*rcsopen) (struct buf *, struct stat *, int);
4947static char *e (p, i)
4948 char **p;
4949 int i;
4950{
4951 return p[i];
4952}
4953static char *f (char * (*g) (char **, int), char **p, ...)
4954{
4955 char *s;
4956 va_list v;
4957 va_start (v,p);
4958 s = g (p, va_arg (v,int));
4959 va_end (v);
4960 return s;
4961}
4962
4963/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4964 function prototypes and stuff, but not '\xHH' hex character constants.
4965 These don't provoke an error unfortunately, instead are silently treated
7fbd9d09 4966 as 'x'. The following induces an error, until -std is added to get
70d28673
DS
4967 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4968 array size at least. It's necessary to write '\x00'==0 to get something
7fbd9d09 4969 that's true only with -std. */
70d28673
DS
4970int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4971
7fbd9d09
FCE
4972/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4973 inside strings and character constants. */
4974#define FOO(x) 'x'
4975int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4976
70d28673
DS
4977int test (int i, double x);
4978struct s1 {int (*f) (int a);};
4979struct s2 {int (*f) (double a);};
4980int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4981int argc;
4982char **argv;
2f1a1aea
FCE
4983int
4984main ()
4985{
70d28673 4986return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2f1a1aea
FCE
4987 ;
4988 return 0;
4989}
4990_ACEOF
7fbd9d09
FCE
4991for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4992 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
70d28673
DS
4993do
4994 CC="$ac_save_CC $ac_arg"
1ef0423a 4995 if ac_fn_c_try_compile "$LINENO"; then :
7fbd9d09 4996 ac_cv_prog_cc_c89=$ac_arg
2f1a1aea 4997fi
7fbd9d09
FCE
4998rm -f core conftest.err conftest.$ac_objext
4999 test "x$ac_cv_prog_cc_c89" != "xno" && break
2f1a1aea 5000done
7fbd9d09 5001rm -f conftest.$ac_ext
70d28673
DS
5002CC=$ac_save_CC
5003
2f1a1aea 5004fi
7fbd9d09
FCE
5005# AC_CACHE_VAL
5006case "x$ac_cv_prog_cc_c89" in
5007 x)
1ef0423a 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
0710d850 5009$as_echo "none needed" >&6; } ;;
7fbd9d09 5010 xno)
1ef0423a 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
0710d850 5012$as_echo "unsupported" >&6; } ;;
70d28673 5013 *)
7fbd9d09 5014 CC="$CC $ac_cv_prog_cc_c89"
1ef0423a 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
0710d850 5016$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
70d28673 5017esac
1ef0423a 5018if test "x$ac_cv_prog_cc_c89" != xno; then :
2f1a1aea 5019
1ef0423a 5020fi
2f1a1aea 5021
2f1a1aea
FCE
5022ac_ext=c
5023ac_cpp='$CPP $CPPFLAGS'
5024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026ac_compiler_gnu=$ac_cv_c_compiler_gnu
5027
5028depcc="$CC" am_compiler_list=
5029
1ef0423a 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
0710d850 5031$as_echo_n "checking dependency style of $depcc... " >&6; }
c3de29bd 5032if ${am_cv_CC_dependencies_compiler_type+:} false; then :
0710d850 5033 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5034else
5035 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5036 # We make a subdir and do the tests there. Otherwise we can end up
5037 # making bogus files that we don't know about and never remove. For
5038 # instance it was reported that on HP-UX the gcc test will end up
5039 # making a dummy file named `D' -- because `-MD' means `put the output
5040 # in D'.
5041 mkdir conftest.dir
5042 # Copy depcomp to subdir because otherwise we won't find it if we're
5043 # using a relative directory.
5044 cp "$am_depcomp" conftest.dir
5045 cd conftest.dir
5046 # We will build objects and dependencies in a subdirectory because
5047 # it helps to detect inapplicable dependency modes. For instance
5048 # both Tru64's cc and ICC support -MD to output dependencies as a
5049 # side effect of compilation, but ICC will put the dependencies in
5050 # the current directory while Tru64 will put them in the object
5051 # directory.
5052 mkdir sub
5053
5054 am_cv_CC_dependencies_compiler_type=none
5055 if test "$am_compiler_list" = ""; then
5056 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5057 fi
0710d850
DS
5058 am__universal=false
5059 case " $depcc " in #(
5060 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5061 esac
5062
2f1a1aea
FCE
5063 for depmode in $am_compiler_list; do
5064 # Setup a source with many dependencies, because some compilers
5065 # like to wrap large dependency lists on column 80 (with \), and
5066 # we should not choose a depcomp mode which is confused by this.
5067 #
5068 # We need to recreate these files for each test, as the compiler may
5069 # overwrite some of them when testing with obscure command lines.
5070 # This happens at least with the AIX C compiler.
5071 : > sub/conftest.c
5072 for i in 1 2 3 4 5 6; do
5073 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5074 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5075 # Solaris 8's {/usr,}/bin/sh.
5076 touch sub/conftst$i.h
5077 done
5078 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5079
0710d850
DS
5080 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5081 # mode. It turns out that the SunPro C++ compiler does not properly
5082 # handle `-M -o', and we need to detect this. Also, some Intel
5083 # versions had trouble with output in subdirs
5084 am__obj=sub/conftest.${OBJEXT-o}
5085 am__minus_obj="-o $am__obj"
2f1a1aea 5086 case $depmode in
0710d850
DS
5087 gcc)
5088 # This depmode causes a compiler race in universal mode.
5089 test "$am__universal" = false || continue
5090 ;;
2f1a1aea
FCE
5091 nosideeffect)
5092 # after this tag, mechanisms are not by side-effect, so they'll
5093 # only be used when explicitly requested
5094 if test "x$enable_dependency_tracking" = xyes; then
5095 continue
5096 else
5097 break
5098 fi
5099 ;;
0710d850
DS
5100 msvisualcpp | msvcmsys)
5101 # This compiler won't grok `-c -o', but also, the minuso test has
5102 # not run yet. These depmodes are late enough in the game, and
5103 # so weak that their functioning should not be impacted.
5104 am__obj=conftest.${OBJEXT-o}
5105 am__minus_obj=
5106 ;;
2f1a1aea
FCE
5107 none) break ;;
5108 esac
2f1a1aea 5109 if depmode=$depmode \
0710d850 5110 source=sub/conftest.c object=$am__obj \
2f1a1aea 5111 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
0710d850 5112 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2f1a1aea 5113 >/dev/null 2>conftest.err &&
7fbd9d09 5114 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea 5115 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
0710d850 5116 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
5117 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5118 # icc doesn't choke on unknown options, it will just issue warnings
5119 # or remarks (even with -Werror). So we grep stderr for any message
5120 # that says an option was ignored or not supported.
5121 # When given -MP, icc 7.0 and 7.1 complain thusly:
5122 # icc: Command line warning: ignoring option '-M'; no argument required
5123 # The diagnosis changed in icc 8.0:
5124 # icc: Command line remark: option '-MP' not supported
5125 if (grep 'ignoring option' conftest.err ||
5126 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5127 am_cv_CC_dependencies_compiler_type=$depmode
5128 break
5129 fi
5130 fi
5131 done
5132
5133 cd ..
5134 rm -rf conftest.dir
5135else
5136 am_cv_CC_dependencies_compiler_type=none
5137fi
5138
5139fi
1ef0423a 5140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
0710d850 5141$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
5142CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5143
7fbd9d09 5144 if
2f1a1aea
FCE
5145 test "x$enable_dependency_tracking" != xno \
5146 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5147 am__fastdepCC_TRUE=
5148 am__fastdepCC_FALSE='#'
5149else
5150 am__fastdepCC_TRUE='#'
5151 am__fastdepCC_FALSE=
5152fi
5153
5154
8f223b3e
FCE
5155ac_ext=cpp
5156ac_cpp='$CXXCPP $CPPFLAGS'
5157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5160if test -z "$CXX"; then
5161 if test -n "$CCC"; then
5162 CXX=$CCC
5163 else
5164 if test -n "$ac_tool_prefix"; then
5165 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5166 do
5167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5168set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5171if ${ac_cv_prog_CXX+:} false; then :
8f223b3e
FCE
5172 $as_echo_n "(cached) " >&6
5173else
5174 if test -n "$CXX"; then
5175 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188done
5189 done
5190IFS=$as_save_IFS
2f1a1aea 5191
8f223b3e
FCE
5192fi
5193fi
5194CXX=$ac_cv_prog_CXX
5195if test -n "$CXX"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5197$as_echo "$CXX" >&6; }
8ae7a94a 5198else
8f223b3e
FCE
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200$as_echo "no" >&6; }
8ae7a94a 5201fi
8f223b3e
FCE
5202
5203
5204 test -n "$CXX" && break
5205 done
5206fi
5207if test -z "$CXX"; then
5208 ac_ct_CXX=$CXX
5209 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5210do
5211 # Extract the first word of "$ac_prog", so it can be a program name with args.
5212set dummy $ac_prog; ac_word=$2
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5215if ${ac_cv_prog_ac_ct_CXX+:} false; then :
0710d850 5216 $as_echo_n "(cached) " >&6
8ae7a94a 5217else
8f223b3e
FCE
5218 if test -n "$ac_ct_CXX"; then
5219 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5220else
5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_ac_ct_CXX="$ac_prog"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232done
5233 done
5234IFS=$as_save_IFS
8ae7a94a 5235
8f223b3e
FCE
5236fi
5237fi
5238ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5239if test -n "$ac_ct_CXX"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5241$as_echo "$ac_ct_CXX" >&6; }
5242else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244$as_echo "no" >&6; }
5245fi
8ae7a94a 5246
8f223b3e
FCE
5247
5248 test -n "$ac_ct_CXX" && break
5249done
5250
5251 if test "x$ac_ct_CXX" = x; then
5252 CXX="g++"
5253 else
5254 case $cross_compiling:$ac_tool_warned in
5255yes:)
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5258ac_tool_warned=yes ;;
5259esac
5260 CXX=$ac_ct_CXX
5261 fi
5262fi
5263
5264 fi
5265fi
5266# Provide some information about the compiler.
5267$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5268set X $ac_compile
5269ac_compiler=$2
5270for ac_option in --version -v -V -qversion; do
5271 { { ac_try="$ac_compiler $ac_option >&5"
5272case "(($ac_try" in
7fbd9d09
FCE
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5275esac
1ef0423a
FCE
5276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5277$as_echo "$ac_try_echo"; } >&5
8f223b3e
FCE
5278 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5279 ac_status=$?
5280 if test -s conftest.err; then
5281 sed '10a\
5282... rest of stderr output deleted ...
5283 10q' conftest.err >conftest.er1
5284 cat conftest.er1 >&5
5285 fi
5286 rm -f conftest.er1 conftest.err
5287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5288 test $ac_status = 0; }
5289done
5290
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5292$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
c3de29bd 5293if ${ac_cv_cxx_compiler_gnu+:} false; then :
8f223b3e
FCE
5294 $as_echo_n "(cached) " >&6
5295else
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h. */
5298
5299int
5300main ()
5301{
5302#ifndef __GNUC__
5303 choke me
5304#endif
5305
5306 ;
5307 return 0;
5308}
5309_ACEOF
5310if ac_fn_cxx_try_compile "$LINENO"; then :
5311 ac_compiler_gnu=yes
5312else
5313 ac_compiler_gnu=no
5314fi
5315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5317
5318fi
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5320$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5321if test $ac_compiler_gnu = yes; then
5322 GXX=yes
5323else
5324 GXX=
5325fi
5326ac_test_CXXFLAGS=${CXXFLAGS+set}
5327ac_save_CXXFLAGS=$CXXFLAGS
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5329$as_echo_n "checking whether $CXX accepts -g... " >&6; }
c3de29bd 5330if ${ac_cv_prog_cxx_g+:} false; then :
8f223b3e
FCE
5331 $as_echo_n "(cached) " >&6
5332else
5333 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5334 ac_cxx_werror_flag=yes
5335 ac_cv_prog_cxx_g=no
5336 CXXFLAGS="-g"
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h. */
5339
5340int
5341main ()
5342{
5343
5344 ;
5345 return 0;
5346}
5347_ACEOF
5348if ac_fn_cxx_try_compile "$LINENO"; then :
5349 ac_cv_prog_cxx_g=yes
5350else
5351 CXXFLAGS=""
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h. */
5354
5355int
5356main ()
5357{
5358
5359 ;
5360 return 0;
5361}
5362_ACEOF
5363if ac_fn_cxx_try_compile "$LINENO"; then :
5364
5365else
5366 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5367 CXXFLAGS="-g"
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h. */
5370
5371int
5372main ()
5373{
5374
5375 ;
5376 return 0;
5377}
5378_ACEOF
5379if ac_fn_cxx_try_compile "$LINENO"; then :
5380 ac_cv_prog_cxx_g=yes
5381fi
5382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383fi
5384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385fi
5386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5390$as_echo "$ac_cv_prog_cxx_g" >&6; }
5391if test "$ac_test_CXXFLAGS" = set; then
5392 CXXFLAGS=$ac_save_CXXFLAGS
5393elif test $ac_cv_prog_cxx_g = yes; then
5394 if test "$GXX" = yes; then
5395 CXXFLAGS="-g -O2"
5396 else
5397 CXXFLAGS="-g"
5398 fi
5399else
5400 if test "$GXX" = yes; then
5401 CXXFLAGS="-O2"
5402 else
5403 CXXFLAGS=
5404 fi
5405fi
5406ac_ext=c
5407ac_cpp='$CPP $CPPFLAGS'
5408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411
5412depcc="$CXX" am_compiler_list=
5413
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5415$as_echo_n "checking dependency style of $depcc... " >&6; }
c3de29bd 5416if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
8f223b3e
FCE
5417 $as_echo_n "(cached) " >&6
5418else
5419 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5420 # We make a subdir and do the tests there. Otherwise we can end up
5421 # making bogus files that we don't know about and never remove. For
5422 # instance it was reported that on HP-UX the gcc test will end up
5423 # making a dummy file named `D' -- because `-MD' means `put the output
5424 # in D'.
5425 mkdir conftest.dir
5426 # Copy depcomp to subdir because otherwise we won't find it if we're
5427 # using a relative directory.
5428 cp "$am_depcomp" conftest.dir
5429 cd conftest.dir
5430 # We will build objects and dependencies in a subdirectory because
5431 # it helps to detect inapplicable dependency modes. For instance
5432 # both Tru64's cc and ICC support -MD to output dependencies as a
5433 # side effect of compilation, but ICC will put the dependencies in
5434 # the current directory while Tru64 will put them in the object
5435 # directory.
5436 mkdir sub
5437
5438 am_cv_CXX_dependencies_compiler_type=none
5439 if test "$am_compiler_list" = ""; then
5440 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5441 fi
5442 am__universal=false
5443 case " $depcc " in #(
5444 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5445 esac
5446
5447 for depmode in $am_compiler_list; do
5448 # Setup a source with many dependencies, because some compilers
5449 # like to wrap large dependency lists on column 80 (with \), and
5450 # we should not choose a depcomp mode which is confused by this.
5451 #
5452 # We need to recreate these files for each test, as the compiler may
5453 # overwrite some of them when testing with obscure command lines.
5454 # This happens at least with the AIX C compiler.
5455 : > sub/conftest.c
5456 for i in 1 2 3 4 5 6; do
5457 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5458 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5459 # Solaris 8's {/usr,}/bin/sh.
5460 touch sub/conftst$i.h
5461 done
5462 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5463
5464 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5465 # mode. It turns out that the SunPro C++ compiler does not properly
5466 # handle `-M -o', and we need to detect this. Also, some Intel
5467 # versions had trouble with output in subdirs
5468 am__obj=sub/conftest.${OBJEXT-o}
5469 am__minus_obj="-o $am__obj"
5470 case $depmode in
5471 gcc)
5472 # This depmode causes a compiler race in universal mode.
5473 test "$am__universal" = false || continue
5474 ;;
5475 nosideeffect)
5476 # after this tag, mechanisms are not by side-effect, so they'll
5477 # only be used when explicitly requested
5478 if test "x$enable_dependency_tracking" = xyes; then
5479 continue
5480 else
5481 break
5482 fi
5483 ;;
5484 msvisualcpp | msvcmsys)
5485 # This compiler won't grok `-c -o', but also, the minuso test has
5486 # not run yet. These depmodes are late enough in the game, and
5487 # so weak that their functioning should not be impacted.
5488 am__obj=conftest.${OBJEXT-o}
5489 am__minus_obj=
5490 ;;
5491 none) break ;;
5492 esac
5493 if depmode=$depmode \
5494 source=sub/conftest.c object=$am__obj \
5495 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5496 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5497 >/dev/null 2>conftest.err &&
5498 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5499 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5500 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5501 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5502 # icc doesn't choke on unknown options, it will just issue warnings
5503 # or remarks (even with -Werror). So we grep stderr for any message
5504 # that says an option was ignored or not supported.
5505 # When given -MP, icc 7.0 and 7.1 complain thusly:
5506 # icc: Command line warning: ignoring option '-M'; no argument required
5507 # The diagnosis changed in icc 8.0:
5508 # icc: Command line remark: option '-MP' not supported
5509 if (grep 'ignoring option' conftest.err ||
5510 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5511 am_cv_CXX_dependencies_compiler_type=$depmode
5512 break
5513 fi
5514 fi
5515 done
5516
5517 cd ..
5518 rm -rf conftest.dir
5519else
5520 am_cv_CXX_dependencies_compiler_type=none
5521fi
5522
5523fi
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5525$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5526CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5527
5528 if
5529 test "x$enable_dependency_tracking" != xno \
5530 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5531 am__fastdepCXX_TRUE=
5532 am__fastdepCXX_FALSE='#'
5533else
5534 am__fastdepCXX_TRUE='#'
5535 am__fastdepCXX_FALSE=
5536fi
5537
5538
5539ac_ext=c
5540ac_cpp='$CPP $CPPFLAGS'
5541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5543ac_compiler_gnu=$ac_cv_c_compiler_gnu
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5545$as_echo_n "checking how to run the C preprocessor... " >&6; }
5546# On Suns, sometimes $CPP names a directory.
5547if test -n "$CPP" && test -d "$CPP"; then
5548 CPP=
5549fi
5550if test -z "$CPP"; then
c3de29bd 5551 if ${ac_cv_prog_CPP+:} false; then :
8f223b3e
FCE
5552 $as_echo_n "(cached) " >&6
5553else
5554 # Double quotes because CPP needs to be expanded
5555 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5556 do
5557 ac_preproc_ok=false
5558for ac_c_preproc_warn_flag in '' yes
5559do
5560 # Use a header file that comes with gcc, so configuring glibc
5561 # with a fresh cross-compiler works.
5562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5563 # <limits.h> exists even on freestanding compilers.
5564 # On the NeXT, cc -E runs the code through the compiler's parser,
5565 # not just through cpp. "Syntax error" is here to catch this case.
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567/* end confdefs.h. */
5568#ifdef __STDC__
5569# include <limits.h>
5570#else
5571# include <assert.h>
5572#endif
5573 Syntax error
5574_ACEOF
5575if ac_fn_c_try_cpp "$LINENO"; then :
5576
5577else
5578 # Broken: fails on valid input.
5579continue
5580fi
c3de29bd 5581rm -f conftest.err conftest.i conftest.$ac_ext
8f223b3e
FCE
5582
5583 # OK, works on sane cases. Now check whether nonexistent headers
5584 # can be detected and how.
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h. */
5587#include <ac_nonexistent.h>
5588_ACEOF
5589if ac_fn_c_try_cpp "$LINENO"; then :
5590 # Broken: success on invalid input.
5591continue
5592else
5593 # Passes both tests.
5594ac_preproc_ok=:
5595break
5596fi
c3de29bd 5597rm -f conftest.err conftest.i conftest.$ac_ext
8f223b3e
FCE
5598
5599done
5600# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
c3de29bd 5601rm -f conftest.i conftest.err conftest.$ac_ext
8f223b3e
FCE
5602if $ac_preproc_ok; then :
5603 break
5604fi
5605
5606 done
5607 ac_cv_prog_CPP=$CPP
5608
5609fi
5610 CPP=$ac_cv_prog_CPP
5611else
5612 ac_cv_prog_CPP=$CPP
5613fi
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5615$as_echo "$CPP" >&6; }
5616ac_preproc_ok=false
5617for ac_c_preproc_warn_flag in '' yes
5618do
5619 # Use a header file that comes with gcc, so configuring glibc
5620 # with a fresh cross-compiler works.
5621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5622 # <limits.h> exists even on freestanding compilers.
5623 # On the NeXT, cc -E runs the code through the compiler's parser,
5624 # not just through cpp. "Syntax error" is here to catch this case.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h. */
5627#ifdef __STDC__
5628# include <limits.h>
5629#else
5630# include <assert.h>
5631#endif
5632 Syntax error
5633_ACEOF
5634if ac_fn_c_try_cpp "$LINENO"; then :
5635
5636else
5637 # Broken: fails on valid input.
5638continue
5639fi
c3de29bd 5640rm -f conftest.err conftest.i conftest.$ac_ext
8f223b3e
FCE
5641
5642 # OK, works on sane cases. Now check whether nonexistent headers
5643 # can be detected and how.
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645/* end confdefs.h. */
5646#include <ac_nonexistent.h>
5647_ACEOF
5648if ac_fn_c_try_cpp "$LINENO"; then :
5649 # Broken: success on invalid input.
5650continue
5651else
5652 # Passes both tests.
5653ac_preproc_ok=:
5654break
5655fi
c3de29bd 5656rm -f conftest.err conftest.i conftest.$ac_ext
8f223b3e
FCE
5657
5658done
5659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
c3de29bd 5660rm -f conftest.i conftest.err conftest.$ac_ext
8f223b3e
FCE
5661if $ac_preproc_ok; then :
5662
5663else
5664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
5666as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5667See \`config.log' for more details" "$LINENO" 5; }
8f223b3e
FCE
5668fi
5669
5670ac_ext=c
5671ac_cpp='$CPP $CPPFLAGS'
5672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675
5676ac_ext=c
5677ac_cpp='$CPP $CPPFLAGS'
5678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681if test -n "$ac_tool_prefix"; then
5682 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5683set dummy ${ac_tool_prefix}gcc; ac_word=$2
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5686if ${ac_cv_prog_CC+:} false; then :
8f223b3e
FCE
5687 $as_echo_n "(cached) " >&6
5688else
5689 if test -n "$CC"; then
5690 ac_cv_prog_CC="$CC" # Let the user override the test.
5691else
5692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693for as_dir in $PATH
5694do
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5699 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 break 2
5702 fi
5703done
5704 done
5705IFS=$as_save_IFS
5706
5707fi
5708fi
5709CC=$ac_cv_prog_CC
5710if test -n "$CC"; then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5712$as_echo "$CC" >&6; }
5713else
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715$as_echo "no" >&6; }
5716fi
5717
5718
5719fi
5720if test -z "$ac_cv_prog_CC"; then
5721 ac_ct_CC=$CC
5722 # Extract the first word of "gcc", so it can be a program name with args.
5723set dummy gcc; ac_word=$2
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5726if ${ac_cv_prog_ac_ct_CC+:} false; then :
8f223b3e
FCE
5727 $as_echo_n "(cached) " >&6
5728else
5729 if test -n "$ac_ct_CC"; then
5730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5731else
5732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733for as_dir in $PATH
5734do
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5739 ac_cv_prog_ac_ct_CC="gcc"
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5742 fi
5743done
5744 done
5745IFS=$as_save_IFS
5746
5747fi
5748fi
5749ac_ct_CC=$ac_cv_prog_ac_ct_CC
5750if test -n "$ac_ct_CC"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5752$as_echo "$ac_ct_CC" >&6; }
5753else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755$as_echo "no" >&6; }
5756fi
5757
5758 if test "x$ac_ct_CC" = x; then
5759 CC=""
5760 else
5761 case $cross_compiling:$ac_tool_warned in
5762yes:)
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5765ac_tool_warned=yes ;;
5766esac
5767 CC=$ac_ct_CC
5768 fi
5769else
5770 CC="$ac_cv_prog_CC"
5771fi
5772
5773if test -z "$CC"; then
5774 if test -n "$ac_tool_prefix"; then
5775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5776set dummy ${ac_tool_prefix}cc; ac_word=$2
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5779if ${ac_cv_prog_CC+:} false; then :
8f223b3e
FCE
5780 $as_echo_n "(cached) " >&6
5781else
5782 if test -n "$CC"; then
5783 ac_cv_prog_CC="$CC" # Let the user override the test.
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788 IFS=$as_save_IFS
5789 test -z "$as_dir" && as_dir=.
5790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5792 ac_cv_prog_CC="${ac_tool_prefix}cc"
5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 break 2
5795 fi
5796done
5797 done
5798IFS=$as_save_IFS
5799
5800fi
5801fi
5802CC=$ac_cv_prog_CC
5803if test -n "$CC"; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5805$as_echo "$CC" >&6; }
5806else
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }
5809fi
5810
5811
5812 fi
5813fi
5814if test -z "$CC"; then
5815 # Extract the first word of "cc", so it can be a program name with args.
5816set dummy cc; ac_word=$2
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5819if ${ac_cv_prog_CC+:} false; then :
8f223b3e
FCE
5820 $as_echo_n "(cached) " >&6
5821else
5822 if test -n "$CC"; then
5823 ac_cv_prog_CC="$CC" # Let the user override the test.
5824else
5825 ac_prog_rejected=no
5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827for as_dir in $PATH
5828do
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5834 ac_prog_rejected=yes
5835 continue
5836 fi
5837 ac_cv_prog_CC="cc"
5838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 break 2
5840 fi
5841done
5842 done
5843IFS=$as_save_IFS
5844
5845if test $ac_prog_rejected = yes; then
5846 # We found a bogon in the path, so make sure we never use it.
5847 set dummy $ac_cv_prog_CC
5848 shift
5849 if test $# != 0; then
5850 # We chose a different compiler from the bogus one.
5851 # However, it has the same basename, so the bogon will be chosen
5852 # first if we set CC to just the basename; use the full file name.
5853 shift
5854 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5855 fi
5856fi
5857fi
5858fi
5859CC=$ac_cv_prog_CC
5860if test -n "$CC"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5862$as_echo "$CC" >&6; }
5863else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865$as_echo "no" >&6; }
5866fi
5867
5868
5869fi
5870if test -z "$CC"; then
5871 if test -n "$ac_tool_prefix"; then
5872 for ac_prog in cl.exe
5873 do
5874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5875set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5878if ${ac_cv_prog_CC+:} false; then :
8f223b3e
FCE
5879 $as_echo_n "(cached) " >&6
5880else
5881 if test -n "$CC"; then
5882 ac_cv_prog_CC="$CC" # Let the user override the test.
5883else
5884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885for as_dir in $PATH
5886do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895done
5896 done
5897IFS=$as_save_IFS
5898
5899fi
5900fi
5901CC=$ac_cv_prog_CC
5902if test -n "$CC"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5904$as_echo "$CC" >&6; }
5905else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907$as_echo "no" >&6; }
5908fi
5909
5910
5911 test -n "$CC" && break
5912 done
5913fi
5914if test -z "$CC"; then
5915 ac_ct_CC=$CC
5916 for ac_prog in cl.exe
5917do
5918 # Extract the first word of "$ac_prog", so it can be a program name with args.
5919set dummy $ac_prog; ac_word=$2
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5922if ${ac_cv_prog_ac_ct_CC+:} false; then :
8f223b3e
FCE
5923 $as_echo_n "(cached) " >&6
5924else
5925 if test -n "$ac_ct_CC"; then
5926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5927else
5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_ac_ct_CC="$ac_prog"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939done
5940 done
5941IFS=$as_save_IFS
5942
5943fi
5944fi
5945ac_ct_CC=$ac_cv_prog_ac_ct_CC
5946if test -n "$ac_ct_CC"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5948$as_echo "$ac_ct_CC" >&6; }
5949else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951$as_echo "no" >&6; }
5952fi
5953
5954
5955 test -n "$ac_ct_CC" && break
5956done
5957
5958 if test "x$ac_ct_CC" = x; then
5959 CC=""
5960 else
5961 case $cross_compiling:$ac_tool_warned in
5962yes:)
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5965ac_tool_warned=yes ;;
5966esac
5967 CC=$ac_ct_CC
5968 fi
5969fi
5970
5971fi
5972
5973
5974test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
5976as_fn_error $? "no acceptable C compiler found in \$PATH
5977See \`config.log' for more details" "$LINENO" 5; }
8f223b3e
FCE
5978
5979# Provide some information about the compiler.
5980$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5981set X $ac_compile
5982ac_compiler=$2
5983for ac_option in --version -v -V -qversion; do
5984 { { ac_try="$ac_compiler $ac_option >&5"
5985case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988esac
5989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5990$as_echo "$ac_try_echo"; } >&5
5991 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5992 ac_status=$?
5993 if test -s conftest.err; then
5994 sed '10a\
5995... rest of stderr output deleted ...
5996 10q' conftest.err >conftest.er1
5997 cat conftest.er1 >&5
5998 fi
5999 rm -f conftest.er1 conftest.err
6000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6001 test $ac_status = 0; }
6002done
6003
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6005$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
c3de29bd 6006if ${ac_cv_c_compiler_gnu+:} false; then :
8f223b3e
FCE
6007 $as_echo_n "(cached) " >&6
6008else
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010/* end confdefs.h. */
6011
6012int
6013main ()
6014{
6015#ifndef __GNUC__
6016 choke me
6017#endif
6018
6019 ;
6020 return 0;
6021}
6022_ACEOF
6023if ac_fn_c_try_compile "$LINENO"; then :
6024 ac_compiler_gnu=yes
6025else
6026 ac_compiler_gnu=no
6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029ac_cv_c_compiler_gnu=$ac_compiler_gnu
6030
6031fi
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6033$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6034if test $ac_compiler_gnu = yes; then
6035 GCC=yes
6036else
6037 GCC=
6038fi
6039ac_test_CFLAGS=${CFLAGS+set}
6040ac_save_CFLAGS=$CFLAGS
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6042$as_echo_n "checking whether $CC accepts -g... " >&6; }
c3de29bd 6043if ${ac_cv_prog_cc_g+:} false; then :
8f223b3e
FCE
6044 $as_echo_n "(cached) " >&6
6045else
6046 ac_save_c_werror_flag=$ac_c_werror_flag
6047 ac_c_werror_flag=yes
6048 ac_cv_prog_cc_g=no
6049 CFLAGS="-g"
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h. */
6052
6053int
6054main ()
6055{
6056
6057 ;
6058 return 0;
6059}
6060_ACEOF
6061if ac_fn_c_try_compile "$LINENO"; then :
6062 ac_cv_prog_cc_g=yes
6063else
6064 CFLAGS=""
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066/* end confdefs.h. */
6067
6068int
6069main ()
6070{
6071
6072 ;
6073 return 0;
6074}
6075_ACEOF
6076if ac_fn_c_try_compile "$LINENO"; then :
6077
6078else
6079 ac_c_werror_flag=$ac_save_c_werror_flag
6080 CFLAGS="-g"
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082/* end confdefs.h. */
6083
6084int
6085main ()
6086{
6087
6088 ;
6089 return 0;
6090}
6091_ACEOF
6092if ac_fn_c_try_compile "$LINENO"; then :
6093 ac_cv_prog_cc_g=yes
6094fi
6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096fi
6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098fi
6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 ac_c_werror_flag=$ac_save_c_werror_flag
6101fi
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6103$as_echo "$ac_cv_prog_cc_g" >&6; }
6104if test "$ac_test_CFLAGS" = set; then
6105 CFLAGS=$ac_save_CFLAGS
6106elif test $ac_cv_prog_cc_g = yes; then
6107 if test "$GCC" = yes; then
6108 CFLAGS="-g -O2"
6109 else
6110 CFLAGS="-g"
6111 fi
6112else
6113 if test "$GCC" = yes; then
6114 CFLAGS="-O2"
6115 else
6116 CFLAGS=
6117 fi
6118fi
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6120$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
c3de29bd 6121if ${ac_cv_prog_cc_c89+:} false; then :
8f223b3e
FCE
6122 $as_echo_n "(cached) " >&6
6123else
6124 ac_cv_prog_cc_c89=no
6125ac_save_CC=$CC
6126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h. */
6128#include <stdarg.h>
6129#include <stdio.h>
6130#include <sys/types.h>
6131#include <sys/stat.h>
6132/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6133struct buf { int x; };
6134FILE * (*rcsopen) (struct buf *, struct stat *, int);
6135static char *e (p, i)
6136 char **p;
6137 int i;
6138{
6139 return p[i];
6140}
6141static char *f (char * (*g) (char **, int), char **p, ...)
6142{
6143 char *s;
6144 va_list v;
6145 va_start (v,p);
6146 s = g (p, va_arg (v,int));
6147 va_end (v);
6148 return s;
6149}
6150
6151/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6152 function prototypes and stuff, but not '\xHH' hex character constants.
6153 These don't provoke an error unfortunately, instead are silently treated
6154 as 'x'. The following induces an error, until -std is added to get
6155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6156 array size at least. It's necessary to write '\x00'==0 to get something
6157 that's true only with -std. */
6158int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6159
6160/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6161 inside strings and character constants. */
6162#define FOO(x) 'x'
6163int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6164
6165int test (int i, double x);
6166struct s1 {int (*f) (int a);};
6167struct s2 {int (*f) (double a);};
6168int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6169int argc;
6170char **argv;
6171int
6172main ()
6173{
6174return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6175 ;
6176 return 0;
6177}
6178_ACEOF
6179for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6181do
6182 CC="$ac_save_CC $ac_arg"
6183 if ac_fn_c_try_compile "$LINENO"; then :
6184 ac_cv_prog_cc_c89=$ac_arg
6185fi
6186rm -f core conftest.err conftest.$ac_objext
6187 test "x$ac_cv_prog_cc_c89" != "xno" && break
6188done
6189rm -f conftest.$ac_ext
6190CC=$ac_save_CC
6191
6192fi
6193# AC_CACHE_VAL
6194case "x$ac_cv_prog_cc_c89" in
6195 x)
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6197$as_echo "none needed" >&6; } ;;
6198 xno)
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6200$as_echo "unsupported" >&6; } ;;
6201 *)
6202 CC="$CC $ac_cv_prog_cc_c89"
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6204$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6205esac
6206if test "x$ac_cv_prog_cc_c89" != xno; then :
6207
6208fi
6209
6210ac_ext=c
6211ac_cpp='$CPP $CPPFLAGS'
6212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215
6216depcc="$CC" am_compiler_list=
6217
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6219$as_echo_n "checking dependency style of $depcc... " >&6; }
c3de29bd 6220if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8f223b3e
FCE
6221 $as_echo_n "(cached) " >&6
6222else
6223 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6224 # We make a subdir and do the tests there. Otherwise we can end up
6225 # making bogus files that we don't know about and never remove. For
6226 # instance it was reported that on HP-UX the gcc test will end up
6227 # making a dummy file named `D' -- because `-MD' means `put the output
6228 # in D'.
6229 mkdir conftest.dir
6230 # Copy depcomp to subdir because otherwise we won't find it if we're
6231 # using a relative directory.
6232 cp "$am_depcomp" conftest.dir
6233 cd conftest.dir
6234 # We will build objects and dependencies in a subdirectory because
6235 # it helps to detect inapplicable dependency modes. For instance
6236 # both Tru64's cc and ICC support -MD to output dependencies as a
6237 # side effect of compilation, but ICC will put the dependencies in
6238 # the current directory while Tru64 will put them in the object
6239 # directory.
6240 mkdir sub
6241
6242 am_cv_CC_dependencies_compiler_type=none
6243 if test "$am_compiler_list" = ""; then
6244 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6245 fi
6246 am__universal=false
6247 case " $depcc " in #(
6248 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6249 esac
6250
6251 for depmode in $am_compiler_list; do
6252 # Setup a source with many dependencies, because some compilers
6253 # like to wrap large dependency lists on column 80 (with \), and
6254 # we should not choose a depcomp mode which is confused by this.
6255 #
6256 # We need to recreate these files for each test, as the compiler may
6257 # overwrite some of them when testing with obscure command lines.
6258 # This happens at least with the AIX C compiler.
6259 : > sub/conftest.c
6260 for i in 1 2 3 4 5 6; do
6261 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6262 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6263 # Solaris 8's {/usr,}/bin/sh.
6264 touch sub/conftst$i.h
6265 done
6266 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6267
6268 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6269 # mode. It turns out that the SunPro C++ compiler does not properly
6270 # handle `-M -o', and we need to detect this. Also, some Intel
6271 # versions had trouble with output in subdirs
6272 am__obj=sub/conftest.${OBJEXT-o}
6273 am__minus_obj="-o $am__obj"
6274 case $depmode in
6275 gcc)
6276 # This depmode causes a compiler race in universal mode.
6277 test "$am__universal" = false || continue
6278 ;;
6279 nosideeffect)
6280 # after this tag, mechanisms are not by side-effect, so they'll
6281 # only be used when explicitly requested
6282 if test "x$enable_dependency_tracking" = xyes; then
6283 continue
6284 else
6285 break
6286 fi
6287 ;;
6288 msvisualcpp | msvcmsys)
6289 # This compiler won't grok `-c -o', but also, the minuso test has
6290 # not run yet. These depmodes are late enough in the game, and
6291 # so weak that their functioning should not be impacted.
6292 am__obj=conftest.${OBJEXT-o}
6293 am__minus_obj=
6294 ;;
6295 none) break ;;
6296 esac
6297 if depmode=$depmode \
6298 source=sub/conftest.c object=$am__obj \
6299 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6300 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6301 >/dev/null 2>conftest.err &&
6302 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6303 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6304 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6305 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6306 # icc doesn't choke on unknown options, it will just issue warnings
6307 # or remarks (even with -Werror). So we grep stderr for any message
6308 # that says an option was ignored or not supported.
6309 # When given -MP, icc 7.0 and 7.1 complain thusly:
6310 # icc: Command line warning: ignoring option '-M'; no argument required
6311 # The diagnosis changed in icc 8.0:
6312 # icc: Command line remark: option '-MP' not supported
6313 if (grep 'ignoring option' conftest.err ||
6314 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6315 am_cv_CC_dependencies_compiler_type=$depmode
6316 break
6317 fi
6318 fi
6319 done
6320
6321 cd ..
6322 rm -rf conftest.dir
6323else
6324 am_cv_CC_dependencies_compiler_type=none
6325fi
6326
6327fi
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6329$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6330CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6331
6332 if
6333 test "x$enable_dependency_tracking" != xno \
6334 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6335 am__fastdepCC_TRUE=
6336 am__fastdepCC_FALSE='#'
6337else
6338 am__fastdepCC_TRUE='#'
6339 am__fastdepCC_FALSE=
6340fi
6341
6342
6343
6344am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6345
6346if test "x$CC" != xcc; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6348$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6349else
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6351$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6352fi
6353set dummy $CC; ac_cc=`$as_echo "$2" |
6354 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
c3de29bd 6355if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
8f223b3e
FCE
6356 $as_echo_n "(cached) " >&6
6357else
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359/* end confdefs.h. */
6360
6361int
6362main ()
6363{
6364
6365 ;
6366 return 0;
6367}
6368_ACEOF
6369# Make sure it works both with $CC and with simple cc.
6370# We do the test twice because some compilers refuse to overwrite an
6371# existing .o file with -o, though they will create one.
6372ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6373rm -f conftest2.*
6374if { { case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6377esac
6378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6379$as_echo "$ac_try_echo"; } >&5
6380 (eval "$ac_try") 2>&5
8ae7a94a 6381 ac_status=$?
1ef0423a
FCE
6382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383 test $ac_status = 0; } &&
6384 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7fbd9d09
FCE
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6387esac
8f223b3e
FCE
6388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6389$as_echo "$ac_try_echo"; } >&5
6390 (eval "$ac_try") 2>&5
6391 ac_status=$?
6392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393 test $ac_status = 0; };
6394then
6395 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6396 if test "x$CC" != xcc; then
6397 # Test first that cc exists at all.
6398 if { ac_try='cc -c conftest.$ac_ext >&5'
6399 { { case "(($ac_try" in
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6402esac
6403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6404$as_echo "$ac_try_echo"; } >&5
6405 (eval "$ac_try") 2>&5
6406 ac_status=$?
6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; }; }; then
6409 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6410 rm -f conftest2.*
6411 if { { case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414esac
6415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6416$as_echo "$ac_try_echo"; } >&5
6417 (eval "$ac_try") 2>&5
6418 ac_status=$?
6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; } &&
6421 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424esac
6425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6426$as_echo "$ac_try_echo"; } >&5
6427 (eval "$ac_try") 2>&5
6428 ac_status=$?
6429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6430 test $ac_status = 0; };
6431 then
6432 # cc works too.
6433 :
6434 else
6435 # cc exists but doesn't like -o.
6436 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6437 fi
6438 fi
6439 fi
6440else
6441 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6442fi
6443rm -f core conftest*
6444
6445fi
6446if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6448$as_echo "yes" >&6; }
6449else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451$as_echo "no" >&6; }
6452
6453$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6454
6455fi
6456
6457# FIXME: we rely on the cache variable name because
6458# there is no other way.
6459set dummy $CC
6460am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6461eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6462if test "$am_t" != yes; then
6463 # Losing compiler, so override with the script.
6464 # FIXME: It is wrong to rewrite CC.
6465 # But if we don't then we get into trouble of one sort or another.
6466 # A longer-term fix would be to have automake use am__CC in this case,
6467 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6468 CC="$am_aux_dir/compile $CC"
6469fi
6470
6471
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6473$as_echo_n "checking for function prototypes... " >&6; }
6474if test "$ac_cv_prog_cc_c89" != no; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6476$as_echo "yes" >&6; }
6477
6478$as_echo "#define PROTOTYPES 1" >>confdefs.h
6479
6480
6481$as_echo "#define __PROTOTYPES 1" >>confdefs.h
6482
6483else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485$as_echo "no" >&6; }
6486fi
6487
6488
6489if test "$ac_cv_prog_cc_stdc" != no; then
6490 U= ANSI2KNR=
6491else
6492 U=_ ANSI2KNR=./ansi2knr
6493fi
6494# Ensure some checks needed by ansi2knr itself.
6495
6496for ac_header in string.h
6497do :
6498 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
c3de29bd 6499if test "x$ac_cv_header_string_h" = xyes; then :
8f223b3e
FCE
6500 cat >>confdefs.h <<_ACEOF
6501#define HAVE_STRING_H 1
6502_ACEOF
6503
6504fi
6505
6506done
6507
6508
6509if test -n "$ac_tool_prefix"; then
6510 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6511set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 6514if ${ac_cv_prog_RANLIB+:} false; then :
8f223b3e
FCE
6515 $as_echo_n "(cached) " >&6
6516else
6517 if test -n "$RANLIB"; then
6518 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 break 2
6530 fi
6531done
6532 done
6533IFS=$as_save_IFS
6534
6535fi
6536fi
6537RANLIB=$ac_cv_prog_RANLIB
6538if test -n "$RANLIB"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6540$as_echo "$RANLIB" >&6; }
6541else
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543$as_echo "no" >&6; }
6544fi
6545
6546
6547fi
6548if test -z "$ac_cv_prog_RANLIB"; then
6549 ac_ct_RANLIB=$RANLIB
6550 # Extract the first word of "ranlib", so it can be a program name with args.
6551set dummy ranlib; ac_word=$2
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 6554if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8f223b3e
FCE
6555 $as_echo_n "(cached) " >&6
6556else
6557 if test -n "$ac_ct_RANLIB"; then
6558 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6559else
6560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561for as_dir in $PATH
6562do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567 ac_cv_prog_ac_ct_RANLIB="ranlib"
6568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 break 2
6570 fi
6571done
6572 done
6573IFS=$as_save_IFS
6574
6575fi
6576fi
6577ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6578if test -n "$ac_ct_RANLIB"; then
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6580$as_echo "$ac_ct_RANLIB" >&6; }
6581else
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583$as_echo "no" >&6; }
6584fi
6585
6586 if test "x$ac_ct_RANLIB" = x; then
6587 RANLIB=":"
6588 else
6589 case $cross_compiling:$ac_tool_warned in
6590yes:)
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6593ac_tool_warned=yes ;;
6594esac
6595 RANLIB=$ac_ct_RANLIB
6596 fi
6597else
6598 RANLIB="$ac_cv_prog_RANLIB"
6599fi
6600
6601
6602
6603
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6605$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6606set x ${MAKE-make}
6607ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
c3de29bd 6608if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8f223b3e
FCE
6609 $as_echo_n "(cached) " >&6
6610else
6611 cat >conftest.make <<\_ACEOF
6612SHELL = /bin/sh
6613all:
6614 @echo '@@@%%%=$(MAKE)=@@@%%%'
6615_ACEOF
5d4aa1f5 6616# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8f223b3e
FCE
6617case `${MAKE-make} -f conftest.make 2>/dev/null` in
6618 *@@@%%%=?*=@@@%%%*)
6619 eval ac_cv_prog_make_${ac_make}_set=yes;;
6620 *)
6621 eval ac_cv_prog_make_${ac_make}_set=no;;
7fbd9d09 6622esac
8f223b3e
FCE
6623rm -f conftest.make
6624fi
6625if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6627$as_echo "yes" >&6; }
6628 SET_MAKE=
6629else
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631$as_echo "no" >&6; }
6632 SET_MAKE="MAKE=${MAKE-make}"
6633fi
6634
6635
6636
6637
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6639$as_echo_n "checking whether NLS is requested... " >&6; }
6640 # Check whether --enable-nls was given.
6641if test "${enable_nls+set}" = set; then :
6642 enableval=$enable_nls; USE_NLS=$enableval
6643else
6644 USE_NLS=yes
6645fi
6646
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6648$as_echo "$USE_NLS" >&6; }
6649
6650
6651
6652
6653 GETTEXT_MACRO_VERSION=0.18
6654
6655
6656
6657
6658# Prepare PATH_SEPARATOR.
6659# The user is always right.
6660if test "${PATH_SEPARATOR+set}" != set; then
6661 echo "#! /bin/sh" >conf$$.sh
6662 echo "exit 0" >>conf$$.sh
6663 chmod +x conf$$.sh
6664 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6665 PATH_SEPARATOR=';'
6666 else
6667 PATH_SEPARATOR=:
6668 fi
6669 rm -f conf$$.sh
6670fi
6671
6672# Find out how to test for executable files. Don't use a zero-byte file,
6673# as systems may use methods other than mode bits to determine executability.
6674cat >conf$$.file <<_ASEOF
6675#! /bin/sh
6676exit 0
6677_ASEOF
6678chmod +x conf$$.file
6679if test -x conf$$.file >/dev/null 2>&1; then
6680 ac_executable_p="test -x"
6681else
6682 ac_executable_p="test -f"
6683fi
6684rm -f conf$$.file
6685
6686# Extract the first word of "msgfmt", so it can be a program name with args.
6687set dummy msgfmt; ac_word=$2
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 6690if ${ac_cv_path_MSGFMT+:} false; then :
8f223b3e
FCE
6691 $as_echo_n "(cached) " >&6
6692else
6693 case "$MSGFMT" in
6694 [\\/]* | ?:[\\/]*)
6695 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6696 ;;
6697 *)
6698 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6699 for ac_dir in $PATH; do
6700 IFS="$ac_save_IFS"
6701 test -z "$ac_dir" && ac_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6704 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6705 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6706 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6707 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6708 break 2
6709 fi
6710 fi
6711 done
6712 done
6713 IFS="$ac_save_IFS"
6714 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6715 ;;
7fbd9d09 6716esac
8f223b3e
FCE
6717fi
6718MSGFMT="$ac_cv_path_MSGFMT"
6719if test "$MSGFMT" != ":"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6721$as_echo "$MSGFMT" >&6; }
6722else
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724$as_echo "no" >&6; }
6725fi
6726
6727 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6728set dummy gmsgfmt; ac_word=$2
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 6731if ${ac_cv_path_GMSGFMT+:} false; then :
8f223b3e
FCE
6732 $as_echo_n "(cached) " >&6
6733else
6734 case $GMSGFMT in
6735 [\\/]* | ?:[\\/]*)
6736 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6737 ;;
6738 *)
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6749 fi
6750done
6751 done
6752IFS=$as_save_IFS
6753
6754 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6755 ;;
7fbd9d09 6756esac
8f223b3e
FCE
6757fi
6758GMSGFMT=$ac_cv_path_GMSGFMT
6759if test -n "$GMSGFMT"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6761$as_echo "$GMSGFMT" >&6; }
6762else
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764$as_echo "no" >&6; }
6765fi
6766
6767
6768
6769 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6770 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6771 *) MSGFMT_015=$MSGFMT ;;
6772 esac
6773
6774 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6775 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6776 *) GMSGFMT_015=$GMSGFMT ;;
6777 esac
6778
6779
6780
6781# Prepare PATH_SEPARATOR.
6782# The user is always right.
6783if test "${PATH_SEPARATOR+set}" != set; then
6784 echo "#! /bin/sh" >conf$$.sh
6785 echo "exit 0" >>conf$$.sh
6786 chmod +x conf$$.sh
6787 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6788 PATH_SEPARATOR=';'
6789 else
6790 PATH_SEPARATOR=:
6791 fi
6792 rm -f conf$$.sh
6793fi
6794
6795# Find out how to test for executable files. Don't use a zero-byte file,
6796# as systems may use methods other than mode bits to determine executability.
6797cat >conf$$.file <<_ASEOF
6798#! /bin/sh
6799exit 0
6800_ASEOF
6801chmod +x conf$$.file
6802if test -x conf$$.file >/dev/null 2>&1; then
6803 ac_executable_p="test -x"
6804else
6805 ac_executable_p="test -f"
6806fi
6807rm -f conf$$.file
6808
6809# Extract the first word of "xgettext", so it can be a program name with args.
6810set dummy xgettext; ac_word=$2
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 6813if ${ac_cv_path_XGETTEXT+:} false; then :
8f223b3e
FCE
6814 $as_echo_n "(cached) " >&6
6815else
6816 case "$XGETTEXT" in
6817 [\\/]* | ?:[\\/]*)
6818 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6819 ;;
6820 *)
6821 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6822 for ac_dir in $PATH; do
6823 IFS="$ac_save_IFS"
6824 test -z "$ac_dir" && ac_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6827 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6828 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6829 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6830 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6831 break 2
6832 fi
6833 fi
6834 done
6835 done
6836 IFS="$ac_save_IFS"
6837 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6838 ;;
6839esac
6840fi
6841XGETTEXT="$ac_cv_path_XGETTEXT"
6842if test "$XGETTEXT" != ":"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6844$as_echo "$XGETTEXT" >&6; }
6845else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847$as_echo "no" >&6; }
6848fi
6849
6850 rm -f messages.po
6851
6852 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6853 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6854 *) XGETTEXT_015=$XGETTEXT ;;
6855 esac
6856
6857
6858
6859# Prepare PATH_SEPARATOR.
6860# The user is always right.
6861if test "${PATH_SEPARATOR+set}" != set; then
6862 echo "#! /bin/sh" >conf$$.sh
6863 echo "exit 0" >>conf$$.sh
6864 chmod +x conf$$.sh
6865 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6866 PATH_SEPARATOR=';'
6867 else
6868 PATH_SEPARATOR=:
6869 fi
6870 rm -f conf$$.sh
6871fi
6872
6873# Find out how to test for executable files. Don't use a zero-byte file,
6874# as systems may use methods other than mode bits to determine executability.
6875cat >conf$$.file <<_ASEOF
6876#! /bin/sh
6877exit 0
6878_ASEOF
6879chmod +x conf$$.file
6880if test -x conf$$.file >/dev/null 2>&1; then
6881 ac_executable_p="test -x"
6882else
6883 ac_executable_p="test -f"
6884fi
6885rm -f conf$$.file
6886
6887# Extract the first word of "msgmerge", so it can be a program name with args.
6888set dummy msgmerge; ac_word=$2
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 6891if ${ac_cv_path_MSGMERGE+:} false; then :
8f223b3e
FCE
6892 $as_echo_n "(cached) " >&6
6893else
6894 case "$MSGMERGE" in
6895 [\\/]* | ?:[\\/]*)
6896 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6897 ;;
6898 *)
6899 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6900 for ac_dir in $PATH; do
6901 IFS="$ac_save_IFS"
6902 test -z "$ac_dir" && ac_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6905 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6906 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6907 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6908 break 2
6909 fi
6910 fi
6911 done
6912 done
6913 IFS="$ac_save_IFS"
6914 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6915 ;;
6916esac
6917fi
6918MSGMERGE="$ac_cv_path_MSGMERGE"
6919if test "$MSGMERGE" != ":"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6921$as_echo "$MSGMERGE" >&6; }
6922else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924$as_echo "no" >&6; }
6925fi
6926
6927
6928 test -n "$localedir" || localedir='${datadir}/locale'
6929
6930
6931 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6932
6933
6934 ac_config_commands="$ac_config_commands po-directories"
6935
6936
6937
6938 if test "X$prefix" = "XNONE"; then
6939 acl_final_prefix="$ac_default_prefix"
6940 else
6941 acl_final_prefix="$prefix"
8ae7a94a 6942 fi
8f223b3e
FCE
6943 if test "X$exec_prefix" = "XNONE"; then
6944 acl_final_exec_prefix='${prefix}'
6945 else
6946 acl_final_exec_prefix="$exec_prefix"
6947 fi
6948 acl_save_prefix="$prefix"
6949 prefix="$acl_final_prefix"
6950 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6951 prefix="$acl_save_prefix"
6952
6953# Make sure we can run config.sub.
6954$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5d4aa1f5 6955 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
8f223b3e
FCE
6956
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6958$as_echo_n "checking build system type... " >&6; }
c3de29bd 6959if ${ac_cv_build+:} false; then :
8f223b3e
FCE
6960 $as_echo_n "(cached) " >&6
6961else
6962 ac_build_alias=$build_alias
6963test "x$ac_build_alias" = x &&
6964 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6965test "x$ac_build_alias" = x &&
5d4aa1f5 6966 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
8f223b3e 6967ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5d4aa1f5 6968 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
8f223b3e
FCE
6969
6970fi
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6972$as_echo "$ac_cv_build" >&6; }
6973case $ac_cv_build in
6974*-*-*) ;;
5d4aa1f5 6975*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
8f223b3e
FCE
6976esac
6977build=$ac_cv_build
6978ac_save_IFS=$IFS; IFS='-'
6979set x $ac_cv_build
6980shift
6981build_cpu=$1
6982build_vendor=$2
6983shift; shift
6984# Remember, the first character of IFS is used to create $*,
6985# except with old shells:
6986build_os=$*
6987IFS=$ac_save_IFS
6988case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6989
6990
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6992$as_echo_n "checking host system type... " >&6; }
c3de29bd 6993if ${ac_cv_host+:} false; then :
8f223b3e 6994 $as_echo_n "(cached) " >&6
8ae7a94a 6995else
8f223b3e
FCE
6996 if test "x$host_alias" = x; then
6997 ac_cv_host=$ac_cv_build
6998else
6999 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5d4aa1f5 7000 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
8ae7a94a 7001fi
8ae7a94a
FCE
7002
7003fi
8f223b3e
FCE
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7005$as_echo "$ac_cv_host" >&6; }
7006case $ac_cv_host in
7007*-*-*) ;;
5d4aa1f5 7008*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
8f223b3e
FCE
7009esac
7010host=$ac_cv_host
7011ac_save_IFS=$IFS; IFS='-'
7012set x $ac_cv_host
7013shift
7014host_cpu=$1
7015host_vendor=$2
7016shift; shift
7017# Remember, the first character of IFS is used to create $*,
7018# except with old shells:
7019host_os=$*
7020IFS=$ac_save_IFS
7021case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7022
8ae7a94a 7023
8ae7a94a 7024
8f223b3e
FCE
7025# Check whether --with-gnu-ld was given.
7026if test "${with_gnu_ld+set}" = set; then :
7027 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7028else
7029 with_gnu_ld=no
8ae7a94a
FCE
7030fi
7031
8f223b3e
FCE
7032# Prepare PATH_SEPARATOR.
7033# The user is always right.
7034if test "${PATH_SEPARATOR+set}" != set; then
7035 echo "#! /bin/sh" >conf$$.sh
7036 echo "exit 0" >>conf$$.sh
7037 chmod +x conf$$.sh
7038 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7039 PATH_SEPARATOR=';'
7040 else
7041 PATH_SEPARATOR=:
7042 fi
7043 rm -f conf$$.sh
7044fi
7045ac_prog=ld
7046if test "$GCC" = yes; then
7047 # Check if gcc -print-prog-name=ld gives a path.
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7049$as_echo_n "checking for ld used by GCC... " >&6; }
7050 case $host in
7051 *-*-mingw*)
7052 # gcc leaves a trailing carriage return which upsets mingw
7053 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7054 *)
7055 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7056 esac
7057 case $ac_prog in
7058 # Accept absolute paths.
7059 [\\/]* | [A-Za-z]:[\\/]*)
7060 re_direlt='/[^/][^/]*/\.\./'
7061 # Canonicalize the path of ld
7062 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7063 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7064 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7065 done
7066 test -z "$LD" && LD="$ac_prog"
7067 ;;
7068 "")
7069 # If it fails, then pretend we aren't using GCC.
7070 ac_prog=ld
7071 ;;
7072 *)
7073 # If it is relative, then search for the first ld in PATH.
7074 with_gnu_ld=unknown
7075 ;;
7076 esac
7077elif test "$with_gnu_ld" = yes; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7079$as_echo_n "checking for GNU ld... " >&6; }
7080else
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7082$as_echo_n "checking for non-GNU ld... " >&6; }
7083fi
c3de29bd 7084if ${acl_cv_path_LD+:} false; then :
8f223b3e
FCE
7085 $as_echo_n "(cached) " >&6
7086else
7087 if test -z "$LD"; then
7088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7089 for ac_dir in $PATH; do
7090 test -z "$ac_dir" && ac_dir=.
7091 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7092 acl_cv_path_LD="$ac_dir/$ac_prog"
7093 # Check to see if the program is GNU ld. I'd rather use --version,
7094 # but apparently some GNU ld's only accept -v.
7095 # Break only if it was the GNU/non-GNU ld that we prefer.
7096 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7097 *GNU* | *'with BFD'*)
7098 test "$with_gnu_ld" != no && break ;;
7099 *)
7100 test "$with_gnu_ld" != yes && break ;;
7101 esac
7102 fi
7103 done
7104 IFS="$ac_save_ifs"
7105else
7106 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7107fi
8ae7a94a
FCE
7108fi
7109
8f223b3e
FCE
7110LD="$acl_cv_path_LD"
7111if test -n "$LD"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7113$as_echo "$LD" >&6; }
7114else
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116$as_echo "no" >&6; }
7117fi
5d4aa1f5 7118test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8f223b3e
FCE
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7120$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
c3de29bd 7121if ${acl_cv_prog_gnu_ld+:} false; then :
8f223b3e
FCE
7122 $as_echo_n "(cached) " >&6
7123else
7124 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7125case `$LD -v 2>&1 </dev/null` in
7126*GNU* | *'with BFD'*)
7127 acl_cv_prog_gnu_ld=yes ;;
7128*)
7129 acl_cv_prog_gnu_ld=no ;;
7130esac
7131fi
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7133$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7134with_gnu_ld=$acl_cv_prog_gnu_ld
7fbd9d09 7135
2f1a1aea 7136
2f1a1aea
FCE
7137
7138
8f223b3e
FCE
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7140$as_echo_n "checking for shared library run path origin... " >&6; }
c3de29bd 7141if ${acl_cv_rpath+:} false; then :
8f223b3e
FCE
7142 $as_echo_n "(cached) " >&6
7143else
2f1a1aea 7144
8f223b3e
FCE
7145 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7146 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7147 . ./conftest.sh
7148 rm -f ./conftest.sh
7149 acl_cv_rpath=done
7150
7151fi
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7153$as_echo "$acl_cv_rpath" >&6; }
7154 wl="$acl_cv_wl"
7155 acl_libext="$acl_cv_libext"
7156 acl_shlibext="$acl_cv_shlibext"
7157 acl_libname_spec="$acl_cv_libname_spec"
7158 acl_library_names_spec="$acl_cv_library_names_spec"
7159 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7160 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7161 acl_hardcode_direct="$acl_cv_hardcode_direct"
7162 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7163 # Check whether --enable-rpath was given.
7164if test "${enable_rpath+set}" = set; then :
7165 enableval=$enable_rpath; :
2f1a1aea 7166else
8f223b3e 7167 enable_rpath=yes
7fbd9d09
FCE
7168fi
7169
7170
7171
8f223b3e
FCE
7172
7173 acl_libdirstem=lib
7174 acl_libdirstem2=
7175 case "$host_os" in
7176 solaris*)
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7178$as_echo_n "checking for 64-bit host... " >&6; }
c3de29bd 7179if ${gl_cv_solaris_64bit+:} false; then :
0710d850 7180 $as_echo_n "(cached) " >&6
7fbd9d09 7181else
8f223b3e
FCE
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183/* end confdefs.h. */
7184
7185#ifdef _LP64
7186sixtyfour bits
7187#endif
7188
7189_ACEOF
7190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7191 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7192 gl_cv_solaris_64bit=yes
7193else
7194 gl_cv_solaris_64bit=no
7195fi
7196rm -f conftest*
7197
7198
7199fi
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7201$as_echo "$gl_cv_solaris_64bit" >&6; }
7202 if test $gl_cv_solaris_64bit = yes; then
7203 acl_libdirstem=lib/64
7204 case "$host_cpu" in
7205 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7206 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7207 esac
7208 fi
7209 ;;
7210 *)
7211 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7212 if test -n "$searchpath"; then
7213 acl_save_IFS="${IFS= }"; IFS=":"
7214 for searchdir in $searchpath; do
7215 if test -d "$searchdir"; then
7216 case "$searchdir" in
7217 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7218 */../ | */.. )
7219 # Better ignore directories of this form. They are misleading.
7220 ;;
7221 *) searchdir=`cd "$searchdir" && pwd`
7222 case "$searchdir" in
7223 */lib64 ) acl_libdirstem=lib64 ;;
7224 esac ;;
7225 esac
7226 fi
7227 done
7228 IFS="$acl_save_IFS"
7229 fi
7230 ;;
7231 esac
7232 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245 use_additional=yes
7246
7247 acl_save_prefix="$prefix"
7248 prefix="$acl_final_prefix"
7249 acl_save_exec_prefix="$exec_prefix"
7250 exec_prefix="$acl_final_exec_prefix"
7251
7252 eval additional_includedir=\"$includedir\"
7253 eval additional_libdir=\"$libdir\"
7254
7255 exec_prefix="$acl_save_exec_prefix"
7256 prefix="$acl_save_prefix"
7257
7258
7259# Check whether --with-libiconv-prefix was given.
7260if test "${with_libiconv_prefix+set}" = set; then :
7261 withval=$with_libiconv_prefix;
7262 if test "X$withval" = "Xno"; then
7263 use_additional=no
7264 else
7265 if test "X$withval" = "X"; then
7266
7267 acl_save_prefix="$prefix"
7268 prefix="$acl_final_prefix"
7269 acl_save_exec_prefix="$exec_prefix"
7270 exec_prefix="$acl_final_exec_prefix"
7271
7272 eval additional_includedir=\"$includedir\"
7273 eval additional_libdir=\"$libdir\"
7274
7275 exec_prefix="$acl_save_exec_prefix"
7276 prefix="$acl_save_prefix"
7277
7278 else
7279 additional_includedir="$withval/include"
7280 additional_libdir="$withval/$acl_libdirstem"
7281 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7282 && ! test -d "$withval/$acl_libdirstem"; then
7283 additional_libdir="$withval/$acl_libdirstem2"
7284 fi
7285 fi
7fbd9d09 7286 fi
7fbd9d09 7287
8f223b3e
FCE
7288fi
7289
7290 LIBICONV=
7291 LTLIBICONV=
7292 INCICONV=
7293 LIBICONV_PREFIX=
7294 HAVE_LIBICONV=
7295 rpathdirs=
7296 ltrpathdirs=
7297 names_already_handled=
7298 names_next_round='iconv '
7299 while test -n "$names_next_round"; do
7300 names_this_round="$names_next_round"
7301 names_next_round=
7302 for name in $names_this_round; do
7303 already_handled=
7304 for n in $names_already_handled; do
7305 if test "$n" = "$name"; then
7306 already_handled=yes
7307 break
7308 fi
7309 done
7310 if test -z "$already_handled"; then
7311 names_already_handled="$names_already_handled $name"
7312 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7313 eval value=\"\$HAVE_LIB$uppername\"
7314 if test -n "$value"; then
7315 if test "$value" = yes; then
7316 eval value=\"\$LIB$uppername\"
7317 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7318 eval value=\"\$LTLIB$uppername\"
7319 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7320 else
7321 :
7322 fi
7323 else
7324 found_dir=
7325 found_la=
7326 found_so=
7327 found_a=
7328 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7329 if test -n "$acl_shlibext"; then
7330 shrext=".$acl_shlibext" # typically: shrext=.so
7331 else
7332 shrext=
7333 fi
7334 if test $use_additional = yes; then
7335 dir="$additional_libdir"
7336 if test -n "$acl_shlibext"; then
7337 if test -f "$dir/$libname$shrext"; then
7338 found_dir="$dir"
7339 found_so="$dir/$libname$shrext"
7340 else
7341 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7342 ver=`(cd "$dir" && \
7343 for f in "$libname$shrext".*; do echo "$f"; done \
7344 | sed -e "s,^$libname$shrext\\\\.,," \
7345 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7346 | sed 1q ) 2>/dev/null`
7347 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7348 found_dir="$dir"
7349 found_so="$dir/$libname$shrext.$ver"
7350 fi
7351 else
7352 eval library_names=\"$acl_library_names_spec\"
7353 for f in $library_names; do
7354 if test -f "$dir/$f"; then
7355 found_dir="$dir"
7356 found_so="$dir/$f"
7357 break
7358 fi
7359 done
7360 fi
7361 fi
7362 fi
7363 if test "X$found_dir" = "X"; then
7364 if test -f "$dir/$libname.$acl_libext"; then
7365 found_dir="$dir"
7366 found_a="$dir/$libname.$acl_libext"
7367 fi
7368 fi
7369 if test "X$found_dir" != "X"; then
7370 if test -f "$dir/$libname.la"; then
7371 found_la="$dir/$libname.la"
7372 fi
7373 fi
7374 fi
7375 if test "X$found_dir" = "X"; then
7376 for x in $LDFLAGS $LTLIBICONV; do
7377
7378 acl_save_prefix="$prefix"
7379 prefix="$acl_final_prefix"
7380 acl_save_exec_prefix="$exec_prefix"
7381 exec_prefix="$acl_final_exec_prefix"
7382 eval x=\"$x\"
7383 exec_prefix="$acl_save_exec_prefix"
7384 prefix="$acl_save_prefix"
7385
7386 case "$x" in
7387 -L*)
7388 dir=`echo "X$x" | sed -e 's/^X-L//'`
7389 if test -n "$acl_shlibext"; then
7390 if test -f "$dir/$libname$shrext"; then
7391 found_dir="$dir"
7392 found_so="$dir/$libname$shrext"
7393 else
7394 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7395 ver=`(cd "$dir" && \
7396 for f in "$libname$shrext".*; do echo "$f"; done \
7397 | sed -e "s,^$libname$shrext\\\\.,," \
7398 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7399 | sed 1q ) 2>/dev/null`
7400 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7401 found_dir="$dir"
7402 found_so="$dir/$libname$shrext.$ver"
7403 fi
7404 else
7405 eval library_names=\"$acl_library_names_spec\"
7406 for f in $library_names; do
7407 if test -f "$dir/$f"; then
7408 found_dir="$dir"
7409 found_so="$dir/$f"
7410 break
7411 fi
7412 done
7413 fi
7414 fi
7415 fi
7416 if test "X$found_dir" = "X"; then
7417 if test -f "$dir/$libname.$acl_libext"; then
7418 found_dir="$dir"
7419 found_a="$dir/$libname.$acl_libext"
7420 fi
7421 fi
7422 if test "X$found_dir" != "X"; then
7423 if test -f "$dir/$libname.la"; then
7424 found_la="$dir/$libname.la"
7425 fi
7426 fi
7427 ;;
7428 esac
7429 if test "X$found_dir" != "X"; then
7430 break
7431 fi
7432 done
7433 fi
7434 if test "X$found_dir" != "X"; then
7435 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7436 if test "X$found_so" != "X"; then
7437 if test "$enable_rpath" = no \
7438 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7439 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7440 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7441 else
7442 haveit=
7443 for x in $ltrpathdirs; do
7444 if test "X$x" = "X$found_dir"; then
7445 haveit=yes
7446 break
7447 fi
7448 done
7449 if test -z "$haveit"; then
7450 ltrpathdirs="$ltrpathdirs $found_dir"
7451 fi
7452 if test "$acl_hardcode_direct" = yes; then
7453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7454 else
7455 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7456 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7457 haveit=
7458 for x in $rpathdirs; do
7459 if test "X$x" = "X$found_dir"; then
7460 haveit=yes
7461 break
7462 fi
7463 done
7464 if test -z "$haveit"; then
7465 rpathdirs="$rpathdirs $found_dir"
7466 fi
7467 else
7468 haveit=
7469 for x in $LDFLAGS $LIBICONV; do
7470
7471 acl_save_prefix="$prefix"
7472 prefix="$acl_final_prefix"
7473 acl_save_exec_prefix="$exec_prefix"
7474 exec_prefix="$acl_final_exec_prefix"
7475 eval x=\"$x\"
7476 exec_prefix="$acl_save_exec_prefix"
7477 prefix="$acl_save_prefix"
7478
7479 if test "X$x" = "X-L$found_dir"; then
7480 haveit=yes
7481 break
7482 fi
7483 done
7484 if test -z "$haveit"; then
7485 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7486 fi
7487 if test "$acl_hardcode_minus_L" != no; then
7488 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7489 else
7490 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7491 fi
7492 fi
7493 fi
7494 fi
7495 else
7496 if test "X$found_a" != "X"; then
7497 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7498 else
7499 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7500 fi
7501 fi
7502 additional_includedir=
7503 case "$found_dir" in
7504 */$acl_libdirstem | */$acl_libdirstem/)
7505 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7506 if test "$name" = 'iconv'; then
7507 LIBICONV_PREFIX="$basedir"
7508 fi
7509 additional_includedir="$basedir/include"
7510 ;;
7511 */$acl_libdirstem2 | */$acl_libdirstem2/)
7512 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7513 if test "$name" = 'iconv'; then
7514 LIBICONV_PREFIX="$basedir"
7515 fi
7516 additional_includedir="$basedir/include"
7517 ;;
7518 esac
7519 if test "X$additional_includedir" != "X"; then
7520 if test "X$additional_includedir" != "X/usr/include"; then
7521 haveit=
7522 if test "X$additional_includedir" = "X/usr/local/include"; then
7523 if test -n "$GCC"; then
7524 case $host_os in
7525 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7526 esac
7527 fi
7528 fi
7529 if test -z "$haveit"; then
7530 for x in $CPPFLAGS $INCICONV; do
7531
7532 acl_save_prefix="$prefix"
7533 prefix="$acl_final_prefix"
7534 acl_save_exec_prefix="$exec_prefix"
7535 exec_prefix="$acl_final_exec_prefix"
7536 eval x=\"$x\"
7537 exec_prefix="$acl_save_exec_prefix"
7538 prefix="$acl_save_prefix"
7539
7540 if test "X$x" = "X-I$additional_includedir"; then
7541 haveit=yes
7542 break
7543 fi
7544 done
7545 if test -z "$haveit"; then
7546 if test -d "$additional_includedir"; then
7547 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7548 fi
7549 fi
7550 fi
7551 fi
7552 fi
7553 if test -n "$found_la"; then
7554 save_libdir="$libdir"
7555 case "$found_la" in
7556 */* | *\\*) . "$found_la" ;;
7557 *) . "./$found_la" ;;
7558 esac
7559 libdir="$save_libdir"
7560 for dep in $dependency_libs; do
7561 case "$dep" in
7562 -L*)
7563 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7564 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7565 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7566 haveit=
7567 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7568 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7569 if test -n "$GCC"; then
7570 case $host_os in
7571 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7572 esac
7573 fi
7574 fi
7575 if test -z "$haveit"; then
7576 haveit=
7577 for x in $LDFLAGS $LIBICONV; do
7578
7579 acl_save_prefix="$prefix"
7580 prefix="$acl_final_prefix"
7581 acl_save_exec_prefix="$exec_prefix"
7582 exec_prefix="$acl_final_exec_prefix"
7583 eval x=\"$x\"
7584 exec_prefix="$acl_save_exec_prefix"
7585 prefix="$acl_save_prefix"
7586
7587 if test "X$x" = "X-L$additional_libdir"; then
7588 haveit=yes
7589 break
7590 fi
7591 done
7592 if test -z "$haveit"; then
7593 if test -d "$additional_libdir"; then
7594 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7595 fi
7596 fi
7597 haveit=
7598 for x in $LDFLAGS $LTLIBICONV; do
7599
7600 acl_save_prefix="$prefix"
7601 prefix="$acl_final_prefix"
7602 acl_save_exec_prefix="$exec_prefix"
7603 exec_prefix="$acl_final_exec_prefix"
7604 eval x=\"$x\"
7605 exec_prefix="$acl_save_exec_prefix"
7606 prefix="$acl_save_prefix"
7607
7608 if test "X$x" = "X-L$additional_libdir"; then
7609 haveit=yes
7610 break
7611 fi
7612 done
7613 if test -z "$haveit"; then
7614 if test -d "$additional_libdir"; then
7615 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7616 fi
7617 fi
7618 fi
7619 fi
7620 ;;
7621 -R*)
7622 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7623 if test "$enable_rpath" != no; then
7624 haveit=
7625 for x in $rpathdirs; do
7626 if test "X$x" = "X$dir"; then
7627 haveit=yes
7628 break
7629 fi
7630 done
7631 if test -z "$haveit"; then
7632 rpathdirs="$rpathdirs $dir"
7633 fi
7634 haveit=
7635 for x in $ltrpathdirs; do
7636 if test "X$x" = "X$dir"; then
7637 haveit=yes
7638 break
7639 fi
7640 done
7641 if test -z "$haveit"; then
7642 ltrpathdirs="$ltrpathdirs $dir"
7643 fi
7644 fi
7645 ;;
7646 -l*)
7647 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7648 ;;
7649 *.la)
7650 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7651 ;;
7652 *)
7653 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7654 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7655 ;;
7656 esac
7657 done
7658 fi
7659 else
7660 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7661 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7662 fi
7663 fi
7664 fi
0710d850 7665 done
7fbd9d09 7666 done
8f223b3e
FCE
7667 if test "X$rpathdirs" != "X"; then
7668 if test -n "$acl_hardcode_libdir_separator"; then
7669 alldirs=
7670 for found_dir in $rpathdirs; do
7671 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7672 done
7673 acl_save_libdir="$libdir"
7674 libdir="$alldirs"
7675 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7676 libdir="$acl_save_libdir"
7677 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7678 else
7679 for found_dir in $rpathdirs; do
7680 acl_save_libdir="$libdir"
7681 libdir="$found_dir"
7682 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7683 libdir="$acl_save_libdir"
7684 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7685 done
7686 fi
7687 fi
7688 if test "X$ltrpathdirs" != "X"; then
7689 for found_dir in $ltrpathdirs; do
7690 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7691 done
0710d850 7692 fi
70d28673 7693
7fbd9d09 7694
70d28673 7695
8f223b3e
FCE
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
8f223b3e
FCE
7721
7722
7723
7724
7725
7726
7727 LIBINTL=
7728 LTLIBINTL=
7729 POSUB=
7730
7731 case " $gt_needs " in
7732 *" need-formatstring-macros "*) gt_api_version=3 ;;
7733 *" need-ngettext "*) gt_api_version=2 ;;
7734 *) gt_api_version=1 ;;
7735 esac
7736 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7737 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7738
7739 if test "$USE_NLS" = "yes"; then
7740 gt_use_preinstalled_gnugettext=no
7741
7742
7743 if test $gt_api_version -ge 3; then
7744 gt_revision_test_code='
7745#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7746#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7747#endif
7748typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7749'
7750 else
7751 gt_revision_test_code=
7752 fi
7753 if test $gt_api_version -ge 2; then
7754 gt_expression_test_code=' + * ngettext ("", "", 0)'
7755 else
7756 gt_expression_test_code=
7757 fi
7758
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7760$as_echo_n "checking for GNU gettext in libc... " >&6; }
c3de29bd 7761if eval \${$gt_func_gnugettext_libc+:} false; then :
0710d850 7762 $as_echo_n "(cached) " >&6
2f1a1aea 7763else
1ef0423a 7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 7765/* end confdefs.h. */
8f223b3e
FCE
7766#include <libintl.h>
7767$gt_revision_test_code
7768extern int _nl_msg_cat_cntr;
7769extern int *_nl_domain_bindings;
2f1a1aea
FCE
7770int
7771main ()
7772{
8f223b3e
FCE
7773bindtextdomain ("", "");
7774return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
2f1a1aea
FCE
7775 ;
7776 return 0;
7777}
7778_ACEOF
8f223b3e
FCE
7779if ac_fn_c_try_link "$LINENO"; then :
7780 eval "$gt_func_gnugettext_libc=yes"
2f1a1aea 7781else
8f223b3e 7782 eval "$gt_func_gnugettext_libc=no"
2f1a1aea 7783fi
8f223b3e
FCE
7784rm -f core conftest.err conftest.$ac_objext \
7785 conftest$ac_exeext conftest.$ac_ext
7786fi
7787eval ac_res=\$$gt_func_gnugettext_libc
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7789$as_echo "$ac_res" >&6; }
2f1a1aea 7790
8f223b3e 7791 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
2f1a1aea 7792
1ef0423a 7793
8f223b3e
FCE
7794
7795
7796
7797 am_save_CPPFLAGS="$CPPFLAGS"
7798
7799 for element in $INCICONV; do
7800 haveit=
7801 for x in $CPPFLAGS; do
7802
7803 acl_save_prefix="$prefix"
7804 prefix="$acl_final_prefix"
7805 acl_save_exec_prefix="$exec_prefix"
7806 exec_prefix="$acl_final_exec_prefix"
7807 eval x=\"$x\"
7808 exec_prefix="$acl_save_exec_prefix"
7809 prefix="$acl_save_prefix"
7810
7811 if test "X$x" = "X$element"; then
7812 haveit=yes
7813 break
7814 fi
7815 done
7816 if test -z "$haveit"; then
7817 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7818 fi
7819 done
7820
7821
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7823$as_echo_n "checking for iconv... " >&6; }
c3de29bd 7824if ${am_cv_func_iconv+:} false; then :
8f223b3e 7825 $as_echo_n "(cached) " >&6
2f1a1aea 7826else
8f223b3e
FCE
7827
7828 am_cv_func_iconv="no, consider installing GNU libiconv"
7829 am_cv_lib_iconv=no
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831/* end confdefs.h. */
7832#include <stdlib.h>
7833#include <iconv.h>
7834int
7835main ()
7836{
7837iconv_t cd = iconv_open("","");
7838 iconv(cd,NULL,NULL,NULL,NULL);
7839 iconv_close(cd);
7840 ;
7841 return 0;
7842}
7843_ACEOF
7844if ac_fn_c_try_link "$LINENO"; then :
7845 am_cv_func_iconv=yes
2f1a1aea 7846fi
8f223b3e
FCE
7847rm -f core conftest.err conftest.$ac_objext \
7848 conftest$ac_exeext conftest.$ac_ext
7849 if test "$am_cv_func_iconv" != yes; then
7850 am_save_LIBS="$LIBS"
7851 LIBS="$LIBS $LIBICONV"
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h. */
7854#include <stdlib.h>
7855#include <iconv.h>
7856int
7857main ()
7858{
7859iconv_t cd = iconv_open("","");
7860 iconv(cd,NULL,NULL,NULL,NULL);
7861 iconv_close(cd);
7862 ;
7863 return 0;
7864}
7865_ACEOF
7866if ac_fn_c_try_link "$LINENO"; then :
7867 am_cv_lib_iconv=yes
7868 am_cv_func_iconv=yes
7869fi
7870rm -f core conftest.err conftest.$ac_objext \
7871 conftest$ac_exeext conftest.$ac_ext
7872 LIBS="$am_save_LIBS"
7873 fi
2f1a1aea
FCE
7874
7875fi
8f223b3e
FCE
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7877$as_echo "$am_cv_func_iconv" >&6; }
7878 if test "$am_cv_func_iconv" = yes; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7880$as_echo_n "checking for working iconv... " >&6; }
c3de29bd 7881if ${am_cv_func_iconv_works+:} false; then :
8f223b3e
FCE
7882 $as_echo_n "(cached) " >&6
7883else
2f1a1aea 7884
8f223b3e
FCE
7885 am_save_LIBS="$LIBS"
7886 if test $am_cv_lib_iconv = yes; then
7887 LIBS="$LIBS $LIBICONV"
7888 fi
7889 if test "$cross_compiling" = yes; then :
7890 case "$host_os" in
7891 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7892 *) am_cv_func_iconv_works="guessing yes" ;;
7893 esac
7894else
1ef0423a 7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 7896/* end confdefs.h. */
2f1a1aea 7897
8f223b3e
FCE
7898#include <iconv.h>
7899#include <string.h>
7900int main ()
7901{
7902 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7903 returns. */
7904 {
7905 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7906 if (cd_utf8_to_88591 != (iconv_t)(-1))
7907 {
7908 static const char input[] = "\342\202\254"; /* EURO SIGN */
7909 char buf[10];
7910 const char *inptr = input;
7911 size_t inbytesleft = strlen (input);
7912 char *outptr = buf;
7913 size_t outbytesleft = sizeof (buf);
7914 size_t res = iconv (cd_utf8_to_88591,
7915 (char **) &inptr, &inbytesleft,
7916 &outptr, &outbytesleft);
7917 if (res == 0)
7918 return 1;
7919 }
7920 }
7921 /* Test against Solaris 10 bug: Failures are not distinguishable from
7922 successful returns. */
7923 {
7924 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7925 if (cd_ascii_to_88591 != (iconv_t)(-1))
7926 {
7927 static const char input[] = "\263";
7928 char buf[10];
7929 const char *inptr = input;
7930 size_t inbytesleft = strlen (input);
7931 char *outptr = buf;
7932 size_t outbytesleft = sizeof (buf);
7933 size_t res = iconv (cd_ascii_to_88591,
7934 (char **) &inptr, &inbytesleft,
7935 &outptr, &outbytesleft);
7936 if (res == 0)
7937 return 1;
7938 }
7939 }
7940#if 0 /* This bug could be worked around by the caller. */
7941 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7942 {
7943 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7944 if (cd_88591_to_utf8 != (iconv_t)(-1))
7945 {
7946 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7947 char buf[50];
7948 const char *inptr = input;
7949 size_t inbytesleft = strlen (input);
7950 char *outptr = buf;
7951 size_t outbytesleft = sizeof (buf);
7952 size_t res = iconv (cd_88591_to_utf8,
7953 (char **) &inptr, &inbytesleft,
7954 &outptr, &outbytesleft);
7955 if ((int)res > 0)
7956 return 1;
7957 }
7958 }
7959#endif
7960 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7961 provided. */
7962 if (/* Try standardized names. */
7963 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7964 /* Try IRIX, OSF/1 names. */
7965 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7966 /* Try AIX names. */
7967 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7968 /* Try HP-UX names. */
7969 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7970 return 1;
7971 return 0;
7972}
2f1a1aea 7973_ACEOF
8f223b3e
FCE
7974if ac_fn_c_try_run "$LINENO"; then :
7975 am_cv_func_iconv_works=yes
2f1a1aea 7976else
8f223b3e 7977 am_cv_func_iconv_works=no
2f1a1aea 7978fi
8f223b3e
FCE
7979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7980 conftest.$ac_objext conftest.beam conftest.$ac_ext
7981fi
7982
7983 LIBS="$am_save_LIBS"
2f1a1aea
FCE
7984
7985fi
8f223b3e
FCE
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7987$as_echo "$am_cv_func_iconv_works" >&6; }
7988 case "$am_cv_func_iconv_works" in
7989 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7990 *) am_func_iconv=yes ;;
7991 esac
7992 else
7993 am_func_iconv=no am_cv_lib_iconv=no
7994 fi
7995 if test "$am_func_iconv" = yes; then
2f1a1aea 7996
8f223b3e
FCE
7997$as_echo "#define HAVE_ICONV 1" >>confdefs.h
7998
7999 fi
8000 if test "$am_cv_lib_iconv" = yes; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8002$as_echo_n "checking how to link with libiconv... " >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8004$as_echo "$LIBICONV" >&6; }
8005 else
8006 CPPFLAGS="$am_save_CPPFLAGS"
8007 LIBICONV=
8008 LTLIBICONV=
8009 fi
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021 use_additional=yes
8022
8023 acl_save_prefix="$prefix"
8024 prefix="$acl_final_prefix"
8025 acl_save_exec_prefix="$exec_prefix"
8026 exec_prefix="$acl_final_exec_prefix"
8027
8028 eval additional_includedir=\"$includedir\"
8029 eval additional_libdir=\"$libdir\"
8030
8031 exec_prefix="$acl_save_exec_prefix"
8032 prefix="$acl_save_prefix"
8033
8034
8035# Check whether --with-libintl-prefix was given.
8036if test "${with_libintl_prefix+set}" = set; then :
8037 withval=$with_libintl_prefix;
8038 if test "X$withval" = "Xno"; then
8039 use_additional=no
8040 else
8041 if test "X$withval" = "X"; then
8042
8043 acl_save_prefix="$prefix"
8044 prefix="$acl_final_prefix"
8045 acl_save_exec_prefix="$exec_prefix"
8046 exec_prefix="$acl_final_exec_prefix"
8047
8048 eval additional_includedir=\"$includedir\"
8049 eval additional_libdir=\"$libdir\"
8050
8051 exec_prefix="$acl_save_exec_prefix"
8052 prefix="$acl_save_prefix"
8053
8054 else
8055 additional_includedir="$withval/include"
8056 additional_libdir="$withval/$acl_libdirstem"
8057 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8058 && ! test -d "$withval/$acl_libdirstem"; then
8059 additional_libdir="$withval/$acl_libdirstem2"
8060 fi
8061 fi
8062 fi
8063
8064fi
8065
8066 LIBINTL=
8067 LTLIBINTL=
8068 INCINTL=
8069 LIBINTL_PREFIX=
8070 HAVE_LIBINTL=
8071 rpathdirs=
8072 ltrpathdirs=
8073 names_already_handled=
8074 names_next_round='intl '
8075 while test -n "$names_next_round"; do
8076 names_this_round="$names_next_round"
8077 names_next_round=
8078 for name in $names_this_round; do
8079 already_handled=
8080 for n in $names_already_handled; do
8081 if test "$n" = "$name"; then
8082 already_handled=yes
8083 break
8084 fi
8085 done
8086 if test -z "$already_handled"; then
8087 names_already_handled="$names_already_handled $name"
8088 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8089 eval value=\"\$HAVE_LIB$uppername\"
8090 if test -n "$value"; then
8091 if test "$value" = yes; then
8092 eval value=\"\$LIB$uppername\"
8093 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8094 eval value=\"\$LTLIB$uppername\"
8095 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8096 else
8097 :
8098 fi
8099 else
8100 found_dir=
8101 found_la=
8102 found_so=
8103 found_a=
8104 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8105 if test -n "$acl_shlibext"; then
8106 shrext=".$acl_shlibext" # typically: shrext=.so
8107 else
8108 shrext=
8109 fi
8110 if test $use_additional = yes; then
8111 dir="$additional_libdir"
8112 if test -n "$acl_shlibext"; then
8113 if test -f "$dir/$libname$shrext"; then
8114 found_dir="$dir"
8115 found_so="$dir/$libname$shrext"
8116 else
8117 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8118 ver=`(cd "$dir" && \
8119 for f in "$libname$shrext".*; do echo "$f"; done \
8120 | sed -e "s,^$libname$shrext\\\\.,," \
8121 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8122 | sed 1q ) 2>/dev/null`
8123 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8124 found_dir="$dir"
8125 found_so="$dir/$libname$shrext.$ver"
8126 fi
8127 else
8128 eval library_names=\"$acl_library_names_spec\"
8129 for f in $library_names; do
8130 if test -f "$dir/$f"; then
8131 found_dir="$dir"
8132 found_so="$dir/$f"
8133 break
8134 fi
8135 done
8136 fi
8137 fi
8138 fi
8139 if test "X$found_dir" = "X"; then
8140 if test -f "$dir/$libname.$acl_libext"; then
8141 found_dir="$dir"
8142 found_a="$dir/$libname.$acl_libext"
8143 fi
8144 fi
8145 if test "X$found_dir" != "X"; then
8146 if test -f "$dir/$libname.la"; then
8147 found_la="$dir/$libname.la"
8148 fi
8149 fi
8150 fi
8151 if test "X$found_dir" = "X"; then
8152 for x in $LDFLAGS $LTLIBINTL; do
8153
8154 acl_save_prefix="$prefix"
8155 prefix="$acl_final_prefix"
8156 acl_save_exec_prefix="$exec_prefix"
8157 exec_prefix="$acl_final_exec_prefix"
8158 eval x=\"$x\"
8159 exec_prefix="$acl_save_exec_prefix"
8160 prefix="$acl_save_prefix"
8161
8162 case "$x" in
8163 -L*)
8164 dir=`echo "X$x" | sed -e 's/^X-L//'`
8165 if test -n "$acl_shlibext"; then
8166 if test -f "$dir/$libname$shrext"; then
8167 found_dir="$dir"
8168 found_so="$dir/$libname$shrext"
8169 else
8170 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8171 ver=`(cd "$dir" && \
8172 for f in "$libname$shrext".*; do echo "$f"; done \
8173 | sed -e "s,^$libname$shrext\\\\.,," \
8174 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8175 | sed 1q ) 2>/dev/null`
8176 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8177 found_dir="$dir"
8178 found_so="$dir/$libname$shrext.$ver"
8179 fi
8180 else
8181 eval library_names=\"$acl_library_names_spec\"
8182 for f in $library_names; do
8183 if test -f "$dir/$f"; then
8184 found_dir="$dir"
8185 found_so="$dir/$f"
8186 break
8187 fi
8188 done
8189 fi
8190 fi
8191 fi
8192 if test "X$found_dir" = "X"; then
8193 if test -f "$dir/$libname.$acl_libext"; then
8194 found_dir="$dir"
8195 found_a="$dir/$libname.$acl_libext"
8196 fi
8197 fi
8198 if test "X$found_dir" != "X"; then
8199 if test -f "$dir/$libname.la"; then
8200 found_la="$dir/$libname.la"
8201 fi
8202 fi
8203 ;;
8204 esac
8205 if test "X$found_dir" != "X"; then
8206 break
8207 fi
8208 done
8209 fi
8210 if test "X$found_dir" != "X"; then
8211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8212 if test "X$found_so" != "X"; then
8213 if test "$enable_rpath" = no \
8214 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8215 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8216 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8217 else
8218 haveit=
8219 for x in $ltrpathdirs; do
8220 if test "X$x" = "X$found_dir"; then
8221 haveit=yes
8222 break
8223 fi
8224 done
8225 if test -z "$haveit"; then
8226 ltrpathdirs="$ltrpathdirs $found_dir"
8227 fi
8228 if test "$acl_hardcode_direct" = yes; then
8229 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8230 else
8231 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8232 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8233 haveit=
8234 for x in $rpathdirs; do
8235 if test "X$x" = "X$found_dir"; then
8236 haveit=yes
8237 break
8238 fi
8239 done
8240 if test -z "$haveit"; then
8241 rpathdirs="$rpathdirs $found_dir"
8242 fi
8243 else
8244 haveit=
8245 for x in $LDFLAGS $LIBINTL; do
8246
8247 acl_save_prefix="$prefix"
8248 prefix="$acl_final_prefix"
8249 acl_save_exec_prefix="$exec_prefix"
8250 exec_prefix="$acl_final_exec_prefix"
8251 eval x=\"$x\"
8252 exec_prefix="$acl_save_exec_prefix"
8253 prefix="$acl_save_prefix"
8254
8255 if test "X$x" = "X-L$found_dir"; then
8256 haveit=yes
8257 break
8258 fi
8259 done
8260 if test -z "$haveit"; then
8261 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8262 fi
8263 if test "$acl_hardcode_minus_L" != no; then
8264 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8265 else
8266 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8267 fi
8268 fi
8269 fi
8270 fi
8271 else
8272 if test "X$found_a" != "X"; then
8273 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8274 else
8275 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8276 fi
8277 fi
8278 additional_includedir=
8279 case "$found_dir" in
8280 */$acl_libdirstem | */$acl_libdirstem/)
8281 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8282 if test "$name" = 'intl'; then
8283 LIBINTL_PREFIX="$basedir"
8284 fi
8285 additional_includedir="$basedir/include"
8286 ;;
8287 */$acl_libdirstem2 | */$acl_libdirstem2/)
8288 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8289 if test "$name" = 'intl'; then
8290 LIBINTL_PREFIX="$basedir"
8291 fi
8292 additional_includedir="$basedir/include"
8293 ;;
8294 esac
8295 if test "X$additional_includedir" != "X"; then
8296 if test "X$additional_includedir" != "X/usr/include"; then
8297 haveit=
8298 if test "X$additional_includedir" = "X/usr/local/include"; then
8299 if test -n "$GCC"; then
8300 case $host_os in
8301 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8302 esac
8303 fi
8304 fi
8305 if test -z "$haveit"; then
8306 for x in $CPPFLAGS $INCINTL; do
8307
8308 acl_save_prefix="$prefix"
8309 prefix="$acl_final_prefix"
8310 acl_save_exec_prefix="$exec_prefix"
8311 exec_prefix="$acl_final_exec_prefix"
8312 eval x=\"$x\"
8313 exec_prefix="$acl_save_exec_prefix"
8314 prefix="$acl_save_prefix"
8315
8316 if test "X$x" = "X-I$additional_includedir"; then
8317 haveit=yes
8318 break
8319 fi
8320 done
8321 if test -z "$haveit"; then
8322 if test -d "$additional_includedir"; then
8323 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8324 fi
8325 fi
8326 fi
8327 fi
8328 fi
8329 if test -n "$found_la"; then
8330 save_libdir="$libdir"
8331 case "$found_la" in
8332 */* | *\\*) . "$found_la" ;;
8333 *) . "./$found_la" ;;
8334 esac
8335 libdir="$save_libdir"
8336 for dep in $dependency_libs; do
8337 case "$dep" in
8338 -L*)
8339 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8340 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8341 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8342 haveit=
8343 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8344 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8345 if test -n "$GCC"; then
8346 case $host_os in
8347 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8348 esac
8349 fi
8350 fi
8351 if test -z "$haveit"; then
8352 haveit=
8353 for x in $LDFLAGS $LIBINTL; do
8354
8355 acl_save_prefix="$prefix"
8356 prefix="$acl_final_prefix"
8357 acl_save_exec_prefix="$exec_prefix"
8358 exec_prefix="$acl_final_exec_prefix"
8359 eval x=\"$x\"
8360 exec_prefix="$acl_save_exec_prefix"
8361 prefix="$acl_save_prefix"
8362
8363 if test "X$x" = "X-L$additional_libdir"; then
8364 haveit=yes
8365 break
8366 fi
8367 done
8368 if test -z "$haveit"; then
8369 if test -d "$additional_libdir"; then
8370 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8371 fi
8372 fi
8373 haveit=
8374 for x in $LDFLAGS $LTLIBINTL; do
8375
8376 acl_save_prefix="$prefix"
8377 prefix="$acl_final_prefix"
8378 acl_save_exec_prefix="$exec_prefix"
8379 exec_prefix="$acl_final_exec_prefix"
8380 eval x=\"$x\"
8381 exec_prefix="$acl_save_exec_prefix"
8382 prefix="$acl_save_prefix"
8383
8384 if test "X$x" = "X-L$additional_libdir"; then
8385 haveit=yes
8386 break
8387 fi
8388 done
8389 if test -z "$haveit"; then
8390 if test -d "$additional_libdir"; then
8391 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8392 fi
8393 fi
8394 fi
8395 fi
8396 ;;
8397 -R*)
8398 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8399 if test "$enable_rpath" != no; then
8400 haveit=
8401 for x in $rpathdirs; do
8402 if test "X$x" = "X$dir"; then
8403 haveit=yes
8404 break
8405 fi
8406 done
8407 if test -z "$haveit"; then
8408 rpathdirs="$rpathdirs $dir"
8409 fi
8410 haveit=
8411 for x in $ltrpathdirs; do
8412 if test "X$x" = "X$dir"; then
8413 haveit=yes
8414 break
8415 fi
8416 done
8417 if test -z "$haveit"; then
8418 ltrpathdirs="$ltrpathdirs $dir"
8419 fi
8420 fi
8421 ;;
8422 -l*)
8423 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8424 ;;
8425 *.la)
8426 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8427 ;;
8428 *)
8429 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8430 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8431 ;;
8432 esac
8433 done
8434 fi
8435 else
8436 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8437 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8438 fi
8439 fi
8440 fi
8441 done
8442 done
8443 if test "X$rpathdirs" != "X"; then
8444 if test -n "$acl_hardcode_libdir_separator"; then
8445 alldirs=
8446 for found_dir in $rpathdirs; do
8447 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8448 done
8449 acl_save_libdir="$libdir"
8450 libdir="$alldirs"
8451 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8452 libdir="$acl_save_libdir"
8453 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8454 else
8455 for found_dir in $rpathdirs; do
8456 acl_save_libdir="$libdir"
8457 libdir="$found_dir"
8458 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8459 libdir="$acl_save_libdir"
8460 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8461 done
8462 fi
8463 fi
8464 if test "X$ltrpathdirs" != "X"; then
8465 for found_dir in $ltrpathdirs; do
8466 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8467 done
8468 fi
8469
8470
8471
8472
8473
8474
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8476$as_echo_n "checking for GNU gettext in libintl... " >&6; }
c3de29bd 8477if eval \${$gt_func_gnugettext_libintl+:} false; then :
8f223b3e 8478 $as_echo_n "(cached) " >&6
2f1a1aea 8479else
8f223b3e
FCE
8480 gt_save_CPPFLAGS="$CPPFLAGS"
8481 CPPFLAGS="$CPPFLAGS $INCINTL"
8482 gt_save_LIBS="$LIBS"
8483 LIBS="$LIBS $LIBINTL"
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 8485/* end confdefs.h. */
8f223b3e
FCE
8486#include <libintl.h>
8487$gt_revision_test_code
8488extern int _nl_msg_cat_cntr;
8489extern
8490#ifdef __cplusplus
8491"C"
2f1a1aea 8492#endif
8f223b3e 8493const char *_nl_expand_alias (const char *);
2f1a1aea
FCE
8494int
8495main ()
8496{
8f223b3e
FCE
8497bindtextdomain ("", "");
8498return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8499 ;
7fbd9d09 8500 return 0;
2f1a1aea
FCE
8501}
8502_ACEOF
8f223b3e
FCE
8503if ac_fn_c_try_link "$LINENO"; then :
8504 eval "$gt_func_gnugettext_libintl=yes"
1ef0423a 8505else
8f223b3e 8506 eval "$gt_func_gnugettext_libintl=no"
412e1bf7 8507fi
8f223b3e
FCE
8508rm -f core conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8511 LIBS="$LIBS $LIBICONV"
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h. */
8514#include <libintl.h>
8515$gt_revision_test_code
8516extern int _nl_msg_cat_cntr;
8517extern
8518#ifdef __cplusplus
8519"C"
8520#endif
8521const char *_nl_expand_alias (const char *);
8522int
8523main ()
8524{
8525bindtextdomain ("", "");
8526return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8527 ;
8528 return 0;
8529}
8530_ACEOF
8531if ac_fn_c_try_link "$LINENO"; then :
8532 LIBINTL="$LIBINTL $LIBICONV"
8533 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8534 eval "$gt_func_gnugettext_libintl=yes"
412e1bf7 8535
412e1bf7 8536fi
8f223b3e
FCE
8537rm -f core conftest.err conftest.$ac_objext \
8538 conftest$ac_exeext conftest.$ac_ext
8539 fi
8540 CPPFLAGS="$gt_save_CPPFLAGS"
8541 LIBS="$gt_save_LIBS"
412e1bf7 8542fi
8f223b3e
FCE
8543eval ac_res=\$$gt_func_gnugettext_libintl
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8545$as_echo "$ac_res" >&6; }
8546 fi
412e1bf7 8547
8f223b3e
FCE
8548 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8549 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8550 && test "$PACKAGE" != gettext-runtime \
8551 && test "$PACKAGE" != gettext-tools; }; then
8552 gt_use_preinstalled_gnugettext=yes
8553 else
8554 LIBINTL=
8555 LTLIBINTL=
8556 INCINTL=
8557 fi
412e1bf7 8558
412e1bf7 8559
2f1a1aea 8560
8f223b3e
FCE
8561 if test -n "$INTL_MACOSX_LIBS"; then
8562 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8563 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8564 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8565 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8566 fi
8567 fi
2f1a1aea 8568
8f223b3e
FCE
8569 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8570 || test "$nls_cv_use_gnu_gettext" = "yes"; then
2f1a1aea 8571
8f223b3e 8572$as_echo "#define ENABLE_NLS 1" >>confdefs.h
2f1a1aea 8573
8f223b3e
FCE
8574 else
8575 USE_NLS=no
8576 fi
8577 fi
2f1a1aea 8578
8f223b3e
FCE
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8580$as_echo_n "checking whether to use NLS... " >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8582$as_echo "$USE_NLS" >&6; }
8583 if test "$USE_NLS" = "yes"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8585$as_echo_n "checking where the gettext function comes from... " >&6; }
8586 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8587 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8588 gt_source="external libintl"
8589 else
8590 gt_source="libc"
8591 fi
8592 else
8593 gt_source="included intl directory"
8594 fi
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8596$as_echo "$gt_source" >&6; }
8597 fi
2f1a1aea 8598
8f223b3e
FCE
8599 if test "$USE_NLS" = "yes"; then
8600
8601 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8602 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8604$as_echo_n "checking how to link with libintl... " >&6; }
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8606$as_echo "$LIBINTL" >&6; }
8607
8608 for element in $INCINTL; do
8609 haveit=
8610 for x in $CPPFLAGS; do
8611
8612 acl_save_prefix="$prefix"
8613 prefix="$acl_final_prefix"
8614 acl_save_exec_prefix="$exec_prefix"
8615 exec_prefix="$acl_final_exec_prefix"
8616 eval x=\"$x\"
8617 exec_prefix="$acl_save_exec_prefix"
8618 prefix="$acl_save_prefix"
8619
8620 if test "X$x" = "X$element"; then
8621 haveit=yes
8622 break
8623 fi
8624 done
8625 if test -z "$haveit"; then
8626 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8627 fi
8628 done
412e1bf7 8629
8f223b3e 8630 fi
412e1bf7 8631
5e5aee9f 8632
8f223b3e 8633$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5e5aee9f 8634
2f1a1aea 8635
8f223b3e 8636$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
2f1a1aea 8637
8f223b3e 8638 fi
7fbd9d09 8639
8f223b3e 8640 POSUB=po
2f1a1aea 8641 fi
2f1a1aea 8642
2f1a1aea 8643
2f1a1aea 8644
8f223b3e 8645 INTLLIBS="$LIBINTL"
2f1a1aea
FCE
8646
8647
2f1a1aea 8648
2f1a1aea
FCE
8649
8650
8651
8652
e04a4b41
JS
8653for ac_func in ppoll
8654do :
8655 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
c3de29bd 8656if test "x$ac_cv_func_ppoll" = xyes; then :
e04a4b41
JS
8657 cat >>confdefs.h <<_ACEOF
8658#define HAVE_PPOLL 1
8659_ACEOF
8660
8661fi
8662done
8663
caf6872d 8664
70d28673 8665if test "${enable_prologues+set}" != set; then
1ef0423a 8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5
0710d850 8667$as_echo_n "checking to see if prologue searching should be the default... " >&6; }
70d28673
DS
8668 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
8669 echo ' yes '
8670 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8671 enable_prologues=yes
1ef0423a 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0710d850 8673$as_echo "yes" >&6; }
70d28673 8674 else
1ef0423a 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 8676$as_echo "no" >&6; }
70d28673
DS
8677 fi
8678fi
7fbd9d09 8679# Check whether --enable-prologues was given.
1ef0423a 8680if test "${enable_prologues+set}" = set; then :
7fbd9d09 8681 enableval=$enable_prologues;
70d28673 8682if test "$enable_prologues" = yes; then
44f75386 8683
1ef0423a 8684$as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h
44f75386 8685
70d28673 8686fi
7fbd9d09 8687fi
70d28673 8688
7fbd9d09 8689
e1bfefdc
SC
8690
8691if test "${enable_sdt_probes+set}" != set; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5
8693$as_echo_n "checking to see if sdt probes should be the default... " >&6; }
8694 if { echo '#if __GNUC__ < 4'
8695 echo ' yes '
8696 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8b714d4b 8697 enable_sdt_probes=no
e1bfefdc
SC
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699$as_echo "no" >&6; }
8700 else
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8702$as_echo "yes" >&6; }
8703 fi
8704fi
0f5d597d
JS
8705# Check whether --enable-sdt-probes was given.
8706if test "${enable_sdt_probes+set}" = set; then :
8707 enableval=$enable_sdt_probes;
8708fi
8709
8710if test "x$enable_sdt_probes" != xno; then :
8711
8712
8713$as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h
8714
8715
8716fi
8717
7fbd9d09 8718# Check whether --enable-ssp was given.
1ef0423a 8719if test "${enable_ssp+set}" = set; then :
7fbd9d09
FCE
8720 enableval=$enable_ssp;
8721fi
9921a199 8722
1ef0423a 8723if test "x$enable_ssp" != xno; then :
bbfd8c1a
FCE
8724
8725 save_CFLAGS="$CFLAGS"
8726 save_CXXFLAGS="$CXXFLAGS"
f0510eaa
FCE
8727 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
8728 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
1ef0423a
FCE
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730/* end confdefs.h. */
bbfd8c1a
FCE
8731int something ();
8732_ACEOF
1ef0423a 8733if ac_fn_c_try_compile "$LINENO"; then :
818ba2bc 8734
1ef0423a 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
0710d850 8736$as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
f0510eaa 8737 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
a530cfe0 8738 CXXFLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
bbfd8c1a 8739else
bbfd8c1a 8740
1ef0423a 8741 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
0710d850 8742$as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
bbfd8c1a
FCE
8743 CFLAGS="$save_CFLAGS"
8744 CXXFLAGS="$save_CXXFLAGS"
8745fi
7fbd9d09 8746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921a199 8747fi
70d28673 8748
cbe7ea07
FCE
8749
8750
8751
e1e3ba36 8752# Compiling without fPIE by default (see PR 9922)
7fbd9d09 8753# Check whether --enable-pie was given.
1ef0423a 8754if test "${enable_pie+set}" = set; then :
7fbd9d09
FCE
8755 enableval=$enable_pie;
8756fi
8730f377 8757
1ef0423a 8758if test "x$enable_pie" == xyes; then :
8730f377
FCE
8759
8760 save_CFLAGS="$CFLAGS"
8761 save_CXXFLAGS="$CXXFLAGS"
8762 save_LDFLAGS="$LDFLAGS"
7b53a460
SD
8763 CFLAGS="$CFLAGS -fPIE"
8764 CXXFLAGS="$CXXFLAGS -fPIE"
8730f377 8765 LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
1ef0423a
FCE
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767/* end confdefs.h. */
8730f377
FCE
8768void main () {}
8769_ACEOF
1ef0423a 8770if ac_fn_c_try_link "$LINENO"; then :
818ba2bc 8771
1ef0423a 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
0710d850 8773$as_echo "$as_me: Compiling with gcc pie et al." >&6;}
8730f377
FCE
8774 # LDFLAGS is special since it may be passed down to bundled-elfutils,
8775 # and interfere with the .so's built therein
5574ef2c 8776 PIELDFLAGS="$LDFLAGS"
8730f377 8777 LDFLAGS="$save_LDFLAGS"
5574ef2c
MW
8778 PIECFLAGS="$CFLAGS"
8779 CFLAGS="$save_CFLAGS"
8780 PIECXXFLAGS="$CXXFLAGS"
8781 CXXFLAGS="$save_CXXFLAGS"
8730f377
FCE
8782
8783else
8730f377 8784
1ef0423a 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
0710d850 8786$as_echo "$as_me: Compiler does not support -pie et al." >&6;}
5574ef2c 8787 PIECFLAGS=""
8730f377 8788 CFLAGS="$save_CFLAGS"
5574ef2c 8789 PIECXXFLAGS=""
8730f377
FCE
8790 CXXFLAGS="$save_CXXFLAGS"
8791 PIELDFLAGS=""
8792 LDFLAGS="$save_LDFLAGS"
8793fi
1ef0423a
FCE
8794rm -f core conftest.err conftest.$ac_objext \
8795 conftest$ac_exeext conftest.$ac_ext
8730f377
FCE
8796fi
8797
8798
8799
5574ef2c 8800
7fbd9d09 8801# Check whether --enable-sqlite was given.
1ef0423a 8802if test "${enable_sqlite+set}" = set; then :
7fbd9d09 8803 enableval=$enable_sqlite;
9921a199 8804else
e8f3c2c2 8805 enable_sqlite=check
7fbd9d09
FCE
8806fi
8807 sqlite3_LIBS=
1ef0423a
FCE
8808if test "x$enable_sqlite" != xno; then :
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
0710d850 8810$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
c3de29bd 8811if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
0710d850 8812 $as_echo_n "(cached) " >&6
42feb3c0
WC
8813else
8814 ac_check_lib_save_LIBS=$LIBS
8815LIBS="-lsqlite3 $LIBS"
1ef0423a 8816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42feb3c0
WC
8817/* end confdefs.h. */
8818
7fbd9d09
FCE
8819/* Override any GCC internal prototype to avoid an error.
8820 Use char because int might match the return type of a GCC
8821 builtin and then its argument prototype would still apply. */
42feb3c0
WC
8822#ifdef __cplusplus
8823extern "C"
8824#endif
8825char sqlite3_open ();
8826int
8827main ()
8828{
7fbd9d09 8829return sqlite3_open ();
42feb3c0
WC
8830 ;
8831 return 0;
8832}
8833_ACEOF
1ef0423a 8834if ac_fn_c_try_link "$LINENO"; then :
42feb3c0
WC
8835 ac_cv_lib_sqlite3_sqlite3_open=yes
8836else
1ef0423a 8837 ac_cv_lib_sqlite3_sqlite3_open=no
42feb3c0 8838fi
1ef0423a
FCE
8839rm -f core conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
42feb3c0
WC
8841LIBS=$ac_check_lib_save_LIBS
8842fi
1ef0423a 8843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
0710d850 8844$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
c3de29bd 8845if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
9921a199 8846 sqlite3_LIBS=-lsqlite3
42feb3c0 8847
0d563e60 8848
1ef0423a 8849$as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h
07606685 8850
9921a199
DS
8851else
8852 if test "x$enable_sqlite" != xcheck; then
1ef0423a 8853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 8854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
8855as_fn_error $? "--enable-sqlite was given, but test for sqlite failed
8856See \`config.log' for more details" "$LINENO" 5; }
9921a199 8857 fi
42feb3c0
WC
8858fi
8859
9921a199 8860fi
44f75386 8861
6d14a4a9 8862# Check whether --enable-translator was given.
1ef0423a 8863if test "${enable_translator+set}" = set; then :
6d14a4a9
EB
8864 enableval=$enable_translator;
8865else
8866 enable_translator="yes"
8867fi
8868
8869 if test "$enable_translator" == "yes"; then
8870 BUILD_TRANSLATOR_TRUE=
8871 BUILD_TRANSLATOR_FALSE='#'
8872else
8873 BUILD_TRANSLATOR_TRUE='#'
8874 BUILD_TRANSLATOR_FALSE=
8875fi
8876
8877
7fbd9d09 8878# Check whether --enable-crash was given.
1ef0423a 8879if test "${enable_crash+set}" = set; then :
7fbd9d09 8880 enableval=$enable_crash; if test "$enable_crash" != "no"; then
564eb0a8
DS
8881 save_CPPFLAGS="$CPPFLAGS"
8882 if test "$enable_crash" != "yes"; then
8883 staplog_CPPFLAGS=-I$enable_crash
4a3c19da 8884 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
35a04c8e 8885
412e1bf7 8886 fi
1ef0423a
FCE
8887 for ac_header in crash/defs.h
8888do :
8889 ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" "
8890#define NR_CPUS 256
5e5aee9f 8891
1ef0423a 8892"
c3de29bd 8893if test "x$ac_cv_header_crash_defs_h" = xyes; then :
1ef0423a
FCE
8894 cat >>confdefs.h <<_ACEOF
8895#define HAVE_CRASH_DEFS_H 1
5e5aee9f 8896_ACEOF
5e5aee9f 8897
1ef0423a 8898else
5d4aa1f5 8899 as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5
1ef0423a 8900fi
7fbd9d09 8901
1ef0423a 8902done
5e5aee9f 8903
1ef0423a
FCE
8904 CPPFLAGS="$save_CPPFLAGS"
8905 fi
5e5aee9f 8906else
1ef0423a 8907 enable_crash="no"
7fbd9d09 8908fi
564eb0a8 8909
7fbd9d09 8910 if test "$enable_crash" != "no"; then
35a04c8e
FCE
8911 BUILD_CRASHMOD_TRUE=
8912 BUILD_CRASHMOD_FALSE='#'
8913else
8914 BUILD_CRASHMOD_TRUE='#'
8915 BUILD_CRASHMOD_FALSE=
8916fi
8917
8918
92aff3c7 8919building_docs="no"
7fbd9d09 8920# Check whether --enable-docs was given.
1ef0423a 8921if test "${enable_docs+set}" = set; then :
7fbd9d09 8922 enableval=$enable_docs; enable_docs=$enableval
465e8fbf
FCE
8923else
8924 enable_docs="check"
7fbd9d09
FCE
8925fi
8926
465e8fbf
FCE
8927# Extract the first word of "latex", so it can be a program name with args.
8928set dummy latex; ac_word=$2
1ef0423a 8929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 8930$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 8931if ${ac_cv_prog_have_latex+:} false; then :
0710d850 8932 $as_echo_n "(cached) " >&6
465e8fbf
FCE
8933else
8934 if test -n "$have_latex"; then
8935 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
8936else
8937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938for as_dir in $PATH
8939do
8940 IFS=$as_save_IFS
8941 test -z "$as_dir" && as_dir=.
1ef0423a 8942 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 8943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 8944 ac_cv_prog_have_latex="yes"
1ef0423a 8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
8946 break 2
8947 fi
8948done
1ef0423a 8949 done
7fbd9d09 8950IFS=$as_save_IFS
465e8fbf
FCE
8951
8952 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
8953fi
8954fi
8955have_latex=$ac_cv_prog_have_latex
8956if test -n "$have_latex"; then
1ef0423a 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5
0710d850 8958$as_echo "$have_latex" >&6; }
465e8fbf 8959else
1ef0423a 8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 8961$as_echo "no" >&6; }
465e8fbf
FCE
8962fi
8963
7fbd9d09 8964
465e8fbf
FCE
8965# Extract the first word of "dvips", so it can be a program name with args.
8966set dummy dvips; ac_word=$2
1ef0423a 8967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 8968$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 8969if ${ac_cv_prog_have_dvips+:} false; then :
0710d850 8970 $as_echo_n "(cached) " >&6
465e8fbf
FCE
8971else
8972 if test -n "$have_dvips"; then
8973 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
8974else
8975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976for as_dir in $PATH
8977do
8978 IFS=$as_save_IFS
8979 test -z "$as_dir" && as_dir=.
1ef0423a 8980 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 8981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 8982 ac_cv_prog_have_dvips="yes"
1ef0423a 8983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
8984 break 2
8985 fi
8986done
1ef0423a 8987 done
7fbd9d09 8988IFS=$as_save_IFS
465e8fbf
FCE
8989
8990 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
8991fi
8992fi
8993have_dvips=$ac_cv_prog_have_dvips
8994if test -n "$have_dvips"; then
1ef0423a 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
0710d850 8996$as_echo "$have_dvips" >&6; }
465e8fbf 8997else
1ef0423a 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 8999$as_echo "no" >&6; }
465e8fbf
FCE
9000fi
9001
7fbd9d09 9002
465e8fbf
FCE
9003# Extract the first word of "ps2pdf", so it can be a program name with args.
9004set dummy ps2pdf; ac_word=$2
1ef0423a 9005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 9006$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 9007if ${ac_cv_prog_have_ps2pdf+:} false; then :
0710d850 9008 $as_echo_n "(cached) " >&6
465e8fbf
FCE
9009else
9010 if test -n "$have_ps2pdf"; then
9011 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
9012else
9013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014for as_dir in $PATH
9015do
9016 IFS=$as_save_IFS
9017 test -z "$as_dir" && as_dir=.
1ef0423a 9018 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 9019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465e8fbf 9020 ac_cv_prog_have_ps2pdf="yes"
1ef0423a 9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
9022 break 2
9023 fi
9024done
1ef0423a 9025 done
7fbd9d09 9026IFS=$as_save_IFS
465e8fbf
FCE
9027
9028 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
9029fi
9030fi
9031have_ps2pdf=$ac_cv_prog_have_ps2pdf
9032if test -n "$have_ps2pdf"; then
1ef0423a 9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5
0710d850 9034$as_echo "$have_ps2pdf" >&6; }
465e8fbf 9035else
1ef0423a 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 9037$as_echo "no" >&6; }
465e8fbf
FCE
9038fi
9039
7fbd9d09 9040
b62c413b
EM
9041# Extract the first word of "latex2html", so it can be a program name with args.
9042set dummy latex2html; ac_word=$2
1ef0423a 9043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 9044$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 9045if ${ac_cv_prog_have_latex2html+:} false; then :
0710d850 9046 $as_echo_n "(cached) " >&6
b62c413b
EM
9047else
9048 if test -n "$have_latex2html"; then
9049 ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test.
9050else
9051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052for as_dir in $PATH
9053do
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
1ef0423a 9056 for ac_exec_ext in '' $ac_executable_extensions; do
b62c413b
EM
9057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9058 ac_cv_prog_have_latex2html="yes"
1ef0423a 9059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b62c413b
EM
9060 break 2
9061 fi
9062done
1ef0423a 9063 done
b62c413b
EM
9064IFS=$as_save_IFS
9065
9066 test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no"
9067fi
9068fi
9069have_latex2html=$ac_cv_prog_have_latex2html
9070if test -n "$have_latex2html"; then
1ef0423a 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex2html" >&5
0710d850 9072$as_echo "$have_latex2html" >&6; }
b62c413b 9073else
1ef0423a 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 9075$as_echo "no" >&6; }
b62c413b
EM
9076fi
9077
9078
9079if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then
2d4b8ddf 9080 if test "$enable_docs" == "yes"; then
5d4aa1f5 9081 as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5
465e8fbf 9082 fi
2d4b8ddf 9083 if test "$enable_docs" == "check"; then
1ef0423a 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5
0710d850 9085$as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
2d4b8ddf 9086 fi
465e8fbf 9087fi
b62c413b 9088if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then
92aff3c7
WC
9089 building_docs="yes"
9090fi
7fbd9d09 9091 if test "$building_docs" == "yes"; then
465e8fbf
FCE
9092 BUILD_DOCS_TRUE=
9093 BUILD_DOCS_FALSE='#'
9094else
9095 BUILD_DOCS_TRUE='#'
9096 BUILD_DOCS_FALSE=
9097fi
9098
9099
53ade4da
MW
9100building_publican="no"
9101# Check whether --enable-publican was given.
1ef0423a 9102if test "${enable_publican+set}" = set; then :
53ade4da
MW
9103 enableval=$enable_publican; enable_publican=$enableval
9104else
9105 enable_publican="check"
9106fi
9107
9108if test "$building_docs" == "no" -a "$enable_publican" == "yes" ; then
5d4aa1f5 9109 as_fn_error $? "must use --enable-docs with --enable-publican" "$LINENO" 5
53ade4da
MW
9110fi
9111# Extract the first word of "publican", so it can be a program name with args.
9112set dummy publican; ac_word=$2
1ef0423a 9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
53ade4da 9114$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 9115if ${ac_cv_prog_have_publican+:} false; then :
53ade4da
MW
9116 $as_echo_n "(cached) " >&6
9117else
9118 if test -n "$have_publican"; then
9119 ac_cv_prog_have_publican="$have_publican" # Let the user override the test.
9120else
9121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122for as_dir in $PATH
9123do
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
1ef0423a 9126 for ac_exec_ext in '' $ac_executable_extensions; do
53ade4da
MW
9127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9128 ac_cv_prog_have_publican="yes"
1ef0423a 9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53ade4da
MW
9130 break 2
9131 fi
9132done
1ef0423a 9133 done
53ade4da
MW
9134IFS=$as_save_IFS
9135
9136 test -z "$ac_cv_prog_have_publican" && ac_cv_prog_have_publican="no"
9137fi
9138fi
9139have_publican=$ac_cv_prog_have_publican
9140if test -n "$have_publican"; then
1ef0423a 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_publican" >&5
53ade4da
MW
9142$as_echo "$have_publican" >&6; }
9143else
1ef0423a 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53ade4da
MW
9145$as_echo "no" >&6; }
9146fi
9147
9148
9149if test "$enable_publican" == "yes"; then
9150 if test "x${have_publican}" != "xyes"; then
5d4aa1f5 9151 as_fn_error $? "cannot find publican for building publican guides" "$LINENO" 5
53ade4da
MW
9152 fi
9153fi
9154if test "x${have_publican}" == "xyes" -a "$enable_publican" != "no" -a "${building_docs}" == "yes"; then
9155 building_publican="yes"
9156fi
9157 if test "$building_publican" == "yes"; then
9158 BUILD_PUBLICAN_TRUE=
9159 BUILD_PUBLICAN_FALSE='#'
9160else
9161 BUILD_PUBLICAN_TRUE='#'
9162 BUILD_PUBLICAN_FALSE=
9163fi
9164
89bc1a6a 9165publican_brand="common"
53ade4da
MW
9166
9167# Check whether --with-publican-brand was given.
1ef0423a 9168if test "${with_publican_brand+set}" = set; then :
53ade4da
MW
9169 withval=$with_publican_brand; publican_brand=$withval
9170else
89bc1a6a 9171 publican_brand="common"
53ade4da
MW
9172fi
9173
9174PUBLICAN_BRAND=$publican_brand
9175
9176
92aff3c7 9177building_refdocs="no"
7fbd9d09 9178# Check whether --enable-refdocs was given.
1ef0423a 9179if test "${enable_refdocs+set}" = set; then :
7fbd9d09 9180 enableval=$enable_refdocs; enable_refdocs=$enableval
92aff3c7
WC
9181else
9182 enable_refdocs="check"
7fbd9d09
FCE
9183fi
9184
92aff3c7 9185if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
5d4aa1f5 9186 as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5
92aff3c7
WC
9187fi
9188# Extract the first word of "xmlto", so it can be a program name with args.
9189set dummy xmlto; ac_word=$2
1ef0423a 9190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 9191$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 9192if ${ac_cv_prog_have_xmlto+:} false; then :
0710d850 9193 $as_echo_n "(cached) " >&6
92aff3c7
WC
9194else
9195 if test -n "$have_xmlto"; then
9196 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
9197else
9198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199for as_dir in $PATH
9200do
9201 IFS=$as_save_IFS
9202 test -z "$as_dir" && as_dir=.
1ef0423a 9203 for ac_exec_ext in '' $ac_executable_extensions; do
7fbd9d09 9204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
92aff3c7 9205 ac_cv_prog_have_xmlto="yes"
1ef0423a 9206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
92aff3c7
WC
9207 break 2
9208 fi
9209done
1ef0423a 9210 done
7fbd9d09 9211IFS=$as_save_IFS
92aff3c7
WC
9212
9213 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
9214fi
9215fi
9216have_xmlto=$ac_cv_prog_have_xmlto
9217if test -n "$have_xmlto"; then
1ef0423a 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
0710d850 9219$as_echo "$have_xmlto" >&6; }
92aff3c7 9220else
1ef0423a 9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 9222$as_echo "no" >&6; }
92aff3c7
WC
9223fi
9224
7fbd9d09 9225
ccf8bc85
EM
9226if test "$enable_refdocs" == "yes"; then
9227 if test "x${have_xmlto}" != "xyes"; then
5d4aa1f5 9228 as_fn_error $? "cannot find xmlto for building reference documentation" "$LINENO" 5
ccf8bc85
EM
9229 fi
9230fi
9231if test "x${have_xmlto}" == "xyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
9232 building_refdocs="yes"
9233fi
9234 if test "$building_refdocs" == "yes"; then
9235 BUILD_REFDOCS_TRUE=
9236 BUILD_REFDOCS_FALSE='#'
9237else
9238 BUILD_REFDOCS_TRUE='#'
9239 BUILD_REFDOCS_FALSE=
9240fi
9241
9242
468abaf4 9243cat > conftest.xml << 'EOF'
aa5951be
WC
9244<?xml version="1.0" encoding="UTF-8"?>
9245<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
9246"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
468abaf4
FCE
9247 <book lang="en">
9248 <bookinfo><title>foo</title></bookinfo>
a8fcf687
MW
9249 <chapter id="logging.stp"><title>Logging Tapset</title>
9250 <refentry id="API-log"><refnamediv><refname>log</refname>
9251 <refpurpose>logging</refpurpose></refnamediv>
9252 <refsect1><title>Description</title>
9253 <para>baz</para></refsect1></refentry></chapter>
aa5951be
WC
9254 </book>
9255EOF
468abaf4
FCE
9256
9257if test "x${have_xmlto}" == "xyes"; then
1ef0423a 9258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5
0710d850 9259$as_echo_n "checking for xmlto --stringparam support... " >&6; }
4b5627b1 9260 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
468abaf4
FCE
9261 if test $? == 0; then
9262 have_xmlto_stringparam="yes"
1ef0423a 9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0710d850 9264$as_echo "yes" >&6; }
468abaf4 9265 else
1ef0423a 9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 9267$as_echo "no" >&6; }
468abaf4 9268 fi
4b5627b1 9269 rm -f conftest.html
468abaf4
FCE
9270fi
9271 if test "$have_xmlto_stringparam" == "yes"; then
9272 XMLTO_STRINGPARAM_TRUE=
9273 XMLTO_STRINGPARAM_FALSE='#'
9274else
9275 XMLTO_STRINGPARAM_TRUE='#'
9276 XMLTO_STRINGPARAM_FALSE=
9277fi
9278
9279
9280if test "x${building_refdocs}" == "xyes"; then
1ef0423a 9281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto pdf support" >&5
0710d850 9282$as_echo_n "checking for xmlto pdf support... " >&6; }
468abaf4 9283 xmlto pdf conftest.xml >& /dev/null
aa5951be
WC
9284 if test $? == 0; then
9285 have_xmlto_pdf="yes"
1ef0423a 9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0710d850 9287$as_echo "yes" >&6; }
aa5951be 9288 else
1ef0423a 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 9290$as_echo "no" >&6; }
1ef0423a 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building reference documentation in PDF format" >&5
0710d850 9292$as_echo "$as_me: WARNING: Not building reference documentation in PDF format" >&2;}
aa5951be 9293 fi
468abaf4 9294 rm -f conftest.pdf
aa5951be 9295fi
a8fcf687 9296 if test "$have_xmlto_pdf" == "yes"; then
ccf8bc85
EM
9297 BUILD_PDFREFDOCS_TRUE=
9298 BUILD_PDFREFDOCS_FALSE='#'
92aff3c7 9299else
ccf8bc85
EM
9300 BUILD_PDFREFDOCS_TRUE='#'
9301 BUILD_PDFREFDOCS_FALSE=
92aff3c7
WC
9302fi
9303
9304
468abaf4
FCE
9305rm -f conftest.xml
9306
a0e2728a 9307
28f121c3
DEP
9308# Check whether --with-nss was given.
9309if test "${with_nss+set}" = set; then :
9310 withval=$with_nss;
a0e2728a
DB
9311fi
9312
9313
1087b83f
TM
9314
9315
5d4aa1f5
FCE
9316
9317
9318
9319
1087b83f
TM
9320if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9321 if test -n "$ac_tool_prefix"; then
9322 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9323set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
1ef0423a 9324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 9325$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 9326if ${ac_cv_path_PKG_CONFIG+:} false; then :
0710d850 9327 $as_echo_n "(cached) " >&6
1087b83f
TM
9328else
9329 case $PKG_CONFIG in
9330 [\\/]* | ?:[\\/]*)
9331 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9332 ;;
9333 *)
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335for as_dir in $PATH
9336do
9337 IFS=$as_save_IFS
9338 test -z "$as_dir" && as_dir=.
1ef0423a 9339 for ac_exec_ext in '' $ac_executable_extensions; do
1087b83f
TM
9340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9341 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1ef0423a 9342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1087b83f
TM
9343 break 2
9344 fi
9345done
1ef0423a 9346 done
1087b83f
TM
9347IFS=$as_save_IFS
9348
9349 ;;
9350esac
9351fi
9352PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9353if test -n "$PKG_CONFIG"; then
1ef0423a 9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
0710d850 9355$as_echo "$PKG_CONFIG" >&6; }
1087b83f 9356else
1ef0423a 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 9358$as_echo "no" >&6; }
1087b83f
TM
9359fi
9360
9361
9362fi
9363if test -z "$ac_cv_path_PKG_CONFIG"; then
9364 ac_pt_PKG_CONFIG=$PKG_CONFIG
9365 # Extract the first word of "pkg-config", so it can be a program name with args.
9366set dummy pkg-config; ac_word=$2
1ef0423a 9367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 9368$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 9369if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
0710d850 9370 $as_echo_n "(cached) " >&6
1087b83f
TM
9371else
9372 case $ac_pt_PKG_CONFIG in
9373 [\\/]* | ?:[\\/]*)
9374 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9375 ;;
9376 *)
9377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378for as_dir in $PATH
9379do
9380 IFS=$as_save_IFS
9381 test -z "$as_dir" && as_dir=.
1ef0423a 9382 for ac_exec_ext in '' $ac_executable_extensions; do
1087b83f
TM
9383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9384 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1ef0423a 9385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1087b83f
TM
9386 break 2
9387 fi
9388done
1ef0423a 9389 done
1087b83f
TM
9390IFS=$as_save_IFS
9391
9392 ;;
9393esac
9394fi
9395ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9396if test -n "$ac_pt_PKG_CONFIG"; then
1ef0423a 9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
0710d850 9398$as_echo "$ac_pt_PKG_CONFIG" >&6; }
1087b83f 9399else
1ef0423a 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 9401$as_echo "no" >&6; }
1087b83f
TM
9402fi
9403
9404 if test "x$ac_pt_PKG_CONFIG" = x; then
9405 PKG_CONFIG=""
9406 else
9407 case $cross_compiling:$ac_tool_warned in
9408yes:)
1ef0423a 9409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 9410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1087b83f
TM
9411ac_tool_warned=yes ;;
9412esac
9413 PKG_CONFIG=$ac_pt_PKG_CONFIG
9414 fi
9415else
9416 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9417fi
9418
9419fi
9420if test -n "$PKG_CONFIG"; then
9421 _pkg_min_version=0.9.0
1ef0423a 9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
0710d850 9423$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
1087b83f 9424 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1ef0423a 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0710d850 9426$as_echo "yes" >&6; }
1087b83f 9427 else
1ef0423a 9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 9429$as_echo "no" >&6; }
1087b83f
TM
9430 PKG_CONFIG=""
9431 fi
1087b83f 9432fi
28f121c3
DEP
9433if test "x$with_nss" != "xno"; then :
9434
9435
9436pkg_failed=no
9437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
9438$as_echo_n "checking for nss... " >&6; }
9439
9440if test -n "$nss_CFLAGS"; then
9441 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
9442 elif test -n "$PKG_CONFIG"; then
9443 if test -n "$PKG_CONFIG" && \
9444 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
9445 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
9446 ac_status=$?
9447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9448 test $ac_status = 0; }; then
9449 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null`
9450else
9451 pkg_failed=yes
9452fi
9453 else
9454 pkg_failed=untried
9455fi
9456if test -n "$nss_LIBS"; then
9457 pkg_cv_nss_LIBS="$nss_LIBS"
9458 elif test -n "$PKG_CONFIG"; then
9459 if test -n "$PKG_CONFIG" && \
9460 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
9461 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
9462 ac_status=$?
9463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9464 test $ac_status = 0; }; then
9465 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null`
9466else
9467 pkg_failed=yes
9468fi
9469 else
9470 pkg_failed=untried
9471fi
9472
9473
9474
9475if test $pkg_failed = yes; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9477$as_echo "no" >&6; }
9478
9479if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9480 _pkg_short_errors_supported=yes
9481else
9482 _pkg_short_errors_supported=no
9483fi
9484 if test $_pkg_short_errors_supported = yes; then
9485 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "nss >= 3" 2>&1`
9486 else
9487 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors "nss >= 3" 2>&1`
9488 fi
9489 # Put the nasty error message in config.log where it belongs
9490 echo "$nss_PKG_ERRORS" >&5
9491
9492 have_nss=no
9493elif test $pkg_failed = untried; then
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495$as_echo "no" >&6; }
9496 have_nss=no
9497else
9498 nss_CFLAGS=$pkg_cv_nss_CFLAGS
9499 nss_LIBS=$pkg_cv_nss_LIBS
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9501$as_echo "yes" >&6; }
9502 have_nss=yes
9503
9504$as_echo "#define HAVE_NSS 1" >>confdefs.h
9505
9506
9507fi
9508
9509else
9510 have_nss=no
9511fi
9512
9513 if test "${have_nss}" = "yes"; then
9514 HAVE_NSS_TRUE=
9515 HAVE_NSS_FALSE='#'
9516else
9517 HAVE_NSS_TRUE='#'
9518 HAVE_NSS_FALSE=
9519fi
9520
9521
9522# Check whether --enable-server was given.
9523if test "${enable_server+set}" = set; then :
9524 enableval=$enable_server; enable_server=$enableval
9525else
9526 enable_server="check"
9527fi
9528
9529
9530if test "$enable_server" != "no"; then
9531 if test "x${have_nss}" != "xyes"; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5
9533$as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;}
9534 fi
9535fi
9536 if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then
9537 BUILD_SERVER_TRUE=
9538 BUILD_SERVER_FALSE='#'
9539else
9540 BUILD_SERVER_TRUE='#'
9541 BUILD_SERVER_FALSE=
9542fi
9543
9544
9545if test "${have_nss}" != "yes"; then
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile server client functionality will be restricted, cannot find nss development files" >&5
9547$as_echo "$as_me: WARNING: some compile server client functionality will be restricted, cannot find nss development files" >&2;}
9548fi
9549
9550
9551# Check whether --with-avahi was given.
9552if test "${with_avahi+set}" = set; then :
9553 withval=$with_avahi;
9554fi
9555
9556
9557if test "x$with_avahi" != "xno"; then :
9558
9559
9560pkg_failed=no
9561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
9562$as_echo_n "checking for avahi... " >&6; }
9563
9564if test -n "$avahi_CFLAGS"; then
9565 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
9566 elif test -n "$PKG_CONFIG"; then
9567 if test -n "$PKG_CONFIG" && \
9568 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
9569 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
9570 ac_status=$?
9571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9572 test $ac_status = 0; }; then
9573 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
9574else
9575 pkg_failed=yes
9576fi
9577 else
9578 pkg_failed=untried
9579fi
9580if test -n "$avahi_LIBS"; then
9581 pkg_cv_avahi_LIBS="$avahi_LIBS"
9582 elif test -n "$PKG_CONFIG"; then
9583 if test -n "$PKG_CONFIG" && \
9584 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
9585 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
9586 ac_status=$?
9587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9588 test $ac_status = 0; }; then
9589 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
9590else
9591 pkg_failed=yes
9592fi
9593 else
9594 pkg_failed=untried
9595fi
9596
9597
9598
9599if test $pkg_failed = yes; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601$as_echo "no" >&6; }
9602
9603if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9604 _pkg_short_errors_supported=yes
9605else
9606 _pkg_short_errors_supported=no
9607fi
9608 if test $_pkg_short_errors_supported = yes; then
9609 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "avahi-client" 2>&1`
9610 else
9611 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors "avahi-client" 2>&1`
9612 fi
9613 # Put the nasty error message in config.log where it belongs
9614 echo "$avahi_PKG_ERRORS" >&5
9615
9616 have_avahi=no
9617elif test $pkg_failed = untried; then
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619$as_echo "no" >&6; }
9620 have_avahi=no
9621else
9622 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
9623 avahi_LIBS=$pkg_cv_avahi_LIBS
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9625$as_echo "yes" >&6; }
9626 have_avahi=yes
9627
9628$as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9629
9630
9631fi
9632
9633else
9634 have_avahi=no
9635fi
9636
9637 if test "${have_avahi}" = "yes"; then
9638 HAVE_AVAHI_TRUE=
9639 HAVE_AVAHI_FALSE='#'
9640else
9641 HAVE_AVAHI_TRUE='#'
9642 HAVE_AVAHI_FALSE=
9643fi
9644
9645
9646if test "${have_avahi}" != "yes"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5
9648$as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;}
9649fi
9650
9651# Check whether --enable-grapher was given.
9652if test "${enable_grapher+set}" = set; then :
9653 enableval=$enable_grapher;
9654else
9655 enable_grapher="check"
9656fi
f8a49389
DS
9657
9658ac_ext=cpp
9659ac_cpp='$CXXCPP $CPPFLAGS'
9660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1ef0423a 9663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
0710d850 9664$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
f8a49389 9665if test -z "$CXXCPP"; then
c3de29bd 9666 if ${ac_cv_prog_CXXCPP+:} false; then :
0710d850 9667 $as_echo_n "(cached) " >&6
f8a49389
DS
9668else
9669 # Double quotes because CXXCPP needs to be expanded
9670 for CXXCPP in "$CXX -E" "/lib/cpp"
9671 do
9672 ac_preproc_ok=false
9673for ac_cxx_preproc_warn_flag in '' yes
9674do
9675 # Use a header file that comes with gcc, so configuring glibc
9676 # with a fresh cross-compiler works.
9677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9678 # <limits.h> exists even on freestanding compilers.
9679 # On the NeXT, cc -E runs the code through the compiler's parser,
9680 # not just through cpp. "Syntax error" is here to catch this case.
1ef0423a 9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8a49389
DS
9682/* end confdefs.h. */
9683#ifdef __STDC__
9684# include <limits.h>
9685#else
9686# include <assert.h>
9687#endif
9688 Syntax error
9689_ACEOF
1ef0423a 9690if ac_fn_cxx_try_cpp "$LINENO"; then :
5e5aee9f 9691
1ef0423a 9692else
f8a49389
DS
9693 # Broken: fails on valid input.
9694continue
9695fi
c3de29bd 9696rm -f conftest.err conftest.i conftest.$ac_ext
f8a49389
DS
9697
9698 # OK, works on sane cases. Now check whether nonexistent headers
9699 # can be detected and how.
1ef0423a 9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8a49389
DS
9701/* end confdefs.h. */
9702#include <ac_nonexistent.h>
9703_ACEOF
1ef0423a 9704if ac_fn_cxx_try_cpp "$LINENO"; then :
f8a49389
DS
9705 # Broken: success on invalid input.
9706continue
9707else
f8a49389
DS
9708 # Passes both tests.
9709ac_preproc_ok=:
9710break
9711fi
c3de29bd 9712rm -f conftest.err conftest.i conftest.$ac_ext
f8a49389
DS
9713
9714done
9715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
c3de29bd 9716rm -f conftest.i conftest.err conftest.$ac_ext
1ef0423a 9717if $ac_preproc_ok; then :
f8a49389
DS
9718 break
9719fi
9720
9721 done
9722 ac_cv_prog_CXXCPP=$CXXCPP
9723
9724fi
9725 CXXCPP=$ac_cv_prog_CXXCPP
9726else
9727 ac_cv_prog_CXXCPP=$CXXCPP
9728fi
1ef0423a 9729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
0710d850 9730$as_echo "$CXXCPP" >&6; }
f8a49389
DS
9731ac_preproc_ok=false
9732for ac_cxx_preproc_warn_flag in '' yes
9733do
9734 # Use a header file that comes with gcc, so configuring glibc
9735 # with a fresh cross-compiler works.
9736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9737 # <limits.h> exists even on freestanding compilers.
9738 # On the NeXT, cc -E runs the code through the compiler's parser,
9739 # not just through cpp. "Syntax error" is here to catch this case.
1ef0423a 9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8a49389
DS
9741/* end confdefs.h. */
9742#ifdef __STDC__
9743# include <limits.h>
9744#else
9745# include <assert.h>
9746#endif
9747 Syntax error
9748_ACEOF
1ef0423a 9749if ac_fn_cxx_try_cpp "$LINENO"; then :
5e5aee9f 9750
1ef0423a 9751else
f8a49389
DS
9752 # Broken: fails on valid input.
9753continue
9754fi
c3de29bd 9755rm -f conftest.err conftest.i conftest.$ac_ext
f8a49389
DS
9756
9757 # OK, works on sane cases. Now check whether nonexistent headers
9758 # can be detected and how.
1ef0423a 9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8a49389
DS
9760/* end confdefs.h. */
9761#include <ac_nonexistent.h>
9762_ACEOF
1ef0423a 9763if ac_fn_cxx_try_cpp "$LINENO"; then :
f8a49389
DS
9764 # Broken: success on invalid input.
9765continue
9766else
f8a49389
DS
9767 # Passes both tests.
9768ac_preproc_ok=:
9769break
9770fi
c3de29bd 9771rm -f conftest.err conftest.i conftest.$ac_ext
f8a49389
DS
9772
9773done
9774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
c3de29bd 9775rm -f conftest.i conftest.err conftest.$ac_ext
1ef0423a
FCE
9776if $ac_preproc_ok; then :
9777
f8a49389 9778else
1ef0423a 9779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 9780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
9781as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
9782See \`config.log' for more details" "$LINENO" 5; }
f8a49389
DS
9783fi
9784
9785ac_ext=cpp
9786ac_cpp='$CXXCPP $CPPFLAGS'
9787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9790
9791
1ef0423a 9792if test "x$enable_grapher" != xno; then :
1087b83f 9793
f8a49389 9794
1087b83f 9795pkg_failed=no
1ef0423a 9796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtkmm" >&5
0710d850
DS
9797$as_echo_n "checking for gtkmm... " >&6; }
9798
6462165c
JS
9799if test -n "$gtkmm_CFLAGS"; then
9800 pkg_cv_gtkmm_CFLAGS="$gtkmm_CFLAGS"
9801 elif test -n "$PKG_CONFIG"; then
9802 if test -n "$PKG_CONFIG" && \
1ef0423a 9803 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\""; } >&5
f8a49389 9804 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5
1087b83f 9805 ac_status=$?
1ef0423a
FCE
9806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9807 test $ac_status = 0; }; then
f8a49389 9808 pkg_cv_gtkmm_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.8.0" 2>/dev/null`
1087b83f
TM
9809else
9810 pkg_failed=yes
9811fi
6462165c
JS
9812 else
9813 pkg_failed=untried
1087b83f 9814fi
6462165c
JS
9815if test -n "$gtkmm_LIBS"; then
9816 pkg_cv_gtkmm_LIBS="$gtkmm_LIBS"
9817 elif test -n "$PKG_CONFIG"; then
9818 if test -n "$PKG_CONFIG" && \
1ef0423a 9819 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\""; } >&5
f8a49389 9820 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5
1087b83f 9821 ac_status=$?
1ef0423a
FCE
9822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9823 test $ac_status = 0; }; then
f8a49389 9824 pkg_cv_gtkmm_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.8.0" 2>/dev/null`
1087b83f
TM
9825else
9826 pkg_failed=yes
9827fi
6462165c
JS
9828 else
9829 pkg_failed=untried
1087b83f
TM
9830fi
9831
9832
9833
9834if test $pkg_failed = yes; then
5d4aa1f5
FCE
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9836$as_echo "no" >&6; }
1087b83f
TM
9837
9838if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9839 _pkg_short_errors_supported=yes
9840else
9841 _pkg_short_errors_supported=no
9842fi
9843 if test $_pkg_short_errors_supported = yes; then
6462165c 9844 gtkmm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1`
1087b83f 9845 else
6462165c 9846 gtkmm_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1`
1087b83f
TM
9847 fi
9848 # Put the nasty error message in config.log where it belongs
c3f070d9 9849 echo "$gtkmm_PKG_ERRORS" >&5
1087b83f 9850
5d4aa1f5 9851 have_gtkmm="no"
fcca127c 9852elif test $pkg_failed = untried; then
5d4aa1f5
FCE
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854$as_echo "no" >&6; }
c3f070d9 9855 have_gtkmm="no"
1087b83f 9856else
c3f070d9
DS
9857 gtkmm_CFLAGS=$pkg_cv_gtkmm_CFLAGS
9858 gtkmm_LIBS=$pkg_cv_gtkmm_LIBS
1ef0423a 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0710d850 9860$as_echo "yes" >&6; }
c3f070d9
DS
9861 have_gtkmm="yes"
9862fi
1ef0423a
FCE
9863 if test "x${have_gtkmm}" == "xno" -a x"$enable_grapher" == "xyes"; then :
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: systemtap cannot find required gtkmm libs (gtkmm24-devel version 2.8.0 or higher may need to be installed)" >&5
0710d850 9865$as_echo "$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
9866fi
9867
f8a49389 9868
f8a49389 9869pkg_failed=no
1ef0423a 9870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libglade" >&5
0710d850
DS
9871$as_echo_n "checking for libglade... " >&6; }
9872
6462165c
JS
9873if test -n "$libglade_CFLAGS"; then
9874 pkg_cv_libglade_CFLAGS="$libglade_CFLAGS"
9875 elif test -n "$PKG_CONFIG"; then
9876 if test -n "$PKG_CONFIG" && \
1ef0423a 9877 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\""; } >&5
f8a49389
DS
9878 ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5
9879 ac_status=$?
1ef0423a
FCE
9880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9881 test $ac_status = 0; }; then
f8a49389
DS
9882 pkg_cv_libglade_CFLAGS=`$PKG_CONFIG --cflags "libglademm-2.4 >= 2.6.7" 2>/dev/null`
9883else
9884 pkg_failed=yes
9885fi
6462165c
JS
9886 else
9887 pkg_failed=untried
f8a49389 9888fi
6462165c
JS
9889if test -n "$libglade_LIBS"; then
9890 pkg_cv_libglade_LIBS="$libglade_LIBS"
9891 elif test -n "$PKG_CONFIG"; then
9892 if test -n "$PKG_CONFIG" && \
1ef0423a 9893 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\""; } >&5
f8a49389
DS
9894 ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5
9895 ac_status=$?
1ef0423a
FCE
9896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9897 test $ac_status = 0; }; then
f8a49389
DS
9898 pkg_cv_libglade_LIBS=`$PKG_CONFIG --libs "libglademm-2.4 >= 2.6.7" 2>/dev/null`
9899else
9900 pkg_failed=yes
9901fi
6462165c
JS
9902 else
9903 pkg_failed=untried
f8a49389
DS
9904fi
9905
9906
9907
9908if test $pkg_failed = yes; then
5d4aa1f5
FCE
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910$as_echo "no" >&6; }
f8a49389
DS
9911
9912if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9913 _pkg_short_errors_supported=yes
9914else
9915 _pkg_short_errors_supported=no
9916fi
9917 if test $_pkg_short_errors_supported = yes; then
6462165c 9918 libglade_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libglademm-2.4 >= 2.6.7" 2>&1`
f8a49389 9919 else
6462165c 9920 libglade_PKG_ERRORS=`$PKG_CONFIG --print-errors "libglademm-2.4 >= 2.6.7" 2>&1`
f8a49389
DS
9921 fi
9922 # Put the nasty error message in config.log where it belongs
9923 echo "$libglade_PKG_ERRORS" >&5
9924
5d4aa1f5 9925 have_libglade="no"
fcca127c 9926elif test $pkg_failed = untried; then
5d4aa1f5
FCE
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928$as_echo "no" >&6; }
f8a49389
DS
9929 have_libglade="no"
9930else
9931 libglade_CFLAGS=$pkg_cv_libglade_CFLAGS
9932 libglade_LIBS=$pkg_cv_libglade_LIBS
1ef0423a 9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0710d850 9934$as_echo "yes" >&6; }
f8a49389
DS
9935 have_libglade="yes"
9936fi
1ef0423a
FCE
9937 if test "x${have_libglade}" == "xno" -a x"$enable_grapher" == "xyes"; then :
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: systemtap cannot find required libglade libs (libglademm24-devel version 2.6.7 or higher may need to be installed)" >&5
0710d850 9939$as_echo "$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
9940fi
9941
f8a49389
DS
9942 have_boost_headers="yes"
9943 ac_ext=cpp
9944ac_cpp='$CXXCPP $CPPFLAGS'
9945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9948
1ef0423a
FCE
9949 for ac_header in boost/algorithm/string.hpp boost/range.hpp
9950do :
9951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9952ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5d4aa1f5 9953if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
f8a49389 9954 cat >>confdefs.h <<_ACEOF
0710d850 9955#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
f8a49389
DS
9956_ACEOF
9957
9958else
9959 have_boost_headers="no"
9960fi
9961
9962done
9963
9964 ac_ext=c
9965ac_cpp='$CPP $CPPFLAGS'
9966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9968ac_compiler_gnu=$ac_cv_c_compiler_gnu
9969
1ef0423a
FCE
9970 if test "x${have_boost_headers}" == "xno" -a x"$enable_grapher" == "xyes"; then :
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&5
0710d850 9972$as_echo "$as_me: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&2;}
f8a49389
DS
9973fi
9974
1ef0423a 9975 if test "x${have_gtkmm}${have_libglade}${have_boost_headers}" == "xyesyesyes"; then :
f8a49389
DS
9976 have_grapher_reqs="yes"
9977else
9978 have_grapher_reqs="no"
9979fi
9980
f8a49389 9981fi
1ef0423a 9982if test "x${have_grapher_reqs}" == "xno" -a x"$enable_grapher" == "xyes"; then :
5d4aa1f5 9983 as_fn_error $? "systemtap cannot find grapher build requirements (gtkmm, libglade, and boost headers)" "$LINENO" 5
f8a49389 9984fi
f8a49389
DS
9985 if test "x${have_grapher_reqs}" == "xyes" -a x"$enable_grapher" != "xno"; then
9986 BUILD_GRAPHER_TRUE=
9987 BUILD_GRAPHER_FALSE='#'
9988else
9989 BUILD_GRAPHER_TRUE='#'
9990 BUILD_GRAPHER_FALSE=
9991fi
1087b83f
TM
9992
9993
2ed04863
WC
9994
9995# Check whether --with-rpm was given.
1ef0423a 9996if test "${with_rpm+set}" = set; then :
2ed04863
WC
9997 withval=$with_rpm;
9998else
9999 with_rpm="auto"
10000fi
10001
bcfa72ed 10002if test "$with_rpm" != "no"; then
1ef0423a 10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5
bcfa72ed 10004$as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; }
c3de29bd 10005if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then :
bcfa72ed 10006 $as_echo_n "(cached) " >&6
e6364d79 10007else
bcfa72ed
FCE
10008 ac_check_lib_save_LIBS=$LIBS
10009LIBS="-lrpm $LIBS"
1ef0423a 10010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ed04863
WC
10011/* end confdefs.h. */
10012
bcfa72ed
FCE
10013/* Override any GCC internal prototype to avoid an error.
10014 Use char because int might match the return type of a GCC
10015 builtin and then its argument prototype would still apply. */
10016#ifdef __cplusplus
10017extern "C"
10018#endif
10019char rpmtsInitIterator ();
2ed04863
WC
10020int
10021main ()
10022{
bcfa72ed 10023return rpmtsInitIterator ();
2ed04863
WC
10024 ;
10025 return 0;
10026}
10027_ACEOF
1ef0423a 10028if ac_fn_c_try_link "$LINENO"; then :
5e5aee9f
FCE
10029 ac_cv_lib_rpm_rpmtsInitIterator=yes
10030else
1ef0423a 10031 ac_cv_lib_rpm_rpmtsInitIterator=no
5e5aee9f 10032fi
1ef0423a
FCE
10033rm -f core conftest.err conftest.$ac_objext \
10034 conftest$ac_exeext conftest.$ac_ext
5e5aee9f
FCE
10035LIBS=$ac_check_lib_save_LIBS
10036fi
1ef0423a 10037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
5e5aee9f 10038$as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
c3de29bd 10039if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then :
5e5aee9f 10040
12c1a007 10041
1ef0423a 10042$as_echo "#define HAVE_LIBRPM 1" >>confdefs.h
12c1a007
FCE
10043
10044 stap_LIBS="$stap_LIBS -lrpm"
10045 have_librpm="yes"
7f9ad862
SC
10046else
10047 have_librpm="no"
2ed04863 10048fi
e6364d79 10049
44edbcd6
JS
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5
10051$as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; }
c3de29bd 10052if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then :
44edbcd6
JS
10053 $as_echo_n "(cached) " >&6
10054else
10055 ac_check_lib_save_LIBS=$LIBS
10056LIBS="-lrpmio $LIBS"
10057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058/* end confdefs.h. */
10059
10060/* Override any GCC internal prototype to avoid an error.
10061 Use char because int might match the return type of a GCC
10062 builtin and then its argument prototype would still apply. */
10063#ifdef __cplusplus
10064extern "C"
10065#endif
10066char rpmFreeCrypto ();
10067int
10068main ()
10069{
10070return rpmFreeCrypto ();
10071 ;
10072 return 0;
10073}
10074_ACEOF
10075if ac_fn_c_try_link "$LINENO"; then :
10076 ac_cv_lib_rpmio_rpmFreeCrypto=yes
10077else
10078 ac_cv_lib_rpmio_rpmFreeCrypto=no
10079fi
10080rm -f core conftest.err conftest.$ac_objext \
10081 conftest$ac_exeext conftest.$ac_ext
10082LIBS=$ac_check_lib_save_LIBS
10083fi
10084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5
10085$as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; }
c3de29bd 10086if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then :
44edbcd6
JS
10087
10088
10089$as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h
10090
10091 stap_LIBS="$stap_LIBS -lrpmio"
10092 have_librpmio="yes"
10093else
10094 have_librpmio="no"
10095fi
10096
bcfa72ed 10097 if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then
5d4aa1f5 10098 as_fn_error $? "cannot find librpm" "$LINENO" 5
2ed04863 10099 fi
44edbcd6
JS
10100 if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5
10102$as_echo "$as_me: WARNING: cannot find librpmio" >&2;}
10103 fi
2ed04863
WC
10104fi
10105
10106
e8f3c2c2
DS
10107build_elfutils=no
10108
7fbd9d09 10109# Check whether --with-elfutils was given.
1ef0423a 10110if test "${with_elfutils+set}" = set; then :
7fbd9d09 10111 withval=$with_elfutils;
e8f3c2c2 10112case "$with_elfutils" in
5d4aa1f5 10113yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;;
e8f3c2c2
DS
10114''|no) ;;
10115*) build_elfutils=yes ;;
10116esac
7fbd9d09 10117fi
e8f3c2c2 10118
7fbd9d09 10119 if test $build_elfutils = yes; then
e8f3c2c2
DS
10120 BUILD_ELFUTILS_TRUE=
10121 BUILD_ELFUTILS_FALSE='#'
10122else
10123 BUILD_ELFUTILS_TRUE='#'
10124 BUILD_ELFUTILS_FALSE=
10125fi
10126
1ef0423a 10127elfutils_abs_srcdir=`if test $build_elfutils = yes; then :
e8f3c2c2 10128 cd $with_elfutils && pwd
1ef0423a 10129fi`
e8f3c2c2
DS
10130
10131
efa6ba96
PP
10132if test $enable_translator = yes; then
10133 if test $build_elfutils = no; then
10134 # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/
c14263d8
FCE
10135
10136 # On modern debian/ubuntu, libebl has been merged into libdw
10137 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
10138 save_LIBS="$LIBS"
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5
10140$as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; }
c3de29bd 10141if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then :
c14263d8
FCE
10142 $as_echo_n "(cached) " >&6
10143else
10144 ac_check_lib_save_LIBS=$LIBS
10145LIBS="-lebl $LIBS"
10146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147/* end confdefs.h. */
10148
10149/* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10152#ifdef __cplusplus
10153extern "C"
10154#endif
10155char ebl_get_elfmachine ();
10156int
10157main ()
10158{
10159return ebl_get_elfmachine ();
10160 ;
10161 return 0;
10162}
10163_ACEOF
10164if ac_fn_c_try_link "$LINENO"; then :
10165 ac_cv_lib_ebl_ebl_get_elfmachine=yes
10166else
10167 ac_cv_lib_ebl_ebl_get_elfmachine=no
10168fi
10169rm -f core conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171LIBS=$ac_check_lib_save_LIBS
10172fi
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5
10174$as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; }
c3de29bd 10175if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then :
c14263d8
FCE
10176 ebl_LIBS=-lebl
10177else
10178 ebl_LIBS=
10179fi
10180
10181 LIBS="$save_LIBS"
10182
efa6ba96 10183 save_LIBS="$LIBS"
1ef0423a 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
0710d850 10185$as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
c3de29bd 10186if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then :
0710d850 10187 $as_echo_n "(cached) " >&6
4645fadb
JS
10188else
10189 ac_check_lib_save_LIBS=$LIBS
c14263d8 10190LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
1ef0423a 10191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645fadb
JS
10192/* end confdefs.h. */
10193
7fbd9d09
FCE
10194/* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
4645fadb
JS
10197#ifdef __cplusplus
10198extern "C"
10199#endif
10200char dwfl_module_getsym ();
10201int
10202main ()
10203{
7fbd9d09 10204return dwfl_module_getsym ();
4645fadb
JS
10205 ;
10206 return 0;
10207}
10208_ACEOF
1ef0423a 10209if ac_fn_c_try_link "$LINENO"; then :
4645fadb
JS
10210 ac_cv_lib_dw_dwfl_module_getsym=yes
10211else
1ef0423a 10212 ac_cv_lib_dw_dwfl_module_getsym=no
4645fadb 10213fi
1ef0423a
FCE
10214rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
4645fadb
JS
10216LIBS=$ac_check_lib_save_LIBS
10217fi
1ef0423a 10218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
0710d850 10219$as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
c3de29bd 10220if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then :
4645fadb
JS
10221 cat >>confdefs.h <<_ACEOF
10222#define HAVE_LIBDW 1
10223_ACEOF
10224
10225 LIBS="-ldw $LIBS"
10226
10227else
10228
5d4aa1f5 10229 as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5
4645fadb
JS
10230fi
10231
e050d62f
MW
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_getcfi_elf in -ldw" >&5
10233$as_echo_n "checking for dwarf_getcfi_elf in -ldw... " >&6; }
c3de29bd 10234if ${ac_cv_lib_dw_dwarf_getcfi_elf+:} false; then :
0710d850 10235 $as_echo_n "(cached) " >&6
87cb1275
MW
10236else
10237 ac_check_lib_save_LIBS=$LIBS
c14263d8 10238LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
1ef0423a 10239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87cb1275
MW
10240/* end confdefs.h. */
10241
7fbd9d09
FCE
10242/* Override any GCC internal prototype to avoid an error.
10243 Use char because int might match the return type of a GCC
10244 builtin and then its argument prototype would still apply. */
87cb1275
MW
10245#ifdef __cplusplus
10246extern "C"
10247#endif
e050d62f 10248char dwarf_getcfi_elf ();
87cb1275
MW
10249int
10250main ()
10251{
e050d62f 10252return dwarf_getcfi_elf ();
87cb1275
MW
10253 ;
10254 return 0;
10255}
10256_ACEOF
1ef0423a 10257if ac_fn_c_try_link "$LINENO"; then :
e050d62f 10258 ac_cv_lib_dw_dwarf_getcfi_elf=yes
87cb1275 10259else
e050d62f 10260 ac_cv_lib_dw_dwarf_getcfi_elf=no
87cb1275 10261fi
1ef0423a
FCE
10262rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
87cb1275
MW
10264LIBS=$ac_check_lib_save_LIBS
10265fi
e050d62f
MW
10266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_getcfi_elf" >&5
10267$as_echo "$ac_cv_lib_dw_dwarf_getcfi_elf" >&6; }
c3de29bd 10268if test "x$ac_cv_lib_dw_dwarf_getcfi_elf" = xyes; then :
87cb1275
MW
10269 cat >>confdefs.h <<_ACEOF
10270#define HAVE_LIBDW 1
10271_ACEOF
10272
10273 LIBS="-ldw $LIBS"
10274
10275else
10276
e050d62f 10277 as_fn_error $? "elfutils, libdw too old, need 0.142+" "$LINENO" 5
87cb1275
MW
10278fi
10279
c14263d8 10280 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
efa6ba96
PP
10281 LIBS="$save_LIBS"
10282 else
10283 # We built our own and stap_LDFLAGS points at the install.
12c1a007 10284 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
efa6ba96 10285 fi
4645fadb
JS
10286fi
10287
6b1a0274 10288
1ef0423a 10289{ $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
0710d850 10290$as_echo "$as_me: stap will link $stap_LIBS" >&6;}
c3a3c0c9 10291
cbe7ea07 10292
69c68955
FCE
10293date=`date +%Y-%m-%d`
10294
10295cat >>confdefs.h <<_ACEOF
10296#define DATE "$date"
10297_ACEOF
10298
82fab474 10299DATE="$date"
69c68955
FCE
10300
10301
47f390f9
FCE
10302# Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
10303# being compiled on 32-bit userspace but running against 64-bit kernels.
10304# This is no longer necessary.
5566993b 10305
3bf6ac45 10306# Use tr1/unordered_map if available
7fbd9d09 10307ac_ext=cpp
3bf6ac45
TM
10308ac_cpp='$CXXCPP $CPPFLAGS'
10309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10312
3bf6ac45 10313for ac_header in tr1/unordered_map
1ef0423a
FCE
10314do :
10315 ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" "$ac_includes_default"
c3de29bd 10316if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
1ef0423a
FCE
10317 cat >>confdefs.h <<_ACEOF
10318#define HAVE_TR1_UNORDERED_MAP 1
5e5aee9f 10319_ACEOF
5e5aee9f 10320
5e5aee9f
FCE
10321fi
10322
1ef0423a 10323done
5e5aee9f 10324
1ef0423a
FCE
10325for ac_header in tr1/memory
10326do :
10327 ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/memory" "ac_cv_header_tr1_memory" "$ac_includes_default"
c3de29bd 10328if test "x$ac_cv_header_tr1_memory" = xyes; then :
1ef0423a
FCE
10329 cat >>confdefs.h <<_ACEOF
10330#define HAVE_TR1_MEMORY 1
5e5aee9f 10331_ACEOF
5e5aee9f 10332
5e5aee9f
FCE
10333fi
10334
1ef0423a 10335done
5e5aee9f 10336
1ef0423a
FCE
10337for ac_header in boost/shared_ptr.hpp
10338do :
10339 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default"
c3de29bd 10340if test "x$ac_cv_header_boost_shared_ptr_hpp" = xyes; then :
469c1a1b 10341 cat >>confdefs.h <<_ACEOF
1ef0423a 10342#define HAVE_BOOST_SHARED_PTR_HPP 1
469c1a1b
FCE
10343_ACEOF
10344
10345fi
10346
10347done
10348
1ef0423a
FCE
10349ac_ext=c
10350ac_cpp='$CPP $CPPFLAGS'
10351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10353ac_compiler_gnu=$ac_cv_c_compiler_gnu
3bf6ac45
TM
10354
10355
e016a49a 10356
f9794ee4
RM
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
10358$as_echo_n "checking for assembler .section \"?\" flags support... " >&6; }
c3de29bd 10359if ${stap_cv_sectionq+:} false; then :
f9794ee4
RM
10360 $as_echo_n "(cached) " >&6
10361else
10362
10363old_CFLAGS="$CFLAGS"
10364CFLAGS="$CFLAGS -Wa,--fatal-warnings"
10365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366/* end confdefs.h. */
10367asm(".section .note.foo,\"?\",\"note\"\n"
10368 ".byte 1, 2, 3\n"
10369 ".previous\n"
10370 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
10371 ".byte 1\n"
10372 ".pushsection .note.foo,\"?\",\"note\"\n"
10373 ".byte 4, 5, 6\n"
10374 ".popsection\n"
10375 ".byte 2\n");
10376_ACEOF
10377if ac_fn_c_try_compile "$LINENO"; then :
10378 stap_cv_sectionq=yes
10379else
10380 stap_cv_sectionq=no
10381fi
10382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a530cfe0 10383CFLAGS="$old_CFLAGS"
f9794ee4
RM
10384fi
10385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
10386$as_echo "$stap_cv_sectionq" >&6; }
10387
10388support_section_question=0
10389if test $stap_cv_sectionq = yes; then
10390 support_section_question=1
10391fi
8f223b3e 10392ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
f9794ee4
RM
10393
10394
efa6ba96 10395if test $build_elfutils = yes -a $enable_translator = yes; then
e016a49a
FCE
10396 case "$with_elfutils" in
10397 /*) elfutils_srcdir="$with_elfutils" ;;
10398 *) elfutils_srcdir="../$with_elfutils" ;;
10399 esac
1ef0423a 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5
0710d850 10401$as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
29b694a7
DS
10402
10403 save_CFLAGS="$CFLAGS"
10404 save_CXXFLAGS="$CXXFLAGS"
10405 CXXFLAGS="$CXXFLAGS -fgnu89-inline"
10406 CFLAGS="$CFLAGS -fgnu89-inline"
10407 gnu89_inline_flag=""
1ef0423a
FCE
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409/* end confdefs.h. */
29b694a7
DS
10410int something ();
10411_ACEOF
1ef0423a 10412if ac_fn_c_try_compile "$LINENO"; then :
29b694a7 10413
1ef0423a 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5
0710d850 10415$as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
29b694a7
DS
10416 gnu89_inline_flag="-fgnu89-inline"
10417else
5e5aee9f 10418
1ef0423a 10419 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5
0710d850 10420$as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
29b694a7 10421fi
29b694a7
DS
10422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423 CFLAGS="$save_CFLAGS"
10424 CXXFLAGS="$save_CXXFLAGS"
10425
e016a49a
FCE
10426 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
10427 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
10428 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
10429 # So we must make sure to pass those settings to elfutils configure.
10430 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
10431 here=`pwd`
10432 (mkdir -p build-elfutils && cd build-elfutils &&
412e1bf7 10433 bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
e016a49a
FCE
10434 --includedir="${here}/include-elfutils" \
10435 --libdir="${here}/lib-elfutils" \
10436 --exec-prefix="$exec_prefix" \
10437 --prefix="$prefix" \
29b694a7 10438 CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag" \
e016a49a 10439 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
e3633556 10440 if test -f ${elfutils_srcdir}/config/version.h.in; then
e050d62f
MW
10441 echo Found elfutils/version.h header...
10442 else
10443 echo elfutils/version.h header not found, need elfutils 0.142+...
10444 exit -1
e3633556 10445 fi
e016a49a 10446 )
e050d62f 10447 if test $? != 0; then exit -1; fi
1c4cf93d 10448fi
e016a49a 10449
62c8a962
FCE
10450ENABLE_NLS="$USE_NLS"
10451
10452localedir="$localedir"
802cd104 10453
8f223b3e
FCE
10454LOCALEDIR="$localedir"
10455
10456
62c8a962 10457
2a1c9b5d
FCE
10458stap_prefix=$prefix
10459test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
50431f30
MW
10460
10461cat >>confdefs.h <<_ACEOF
2a1c9b5d 10462#define STAP_PREFIX "$stap_prefix"
50431f30
MW
10463_ACEOF
10464
62c8a962
FCE
10465STAP_PREFIX="$stap_prefix"
10466
50431f30 10467
7fbd9d09 10468ac_config_headers="$ac_config_headers config.h:config.in"
daae650d 10469
80f2faf4 10470ac_config_files="$ac_config_files Makefile doc/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile grapher/Makefile grapher/stapgraph.1 stappaths.7 initscript/systemtap initscript/stap-server"
8d9d8fe1 10471
0710d850
DS
10472
10473
1bb80d04 10474subdirs="$subdirs testsuite runtime/staprun"
5ba96b90 10475
6d14a4a9
EB
10476if test $enable_translator == "yes"; then
10477 ac_config_files="$ac_config_files run-stap"
2f62657c 10478
6d14a4a9 10479fi
e4aaabda
MW
10480ac_config_files="$ac_config_files dtrace"
10481
53ade4da
MW
10482
10483# Setup "shadow" directory doc/beginners that has everything setup for
10484# publican in one directory (through directory links if necessary).
10485# It would be nice to use AC_CONFIG_LINKS, but automake complains when
10486# the src is a directory and not a file.
10487ac_config_files="$ac_config_files doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in"
10488
10489ac_config_commands="$ac_config_commands doc/beginners"
10490
10491
2f1a1aea
FCE
10492cat >confcache <<\_ACEOF
10493# This file is a shell script that caches the results of configure
10494# tests run on this system so they can be shared between configure
10495# scripts and configure runs, see configure's option --config-cache.
10496# It is not useful on other systems. If it contains results you don't
10497# want to keep, you may remove or edit it.
10498#
10499# config.status only pays attention to the cache file if you give it
10500# the --recheck option to rerun configure.
10501#
10502# `ac_cv_env_foo' variables (set or unset) will be overridden when
10503# loading this file, other *unset* `ac_cv_foo' will be assigned the
10504# following values.
10505
10506_ACEOF
10507
10508# The following way of writing the cache mishandles newlines in values,
10509# but we know of no workaround that is simple, portable, and efficient.
7fbd9d09 10510# So, we kill variables containing newlines.
2f1a1aea
FCE
10511# Ultrix sh set writes to stderr and can't be redirected directly,
10512# and sets the high bit in the cache file unless we assign to the vars.
7fbd9d09
FCE
10513(
10514 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10515 eval ac_val=\$$ac_var
10516 case $ac_val in #(
10517 *${as_nl}*)
10518 case $ac_var in #(
1ef0423a 10519 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
0710d850 10520$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7fbd9d09
FCE
10521 esac
10522 case $ac_var in #(
10523 _ | IFS | as_nl) ;; #(
0710d850 10524 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1ef0423a 10525 *) { eval $ac_var=; unset $ac_var;} ;;
7fbd9d09
FCE
10526 esac ;;
10527 esac
10528 done
10529
2f1a1aea 10530 (set) 2>&1 |
7fbd9d09
FCE
10531 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10532 *${as_nl}ac_space=\ *)
1ef0423a
FCE
10533 # `set' does not quote correctly, so add quotes: double-quote
10534 # substitution turns \\\\ into \\, and sed turns \\ into \.
2f1a1aea
FCE
10535 sed -n \
10536 "s/'/'\\\\''/g;
10537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7fbd9d09 10538 ;; #(
2f1a1aea
FCE
10539 *)
10540 # `set' quotes correctly as required by POSIX, so do not add quotes.
7fbd9d09 10541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2f1a1aea 10542 ;;
7fbd9d09
FCE
10543 esac |
10544 sort
10545) |
2f1a1aea 10546 sed '
7fbd9d09 10547 /^ac_cv_env_/b end
2f1a1aea 10548 t clear
7fbd9d09 10549 :clear
2f1a1aea
FCE
10550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10551 t end
7fbd9d09
FCE
10552 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10553 :end' >>confcache
10554if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10555 if test -w "$cache_file"; then
c3de29bd 10556 if test "x$cache_file" != "x/dev/null"; then
1ef0423a 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
0710d850 10558$as_echo "$as_me: updating cache $cache_file" >&6;}
c3de29bd
LB
10559 if test ! -f "$cache_file" || test -h "$cache_file"; then
10560 cat confcache >"$cache_file"
10561 else
10562 case $cache_file in #(
10563 */* | ?:*)
10564 mv -f confcache "$cache_file"$$ &&
10565 mv -f "$cache_file"$$ "$cache_file" ;; #(
10566 *)
10567 mv -f confcache "$cache_file" ;;
10568 esac
10569 fi
10570 fi
2f1a1aea 10571 else
1ef0423a 10572 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
0710d850 10573$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2f1a1aea
FCE
10574 fi
10575fi
10576rm -f confcache
10577
10578test "x$prefix" = xNONE && prefix=$ac_default_prefix
10579# Let make expand exec_prefix.
10580test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10581
2f1a1aea
FCE
10582DEFS=-DHAVE_CONFIG_H
10583
10584ac_libobjs=
10585ac_ltlibobjs=
10586for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10587 # 1. Remove the extension, and $U if already installed.
7fbd9d09 10588 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
0710d850 10589 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7fbd9d09
FCE
10590 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10591 # will be set to the directory where LIBOBJS objects are built.
1ef0423a
FCE
10592 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10593 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2f1a1aea
FCE
10594done
10595LIBOBJS=$ac_libobjs
10596
10597LTLIBOBJS=$ac_ltlibobjs
10598
10599
0710d850
DS
10600 if test -n "$EXEEXT"; then
10601 am__EXEEXT_TRUE=
10602 am__EXEEXT_FALSE='#'
10603else
10604 am__EXEEXT_TRUE='#'
10605 am__EXEEXT_FALSE=
10606fi
10607
2f1a1aea 10608if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5d4aa1f5 10609 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
1ef0423a 10610Usually this means the macro was only invoked conditionally." "$LINENO" 5
2f1a1aea
FCE
10611fi
10612if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5d4aa1f5 10613 as_fn_error $? "conditional \"AMDEP\" was never defined.
1ef0423a 10614Usually this means the macro was only invoked conditionally." "$LINENO" 5
2f1a1aea
FCE
10615fi
10616if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5d4aa1f5 10617 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1ef0423a 10618Usually this means the macro was only invoked conditionally." "$LINENO" 5
2f1a1aea 10619fi
8f223b3e 10620if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5d4aa1f5 10621 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8f223b3e
FCE
10622Usually this means the macro was only invoked conditionally." "$LINENO" 5
10623fi
2f1a1aea 10624if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5d4aa1f5 10625 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1ef0423a 10626Usually this means the macro was only invoked conditionally." "$LINENO" 5
2f1a1aea
FCE
10627fi
10628if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5d4aa1f5 10629 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1ef0423a 10630Usually this means the macro was only invoked conditionally." "$LINENO" 5
2f1a1aea 10631fi
6d14a4a9 10632if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
5d4aa1f5 10633 as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined.
1ef0423a 10634Usually this means the macro was only invoked conditionally." "$LINENO" 5
6d14a4a9 10635fi
e8f3c2c2 10636if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
5d4aa1f5 10637 as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined.
1ef0423a 10638Usually this means the macro was only invoked conditionally." "$LINENO" 5
4d9087fc 10639fi
465e8fbf 10640if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
5d4aa1f5 10641 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
1ef0423a 10642Usually this means the macro was only invoked conditionally." "$LINENO" 5
92aff3c7 10643fi
53ade4da 10644if test -z "${BUILD_PUBLICAN_TRUE}" && test -z "${BUILD_PUBLICAN_FALSE}"; then
5d4aa1f5 10645 as_fn_error $? "conditional \"BUILD_PUBLICAN\" was never defined.
1ef0423a 10646Usually this means the macro was only invoked conditionally." "$LINENO" 5
53ade4da 10647fi
92aff3c7 10648if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
5d4aa1f5 10649 as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined.
1ef0423a 10650Usually this means the macro was only invoked conditionally." "$LINENO" 5
468abaf4
FCE
10651fi
10652if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
5d4aa1f5 10653 as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined.
1ef0423a 10654Usually this means the macro was only invoked conditionally." "$LINENO" 5
19a0d4b6 10655fi
ccf8bc85 10656if test -z "${BUILD_PDFREFDOCS_TRUE}" && test -z "${BUILD_PDFREFDOCS_FALSE}"; then
5d4aa1f5 10657 as_fn_error $? "conditional \"BUILD_PDFREFDOCS\" was never defined.
1ef0423a 10658Usually this means the macro was only invoked conditionally." "$LINENO" 5
ccf8bc85 10659fi
2035bcd4 10660if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
5d4aa1f5 10661 as_fn_error $? "conditional \"HAVE_NSS\" was never defined.
1ef0423a 10662Usually this means the macro was only invoked conditionally." "$LINENO" 5
465e8fbf 10663fi
a0e2728a 10664if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
5d4aa1f5 10665 as_fn_error $? "conditional \"BUILD_SERVER\" was never defined.
a0e2728a
DB
10666Usually this means the macro was only invoked conditionally." "$LINENO" 5
10667fi
2dce8c42 10668if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
5d4aa1f5 10669 as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined.
1ef0423a 10670Usually this means the macro was only invoked conditionally." "$LINENO" 5
2dce8c42 10671fi
1087b83f 10672if test -z "${BUILD_GRAPHER_TRUE}" && test -z "${BUILD_GRAPHER_FALSE}"; then
5d4aa1f5 10673 as_fn_error $? "conditional \"BUILD_GRAPHER\" was never defined.
1025c39b
DS
10674Usually this means the macro was only invoked conditionally." "$LINENO" 5
10675fi
e8f3c2c2 10676if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
5d4aa1f5 10677 as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined.
1ef0423a 10678Usually this means the macro was only invoked conditionally." "$LINENO" 5
35a04c8e 10679fi
2f1a1aea 10680
c3de29bd 10681: "${CONFIG_STATUS=./config.status}"
0710d850 10682ac_write_fail=0
2f1a1aea
FCE
10683ac_clean_files_save=$ac_clean_files
10684ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1ef0423a 10685{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
0710d850 10686$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
1ef0423a
FCE
10687as_write_fail=0
10688cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2f1a1aea
FCE
10689#! $SHELL
10690# Generated by $as_me.
10691# Run this file to recreate the current configuration.
10692# Compiler output produced by configure, useful for debugging
10693# configure, is in config.log if it exists.
10694
10695debug=false
10696ac_cs_recheck=false
10697ac_cs_silent=false
5e5aee9f 10698
1ef0423a
FCE
10699SHELL=\${CONFIG_SHELL-$SHELL}
10700export SHELL
10701_ASEOF
10702cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10703## -------------------- ##
10704## M4sh Initialization. ##
10705## -------------------- ##
2f1a1aea 10706
7fbd9d09
FCE
10707# Be more Bourne compatible
10708DUALCASE=1; export DUALCASE # for MKS sh
1ef0423a 10709if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2f1a1aea
FCE
10710 emulate sh
10711 NULLCMD=:
0710d850 10712 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2f1a1aea
FCE
10713 # is contrary to our usage. Disable this feature.
10714 alias -g '${1+"$@"}'='"$@"'
7fbd9d09 10715 setopt NO_GLOB_SUBST
4a3c19da 10716else
1ef0423a
FCE
10717 case `(set -o) 2>/dev/null` in #(
10718 *posix*) :
10719 set -o posix ;; #(
10720 *) :
10721 ;;
4a3c19da
EM
10722esac
10723fi
10724
7fbd9d09 10725
0710d850
DS
10726as_nl='
10727'
10728export as_nl
10729# Printing a long string crashes Solaris 7 /usr/bin/printf.
10730as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10731as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10732as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1ef0423a
FCE
10733# Prefer a ksh shell builtin over an external printf program on Solaris,
10734# but without wasting forks for bash or zsh.
10735if test -z "$BASH_VERSION$ZSH_VERSION" \
10736 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10737 as_echo='print -r --'
10738 as_echo_n='print -rn --'
10739elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
0710d850
DS
10740 as_echo='printf %s\n'
10741 as_echo_n='printf %s'
10742else
10743 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10744 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10745 as_echo_n='/usr/ucb/echo -n'
31f9baea 10746 else
0710d850
DS
10747 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10748 as_echo_n_body='eval
10749 arg=$1;
1ef0423a 10750 case $arg in #(
0710d850
DS
10751 *"$as_nl"*)
10752 expr "X$arg" : "X\\(.*\\)$as_nl";
10753 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10754 esac;
10755 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10756 '
10757 export as_echo_n_body
10758 as_echo_n='sh -c $as_echo_n_body as_echo'
31f9baea 10759 fi
0710d850
DS
10760 export as_echo_body
10761 as_echo='sh -c $as_echo_body as_echo'
10762fi
10763
10764# The user is always right.
10765if test "${PATH_SEPARATOR+set}" != set; then
10766 PATH_SEPARATOR=:
10767 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10768 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10769 PATH_SEPARATOR=';'
10770 }
7fbd9d09
FCE
10771fi
10772
7fbd9d09
FCE
10773
10774# IFS
10775# We need space, tab and new line, in precisely that order. Quoting is
10776# there to prevent editors from complaining about space-tab.
10777# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10778# splitting by setting IFS to empty value.)
7fbd9d09
FCE
10779IFS=" "" $as_nl"
10780
10781# Find who we are. Look in the path if we contain no directory separator.
c3de29bd 10782as_myself=
1ef0423a 10783case $0 in #((
7fbd9d09
FCE
10784 *[\\/]* ) as_myself=$0 ;;
10785 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786for as_dir in $PATH
10787do
10788 IFS=$as_save_IFS
10789 test -z "$as_dir" && as_dir=.
1ef0423a
FCE
10790 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10791 done
7fbd9d09
FCE
10792IFS=$as_save_IFS
10793
10794 ;;
10795esac
10796# We did not find ourselves, most probably we were run as `sh COMMAND'
10797# in which case we are not to be found in the path.
10798if test "x$as_myself" = x; then
10799 as_myself=$0
10800fi
10801if test ! -f "$as_myself"; then
0710d850 10802 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1ef0423a 10803 exit 1
7fbd9d09
FCE
10804fi
10805
1ef0423a
FCE
10806# Unset variables that we do not need and which cause bugs (e.g. in
10807# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10808# suppresses any "Segmentation fault" message there. '((' could
10809# trigger a bug in pdksh 5.2.14.
10810for as_var in BASH_ENV ENV MAIL MAILPATH
10811do eval test x\${$as_var+set} = xset \
10812 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7fbd9d09
FCE
10813done
10814PS1='$ '
2f1a1aea
FCE
10815PS2='> '
10816PS4='+ '
10817
10818# NLS nuisances.
0710d850
DS
10819LC_ALL=C
10820export LC_ALL
10821LANGUAGE=C
10822export LANGUAGE
2f1a1aea 10823
1ef0423a
FCE
10824# CDPATH.
10825(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10826
10827
5d4aa1f5
FCE
10828# as_fn_error STATUS ERROR [LINENO LOG_FD]
10829# ----------------------------------------
1ef0423a
FCE
10830# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10831# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5d4aa1f5 10832# script with STATUS, using 1 if that was 0.
1ef0423a
FCE
10833as_fn_error ()
10834{
5d4aa1f5
FCE
10835 as_status=$1; test $as_status -eq 0 && as_status=1
10836 if test "$4"; then
10837 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10838 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1ef0423a 10839 fi
5d4aa1f5 10840 $as_echo "$as_me: error: $2" >&2
1ef0423a
FCE
10841 as_fn_exit $as_status
10842} # as_fn_error
10843
10844
10845# as_fn_set_status STATUS
10846# -----------------------
10847# Set $? to STATUS, without forking.
10848as_fn_set_status ()
10849{
10850 return $1
10851} # as_fn_set_status
10852
10853# as_fn_exit STATUS
10854# -----------------
10855# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10856as_fn_exit ()
10857{
10858 set +e
10859 as_fn_set_status $1
10860 exit $1
10861} # as_fn_exit
10862
10863# as_fn_unset VAR
10864# ---------------
10865# Portably unset VAR.
10866as_fn_unset ()
10867{
10868 { eval $1=; unset $1;}
10869}
10870as_unset=as_fn_unset
10871# as_fn_append VAR VALUE
10872# ----------------------
10873# Append the text in VALUE to the end of the definition contained in VAR. Take
10874# advantage of any shell optimizations that allow amortized linear growth over
10875# repeated appends, instead of the typical quadratic growth present in naive
10876# implementations.
10877if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10878 eval 'as_fn_append ()
10879 {
10880 eval $1+=\$2
10881 }'
10882else
10883 as_fn_append ()
10884 {
10885 eval $1=\$$1\$2
10886 }
10887fi # as_fn_append
10888
10889# as_fn_arith ARG...
10890# ------------------
10891# Perform arithmetic evaluation on the ARGs, and store the result in the
10892# global $as_val. Take advantage of shells that can avoid forks. The arguments
10893# must be portable across $(()) and expr.
10894if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10895 eval 'as_fn_arith ()
10896 {
10897 as_val=$(( $* ))
10898 }'
10899else
10900 as_fn_arith ()
10901 {
10902 as_val=`expr "$@" || test $? -eq 1`
10903 }
10904fi # as_fn_arith
10905
10906
7fbd9d09
FCE
10907if expr a : '\(a\)' >/dev/null 2>&1 &&
10908 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2f1a1aea
FCE
10909 as_expr=expr
10910else
10911 as_expr=false
10912fi
10913
7fbd9d09 10914if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2f1a1aea
FCE
10915 as_basename=basename
10916else
10917 as_basename=false
10918fi
10919
1ef0423a
FCE
10920if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10921 as_dirname=dirname
10922else
10923 as_dirname=false
10924fi
2f1a1aea 10925
7fbd9d09 10926as_me=`$as_basename -- "$0" ||
2f1a1aea
FCE
10927$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10928 X"$0" : 'X\(//\)$' \| \
7fbd9d09 10929 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
0710d850 10930$as_echo X/"$0" |
7fbd9d09
FCE
10931 sed '/^.*\/\([^/][^/]*\)\/*$/{
10932 s//\1/
10933 q
10934 }
10935 /^X\/\(\/\/\)$/{
10936 s//\1/
10937 q
10938 }
10939 /^X\/\(\/\).*/{
10940 s//\1/
10941 q
10942 }
10943 s/.*/./; q'`
8ae7a94a 10944
1ef0423a
FCE
10945# Avoid depending upon Character Ranges.
10946as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10947as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10948as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10949as_cr_digits='0123456789'
10950as_cr_alnum=$as_cr_Letters$as_cr_digits
7fbd9d09
FCE
10951
10952ECHO_C= ECHO_N= ECHO_T=
1ef0423a 10953case `echo -n x` in #(((((
7fbd9d09 10954-n*)
1ef0423a 10955 case `echo 'xy\c'` in
7fbd9d09 10956 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1ef0423a
FCE
10957 xy) ECHO_C='\c';;
10958 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10959 ECHO_T=' ';;
7fbd9d09
FCE
10960 esac;;
10961*)
10962 ECHO_N='-n';;
2f1a1aea 10963esac
2f1a1aea
FCE
10964
10965rm -f conf$$ conf$$.exe conf$$.file
7fbd9d09
FCE
10966if test -d conf$$.dir; then
10967 rm -f conf$$.dir/conf$$.file
10968else
10969 rm -f conf$$.dir
0710d850
DS
10970 mkdir conf$$.dir 2>/dev/null
10971fi
10972if (echo >conf$$.file) 2>/dev/null; then
10973 if ln -s conf$$.file conf$$ 2>/dev/null; then
10974 as_ln_s='ln -s'
10975 # ... but there are two gotchas:
10976 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10977 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10978 # In both cases, we have to default to `cp -p'.
10979 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10980 as_ln_s='cp -p'
10981 elif ln conf$$.file conf$$ 2>/dev/null; then
10982 as_ln_s=ln
10983 else
2f1a1aea 10984 as_ln_s='cp -p'
0710d850 10985 fi
2f1a1aea
FCE
10986else
10987 as_ln_s='cp -p'
10988fi
7fbd9d09
FCE
10989rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10990rmdir conf$$.dir 2>/dev/null
2f1a1aea 10991
1ef0423a
FCE
10992
10993# as_fn_mkdir_p
10994# -------------
10995# Create "$as_dir" as a directory, including parents if necessary.
10996as_fn_mkdir_p ()
10997{
10998
10999 case $as_dir in #(
11000 -*) as_dir=./$as_dir;;
11001 esac
11002 test -d "$as_dir" || eval $as_mkdir_p || {
11003 as_dirs=
11004 while :; do
11005 case $as_dir in #(
11006 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11007 *) as_qdir=$as_dir;;
11008 esac
11009 as_dirs="'$as_qdir' $as_dirs"
11010 as_dir=`$as_dirname -- "$as_dir" ||
11011$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11012 X"$as_dir" : 'X\(//\)[^/]' \| \
11013 X"$as_dir" : 'X\(//\)$' \| \
11014 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11015$as_echo X"$as_dir" |
11016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11017 s//\1/
11018 q
11019 }
11020 /^X\(\/\/\)[^/].*/{
11021 s//\1/
11022 q
11023 }
11024 /^X\(\/\/\)$/{
11025 s//\1/
11026 q
11027 }
11028 /^X\(\/\).*/{
11029 s//\1/
11030 q
11031 }
11032 s/.*/./; q'`
11033 test -d "$as_dir" && break
11034 done
11035 test -z "$as_dirs" || eval "mkdir $as_dirs"
5d4aa1f5 11036 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1ef0423a
FCE
11037
11038
11039} # as_fn_mkdir_p
2f1a1aea 11040if mkdir -p . 2>/dev/null; then
1ef0423a 11041 as_mkdir_p='mkdir -p "$as_dir"'
2f1a1aea
FCE
11042else
11043 test -d ./-p && rmdir ./-p
11044 as_mkdir_p=false
11045fi
11046
7fbd9d09
FCE
11047if test -x / >/dev/null 2>&1; then
11048 as_test_x='test -x'
11049else
11050 if ls -dL / >/dev/null 2>&1; then
11051 as_ls_L_option=L
11052 else
11053 as_ls_L_option=
11054 fi
11055 as_test_x='
11056 eval sh -c '\''
11057 if test -d "$1"; then
0710d850 11058 test -d "$1/.";
7fbd9d09 11059 else
1ef0423a 11060 case $1 in #(
0710d850 11061 -*)set "./$1";;
7fbd9d09 11062 esac;
1ef0423a 11063 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7fbd9d09
FCE
11064 ???[sx]*):;;*)false;;esac;fi
11065 '\'' sh
11066 '
11067fi
11068as_executable_p=$as_test_x
2f1a1aea
FCE
11069
11070# Sed expression to map a string onto a valid CPP name.
11071as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11072
11073# Sed expression to map a string onto a valid variable name.
11074as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11075
11076
2f1a1aea 11077exec 6>&1
1ef0423a
FCE
11078## ----------------------------------- ##
11079## Main body of $CONFIG_STATUS script. ##
11080## ----------------------------------- ##
11081_ASEOF
11082test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
2f1a1aea 11083
1ef0423a
FCE
11084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11085# Save the log message, to keep $0 and so on meaningful, and to
2f1a1aea 11086# report actual input values of CONFIG_FILES etc. instead of their
7fbd9d09
FCE
11087# values after options handling.
11088ac_log="
94d406fc 11089This file was extended by systemtap $as_me 1.7, which was
c3de29bd 11090generated by GNU Autoconf 2.68. Invocation command line was
2f1a1aea
FCE
11091
11092 CONFIG_FILES = $CONFIG_FILES
11093 CONFIG_HEADERS = $CONFIG_HEADERS
11094 CONFIG_LINKS = $CONFIG_LINKS
11095 CONFIG_COMMANDS = $CONFIG_COMMANDS
11096 $ $0 $@
11097
7fbd9d09
FCE
11098on `(hostname || uname -n) 2>/dev/null | sed 1q`
11099"
11100
2f1a1aea
FCE
11101_ACEOF
11102
0710d850
DS
11103case $ac_config_files in *"
11104"*) set x $ac_config_files; shift; ac_config_files=$*;;
11105esac
11106
11107case $ac_config_headers in *"
11108"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11109esac
11110
11111
11112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
818ba2bc 11113# Files that config.status was made for.
7fbd9d09
FCE
11114config_files="$ac_config_files"
11115config_headers="$ac_config_headers"
11116config_commands="$ac_config_commands"
daae650d 11117
7fbd9d09 11118_ACEOF
8ae7a94a 11119
0710d850 11120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2f1a1aea 11121ac_cs_usage="\
1ef0423a
FCE
11122\`$as_me' instantiates files and other configuration actions
11123from templates according to the current configuration. Unless the files
11124and actions are specified as TAGs, all are instantiated by default.
2f1a1aea 11125
1ef0423a 11126Usage: $0 [OPTION]... [TAG]...
2f1a1aea
FCE
11127
11128 -h, --help print this help, then exit
7fbd9d09 11129 -V, --version print version number and configuration settings, then exit
1ef0423a 11130 --config print configuration, then exit
0710d850
DS
11131 -q, --quiet, --silent
11132 do not print progress messages
2f1a1aea
FCE
11133 -d, --debug don't remove temporary files
11134 --recheck update $as_me by reconfiguring in the same conditions
0710d850
DS
11135 --file=FILE[:TEMPLATE]
11136 instantiate the configuration file FILE
11137 --header=FILE[:TEMPLATE]
11138 instantiate the configuration header FILE
2f1a1aea
FCE
11139
11140Configuration files:
11141$config_files
11142
11143Configuration headers:
11144$config_headers
11145
11146Configuration commands:
11147$config_commands
11148
306dd4f8 11149Report bugs to <systemtap@sourceware.org>."
818ba2bc 11150
7fbd9d09 11151_ACEOF
0710d850 11152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1ef0423a 11153ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2f1a1aea 11154ac_cs_version="\\
94d406fc 11155systemtap config.status 1.7
c3de29bd 11156configured by $0, generated by GNU Autoconf 2.68,
1ef0423a 11157 with options \\"\$ac_cs_config\\"
2f1a1aea 11158
5d4aa1f5 11159Copyright (C) 2010 Free Software Foundation, Inc.
2f1a1aea
FCE
11160This config.status script is free software; the Free Software Foundation
11161gives unlimited permission to copy, distribute and modify it."
7fbd9d09
FCE
11162
11163ac_pwd='$ac_pwd'
11164srcdir='$srcdir'
11165INSTALL='$INSTALL'
11166MKDIR_P='$MKDIR_P'
0710d850
DS
11167AWK='$AWK'
11168test -n "\$AWK" || AWK=awk
2f1a1aea
FCE
11169_ACEOF
11170
0710d850
DS
11171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11172# The default lists apply if the user does not specify any file.
2f1a1aea
FCE
11173ac_need_defaults=:
11174while test $# != 0
11175do
11176 case $1 in
c3de29bd 11177 --*=?*)
7fbd9d09
FCE
11178 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11179 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2f1a1aea
FCE
11180 ac_shift=:
11181 ;;
c3de29bd
LB
11182 --*=)
11183 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11184 ac_optarg=
11185 ac_shift=:
11186 ;;
7fbd9d09 11187 *)
2f1a1aea
FCE
11188 ac_option=$1
11189 ac_optarg=$2
11190 ac_shift=shift
11191 ;;
2f1a1aea
FCE
11192 esac
11193
11194 case $ac_option in
11195 # Handling of the options.
2f1a1aea
FCE
11196 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11197 ac_cs_recheck=: ;;
7fbd9d09 11198 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
0710d850 11199 $as_echo "$ac_cs_version"; exit ;;
1ef0423a
FCE
11200 --config | --confi | --conf | --con | --co | --c )
11201 $as_echo "$ac_cs_config"; exit ;;
7fbd9d09 11202 --debug | --debu | --deb | --de | --d | -d )
2f1a1aea
FCE
11203 debug=: ;;
11204 --file | --fil | --fi | --f )
11205 $ac_shift
0710d850
DS
11206 case $ac_optarg in
11207 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
c3de29bd 11208 '') as_fn_error $? "missing file argument" ;;
0710d850 11209 esac
1ef0423a 11210 as_fn_append CONFIG_FILES " '$ac_optarg'"
2f1a1aea
FCE
11211 ac_need_defaults=false;;
11212 --header | --heade | --head | --hea )
11213 $ac_shift
0710d850
DS
11214 case $ac_optarg in
11215 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11216 esac
1ef0423a 11217 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
2f1a1aea 11218 ac_need_defaults=false;;
7fbd9d09
FCE
11219 --he | --h)
11220 # Conflict between --help and --header
5d4aa1f5 11221 as_fn_error $? "ambiguous option: \`$1'
1ef0423a 11222Try \`$0 --help' for more information.";;
7fbd9d09 11223 --help | --hel | -h )
0710d850 11224 $as_echo "$ac_cs_usage"; exit ;;
2f1a1aea
FCE
11225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11226 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11227 ac_cs_silent=: ;;
11228
11229 # This is an error.
5d4aa1f5 11230 -*) as_fn_error $? "unrecognized option: \`$1'
1ef0423a 11231Try \`$0 --help' for more information." ;;
2f1a1aea 11232
1ef0423a 11233 *) as_fn_append ac_config_targets " $1"
7fbd9d09 11234 ac_need_defaults=false ;;
2f1a1aea
FCE
11235
11236 esac
11237 shift
11238done
11239
11240ac_configure_extra_args=
11241
11242if $ac_cs_silent; then
11243 exec 6>/dev/null
11244 ac_configure_extra_args="$ac_configure_extra_args --silent"
11245fi
11246
11247_ACEOF
0710d850 11248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea 11249if \$ac_cs_recheck; then
0710d850
DS
11250 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11251 shift
11252 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11253 CONFIG_SHELL='$SHELL'
7fbd9d09 11254 export CONFIG_SHELL
0710d850 11255 exec "\$@"
2f1a1aea
FCE
11256fi
11257
11258_ACEOF
0710d850 11259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
11260exec 5>>config.log
11261{
11262 echo
11263 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11264## Running $as_me. ##
11265_ASBOX
0710d850 11266 $as_echo "$ac_log"
7fbd9d09 11267} >&5
2f1a1aea 11268
7fbd9d09 11269_ACEOF
0710d850 11270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea 11271#
7fbd9d09 11272# INIT-COMMANDS
2f1a1aea 11273#
2f1a1aea 11274AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8f223b3e
FCE
11275# Capture the value of obsolete ALL_LINGUAS because we need it to compute
11276 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11277 # from automake < 1.5.
11278 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11279 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11280 LINGUAS="${LINGUAS-%UNSET%}"
11281
2f1a1aea
FCE
11282
11283_ACEOF
11284
0710d850 11285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
11286
11287# Handling of arguments.
2f1a1aea
FCE
11288for ac_config_target in $ac_config_targets
11289do
7fbd9d09
FCE
11290 case $ac_config_target in
11291 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8f223b3e 11292 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
f9794ee4 11293 "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;;
8f223b3e 11294 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
7fbd9d09
FCE
11295 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11296 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11297 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
53ade4da 11298 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
7fbd9d09 11299 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
1087b83f 11300 "grapher/Makefile") CONFIG_FILES="$CONFIG_FILES grapher/Makefile" ;;
9ed28fbc 11301 "grapher/stapgraph.1") CONFIG_FILES="$CONFIG_FILES grapher/stapgraph.1" ;;
ec1a2239 11302 "stappaths.7") CONFIG_FILES="$CONFIG_FILES stappaths.7" ;;
7fbd9d09 11303 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
2f78bee0 11304 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
7fbd9d09 11305 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
e4aaabda 11306 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
53ade4da
MW
11307 "doc/beginners/publican.cfg") CONFIG_FILES="$CONFIG_FILES doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in" ;;
11308 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
7fbd9d09 11309
5d4aa1f5 11310 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
2f1a1aea
FCE
11311 esac
11312done
11313
7fbd9d09 11314
2f1a1aea
FCE
11315# If the user did not use the arguments to specify the items to instantiate,
11316# then the envvar interface is used. Set only those that are not.
11317# We use the long form for the default assignment because of an extremely
11318# bizarre bug on SunOS 4.1.3.
11319if $ac_need_defaults; then
11320 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11321 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11322 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11323fi
11324
11325# Have a temporary directory for convenience. Make it in the build tree
7fbd9d09 11326# simply because there is no reason against having it here, and in addition,
2f1a1aea 11327# creating and moving files from /tmp can sometimes cause problems.
7fbd9d09
FCE
11328# Hook for its removal unless debugging.
11329# Note that there is a small window in which the directory will not be cleaned:
11330# after its creation but before its name has been assigned to `$tmp'.
2f1a1aea
FCE
11331$debug ||
11332{
c3de29bd 11333 tmp= ac_tmp=
7fbd9d09 11334 trap 'exit_status=$?
c3de29bd
LB
11335 : "${ac_tmp:=$tmp}"
11336 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7fbd9d09 11337' 0
1ef0423a 11338 trap 'as_fn_exit 1' 1 2 13 15
2f1a1aea 11339}
2f1a1aea
FCE
11340# Create a (secure) tmp directory for tmp files.
11341
11342{
7fbd9d09 11343 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c3de29bd 11344 test -d "$tmp"
2f1a1aea
FCE
11345} ||
11346{
7fbd9d09
FCE
11347 tmp=./conf$$-$RANDOM
11348 (umask 077 && mkdir "$tmp")
5d4aa1f5 11349} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
c3de29bd 11350ac_tmp=$tmp
2f1a1aea 11351
0710d850
DS
11352# Set up the scripts for CONFIG_FILES section.
11353# No need to generate them if there are no CONFIG_FILES.
11354# This happens for instance with `./config.status config.h'.
7fbd9d09
FCE
11355if test -n "$CONFIG_FILES"; then
11356
31f9baea 11357
1ef0423a
FCE
11358ac_cr=`echo X | tr X '\015'`
11359# On cygwin, bash can eat \r inside `` if the user requested igncr.
11360# But we know of no other shell where ac_cr would be empty at this
11361# point, so we can use a bashism as a fallback.
11362if test "x$ac_cr" = x; then
11363 eval ac_cr=\$\'\\r\'
11364fi
0710d850
DS
11365ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11366if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5d4aa1f5 11367 ac_cs_awk_cr='\\r'
0710d850
DS
11368else
11369 ac_cs_awk_cr=$ac_cr
7fbd9d09 11370fi
5e0d2ebf 11371
c3de29bd 11372echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7fbd9d09
FCE
11373_ACEOF
11374
11375
0710d850
DS
11376{
11377 echo "cat >conf$$subs.awk <<_ACEOF" &&
11378 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11379 echo "_ACEOF"
11380} >conf$$subs.sh ||
5d4aa1f5
FCE
11381 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11382ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7fbd9d09
FCE
11383ac_delim='%!_!# '
11384for ac_last_try in false false false false false :; do
0710d850 11385 . ./conf$$subs.sh ||
5d4aa1f5 11386 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
0710d850
DS
11387
11388 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11389 if test $ac_delim_n = $ac_delim_num; then
7fbd9d09
FCE
11390 break
11391 elif $ac_last_try; then
5d4aa1f5 11392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7fbd9d09
FCE
11393 else
11394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11395 fi
11396done
0710d850
DS
11397rm -f conf$$subs.sh
11398
11399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c3de29bd 11400cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
0710d850
DS
11401_ACEOF
11402sed -n '
11403h
11404s/^/S["/; s/!.*/"]=/
11405p
11406g
11407s/^[^!]*!//
11408:repl
11409t repl
11410s/'"$ac_delim"'$//
11411t delim
11412:nl
11413h
1ef0423a 11414s/\(.\{148\}\)..*/\1/
0710d850
DS
11415t more1
11416s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11417p
11418n
11419b repl
11420:more1
11421s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11422p
11423g
11424s/.\{148\}//
11425t nl
11426:delim
11427h
1ef0423a 11428s/\(.\{148\}\)..*/\1/
0710d850
DS
11429t more2
11430s/["\\]/\\&/g; s/^/"/; s/$/"/
11431p
11432b
11433:more2
11434s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11435p
11436g
11437s/.\{148\}//
11438t delim
11439' <conf$$subs.awk | sed '
11440/^[^""]/{
11441 N
11442 s/\n//
11443}
11444' >>$CONFIG_STATUS || ac_write_fail=1
11445rm -f conf$$subs.awk
11446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11447_ACAWK
c3de29bd 11448cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
0710d850
DS
11449 for (key in S) S_is_set[key] = 1
11450 FS = "\a"
7fbd9d09 11451
0710d850
DS
11452}
11453{
11454 line = $ 0
11455 nfields = split(line, field, "@")
11456 substed = 0
11457 len = length(field[1])
11458 for (i = 2; i < nfields; i++) {
11459 key = field[i]
11460 keylen = length(key)
11461 if (S_is_set[key]) {
11462 value = S[key]
11463 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11464 len += length(value) + length(field[++i])
11465 substed = 1
11466 } else
11467 len += 1 + keylen
11468 }
11469
11470 print line
11471}
7fbd9d09 11472
0710d850 11473_ACAWK
7fbd9d09 11474_ACEOF
0710d850
DS
11475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11476if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11477 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11478else
11479 cat
c3de29bd 11480fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5d4aa1f5 11481 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7fbd9d09
FCE
11482_ACEOF
11483
5d4aa1f5
FCE
11484# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11485# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7fbd9d09
FCE
11486# trailing colons and then remove the whole line if VPATH becomes empty
11487# (actually we leave an empty line to preserve line numbers).
11488if test "x$srcdir" = x.; then
5d4aa1f5
FCE
11489 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11490h
11491s///
11492s/^/:/
11493s/[ ]*$/:/
11494s/:\$(srcdir):/:/g
11495s/:\${srcdir}:/:/g
11496s/:@srcdir@:/:/g
11497s/^:*//
7fbd9d09 11498s/:*$//
5d4aa1f5
FCE
11499x
11500s/\(=[ ]*\).*/\1/
11501G
11502s/\n//
7fbd9d09
FCE
11503s/^[^=]*=[ ]*$//
11504}'
11505fi
11506
0710d850 11507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
11508fi # test -n "$CONFIG_FILES"
11509
0710d850
DS
11510# Set up the scripts for CONFIG_HEADERS section.
11511# No need to generate them if there are no CONFIG_HEADERS.
11512# This happens for instance with `./config.status Makefile'.
11513if test -n "$CONFIG_HEADERS"; then
c3de29bd 11514cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
0710d850
DS
11515BEGIN {
11516_ACEOF
11517
11518# Transform confdefs.h into an awk script `defines.awk', embedded as
11519# here-document in config.status, that substitutes the proper values into
11520# config.h.in to produce config.h.
11521
11522# Create a delimiter string that does not exist in confdefs.h, to ease
11523# handling of long lines.
11524ac_delim='%!_!# '
11525for ac_last_try in false false :; do
c3de29bd
LB
11526 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11527 if test -z "$ac_tt"; then
0710d850
DS
11528 break
11529 elif $ac_last_try; then
5d4aa1f5 11530 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
0710d850
DS
11531 else
11532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11533 fi
11534done
11535
11536# For the awk script, D is an array of macro values keyed by name,
11537# likewise P contains macro parameters if any. Preserve backslash
11538# newline sequences.
11539
11540ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11541sed -n '
11542s/.\{148\}/&'"$ac_delim"'/g
11543t rset
11544:rset
11545s/^[ ]*#[ ]*define[ ][ ]*/ /
11546t def
11547d
11548:def
11549s/\\$//
11550t bsnl
11551s/["\\]/\\&/g
11552s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11553D["\1"]=" \3"/p
11554s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11555d
11556:bsnl
11557s/["\\]/\\&/g
11558s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11559D["\1"]=" \3\\\\\\n"\\/p
11560t cont
11561s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11562t cont
11563d
11564:cont
11565n
11566s/.\{148\}/&'"$ac_delim"'/g
11567t clear
11568:clear
11569s/\\$//
11570t bsnlc
11571s/["\\]/\\&/g; s/^/"/; s/$/"/p
11572d
11573:bsnlc
11574s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11575b cont
11576' <confdefs.h | sed '
11577s/'"$ac_delim"'/"\\\
11578"/g' >>$CONFIG_STATUS || ac_write_fail=1
11579
11580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11581 for (key in D) D_is_set[key] = 1
11582 FS = "\a"
11583}
11584/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11585 line = \$ 0
11586 split(line, arg, " ")
11587 if (arg[1] == "#") {
11588 defundef = arg[2]
11589 mac1 = arg[3]
11590 } else {
11591 defundef = substr(arg[1], 2)
11592 mac1 = arg[2]
11593 }
11594 split(mac1, mac2, "(") #)
11595 macro = mac2[1]
11596 prefix = substr(line, 1, index(line, defundef) - 1)
11597 if (D_is_set[macro]) {
11598 # Preserve the white space surrounding the "#".
11599 print prefix "define", macro P[macro] D[macro]
11600 next
11601 } else {
11602 # Replace #undef with comments. This is necessary, for example,
11603 # in the case of _POSIX_SOURCE, which is predefined and required
11604 # on some systems where configure will not decide to define it.
11605 if (defundef == "undef") {
11606 print "/*", prefix defundef, macro, "*/"
11607 next
11608 }
11609 }
11610}
11611{ print }
11612_ACAWK
11613_ACEOF
11614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5d4aa1f5 11615 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
0710d850
DS
11616fi # test -n "$CONFIG_HEADERS"
11617
27aba29a 11618
0710d850
DS
11619eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11620shift
11621for ac_tag
7fbd9d09
FCE
11622do
11623 case $ac_tag in
11624 :[FHLC]) ac_mode=$ac_tag; continue;;
2f1a1aea 11625 esac
7fbd9d09
FCE
11626 case $ac_mode$ac_tag in
11627 :[FHL]*:*);;
5d4aa1f5 11628 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7fbd9d09
FCE
11629 :[FH]-) ac_tag=-:-;;
11630 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11631 esac
11632 ac_save_IFS=$IFS
11633 IFS=:
11634 set x $ac_tag
11635 IFS=$ac_save_IFS
11636 shift
11637 ac_file=$1
11638 shift
2f1a1aea 11639
7fbd9d09
FCE
11640 case $ac_mode in
11641 :L) ac_source=$1;;
11642 :[FH])
11643 ac_file_inputs=
11644 for ac_f
11645 do
11646 case $ac_f in
c3de29bd 11647 -) ac_f="$ac_tmp/stdin";;
7fbd9d09
FCE
11648 *) # Look for the file first in the build tree, then in the source tree
11649 # (if the path is not absolute). The absolute path cannot be DOS-style,
11650 # because $ac_f cannot contain `:'.
11651 test -f "$ac_f" ||
11652 case $ac_f in
11653 [\\/$]*) false;;
11654 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11655 esac ||
5d4aa1f5 11656 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7fbd9d09 11657 esac
0710d850 11658 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1ef0423a 11659 as_fn_append ac_file_inputs " '$ac_f'"
7fbd9d09
FCE
11660 done
11661
11662 # Let's still pretend it is `configure' which instantiates (i.e., don't
11663 # use $as_me), people would be surprised to read:
11664 # /* config.h. Generated by config.status. */
0710d850
DS
11665 configure_input='Generated from '`
11666 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11667 `' by configure.'
7fbd9d09
FCE
11668 if test x"$ac_file" != x-; then
11669 configure_input="$ac_file. $configure_input"
1ef0423a 11670 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
0710d850 11671$as_echo "$as_me: creating $ac_file" >&6;}
7fbd9d09 11672 fi
0710d850
DS
11673 # Neutralize special characters interpreted by sed in replacement strings.
11674 case $configure_input in #(
11675 *\&* | *\|* | *\\* )
11676 ac_sed_conf_input=`$as_echo "$configure_input" |
11677 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11678 *) ac_sed_conf_input=$configure_input;;
11679 esac
7fbd9d09
FCE
11680
11681 case $ac_tag in
c3de29bd 11682 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5d4aa1f5 11683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7fbd9d09
FCE
11684 esac
11685 ;;
11686 esac
11687
11688 ac_dir=`$as_dirname -- "$ac_file" ||
2f1a1aea
FCE
11689$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11690 X"$ac_file" : 'X\(//\)[^/]' \| \
11691 X"$ac_file" : 'X\(//\)$' \| \
7fbd9d09 11692 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
0710d850 11693$as_echo X"$ac_file" |
7fbd9d09
FCE
11694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11695 s//\1/
11696 q
11697 }
11698 /^X\(\/\/\)[^/].*/{
11699 s//\1/
11700 q
11701 }
11702 /^X\(\/\/\)$/{
11703 s//\1/
11704 q
11705 }
11706 /^X\(\/\).*/{
11707 s//\1/
11708 q
11709 }
11710 s/.*/./; q'`
1ef0423a 11711 as_dir="$ac_dir"; as_fn_mkdir_p
2f1a1aea
FCE
11712 ac_builddir=.
11713
7fbd9d09
FCE
11714case "$ac_dir" in
11715.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11716*)
0710d850 11717 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 11718 # A ".." for each directory in $ac_dir_suffix.
0710d850 11719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
11720 case $ac_top_builddir_sub in
11721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11723 esac ;;
11724esac
11725ac_abs_top_builddir=$ac_pwd
11726ac_abs_builddir=$ac_pwd$ac_dir_suffix
11727# for backward compatibility:
11728ac_top_builddir=$ac_top_build_prefix
2f1a1aea
FCE
11729
11730case $srcdir in
7fbd9d09 11731 .) # We are building in place.
2f1a1aea 11732 ac_srcdir=.
7fbd9d09
FCE
11733 ac_top_srcdir=$ac_top_builddir_sub
11734 ac_abs_top_srcdir=$ac_pwd ;;
11735 [\\/]* | ?:[\\/]* ) # Absolute name.
2f1a1aea 11736 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
11737 ac_top_srcdir=$srcdir
11738 ac_abs_top_srcdir=$srcdir ;;
11739 *) # Relative name.
11740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11741 ac_top_srcdir=$ac_top_build_prefix$srcdir
11742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2f1a1aea 11743esac
7fbd9d09 11744ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2f1a1aea 11745
2f1a1aea 11746
7fbd9d09
FCE
11747 case $ac_mode in
11748 :F)
11749 #
11750 # CONFIG_FILE
11751 #
2f1a1aea
FCE
11752
11753 case $INSTALL in
11754 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7fbd9d09
FCE
11755 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11756 esac
11757 ac_MKDIR_P=$MKDIR_P
11758 case $MKDIR_P in
11759 [\\/$]* | ?:[\\/]* ) ;;
11760 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5e0d2ebf 11761 esac
7fbd9d09 11762_ACEOF
5e0d2ebf 11763
0710d850 11764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
11765# If the template does not know about datarootdir, expand it.
11766# FIXME: This hack should be removed a few years after 2.60.
11767ac_datarootdir_hack=; ac_datarootdir_seen=
0710d850
DS
11768ac_sed_dataroot='
11769/datarootdir/ {
7fbd9d09
FCE
11770 p
11771 q
11772}
11773/@datadir@/p
11774/@docdir@/p
11775/@infodir@/p
11776/@localedir@/p
1ef0423a 11777/@mandir@/p'
0710d850 11778case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7fbd9d09
FCE
11779*datarootdir*) ac_datarootdir_seen=yes;;
11780*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1ef0423a 11781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
0710d850 11782$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7fbd9d09 11783_ACEOF
0710d850 11784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7fbd9d09
FCE
11785 ac_datarootdir_hack='
11786 s&@datadir@&$datadir&g
11787 s&@docdir@&$docdir&g
11788 s&@infodir@&$infodir&g
11789 s&@localedir@&$localedir&g
11790 s&@mandir@&$mandir&g
1ef0423a 11791 s&\\\${datarootdir}&$datarootdir&g' ;;
7fbd9d09 11792esac
70d28673 11793_ACEOF
7fbd9d09
FCE
11794
11795# Neutralize VPATH when `$srcdir' = `.'.
11796# Shell code in configure.ac might set extrasub.
11797# FIXME: do we really want to maintain this feature?
0710d850
DS
11798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11799ac_sed_extra="$ac_vpsub
2f1a1aea
FCE
11800$extrasub
11801_ACEOF
0710d850 11802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2f1a1aea
FCE
11803:t
11804/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
0710d850 11805s|@configure_input@|$ac_sed_conf_input|;t t
7fbd9d09 11806s&@top_builddir@&$ac_top_builddir_sub&;t t
0710d850 11807s&@top_build_prefix@&$ac_top_build_prefix&;t t
7fbd9d09
FCE
11808s&@srcdir@&$ac_srcdir&;t t
11809s&@abs_srcdir@&$ac_abs_srcdir&;t t
11810s&@top_srcdir@&$ac_top_srcdir&;t t
11811s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11812s&@builddir@&$ac_builddir&;t t
11813s&@abs_builddir@&$ac_abs_builddir&;t t
11814s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11815s&@INSTALL@&$ac_INSTALL&;t t
11816s&@MKDIR_P@&$ac_MKDIR_P&;t t
11817$ac_datarootdir_hack
0710d850 11818"
c3de29bd
LB
11819eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11820 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7fbd9d09
FCE
11821
11822test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
c3de29bd
LB
11823 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11825 "$ac_tmp/out"`; test -z "$ac_out"; } &&
1ef0423a 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5d4aa1f5 11827which seems to be undefined. Please make sure it is defined" >&5
0710d850 11828$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5d4aa1f5 11829which seems to be undefined. Please make sure it is defined" >&2;}
7fbd9d09 11830
c3de29bd 11831 rm -f "$ac_tmp/stdin"
818ba2bc 11832 case $ac_file in
c3de29bd
LB
11833 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11834 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
0710d850 11835 esac \
5d4aa1f5 11836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7fbd9d09
FCE
11837 ;;
11838 :H)
11839 #
11840 # CONFIG_HEADER
11841 #
818ba2bc 11842 if test x"$ac_file" != x-; then
0710d850
DS
11843 {
11844 $as_echo "/* $configure_input */" \
c3de29bd
LB
11845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11846 } >"$ac_tmp/config.h" \
5d4aa1f5 11847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
c3de29bd 11848 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1ef0423a 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
0710d850 11850$as_echo "$as_me: $ac_file is unchanged" >&6;}
2f1a1aea 11851 else
0710d850 11852 rm -f "$ac_file"
c3de29bd 11853 mv "$ac_tmp/config.h" "$ac_file" \
5d4aa1f5 11854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
2f1a1aea
FCE
11855 fi
11856 else
0710d850 11857 $as_echo "/* $configure_input */" \
c3de29bd 11858 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5d4aa1f5 11859 || as_fn_error $? "could not create -" "$LINENO" 5
2f1a1aea 11860 fi
0710d850
DS
11861# Compute "$ac_file"'s index in $config_headers.
11862_am_arg="$ac_file"
2f1a1aea
FCE
11863_am_stamp_count=1
11864for _am_header in $config_headers :; do
11865 case $_am_header in
0710d850 11866 $_am_arg | $_am_arg:* )
2f1a1aea
FCE
11867 break ;;
11868 * )
11869 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11870 esac
11871done
0710d850
DS
11872echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11873$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11874 X"$_am_arg" : 'X\(//\)[^/]' \| \
11875 X"$_am_arg" : 'X\(//\)$' \| \
11876 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11877$as_echo X"$_am_arg" |
7fbd9d09
FCE
11878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11879 s//\1/
11880 q
11881 }
11882 /^X\(\/\/\)[^/].*/{
11883 s//\1/
11884 q
11885 }
11886 /^X\(\/\/\)$/{
11887 s//\1/
11888 q
11889 }
11890 /^X\(\/\).*/{
11891 s//\1/
11892 q
11893 }
11894 s/.*/./; q'`/stamp-h$_am_stamp_count
11895 ;;
818ba2bc 11896
1ef0423a 11897 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
0710d850 11898$as_echo "$as_me: executing $ac_file commands" >&6;}
7fbd9d09
FCE
11899 ;;
11900 esac
818ba2bc
MW
11901
11902
7fbd9d09 11903 case $ac_file$ac_mode in
0710d850
DS
11904 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11905 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11906 # are listed without --file. Let's play safe and only enable the eval
11907 # if we detect the quoting.
11908 case $CONFIG_FILES in
11909 *\'*) eval set x "$CONFIG_FILES" ;;
11910 *) set x $CONFIG_FILES ;;
11911 esac
11912 shift
11913 for mf
11914 do
11915 # Strip MF so we end up with the name of the file.
11916 mf=`echo "$mf" | sed -e 's/:.*$//'`
11917 # Check whether this is an Automake generated Makefile or not.
11918 # We used to match only the files named `Makefile.in', but
11919 # some people rename them; so instead we look at the file content.
11920 # Grep'ing the first line is not enough: some people post-process
11921 # each Makefile.in and add a new line on top of each file to say so.
11922 # Grep'ing the whole file is not good either: AIX grep has a line
11923 # limit of 2048, but all sed's we know have understand at least 4000.
11924 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11925 dirpart=`$as_dirname -- "$mf" ||
2f1a1aea
FCE
11926$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11927 X"$mf" : 'X\(//\)[^/]' \| \
11928 X"$mf" : 'X\(//\)$' \| \
7fbd9d09 11929 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
0710d850 11930$as_echo X"$mf" |
7fbd9d09
FCE
11931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11932 s//\1/
11933 q
11934 }
11935 /^X\(\/\/\)[^/].*/{
11936 s//\1/
11937 q
11938 }
11939 /^X\(\/\/\)$/{
11940 s//\1/
11941 q
11942 }
11943 /^X\(\/\).*/{
11944 s//\1/
11945 q
11946 }
11947 s/.*/./; q'`
0710d850
DS
11948 else
11949 continue
11950 fi
11951 # Extract the definition of DEPDIR, am__include, and am__quote
11952 # from the Makefile without running `make'.
11953 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11954 test -z "$DEPDIR" && continue
11955 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11956 test -z "am__include" && continue
11957 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11958 # When using ansi2knr, U may be empty or an underscore; expand it
11959 U=`sed -n 's/^U = //p' < "$mf"`
11960 # Find all dependency output files, they are included files with
11961 # $(DEPDIR) in their names. We invoke sed twice because it is the
11962 # simplest approach to changing $(DEPDIR) to its actual value in the
11963 # expansion.
11964 for file in `sed -n "
11965 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11966 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11967 # Make sure the directory exists.
11968 test -f "$dirpart/$file" && continue
11969 fdir=`$as_dirname -- "$file" ||
2f1a1aea
FCE
11970$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11971 X"$file" : 'X\(//\)[^/]' \| \
11972 X"$file" : 'X\(//\)$' \| \
7fbd9d09 11973 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
0710d850 11974$as_echo X"$file" |
7fbd9d09
FCE
11975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11976 s//\1/
11977 q
11978 }
11979 /^X\(\/\/\)[^/].*/{
11980 s//\1/
11981 q
11982 }
11983 /^X\(\/\/\)$/{
11984 s//\1/
11985 q
11986 }
11987 /^X\(\/\).*/{
11988 s//\1/
11989 q
11990 }
11991 s/.*/./; q'`
1ef0423a 11992 as_dir=$dirpart/$fdir; as_fn_mkdir_p
0710d850
DS
11993 # echo "creating $dirpart/$file"
11994 echo '# dummy' > "$dirpart/$file"
11995 done
2f1a1aea 11996 done
0710d850 11997}
2f1a1aea 11998 ;;
8f223b3e
FCE
11999 "po-directories":C)
12000 for ac_file in $CONFIG_FILES; do
12001 # Support "outfile[:infile[:infile...]]"
12002 case "$ac_file" in
12003 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12004 esac
12005 # PO directories have a Makefile.in generated from Makefile.in.in.
12006 case "$ac_file" in */Makefile.in)
12007 # Adjust a relative srcdir.
12008 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12009 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12010 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12011 # In autoconf-2.13 it is called $ac_given_srcdir.
12012 # In autoconf-2.50 it is called $srcdir.
12013 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12014 case "$ac_given_srcdir" in
12015 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12016 /*) top_srcdir="$ac_given_srcdir" ;;
12017 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12018 esac
12019 # Treat a directory as a PO directory if and only if it has a
12020 # POTFILES.in file. This allows packages to have multiple PO
12021 # directories under different names or in different locations.
12022 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12023 rm -f "$ac_dir/POTFILES"
12024 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12025 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12026 POMAKEFILEDEPS="POTFILES.in"
12027 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12028 # on $ac_dir but don't depend on user-specified configuration
12029 # parameters.
12030 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12031 # The LINGUAS file contains the set of available languages.
12032 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12033 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12034 fi
12035 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12036 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12037 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12038 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12039 else
12040 # The set of available languages was given in configure.in.
12041 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12042 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12043 fi
12044 # Compute POFILES
12045 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12046 # Compute UPDATEPOFILES
12047 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12048 # Compute DUMMYPOFILES
12049 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12050 # Compute GMOFILES
12051 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12052 case "$ac_given_srcdir" in
12053 .) srcdirpre= ;;
12054 *) srcdirpre='$(srcdir)/' ;;
12055 esac
12056 POFILES=
12057 UPDATEPOFILES=
12058 DUMMYPOFILES=
12059 GMOFILES=
12060 for lang in $ALL_LINGUAS; do
12061 POFILES="$POFILES $srcdirpre$lang.po"
12062 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12063 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12064 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12065 done
12066 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12067 # environment variable.
12068 INST_LINGUAS=
12069 if test -n "$ALL_LINGUAS"; then
12070 for presentlang in $ALL_LINGUAS; do
12071 useit=no
12072 if test "%UNSET%" != "$LINGUAS"; then
12073 desiredlanguages="$LINGUAS"
12074 else
12075 desiredlanguages="$ALL_LINGUAS"
12076 fi
12077 for desiredlang in $desiredlanguages; do
12078 # Use the presentlang catalog if desiredlang is
12079 # a. equal to presentlang, or
12080 # b. a variant of presentlang (because in this case,
12081 # presentlang can be used as a fallback for messages
12082 # which are not translated in the desiredlang catalog).
12083 case "$desiredlang" in
12084 "$presentlang"*) useit=yes;;
12085 esac
12086 done
12087 if test $useit = yes; then
12088 INST_LINGUAS="$INST_LINGUAS $presentlang"
12089 fi
12090 done
12091 fi
12092 CATALOGS=
12093 if test -n "$INST_LINGUAS"; then
12094 for lang in $INST_LINGUAS; do
12095 CATALOGS="$CATALOGS $lang.gmo"
12096 done
12097 fi
12098 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12099 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12100 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12101 if test -f "$f"; then
12102 case "$f" in
12103 *.orig | *.bak | *~) ;;
12104 *) cat "$f" >> "$ac_dir/Makefile" ;;
12105 esac
12106 fi
12107 done
12108 fi
12109 ;;
12110 esac
12111 done ;;
7fbd9d09 12112 "run-stap":F) chmod +x run-stap ;;
e4aaabda 12113 "dtrace":F) chmod +x dtrace ;;
53ade4da 12114 "doc/beginners":C) rm -f $ac_abs_top_builddir/doc/beginners/en-US $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite && mkdir -p $ac_abs_top_builddir/doc/beginners/build/en-US && ln -s $ac_abs_top_srcdir/doc/SystemTap_Beginners_Guide/en-US $ac_abs_top_builddir/doc/beginners/en-US && ln -s $ac_abs_top_srcdir/testsuite $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite ;;
7fbd9d09 12115
2f1a1aea 12116 esac
7fbd9d09 12117done # for ac_tag
2f1a1aea 12118
2f1a1aea 12119
1ef0423a 12120as_fn_exit 0
2f1a1aea 12121_ACEOF
2f1a1aea
FCE
12122ac_clean_files=$ac_clean_files_save
12123
0710d850 12124test $ac_write_fail = 0 ||
5d4aa1f5 12125 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
0710d850 12126
2f1a1aea
FCE
12127
12128# configure is writing to config.log, and then calls config.status.
12129# config.status does its own redirection, appending to config.log.
12130# Unfortunately, on DOS this fails, as config.log is still kept open
12131# by configure, so config.status won't be able to write to it; its
12132# output is simply discarded. So we exec the FD to /dev/null,
12133# effectively closing config.log, so it can be properly (re)opened and
12134# appended to by config.status. When coming back to configure, we
12135# need to make the FD available again.
12136if test "$no_create" != yes; then
12137 ac_cs_success=:
12138 ac_config_status_args=
12139 test "$silent" = yes &&
12140 ac_config_status_args="$ac_config_status_args --quiet"
12141 exec 5>/dev/null
12142 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12143 exec 5>>config.log
12144 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12145 # would make configure fail if this is the last instruction.
5d4aa1f5 12146 $ac_cs_success || as_fn_exit 1
2f1a1aea
FCE
12147fi
12148
5ba96b90
FCE
12149#
12150# CONFIG_SUBDIRS section.
12151#
12152if test "$no_recursion" != yes; then
12153
0710d850
DS
12154 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
12155 # so they do not pile up.
5ba96b90
FCE
12156 ac_sub_configure_args=
12157 ac_prev=
7fbd9d09
FCE
12158 eval "set x $ac_configure_args"
12159 shift
12160 for ac_arg
12161 do
5ba96b90
FCE
12162 if test -n "$ac_prev"; then
12163 ac_prev=
12164 continue
12165 fi
12166 case $ac_arg in
12167 -cache-file | --cache-file | --cache-fil | --cache-fi \
12168 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
12169 ac_prev=cache_file ;;
12170 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
12171 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
12172 | --c=*)
12173 ;;
12174 --config-cache | -C)
12175 ;;
12176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
12177 ac_prev=srcdir ;;
12178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
12179 ;;
12180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
12181 ac_prev=prefix ;;
12182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
12183 ;;
0710d850
DS
12184 --disable-option-checking)
12185 ;;
7fbd9d09
FCE
12186 *)
12187 case $ac_arg in
0710d850 12188 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fbd9d09 12189 esac
1ef0423a 12190 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5ba96b90
FCE
12191 esac
12192 done
12193
12194 # Always prepend --prefix to ensure using the same prefix
12195 # in subdir configurations.
7fbd9d09
FCE
12196 ac_arg="--prefix=$prefix"
12197 case $ac_arg in
0710d850 12198 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fbd9d09
FCE
12199 esac
12200 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
12201
12202 # Pass --silent
12203 if test "$silent" = yes; then
12204 ac_sub_configure_args="--silent $ac_sub_configure_args"
12205 fi
daae650d 12206
0710d850
DS
12207 # Always prepend --disable-option-checking to silence warnings, since
12208 # different subdirs can have different --enable and --with options.
12209 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
12210
5ba96b90
FCE
12211 ac_popdir=`pwd`
12212 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
12213
12214 # Do not complain, so a configure script can configure whichever
12215 # parts of a large source tree are present.
7fbd9d09
FCE
12216 test -d "$srcdir/$ac_dir" || continue
12217
12218 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1ef0423a 12219 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
0710d850 12220 $as_echo "$ac_msg" >&6
1ef0423a 12221 as_dir="$ac_dir"; as_fn_mkdir_p
5ba96b90
FCE
12222 ac_builddir=.
12223
7fbd9d09
FCE
12224case "$ac_dir" in
12225.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12226*)
0710d850 12227 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 12228 # A ".." for each directory in $ac_dir_suffix.
0710d850 12229 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
12230 case $ac_top_builddir_sub in
12231 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12232 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12233 esac ;;
12234esac
12235ac_abs_top_builddir=$ac_pwd
12236ac_abs_builddir=$ac_pwd$ac_dir_suffix
12237# for backward compatibility:
12238ac_top_builddir=$ac_top_build_prefix
5ba96b90
FCE
12239
12240case $srcdir in
7fbd9d09 12241 .) # We are building in place.
5ba96b90 12242 ac_srcdir=.
7fbd9d09
FCE
12243 ac_top_srcdir=$ac_top_builddir_sub
12244 ac_abs_top_srcdir=$ac_pwd ;;
12245 [\\/]* | ?:[\\/]* ) # Absolute name.
5ba96b90 12246 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
12247 ac_top_srcdir=$srcdir
12248 ac_abs_top_srcdir=$srcdir ;;
12249 *) # Relative name.
12250 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12251 ac_top_srcdir=$ac_top_build_prefix$srcdir
12252 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5ba96b90 12253esac
7fbd9d09 12254ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5ba96b90
FCE
12255
12256
7fbd9d09 12257 cd "$ac_dir"
5ba96b90
FCE
12258
12259 # Check for guested configure; otherwise get Cygnus style configure.
7fbd9d09
FCE
12260 if test -f "$ac_srcdir/configure.gnu"; then
12261 ac_sub_configure=$ac_srcdir/configure.gnu
12262 elif test -f "$ac_srcdir/configure"; then
12263 ac_sub_configure=$ac_srcdir/configure
12264 elif test -f "$ac_srcdir/configure.in"; then
12265 # This should be Cygnus configure.
12266 ac_sub_configure=$ac_aux_dir/configure
5ba96b90 12267 else
1ef0423a 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
0710d850 12269$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
5ba96b90
FCE
12270 ac_sub_configure=
12271 fi
12272
12273 # The recursion is here.
12274 if test -n "$ac_sub_configure"; then
12275 # Make the cache file name correct relative to the subdirectory.
12276 case $cache_file in
12277 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7fbd9d09
FCE
12278 *) # Relative name.
12279 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5ba96b90
FCE
12280 esac
12281
1ef0423a 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
0710d850 12283$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5ba96b90 12284 # The eval makes quoting arguments work.
7fbd9d09
FCE
12285 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
12286 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5d4aa1f5 12287 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5ba96b90
FCE
12288 fi
12289
7fbd9d09 12290 cd "$ac_popdir"
5ba96b90
FCE
12291 done
12292fi
0710d850 12293if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1ef0423a 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
0710d850
DS
12295$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12296fi
5ba96b90 12297
4d9087fc 12298
af29024d 12299if test "${prefix}" = "/usr/local"; then
1ef0423a 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
0710d850 12301$as_echo "$as_me: " >&6;}
1ef0423a 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
0710d850 12303$as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
1ef0423a 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
0710d850 12305$as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
1ef0423a 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
0710d850 12307$as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
1ef0423a 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
0710d850 12309$as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
1ef0423a 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5
0710d850 12311$as_echo "$as_me: is not supported." >&6;}
af29024d 12312fi
This page took 1.984193 seconds and 5 git commands to generate.