]> sourceware.org Git - systemtap.git/blame - configure
configure: Fix handling of python versions 2 and 3
[systemtap.git] / configure
CommitLineData
2f1a1aea
FCE
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
dd57c738 3# Generated by GNU Autoconf 2.69 for systemtap 4.1.
2f1a1aea 4#
306dd4f8 5# Report bugs to <systemtap@sourceware.org>.
2f1a1aea 6#
1ef0423a 7#
8eef2738 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1ef0423a
FCE
9#
10#
2f1a1aea
FCE
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
1ef0423a
FCE
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
2f1a1aea 16
7fbd9d09
FCE
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
1ef0423a 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2f1a1aea
FCE
20 emulate sh
21 NULLCMD=:
0710d850 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2f1a1aea
FCE
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
7fbd9d09
FCE
25 setopt NO_GLOB_SUBST
26else
1ef0423a
FCE
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
7fbd9d09 32esac
7fbd9d09
FCE
33fi
34
35
0710d850
DS
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1ef0423a
FCE
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
0710d850
DS
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
31f9baea 56 else
0710d850
DS
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
1ef0423a 60 case $arg in #(
0710d850
DS
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
31f9baea 69 fi
0710d850
DS
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
2f1a1aea 81fi
2f1a1aea 82
2f1a1aea 83
7fbd9d09
FCE
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
7fbd9d09
FCE
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
c3de29bd 92as_myself=
1ef0423a 93case $0 in #((
7fbd9d09
FCE
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
1ef0423a
FCE
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
7fbd9d09
FCE
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
0710d850 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1ef0423a 113 exit 1
7fbd9d09
FCE
114fi
115
1ef0423a
FCE
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7fbd9d09 123done
2f1a1aea
FCE
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
0710d850
DS
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
2f1a1aea 133
1ef0423a
FCE
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
8eef2738
LB
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
1ef0423a
FCE
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
8eef2738
LB
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
1ef0423a
FCE
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
8eef2738
LB
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
1ef0423a
FCE
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
fcca127c
FCE
270$0: systemtap@sourceware.org about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
1ef0423a
FCE
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
5d4aa1f5 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1ef0423a
FCE
359
360
361} # as_fn_mkdir_p
8eef2738
LB
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
1ef0423a
FCE
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
5d4aa1f5
FCE
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
1ef0423a
FCE
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5d4aa1f5 410# script with STATUS, using 1 if that was 0.
1ef0423a
FCE
411as_fn_error ()
412{
5d4aa1f5
FCE
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1ef0423a 417 fi
5d4aa1f5 418 $as_echo "$as_me: error: $2" >&2
1ef0423a
FCE
419 as_fn_exit $as_status
420} # as_fn_error
421
412e1bf7
FCE
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
1ef0423a
FCE
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
412e1bf7 440
412e1bf7
FCE
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
0710d850 445$as_echo X/"$0" |
412e1bf7
FCE
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
1ef0423a
FCE
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
412e1bf7 466
5e0d2ebf 467
1ef0423a
FCE
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
412e1bf7 490
8eef2738
LB
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
1ef0423a
FCE
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
412e1bf7 501}
5e0d2ebf 502
1ef0423a
FCE
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
514esac
5e5aee9f 515
1ef0423a
FCE
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
412e1bf7 522fi
1ef0423a
FCE
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8eef2738 529 # In both cases, we have to default to `cp -pR'.
1ef0423a 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8eef2738 531 as_ln_s='cp -pR'
1ef0423a
FCE
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
8eef2738 535 as_ln_s='cp -pR'
1ef0423a 536 fi
ec1a2239 537else
8eef2738 538 as_ln_s='cp -pR'
e6364d79 539fi
1ef0423a
FCE
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
e6364d79 542
1ef0423a
FCE
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
5e5aee9f
FCE
548fi
549
8eef2738
LB
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
412e1bf7 552
1ef0423a
FCE
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
412e1bf7 555
1ef0423a
FCE
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7fbd9d09
FCE
558
559
1ef0423a
FCE
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
5e5aee9f
FCE
562
563# Name of the host.
5d4aa1f5 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
2f1a1aea
FCE
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
2f1a1aea
FCE
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
7fbd9d09 572ac_clean_files=
2f1a1aea 573ac_config_libobj_dir=.
7fbd9d09 574LIBOBJS=
2f1a1aea
FCE
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
2f1a1aea 579
2f1a1aea
FCE
580# Identity of this package.
581PACKAGE_NAME='systemtap'
582PACKAGE_TARNAME='systemtap'
dd57c738
FCE
583PACKAGE_VERSION='4.1'
584PACKAGE_STRING='systemtap 4.1'
306dd4f8 585PACKAGE_BUGREPORT='systemtap@sourceware.org'
1ef0423a 586PACKAGE_URL=''
2f1a1aea
FCE
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
7fbd9d09 591#ifdef HAVE_SYS_TYPES_H
2f1a1aea
FCE
592# include <sys/types.h>
593#endif
7fbd9d09 594#ifdef HAVE_SYS_STAT_H
2f1a1aea
FCE
595# include <sys/stat.h>
596#endif
7fbd9d09 597#ifdef STDC_HEADERS
2f1a1aea
FCE
598# include <stdlib.h>
599# include <stddef.h>
600#else
7fbd9d09 601# ifdef HAVE_STDLIB_H
2f1a1aea
FCE
602# include <stdlib.h>
603# endif
604#endif
7fbd9d09
FCE
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
2f1a1aea
FCE
607# include <memory.h>
608# endif
609# include <string.h>
610#endif
7fbd9d09 611#ifdef HAVE_STRINGS_H
2f1a1aea
FCE
612# include <strings.h>
613#endif
7fbd9d09 614#ifdef HAVE_INTTYPES_H
2f1a1aea 615# include <inttypes.h>
2f1a1aea 616#endif
7fbd9d09
FCE
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
2f1a1aea
FCE
621# include <unistd.h>
622#endif"
623
8f223b3e 624gt_needs=
0710d850
DS
625enable_option_checking=no
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630subdirs
62c8a962 631STAP_PREFIX
01fb72a0
DS
632NEED_BASE_CLIENT_CODE_FALSE
633NEED_BASE_CLIENT_CODE_TRUE
5c5a0bf2
DS
634HAVE_HTTP_SUPPORT_FALSE
635HAVE_HTTP_SUPPORT_TRUE
fb299101
SC
636libcurl_LIBS
637libcurl_CFLAGS
5c5a0bf2
DS
638uuid_LIBS
639uuid_CFLAGS
640libmicrohttpd_LIBS
641libmicrohttpd_CFLAGS
85b62eab 642STAP_EXTRA_VERSION
8f223b3e 643LOCALEDIR
62c8a962 644ENABLE_NLS
26703c63
SM
645HAVE_JAVA_FALSE
646HAVE_JAVA_TRUE
9ac164fa 647JAVADIR
e9b0aba1
SM
648have_jar
649have_javac
51030d84
JS
650HAVE_SELINUX_FALSE
651HAVE_SELINUX_TRUE
652selinux_LIBS
653selinux_CFLAGS
f0418515
AM
654HAVE_BPF_DECLS_FALSE
655HAVE_BPF_DECLS_TRUE
f9794ee4 656support_section_question
11ea78d6
FL
657HAVE_MONITOR_LIBS_FALSE
658HAVE_MONITOR_LIBS_TRUE
659ncurses_LIBS
660ncurses_CFLAGS
661jsonc_LIBS
662jsonc_CFLAGS
d7f07c29
DS
663HAVE_PYTHON_PROBES_FALSE
664HAVE_PYTHON_PROBES_TRUE
665HAVE_PYTHON3_PROBES_FALSE
666HAVE_PYTHON3_PROBES_TRUE
667PYTHON3_CPPFLAGS
668PYTHON3_CONFIG
669HAVE_PYTHON2_PROBES_FALSE
670HAVE_PYTHON2_PROBES_TRUE
671PYTHON_CPPFLAGS
672PYTHON_CONFIG
b0c670f4
FCE
673BUILD_VIRT_FALSE
674BUILD_VIRT_TRUE
42f767d0
JL
675HAVE_LIBXML2_FALSE
676HAVE_LIBXML2_TRUE
677libxml2_LIBS
678libxml2_CFLAGS
679HAVE_LIBVIRT_FALSE
680HAVE_LIBVIRT_TRUE
681libvirt_LIBS
682libvirt_CFLAGS
138bbe90
JS
683HAVE_DYNINST_FALSE
684HAVE_DYNINST_TRUE
685DYNINST_LDFLAGS
686DYNINST_CXXFLAGS
891810c2 687BOOST_SYSTEM_LIB
62cb4be9 688CXXCPP
0dbac951 689stapbpf_LIBS
97859b9d 690staprun_LIBS
0710d850
DS
691stap_LIBS
692elfutils_abs_srcdir
693BUILD_ELFUTILS_FALSE
694BUILD_ELFUTILS_TRUE
e5d623b1 695preferred_python
9ac12b89
DS
696HAVE_LIBREADLINE_FALSE
697HAVE_LIBREADLINE_TRUE
698READLINE_LIBS
2dce8c42
DB
699HAVE_AVAHI_FALSE
700HAVE_AVAHI_TRUE
28f121c3
DEP
701avahi_LIBS
702avahi_CFLAGS
0710d850
DS
703BUILD_SERVER_FALSE
704BUILD_SERVER_TRUE
9ed47854 705dracutbindir
2323b028 706dracutstap
638abbd0
SC
707HAVE_OPENSSL_FALSE
708HAVE_OPENSSL_TRUE
709openssl_LIBS
710openssl_CFLAGS
a0e2728a
DB
711HAVE_NSS_FALSE
712HAVE_NSS_TRUE
28f121c3 713nss_LIBS
0710d850 714nss_CFLAGS
0710d850
DS
715XMLTO_STRINGPARAM_FALSE
716XMLTO_STRINGPARAM_TRUE
d9c42357
FL
717BUILD_HTMLDOCS_FALSE
718BUILD_HTMLDOCS_TRUE
a98010af
AJ
719HAVE_XMLTO_FALSE
720HAVE_XMLTO_TRUE
327a760e
FCE
721HAVE_FOP_FALSE
722HAVE_FOP_TRUE
723have_fop
d9c42357 724have_xmlto
0710d850
DS
725BUILD_REFDOCS_FALSE
726BUILD_REFDOCS_TRUE
6e69a441
SM
727INSTALL_PREBUILT_DOCS_FALSE
728INSTALL_PREBUILT_DOCS_TRUE
0710d850
DS
729BUILD_DOCS_FALSE
730BUILD_DOCS_TRUE
0710d850
DS
731have_ps2pdf
732have_dvips
733have_latex
734BUILD_CRASHMOD_FALSE
735BUILD_CRASHMOD_TRUE
736staplog_CPPFLAGS
737BUILD_TRANSLATOR_FALSE
738BUILD_TRANSLATOR_TRUE
739sqlite3_LIBS
1fbe397b
FCE
740sqlite3_CFLAGS
741PKG_CONFIG_LIBDIR
742PKG_CONFIG_PATH
743PKG_CONFIG
0710d850
DS
744PIECXXFLAGS
745PIECFLAGS
746PIELDFLAGS
f5852d3a 747HAVE_CXX11
e5d623b1
DS
748py3execdir
749python3dir
750PYTHON3_PLATFORM
751PYTHON3_EXEC_PREFIX
752PYTHON3_PREFIX
753PYTHON3_VERSION
754PYTHON3
c16501a1
DS
755pkgpyexecdir
756pyexecdir
757pkgpythondir
758pythondir
759PYTHON_PLATFORM
760PYTHON_EXEC_PREFIX
761PYTHON_PREFIX
762PYTHON_VERSION
763PYTHON
e5d623b1 764PYTHON_UNKNOWN
8f223b3e
FCE
765POSUB
766LTLIBINTL
767LIBINTL
768INTLLIBS
769LTLIBICONV
770LIBICONV
42f767d0 771INTL_MACOSX_LIBS
8f223b3e
FCE
772XGETTEXT_EXTRA_OPTIONS
773MSGMERGE
774XGETTEXT_015
775XGETTEXT
776GMSGFMT_015
777MSGFMT_015
778GMSGFMT
779MSGFMT
780GETTEXT_MACRO_VERSION
781USE_NLS
6fdbaaca 782SED
0710d850 783RANLIB
0710d850
DS
784am__fastdepCXX_FALSE
785am__fastdepCXX_TRUE
786CXXDEPMODE
787ac_ct_CXX
788CXXFLAGS
789CXX
8f223b3e
FCE
790LN_S
791EGREP
792GREP
793CPP
0710d850
DS
794am__fastdepCC_FALSE
795am__fastdepCC_TRUE
796CCDEPMODE
c66be968 797am__nodep
0710d850
DS
798AMDEPBACKSLASH
799AMDEP_FALSE
800AMDEP_TRUE
0710d850
DS
801am__include
802DEPDIR
803OBJEXT
804EXEEXT
805ac_ct_CC
806CPPFLAGS
807LDFLAGS
808CFLAGS
809CC
d9e6d90b
WC
810MAINT
811MAINTAINER_MODE_FALSE
812MAINTAINER_MODE_TRUE
0710d850
DS
813AM_BACKSLASH
814AM_DEFAULT_VERBOSITY
c66be968
JS
815AM_DEFAULT_V
816AM_V
0710d850
DS
817am__untar
818am__tar
819AMTAR
820am__leading_dot
821SET_MAKE
822AWK
823mkdir_p
7fbd9d09 824MKDIR_P
0710d850
DS
825INSTALL_STRIP_PROGRAM
826STRIP
827install_sh
828MAKEINFO
829AUTOHEADER
830AUTOMAKE
831AUTOCONF
832ACLOCAL
833VERSION
834PACKAGE
835CYGPATH_W
836am__isrc
837INSTALL_DATA
838INSTALL_SCRIPT
839INSTALL_PROGRAM
2689a171
SM
840target_os
841target_vendor
842target_cpu
843target
844host_os
845host_vendor
846host_cpu
847host
848build_os
849build_vendor
850build_cpu
851build
0710d850
DS
852target_alias
853host_alias
854build_alias
855LIBS
856ECHO_T
857ECHO_N
858ECHO_C
859DEFS
860mandir
861localedir
862libdir
863psdir
864pdfdir
865dvidir
866htmldir
867infodir
868docdir
869oldincludedir
870includedir
871localstatedir
872sharedstatedir
873sysconfdir
874datadir
875datarootdir
876libexecdir
877sbindir
878bindir
879program_transform_name
880prefix
881exec_prefix
1ef0423a 882PACKAGE_URL
0710d850
DS
883PACKAGE_BUGREPORT
884PACKAGE_STRING
885PACKAGE_VERSION
886PACKAGE_TARNAME
887PACKAGE_NAME
888PATH_SEPARATOR
891810c2
FCE
889SHELL
890am__quote'
2f1a1aea 891ac_subst_files=''
0710d850
DS
892ac_user_opts='
893enable_option_checking
94eb87d1 894enable_silent_rules
d9e6d90b 895enable_maintainer_mode
0710d850 896enable_dependency_tracking
97859b9d 897enable_largefile
8f223b3e
FCE
898enable_nls
899with_gnu_ld
900enable_rpath
901with_libiconv_prefix
902with_libintl_prefix
0710d850 903enable_prologues
0f5d597d 904enable_sdt_probes
0710d850
DS
905enable_ssp
906enable_pie
907enable_sqlite
908enable_translator
909enable_crash
910enable_docs
911enable_refdocs
d9c42357 912enable_htmldocs
28f121c3 913with_nss
638abbd0 914with_openssl
2323b028 915with_dracutstap
9ed47854 916with_dracutbindir
0710d850 917enable_server
28f121c3 918with_avahi
0710d850 919with_rpm
0a742545 920with_python3
0710d850 921with_elfutils
138bbe90 922with_dyninst
b0c670f4 923enable_virt
d7f07c29
DS
924with_python2_probes
925with_python3_probes
d882ba5f 926with_bpf
51030d84 927with_selinux
26703c63 928with_java
85b62eab 929with_extra_version
5c5a0bf2 930enable_http
0710d850 931'
7fbd9d09
FCE
932 ac_precious_vars='build_alias
933host_alias
934target_alias
935CC
936CFLAGS
937LDFLAGS
938LIBS
939CPPFLAGS
8f223b3e 940CPP
7fbd9d09
FCE
941CXX
942CXXFLAGS
943CCC
c16501a1 944PYTHON
1087b83f 945PKG_CONFIG
5d4aa1f5
FCE
946PKG_CONFIG_PATH
947PKG_CONFIG_LIBDIR
1fbe397b
FCE
948sqlite3_CFLAGS
949sqlite3_LIBS
28f121c3
DEP
950nss_CFLAGS
951nss_LIBS
638abbd0
SC
952openssl_CFLAGS
953openssl_LIBS
28f121c3
DEP
954avahi_CFLAGS
955avahi_LIBS
51030d84 956CXXCPP
42f767d0
JL
957libvirt_CFLAGS
958libvirt_LIBS
959libxml2_CFLAGS
960libxml2_LIBS
11ea78d6
FL
961jsonc_CFLAGS
962jsonc_LIBS
963ncurses_CFLAGS
964ncurses_LIBS
51030d84 965selinux_CFLAGS
5c5a0bf2
DS
966selinux_LIBS
967libmicrohttpd_CFLAGS
968libmicrohttpd_LIBS
969uuid_CFLAGS
fb299101
SC
970uuid_LIBS
971libcurl_CFLAGS
972libcurl_LIBS'
97859b9d 973ac_subdirs_all='testsuite'
2f1a1aea
FCE
974
975# Initialize some variables set by options.
976ac_init_help=
977ac_init_version=false
0710d850
DS
978ac_unrecognized_opts=
979ac_unrecognized_sep=
2f1a1aea
FCE
980# The variables have the same names as the options, with
981# dashes changed to underlines.
982cache_file=/dev/null
983exec_prefix=NONE
984no_create=
985no_recursion=
986prefix=NONE
987program_prefix=NONE
988program_suffix=NONE
989program_transform_name=s,x,x,
990silent=
991site=
992srcdir=
993verbose=
994x_includes=NONE
995x_libraries=NONE
996
997# Installation directory options.
998# These are left unexpanded so users can "make install exec_prefix=/foo"
999# and all the variables that are supposed to be based on exec_prefix
1000# by default will actually change.
1001# Use braces instead of parens because sh, perl, etc. also accept them.
7fbd9d09 1002# (The list follows the same order as the GNU Coding Standards.)
2f1a1aea
FCE
1003bindir='${exec_prefix}/bin'
1004sbindir='${exec_prefix}/sbin'
1005libexecdir='${exec_prefix}/libexec'
7fbd9d09
FCE
1006datarootdir='${prefix}/share'
1007datadir='${datarootdir}'
2f1a1aea
FCE
1008sysconfdir='${prefix}/etc'
1009sharedstatedir='${prefix}/com'
1010localstatedir='${prefix}/var'
2f1a1aea
FCE
1011includedir='${prefix}/include'
1012oldincludedir='/usr/include'
7fbd9d09
FCE
1013docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1014infodir='${datarootdir}/info'
1015htmldir='${docdir}'
1016dvidir='${docdir}'
1017pdfdir='${docdir}'
1018psdir='${docdir}'
1019libdir='${exec_prefix}/lib'
1020localedir='${datarootdir}/locale'
1021mandir='${datarootdir}/man'
2f1a1aea
FCE
1022
1023ac_prev=
7fbd9d09 1024ac_dashdash=
2f1a1aea
FCE
1025for ac_option
1026do
1027 # If the previous option needs an argument, assign it.
1028 if test -n "$ac_prev"; then
7fbd9d09 1029 eval $ac_prev=\$ac_option
2f1a1aea
FCE
1030 ac_prev=
1031 continue
1032 fi
1033
7fbd9d09 1034 case $ac_option in
c3de29bd
LB
1035 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1036 *=) ac_optarg= ;;
1037 *) ac_optarg=yes ;;
7fbd9d09 1038 esac
2f1a1aea
FCE
1039
1040 # Accept the important Cygnus configure options, so we can diagnose typos.
1041
7fbd9d09
FCE
1042 case $ac_dashdash$ac_option in
1043 --)
1044 ac_dashdash=yes ;;
2f1a1aea
FCE
1045
1046 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1047 ac_prev=bindir ;;
1048 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1049 bindir=$ac_optarg ;;
1050
1051 -build | --build | --buil | --bui | --bu)
1052 ac_prev=build_alias ;;
1053 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1054 build_alias=$ac_optarg ;;
1055
1056 -cache-file | --cache-file | --cache-fil | --cache-fi \
1057 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1058 ac_prev=cache_file ;;
1059 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1060 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1061 cache_file=$ac_optarg ;;
1062
1063 --config-cache | -C)
1064 cache_file=config.cache ;;
1065
7fbd9d09 1066 -datadir | --datadir | --datadi | --datad)
2f1a1aea 1067 ac_prev=datadir ;;
7fbd9d09 1068 -datadir=* | --datadir=* | --datadi=* | --datad=*)
2f1a1aea
FCE
1069 datadir=$ac_optarg ;;
1070
7fbd9d09
FCE
1071 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1072 | --dataroo | --dataro | --datar)
1073 ac_prev=datarootdir ;;
1074 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1075 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1076 datarootdir=$ac_optarg ;;
1077
2f1a1aea 1078 -disable-* | --disable-*)
0710d850 1079 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2f1a1aea 1080 # Reject names that are not valid shell variable names.
0710d850 1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5d4aa1f5 1082 as_fn_error $? "invalid feature name: $ac_useropt"
0710d850
DS
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1086 *"
1087"enable_$ac_useropt"
1088"*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval enable_$ac_useropt=no ;;
7fbd9d09
FCE
1093
1094 -docdir | --docdir | --docdi | --doc | --do)
1095 ac_prev=docdir ;;
1096 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1097 docdir=$ac_optarg ;;
1098
1099 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1100 ac_prev=dvidir ;;
1101 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1102 dvidir=$ac_optarg ;;
2f1a1aea
FCE
1103
1104 -enable-* | --enable-*)
0710d850 1105 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2f1a1aea 1106 # Reject names that are not valid shell variable names.
0710d850 1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5d4aa1f5 1108 as_fn_error $? "invalid feature name: $ac_useropt"
0710d850
DS
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113"enable_$ac_useropt"
1114"*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval enable_$ac_useropt=\$ac_optarg ;;
2f1a1aea
FCE
1119
1120 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1121 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1122 | --exec | --exe | --ex)
1123 ac_prev=exec_prefix ;;
1124 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1125 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1126 | --exec=* | --exe=* | --ex=*)
1127 exec_prefix=$ac_optarg ;;
1128
1129 -gas | --gas | --ga | --g)
1130 # Obsolete; use --with-gas.
1131 with_gas=yes ;;
1132
1133 -help | --help | --hel | --he | -h)
1134 ac_init_help=long ;;
1135 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1136 ac_init_help=recursive ;;
1137 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1138 ac_init_help=short ;;
1139
1140 -host | --host | --hos | --ho)
1141 ac_prev=host_alias ;;
1142 -host=* | --host=* | --hos=* | --ho=*)
1143 host_alias=$ac_optarg ;;
1144
7fbd9d09
FCE
1145 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1146 ac_prev=htmldir ;;
1147 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1148 | --ht=*)
1149 htmldir=$ac_optarg ;;
1150
2f1a1aea
FCE
1151 -includedir | --includedir | --includedi | --included | --include \
1152 | --includ | --inclu | --incl | --inc)
1153 ac_prev=includedir ;;
1154 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1155 | --includ=* | --inclu=* | --incl=* | --inc=*)
1156 includedir=$ac_optarg ;;
1157
1158 -infodir | --infodir | --infodi | --infod | --info | --inf)
1159 ac_prev=infodir ;;
1160 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1161 infodir=$ac_optarg ;;
1162
1163 -libdir | --libdir | --libdi | --libd)
1164 ac_prev=libdir ;;
1165 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1166 libdir=$ac_optarg ;;
1167
1168 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1169 | --libexe | --libex | --libe)
1170 ac_prev=libexecdir ;;
1171 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1172 | --libexe=* | --libex=* | --libe=*)
1173 libexecdir=$ac_optarg ;;
1174
7fbd9d09
FCE
1175 -localedir | --localedir | --localedi | --localed | --locale)
1176 ac_prev=localedir ;;
1177 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1178 localedir=$ac_optarg ;;
1179
2f1a1aea 1180 -localstatedir | --localstatedir | --localstatedi | --localstated \
7fbd9d09 1181 | --localstate | --localstat | --localsta | --localst | --locals)
2f1a1aea
FCE
1182 ac_prev=localstatedir ;;
1183 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7fbd9d09 1184 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2f1a1aea
FCE
1185 localstatedir=$ac_optarg ;;
1186
1187 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1188 ac_prev=mandir ;;
1189 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1190 mandir=$ac_optarg ;;
1191
1192 -nfp | --nfp | --nf)
1193 # Obsolete; use --without-fp.
1194 with_fp=no ;;
1195
1196 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1197 | --no-cr | --no-c | -n)
1198 no_create=yes ;;
1199
1200 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1201 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1202 no_recursion=yes ;;
1203
1204 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1205 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1206 | --oldin | --oldi | --old | --ol | --o)
1207 ac_prev=oldincludedir ;;
1208 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1209 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1210 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1211 oldincludedir=$ac_optarg ;;
1212
1213 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1214 ac_prev=prefix ;;
1215 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1216 prefix=$ac_optarg ;;
1217
1218 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1219 | --program-pre | --program-pr | --program-p)
1220 ac_prev=program_prefix ;;
1221 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1222 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1223 program_prefix=$ac_optarg ;;
1224
1225 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1226 | --program-suf | --program-su | --program-s)
1227 ac_prev=program_suffix ;;
1228 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1229 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1230 program_suffix=$ac_optarg ;;
1231
1232 -program-transform-name | --program-transform-name \
1233 | --program-transform-nam | --program-transform-na \
1234 | --program-transform-n | --program-transform- \
1235 | --program-transform | --program-transfor \
1236 | --program-transfo | --program-transf \
1237 | --program-trans | --program-tran \
1238 | --progr-tra | --program-tr | --program-t)
1239 ac_prev=program_transform_name ;;
1240 -program-transform-name=* | --program-transform-name=* \
1241 | --program-transform-nam=* | --program-transform-na=* \
1242 | --program-transform-n=* | --program-transform-=* \
1243 | --program-transform=* | --program-transfor=* \
1244 | --program-transfo=* | --program-transf=* \
1245 | --program-trans=* | --program-tran=* \
1246 | --progr-tra=* | --program-tr=* | --program-t=*)
1247 program_transform_name=$ac_optarg ;;
1248
7fbd9d09
FCE
1249 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1250 ac_prev=pdfdir ;;
1251 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1252 pdfdir=$ac_optarg ;;
1253
1254 -psdir | --psdir | --psdi | --psd | --ps)
1255 ac_prev=psdir ;;
1256 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1257 psdir=$ac_optarg ;;
1258
2f1a1aea
FCE
1259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260 | -silent | --silent | --silen | --sile | --sil)
1261 silent=yes ;;
1262
1263 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1264 ac_prev=sbindir ;;
1265 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1266 | --sbi=* | --sb=*)
1267 sbindir=$ac_optarg ;;
1268
1269 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1270 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1271 | --sharedst | --shareds | --shared | --share | --shar \
1272 | --sha | --sh)
1273 ac_prev=sharedstatedir ;;
1274 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1275 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1276 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1277 | --sha=* | --sh=*)
1278 sharedstatedir=$ac_optarg ;;
1279
1280 -site | --site | --sit)
1281 ac_prev=site ;;
1282 -site=* | --site=* | --sit=*)
1283 site=$ac_optarg ;;
1284
1285 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1286 ac_prev=srcdir ;;
1287 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1288 srcdir=$ac_optarg ;;
1289
1290 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1291 | --syscon | --sysco | --sysc | --sys | --sy)
1292 ac_prev=sysconfdir ;;
1293 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1294 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1295 sysconfdir=$ac_optarg ;;
1296
1297 -target | --target | --targe | --targ | --tar | --ta | --t)
1298 ac_prev=target_alias ;;
1299 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1300 target_alias=$ac_optarg ;;
1301
1302 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1303 verbose=yes ;;
1304
1305 -version | --version | --versio | --versi | --vers | -V)
1306 ac_init_version=: ;;
1307
1308 -with-* | --with-*)
0710d850 1309 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2f1a1aea 1310 # Reject names that are not valid shell variable names.
0710d850 1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5d4aa1f5 1312 as_fn_error $? "invalid package name: $ac_useropt"
0710d850
DS
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317"with_$ac_useropt"
1318"*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=\$ac_optarg ;;
2f1a1aea
FCE
1323
1324 -without-* | --without-*)
0710d850 1325 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2f1a1aea 1326 # Reject names that are not valid shell variable names.
0710d850 1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5d4aa1f5 1328 as_fn_error $? "invalid package name: $ac_useropt"
0710d850
DS
1329 ac_useropt_orig=$ac_useropt
1330 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1331 case $ac_user_opts in
1332 *"
1333"with_$ac_useropt"
1334"*) ;;
1335 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1336 ac_unrecognized_sep=', ';;
1337 esac
1338 eval with_$ac_useropt=no ;;
2f1a1aea
FCE
1339
1340 --x)
1341 # Obsolete; use --with-x.
1342 with_x=yes ;;
1343
1344 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1345 | --x-incl | --x-inc | --x-in | --x-i)
1346 ac_prev=x_includes ;;
1347 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1348 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1349 x_includes=$ac_optarg ;;
1350
1351 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1352 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1353 ac_prev=x_libraries ;;
1354 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1355 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1356 x_libraries=$ac_optarg ;;
1357
5d4aa1f5
FCE
1358 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1359Try \`$0 --help' for more information"
2f1a1aea
FCE
1360 ;;
1361
1362 *=*)
1363 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1364 # Reject names that are not valid shell variable names.
1ef0423a
FCE
1365 case $ac_envvar in #(
1366 '' | [0-9]* | *[!_$as_cr_alnum]* )
5d4aa1f5 1367 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1ef0423a 1368 esac
7fbd9d09 1369 eval $ac_envvar=\$ac_optarg
2f1a1aea
FCE
1370 export $ac_envvar ;;
1371
1372 *)
1373 # FIXME: should be removed in autoconf 3.0.
0710d850 1374 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2f1a1aea 1375 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
0710d850 1376 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c3de29bd 1377 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2f1a1aea
FCE
1378 ;;
1379
1380 esac
1381done
1382
1383if test -n "$ac_prev"; then
1384 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5d4aa1f5 1385 as_fn_error $? "missing argument to $ac_option"
2f1a1aea
FCE
1386fi
1387
0710d850
DS
1388if test -n "$ac_unrecognized_opts"; then
1389 case $enable_option_checking in
1390 no) ;;
5d4aa1f5 1391 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
0710d850
DS
1392 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1393 esac
1394fi
1395
1396# Check all directory arguments for consistency.
7fbd9d09
FCE
1397for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1398 datadir sysconfdir sharedstatedir localstatedir includedir \
1399 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1400 libdir localedir mandir
818ba2bc 1401do
7fbd9d09 1402 eval ac_val=\$$ac_var
0710d850
DS
1403 # Remove trailing slashes.
1404 case $ac_val in
1405 */ )
1406 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1407 eval $ac_var=\$ac_val;;
1408 esac
1409 # Be sure to have absolute directory names.
8ae7a94a 1410 case $ac_val in
7fbd9d09
FCE
1411 [\\/$]* | ?:[\\/]* ) continue;;
1412 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2f1a1aea 1413 esac
5d4aa1f5 1414 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2f1a1aea
FCE
1415done
1416
1417# There might be people who depend on the old broken behavior: `$host'
1418# used to hold the argument of --host etc.
1419# FIXME: To remove some day.
1420build=$build_alias
1421host=$host_alias
1422target=$target_alias
1423
1424# FIXME: To remove some day.
1425if test "x$host_alias" != x; then
1426 if test "x$build_alias" = x; then
1427 cross_compiling=maybe
2f1a1aea
FCE
1428 elif test "x$build_alias" != "x$host_alias"; then
1429 cross_compiling=yes
1430 fi
1431fi
1432
1433ac_tool_prefix=
1434test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435
1436test "$silent" = yes && exec 6>/dev/null
1437
1438
7fbd9d09
FCE
1439ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440ac_ls_di=`ls -di .` &&
1441ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
5d4aa1f5 1442 as_fn_error $? "working directory cannot be determined"
7fbd9d09 1443test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
5d4aa1f5 1444 as_fn_error $? "pwd does not report name of working directory"
7fbd9d09
FCE
1445
1446
2f1a1aea
FCE
1447# Find the source files, if location was not specified.
1448if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
7fbd9d09 1450 # Try the directory containing this script, then the parent directory.
0710d850
DS
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456$as_echo X"$as_myself" |
7fbd9d09
FCE
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 s//\1/
1459 q
1460 }
1461 /^X\(\/\/\)[^/].*/{
1462 s//\1/
1463 q
1464 }
1465 /^X\(\/\/\)$/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\).*/{
1470 s//\1/
1471 q
1472 }
1473 s/.*/./; q'`
2f1a1aea 1474 srcdir=$ac_confdir
7fbd9d09 1475 if test ! -r "$srcdir/$ac_unique_file"; then
2f1a1aea
FCE
1476 srcdir=..
1477 fi
1478else
1479 ac_srcdir_defaulted=no
1480fi
7fbd9d09
FCE
1481if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
5d4aa1f5 1483 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
8ae7a94a 1484fi
7fbd9d09
FCE
1485ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486ac_abs_confdir=`(
5d4aa1f5 1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7fbd9d09
FCE
1488 pwd)`
1489# When building in place, set srcdir=.
1490if test "$ac_abs_confdir" = "$ac_pwd"; then
1491 srcdir=.
1492fi
1493# Remove unnecessary trailing slashes from srcdir.
1494# Double slashes in file names in object file debugging info
1495# mess up M-x gdb in Emacs.
1496case $srcdir in
1497*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498esac
1499for ac_var in $ac_precious_vars; do
1500 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_${ac_var}_value=\$${ac_var}
1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504done
2f1a1aea
FCE
1505
1506#
1507# Report the --help message.
1508#
1509if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1512 cat <<_ACEOF
dd57c738 1513\`configure' configures systemtap 4.1 to adapt to many kinds of systems.
2f1a1aea
FCE
1514
1515Usage: $0 [OPTION]... [VAR=VALUE]...
1516
1517To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518VAR=VALUE. See below for descriptions of some of the useful variables.
1519
1520Defaults for the options are specified in brackets.
1521
1522Configuration:
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
5d4aa1f5 1527 -q, --quiet, --silent do not print \`checking ...' messages
2f1a1aea
FCE
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532
2f1a1aea
FCE
1533Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
0710d850 1535 [$ac_default_prefix]
2f1a1aea 1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
0710d850 1537 [PREFIX]
2f1a1aea
FCE
1538
1539By default, \`make install' will install all the files in
1540\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542for instance \`--prefix=\$HOME'.
1543
1544For better control, use the options below.
1545
1546Fine tuning of the installation directories:
0710d850
DS
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
2f1a1aea
FCE
1566_ACEOF
1567
1568 cat <<\_ACEOF
1569
1570Program names:
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
8f223b3e
FCE
1574
1575System types:
1576 --build=BUILD configure for building on BUILD [guessed]
1577 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2689a171 1578 --target=TARGET configure for building compilers for TARGET [HOST]
2f1a1aea
FCE
1579_ACEOF
1580fi
1581
1582if test -n "$ac_init_help"; then
1583 case $ac_init_help in
dd57c738 1584 short | recursive ) echo "Configuration of systemtap 4.1:";;
2f1a1aea
FCE
1585 esac
1586 cat <<\_ACEOF
1587
1588Optional Features:
0710d850 1589 --disable-option-checking ignore unrecognized --enable/--with options
2f1a1aea
FCE
1590 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1591 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d9e6d90b
WC
1592 --enable-silent-rules less verbose build output (undo: "make V=1")
1593 --disable-silent-rules verbose build output (undo: "make V=0")
8eef2738
LB
1594 --enable-maintainer-mode
1595 enable make rules and dependencies not useful (and
1596 sometimes confusing) to the casual installer
8eef2738
LB
1597 --enable-dependency-tracking
1598 do not reject slow dependency extractors
1599 --disable-dependency-tracking
1600 speeds up one-time build
97859b9d 1601 --disable-largefile omit support for large files
8f223b3e
FCE
1602 --disable-nls do not use Native Language Support
1603 --disable-rpath do not hardcode runtime library paths
44f75386 1604 --enable-prologues make -P prologue-searching default
0f5d597d 1605 --disable-sdt-probes disable process.mark probes in stap, staprun, stapio
bbfd8c1a 1606 --disable-ssp disable gcc stack-protector
882ddac1 1607 --enable-pie enable position-independent-executable
9921a199 1608 --enable-sqlite build with sqlite support
6d14a4a9 1609 --disable-translator build only runtime utilities
564eb0a8
DS
1610 --enable-crash[=DIRECTORY]
1611 enable crash extension (default is disabled).
1612 Optional DIRECTORY is the path to the crash header
1613 file (needed if installed in a non-standard
1614 location).
6e69a441
SM
1615 --enable-docs enable building documentation (default to only
1616 installing prebuilt docs).
92aff3c7 1617 --enable-refdocs enable building reference documentation (default on
1ed33130 1618 if other documentation built).
d9c42357 1619 --enable-htmldocs enable building html documentation (default off).
a0e2728a
DB
1620 --enable-server enable building of stap-server (default on if nss
1621 etc. found).
b0c670f4
FCE
1622 --enable-virt enable building of stapvirt support (default on if
1623 libvirt etc. found).
3ea8da7a
FCE
1624 --enable-http Enable building http web compilation service, if
1625 possible
2f1a1aea 1626
4d9087fc
RM
1627Optional Packages:
1628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
42f767d0 1630 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
8f223b3e
FCE
1631 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1632 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1633 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1634 --without-libintl-prefix don't search for libintl in includedir and libdir
28f121c3 1635 --without-nss Do not use NSS even if present
638abbd0 1636 --without-openssl Do not use OPENSSL even if present
2323b028 1637 --with-dracutstap=DIR Install dracut module files in DIR
9ed47854 1638 --with-dracutbindir=DIR Use the dracut binary located in DIR
28f121c3 1639 --without-avahi Do not use Avahi even if present
0f5d597d 1640 --with-rpm query rpm database for missing debuginfos
5dabffcf 1641 --with-python3 prefer python version 3
4d9087fc
RM
1642 --with-elfutils=DIRECTORY
1643 find elfutils source code in DIRECTORY
138bbe90
JS
1644 --with-dyninst=DIRECTORY
1645 find dyninst headers/libraries in DIRECTORY
d7f07c29
DS
1646 --without-python2-probes
1647 Disable building python version 2 probe support,
1648 even if it is available
1649 --without-python3-probes
1650 Disable building python version 3 probe support,
1651 even if it is available
d882ba5f 1652 --without-bpf Do not try to build BPF components
51030d84 1653 --without-selinux Do not use libselinux even if present
26703c63
SM
1654 --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so
1655 against (default is /usr/lib/jvm/java)
85b62eab
FCE
1656 --with-extra-version=STRING
1657 Add STRING to stap -V version
4d9087fc 1658
2f1a1aea
FCE
1659Some influential environment variables:
1660 CC C compiler command
1661 CFLAGS C compiler flags
1662 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1663 nonstandard directory <lib dir>
7fbd9d09 1664 LIBS libraries to pass to the linker, e.g. -l<library>
1ef0423a 1665 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7fbd9d09 1666 you have headers in a nonstandard directory <include dir>
8f223b3e 1667 CPP C preprocessor
2f1a1aea
FCE
1668 CXX C++ compiler command
1669 CXXFLAGS C++ compiler flags
c16501a1 1670 PYTHON the Python interpreter
1087b83f 1671 PKG_CONFIG path to pkg-config utility
5d4aa1f5
FCE
1672 PKG_CONFIG_PATH
1673 directories to add to pkg-config's search path
1674 PKG_CONFIG_LIBDIR
1675 path overriding pkg-config's built-in search path
1fbe397b
FCE
1676 sqlite3_CFLAGS
1677 C compiler flags for sqlite3, overriding pkg-config
1678 sqlite3_LIBS
1679 linker flags for sqlite3, overriding pkg-config
28f121c3
DEP
1680 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1681 nss_LIBS linker flags for nss, overriding pkg-config
638abbd0
SC
1682 openssl_CFLAGS
1683 C compiler flags for openssl, overriding pkg-config
1684 openssl_LIBS
1685 linker flags for openssl, overriding pkg-config
28f121c3
DEP
1686 avahi_CFLAGS
1687 C compiler flags for avahi, overriding pkg-config
1688 avahi_LIBS linker flags for avahi, overriding pkg-config
f8a49389 1689 CXXCPP C++ preprocessor
42f767d0
JL
1690 libvirt_CFLAGS
1691 C compiler flags for libvirt, overriding pkg-config
1692 libvirt_LIBS
1693 linker flags for libvirt, overriding pkg-config
1694 libxml2_CFLAGS
1695 C compiler flags for libxml2, overriding pkg-config
1696 libxml2_LIBS
1697 linker flags for libxml2, overriding pkg-config
11ea78d6
FL
1698 jsonc_CFLAGS
1699 C compiler flags for jsonc, overriding pkg-config
1700 jsonc_LIBS linker flags for jsonc, overriding pkg-config
1701 ncurses_CFLAGS
1702 C compiler flags for ncurses, overriding pkg-config
1703 ncurses_LIBS
1704 linker flags for ncurses, overriding pkg-config
51030d84
JS
1705 selinux_CFLAGS
1706 C compiler flags for selinux, overriding pkg-config
1707 selinux_LIBS
1708 linker flags for selinux, overriding pkg-config
5c5a0bf2
DS
1709 libmicrohttpd_CFLAGS
1710 C compiler flags for libmicrohttpd, overriding pkg-config
1711 libmicrohttpd_LIBS
1712 linker flags for libmicrohttpd, overriding pkg-config
1713 uuid_CFLAGS C compiler flags for uuid, overriding pkg-config
1714 uuid_LIBS linker flags for uuid, overriding pkg-config
fb299101
SC
1715 libcurl_CFLAGS
1716 C compiler flags for libcurl, overriding pkg-config
1717 libcurl_LIBS
1718 linker flags for libcurl, overriding pkg-config
2f1a1aea
FCE
1719
1720Use these variables to override the choices made by `configure' or to help
1721it to find libraries and programs with nonstandard names/locations.
1722
306dd4f8 1723Report bugs to <systemtap@sourceware.org>.
2f1a1aea 1724_ACEOF
7fbd9d09 1725ac_status=$?
2f1a1aea
FCE
1726fi
1727
1728if test "$ac_init_help" = "recursive"; then
1729 # If there are subdirs, report their specific --help.
2f1a1aea 1730 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
0710d850
DS
1731 test -d "$ac_dir" ||
1732 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1733 continue
2f1a1aea
FCE
1734 ac_builddir=.
1735
7fbd9d09
FCE
1736case "$ac_dir" in
1737.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1738*)
0710d850 1739 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 1740 # A ".." for each directory in $ac_dir_suffix.
0710d850 1741 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
1742 case $ac_top_builddir_sub in
1743 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1744 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1745 esac ;;
1746esac
1747ac_abs_top_builddir=$ac_pwd
1748ac_abs_builddir=$ac_pwd$ac_dir_suffix
1749# for backward compatibility:
1750ac_top_builddir=$ac_top_build_prefix
2f1a1aea
FCE
1751
1752case $srcdir in
7fbd9d09 1753 .) # We are building in place.
2f1a1aea 1754 ac_srcdir=.
7fbd9d09
FCE
1755 ac_top_srcdir=$ac_top_builddir_sub
1756 ac_abs_top_srcdir=$ac_pwd ;;
1757 [\\/]* | ?:[\\/]* ) # Absolute name.
2f1a1aea 1758 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
1759 ac_top_srcdir=$srcdir
1760 ac_abs_top_srcdir=$srcdir ;;
1761 *) # Relative name.
1762 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1763 ac_top_srcdir=$ac_top_build_prefix$srcdir
1764 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
818ba2bc 1765esac
7fbd9d09
FCE
1766ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1767
1768 cd "$ac_dir" || { ac_status=$?; continue; }
1769 # Check for guested configure.
1770 if test -f "$ac_srcdir/configure.gnu"; then
1771 echo &&
1772 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1773 elif test -f "$ac_srcdir/configure"; then
1774 echo &&
1775 $SHELL "$ac_srcdir/configure" --help=recursive
2f1a1aea 1776 else
0710d850 1777 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7fbd9d09
FCE
1778 fi || ac_status=$?
1779 cd "$ac_pwd" || { ac_status=$?; break; }
2f1a1aea
FCE
1780 done
1781fi
1782
7fbd9d09 1783test -n "$ac_init_help" && exit $ac_status
2f1a1aea
FCE
1784if $ac_init_version; then
1785 cat <<\_ACEOF
dd57c738 1786systemtap configure 4.1
8eef2738 1787generated by GNU Autoconf 2.69
2f1a1aea 1788
8eef2738 1789Copyright (C) 2012 Free Software Foundation, Inc.
2f1a1aea
FCE
1790This configure script is free software; the Free Software Foundation
1791gives unlimited permission to copy, distribute and modify it.
1792_ACEOF
7fbd9d09 1793 exit
2f1a1aea 1794fi
4b5627b1 1795
1ef0423a
FCE
1796## ------------------------ ##
1797## Autoconf initialization. ##
1798## ------------------------ ##
4b5627b1 1799
1ef0423a
FCE
1800# ac_fn_c_try_compile LINENO
1801# --------------------------
1802# Try to compile conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_c_try_compile ()
ec1a2239 1804{
1ef0423a
FCE
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext
1807 if { { ac_try="$ac_compile"
1808case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.$ac_objext; then :
1826 ac_retval=0
1827else
1828 $as_echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
4b5627b1 1830
1ef0423a
FCE
1831 ac_retval=1
1832fi
c3de29bd 1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a 1834 as_fn_set_status $ac_retval
ec1a2239 1835
1ef0423a 1836} # ac_fn_c_try_compile
ec1a2239 1837
1ef0423a
FCE
1838# ac_fn_c_try_cpp LINENO
1839# ----------------------
1840# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_c_try_cpp ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_cpp conftest.$ac_ext"
1845case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850$as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c3de29bd 1859 test $ac_status = 0; } > conftest.i && {
1ef0423a
FCE
1860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1862 }; then :
1863 ac_retval=0
1864else
1865 $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869fi
c3de29bd 1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a
FCE
1871 as_fn_set_status $ac_retval
1872
1873} # ac_fn_c_try_cpp
1874
1ef0423a
FCE
1875# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876# -------------------------------------------------------
1877# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878# the include files in INCLUDES and setting the cache variable VAR
1879# accordingly.
1880ac_fn_c_check_header_mongrel ()
1881{
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c3de29bd 1883 if eval \${$3+:} false; then :
1ef0423a
FCE
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885$as_echo_n "checking for $2... " >&6; }
c3de29bd 1886if eval \${$3+:} false; then :
1ef0423a
FCE
1887 $as_echo_n "(cached) " >&6
1888fi
1889eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891$as_echo "$ac_res" >&6; }
1892else
1893 # Is the header compilable?
1894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895$as_echo_n "checking $2 usability... " >&6; }
1896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898$4
1899#include <$2>
1900_ACEOF
1901if ac_fn_c_try_compile "$LINENO"; then :
1902 ac_header_compiler=yes
1903else
1904 ac_header_compiler=no
1905fi
1906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908$as_echo "$ac_header_compiler" >&6; }
1909
1910# Is the header present?
1911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912$as_echo_n "checking $2 presence... " >&6; }
1913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h. */
1915#include <$2>
1916_ACEOF
1917if ac_fn_c_try_cpp "$LINENO"; then :
1918 ac_header_preproc=yes
1919else
1920 ac_header_preproc=no
1921fi
c3de29bd 1922rm -f conftest.err conftest.i conftest.$ac_ext
1ef0423a
FCE
1923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924$as_echo "$ac_header_preproc" >&6; }
1925
1926# So? What about this header?
1927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928 yes:no: )
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 ;;
1934 no:yes:* )
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1938$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1942$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
5d4aa1f5 1945( $as_echo "## --------------------------------------- ##
306dd4f8 1946## Report this to systemtap@sourceware.org ##
5d4aa1f5 1947## --------------------------------------- ##"
1ef0423a
FCE
1948 ) | sed "s/^/$as_me: WARNING: /" >&2
1949 ;;
1950esac
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952$as_echo_n "checking for $2... " >&6; }
c3de29bd 1953if eval \${$3+:} false; then :
1ef0423a
FCE
1954 $as_echo_n "(cached) " >&6
1955else
1956 eval "$3=\$ac_header_compiler"
1957fi
1958eval ac_res=\$$3
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960$as_echo "$ac_res" >&6; }
1961fi
c3de29bd 1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a
FCE
1963
1964} # ac_fn_c_check_header_mongrel
1965
8f223b3e
FCE
1966# ac_fn_c_try_run LINENO
1967# ----------------------
1968# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969# that executables *can* be run.
1970ac_fn_c_try_run ()
1971{
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if { { ac_try="$ac_link"
1974case "(($ac_try" in
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1977esac
1978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979$as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_link") 2>&5
1981 ac_status=$?
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984 { { case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987esac
1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989$as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_try") 2>&5
1991 ac_status=$?
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; }; }; then :
1994 ac_retval=0
1995else
1996 $as_echo "$as_me: program exited with status $ac_status" >&5
1997 $as_echo "$as_me: failed program was:" >&5
1998sed 's/^/| /' conftest.$ac_ext >&5
1999
2000 ac_retval=$ac_status
2001fi
2002 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
c3de29bd 2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8f223b3e
FCE
2004 as_fn_set_status $ac_retval
2005
2006} # ac_fn_c_try_run
2007
1ef0423a
FCE
2008# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009# -------------------------------------------------------
2010# Tests whether HEADER exists and can be compiled using the include files in
2011# INCLUDES, setting the cache variable VAR accordingly.
2012ac_fn_c_check_header_compile ()
2013{
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016$as_echo_n "checking for $2... " >&6; }
c3de29bd 2017if eval \${$3+:} false; then :
1ef0423a
FCE
2018 $as_echo_n "(cached) " >&6
2019else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h. */
2022$4
2023#include <$2>
2024_ACEOF
2025if ac_fn_c_try_compile "$LINENO"; then :
2026 eval "$3=yes"
2027else
2028 eval "$3=no"
2029fi
2030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031fi
2032eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034$as_echo "$ac_res" >&6; }
c3de29bd 2035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a
FCE
2036
2037} # ac_fn_c_check_header_compile
2038
8f223b3e
FCE
2039# ac_fn_cxx_try_compile LINENO
2040# ----------------------------
2041# Try to compile conftest.$ac_ext, and return whether this succeeded.
2042ac_fn_cxx_try_compile ()
2043{
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 rm -f conftest.$ac_objext
2046 if { { ac_try="$ac_compile"
2047case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050esac
2051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052$as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_compile") 2>conftest.err
2054 ac_status=$?
2055 if test -s conftest.err; then
2056 grep -v '^ *+' conftest.err >conftest.er1
2057 cat conftest.er1 >&5
2058 mv -f conftest.er1 conftest.err
2059 fi
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } && {
2062 test -z "$ac_cxx_werror_flag" ||
2063 test ! -s conftest.err
2064 } && test -s conftest.$ac_objext; then :
2065 ac_retval=0
2066else
2067 $as_echo "$as_me: failed program was:" >&5
2068sed 's/^/| /' conftest.$ac_ext >&5
2069
2070 ac_retval=1
2071fi
c3de29bd 2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8f223b3e
FCE
2073 as_fn_set_status $ac_retval
2074
2075} # ac_fn_cxx_try_compile
2076
1ef0423a
FCE
2077# ac_fn_c_try_link LINENO
2078# -----------------------
2079# Try to link conftest.$ac_ext, and return whether this succeeded.
2080ac_fn_c_try_link ()
2081{
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 rm -f conftest.$ac_objext conftest$ac_exeext
2084 if { { ac_try="$ac_link"
2085case "(($ac_try" in
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2088esac
2089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090$as_echo "$ac_try_echo"; } >&5
2091 (eval "$ac_link") 2>conftest.err
2092 ac_status=$?
2093 if test -s conftest.err; then
2094 grep -v '^ *+' conftest.err >conftest.er1
2095 cat conftest.er1 >&5
2096 mv -f conftest.er1 conftest.err
2097 fi
2098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; } && {
2100 test -z "$ac_c_werror_flag" ||
2101 test ! -s conftest.err
2102 } && test -s conftest$ac_exeext && {
2103 test "$cross_compiling" = yes ||
8eef2738 2104 test -x conftest$ac_exeext
1ef0423a
FCE
2105 }; then :
2106 ac_retval=0
2107else
2108 $as_echo "$as_me: failed program was:" >&5
2109sed 's/^/| /' conftest.$ac_ext >&5
2110
2111 ac_retval=1
2112fi
2113 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2114 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2115 # interfere with the next link command; also delete a directory that is
2116 # left behind by Apple's compiler. We do this before executing the actions.
2117 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
c3de29bd 2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a
FCE
2119 as_fn_set_status $ac_retval
2120
2121} # ac_fn_c_try_link
2122
e04a4b41
JS
2123# ac_fn_c_check_func LINENO FUNC VAR
2124# ----------------------------------
2125# Tests whether FUNC exists, setting the cache variable VAR accordingly
2126ac_fn_c_check_func ()
2127{
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130$as_echo_n "checking for $2... " >&6; }
c3de29bd 2131if eval \${$3+:} false; then :
e04a4b41
JS
2132 $as_echo_n "(cached) " >&6
2133else
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h. */
2136/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2138#define $2 innocuous_$2
2139
2140/* System header to define __stub macros and hopefully few prototypes,
2141 which can conflict with char $2 (); below.
2142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2143 <limits.h> exists even on freestanding compilers. */
2144
2145#ifdef __STDC__
2146# include <limits.h>
2147#else
2148# include <assert.h>
2149#endif
2150
2151#undef $2
2152
2153/* Override any GCC internal prototype to avoid an error.
2154 Use char because int might match the return type of a GCC
2155 builtin and then its argument prototype would still apply. */
2156#ifdef __cplusplus
2157extern "C"
2158#endif
2159char $2 ();
2160/* The GNU C library defines this for functions which it implements
2161 to always fail with ENOSYS. Some functions are actually named
2162 something starting with __ and the normal name is an alias. */
2163#if defined __stub_$2 || defined __stub___$2
2164choke me
2165#endif
2166
2167int
2168main ()
2169{
2170return $2 ();
2171 ;
2172 return 0;
2173}
2174_ACEOF
2175if ac_fn_c_try_link "$LINENO"; then :
2176 eval "$3=yes"
2177else
2178 eval "$3=no"
2179fi
2180rm -f core conftest.err conftest.$ac_objext \
2181 conftest$ac_exeext conftest.$ac_ext
2182fi
2183eval ac_res=\$$3
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185$as_echo "$ac_res" >&6; }
c3de29bd 2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e04a4b41
JS
2187
2188} # ac_fn_c_check_func
2189
1ef0423a
FCE
2190# ac_fn_cxx_try_cpp LINENO
2191# ------------------------
2192# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2193ac_fn_cxx_try_cpp ()
2194{
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196 if { { ac_try="$ac_cpp conftest.$ac_ext"
2197case "(($ac_try" in
2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199 *) ac_try_echo=$ac_try;;
2200esac
2201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2202$as_echo "$ac_try_echo"; } >&5
2203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2204 ac_status=$?
2205 if test -s conftest.err; then
2206 grep -v '^ *+' conftest.err >conftest.er1
2207 cat conftest.er1 >&5
2208 mv -f conftest.er1 conftest.err
2209 fi
2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c3de29bd 2211 test $ac_status = 0; } > conftest.i && {
1ef0423a
FCE
2212 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2213 test ! -s conftest.err
2214 }; then :
2215 ac_retval=0
2216else
2217 $as_echo "$as_me: failed program was:" >&5
2218sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 ac_retval=1
2221fi
c3de29bd 2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a
FCE
2223 as_fn_set_status $ac_retval
2224
2225} # ac_fn_cxx_try_cpp
2226
2227# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2228# ---------------------------------------------------------
2229# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2230# the include files in INCLUDES and setting the cache variable VAR
2231# accordingly.
2232ac_fn_cxx_check_header_mongrel ()
2233{
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c3de29bd 2235 if eval \${$3+:} false; then :
1ef0423a
FCE
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237$as_echo_n "checking for $2... " >&6; }
c3de29bd 2238if eval \${$3+:} false; then :
1ef0423a
FCE
2239 $as_echo_n "(cached) " >&6
2240fi
2241eval ac_res=\$$3
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243$as_echo "$ac_res" >&6; }
2244else
2245 # Is the header compilable?
2246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2247$as_echo_n "checking $2 usability... " >&6; }
2248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249/* end confdefs.h. */
2250$4
2251#include <$2>
2252_ACEOF
2253if ac_fn_cxx_try_compile "$LINENO"; then :
2254 ac_header_compiler=yes
2255else
2256 ac_header_compiler=no
2257fi
2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2260$as_echo "$ac_header_compiler" >&6; }
2261
2262# Is the header present?
2263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2264$as_echo_n "checking $2 presence... " >&6; }
2265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h. */
2267#include <$2>
2268_ACEOF
2269if ac_fn_cxx_try_cpp "$LINENO"; then :
2270 ac_header_preproc=yes
2271else
2272 ac_header_preproc=no
2273fi
c3de29bd 2274rm -f conftest.err conftest.i conftest.$ac_ext
1ef0423a
FCE
2275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2276$as_echo "$ac_header_preproc" >&6; }
2277
2278# So? What about this header?
2279case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2280 yes:no: )
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2282$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2284$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2285 ;;
2286 no:yes:* )
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2288$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2290$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2292$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2294$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2296$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
5d4aa1f5 2297( $as_echo "## --------------------------------------- ##
306dd4f8 2298## Report this to systemtap@sourceware.org ##
5d4aa1f5 2299## --------------------------------------- ##"
1ef0423a
FCE
2300 ) | sed "s/^/$as_me: WARNING: /" >&2
2301 ;;
2302esac
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2304$as_echo_n "checking for $2... " >&6; }
c3de29bd 2305if eval \${$3+:} false; then :
1ef0423a
FCE
2306 $as_echo_n "(cached) " >&6
2307else
2308 eval "$3=\$ac_header_compiler"
2309fi
2310eval ac_res=\$$3
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312$as_echo "$ac_res" >&6; }
2313fi
c3de29bd 2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ef0423a
FCE
2315
2316} # ac_fn_cxx_check_header_mongrel
0820bd9a 2317
891810c2
FCE
2318# ac_fn_cxx_try_link LINENO
2319# -------------------------
2320# Try to link conftest.$ac_ext, and return whether this succeeded.
2321ac_fn_cxx_try_link ()
2322{
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 rm -f conftest.$ac_objext conftest$ac_exeext
2325 if { { ac_try="$ac_link"
2326case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329esac
2330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331$as_echo "$ac_try_echo"; } >&5
2332 (eval "$ac_link") 2>conftest.err
2333 ac_status=$?
2334 if test -s conftest.err; then
2335 grep -v '^ *+' conftest.err >conftest.er1
2336 cat conftest.er1 >&5
2337 mv -f conftest.er1 conftest.err
2338 fi
2339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 test $ac_status = 0; } && {
2341 test -z "$ac_cxx_werror_flag" ||
2342 test ! -s conftest.err
2343 } && test -s conftest$ac_exeext && {
2344 test "$cross_compiling" = yes ||
2345 test -x conftest$ac_exeext
2346 }; then :
2347 ac_retval=0
2348else
2349 $as_echo "$as_me: failed program was:" >&5
2350sed 's/^/| /' conftest.$ac_ext >&5
2351
2352 ac_retval=1
2353fi
2354 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2355 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2356 # interfere with the next link command; also delete a directory that is
2357 # left behind by Apple's compiler. We do this before executing the actions.
2358 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360 as_fn_set_status $ac_retval
2361
2362} # ac_fn_cxx_try_link
2363
0820bd9a
FL
2364# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2365# ---------------------------------------------
2366# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2367# accordingly.
2368ac_fn_c_check_decl ()
2369{
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 as_decl_name=`echo $2|sed 's/ *(.*//'`
2372 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2374$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2375if eval \${$3+:} false; then :
2376 $as_echo_n "(cached) " >&6
2377else
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379/* end confdefs.h. */
2380$4
2381int
2382main ()
2383{
2384#ifndef $as_decl_name
2385#ifdef __cplusplus
2386 (void) $as_decl_use;
2387#else
2388 (void) $as_decl_name;
2389#endif
2390#endif
2391
2392 ;
2393 return 0;
2394}
2395_ACEOF
2396if ac_fn_c_try_compile "$LINENO"; then :
2397 eval "$3=yes"
2398else
2399 eval "$3=no"
2400fi
2401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402fi
2403eval ac_res=\$$3
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405$as_echo "$ac_res" >&6; }
2406 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407
2408} # ac_fn_c_check_decl
1ef0423a
FCE
2409cat >config.log <<_ACEOF
2410This file contains any messages produced by compilers while
2411running configure, to aid debugging if configure makes a mistake.
2412
dd57c738 2413It was created by systemtap $as_me 4.1, which was
8eef2738 2414generated by GNU Autoconf 2.69. Invocation command line was
1ef0423a
FCE
2415
2416 $ $0 $@
2417
2418_ACEOF
2419exec 5>>config.log
2420{
2421cat <<_ASUNAME
2422## --------- ##
2423## Platform. ##
2424## --------- ##
2425
2426hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2427uname -m = `(uname -m) 2>/dev/null || echo unknown`
2428uname -r = `(uname -r) 2>/dev/null || echo unknown`
2429uname -s = `(uname -s) 2>/dev/null || echo unknown`
2430uname -v = `(uname -v) 2>/dev/null || echo unknown`
2431
2432/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2433/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2434
2435/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2436/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2437/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2438/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2439/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2440/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2441/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2442
2443_ASUNAME
2f1a1aea
FCE
2444
2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
1ef0423a
FCE
2450 $as_echo "PATH: $as_dir"
2451 done
7fbd9d09 2452IFS=$as_save_IFS
2f1a1aea
FCE
2453
2454} >&5
2455
2456cat >&5 <<_ACEOF
2457
2458
2459## ----------- ##
2460## Core tests. ##
2461## ----------- ##
2462
2463_ACEOF
2464
2465
2466# Keep a trace of the command line.
2467# Strip out --no-create and --no-recursion so they do not pile up.
2468# Strip out --silent because we don't want to record it for future runs.
2469# Also quote any args containing shell meta-characters.
2470# Make two passes to allow for proper duplicate-argument suppression.
2471ac_configure_args=
2472ac_configure_args0=
2473ac_configure_args1=
2f1a1aea
FCE
2474ac_must_keep_next=false
2475for ac_pass in 1 2
2476do
2477 for ac_arg
2478 do
2479 case $ac_arg in
2480 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2482 | -silent | --silent | --silen | --sile | --sil)
2483 continue ;;
7fbd9d09 2484 *\'*)
0710d850 2485 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2f1a1aea
FCE
2486 esac
2487 case $ac_pass in
1ef0423a 2488 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2f1a1aea 2489 2)
1ef0423a 2490 as_fn_append ac_configure_args1 " '$ac_arg'"
2f1a1aea
FCE
2491 if test $ac_must_keep_next = true; then
2492 ac_must_keep_next=false # Got value, back to normal.
2493 else
2494 case $ac_arg in
2495 *=* | --config-cache | -C | -disable-* | --disable-* \
2496 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2497 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2498 | -with-* | --with-* | -without-* | --without-* | --x)
2499 case "$ac_configure_args0 " in
2500 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2501 esac
2502 ;;
2503 -* ) ac_must_keep_next=true ;;
2504 esac
2505 fi
1ef0423a 2506 as_fn_append ac_configure_args " '$ac_arg'"
2f1a1aea
FCE
2507 ;;
2508 esac
2509 done
2510done
1ef0423a
FCE
2511{ ac_configure_args0=; unset ac_configure_args0;}
2512{ ac_configure_args1=; unset ac_configure_args1;}
2f1a1aea
FCE
2513
2514# When interrupted or exit'd, cleanup temporary files, and complete
2515# config.log. We remove comments because anyway the quotes in there
2516# would cause problems or look ugly.
7fbd9d09
FCE
2517# WARNING: Use '\'' to represent an apostrophe within the trap.
2518# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2f1a1aea
FCE
2519trap 'exit_status=$?
2520 # Save into config.log some information that might help in debugging.
2521 {
2522 echo
2523
5d4aa1f5 2524 $as_echo "## ---------------- ##
2f1a1aea 2525## Cache variables. ##
5d4aa1f5 2526## ---------------- ##"
2f1a1aea
FCE
2527 echo
2528 # The following way of writing the cache mishandles newlines in values,
7fbd9d09
FCE
2529(
2530 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2531 eval ac_val=\$$ac_var
2532 case $ac_val in #(
2533 *${as_nl}*)
2534 case $ac_var in #(
1ef0423a 2535 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
0710d850 2536$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7fbd9d09
FCE
2537 esac
2538 case $ac_var in #(
2539 _ | IFS | as_nl) ;; #(
0710d850 2540 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1ef0423a 2541 *) { eval $ac_var=; unset $ac_var;} ;;
7fbd9d09
FCE
2542 esac ;;
2543 esac
2544 done
2f1a1aea 2545 (set) 2>&1 |
7fbd9d09
FCE
2546 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2547 *${as_nl}ac_space=\ *)
2f1a1aea 2548 sed -n \
7fbd9d09
FCE
2549 "s/'\''/'\''\\\\'\'''\''/g;
2550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2551 ;; #(
2f1a1aea 2552 *)
7fbd9d09 2553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2f1a1aea 2554 ;;
7fbd9d09
FCE
2555 esac |
2556 sort
2557)
2f1a1aea
FCE
2558 echo
2559
5d4aa1f5 2560 $as_echo "## ----------------- ##
2f1a1aea 2561## Output variables. ##
5d4aa1f5 2562## ----------------- ##"
2f1a1aea
FCE
2563 echo
2564 for ac_var in $ac_subst_vars
2565 do
7fbd9d09
FCE
2566 eval ac_val=\$$ac_var
2567 case $ac_val in
0710d850 2568 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7fbd9d09 2569 esac
0710d850 2570 $as_echo "$ac_var='\''$ac_val'\''"
2f1a1aea
FCE
2571 done | sort
2572 echo
2573
2574 if test -n "$ac_subst_files"; then
5d4aa1f5 2575 $as_echo "## ------------------- ##
7fbd9d09 2576## File substitutions. ##
5d4aa1f5 2577## ------------------- ##"
2f1a1aea
FCE
2578 echo
2579 for ac_var in $ac_subst_files
2580 do
7fbd9d09
FCE
2581 eval ac_val=\$$ac_var
2582 case $ac_val in
0710d850 2583 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7fbd9d09 2584 esac
0710d850 2585 $as_echo "$ac_var='\''$ac_val'\''"
2f1a1aea
FCE
2586 done | sort
2587 echo
2588 fi
2589
2590 if test -s confdefs.h; then
5d4aa1f5 2591 $as_echo "## ----------- ##
2f1a1aea 2592## confdefs.h. ##
5d4aa1f5 2593## ----------- ##"
2f1a1aea 2594 echo
7fbd9d09 2595 cat confdefs.h
2f1a1aea
FCE
2596 echo
2597 fi
2598 test "$ac_signal" != 0 &&
0710d850
DS
2599 $as_echo "$as_me: caught signal $ac_signal"
2600 $as_echo "$as_me: exit $exit_status"
2f1a1aea 2601 } >&5
7fbd9d09
FCE
2602 rm -f core *.core core.conftest.* &&
2603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2f1a1aea 2604 exit $exit_status
7fbd9d09 2605' 0
2f1a1aea 2606for ac_signal in 1 2 13 15; do
1ef0423a 2607 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2f1a1aea
FCE
2608done
2609ac_signal=0
2610
2611# confdefs.h avoids OS command line length limits that DEFS can exceed.
7fbd9d09 2612rm -f -r conftest* confdefs.h
2f1a1aea 2613
1ef0423a
FCE
2614$as_echo "/* confdefs.h */" > confdefs.h
2615
2f1a1aea
FCE
2616# Predefined preprocessor variables.
2617
2618cat >>confdefs.h <<_ACEOF
2619#define PACKAGE_NAME "$PACKAGE_NAME"
2620_ACEOF
2621
2f1a1aea
FCE
2622cat >>confdefs.h <<_ACEOF
2623#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2624_ACEOF
2625
2f1a1aea
FCE
2626cat >>confdefs.h <<_ACEOF
2627#define PACKAGE_VERSION "$PACKAGE_VERSION"
2628_ACEOF
2629
2f1a1aea
FCE
2630cat >>confdefs.h <<_ACEOF
2631#define PACKAGE_STRING "$PACKAGE_STRING"
2632_ACEOF
2633
ec1a2239 2634cat >>confdefs.h <<_ACEOF
5e5aee9f 2635#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
ec1a2239
LB
2636_ACEOF
2637
1ef0423a
FCE
2638cat >>confdefs.h <<_ACEOF
2639#define PACKAGE_URL "$PACKAGE_URL"
2640_ACEOF
2641
2f1a1aea
FCE
2642
2643# Let the site file select an alternate cache file if it wants to.
0710d850
DS
2644# Prefer an explicitly selected file to automatically selected ones.
2645ac_site_file1=NONE
2646ac_site_file2=NONE
7fbd9d09 2647if test -n "$CONFIG_SITE"; then
5d4aa1f5
FCE
2648 # We do not want a PATH search for config.site.
2649 case $CONFIG_SITE in #((
2650 -*) ac_site_file1=./$CONFIG_SITE;;
2651 */*) ac_site_file1=$CONFIG_SITE;;
2652 *) ac_site_file1=./$CONFIG_SITE;;
2653 esac
7fbd9d09 2654elif test "x$prefix" != xNONE; then
0710d850
DS
2655 ac_site_file1=$prefix/share/config.site
2656 ac_site_file2=$prefix/etc/config.site
7fbd9d09 2657else
0710d850
DS
2658 ac_site_file1=$ac_default_prefix/share/config.site
2659 ac_site_file2=$ac_default_prefix/etc/config.site
818ba2bc 2660fi
0710d850 2661for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7fbd9d09 2662do
0710d850 2663 test "x$ac_site_file" = xNONE && continue
1ef0423a
FCE
2664 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
0710d850 2666$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2f1a1aea 2667 sed 's/^/| /' "$ac_site_file" >&5
5d4aa1f5
FCE
2668 . "$ac_site_file" \
2669 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671as_fn_error $? "failed to load site script $ac_site_file
2672See \`config.log' for more details" "$LINENO" 5; }
2f1a1aea
FCE
2673 fi
2674done
2675
2676if test -r "$cache_file"; then
1ef0423a
FCE
2677 # Some versions of bash will fail to source /dev/null (special files
2678 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2679 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
0710d850 2681$as_echo "$as_me: loading cache $cache_file" >&6;}
2f1a1aea 2682 case $cache_file in
7fbd9d09
FCE
2683 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2684 *) . "./$cache_file";;
2f1a1aea
FCE
2685 esac
2686 fi
2687else
1ef0423a 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
0710d850 2689$as_echo "$as_me: creating cache $cache_file" >&6;}
2f1a1aea
FCE
2690 >$cache_file
2691fi
2692
8f223b3e 2693gt_needs="$gt_needs "
2f1a1aea
FCE
2694# Check that the precious variables saved in the cache have kept the same
2695# value.
2696ac_cache_corrupted=false
7fbd9d09 2697for ac_var in $ac_precious_vars; do
2f1a1aea
FCE
2698 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2699 eval ac_new_set=\$ac_env_${ac_var}_set
7fbd9d09
FCE
2700 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2701 eval ac_new_val=\$ac_env_${ac_var}_value
2f1a1aea
FCE
2702 case $ac_old_set,$ac_new_set in
2703 set,)
1ef0423a 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
0710d850 2705$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2f1a1aea
FCE
2706 ac_cache_corrupted=: ;;
2707 ,set)
1ef0423a 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
0710d850 2709$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2f1a1aea
FCE
2710 ac_cache_corrupted=: ;;
2711 ,);;
2712 *)
2713 if test "x$ac_old_val" != "x$ac_new_val"; then
0710d850
DS
2714 # differences in whitespace do not lead to failure.
2715 ac_old_val_w=`echo x $ac_old_val`
2716 ac_new_val_w=`echo x $ac_new_val`
2717 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1ef0423a 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
0710d850
DS
2719$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2720 ac_cache_corrupted=:
2721 else
1ef0423a 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
0710d850
DS
2723$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2724 eval $ac_var=\$ac_old_val
2725 fi
1ef0423a 2726 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
0710d850 2727$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1ef0423a 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
0710d850 2729$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2f1a1aea
FCE
2730 fi;;
2731 esac
2732 # Pass precious variables to config.status.
2733 if test "$ac_new_set" = set; then
2734 case $ac_new_val in
0710d850 2735 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4a3c19da
EM
2736 *) ac_arg=$ac_var=$ac_new_val ;;
2737 esac
2738 case " $ac_configure_args " in
2739 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1ef0423a 2740 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4a3c19da
EM
2741 esac
2742 fi
2743done
2744if $ac_cache_corrupted; then
1ef0423a 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 2746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1ef0423a 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
0710d850 2748$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
5d4aa1f5 2749 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
4a3c19da 2750fi
1ef0423a
FCE
2751## -------------------- ##
2752## Main body of script. ##
2753## -------------------- ##
2f1a1aea 2754
7fbd9d09
FCE
2755ac_ext=c
2756ac_cpp='$CPP $CPPFLAGS'
2757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_c_compiler_gnu
2f1a1aea
FCE
2760
2761
2762
2f1a1aea 2763ac_aux_dir=
412e1bf7 2764for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5d4aa1f5
FCE
2765 if test -f "$ac_dir/install-sh"; then
2766 ac_aux_dir=$ac_dir
2767 ac_install_sh="$ac_aux_dir/install-sh -c"
2768 break
2769 elif test -f "$ac_dir/install.sh"; then
2770 ac_aux_dir=$ac_dir
2771 ac_install_sh="$ac_aux_dir/install.sh -c"
2772 break
2773 elif test -f "$ac_dir/shtool"; then
2774 ac_aux_dir=$ac_dir
2775 ac_install_sh="$ac_aux_dir/shtool install -c"
2776 break
2777 fi
2f1a1aea
FCE
2778done
2779if test -z "$ac_aux_dir"; then
5d4aa1f5 2780 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2f1a1aea 2781fi
7fbd9d09
FCE
2782
2783# These three variables are undocumented and unsupported,
2784# and are intended to be withdrawn in a future Autoconf release.
2785# They can cause serious problems if a builder's source tree is in a directory
2786# whose full name contains unusual characters.
2787ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2788ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2789ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2790
2f1a1aea 2791
2689a171
SM
2792# Make sure we can run config.sub.
2793$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2795
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2797$as_echo_n "checking build system type... " >&6; }
2798if ${ac_cv_build+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800else
2801 ac_build_alias=$build_alias
2802test "x$ac_build_alias" = x &&
2803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2804test "x$ac_build_alias" = x &&
2805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2806ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2808
2809fi
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2811$as_echo "$ac_cv_build" >&6; }
2812case $ac_cv_build in
2813*-*-*) ;;
2814*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2815esac
2816build=$ac_cv_build
2817ac_save_IFS=$IFS; IFS='-'
2818set x $ac_cv_build
2819shift
2820build_cpu=$1
2821build_vendor=$2
2822shift; shift
2823# Remember, the first character of IFS is used to create $*,
2824# except with old shells:
2825build_os=$*
2826IFS=$ac_save_IFS
2827case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2828
2829
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2831$as_echo_n "checking host system type... " >&6; }
2832if ${ac_cv_host+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834else
2835 if test "x$host_alias" = x; then
2836 ac_cv_host=$ac_cv_build
2837else
2838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2840fi
2841
2842fi
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2844$as_echo "$ac_cv_host" >&6; }
2845case $ac_cv_host in
2846*-*-*) ;;
2847*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2848esac
2849host=$ac_cv_host
2850ac_save_IFS=$IFS; IFS='-'
2851set x $ac_cv_host
2852shift
2853host_cpu=$1
2854host_vendor=$2
2855shift; shift
2856# Remember, the first character of IFS is used to create $*,
2857# except with old shells:
2858host_os=$*
2859IFS=$ac_save_IFS
2860case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2861
2862
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2864$as_echo_n "checking target system type... " >&6; }
2865if ${ac_cv_target+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867else
2868 if test "x$target_alias" = x; then
2869 ac_cv_target=$ac_cv_host
2870else
2871 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2872 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2873fi
2874
2875fi
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2877$as_echo "$ac_cv_target" >&6; }
2878case $ac_cv_target in
2879*-*-*) ;;
2880*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2881esac
2882target=$ac_cv_target
2883ac_save_IFS=$IFS; IFS='-'
2884set x $ac_cv_target
2885shift
2886target_cpu=$1
2887target_vendor=$2
2888shift; shift
2889# Remember, the first character of IFS is used to create $*,
2890# except with old shells:
2891target_os=$*
2892IFS=$ac_save_IFS
2893case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2894
2895
2896# The aliases save the names the user supplied, while $host etc.
2897# will get canonicalized.
2898test -n "$target_alias" &&
2899 test "$program_prefix$program_suffix$program_transform_name" = \
2900 NONENONEs,x,x, &&
2901 program_prefix=${target_alias}-
2902
2903
891810c2 2904am__api_version='1.16'
2689a171 2905
2f1a1aea
FCE
2906# Find a good install program. We prefer a C program (faster),
2907# so one script is as good as another. But avoid the broken or
2908# incompatible versions:
2909# SysV /etc/install, /usr/sbin/install
2910# SunOS /usr/etc/install
2911# IRIX /sbin/install
2912# AIX /bin/install
2913# AmigaOS /C/install, which installs bootblocks on floppy discs
2914# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2915# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2916# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2917# OS/2's system install, which has a completely different semantic
2918# ./install, which can be erroneously created by make from ./install.sh.
0710d850 2919# Reject install programs that cannot install multiple files.
1ef0423a 2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
0710d850 2921$as_echo_n "checking for a BSD-compatible install... " >&6; }
2f1a1aea 2922if test -z "$INSTALL"; then
c3de29bd 2923if ${ac_cv_path_install+:} false; then :
0710d850 2924 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
2925else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
1ef0423a
FCE
2931 # Account for people who put trailing slashes in PATH elements.
2932case $as_dir/ in #((
2933 ./ | .// | /[cC]/* | \
2f1a1aea 2934 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1ef0423a 2935 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2f1a1aea
FCE
2936 /usr/ucb/* ) ;;
2937 *)
2938 # OSF1 and SCO ODT 3.0 have their own names for install.
2939 # Don't use installbsd from OSF since it installs stuff as root
2940 # by default.
2941 for ac_prog in ginstall scoinst install; do
2942 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 2943 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2f1a1aea
FCE
2944 if test $ac_prog = install &&
2945 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2946 # AIX install. It has an incompatible calling convention.
2947 :
2948 elif test $ac_prog = install &&
2949 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2950 # program-specific install script used by HP pwplus--don't use.
2951 :
2952 else
0710d850
DS
2953 rm -rf conftest.one conftest.two conftest.dir
2954 echo one > conftest.one
2955 echo two > conftest.two
2956 mkdir conftest.dir
2957 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2958 test -s conftest.one && test -s conftest.two &&
2959 test -s conftest.dir/conftest.one &&
2960 test -s conftest.dir/conftest.two
2961 then
2962 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2963 break 3
2964 fi
2f1a1aea
FCE
2965 fi
2966 fi
2967 done
2968 done
2969 ;;
2970esac
0710d850 2971
1ef0423a 2972 done
7fbd9d09 2973IFS=$as_save_IFS
2f1a1aea 2974
0710d850 2975rm -rf conftest.one conftest.two conftest.dir
2f1a1aea
FCE
2976
2977fi
2978 if test "${ac_cv_path_install+set}" = set; then
2979 INSTALL=$ac_cv_path_install
2980 else
7fbd9d09
FCE
2981 # As a last resort, use the slow shell script. Don't cache a
2982 # value for INSTALL within a source directory, because that will
2f1a1aea 2983 # break other packages using the cache if that directory is
7fbd9d09 2984 # removed, or if the value is a relative name.
2f1a1aea
FCE
2985 INSTALL=$ac_install_sh
2986 fi
2987fi
1ef0423a 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
0710d850 2989$as_echo "$INSTALL" >&6; }
2f1a1aea
FCE
2990
2991# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2992# It thinks the first close brace ends the variable substitution.
2993test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2994
2995test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2996
2997test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2998
1ef0423a 2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
0710d850 3000$as_echo_n "checking whether build environment is sane... " >&6; }
0710d850
DS
3001# Reject unsafe characters in $srcdir or the absolute working directory
3002# name. Accept space and tab only in the latter.
3003am_lf='
3004'
3005case `pwd` in
3006 *[\\\"\#\$\&\'\`$am_lf]*)
5d4aa1f5 3007 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
0710d850
DS
3008esac
3009case $srcdir in
3010 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
8eef2738 3011 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
0710d850
DS
3012esac
3013
8eef2738 3014# Do 'set' in a subshell so we don't clobber the current shell's
2f1a1aea
FCE
3015# arguments. Must try -L first in case configure is actually a
3016# symlink; some systems play weird games with the mod time of symlinks
3017# (eg FreeBSD returns the mod time of the symlink's containing
3018# directory).
3019if (
8eef2738
LB
3020 am_has_slept=no
3021 for am_try in 1 2; do
3022 echo "timestamp, slept: $am_has_slept" > conftest.file
3023 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3024 if test "$*" = "X"; then
3025 # -L didn't work.
3026 set X `ls -t "$srcdir/configure" conftest.file`
3027 fi
3028 if test "$*" != "X $srcdir/configure conftest.file" \
3029 && test "$*" != "X conftest.file $srcdir/configure"; then
3030
3031 # If neither matched, then we have a broken ls. This can happen
3032 # if, for instance, CONFIG_SHELL is bash and it inherits a
3033 # broken ls alias from the environment. This has actually
3034 # happened. Such a system could not be considered "sane".
3035 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3036 alias in your environment" "$LINENO" 5
3037 fi
3038 if test "$2" = conftest.file || test $am_try -eq 2; then
3039 break
3040 fi
3041 # Just in case.
3042 sleep 1
3043 am_has_slept=yes
3044 done
2f1a1aea
FCE
3045 test "$2" = conftest.file
3046 )
3047then
3048 # Ok.
3049 :
3050else
5d4aa1f5 3051 as_fn_error $? "newly created file is older than distributed files!
1ef0423a 3052Check your system clock" "$LINENO" 5
2f1a1aea 3053fi
1ef0423a 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0710d850 3055$as_echo "yes" >&6; }
8eef2738
LB
3056# If we didn't sleep, we still need to ensure time stamps of config.status and
3057# generated files are strictly newer.
3058am_sleep_pid=
3059if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3060 ( sleep 1 ) &
3061 am_sleep_pid=$!
3062fi
3063
3064rm -f conftest.file
3065
2f1a1aea 3066test "$program_prefix" != NONE &&
7fbd9d09 3067 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2f1a1aea
FCE
3068# Use a double $ so make ignores it.
3069test "$program_suffix" != NONE &&
7fbd9d09 3070 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
0710d850 3071# Double any \ or $.
2f1a1aea 3072# By default was `s,x,x', remove it if useless.
0710d850
DS
3073ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3074program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2f1a1aea 3075
7012fdd5
FCE
3076# Expand $ac_aux_dir to an absolute path.
3077am_aux_dir=`cd "$ac_aux_dir" && pwd`
2f1a1aea 3078
0710d850
DS
3079if test x"${MISSING+set}" != xset; then
3080 case $am_aux_dir in
3081 *\ * | *\ *)
3082 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3083 *)
3084 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3085 esac
3086fi
2f1a1aea 3087# Use eval to expand $SHELL
d9e6d90b
WC
3088if eval "$MISSING --is-lightweight"; then
3089 am_missing_run="$MISSING "
2f1a1aea
FCE
3090else
3091 am_missing_run=
8eef2738
LB
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3093$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
0710d850
DS
3094fi
3095
7012fdd5 3096if test x"${install_sh+set}" != xset; then
0710d850
DS
3097 case $am_aux_dir in
3098 *\ * | *\ *)
3099 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3100 *)
3101 install_sh="\${SHELL} $am_aux_dir/install-sh"
3102 esac
8d9d8fe1
DB
3103fi
3104
8eef2738
LB
3105# Installed binaries are usually stripped using 'strip' when the user
3106# run "make install-strip". However 'strip' might not be the right
0710d850 3107# tool to use in cross-compilation environments, therefore Automake
8eef2738 3108# will honor the 'STRIP' environment variable to overrule this program.
0710d850
DS
3109if test "$cross_compiling" != no; then
3110 if test -n "$ac_tool_prefix"; then
3111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3112set dummy ${ac_tool_prefix}strip; ac_word=$2
1ef0423a 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3114$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3115if ${ac_cv_prog_STRIP+:} false; then :
0710d850
DS
3116 $as_echo_n "(cached) " >&6
3117else
3118 if test -n "$STRIP"; then
3119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3120else
3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
1ef0423a 3126 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0710d850 3128 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1ef0423a 3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0710d850
DS
3130 break 2
3131 fi
3132done
1ef0423a 3133 done
0710d850
DS
3134IFS=$as_save_IFS
3135
3136fi
3137fi
3138STRIP=$ac_cv_prog_STRIP
3139if test -n "$STRIP"; then
1ef0423a 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
0710d850
DS
3141$as_echo "$STRIP" >&6; }
3142else
1ef0423a 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850
DS
3144$as_echo "no" >&6; }
3145fi
3146
3147
3148fi
3149if test -z "$ac_cv_prog_STRIP"; then
3150 ac_ct_STRIP=$STRIP
3151 # Extract the first word of "strip", so it can be a program name with args.
3152set dummy strip; ac_word=$2
1ef0423a 3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3154$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3155if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
0710d850
DS
3156 $as_echo_n "(cached) " >&6
3157else
3158 if test -n "$ac_ct_STRIP"; then
3159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3160else
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
1ef0423a 3166 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 3167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0710d850 3168 ac_cv_prog_ac_ct_STRIP="strip"
1ef0423a 3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0710d850
DS
3170 break 2
3171 fi
3172done
1ef0423a 3173 done
0710d850
DS
3174IFS=$as_save_IFS
3175
3176fi
3177fi
3178ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3179if test -n "$ac_ct_STRIP"; then
1ef0423a 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
0710d850
DS
3181$as_echo "$ac_ct_STRIP" >&6; }
3182else
1ef0423a 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850
DS
3184$as_echo "no" >&6; }
3185fi
3186
3187 if test "x$ac_ct_STRIP" = x; then
3188 STRIP=":"
3189 else
3190 case $cross_compiling:$ac_tool_warned in
3191yes:)
1ef0423a 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850
DS
3193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3194ac_tool_warned=yes ;;
3195esac
3196 STRIP=$ac_ct_STRIP
3197 fi
3198else
3199 STRIP="$ac_cv_prog_STRIP"
3200fi
3201
3202fi
3203INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3204
1ef0423a 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
0710d850 3206$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7fbd9d09 3207if test -z "$MKDIR_P"; then
c3de29bd 3208 if ${ac_cv_path_mkdir+:} false; then :
0710d850 3209 $as_echo_n "(cached) " >&6
7fbd9d09
FCE
3210else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3213do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
1ef0423a 3216 for ac_prog in mkdir gmkdir; do
7fbd9d09 3217 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 3218 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
7fbd9d09
FCE
3219 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3220 'mkdir (GNU coreutils) '* | \
3221 'mkdir (coreutils) '* | \
3222 'mkdir (fileutils) '4.1*)
3223 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3224 break 3;;
3225 esac
3226 done
3227 done
1ef0423a 3228 done
7fbd9d09
FCE
3229IFS=$as_save_IFS
3230
3231fi
3232
1ef0423a 3233 test -d ./--version && rmdir ./--version
7fbd9d09
FCE
3234 if test "${ac_cv_path_mkdir+set}" = set; then
3235 MKDIR_P="$ac_cv_path_mkdir -p"
2f1a1aea 3236 else
7fbd9d09
FCE
3237 # As a last resort, use the slow shell script. Don't cache a
3238 # value for MKDIR_P within a source directory, because that will
3239 # break other packages using the cache if that directory is
3240 # removed, or if the value is a relative name.
7fbd9d09 3241 MKDIR_P="$ac_install_sh -d"
2f1a1aea
FCE
3242 fi
3243fi
1ef0423a 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
0710d850 3245$as_echo "$MKDIR_P" >&6; }
7fbd9d09 3246
2f1a1aea
FCE
3247for ac_prog in gawk mawk nawk awk
3248do
3249 # Extract the first word of "$ac_prog", so it can be a program name with args.
3250set dummy $ac_prog; ac_word=$2
1ef0423a 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3252$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3253if ${ac_cv_prog_AWK+:} false; then :
0710d850 3254 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3255else
3256 if test -n "$AWK"; then
3257 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3258else
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
1ef0423a 3264 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 3265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2f1a1aea 3266 ac_cv_prog_AWK="$ac_prog"
1ef0423a 3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3268 break 2
3269 fi
3270done
1ef0423a 3271 done
7fbd9d09 3272IFS=$as_save_IFS
2f1a1aea
FCE
3273
3274fi
3275fi
3276AWK=$ac_cv_prog_AWK
3277if test -n "$AWK"; then
1ef0423a 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
0710d850 3279$as_echo "$AWK" >&6; }
2f1a1aea 3280else
1ef0423a 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3282$as_echo "no" >&6; }
2f1a1aea
FCE
3283fi
3284
7fbd9d09 3285
2f1a1aea
FCE
3286 test -n "$AWK" && break
3287done
3288
1ef0423a 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
0710d850
DS
3290$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3291set x ${MAKE-make}
3292ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
c3de29bd 3293if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
0710d850 3294 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3295else
3296 cat >conftest.make <<\_ACEOF
412e1bf7
FCE
3297SHELL = /bin/sh
3298all:
3299 @echo '@@@%%%=$(MAKE)=@@@%%%'
3300_ACEOF
5d4aa1f5 3301# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
412e1bf7
FCE
3302case `${MAKE-make} -f conftest.make 2>/dev/null` in
3303 *@@@%%%=?*=@@@%%%*)
3304 eval ac_cv_prog_make_${ac_make}_set=yes;;
3305 *)
3306 eval ac_cv_prog_make_${ac_make}_set=no;;
3307esac
3308rm -f conftest.make
4a3c19da 3309fi
412e1bf7 3310if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1ef0423a 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0710d850 3312$as_echo "yes" >&6; }
412e1bf7 3313 SET_MAKE=
4a3c19da 3314else
1ef0423a 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3316$as_echo "no" >&6; }
412e1bf7 3317 SET_MAKE="MAKE=${MAKE-make}"
2f1a1aea
FCE
3318fi
3319
412e1bf7
FCE
3320rm -rf .tst 2>/dev/null
3321mkdir .tst 2>/dev/null
3322if test -d .tst; then
3323 am__leading_dot=.
4a3c19da 3324else
412e1bf7 3325 am__leading_dot=_
2f1a1aea 3326fi
412e1bf7 3327rmdir .tst 2>/dev/null
2f1a1aea 3328
d9e6d90b
WC
3329# Check whether --enable-silent-rules was given.
3330if test "${enable_silent_rules+set}" = set; then :
3331 enableval=$enable_silent_rules;
3332fi
3333
3334case $enable_silent_rules in # (((
3335 yes) AM_DEFAULT_VERBOSITY=0;;
3336 no) AM_DEFAULT_VERBOSITY=1;;
3337 *) AM_DEFAULT_VERBOSITY=1;;
3338esac
3339am_make=${MAKE-make}
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3341$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3342if ${am_cv_make_support_nested_variables+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344else
3345 if $as_echo 'TRUE=$(BAR$(V))
3346BAR0=false
3347BAR1=true
3348V=1
3349am__doit:
3350 @$(TRUE)
3351.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3352 am_cv_make_support_nested_variables=yes
3353else
3354 am_cv_make_support_nested_variables=no
3355fi
3356fi
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3358$as_echo "$am_cv_make_support_nested_variables" >&6; }
3359if test $am_cv_make_support_nested_variables = yes; then
3360 AM_V='$(V)'
3361 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3362else
3363 AM_V=$AM_DEFAULT_VERBOSITY
3364 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3365fi
3366AM_BACKSLASH='\'
3367
412e1bf7
FCE
3368if test "`cd $srcdir && pwd`" != "`pwd`"; then
3369 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3370 # is not polluted with repeated "-I."
3371 am__isrc=' -I$(srcdir)'
3372 # test to see if srcdir already configured
3373 if test -f $srcdir/config.status; then
5d4aa1f5 3374 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
412e1bf7 3375 fi
4a3c19da 3376fi
412e1bf7
FCE
3377
3378# test whether we have cygpath
3379if test -z "$CYGPATH_W"; then
3380 if (cygpath --version) >/dev/null 2>/dev/null; then
3381 CYGPATH_W='cygpath -w'
3382 else
3383 CYGPATH_W=echo
3384 fi
3385fi
3386
3387
3388# Define the identity of the package.
3389 PACKAGE='systemtap'
dd57c738 3390 VERSION='4.1'
412e1bf7
FCE
3391
3392
3393cat >>confdefs.h <<_ACEOF
3394#define PACKAGE "$PACKAGE"
3395_ACEOF
3396
3397
3398cat >>confdefs.h <<_ACEOF
3399#define VERSION "$VERSION"
3400_ACEOF
3401
3402# Some tools Automake needs.
3403
3404ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3405
3406
3407AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3408
3409
0710d850 3410AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
31f9baea 3411
0710d850
DS
3412
3413AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3414
3415
3416MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2f1a1aea 3417
8eef2738
LB
3418# For better backward compatibility. To be removed once Automake 1.9.x
3419# dies out for good. For more background, see:
891810c2
FCE
3420# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3421# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
8eef2738
LB
3422mkdir_p='$(MKDIR_P)'
3423
7012fdd5
FCE
3424# We need awk for the "check" target (and possibly the TAP driver). The
3425# system "awk" is bad on some platforms.
c66be968
JS
3426# Always define AMTAR for backward compatibility. Yes, it's still used
3427# in the wild :-( We should find a proper way to deprecate it ...
3428AMTAR='$${TAR-tar}'
2f1a1aea 3429
d9e6d90b
WC
3430
3431# We'll loop over all known methods to create a tar archive until one works.
3432_am_tools='gnutar pax cpio none'
3433
c66be968 3434am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2f1a1aea
FCE
3435
3436
3437
3438
3439
0710d850 3440
46c282e4
FCE
3441# POSIX will say in a future version that running "rm -f" with no argument
3442# is OK; and we want to be able to make that assumption in our Makefile
3443# recipes. So use an aggressive probe to check that the usage we want is
3444# actually supported "in the wild" to an acceptable degree.
3445# See automake bug#10828.
3446# To make any issue more visible, cause the running configure to be aborted
3447# by default if the 'rm' program in use doesn't match our expectations; the
3448# user can still override this though.
3449if rm -f && rm -fr && rm -rf; then : OK; else
3450 cat >&2 <<'END'
3451Oops!
3452
3453Your 'rm' program seems unable to run without file operands specified
3454on the command line, even when the '-f' option is present. This is contrary
3455to the behaviour of most rm programs out there, and not conforming with
3456the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3457
3458Please tell bug-automake@gnu.org about your system, including the value
3459of your $PATH and any error possibly output before this message. This
3460can help us improve future automake versions.
3461
3462END
3463 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3464 echo 'Configuration will proceed anyway, since you have set the' >&2
3465 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3466 echo >&2
3467 else
3468 cat >&2 <<'END'
3469Aborting the configuration process, to ensure you take notice of the issue.
3470
3471You can download and install GNU coreutils to get an 'rm' implementation
891810c2 3472that behaves properly: <https://www.gnu.org/software/coreutils/>.
46c282e4
FCE
3473
3474If you want to complete the configuration process using your problematic
3475'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3476to "yes", and re-run configure.
3477
3478END
3479 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3480 fi
3481fi
d9e6d90b 3482
7012fdd5 3483
1ef0423a 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
0710d850 3485$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7fbd9d09 3486 # Check whether --enable-maintainer-mode was given.
1ef0423a 3487if test "${enable_maintainer_mode+set}" = set; then :
7fbd9d09 3488 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2f1a1aea
FCE
3489else
3490 USE_MAINTAINER_MODE=no
7fbd9d09 3491fi
2f1a1aea 3492
1ef0423a 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
0710d850 3494$as_echo "$USE_MAINTAINER_MODE" >&6; }
7fbd9d09 3495 if test $USE_MAINTAINER_MODE = yes; then
2f1a1aea
FCE
3496 MAINTAINER_MODE_TRUE=
3497 MAINTAINER_MODE_FALSE='#'
3498else
3499 MAINTAINER_MODE_TRUE='#'
3500 MAINTAINER_MODE_FALSE=
3501fi
3502
3503 MAINT=$MAINTAINER_MODE_TRUE
3504
3505
3506
0710d850 3507# Check whether --enable-silent-rules was given.
1ef0423a 3508if test "${enable_silent_rules+set}" = set; then :
0710d850
DS
3509 enableval=$enable_silent_rules;
3510fi
3511
8eef2738
LB
3512case $enable_silent_rules in # (((
3513 yes) AM_DEFAULT_VERBOSITY=0;;
3514 no) AM_DEFAULT_VERBOSITY=1;;
3515 *) AM_DEFAULT_VERBOSITY=0;;
0710d850 3516esac
c66be968
JS
3517am_make=${MAKE-make}
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3519$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3520if ${am_cv_make_support_nested_variables+:} false; then :
3521 $as_echo_n "(cached) " >&6
3522else
3523 if $as_echo 'TRUE=$(BAR$(V))
3524BAR0=false
3525BAR1=true
3526V=1
3527am__doit:
3528 @$(TRUE)
3529.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3530 am_cv_make_support_nested_variables=yes
3531else
3532 am_cv_make_support_nested_variables=no
3533fi
3534fi
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3536$as_echo "$am_cv_make_support_nested_variables" >&6; }
3537if test $am_cv_make_support_nested_variables = yes; then
3538 AM_V='$(V)'
3539 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3540else
3541 AM_V=$AM_DEFAULT_VERBOSITY
3542 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3543fi
0710d850 3544AM_BACKSLASH='\'
618a8a63
JS
3545
3546
8f223b3e
FCE
3547DEPDIR="${am__leading_dot}deps"
3548
3549ac_config_commands="$ac_config_commands depfiles"
3550
891810c2
FCE
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3552$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3553cat > confinc.mk << 'END'
8f223b3e 3554am__doit:
891810c2 3555 @echo this is the am__doit target >confinc.out
8f223b3e
FCE
3556.PHONY: am__doit
3557END
8f223b3e
FCE
3558am__include="#"
3559am__quote=
891810c2
FCE
3560# BSD make does it like this.
3561echo '.include "confinc.mk" # ignored' > confmf.BSD
3562# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3563echo 'include confinc.mk # ignored' > confmf.GNU
3564_am_result=no
3565for s in GNU BSD; do
3566 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3567 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }
3571 case $?:`cat confinc.out 2>/dev/null` in #(
3572 '0:this is the am__doit target') :
3573 case $s in #(
3574 BSD) :
3575 am__include='.include' am__quote='"' ;; #(
3576 *) :
3577 am__include='include' am__quote='' ;;
3578esac ;; #(
3579 *) :
8f223b3e 3580 ;;
891810c2
FCE
3581esac
3582 if test "$am__include" != "#"; then
3583 _am_result="yes ($s style)"
3584 break
3585 fi
3586done
3587rm -f confinc.* confmf.*
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3589$as_echo "${_am_result}" >&6; }
8f223b3e
FCE
3590
3591# Check whether --enable-dependency-tracking was given.
3592if test "${enable_dependency_tracking+set}" = set; then :
3593 enableval=$enable_dependency_tracking;
3594fi
3595
3596if test "x$enable_dependency_tracking" != xno; then
3597 am_depcomp="$ac_aux_dir/depcomp"
3598 AMDEPBACKSLASH='\'
c66be968 3599 am__nodep='_no'
8f223b3e
FCE
3600fi
3601 if test "x$enable_dependency_tracking" != xno; then
3602 AMDEP_TRUE=
3603 AMDEP_FALSE='#'
2f1a1aea 3604else
8f223b3e
FCE
3605 AMDEP_TRUE='#'
3606 AMDEP_FALSE=
2f1a1aea
FCE
3607fi
3608
8f223b3e 3609
2f1a1aea
FCE
3610ac_ext=c
3611ac_cpp='$CPP $CPPFLAGS'
3612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615if test -n "$ac_tool_prefix"; then
3616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3617set dummy ${ac_tool_prefix}gcc; ac_word=$2
1ef0423a 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3619$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3620if ${ac_cv_prog_CC+:} false; then :
0710d850 3621 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3622else
3623 if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3625else
3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH
3628do
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
1ef0423a 3631 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 3632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2f1a1aea 3633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1ef0423a 3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3635 break 2
3636 fi
3637done
1ef0423a 3638 done
7fbd9d09 3639IFS=$as_save_IFS
2f1a1aea
FCE
3640
3641fi
3642fi
3643CC=$ac_cv_prog_CC
3644if test -n "$CC"; then
1ef0423a 3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 3646$as_echo "$CC" >&6; }
2f1a1aea 3647else
1ef0423a 3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3649$as_echo "no" >&6; }
2f1a1aea
FCE
3650fi
3651
7fbd9d09 3652
2f1a1aea
FCE
3653fi
3654if test -z "$ac_cv_prog_CC"; then
3655 ac_ct_CC=$CC
3656 # Extract the first word of "gcc", so it can be a program name with args.
3657set dummy gcc; ac_word=$2
1ef0423a 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3659$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3660if ${ac_cv_prog_ac_ct_CC+:} false; then :
0710d850 3661 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3662else
3663 if test -n "$ac_ct_CC"; then
3664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3665else
3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
1ef0423a 3671 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 3672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2f1a1aea 3673 ac_cv_prog_ac_ct_CC="gcc"
1ef0423a 3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3675 break 2
3676 fi
3677done
1ef0423a 3678 done
7fbd9d09 3679IFS=$as_save_IFS
2f1a1aea
FCE
3680
3681fi
3682fi
3683ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684if test -n "$ac_ct_CC"; then
1ef0423a 3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
0710d850 3686$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 3687else
1ef0423a 3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3689$as_echo "no" >&6; }
2f1a1aea
FCE
3690fi
3691
7fbd9d09
FCE
3692 if test "x$ac_ct_CC" = x; then
3693 CC=""
3694 else
3695 case $cross_compiling:$ac_tool_warned in
3696yes:)
1ef0423a 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 3698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
3699ac_tool_warned=yes ;;
3700esac
3701 CC=$ac_ct_CC
3702 fi
2f1a1aea
FCE
3703else
3704 CC="$ac_cv_prog_CC"
3705fi
3706
3707if test -z "$CC"; then
7fbd9d09
FCE
3708 if test -n "$ac_tool_prefix"; then
3709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2f1a1aea 3710set dummy ${ac_tool_prefix}cc; ac_word=$2
1ef0423a 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3712$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3713if ${ac_cv_prog_CC+:} false; then :
0710d850 3714 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3715else
3716 if test -n "$CC"; then
3717 ac_cv_prog_CC="$CC" # Let the user override the test.
3718else
3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720for as_dir in $PATH
3721do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
1ef0423a 3724 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2f1a1aea 3726 ac_cv_prog_CC="${ac_tool_prefix}cc"
1ef0423a 3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3728 break 2
3729 fi
3730done
1ef0423a 3731 done
7fbd9d09 3732IFS=$as_save_IFS
2f1a1aea
FCE
3733
3734fi
3735fi
3736CC=$ac_cv_prog_CC
3737if test -n "$CC"; then
1ef0423a 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 3739$as_echo "$CC" >&6; }
818ba2bc 3740else
1ef0423a 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3742$as_echo "no" >&6; }
818ba2bc
MW
3743fi
3744
818ba2bc 3745
7fbd9d09 3746 fi
2f1a1aea
FCE
3747fi
3748if test -z "$CC"; then
3749 # Extract the first word of "cc", so it can be a program name with args.
3750set dummy cc; ac_word=$2
1ef0423a 3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3752$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3753if ${ac_cv_prog_CC+:} false; then :
0710d850 3754 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3755else
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758else
3759 ac_prog_rejected=no
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
1ef0423a 3765 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 3766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2f1a1aea
FCE
3767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3768 ac_prog_rejected=yes
3769 continue
3770 fi
3771 ac_cv_prog_CC="cc"
1ef0423a 3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3773 break 2
3774 fi
3775done
1ef0423a 3776 done
7fbd9d09 3777IFS=$as_save_IFS
2f1a1aea
FCE
3778
3779if test $ac_prog_rejected = yes; then
3780 # We found a bogon in the path, so make sure we never use it.
3781 set dummy $ac_cv_prog_CC
3782 shift
3783 if test $# != 0; then
3784 # We chose a different compiler from the bogus one.
3785 # However, it has the same basename, so the bogon will be chosen
3786 # first if we set CC to just the basename; use the full file name.
3787 shift
3788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3789 fi
3790fi
3791fi
3792fi
3793CC=$ac_cv_prog_CC
3794if test -n "$CC"; then
1ef0423a 3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 3796$as_echo "$CC" >&6; }
2f1a1aea 3797else
1ef0423a 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3799$as_echo "no" >&6; }
2f1a1aea
FCE
3800fi
3801
7fbd9d09 3802
2f1a1aea
FCE
3803fi
3804if test -z "$CC"; then
3805 if test -n "$ac_tool_prefix"; then
7fbd9d09 3806 for ac_prog in cl.exe
2f1a1aea
FCE
3807 do
3808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1ef0423a 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3811$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3812if ${ac_cv_prog_CC+:} false; then :
0710d850 3813 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3814else
3815 if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
1ef0423a 3823 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 3824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2f1a1aea 3825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1ef0423a 3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3827 break 2
3828 fi
3829done
1ef0423a 3830 done
7fbd9d09 3831IFS=$as_save_IFS
2f1a1aea
FCE
3832
3833fi
3834fi
3835CC=$ac_cv_prog_CC
3836if test -n "$CC"; then
1ef0423a 3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 3838$as_echo "$CC" >&6; }
2f1a1aea 3839else
1ef0423a 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3841$as_echo "no" >&6; }
2f1a1aea
FCE
3842fi
3843
7fbd9d09 3844
2f1a1aea
FCE
3845 test -n "$CC" && break
3846 done
3847fi
3848if test -z "$CC"; then
3849 ac_ct_CC=$CC
7fbd9d09 3850 for ac_prog in cl.exe
2f1a1aea
FCE
3851do
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853set dummy $ac_prog; ac_word=$2
1ef0423a 3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 3855$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 3856if ${ac_cv_prog_ac_ct_CC+:} false; then :
0710d850 3857 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
3858else
3859 if test -n "$ac_ct_CC"; then
3860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3861else
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
1ef0423a 3867 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2f1a1aea 3869 ac_cv_prog_ac_ct_CC="$ac_prog"
1ef0423a 3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
3871 break 2
3872 fi
3873done
1ef0423a 3874 done
7fbd9d09 3875IFS=$as_save_IFS
2f1a1aea
FCE
3876
3877fi
3878fi
3879ac_ct_CC=$ac_cv_prog_ac_ct_CC
3880if test -n "$ac_ct_CC"; then
1ef0423a 3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
0710d850 3882$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 3883else
1ef0423a 3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 3885$as_echo "no" >&6; }
2f1a1aea
FCE
3886fi
3887
7fbd9d09 3888
2f1a1aea
FCE
3889 test -n "$ac_ct_CC" && break
3890done
3891
7fbd9d09
FCE
3892 if test "x$ac_ct_CC" = x; then
3893 CC=""
3894 else
3895 case $cross_compiling:$ac_tool_warned in
3896yes:)
1ef0423a 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 3898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
3899ac_tool_warned=yes ;;
3900esac
3901 CC=$ac_ct_CC
3902 fi
2f1a1aea
FCE
3903fi
3904
3905fi
3906
3907
1ef0423a 3908test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 3909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
3910as_fn_error $? "no acceptable C compiler found in \$PATH
3911See \`config.log' for more details" "$LINENO" 5; }
2f1a1aea
FCE
3912
3913# Provide some information about the compiler.
1ef0423a 3914$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
0710d850
DS
3915set X $ac_compile
3916ac_compiler=$2
1ef0423a
FCE
3917for ac_option in --version -v -V -qversion; do
3918 { { ac_try="$ac_compiler $ac_option >&5"
5e5aee9f
FCE
3919case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922esac
1ef0423a
FCE
3923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924$as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5e5aee9f 3926 ac_status=$?
1ef0423a
FCE
3927 if test -s conftest.err; then
3928 sed '10a\
3929... rest of stderr output deleted ...
3930 10q' conftest.err >conftest.er1
3931 cat conftest.er1 >&5
3932 fi
3933 rm -f conftest.er1 conftest.err
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }
3936done
2f1a1aea 3937
1ef0423a 3938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 3939/* end confdefs.h. */
412e1bf7 3940
2f1a1aea
FCE
3941int
3942main ()
3943{
3944
3945 ;
3946 return 0;
3947}
3948_ACEOF
3949ac_clean_files_save=$ac_clean_files
0710d850 3950ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2f1a1aea
FCE
3951# Try to create an executable without -o first, disregard a.out.
3952# It will help us diagnose broken compilers, and finding out an intuition
3953# of exeext.
1ef0423a
FCE
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3955$as_echo_n "checking whether the C compiler works... " >&6; }
0710d850
DS
3956ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3957
3958# The possible output files:
3959ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3960
7fbd9d09
FCE
3961ac_rmfiles=
3962for ac_file in $ac_files
3963do
3964 case $ac_file in
0710d850 3965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7fbd9d09
FCE
3966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3967 esac
3968done
3969rm -f $ac_rmfiles
3970
1ef0423a 3971if { { ac_try="$ac_link_default"
7fbd9d09
FCE
3972case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975esac
1ef0423a
FCE
3976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977$as_echo "$ac_try_echo"; } >&5
7fbd9d09 3978 (eval "$ac_link_default") 2>&5
2f1a1aea 3979 ac_status=$?
1ef0423a
FCE
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; then :
7fbd9d09
FCE
3982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3983# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3984# in a Makefile. We should not override ac_cv_exeext if it was cached,
3985# so that the user can short-circuit this test for compilers unknown to
3986# Autoconf.
3987for ac_file in $ac_files ''
2f1a1aea
FCE
3988do
3989 test -f "$ac_file" || continue
3990 case $ac_file in
0710d850 3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2f1a1aea
FCE
3992 ;;
3993 [ab].out )
3994 # We found the default executable, but exeext='' is most
3995 # certainly right.
3996 break;;
3997 *.* )
1ef0423a 3998 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
7fbd9d09
FCE
3999 then :; else
4000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001 fi
4002 # We set ac_cv_exeext here because the later test for it is not
4003 # safe: cross compilers may not add the suffix if given an `-o'
4004 # argument, so we may need to know it at that point already.
4005 # Even if this section looks crufty: it has the advantage of
4006 # actually working.
2f1a1aea
FCE
4007 break;;
4008 * )
4009 break;;
4010 esac
4011done
7fbd9d09
FCE
4012test "$ac_cv_exeext" = no && ac_cv_exeext=
4013
2f1a1aea 4014else
7fbd9d09
FCE
4015 ac_file=''
4016fi
1ef0423a
FCE
4017if test -z "$ac_file"; then :
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019$as_echo "no" >&6; }
4020$as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
1ef0423a 4023{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 4024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
4025as_fn_error 77 "C compiler cannot create executables
4026See \`config.log' for more details" "$LINENO" 5; }
1ef0423a
FCE
4027else
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4029$as_echo "yes" >&6; }
2f1a1aea 4030fi
1ef0423a
FCE
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4032$as_echo_n "checking for C compiler default output file name... " >&6; }
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4034$as_echo "$ac_file" >&6; }
2f1a1aea 4035ac_exeext=$ac_cv_exeext
2f1a1aea 4036
0710d850 4037rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2f1a1aea 4038ac_clean_files=$ac_clean_files_save
1ef0423a 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
0710d850 4040$as_echo_n "checking for suffix of executables... " >&6; }
1ef0423a 4041if { { ac_try="$ac_link"
7fbd9d09
FCE
4042case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045esac
1ef0423a
FCE
4046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047$as_echo "$ac_try_echo"; } >&5
7fbd9d09 4048 (eval "$ac_link") 2>&5
2f1a1aea 4049 ac_status=$?
1ef0423a
FCE
4050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051 test $ac_status = 0; }; then :
2f1a1aea
FCE
4052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4053# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4054# work properly (i.e., refer to `conftest.exe'), while it won't with
4055# `rm'.
4056for ac_file in conftest.exe conftest conftest.*; do
4057 test -f "$ac_file" || continue
4058 case $ac_file in
0710d850 4059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2f1a1aea 4060 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2f1a1aea
FCE
4061 break;;
4062 * ) break;;
4063 esac
4064done
4065else
1ef0423a 4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 4067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
4068as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4069See \`config.log' for more details" "$LINENO" 5; }
2f1a1aea 4070fi
1ef0423a
FCE
4071rm -f conftest conftest$ac_cv_exeext
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
0710d850 4073$as_echo "$ac_cv_exeext" >&6; }
2f1a1aea
FCE
4074
4075rm -f conftest.$ac_ext
4076EXEEXT=$ac_cv_exeext
4077ac_exeext=$EXEEXT
1ef0423a
FCE
4078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h. */
4080#include <stdio.h>
4081int
4082main ()
4083{
4084FILE *f = fopen ("conftest.out", "w");
4085 return ferror (f) || fclose (f) != 0;
4086
4087 ;
4088 return 0;
4089}
4090_ACEOF
4091ac_clean_files="$ac_clean_files conftest.out"
4092# Check that the compiler produces executables we can run. If not, either
4093# the compiler is broken, or we cross compile.
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4095$as_echo_n "checking whether we are cross compiling... " >&6; }
4096if test "$cross_compiling" != yes; then
4097 { { ac_try="$ac_link"
4098case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103$as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_link") 2>&5
4105 ac_status=$?
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }
4108 if { ac_try='./conftest$ac_cv_exeext'
4109 { { case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112esac
4113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4114$as_echo "$ac_try_echo"; } >&5
4115 (eval "$ac_try") 2>&5
4116 ac_status=$?
4117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4118 test $ac_status = 0; }; }; then
4119 cross_compiling=no
4120 else
4121 if test "$cross_compiling" = maybe; then
4122 cross_compiling=yes
4123 else
4124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5 4126as_fn_error $? "cannot run C compiled programs.
1ef0423a 4127If you meant to cross compile, use \`--host'.
5d4aa1f5 4128See \`config.log' for more details" "$LINENO" 5; }
1ef0423a
FCE
4129 fi
4130 fi
4131fi
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4133$as_echo "$cross_compiling" >&6; }
4134
4135rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4136ac_clean_files=$ac_clean_files_save
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
0710d850 4138$as_echo_n "checking for suffix of object files... " >&6; }
c3de29bd 4139if ${ac_cv_objext+:} false; then :
0710d850 4140 $as_echo_n "(cached) " >&6
2f1a1aea 4141else
1ef0423a 4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea
FCE
4143/* end confdefs.h. */
4144
4145int
4146main ()
4147{
4148
4149 ;
4150 return 0;
4151}
4152_ACEOF
4153rm -f conftest.o conftest.obj
1ef0423a 4154if { { ac_try="$ac_compile"
7fbd9d09
FCE
4155case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
1ef0423a
FCE
4159eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4160$as_echo "$ac_try_echo"; } >&5
7fbd9d09 4161 (eval "$ac_compile") 2>&5
2f1a1aea 4162 ac_status=$?
1ef0423a
FCE
4163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4164 test $ac_status = 0; }; then :
7fbd9d09
FCE
4165 for ac_file in conftest.o conftest.obj conftest.*; do
4166 test -f "$ac_file" || continue;
2f1a1aea 4167 case $ac_file in
0710d850 4168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2f1a1aea
FCE
4169 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4170 break;;
4171 esac
4172done
4173else
0710d850 4174 $as_echo "$as_me: failed program was:" >&5
2f1a1aea
FCE
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
1ef0423a 4177{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 4178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
4179as_fn_error $? "cannot compute suffix of object files: cannot compile
4180See \`config.log' for more details" "$LINENO" 5; }
2f1a1aea 4181fi
2f1a1aea
FCE
4182rm -f conftest.$ac_cv_objext conftest.$ac_ext
4183fi
1ef0423a 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
0710d850 4185$as_echo "$ac_cv_objext" >&6; }
2f1a1aea
FCE
4186OBJEXT=$ac_cv_objext
4187ac_objext=$OBJEXT
1ef0423a 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
0710d850 4189$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
c3de29bd 4190if ${ac_cv_c_compiler_gnu+:} false; then :
0710d850 4191 $as_echo_n "(cached) " >&6
2f1a1aea 4192else
1ef0423a 4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea
FCE
4194/* end confdefs.h. */
4195
4196int
4197main ()
4198{
4199#ifndef __GNUC__
4200 choke me
4201#endif
4202
4203 ;
4204 return 0;
4205}
4206_ACEOF
1ef0423a 4207if ac_fn_c_try_compile "$LINENO"; then :
2f1a1aea
FCE
4208 ac_compiler_gnu=yes
4209else
1ef0423a 4210 ac_compiler_gnu=no
2f1a1aea 4211fi
7fbd9d09 4212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
4213ac_cv_c_compiler_gnu=$ac_compiler_gnu
4214
4215fi
1ef0423a 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
0710d850
DS
4217$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4218if test $ac_compiler_gnu = yes; then
4219 GCC=yes
4220else
4221 GCC=
4222fi
2f1a1aea
FCE
4223ac_test_CFLAGS=${CFLAGS+set}
4224ac_save_CFLAGS=$CFLAGS
1ef0423a 4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
0710d850 4226$as_echo_n "checking whether $CC accepts -g... " >&6; }
c3de29bd 4227if ${ac_cv_prog_cc_g+:} false; then :
0710d850 4228 $as_echo_n "(cached) " >&6
2f1a1aea 4229else
7fbd9d09
FCE
4230 ac_save_c_werror_flag=$ac_c_werror_flag
4231 ac_c_werror_flag=yes
4232 ac_cv_prog_cc_g=no
4233 CFLAGS="-g"
1ef0423a 4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea
FCE
4235/* end confdefs.h. */
4236
4237int
4238main ()
4239{
4240
4241 ;
4242 return 0;
4243}
4244_ACEOF
1ef0423a 4245if ac_fn_c_try_compile "$LINENO"; then :
7fbd9d09
FCE
4246 ac_cv_prog_cc_g=yes
4247else
1ef0423a
FCE
4248 CFLAGS=""
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7fbd9d09
FCE
4250/* end confdefs.h. */
4251
4252int
4253main ()
4254{
4255
4256 ;
4257 return 0;
4258}
4259_ACEOF
1ef0423a 4260if ac_fn_c_try_compile "$LINENO"; then :
5e5aee9f 4261
1ef0423a
FCE
4262else
4263 ac_c_werror_flag=$ac_save_c_werror_flag
7fbd9d09 4264 CFLAGS="-g"
1ef0423a 4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7fbd9d09
FCE
4266/* end confdefs.h. */
4267
4268int
4269main ()
4270{
4271
4272 ;
4273 return 0;
4274}
4275_ACEOF
1ef0423a 4276if ac_fn_c_try_compile "$LINENO"; then :
2f1a1aea 4277 ac_cv_prog_cc_g=yes
7fbd9d09 4278fi
7fbd9d09 4279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea 4280fi
7fbd9d09
FCE
4281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282fi
7fbd9d09
FCE
4283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 ac_c_werror_flag=$ac_save_c_werror_flag
2f1a1aea 4285fi
1ef0423a 4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
0710d850 4287$as_echo "$ac_cv_prog_cc_g" >&6; }
2f1a1aea
FCE
4288if test "$ac_test_CFLAGS" = set; then
4289 CFLAGS=$ac_save_CFLAGS
4290elif test $ac_cv_prog_cc_g = yes; then
4291 if test "$GCC" = yes; then
4292 CFLAGS="-g -O2"
4293 else
4294 CFLAGS="-g"
4295 fi
4296else
4297 if test "$GCC" = yes; then
4298 CFLAGS="-O2"
4299 else
4300 CFLAGS=
4301 fi
4302fi
1ef0423a 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
0710d850 4304$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
c3de29bd 4305if ${ac_cv_prog_cc_c89+:} false; then :
0710d850 4306 $as_echo_n "(cached) " >&6
2f1a1aea 4307else
7fbd9d09 4308 ac_cv_prog_cc_c89=no
2f1a1aea 4309ac_save_CC=$CC
1ef0423a 4310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea
FCE
4311/* end confdefs.h. */
4312#include <stdarg.h>
4313#include <stdio.h>
8eef2738 4314struct stat;
2f1a1aea
FCE
4315/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4316struct buf { int x; };
4317FILE * (*rcsopen) (struct buf *, struct stat *, int);
4318static char *e (p, i)
4319 char **p;
4320 int i;
4321{
4322 return p[i];
4323}
4324static char *f (char * (*g) (char **, int), char **p, ...)
4325{
4326 char *s;
4327 va_list v;
4328 va_start (v,p);
4329 s = g (p, va_arg (v,int));
4330 va_end (v);
4331 return s;
4332}
4333
4334/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4335 function prototypes and stuff, but not '\xHH' hex character constants.
4336 These don't provoke an error unfortunately, instead are silently treated
7fbd9d09 4337 as 'x'. The following induces an error, until -std is added to get
2f1a1aea
FCE
4338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4339 array size at least. It's necessary to write '\x00'==0 to get something
7fbd9d09 4340 that's true only with -std. */
2f1a1aea
FCE
4341int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4342
7fbd9d09
FCE
4343/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4344 inside strings and character constants. */
4345#define FOO(x) 'x'
4346int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4347
2f1a1aea
FCE
4348int test (int i, double x);
4349struct s1 {int (*f) (int a);};
4350struct s2 {int (*f) (double a);};
4351int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4352int argc;
4353char **argv;
4354int
4355main ()
4356{
4357return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4358 ;
4359 return 0;
4360}
4361_ACEOF
7fbd9d09
FCE
4362for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2f1a1aea
FCE
4364do
4365 CC="$ac_save_CC $ac_arg"
1ef0423a 4366 if ac_fn_c_try_compile "$LINENO"; then :
7fbd9d09 4367 ac_cv_prog_cc_c89=$ac_arg
2f1a1aea 4368fi
7fbd9d09
FCE
4369rm -f core conftest.err conftest.$ac_objext
4370 test "x$ac_cv_prog_cc_c89" != "xno" && break
2f1a1aea 4371done
7fbd9d09 4372rm -f conftest.$ac_ext
2f1a1aea
FCE
4373CC=$ac_save_CC
4374
4375fi
7fbd9d09
FCE
4376# AC_CACHE_VAL
4377case "x$ac_cv_prog_cc_c89" in
4378 x)
1ef0423a 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
0710d850 4380$as_echo "none needed" >&6; } ;;
7fbd9d09 4381 xno)
1ef0423a 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
0710d850 4383$as_echo "unsupported" >&6; } ;;
2f1a1aea 4384 *)
7fbd9d09 4385 CC="$CC $ac_cv_prog_cc_c89"
1ef0423a 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
0710d850 4387$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2f1a1aea 4388esac
1ef0423a 4389if test "x$ac_cv_prog_cc_c89" != xno; then :
2f1a1aea 4390
1ef0423a 4391fi
818ba2bc 4392
818ba2bc
MW
4393ac_ext=c
4394ac_cpp='$CPP $CPPFLAGS'
4395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397ac_compiler_gnu=$ac_cv_c_compiler_gnu
818ba2bc 4398
46c282e4
FCE
4399ac_ext=c
4400ac_cpp='$CPP $CPPFLAGS'
4401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4405$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4406if ${am_cv_prog_cc_c_o+:} false; then :
4407 $as_echo_n "(cached) " >&6
4408else
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410/* end confdefs.h. */
4411
4412int
4413main ()
4414{
4415
4416 ;
4417 return 0;
4418}
4419_ACEOF
4420 # Make sure it works both with $CC and with simple cc.
4421 # Following AC_PROG_CC_C_O, we do the test twice because some
4422 # compilers refuse to overwrite an existing .o file with -o,
4423 # though they will create one.
4424 am_cv_prog_cc_c_o=yes
4425 for am_i in 1 2; do
4426 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4427 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } \
4431 && test -f conftest2.$ac_objext; then
4432 : OK
4433 else
4434 am_cv_prog_cc_c_o=no
4435 break
4436 fi
4437 done
4438 rm -f core conftest*
4439 unset am_i
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4442$as_echo "$am_cv_prog_cc_c_o" >&6; }
4443if test "$am_cv_prog_cc_c_o" != yes; then
4444 # Losing compiler, so override with the script.
4445 # FIXME: It is wrong to rewrite CC.
4446 # But if we don't then we get into trouble of one sort or another.
4447 # A longer-term fix would be to have automake use am__CC in this case,
4448 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4449 CC="$am_aux_dir/compile $CC"
4450fi
4451ac_ext=c
4452ac_cpp='$CPP $CPPFLAGS'
4453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456
4457
8f223b3e 4458depcc="$CC" am_compiler_list=
2f1a1aea 4459
1ef0423a 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
0710d850 4461$as_echo_n "checking dependency style of $depcc... " >&6; }
c3de29bd 4462if ${am_cv_CC_dependencies_compiler_type+:} false; then :
0710d850 4463 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
4464else
4465 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4466 # We make a subdir and do the tests there. Otherwise we can end up
4467 # making bogus files that we don't know about and never remove. For
4468 # instance it was reported that on HP-UX the gcc test will end up
8eef2738
LB
4469 # making a dummy file named 'D' -- because '-MD' means "put the output
4470 # in D".
c66be968 4471 rm -rf conftest.dir
2f1a1aea
FCE
4472 mkdir conftest.dir
4473 # Copy depcomp to subdir because otherwise we won't find it if we're
4474 # using a relative directory.
4475 cp "$am_depcomp" conftest.dir
4476 cd conftest.dir
4477 # We will build objects and dependencies in a subdirectory because
4478 # it helps to detect inapplicable dependency modes. For instance
4479 # both Tru64's cc and ICC support -MD to output dependencies as a
4480 # side effect of compilation, but ICC will put the dependencies in
4481 # the current directory while Tru64 will put them in the object
4482 # directory.
4483 mkdir sub
4484
4485 am_cv_CC_dependencies_compiler_type=none
4486 if test "$am_compiler_list" = ""; then
4487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4488 fi
0710d850
DS
4489 am__universal=false
4490 case " $depcc " in #(
4491 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4492 esac
4493
2f1a1aea
FCE
4494 for depmode in $am_compiler_list; do
4495 # Setup a source with many dependencies, because some compilers
4496 # like to wrap large dependency lists on column 80 (with \), and
4497 # we should not choose a depcomp mode which is confused by this.
4498 #
4499 # We need to recreate these files for each test, as the compiler may
4500 # overwrite some of them when testing with obscure command lines.
4501 # This happens at least with the AIX C compiler.
4502 : > sub/conftest.c
4503 for i in 1 2 3 4 5 6; do
4504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8eef2738
LB
4505 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4506 # Solaris 10 /bin/sh.
4507 echo '/* dummy */' > sub/conftst$i.h
2f1a1aea
FCE
4508 done
4509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4510
8eef2738 4511 # We check with '-c' and '-o' for the sake of the "dashmstdout"
0710d850 4512 # mode. It turns out that the SunPro C++ compiler does not properly
8eef2738
LB
4513 # handle '-M -o', and we need to detect this. Also, some Intel
4514 # versions had trouble with output in subdirs.
0710d850
DS
4515 am__obj=sub/conftest.${OBJEXT-o}
4516 am__minus_obj="-o $am__obj"
2f1a1aea 4517 case $depmode in
0710d850
DS
4518 gcc)
4519 # This depmode causes a compiler race in universal mode.
4520 test "$am__universal" = false || continue
4521 ;;
2f1a1aea 4522 nosideeffect)
8eef2738
LB
4523 # After this tag, mechanisms are not by side-effect, so they'll
4524 # only be used when explicitly requested.
2f1a1aea
FCE
4525 if test "x$enable_dependency_tracking" = xyes; then
4526 continue
4527 else
4528 break
4529 fi
4530 ;;
c66be968 4531 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8eef2738 4532 # This compiler won't grok '-c -o', but also, the minuso test has
0710d850
DS
4533 # not run yet. These depmodes are late enough in the game, and
4534 # so weak that their functioning should not be impacted.
4535 am__obj=conftest.${OBJEXT-o}
4536 am__minus_obj=
4537 ;;
2f1a1aea
FCE
4538 none) break ;;
4539 esac
2f1a1aea 4540 if depmode=$depmode \
0710d850 4541 source=sub/conftest.c object=$am__obj \
2f1a1aea 4542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
0710d850 4543 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2f1a1aea 4544 >/dev/null 2>conftest.err &&
7fbd9d09 4545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea 4546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
0710d850 4547 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
4548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4549 # icc doesn't choke on unknown options, it will just issue warnings
4550 # or remarks (even with -Werror). So we grep stderr for any message
4551 # that says an option was ignored or not supported.
4552 # When given -MP, icc 7.0 and 7.1 complain thusly:
4553 # icc: Command line warning: ignoring option '-M'; no argument required
4554 # The diagnosis changed in icc 8.0:
4555 # icc: Command line remark: option '-MP' not supported
4556 if (grep 'ignoring option' conftest.err ||
4557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4558 am_cv_CC_dependencies_compiler_type=$depmode
4559 break
4560 fi
4561 fi
4562 done
4563
4564 cd ..
4565 rm -rf conftest.dir
4566else
4567 am_cv_CC_dependencies_compiler_type=none
4568fi
4569
4570fi
1ef0423a 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
0710d850 4572$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
4573CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4574
7fbd9d09 4575 if
2f1a1aea
FCE
4576 test "x$enable_dependency_tracking" != xno \
4577 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4578 am__fastdepCC_TRUE=
4579 am__fastdepCC_FALSE='#'
4580else
4581 am__fastdepCC_TRUE='#'
4582 am__fastdepCC_FALSE=
4583fi
4584
4585
8f223b3e
FCE
4586
4587ac_ext=c
4588ac_cpp='$CPP $CPPFLAGS'
4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4593$as_echo_n "checking how to run the C preprocessor... " >&6; }
4594# On Suns, sometimes $CPP names a directory.
4595if test -n "$CPP" && test -d "$CPP"; then
4596 CPP=
4597fi
4598if test -z "$CPP"; then
c3de29bd 4599 if ${ac_cv_prog_CPP+:} false; then :
0710d850 4600 $as_echo_n "(cached) " >&6
2f1a1aea 4601else
8f223b3e
FCE
4602 # Double quotes because CPP needs to be expanded
4603 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4604 do
4605 ac_preproc_ok=false
4606for ac_c_preproc_warn_flag in '' yes
2f1a1aea 4607do
8f223b3e
FCE
4608 # Use a header file that comes with gcc, so configuring glibc
4609 # with a fresh cross-compiler works.
4610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4611 # <limits.h> exists even on freestanding compilers.
4612 # On the NeXT, cc -E runs the code through the compiler's parser,
4613 # not just through cpp. "Syntax error" is here to catch this case.
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h. */
4616#ifdef __STDC__
4617# include <limits.h>
4618#else
4619# include <assert.h>
4620#endif
4621 Syntax error
4622_ACEOF
4623if ac_fn_c_try_cpp "$LINENO"; then :
2f1a1aea 4624
8f223b3e
FCE
4625else
4626 # Broken: fails on valid input.
4627continue
2f1a1aea 4628fi
c3de29bd 4629rm -f conftest.err conftest.i conftest.$ac_ext
8f223b3e
FCE
4630
4631 # OK, works on sane cases. Now check whether nonexistent headers
4632 # can be detected and how.
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634/* end confdefs.h. */
4635#include <ac_nonexistent.h>
4636_ACEOF
4637if ac_fn_c_try_cpp "$LINENO"; then :
4638 # Broken: success on invalid input.
4639continue
2f1a1aea 4640else
8f223b3e
FCE
4641 # Passes both tests.
4642ac_preproc_ok=:
4643break
4644fi
c3de29bd 4645rm -f conftest.err conftest.i conftest.$ac_ext
8f223b3e
FCE
4646
4647done
4648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
c3de29bd 4649rm -f conftest.i conftest.err conftest.$ac_ext
8f223b3e
FCE
4650if $ac_preproc_ok; then :
4651 break
2f1a1aea
FCE
4652fi
4653
8f223b3e
FCE
4654 done
4655 ac_cv_prog_CPP=$CPP
7fbd9d09 4656
2f1a1aea 4657fi
8f223b3e 4658 CPP=$ac_cv_prog_CPP
2f1a1aea 4659else
8f223b3e
FCE
4660 ac_cv_prog_CPP=$CPP
4661fi
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4663$as_echo "$CPP" >&6; }
4664ac_preproc_ok=false
4665for ac_c_preproc_warn_flag in '' yes
2f1a1aea 4666do
8f223b3e
FCE
4667 # Use a header file that comes with gcc, so configuring glibc
4668 # with a fresh cross-compiler works.
4669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4670 # <limits.h> exists even on freestanding compilers.
4671 # On the NeXT, cc -E runs the code through the compiler's parser,
4672 # not just through cpp. "Syntax error" is here to catch this case.
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674/* end confdefs.h. */
4675#ifdef __STDC__
4676# include <limits.h>
4677#else
4678# include <assert.h>
4679#endif
4680 Syntax error
4681_ACEOF
4682if ac_fn_c_try_cpp "$LINENO"; then :
2f1a1aea 4683
2f1a1aea 4684else
8f223b3e
FCE
4685 # Broken: fails on valid input.
4686continue
2f1a1aea 4687fi
c3de29bd 4688rm -f conftest.err conftest.i conftest.$ac_ext
2f1a1aea 4689
8f223b3e
FCE
4690 # OK, works on sane cases. Now check whether nonexistent headers
4691 # can be detected and how.
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693/* end confdefs.h. */
4694#include <ac_nonexistent.h>
4695_ACEOF
4696if ac_fn_c_try_cpp "$LINENO"; then :
4697 # Broken: success on invalid input.
4698continue
4699else
4700 # Passes both tests.
4701ac_preproc_ok=:
4702break
4703fi
c3de29bd 4704rm -f conftest.err conftest.i conftest.$ac_ext
7fbd9d09 4705
2f1a1aea 4706done
8f223b3e 4707# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
c3de29bd 4708rm -f conftest.i conftest.err conftest.$ac_ext
8f223b3e 4709if $ac_preproc_ok; then :
2f1a1aea 4710
8f223b3e
FCE
4711else
4712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
4714as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4715See \`config.log' for more details" "$LINENO" 5; }
2f1a1aea
FCE
4716fi
4717
8f223b3e
FCE
4718ac_ext=c
4719ac_cpp='$CPP $CPPFLAGS'
4720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723
4724
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4726$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
c3de29bd 4727if ${ac_cv_path_GREP+:} false; then :
8f223b3e
FCE
4728 $as_echo_n "(cached) " >&6
4729else
4730 if test -z "$GREP"; then
4731 ac_path_GREP_found=false
4732 # Loop through the user's path and test for each of PROGNAME-LIST
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4735do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_prog in grep ggrep; do
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8eef2738 4741 as_fn_executable_p "$ac_path_GREP" || continue
8f223b3e
FCE
4742# Check for GNU ac_path_GREP and select it if it is found.
4743 # Check for GNU $ac_path_GREP
4744case `"$ac_path_GREP" --version 2>&1` in
4745*GNU*)
4746 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4747*)
4748 ac_count=0
4749 $as_echo_n 0123456789 >"conftest.in"
4750 while :
4751 do
4752 cat "conftest.in" "conftest.in" >"conftest.tmp"
4753 mv "conftest.tmp" "conftest.in"
4754 cp "conftest.in" "conftest.nl"
4755 $as_echo 'GREP' >> "conftest.nl"
4756 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4758 as_fn_arith $ac_count + 1 && ac_count=$as_val
4759 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4760 # Best one so far, save it but keep looking for a better one
4761 ac_cv_path_GREP="$ac_path_GREP"
4762 ac_path_GREP_max=$ac_count
4763 fi
4764 # 10*(2^10) chars as input seems more than enough
4765 test $ac_count -gt 10 && break
4766 done
4767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5e5aee9f 4768esac
8f223b3e
FCE
4769
4770 $ac_path_GREP_found && break 3
4771 done
4772 done
4773 done
4774IFS=$as_save_IFS
4775 if test -z "$ac_cv_path_GREP"; then
5d4aa1f5 4776 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1ef0423a 4777 fi
8f223b3e
FCE
4778else
4779 ac_cv_path_GREP=$GREP
4780fi
2f1a1aea 4781
8f223b3e
FCE
4782fi
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4784$as_echo "$ac_cv_path_GREP" >&6; }
4785 GREP="$ac_cv_path_GREP"
4786
4787
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4789$as_echo_n "checking for egrep... " >&6; }
c3de29bd 4790if ${ac_cv_path_EGREP+:} false; then :
8f223b3e
FCE
4791 $as_echo_n "(cached) " >&6
4792else
4793 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4794 then ac_cv_path_EGREP="$GREP -E"
4795 else
4796 if test -z "$EGREP"; then
4797 ac_path_EGREP_found=false
4798 # Loop through the user's path and test for each of PROGNAME-LIST
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4801do
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 for ac_prog in egrep; do
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8eef2738 4807 as_fn_executable_p "$ac_path_EGREP" || continue
8f223b3e
FCE
4808# Check for GNU ac_path_EGREP and select it if it is found.
4809 # Check for GNU $ac_path_EGREP
4810case `"$ac_path_EGREP" --version 2>&1` in
4811*GNU*)
4812 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4813*)
4814 ac_count=0
4815 $as_echo_n 0123456789 >"conftest.in"
4816 while :
4817 do
4818 cat "conftest.in" "conftest.in" >"conftest.tmp"
4819 mv "conftest.tmp" "conftest.in"
4820 cp "conftest.in" "conftest.nl"
4821 $as_echo 'EGREP' >> "conftest.nl"
4822 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4824 as_fn_arith $ac_count + 1 && ac_count=$as_val
4825 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4826 # Best one so far, save it but keep looking for a better one
4827 ac_cv_path_EGREP="$ac_path_EGREP"
4828 ac_path_EGREP_max=$ac_count
4829 fi
4830 # 10*(2^10) chars as input seems more than enough
4831 test $ac_count -gt 10 && break
4832 done
4833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4834esac
4835
4836 $ac_path_EGREP_found && break 3
4837 done
4838 done
4839 done
4840IFS=$as_save_IFS
4841 if test -z "$ac_cv_path_EGREP"; then
5d4aa1f5 4842 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8f223b3e
FCE
4843 fi
4844else
4845 ac_cv_path_EGREP=$EGREP
4846fi
4847
4848 fi
4849fi
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4851$as_echo "$ac_cv_path_EGREP" >&6; }
4852 EGREP="$ac_cv_path_EGREP"
4853
4854
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4856$as_echo_n "checking for ANSI C header files... " >&6; }
c3de29bd 4857if ${ac_cv_header_stdc+:} false; then :
0710d850 4858 $as_echo_n "(cached) " >&6
2f1a1aea 4859else
1ef0423a 4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 4861/* end confdefs.h. */
8f223b3e
FCE
4862#include <stdlib.h>
4863#include <stdarg.h>
4864#include <string.h>
4865#include <float.h>
2f1a1aea
FCE
4866
4867int
4868main ()
4869{
2f1a1aea
FCE
4870
4871 ;
4872 return 0;
4873}
4874_ACEOF
8f223b3e
FCE
4875if ac_fn_c_try_compile "$LINENO"; then :
4876 ac_cv_header_stdc=yes
2f1a1aea 4877else
8f223b3e 4878 ac_cv_header_stdc=no
2f1a1aea 4879fi
7fbd9d09 4880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea 4881
8f223b3e
FCE
4882if test $ac_cv_header_stdc = yes; then
4883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885/* end confdefs.h. */
4886#include <string.h>
4887
4888_ACEOF
4889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4890 $EGREP "memchr" >/dev/null 2>&1; then :
4891
0710d850 4892else
8f223b3e 4893 ac_cv_header_stdc=no
0710d850 4894fi
8f223b3e 4895rm -f conftest*
2f1a1aea 4896
8f223b3e
FCE
4897fi
4898
4899if test $ac_cv_header_stdc = yes; then
4900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902/* end confdefs.h. */
4903#include <stdlib.h>
2f1a1aea 4904
2f1a1aea 4905_ACEOF
8f223b3e
FCE
4906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4907 $EGREP "free" >/dev/null 2>&1; then :
4908
2f1a1aea 4909else
8f223b3e
FCE
4910 ac_cv_header_stdc=no
4911fi
4912rm -f conftest*
4913
4914fi
4915
4916if test $ac_cv_header_stdc = yes; then
4917 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4918 if test "$cross_compiling" = yes; then :
4919 :
4920else
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 4922/* end confdefs.h. */
8f223b3e
FCE
4923#include <ctype.h>
4924#include <stdlib.h>
4925#if ((' ' & 0x0FF) == 0x020)
4926# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4927# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4928#else
4929# define ISLOWER(c) \
4930 (('a' <= (c) && (c) <= 'i') \
4931 || ('j' <= (c) && (c) <= 'r') \
4932 || ('s' <= (c) && (c) <= 'z'))
4933# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4934#endif
7fbd9d09 4935
8f223b3e 4936#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2f1a1aea
FCE
4937int
4938main ()
4939{
8f223b3e
FCE
4940 int i;
4941 for (i = 0; i < 256; i++)
4942 if (XOR (islower (i), ISLOWER (i))
4943 || toupper (i) != TOUPPER (i))
4944 return 2;
2f1a1aea
FCE
4945 return 0;
4946}
4947_ACEOF
8f223b3e 4948if ac_fn_c_try_run "$LINENO"; then :
5e5aee9f 4949
1ef0423a 4950else
8f223b3e
FCE
4951 ac_cv_header_stdc=no
4952fi
4953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4954 conftest.$ac_objext conftest.beam conftest.$ac_ext
4955fi
4956
4957fi
4958fi
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4960$as_echo "$ac_cv_header_stdc" >&6; }
4961if test $ac_cv_header_stdc = yes; then
4962
4963$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4964
4965fi
4966
4967# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4968for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4969 inttypes.h stdint.h unistd.h
4970do :
4971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4973"
5d4aa1f5 4974if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8f223b3e
FCE
4975 cat >>confdefs.h <<_ACEOF
4976#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4977_ACEOF
4978
4979fi
4980
4981done
4982
4983
4984
4985 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
c3de29bd 4986if test "x$ac_cv_header_minix_config_h" = xyes; then :
8f223b3e
FCE
4987 MINIX=yes
4988else
4989 MINIX=
4990fi
4991
4992
4993 if test "$MINIX" = yes; then
4994
4995$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4996
4997
4998$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4999
5000
5001$as_echo "#define _MINIX 1" >>confdefs.h
5002
5003 fi
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5007$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
c3de29bd 5008if ${ac_cv_safe_to_define___extensions__+:} false; then :
8f223b3e
FCE
5009 $as_echo_n "(cached) " >&6
5010else
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 5012/* end confdefs.h. */
7fbd9d09 5013
8eef2738
LB
5014# define __EXTENSIONS__ 1
5015 $ac_includes_default
2f1a1aea
FCE
5016int
5017main ()
5018{
7fbd9d09 5019
2f1a1aea
FCE
5020 ;
5021 return 0;
5022}
4a3c19da 5023_ACEOF
8f223b3e
FCE
5024if ac_fn_c_try_compile "$LINENO"; then :
5025 ac_cv_safe_to_define___extensions__=yes
5026else
5027 ac_cv_safe_to_define___extensions__=no
5e0d2ebf 5028fi
7fbd9d09 5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fbd9d09 5030fi
8f223b3e
FCE
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5032$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5033 test $ac_cv_safe_to_define___extensions__ = yes &&
5034 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
2f1a1aea 5035
8f223b3e 5036 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
2f1a1aea 5037
8f223b3e 5038 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
2f1a1aea 5039
8f223b3e 5040 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
0710d850 5041
8f223b3e 5042 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
2f1a1aea 5043
2f1a1aea 5044
8eef2738 5045
2f1a1aea 5046
8f223b3e
FCE
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5048$as_echo_n "checking whether ln -s works... " >&6; }
5049LN_S=$as_ln_s
5050if test "$LN_S" = "ln -s"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5052$as_echo "yes" >&6; }
2f1a1aea 5053else
8f223b3e
FCE
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5055$as_echo "no, using $LN_S" >&6; }
2f1a1aea
FCE
5056fi
5057
2f1a1aea
FCE
5058ac_ext=c
5059ac_cpp='$CPP $CPPFLAGS'
5060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062ac_compiler_gnu=$ac_cv_c_compiler_gnu
8f223b3e
FCE
5063if test -n "$ac_tool_prefix"; then
5064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5065set dummy ${ac_tool_prefix}gcc; ac_word=$2
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5068if ${ac_cv_prog_CC+:} false; then :
0710d850 5069 $as_echo_n "(cached) " >&6
2f1a1aea 5070else
8f223b3e
FCE
5071 if test -n "$CC"; then
5072 ac_cv_prog_CC="$CC" # Let the user override the test.
2f1a1aea
FCE
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
1ef0423a 5079 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 5080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2f1a1aea 5081 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1ef0423a 5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5083 break 2
5084 fi
5085done
1ef0423a 5086 done
7fbd9d09 5087IFS=$as_save_IFS
2f1a1aea
FCE
5088
5089fi
5090fi
5091CC=$ac_cv_prog_CC
5092if test -n "$CC"; then
1ef0423a 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 5094$as_echo "$CC" >&6; }
2f1a1aea 5095else
1ef0423a 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 5097$as_echo "no" >&6; }
2f1a1aea
FCE
5098fi
5099
7fbd9d09 5100
2f1a1aea
FCE
5101fi
5102if test -z "$ac_cv_prog_CC"; then
5103 ac_ct_CC=$CC
5104 # Extract the first word of "gcc", so it can be a program name with args.
5105set dummy gcc; ac_word=$2
1ef0423a 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 5107$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5108if ${ac_cv_prog_ac_ct_CC+:} false; then :
0710d850 5109 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5110else
5111 if test -n "$ac_ct_CC"; then
5112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5113else
5114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115for as_dir in $PATH
5116do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
1ef0423a 5119 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2f1a1aea 5121 ac_cv_prog_ac_ct_CC="gcc"
1ef0423a 5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5123 break 2
5124 fi
5125done
1ef0423a 5126 done
7fbd9d09 5127IFS=$as_save_IFS
2f1a1aea
FCE
5128
5129fi
5130fi
5131ac_ct_CC=$ac_cv_prog_ac_ct_CC
5132if test -n "$ac_ct_CC"; then
1ef0423a 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
0710d850 5134$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 5135else
1ef0423a 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 5137$as_echo "no" >&6; }
2f1a1aea
FCE
5138fi
5139
7fbd9d09
FCE
5140 if test "x$ac_ct_CC" = x; then
5141 CC=""
5142 else
5143 case $cross_compiling:$ac_tool_warned in
5144yes:)
1ef0423a 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 5146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
5147ac_tool_warned=yes ;;
5148esac
5149 CC=$ac_ct_CC
5150 fi
2f1a1aea
FCE
5151else
5152 CC="$ac_cv_prog_CC"
5153fi
5154
5155if test -z "$CC"; then
7fbd9d09
FCE
5156 if test -n "$ac_tool_prefix"; then
5157 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2f1a1aea 5158set dummy ${ac_tool_prefix}cc; ac_word=$2
1ef0423a 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 5160$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5161if ${ac_cv_prog_CC+:} false; then :
0710d850 5162 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5163else
5164 if test -n "$CC"; then
5165 ac_cv_prog_CC="$CC" # Let the user override the test.
5166else
5167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168for as_dir in $PATH
5169do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
1ef0423a 5172 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2f1a1aea 5174 ac_cv_prog_CC="${ac_tool_prefix}cc"
1ef0423a 5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5176 break 2
5177 fi
5178done
1ef0423a 5179 done
7fbd9d09 5180IFS=$as_save_IFS
2f1a1aea
FCE
5181
5182fi
5183fi
5184CC=$ac_cv_prog_CC
5185if test -n "$CC"; then
1ef0423a 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 5187$as_echo "$CC" >&6; }
818ba2bc 5188else
1ef0423a 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 5190$as_echo "no" >&6; }
818ba2bc
MW
5191fi
5192
818ba2bc 5193
7fbd9d09 5194 fi
8ae7a94a
FCE
5195fi
5196if test -z "$CC"; then
5197 # Extract the first word of "cc", so it can be a program name with args.
5198set dummy cc; ac_word=$2
1ef0423a 5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 5200$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5201if ${ac_cv_prog_CC+:} false; then :
0710d850 5202 $as_echo_n "(cached) " >&6
8ae7a94a
FCE
5203else
5204 if test -n "$CC"; then
2f1a1aea
FCE
5205 ac_cv_prog_CC="$CC" # Let the user override the test.
5206else
5207 ac_prog_rejected=no
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
1ef0423a 5213 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2f1a1aea
FCE
5215 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5216 ac_prog_rejected=yes
5217 continue
5218 fi
5219 ac_cv_prog_CC="cc"
1ef0423a 5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5221 break 2
5222 fi
5223done
1ef0423a 5224 done
7fbd9d09 5225IFS=$as_save_IFS
2f1a1aea
FCE
5226
5227if test $ac_prog_rejected = yes; then
5228 # We found a bogon in the path, so make sure we never use it.
5229 set dummy $ac_cv_prog_CC
5230 shift
5231 if test $# != 0; then
5232 # We chose a different compiler from the bogus one.
5233 # However, it has the same basename, so the bogon will be chosen
5234 # first if we set CC to just the basename; use the full file name.
5235 shift
5236 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5237 fi
5238fi
5239fi
5240fi
5241CC=$ac_cv_prog_CC
5242if test -n "$CC"; then
1ef0423a 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 5244$as_echo "$CC" >&6; }
2f1a1aea 5245else
1ef0423a 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 5247$as_echo "no" >&6; }
2f1a1aea
FCE
5248fi
5249
7fbd9d09 5250
2f1a1aea
FCE
5251fi
5252if test -z "$CC"; then
5253 if test -n "$ac_tool_prefix"; then
7fbd9d09 5254 for ac_prog in cl.exe
2f1a1aea
FCE
5255 do
5256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5257set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1ef0423a 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 5259$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5260if ${ac_cv_prog_CC+:} false; then :
0710d850 5261 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5262else
5263 if test -n "$CC"; then
5264 ac_cv_prog_CC="$CC" # Let the user override the test.
5265else
5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH
5268do
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
1ef0423a 5271 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2f1a1aea 5273 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1ef0423a 5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5275 break 2
5276 fi
5277done
1ef0423a 5278 done
7fbd9d09 5279IFS=$as_save_IFS
2f1a1aea
FCE
5280
5281fi
5282fi
5283CC=$ac_cv_prog_CC
5284if test -n "$CC"; then
1ef0423a 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
0710d850 5286$as_echo "$CC" >&6; }
2f1a1aea 5287else
1ef0423a 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 5289$as_echo "no" >&6; }
2f1a1aea
FCE
5290fi
5291
7fbd9d09 5292
2f1a1aea
FCE
5293 test -n "$CC" && break
5294 done
5295fi
5296if test -z "$CC"; then
5297 ac_ct_CC=$CC
7fbd9d09 5298 for ac_prog in cl.exe
2f1a1aea
FCE
5299do
5300 # Extract the first word of "$ac_prog", so it can be a program name with args.
5301set dummy $ac_prog; ac_word=$2
1ef0423a 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 5303$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5304if ${ac_cv_prog_ac_ct_CC+:} false; then :
0710d850 5305 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5306else
5307 if test -n "$ac_ct_CC"; then
5308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5309else
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
1ef0423a 5315 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 5316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2f1a1aea 5317 ac_cv_prog_ac_ct_CC="$ac_prog"
1ef0423a 5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2f1a1aea
FCE
5319 break 2
5320 fi
5321done
1ef0423a 5322 done
7fbd9d09 5323IFS=$as_save_IFS
2f1a1aea
FCE
5324
5325fi
5326fi
5327ac_ct_CC=$ac_cv_prog_ac_ct_CC
5328if test -n "$ac_ct_CC"; then
1ef0423a 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
0710d850 5330$as_echo "$ac_ct_CC" >&6; }
2f1a1aea 5331else
1ef0423a 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 5333$as_echo "no" >&6; }
2f1a1aea
FCE
5334fi
5335
7fbd9d09 5336
2f1a1aea
FCE
5337 test -n "$ac_ct_CC" && break
5338done
5339
7fbd9d09
FCE
5340 if test "x$ac_ct_CC" = x; then
5341 CC=""
5342 else
5343 case $cross_compiling:$ac_tool_warned in
5344yes:)
1ef0423a 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
0710d850 5346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7fbd9d09
FCE
5347ac_tool_warned=yes ;;
5348esac
5349 CC=$ac_ct_CC
5350 fi
2f1a1aea
FCE
5351fi
5352
5353fi
5354
5355
1ef0423a 5356test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 5357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
5358as_fn_error $? "no acceptable C compiler found in \$PATH
5359See \`config.log' for more details" "$LINENO" 5; }
2f1a1aea
FCE
5360
5361# Provide some information about the compiler.
1ef0423a 5362$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
0710d850
DS
5363set X $ac_compile
5364ac_compiler=$2
1ef0423a
FCE
5365for ac_option in --version -v -V -qversion; do
5366 { { ac_try="$ac_compiler $ac_option >&5"
5e5aee9f
FCE
5367case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370esac
1ef0423a
FCE
5371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5372$as_echo "$ac_try_echo"; } >&5
5373 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5e5aee9f 5374 ac_status=$?
1ef0423a
FCE
5375 if test -s conftest.err; then
5376 sed '10a\
5377... rest of stderr output deleted ...
5378 10q' conftest.err >conftest.er1
5379 cat conftest.er1 >&5
5380 fi
5381 rm -f conftest.er1 conftest.err
5382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5383 test $ac_status = 0; }
5384done
2f1a1aea 5385
1ef0423a 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
0710d850 5387$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
c3de29bd 5388if ${ac_cv_c_compiler_gnu+:} false; then :
0710d850 5389 $as_echo_n "(cached) " >&6
2f1a1aea 5390else
1ef0423a 5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea
FCE
5392/* end confdefs.h. */
5393
5394int
5395main ()
5396{
5397#ifndef __GNUC__
5398 choke me
5399#endif
5400
5401 ;
5402 return 0;
5403}
5404_ACEOF
1ef0423a 5405if ac_fn_c_try_compile "$LINENO"; then :
2f1a1aea
FCE
5406 ac_compiler_gnu=yes
5407else
1ef0423a 5408 ac_compiler_gnu=no
2f1a1aea 5409fi
7fbd9d09 5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f1a1aea
FCE
5411ac_cv_c_compiler_gnu=$ac_compiler_gnu
5412
5413fi
1ef0423a 5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
0710d850
DS
5415$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5416if test $ac_compiler_gnu = yes; then
5417 GCC=yes
5418else
5419 GCC=
5420fi
2f1a1aea
FCE
5421ac_test_CFLAGS=${CFLAGS+set}
5422ac_save_CFLAGS=$CFLAGS
1ef0423a 5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
0710d850 5424$as_echo_n "checking whether $CC accepts -g... " >&6; }
c3de29bd 5425if ${ac_cv_prog_cc_g+:} false; then :
0710d850 5426 $as_echo_n "(cached) " >&6
2f1a1aea 5427else
7fbd9d09
FCE
5428 ac_save_c_werror_flag=$ac_c_werror_flag
5429 ac_c_werror_flag=yes
5430 ac_cv_prog_cc_g=no
5431 CFLAGS="-g"
1ef0423a 5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea
FCE
5433/* end confdefs.h. */
5434
5435int
5436main ()
5437{
5438
5439 ;
5440 return 0;
5441}
5442_ACEOF
1ef0423a 5443if ac_fn_c_try_compile "$LINENO"; then :
7fbd9d09
FCE
5444 ac_cv_prog_cc_g=yes
5445else
1ef0423a
FCE
5446 CFLAGS=""
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7fbd9d09
FCE
5448/* end confdefs.h. */
5449
5450int
5451main ()
5452{
5453
5454 ;
5455 return 0;
5456}
5457_ACEOF
1ef0423a 5458if ac_fn_c_try_compile "$LINENO"; then :
5e5aee9f 5459
1ef0423a
FCE
5460else
5461 ac_c_werror_flag=$ac_save_c_werror_flag
7fbd9d09 5462 CFLAGS="-g"
1ef0423a 5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7fbd9d09
FCE
5464/* end confdefs.h. */
5465
5466int
5467main ()
5468{
5469
5470 ;
5471 return 0;
5472}
5473_ACEOF
1ef0423a 5474if ac_fn_c_try_compile "$LINENO"; then :
5e0d2ebf 5475 ac_cv_prog_cc_g=yes
7fbd9d09 5476fi
7fbd9d09
FCE
5477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478fi
7fbd9d09 5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e0d2ebf 5480fi
7fbd9d09
FCE
5481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 ac_c_werror_flag=$ac_save_c_werror_flag
70d28673 5483fi
1ef0423a 5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
0710d850 5485$as_echo "$ac_cv_prog_cc_g" >&6; }
70d28673
DS
5486if test "$ac_test_CFLAGS" = set; then
5487 CFLAGS=$ac_save_CFLAGS
5488elif test $ac_cv_prog_cc_g = yes; then
5489 if test "$GCC" = yes; then
5490 CFLAGS="-g -O2"
5491 else
5492 CFLAGS="-g"
5493 fi
5494else
5495 if test "$GCC" = yes; then
5496 CFLAGS="-O2"
5497 else
5498 CFLAGS=
5499 fi
5500fi
1ef0423a 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
0710d850 5502$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
c3de29bd 5503if ${ac_cv_prog_cc_c89+:} false; then :
0710d850 5504 $as_echo_n "(cached) " >&6
70d28673 5505else
7fbd9d09 5506 ac_cv_prog_cc_c89=no
70d28673 5507ac_save_CC=$CC
1ef0423a 5508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 5509/* end confdefs.h. */
70d28673
DS
5510#include <stdarg.h>
5511#include <stdio.h>
8eef2738 5512struct stat;
70d28673
DS
5513/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5514struct buf { int x; };
5515FILE * (*rcsopen) (struct buf *, struct stat *, int);
5516static char *e (p, i)
5517 char **p;
5518 int i;
5519{
5520 return p[i];
5521}
5522static char *f (char * (*g) (char **, int), char **p, ...)
5523{
5524 char *s;
5525 va_list v;
5526 va_start (v,p);
5527 s = g (p, va_arg (v,int));
5528 va_end (v);
5529 return s;
5530}
5531
5532/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5533 function prototypes and stuff, but not '\xHH' hex character constants.
5534 These don't provoke an error unfortunately, instead are silently treated
7fbd9d09 5535 as 'x'. The following induces an error, until -std is added to get
70d28673
DS
5536 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5537 array size at least. It's necessary to write '\x00'==0 to get something
7fbd9d09 5538 that's true only with -std. */
70d28673
DS
5539int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5540
7fbd9d09
FCE
5541/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5542 inside strings and character constants. */
5543#define FOO(x) 'x'
5544int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5545
70d28673
DS
5546int test (int i, double x);
5547struct s1 {int (*f) (int a);};
5548struct s2 {int (*f) (double a);};
5549int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5550int argc;
5551char **argv;
2f1a1aea
FCE
5552int
5553main ()
5554{
70d28673 5555return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2f1a1aea
FCE
5556 ;
5557 return 0;
5558}
5559_ACEOF
7fbd9d09
FCE
5560for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5561 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
70d28673
DS
5562do
5563 CC="$ac_save_CC $ac_arg"
1ef0423a 5564 if ac_fn_c_try_compile "$LINENO"; then :
7fbd9d09 5565 ac_cv_prog_cc_c89=$ac_arg
2f1a1aea 5566fi
7fbd9d09
FCE
5567rm -f core conftest.err conftest.$ac_objext
5568 test "x$ac_cv_prog_cc_c89" != "xno" && break
2f1a1aea 5569done
7fbd9d09 5570rm -f conftest.$ac_ext
70d28673
DS
5571CC=$ac_save_CC
5572
2f1a1aea 5573fi
7fbd9d09
FCE
5574# AC_CACHE_VAL
5575case "x$ac_cv_prog_cc_c89" in
5576 x)
1ef0423a 5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
0710d850 5578$as_echo "none needed" >&6; } ;;
7fbd9d09 5579 xno)
1ef0423a 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
0710d850 5581$as_echo "unsupported" >&6; } ;;
70d28673 5582 *)
7fbd9d09 5583 CC="$CC $ac_cv_prog_cc_c89"
1ef0423a 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
0710d850 5585$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
70d28673 5586esac
1ef0423a 5587if test "x$ac_cv_prog_cc_c89" != xno; then :
2f1a1aea 5588
1ef0423a 5589fi
2f1a1aea 5590
2f1a1aea
FCE
5591ac_ext=c
5592ac_cpp='$CPP $CPPFLAGS'
5593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596
46c282e4
FCE
5597ac_ext=c
5598ac_cpp='$CPP $CPPFLAGS'
5599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5603$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5604if ${am_cv_prog_cc_c_o+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606else
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h. */
5609
5610int
5611main ()
5612{
5613
5614 ;
5615 return 0;
5616}
5617_ACEOF
5618 # Make sure it works both with $CC and with simple cc.
5619 # Following AC_PROG_CC_C_O, we do the test twice because some
5620 # compilers refuse to overwrite an existing .o file with -o,
5621 # though they will create one.
5622 am_cv_prog_cc_c_o=yes
5623 for am_i in 1 2; do
5624 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5625 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } \
5629 && test -f conftest2.$ac_objext; then
5630 : OK
5631 else
5632 am_cv_prog_cc_c_o=no
5633 break
5634 fi
5635 done
5636 rm -f core conftest*
5637 unset am_i
5638fi
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5640$as_echo "$am_cv_prog_cc_c_o" >&6; }
5641if test "$am_cv_prog_cc_c_o" != yes; then
5642 # Losing compiler, so override with the script.
5643 # FIXME: It is wrong to rewrite CC.
5644 # But if we don't then we get into trouble of one sort or another.
5645 # A longer-term fix would be to have automake use am__CC in this case,
5646 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5647 CC="$am_aux_dir/compile $CC"
5648fi
5649ac_ext=c
5650ac_cpp='$CPP $CPPFLAGS'
5651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654
5655
2f1a1aea
FCE
5656depcc="$CC" am_compiler_list=
5657
1ef0423a 5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
0710d850 5659$as_echo_n "checking dependency style of $depcc... " >&6; }
c3de29bd 5660if ${am_cv_CC_dependencies_compiler_type+:} false; then :
0710d850 5661 $as_echo_n "(cached) " >&6
2f1a1aea
FCE
5662else
5663 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5664 # We make a subdir and do the tests there. Otherwise we can end up
5665 # making bogus files that we don't know about and never remove. For
5666 # instance it was reported that on HP-UX the gcc test will end up
8eef2738
LB
5667 # making a dummy file named 'D' -- because '-MD' means "put the output
5668 # in D".
c66be968 5669 rm -rf conftest.dir
2f1a1aea
FCE
5670 mkdir conftest.dir
5671 # Copy depcomp to subdir because otherwise we won't find it if we're
5672 # using a relative directory.
5673 cp "$am_depcomp" conftest.dir
5674 cd conftest.dir
5675 # We will build objects and dependencies in a subdirectory because
5676 # it helps to detect inapplicable dependency modes. For instance
5677 # both Tru64's cc and ICC support -MD to output dependencies as a
5678 # side effect of compilation, but ICC will put the dependencies in
5679 # the current directory while Tru64 will put them in the object
5680 # directory.
5681 mkdir sub
5682
5683 am_cv_CC_dependencies_compiler_type=none
5684 if test "$am_compiler_list" = ""; then
5685 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5686 fi
0710d850
DS
5687 am__universal=false
5688 case " $depcc " in #(
5689 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5690 esac
5691
2f1a1aea
FCE
5692 for depmode in $am_compiler_list; do
5693 # Setup a source with many dependencies, because some compilers
5694 # like to wrap large dependency lists on column 80 (with \), and
5695 # we should not choose a depcomp mode which is confused by this.
5696 #
5697 # We need to recreate these files for each test, as the compiler may
5698 # overwrite some of them when testing with obscure command lines.
5699 # This happens at least with the AIX C compiler.
5700 : > sub/conftest.c
5701 for i in 1 2 3 4 5 6; do
5702 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8eef2738
LB
5703 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5704 # Solaris 10 /bin/sh.
5705 echo '/* dummy */' > sub/conftst$i.h
2f1a1aea
FCE
5706 done
5707 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5708
8eef2738 5709 # We check with '-c' and '-o' for the sake of the "dashmstdout"
0710d850 5710 # mode. It turns out that the SunPro C++ compiler does not properly
8eef2738
LB
5711 # handle '-M -o', and we need to detect this. Also, some Intel
5712 # versions had trouble with output in subdirs.
0710d850
DS
5713 am__obj=sub/conftest.${OBJEXT-o}
5714 am__minus_obj="-o $am__obj"
2f1a1aea 5715 case $depmode in
0710d850
DS
5716 gcc)
5717 # This depmode causes a compiler race in universal mode.
5718 test "$am__universal" = false || continue
5719 ;;
2f1a1aea 5720 nosideeffect)
8eef2738
LB
5721 # After this tag, mechanisms are not by side-effect, so they'll
5722 # only be used when explicitly requested.
2f1a1aea
FCE
5723 if test "x$enable_dependency_tracking" = xyes; then
5724 continue
5725 else
5726 break
5727 fi
5728 ;;
c66be968 5729 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8eef2738 5730 # This compiler won't grok '-c -o', but also, the minuso test has
0710d850
DS
5731 # not run yet. These depmodes are late enough in the game, and
5732 # so weak that their functioning should not be impacted.
5733 am__obj=conftest.${OBJEXT-o}
5734 am__minus_obj=
5735 ;;
2f1a1aea
FCE
5736 none) break ;;
5737 esac
2f1a1aea 5738 if depmode=$depmode \
0710d850 5739 source=sub/conftest.c object=$am__obj \
2f1a1aea 5740 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
0710d850 5741 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2f1a1aea 5742 >/dev/null 2>conftest.err &&
7fbd9d09 5743 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea 5744 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
0710d850 5745 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
5746 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5747 # icc doesn't choke on unknown options, it will just issue warnings
5748 # or remarks (even with -Werror). So we grep stderr for any message
5749 # that says an option was ignored or not supported.
5750 # When given -MP, icc 7.0 and 7.1 complain thusly:
5751 # icc: Command line warning: ignoring option '-M'; no argument required
5752 # The diagnosis changed in icc 8.0:
5753 # icc: Command line remark: option '-MP' not supported
5754 if (grep 'ignoring option' conftest.err ||
5755 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5756 am_cv_CC_dependencies_compiler_type=$depmode
5757 break
5758 fi
5759 fi
5760 done
5761
5762 cd ..
5763 rm -rf conftest.dir
5764else
5765 am_cv_CC_dependencies_compiler_type=none
5766fi
5767
5768fi
1ef0423a 5769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
0710d850 5770$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2f1a1aea
FCE
5771CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5772
7fbd9d09 5773 if
2f1a1aea
FCE
5774 test "x$enable_dependency_tracking" != xno \
5775 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5776 am__fastdepCC_TRUE=
5777 am__fastdepCC_FALSE='#'
5778else
5779 am__fastdepCC_TRUE='#'
5780 am__fastdepCC_FALSE=
5781fi
5782
5783
8f223b3e
FCE
5784ac_ext=cpp
5785ac_cpp='$CXXCPP $CPPFLAGS'
5786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5789if test -z "$CXX"; then
5790 if test -n "$CCC"; then
5791 CXX=$CCC
5792 else
5793 if test -n "$ac_tool_prefix"; then
5794 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5795 do
5796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5797set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5800if ${ac_cv_prog_CXX+:} false; then :
8f223b3e
FCE
5801 $as_echo_n "(cached) " >&6
5802else
5803 if test -n "$CXX"; then
5804 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 5812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8f223b3e
FCE
5813 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5816 fi
5817done
5818 done
5819IFS=$as_save_IFS
2f1a1aea 5820
8f223b3e
FCE
5821fi
5822fi
5823CXX=$ac_cv_prog_CXX
5824if test -n "$CXX"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5826$as_echo "$CXX" >&6; }
8ae7a94a 5827else
8f223b3e
FCE
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829$as_echo "no" >&6; }
8ae7a94a 5830fi
8f223b3e
FCE
5831
5832
5833 test -n "$CXX" && break
5834 done
5835fi
5836if test -z "$CXX"; then
5837 ac_ct_CXX=$CXX
5838 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5839do
5840 # Extract the first word of "$ac_prog", so it can be a program name with args.
5841set dummy $ac_prog; ac_word=$2
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 5844if ${ac_cv_prog_ac_ct_CXX+:} false; then :
0710d850 5845 $as_echo_n "(cached) " >&6
8ae7a94a 5846else
8f223b3e
FCE
5847 if test -n "$ac_ct_CXX"; then
5848 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8f223b3e
FCE
5857 ac_cv_prog_ac_ct_CXX="$ac_prog"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861done
5862 done
5863IFS=$as_save_IFS
8ae7a94a 5864
8f223b3e
FCE
5865fi
5866fi
5867ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5868if test -n "$ac_ct_CXX"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5870$as_echo "$ac_ct_CXX" >&6; }
5871else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873$as_echo "no" >&6; }
5874fi
8ae7a94a 5875
8f223b3e
FCE
5876
5877 test -n "$ac_ct_CXX" && break
5878done
5879
5880 if test "x$ac_ct_CXX" = x; then
5881 CXX="g++"
5882 else
5883 case $cross_compiling:$ac_tool_warned in
5884yes:)
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5887ac_tool_warned=yes ;;
5888esac
5889 CXX=$ac_ct_CXX
5890 fi
5891fi
5892
5893 fi
5894fi
5895# Provide some information about the compiler.
5896$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5897set X $ac_compile
5898ac_compiler=$2
5899for ac_option in --version -v -V -qversion; do
5900 { { ac_try="$ac_compiler $ac_option >&5"
5901case "(($ac_try" in
7fbd9d09
FCE
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904esac
1ef0423a
FCE
5905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5906$as_echo "$ac_try_echo"; } >&5
8f223b3e
FCE
5907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5908 ac_status=$?
5909 if test -s conftest.err; then
5910 sed '10a\
5911... rest of stderr output deleted ...
5912 10q' conftest.err >conftest.er1
5913 cat conftest.er1 >&5
5914 fi
5915 rm -f conftest.er1 conftest.err
5916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5917 test $ac_status = 0; }
5918done
5919
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5921$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
c3de29bd 5922if ${ac_cv_cxx_compiler_gnu+:} false; then :
8f223b3e
FCE
5923 $as_echo_n "(cached) " >&6
5924else
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h. */
5927
5928int
5929main ()
5930{
5931#ifndef __GNUC__
5932 choke me
5933#endif
5934
5935 ;
5936 return 0;
5937}
5938_ACEOF
5939if ac_fn_cxx_try_compile "$LINENO"; then :
5940 ac_compiler_gnu=yes
5941else
5942 ac_compiler_gnu=no
5943fi
5944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5946
5947fi
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5949$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5950if test $ac_compiler_gnu = yes; then
5951 GXX=yes
5952else
5953 GXX=
5954fi
5955ac_test_CXXFLAGS=${CXXFLAGS+set}
5956ac_save_CXXFLAGS=$CXXFLAGS
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5958$as_echo_n "checking whether $CXX accepts -g... " >&6; }
c3de29bd 5959if ${ac_cv_prog_cxx_g+:} false; then :
8f223b3e
FCE
5960 $as_echo_n "(cached) " >&6
5961else
5962 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5963 ac_cxx_werror_flag=yes
5964 ac_cv_prog_cxx_g=no
5965 CXXFLAGS="-g"
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967/* end confdefs.h. */
5968
5969int
5970main ()
5971{
5972
5973 ;
5974 return 0;
5975}
5976_ACEOF
5977if ac_fn_cxx_try_compile "$LINENO"; then :
5978 ac_cv_prog_cxx_g=yes
5979else
5980 CXXFLAGS=""
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982/* end confdefs.h. */
5983
5984int
5985main ()
5986{
5987
5988 ;
5989 return 0;
5990}
5991_ACEOF
5992if ac_fn_cxx_try_compile "$LINENO"; then :
5993
5994else
5995 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5996 CXXFLAGS="-g"
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998/* end confdefs.h. */
5999
6000int
6001main ()
6002{
6003
6004 ;
6005 return 0;
6006}
6007_ACEOF
6008if ac_fn_cxx_try_compile "$LINENO"; then :
6009 ac_cv_prog_cxx_g=yes
6010fi
6011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012fi
6013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014fi
6015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6017fi
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6019$as_echo "$ac_cv_prog_cxx_g" >&6; }
6020if test "$ac_test_CXXFLAGS" = set; then
6021 CXXFLAGS=$ac_save_CXXFLAGS
6022elif test $ac_cv_prog_cxx_g = yes; then
6023 if test "$GXX" = yes; then
6024 CXXFLAGS="-g -O2"
6025 else
6026 CXXFLAGS="-g"
6027 fi
6028else
6029 if test "$GXX" = yes; then
6030 CXXFLAGS="-O2"
6031 else
6032 CXXFLAGS=
6033 fi
6034fi
6035ac_ext=c
6036ac_cpp='$CPP $CPPFLAGS'
6037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039ac_compiler_gnu=$ac_cv_c_compiler_gnu
6040
6041depcc="$CXX" am_compiler_list=
6042
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6044$as_echo_n "checking dependency style of $depcc... " >&6; }
c3de29bd 6045if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
8f223b3e
FCE
6046 $as_echo_n "(cached) " >&6
6047else
6048 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6049 # We make a subdir and do the tests there. Otherwise we can end up
6050 # making bogus files that we don't know about and never remove. For
6051 # instance it was reported that on HP-UX the gcc test will end up
8eef2738
LB
6052 # making a dummy file named 'D' -- because '-MD' means "put the output
6053 # in D".
c66be968 6054 rm -rf conftest.dir
8f223b3e
FCE
6055 mkdir conftest.dir
6056 # Copy depcomp to subdir because otherwise we won't find it if we're
6057 # using a relative directory.
6058 cp "$am_depcomp" conftest.dir
6059 cd conftest.dir
6060 # We will build objects and dependencies in a subdirectory because
6061 # it helps to detect inapplicable dependency modes. For instance
6062 # both Tru64's cc and ICC support -MD to output dependencies as a
6063 # side effect of compilation, but ICC will put the dependencies in
6064 # the current directory while Tru64 will put them in the object
6065 # directory.
6066 mkdir sub
6067
6068 am_cv_CXX_dependencies_compiler_type=none
6069 if test "$am_compiler_list" = ""; then
6070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6071 fi
6072 am__universal=false
6073 case " $depcc " in #(
6074 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6075 esac
6076
6077 for depmode in $am_compiler_list; do
6078 # Setup a source with many dependencies, because some compilers
6079 # like to wrap large dependency lists on column 80 (with \), and
6080 # we should not choose a depcomp mode which is confused by this.
6081 #
6082 # We need to recreate these files for each test, as the compiler may
6083 # overwrite some of them when testing with obscure command lines.
6084 # This happens at least with the AIX C compiler.
6085 : > sub/conftest.c
6086 for i in 1 2 3 4 5 6; do
6087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8eef2738
LB
6088 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6089 # Solaris 10 /bin/sh.
6090 echo '/* dummy */' > sub/conftst$i.h
8f223b3e
FCE
6091 done
6092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6093
8eef2738 6094 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8f223b3e 6095 # mode. It turns out that the SunPro C++ compiler does not properly
8eef2738
LB
6096 # handle '-M -o', and we need to detect this. Also, some Intel
6097 # versions had trouble with output in subdirs.
8f223b3e
FCE
6098 am__obj=sub/conftest.${OBJEXT-o}
6099 am__minus_obj="-o $am__obj"
6100 case $depmode in
6101 gcc)
6102 # This depmode causes a compiler race in universal mode.
6103 test "$am__universal" = false || continue
6104 ;;
6105 nosideeffect)
8eef2738
LB
6106 # After this tag, mechanisms are not by side-effect, so they'll
6107 # only be used when explicitly requested.
8f223b3e
FCE
6108 if test "x$enable_dependency_tracking" = xyes; then
6109 continue
6110 else
6111 break
6112 fi
6113 ;;
c66be968 6114 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8eef2738 6115 # This compiler won't grok '-c -o', but also, the minuso test has
8f223b3e
FCE
6116 # not run yet. These depmodes are late enough in the game, and
6117 # so weak that their functioning should not be impacted.
6118 am__obj=conftest.${OBJEXT-o}
6119 am__minus_obj=
6120 ;;
6121 none) break ;;
6122 esac
6123 if depmode=$depmode \
6124 source=sub/conftest.c object=$am__obj \
6125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6127 >/dev/null 2>conftest.err &&
6128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6132 # icc doesn't choke on unknown options, it will just issue warnings
6133 # or remarks (even with -Werror). So we grep stderr for any message
6134 # that says an option was ignored or not supported.
6135 # When given -MP, icc 7.0 and 7.1 complain thusly:
6136 # icc: Command line warning: ignoring option '-M'; no argument required
6137 # The diagnosis changed in icc 8.0:
6138 # icc: Command line remark: option '-MP' not supported
6139 if (grep 'ignoring option' conftest.err ||
6140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6141 am_cv_CXX_dependencies_compiler_type=$depmode
6142 break
6143 fi
6144 fi
6145 done
6146
6147 cd ..
6148 rm -rf conftest.dir
6149else
6150 am_cv_CXX_dependencies_compiler_type=none
6151fi
6152
6153fi
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6155$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6156CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6157
6158 if
6159 test "x$enable_dependency_tracking" != xno \
6160 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6161 am__fastdepCXX_TRUE=
6162 am__fastdepCXX_FALSE='#'
6163else
6164 am__fastdepCXX_TRUE='#'
6165 am__fastdepCXX_FALSE=
6166fi
6167
6168
6169ac_ext=c
6170ac_cpp='$CPP $CPPFLAGS'
6171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6175$as_echo_n "checking how to run the C preprocessor... " >&6; }
6176# On Suns, sometimes $CPP names a directory.
6177if test -n "$CPP" && test -d "$CPP"; then
6178 CPP=
6179fi
6180if test -z "$CPP"; then
c3de29bd 6181 if ${ac_cv_prog_CPP+:} false; then :
8f223b3e
FCE
6182 $as_echo_n "(cached) " >&6
6183else
6184 # Double quotes because CPP needs to be expanded
6185 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6186 do
6187 ac_preproc_ok=false
6188for ac_c_preproc_warn_flag in '' yes
6189do
6190 # Use a header file that comes with gcc, so configuring glibc
6191 # with a fresh cross-compiler works.
6192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6193 # <limits.h> exists even on freestanding compilers.
6194 # On the NeXT, cc -E runs the code through the compiler's parser,
6195 # not just through cpp. "Syntax error" is here to catch this case.
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197/* end confdefs.h. */
6198#ifdef __STDC__
6199# include <limits.h>
6200#else
6201# include <assert.h>
6202#endif
6203 Syntax error
6204_ACEOF
6205if ac_fn_c_try_cpp "$LINENO"; then :
6206
6207else
6208 # Broken: fails on valid input.
6209continue
6210fi
c3de29bd 6211rm -f conftest.err conftest.i conftest.$ac_ext
8f223b3e
FCE
6212
6213 # OK, works on sane cases. Now check whether nonexistent headers
6214 # can be detected and how.
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216/* end confdefs.h. */
6217#include <ac_nonexistent.h>
6218_ACEOF
6219if ac_fn_c_try_cpp "$LINENO"; then :
6220 # Broken: success on invalid input.
6221continue
6222else
6223 # Passes both tests.
6224ac_preproc_ok=:
6225break
6226fi
c3de29bd 6227rm -f conftest.err conftest.i conftest.$ac_ext
8f223b3e
FCE
6228
6229done
6230# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
c3de29bd 6231rm -f conftest.i conftest.err conftest.$ac_ext
8f223b3e
FCE
6232if $ac_preproc_ok; then :
6233 break
6234fi
6235
6236 done
6237 ac_cv_prog_CPP=$CPP
6238
6239fi
6240 CPP=$ac_cv_prog_CPP
6241else
6242 ac_cv_prog_CPP=$CPP
6243fi
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6245$as_echo "$CPP" >&6; }
6246ac_preproc_ok=false
6247for ac_c_preproc_warn_flag in '' yes
6248do
6249 # Use a header file that comes with gcc, so configuring glibc
6250 # with a fresh cross-compiler works.
6251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6252 # <limits.h> exists even on freestanding compilers.
6253 # On the NeXT, cc -E runs the code through the compiler's parser,
6254 # not just through cpp. "Syntax error" is here to catch this case.
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256/* end confdefs.h. */
6257#ifdef __STDC__
6258# include <limits.h>
6259#else
6260# include <assert.h>
6261#endif
6262 Syntax error
6263_ACEOF
6264if ac_fn_c_try_cpp "$LINENO"; then :
6265
6266else
6267 # Broken: fails on valid input.
6268continue
6269fi
c3de29bd 6270rm -f conftest.err conftest.i conftest.$ac_ext
8f223b3e
FCE
6271
6272 # OK, works on sane cases. Now check whether nonexistent headers
6273 # can be detected and how.
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h. */
6276#include <ac_nonexistent.h>
6277_ACEOF
6278if ac_fn_c_try_cpp "$LINENO"; then :
6279 # Broken: success on invalid input.
6280continue
6281else
6282 # Passes both tests.
6283ac_preproc_ok=:
6284break
6285fi
c3de29bd 6286rm -f conftest.err conftest.i conftest.$ac_ext
8f223b3e
FCE
6287
6288done
6289# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
c3de29bd 6290rm -f conftest.i conftest.err conftest.$ac_ext
8f223b3e
FCE
6291if $ac_preproc_ok; then :
6292
6293else
6294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5d4aa1f5
FCE
6296as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6297See \`config.log' for more details" "$LINENO" 5; }
8f223b3e
FCE
6298fi
6299
6300ac_ext=c
6301ac_cpp='$CPP $CPPFLAGS'
6302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6304ac_compiler_gnu=$ac_cv_c_compiler_gnu
6305
8f223b3e 6306
8f223b3e
FCE
6307if test -n "$ac_tool_prefix"; then
6308 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6309set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 6312if ${ac_cv_prog_RANLIB+:} false; then :
8f223b3e
FCE
6313 $as_echo_n "(cached) " >&6
6314else
6315 if test -n "$RANLIB"; then
6316 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6317else
6318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319for as_dir in $PATH
6320do
6321 IFS=$as_save_IFS
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 6324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8f223b3e
FCE
6325 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 break 2
6328 fi
6329done
6330 done
6331IFS=$as_save_IFS
6332
6333fi
6334fi
6335RANLIB=$ac_cv_prog_RANLIB
6336if test -n "$RANLIB"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6338$as_echo "$RANLIB" >&6; }
6339else
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341$as_echo "no" >&6; }
6342fi
6343
6344
6345fi
6346if test -z "$ac_cv_prog_RANLIB"; then
6347 ac_ct_RANLIB=$RANLIB
6348 # Extract the first word of "ranlib", so it can be a program name with args.
6349set dummy ranlib; ac_word=$2
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 6352if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8f223b3e
FCE
6353 $as_echo_n "(cached) " >&6
6354else
6355 if test -n "$ac_ct_RANLIB"; then
6356 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6357else
6358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
6360do
6361 IFS=$as_save_IFS
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 6364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8f223b3e
FCE
6365 ac_cv_prog_ac_ct_RANLIB="ranlib"
6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 break 2
6368 fi
6369done
6370 done
6371IFS=$as_save_IFS
6372
6373fi
6374fi
6375ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6376if test -n "$ac_ct_RANLIB"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6378$as_echo "$ac_ct_RANLIB" >&6; }
6379else
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381$as_echo "no" >&6; }
6382fi
6383
6384 if test "x$ac_ct_RANLIB" = x; then
6385 RANLIB=":"
6386 else
6387 case $cross_compiling:$ac_tool_warned in
6388yes:)
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391ac_tool_warned=yes ;;
6392esac
6393 RANLIB=$ac_ct_RANLIB
6394 fi
6395else
6396 RANLIB="$ac_cv_prog_RANLIB"
6397fi
6398
6399
6400
6401
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6403$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6404set x ${MAKE-make}
6405ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
c3de29bd 6406if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8f223b3e
FCE
6407 $as_echo_n "(cached) " >&6
6408else
6409 cat >conftest.make <<\_ACEOF
6410SHELL = /bin/sh
6411all:
6412 @echo '@@@%%%=$(MAKE)=@@@%%%'
6413_ACEOF
5d4aa1f5 6414# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8f223b3e
FCE
6415case `${MAKE-make} -f conftest.make 2>/dev/null` in
6416 *@@@%%%=?*=@@@%%%*)
6417 eval ac_cv_prog_make_${ac_make}_set=yes;;
6418 *)
6419 eval ac_cv_prog_make_${ac_make}_set=no;;
7fbd9d09 6420esac
8f223b3e
FCE
6421rm -f conftest.make
6422fi
6423if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6425$as_echo "yes" >&6; }
6426 SET_MAKE=
6427else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429$as_echo "no" >&6; }
6430 SET_MAKE="MAKE=${MAKE-make}"
6431fi
6432
6433
6434
97859b9d
JS
6435# Check whether --enable-largefile was given.
6436if test "${enable_largefile+set}" = set; then :
6437 enableval=$enable_largefile;
6438fi
6439
6440if test "$enable_largefile" != no; then
6441
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6443$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6444if ${ac_cv_sys_largefile_CC+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446else
6447 ac_cv_sys_largefile_CC=no
6448 if test "$GCC" != yes; then
6449 ac_save_CC=$CC
6450 while :; do
6451 # IRIX 6.2 and later do not support large files by default,
6452 # so use the C compiler's -n32 option if that helps.
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454/* end confdefs.h. */
6455#include <sys/types.h>
6456 /* Check that off_t can represent 2**63 - 1 correctly.
6457 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6458 since some C++ compilers masquerading as C compilers
6459 incorrectly reject 9223372036854775807. */
6460#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6461 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6462 && LARGE_OFF_T % 2147483647 == 1)
6463 ? 1 : -1];
6464int
6465main ()
6466{
6467
6468 ;
6469 return 0;
6470}
6471_ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 break
6474fi
6475rm -f core conftest.err conftest.$ac_objext
6476 CC="$CC -n32"
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 ac_cv_sys_largefile_CC=' -n32'; break
6479fi
6480rm -f core conftest.err conftest.$ac_objext
6481 break
6482 done
6483 CC=$ac_save_CC
6484 rm -f conftest.$ac_ext
6485 fi
6486fi
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6488$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6489 if test "$ac_cv_sys_largefile_CC" != no; then
6490 CC=$CC$ac_cv_sys_largefile_CC
6491 fi
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6494$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6495if ${ac_cv_sys_file_offset_bits+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497else
6498 while :; do
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500/* end confdefs.h. */
6501#include <sys/types.h>
6502 /* Check that off_t can represent 2**63 - 1 correctly.
6503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6504 since some C++ compilers masquerading as C compilers
6505 incorrectly reject 9223372036854775807. */
6506#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6508 && LARGE_OFF_T % 2147483647 == 1)
6509 ? 1 : -1];
6510int
6511main ()
6512{
6513
6514 ;
6515 return 0;
6516}
6517_ACEOF
6518if ac_fn_c_try_compile "$LINENO"; then :
6519 ac_cv_sys_file_offset_bits=no; break
6520fi
6521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523/* end confdefs.h. */
6524#define _FILE_OFFSET_BITS 64
6525#include <sys/types.h>
6526 /* Check that off_t can represent 2**63 - 1 correctly.
6527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6528 since some C++ compilers masquerading as C compilers
6529 incorrectly reject 9223372036854775807. */
6530#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6532 && LARGE_OFF_T % 2147483647 == 1)
6533 ? 1 : -1];
6534int
6535main ()
6536{
6537
6538 ;
6539 return 0;
6540}
6541_ACEOF
6542if ac_fn_c_try_compile "$LINENO"; then :
6543 ac_cv_sys_file_offset_bits=64; break
6544fi
6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 ac_cv_sys_file_offset_bits=unknown
6547 break
6548done
6549fi
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6551$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6552case $ac_cv_sys_file_offset_bits in #(
6553 no | unknown) ;;
6554 *)
6555cat >>confdefs.h <<_ACEOF
6556#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6557_ACEOF
6558;;
6559esac
6560rm -rf conftest*
6561 if test $ac_cv_sys_file_offset_bits = unknown; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6563$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6564if ${ac_cv_sys_large_files+:} false; then :
6565 $as_echo_n "(cached) " >&6
6566else
6567 while :; do
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569/* end confdefs.h. */
6570#include <sys/types.h>
6571 /* Check that off_t can represent 2**63 - 1 correctly.
6572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6573 since some C++ compilers masquerading as C compilers
6574 incorrectly reject 9223372036854775807. */
6575#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6577 && LARGE_OFF_T % 2147483647 == 1)
6578 ? 1 : -1];
6579int
6580main ()
6581{
6582
6583 ;
6584 return 0;
6585}
6586_ACEOF
6587if ac_fn_c_try_compile "$LINENO"; then :
6588 ac_cv_sys_large_files=no; break
6589fi
6590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592/* end confdefs.h. */
6593#define _LARGE_FILES 1
6594#include <sys/types.h>
6595 /* Check that off_t can represent 2**63 - 1 correctly.
6596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6597 since some C++ compilers masquerading as C compilers
6598 incorrectly reject 9223372036854775807. */
6599#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6601 && LARGE_OFF_T % 2147483647 == 1)
6602 ? 1 : -1];
6603int
6604main ()
6605{
6606
6607 ;
6608 return 0;
6609}
6610_ACEOF
6611if ac_fn_c_try_compile "$LINENO"; then :
6612 ac_cv_sys_large_files=1; break
6613fi
6614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 ac_cv_sys_large_files=unknown
6616 break
6617done
6618fi
6619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6620$as_echo "$ac_cv_sys_large_files" >&6; }
6621case $ac_cv_sys_large_files in #(
6622 no | unknown) ;;
6623 *)
6624cat >>confdefs.h <<_ACEOF
6625#define _LARGE_FILES $ac_cv_sys_large_files
6626_ACEOF
6627;;
6628esac
6629rm -rf conftest*
6630 fi
8eef2738
LB
6631
6632
97859b9d
JS
6633fi
6634
3477519f
FCE
6635for ac_func in ppoll
6636do :
6637 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
6638if test "x$ac_cv_func_ppoll" = xyes; then :
6639 cat >>confdefs.h <<_ACEOF
6640#define HAVE_PPOLL 1
6641_ACEOF
6642
6643fi
6644done
6645
6646for ac_func in openat
6647do :
6648 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
6649if test "x$ac_cv_func_openat" = xyes; then :
6650 cat >>confdefs.h <<_ACEOF
6651#define HAVE_OPENAT 1
6652_ACEOF
6653
6654fi
6655done
6656
6fdbaaca
FCE
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6658$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6659if ${ac_cv_path_SED+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661else
6662 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6663 for ac_i in 1 2 3 4 5 6 7; do
6664 ac_script="$ac_script$as_nl$ac_script"
6665 done
6666 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6667 { ac_script=; unset ac_script;}
6668 if test -z "$SED"; then
6669 ac_path_SED_found=false
6670 # Loop through the user's path and test for each of PROGNAME-LIST
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_prog in sed gsed; do
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6679 as_fn_executable_p "$ac_path_SED" || continue
6680# Check for GNU ac_path_SED and select it if it is found.
6681 # Check for GNU $ac_path_SED
6682case `"$ac_path_SED" --version 2>&1` in
6683*GNU*)
6684 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6685*)
6686 ac_count=0
6687 $as_echo_n 0123456789 >"conftest.in"
6688 while :
6689 do
6690 cat "conftest.in" "conftest.in" >"conftest.tmp"
6691 mv "conftest.tmp" "conftest.in"
6692 cp "conftest.in" "conftest.nl"
6693 $as_echo '' >> "conftest.nl"
6694 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6696 as_fn_arith $ac_count + 1 && ac_count=$as_val
6697 if test $ac_count -gt ${ac_path_SED_max-0}; then
6698 # Best one so far, save it but keep looking for a better one
6699 ac_cv_path_SED="$ac_path_SED"
6700 ac_path_SED_max=$ac_count
6701 fi
6702 # 10*(2^10) chars as input seems more than enough
6703 test $ac_count -gt 10 && break
6704 done
6705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6706esac
6707
6708 $ac_path_SED_found && break 3
6709 done
6710 done
6711 done
6712IFS=$as_save_IFS
6713 if test -z "$ac_cv_path_SED"; then
6714 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6715 fi
6716else
6717 ac_cv_path_SED=$SED
6718fi
6719
6720fi
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6722$as_echo "$ac_cv_path_SED" >&6; }
6723 SED="$ac_cv_path_SED"
6724 rm -f conftest.sed
6725
8f223b3e
FCE
6726
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6728$as_echo_n "checking whether NLS is requested... " >&6; }
6729 # Check whether --enable-nls was given.
6730if test "${enable_nls+set}" = set; then :
6731 enableval=$enable_nls; USE_NLS=$enableval
6732else
6733 USE_NLS=yes
6734fi
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6737$as_echo "$USE_NLS" >&6; }
6738
6739
6740
6741
6fdbaaca 6742 GETTEXT_MACRO_VERSION=0.19
8f223b3e
FCE
6743
6744
6745
6746
6747# Prepare PATH_SEPARATOR.
6748# The user is always right.
6749if test "${PATH_SEPARATOR+set}" != set; then
42f767d0
JL
6750 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6751 # contains only /bin. Note that ksh looks also at the FPATH variable,
6752 # so we have to set that as well for the test.
6753 PATH_SEPARATOR=:
6754 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6755 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6756 || PATH_SEPARATOR=';'
6757 }
8f223b3e
FCE
6758fi
6759
6760# Find out how to test for executable files. Don't use a zero-byte file,
6761# as systems may use methods other than mode bits to determine executability.
6762cat >conf$$.file <<_ASEOF
6763#! /bin/sh
6764exit 0
6765_ASEOF
6766chmod +x conf$$.file
6767if test -x conf$$.file >/dev/null 2>&1; then
6768 ac_executable_p="test -x"
6769else
6770 ac_executable_p="test -f"
6771fi
6772rm -f conf$$.file
6773
6774# Extract the first word of "msgfmt", so it can be a program name with args.
6775set dummy msgfmt; ac_word=$2
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 6778if ${ac_cv_path_MSGFMT+:} false; then :
8f223b3e
FCE
6779 $as_echo_n "(cached) " >&6
6780else
6781 case "$MSGFMT" in
6782 [\\/]* | ?:[\\/]*)
6783 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6784 ;;
6785 *)
6786 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6787 for ac_dir in $PATH; do
6788 IFS="$ac_save_IFS"
6789 test -z "$ac_dir" && ac_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6792 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6793 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6794 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6795 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6796 break 2
6797 fi
6798 fi
6799 done
6800 done
6801 IFS="$ac_save_IFS"
6802 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6803 ;;
7fbd9d09 6804esac
8f223b3e
FCE
6805fi
6806MSGFMT="$ac_cv_path_MSGFMT"
6807if test "$MSGFMT" != ":"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6809$as_echo "$MSGFMT" >&6; }
6810else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812$as_echo "no" >&6; }
6813fi
6814
6815 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6816set dummy gmsgfmt; ac_word=$2
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 6819if ${ac_cv_path_GMSGFMT+:} false; then :
8f223b3e
FCE
6820 $as_echo_n "(cached) " >&6
6821else
6822 case $GMSGFMT in
6823 [\\/]* | ?:[\\/]*)
6824 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6825 ;;
6826 *)
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8f223b3e
FCE
6834 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838done
6839 done
6840IFS=$as_save_IFS
6841
6842 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6843 ;;
7fbd9d09 6844esac
8f223b3e
FCE
6845fi
6846GMSGFMT=$ac_cv_path_GMSGFMT
6847if test -n "$GMSGFMT"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6849$as_echo "$GMSGFMT" >&6; }
6850else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
6853fi
6854
6855
6856
6857 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6858 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6859 *) MSGFMT_015=$MSGFMT ;;
6860 esac
6861
6862 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6863 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6864 *) GMSGFMT_015=$GMSGFMT ;;
6865 esac
6866
6867
6868
6869# Prepare PATH_SEPARATOR.
6870# The user is always right.
6871if test "${PATH_SEPARATOR+set}" != set; then
42f767d0
JL
6872 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6873 # contains only /bin. Note that ksh looks also at the FPATH variable,
6874 # so we have to set that as well for the test.
6875 PATH_SEPARATOR=:
6876 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6877 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6878 || PATH_SEPARATOR=';'
6879 }
8f223b3e
FCE
6880fi
6881
6882# Find out how to test for executable files. Don't use a zero-byte file,
6883# as systems may use methods other than mode bits to determine executability.
6884cat >conf$$.file <<_ASEOF
6885#! /bin/sh
6886exit 0
6887_ASEOF
6888chmod +x conf$$.file
6889if test -x conf$$.file >/dev/null 2>&1; then
6890 ac_executable_p="test -x"
6891else
6892 ac_executable_p="test -f"
6893fi
6894rm -f conf$$.file
6895
6896# Extract the first word of "xgettext", so it can be a program name with args.
6897set dummy xgettext; ac_word=$2
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 6900if ${ac_cv_path_XGETTEXT+:} false; then :
8f223b3e
FCE
6901 $as_echo_n "(cached) " >&6
6902else
6903 case "$XGETTEXT" in
6904 [\\/]* | ?:[\\/]*)
6905 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6906 ;;
6907 *)
6908 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6909 for ac_dir in $PATH; do
6910 IFS="$ac_save_IFS"
6911 test -z "$ac_dir" && ac_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6914 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6915 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6916 (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
6917 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6918 break 2
6919 fi
6920 fi
6921 done
6922 done
6923 IFS="$ac_save_IFS"
6924 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6925 ;;
6926esac
6927fi
6928XGETTEXT="$ac_cv_path_XGETTEXT"
6929if test "$XGETTEXT" != ":"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6931$as_echo "$XGETTEXT" >&6; }
6932else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934$as_echo "no" >&6; }
6935fi
6936
6937 rm -f messages.po
6938
6939 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6940 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6941 *) XGETTEXT_015=$XGETTEXT ;;
6942 esac
6943
6944
6945
6946# Prepare PATH_SEPARATOR.
6947# The user is always right.
6948if test "${PATH_SEPARATOR+set}" != set; then
42f767d0
JL
6949 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6950 # contains only /bin. Note that ksh looks also at the FPATH variable,
6951 # so we have to set that as well for the test.
6952 PATH_SEPARATOR=:
6953 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6954 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6955 || PATH_SEPARATOR=';'
6956 }
8f223b3e
FCE
6957fi
6958
6959# Find out how to test for executable files. Don't use a zero-byte file,
6960# as systems may use methods other than mode bits to determine executability.
6961cat >conf$$.file <<_ASEOF
6962#! /bin/sh
6963exit 0
6964_ASEOF
6965chmod +x conf$$.file
6966if test -x conf$$.file >/dev/null 2>&1; then
6967 ac_executable_p="test -x"
6968else
6969 ac_executable_p="test -f"
6970fi
6971rm -f conf$$.file
6972
6973# Extract the first word of "msgmerge", so it can be a program name with args.
6974set dummy msgmerge; ac_word=$2
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 6977if ${ac_cv_path_MSGMERGE+:} false; then :
8f223b3e
FCE
6978 $as_echo_n "(cached) " >&6
6979else
6980 case "$MSGMERGE" in
6981 [\\/]* | ?:[\\/]*)
6982 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6983 ;;
6984 *)
6985 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6986 for ac_dir in $PATH; do
6987 IFS="$ac_save_IFS"
6988 test -z "$ac_dir" && ac_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6991 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6992 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6993 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6994 break 2
6995 fi
6996 fi
6997 done
6998 done
6999 IFS="$ac_save_IFS"
7000 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7001 ;;
7002esac
7003fi
7004MSGMERGE="$ac_cv_path_MSGMERGE"
7005if test "$MSGMERGE" != ":"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7007$as_echo "$MSGMERGE" >&6; }
7008else
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010$as_echo "no" >&6; }
7011fi
7012
7013
7014 test -n "$localedir" || localedir='${datadir}/locale'
7015
7016
7017 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7018
7019
7020 ac_config_commands="$ac_config_commands po-directories"
7021
7022
7023
7024 if test "X$prefix" = "XNONE"; then
7025 acl_final_prefix="$ac_default_prefix"
7026 else
7027 acl_final_prefix="$prefix"
8ae7a94a 7028 fi
8f223b3e
FCE
7029 if test "X$exec_prefix" = "XNONE"; then
7030 acl_final_exec_prefix='${prefix}'
7031 else
7032 acl_final_exec_prefix="$exec_prefix"
7033 fi
7034 acl_save_prefix="$prefix"
7035 prefix="$acl_final_prefix"
7036 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7037 prefix="$acl_save_prefix"
7038
8ae7a94a 7039
42f767d0 7040
8f223b3e
FCE
7041# Check whether --with-gnu-ld was given.
7042if test "${with_gnu_ld+set}" = set; then :
7043 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7044else
7045 with_gnu_ld=no
8ae7a94a
FCE
7046fi
7047
8f223b3e
FCE
7048# Prepare PATH_SEPARATOR.
7049# The user is always right.
7050if test "${PATH_SEPARATOR+set}" != set; then
42f767d0
JL
7051 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7052 # contains only /bin. Note that ksh looks also at the FPATH variable,
7053 # so we have to set that as well for the test.
7054 PATH_SEPARATOR=:
7055 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7056 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7057 || PATH_SEPARATOR=';'
7058 }
8f223b3e 7059fi
42f767d0 7060
8f223b3e
FCE
7061ac_prog=ld
7062if test "$GCC" = yes; then
7063 # Check if gcc -print-prog-name=ld gives a path.
42f767d0
JL
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7065$as_echo_n "checking for ld used by $CC... " >&6; }
8f223b3e
FCE
7066 case $host in
7067 *-*-mingw*)
7068 # gcc leaves a trailing carriage return which upsets mingw
7069 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7070 *)
7071 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7072 esac
7073 case $ac_prog in
7074 # Accept absolute paths.
42f767d0 7075 [\\/]* | ?:[\\/]*)
8f223b3e 7076 re_direlt='/[^/][^/]*/\.\./'
42f767d0
JL
7077 # Canonicalize the pathname of ld
7078 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7079 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
8f223b3e
FCE
7080 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7081 done
7082 test -z "$LD" && LD="$ac_prog"
7083 ;;
7084 "")
7085 # If it fails, then pretend we aren't using GCC.
7086 ac_prog=ld
7087 ;;
7088 *)
7089 # If it is relative, then search for the first ld in PATH.
7090 with_gnu_ld=unknown
7091 ;;
7092 esac
7093elif test "$with_gnu_ld" = yes; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7095$as_echo_n "checking for GNU ld... " >&6; }
7096else
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7098$as_echo_n "checking for non-GNU ld... " >&6; }
7099fi
c3de29bd 7100if ${acl_cv_path_LD+:} false; then :
8f223b3e
FCE
7101 $as_echo_n "(cached) " >&6
7102else
7103 if test -z "$LD"; then
42f767d0 7104 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8f223b3e 7105 for ac_dir in $PATH; do
42f767d0 7106 IFS="$acl_save_ifs"
8f223b3e
FCE
7107 test -z "$ac_dir" && ac_dir=.
7108 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7109 acl_cv_path_LD="$ac_dir/$ac_prog"
7110 # Check to see if the program is GNU ld. I'd rather use --version,
42f767d0 7111 # but apparently some variants of GNU ld only accept -v.
8f223b3e 7112 # Break only if it was the GNU/non-GNU ld that we prefer.
42f767d0 7113 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8f223b3e 7114 *GNU* | *'with BFD'*)
42f767d0
JL
7115 test "$with_gnu_ld" != no && break
7116 ;;
8f223b3e 7117 *)
42f767d0
JL
7118 test "$with_gnu_ld" != yes && break
7119 ;;
8f223b3e
FCE
7120 esac
7121 fi
7122 done
42f767d0 7123 IFS="$acl_save_ifs"
8f223b3e
FCE
7124else
7125 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7126fi
8ae7a94a
FCE
7127fi
7128
8f223b3e
FCE
7129LD="$acl_cv_path_LD"
7130if test -n "$LD"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7132$as_echo "$LD" >&6; }
7133else
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135$as_echo "no" >&6; }
7136fi
5d4aa1f5 7137test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8f223b3e
FCE
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7139$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
c3de29bd 7140if ${acl_cv_prog_gnu_ld+:} false; then :
8f223b3e
FCE
7141 $as_echo_n "(cached) " >&6
7142else
42f767d0 7143 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8f223b3e
FCE
7144case `$LD -v 2>&1 </dev/null` in
7145*GNU* | *'with BFD'*)
42f767d0
JL
7146 acl_cv_prog_gnu_ld=yes
7147 ;;
8f223b3e 7148*)
42f767d0
JL
7149 acl_cv_prog_gnu_ld=no
7150 ;;
8f223b3e
FCE
7151esac
7152fi
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7154$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7155with_gnu_ld=$acl_cv_prog_gnu_ld
7fbd9d09 7156
2f1a1aea 7157
2f1a1aea
FCE
7158
7159
8f223b3e
FCE
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7161$as_echo_n "checking for shared library run path origin... " >&6; }
c3de29bd 7162if ${acl_cv_rpath+:} false; then :
8f223b3e
FCE
7163 $as_echo_n "(cached) " >&6
7164else
2f1a1aea 7165
8f223b3e
FCE
7166 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7167 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7168 . ./conftest.sh
7169 rm -f ./conftest.sh
7170 acl_cv_rpath=done
7171
7172fi
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7174$as_echo "$acl_cv_rpath" >&6; }
7175 wl="$acl_cv_wl"
7176 acl_libext="$acl_cv_libext"
7177 acl_shlibext="$acl_cv_shlibext"
7178 acl_libname_spec="$acl_cv_libname_spec"
7179 acl_library_names_spec="$acl_cv_library_names_spec"
7180 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7181 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7182 acl_hardcode_direct="$acl_cv_hardcode_direct"
7183 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7184 # Check whether --enable-rpath was given.
7185if test "${enable_rpath+set}" = set; then :
7186 enableval=$enable_rpath; :
2f1a1aea 7187else
8f223b3e 7188 enable_rpath=yes
7fbd9d09
FCE
7189fi
7190
7191
7192
8f223b3e
FCE
7193
7194 acl_libdirstem=lib
7195 acl_libdirstem2=
7196 case "$host_os" in
7197 solaris*)
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7199$as_echo_n "checking for 64-bit host... " >&6; }
c3de29bd 7200if ${gl_cv_solaris_64bit+:} false; then :
0710d850 7201 $as_echo_n "(cached) " >&6
7fbd9d09 7202else
8f223b3e
FCE
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204/* end confdefs.h. */
7205
7206#ifdef _LP64
7207sixtyfour bits
7208#endif
7209
7210_ACEOF
7211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7213 gl_cv_solaris_64bit=yes
7214else
7215 gl_cv_solaris_64bit=no
7216fi
7217rm -f conftest*
7218
7219
7220fi
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7222$as_echo "$gl_cv_solaris_64bit" >&6; }
7223 if test $gl_cv_solaris_64bit = yes; then
7224 acl_libdirstem=lib/64
7225 case "$host_cpu" in
7226 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7227 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7228 esac
7229 fi
7230 ;;
7231 *)
7232 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7233 if test -n "$searchpath"; then
7234 acl_save_IFS="${IFS= }"; IFS=":"
7235 for searchdir in $searchpath; do
7236 if test -d "$searchdir"; then
7237 case "$searchdir" in
7238 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7239 */../ | */.. )
7240 # Better ignore directories of this form. They are misleading.
7241 ;;
7242 *) searchdir=`cd "$searchdir" && pwd`
7243 case "$searchdir" in
7244 */lib64 ) acl_libdirstem=lib64 ;;
7245 esac ;;
7246 esac
7247 fi
7248 done
7249 IFS="$acl_save_IFS"
7250 fi
7251 ;;
7252 esac
7253 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266 use_additional=yes
7267
7268 acl_save_prefix="$prefix"
7269 prefix="$acl_final_prefix"
7270 acl_save_exec_prefix="$exec_prefix"
7271 exec_prefix="$acl_final_exec_prefix"
7272
7273 eval additional_includedir=\"$includedir\"
7274 eval additional_libdir=\"$libdir\"
7275
7276 exec_prefix="$acl_save_exec_prefix"
7277 prefix="$acl_save_prefix"
7278
7279
7280# Check whether --with-libiconv-prefix was given.
7281if test "${with_libiconv_prefix+set}" = set; then :
7282 withval=$with_libiconv_prefix;
7283 if test "X$withval" = "Xno"; then
7284 use_additional=no
7285 else
7286 if test "X$withval" = "X"; then
7287
7288 acl_save_prefix="$prefix"
7289 prefix="$acl_final_prefix"
7290 acl_save_exec_prefix="$exec_prefix"
7291 exec_prefix="$acl_final_exec_prefix"
7292
7293 eval additional_includedir=\"$includedir\"
7294 eval additional_libdir=\"$libdir\"
7295
7296 exec_prefix="$acl_save_exec_prefix"
7297 prefix="$acl_save_prefix"
7298
7299 else
7300 additional_includedir="$withval/include"
7301 additional_libdir="$withval/$acl_libdirstem"
7302 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7303 && ! test -d "$withval/$acl_libdirstem"; then
7304 additional_libdir="$withval/$acl_libdirstem2"
7305 fi
7306 fi
7fbd9d09 7307 fi
7fbd9d09 7308
8f223b3e
FCE
7309fi
7310
7311 LIBICONV=
7312 LTLIBICONV=
7313 INCICONV=
7314 LIBICONV_PREFIX=
7315 HAVE_LIBICONV=
7316 rpathdirs=
7317 ltrpathdirs=
7318 names_already_handled=
7319 names_next_round='iconv '
7320 while test -n "$names_next_round"; do
7321 names_this_round="$names_next_round"
7322 names_next_round=
7323 for name in $names_this_round; do
7324 already_handled=
7325 for n in $names_already_handled; do
7326 if test "$n" = "$name"; then
7327 already_handled=yes
7328 break
7329 fi
7330 done
7331 if test -z "$already_handled"; then
7332 names_already_handled="$names_already_handled $name"
42f767d0 7333 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8f223b3e
FCE
7334 eval value=\"\$HAVE_LIB$uppername\"
7335 if test -n "$value"; then
7336 if test "$value" = yes; then
7337 eval value=\"\$LIB$uppername\"
7338 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7339 eval value=\"\$LTLIB$uppername\"
7340 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7341 else
7342 :
7343 fi
7344 else
7345 found_dir=
7346 found_la=
7347 found_so=
7348 found_a=
7349 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7350 if test -n "$acl_shlibext"; then
7351 shrext=".$acl_shlibext" # typically: shrext=.so
7352 else
7353 shrext=
7354 fi
7355 if test $use_additional = yes; then
7356 dir="$additional_libdir"
7357 if test -n "$acl_shlibext"; then
7358 if test -f "$dir/$libname$shrext"; then
7359 found_dir="$dir"
7360 found_so="$dir/$libname$shrext"
7361 else
7362 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7363 ver=`(cd "$dir" && \
7364 for f in "$libname$shrext".*; do echo "$f"; done \
7365 | sed -e "s,^$libname$shrext\\\\.,," \
7366 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7367 | sed 1q ) 2>/dev/null`
7368 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7369 found_dir="$dir"
7370 found_so="$dir/$libname$shrext.$ver"
7371 fi
7372 else
7373 eval library_names=\"$acl_library_names_spec\"
7374 for f in $library_names; do
7375 if test -f "$dir/$f"; then
7376 found_dir="$dir"
7377 found_so="$dir/$f"
7378 break
7379 fi
7380 done
7381 fi
7382 fi
7383 fi
7384 if test "X$found_dir" = "X"; then
7385 if test -f "$dir/$libname.$acl_libext"; then
7386 found_dir="$dir"
7387 found_a="$dir/$libname.$acl_libext"
7388 fi
7389 fi
7390 if test "X$found_dir" != "X"; then
7391 if test -f "$dir/$libname.la"; then
7392 found_la="$dir/$libname.la"
7393 fi
7394 fi
7395 fi
7396 if test "X$found_dir" = "X"; then
7397 for x in $LDFLAGS $LTLIBICONV; do
7398
7399 acl_save_prefix="$prefix"
7400 prefix="$acl_final_prefix"
7401 acl_save_exec_prefix="$exec_prefix"
7402 exec_prefix="$acl_final_exec_prefix"
7403 eval x=\"$x\"
7404 exec_prefix="$acl_save_exec_prefix"
7405 prefix="$acl_save_prefix"
7406
7407 case "$x" in
7408 -L*)
7409 dir=`echo "X$x" | sed -e 's/^X-L//'`
7410 if test -n "$acl_shlibext"; then
7411 if test -f "$dir/$libname$shrext"; then
7412 found_dir="$dir"
7413 found_so="$dir/$libname$shrext"
7414 else
7415 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7416 ver=`(cd "$dir" && \
7417 for f in "$libname$shrext".*; do echo "$f"; done \
7418 | sed -e "s,^$libname$shrext\\\\.,," \
7419 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7420 | sed 1q ) 2>/dev/null`
7421 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7422 found_dir="$dir"
7423 found_so="$dir/$libname$shrext.$ver"
7424 fi
7425 else
7426 eval library_names=\"$acl_library_names_spec\"
7427 for f in $library_names; do
7428 if test -f "$dir/$f"; then
7429 found_dir="$dir"
7430 found_so="$dir/$f"
7431 break
7432 fi
7433 done
7434 fi
7435 fi
7436 fi
7437 if test "X$found_dir" = "X"; then
7438 if test -f "$dir/$libname.$acl_libext"; then
7439 found_dir="$dir"
7440 found_a="$dir/$libname.$acl_libext"
7441 fi
7442 fi
7443 if test "X$found_dir" != "X"; then
7444 if test -f "$dir/$libname.la"; then
7445 found_la="$dir/$libname.la"
7446 fi
7447 fi
7448 ;;
7449 esac
7450 if test "X$found_dir" != "X"; then
7451 break
7452 fi
7453 done
7454 fi
7455 if test "X$found_dir" != "X"; then
7456 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7457 if test "X$found_so" != "X"; then
7458 if test "$enable_rpath" = no \
7459 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7460 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7461 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7462 else
7463 haveit=
7464 for x in $ltrpathdirs; do
7465 if test "X$x" = "X$found_dir"; then
7466 haveit=yes
7467 break
7468 fi
7469 done
7470 if test -z "$haveit"; then
7471 ltrpathdirs="$ltrpathdirs $found_dir"
7472 fi
7473 if test "$acl_hardcode_direct" = yes; then
7474 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7475 else
7476 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7477 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7478 haveit=
7479 for x in $rpathdirs; do
7480 if test "X$x" = "X$found_dir"; then
7481 haveit=yes
7482 break
7483 fi
7484 done
7485 if test -z "$haveit"; then
7486 rpathdirs="$rpathdirs $found_dir"
7487 fi
7488 else
7489 haveit=
7490 for x in $LDFLAGS $LIBICONV; do
7491
7492 acl_save_prefix="$prefix"
7493 prefix="$acl_final_prefix"
7494 acl_save_exec_prefix="$exec_prefix"
7495 exec_prefix="$acl_final_exec_prefix"
7496 eval x=\"$x\"
7497 exec_prefix="$acl_save_exec_prefix"
7498 prefix="$acl_save_prefix"
7499
7500 if test "X$x" = "X-L$found_dir"; then
7501 haveit=yes
7502 break
7503 fi
7504 done
7505 if test -z "$haveit"; then
7506 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7507 fi
7508 if test "$acl_hardcode_minus_L" != no; then
7509 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7510 else
7511 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7512 fi
7513 fi
7514 fi
7515 fi
7516 else
7517 if test "X$found_a" != "X"; then
7518 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7519 else
7520 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7521 fi
7522 fi
7523 additional_includedir=
7524 case "$found_dir" in
7525 */$acl_libdirstem | */$acl_libdirstem/)
7526 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7527 if test "$name" = 'iconv'; then
7528 LIBICONV_PREFIX="$basedir"
7529 fi
7530 additional_includedir="$basedir/include"
7531 ;;
7532 */$acl_libdirstem2 | */$acl_libdirstem2/)
7533 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7534 if test "$name" = 'iconv'; then
7535 LIBICONV_PREFIX="$basedir"
7536 fi
7537 additional_includedir="$basedir/include"
7538 ;;
7539 esac
7540 if test "X$additional_includedir" != "X"; then
7541 if test "X$additional_includedir" != "X/usr/include"; then
7542 haveit=
7543 if test "X$additional_includedir" = "X/usr/local/include"; then
7544 if test -n "$GCC"; then
7545 case $host_os in
7546 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7547 esac
7548 fi
7549 fi
7550 if test -z "$haveit"; then
7551 for x in $CPPFLAGS $INCICONV; do
7552
7553 acl_save_prefix="$prefix"
7554 prefix="$acl_final_prefix"
7555 acl_save_exec_prefix="$exec_prefix"
7556 exec_prefix="$acl_final_exec_prefix"
7557 eval x=\"$x\"
7558 exec_prefix="$acl_save_exec_prefix"
7559 prefix="$acl_save_prefix"
7560
7561 if test "X$x" = "X-I$additional_includedir"; then
7562 haveit=yes
7563 break
7564 fi
7565 done
7566 if test -z "$haveit"; then
7567 if test -d "$additional_includedir"; then
7568 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7569 fi
7570 fi
7571 fi
7572 fi
7573 fi
7574 if test -n "$found_la"; then
7575 save_libdir="$libdir"
7576 case "$found_la" in
7577 */* | *\\*) . "$found_la" ;;
7578 *) . "./$found_la" ;;
7579 esac
7580 libdir="$save_libdir"
7581 for dep in $dependency_libs; do
7582 case "$dep" in
7583 -L*)
7584 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7585 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7586 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7587 haveit=
7588 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7589 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7590 if test -n "$GCC"; then
7591 case $host_os in
7592 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7593 esac
7594 fi
7595 fi
7596 if test -z "$haveit"; then
7597 haveit=
7598 for x in $LDFLAGS $LIBICONV; 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 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7616 fi
7617 fi
7618 haveit=
7619 for x in $LDFLAGS $LTLIBICONV; do
7620
7621 acl_save_prefix="$prefix"
7622 prefix="$acl_final_prefix"
7623 acl_save_exec_prefix="$exec_prefix"
7624 exec_prefix="$acl_final_exec_prefix"
7625 eval x=\"$x\"
7626 exec_prefix="$acl_save_exec_prefix"
7627 prefix="$acl_save_prefix"
7628
7629 if test "X$x" = "X-L$additional_libdir"; then
7630 haveit=yes
7631 break
7632 fi
7633 done
7634 if test -z "$haveit"; then
7635 if test -d "$additional_libdir"; then
7636 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7637 fi
7638 fi
7639 fi
7640 fi
7641 ;;
7642 -R*)
7643 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7644 if test "$enable_rpath" != no; then
7645 haveit=
7646 for x in $rpathdirs; do
7647 if test "X$x" = "X$dir"; then
7648 haveit=yes
7649 break
7650 fi
7651 done
7652 if test -z "$haveit"; then
7653 rpathdirs="$rpathdirs $dir"
7654 fi
7655 haveit=
7656 for x in $ltrpathdirs; do
7657 if test "X$x" = "X$dir"; then
7658 haveit=yes
7659 break
7660 fi
7661 done
7662 if test -z "$haveit"; then
7663 ltrpathdirs="$ltrpathdirs $dir"
7664 fi
7665 fi
7666 ;;
7667 -l*)
7668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7669 ;;
7670 *.la)
7671 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7672 ;;
7673 *)
7674 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7675 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7676 ;;
7677 esac
7678 done
7679 fi
7680 else
7681 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7682 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7683 fi
7684 fi
7685 fi
0710d850 7686 done
7fbd9d09 7687 done
8f223b3e
FCE
7688 if test "X$rpathdirs" != "X"; then
7689 if test -n "$acl_hardcode_libdir_separator"; then
7690 alldirs=
7691 for found_dir in $rpathdirs; do
7692 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7693 done
7694 acl_save_libdir="$libdir"
7695 libdir="$alldirs"
7696 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7697 libdir="$acl_save_libdir"
7698 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7699 else
7700 for found_dir in $rpathdirs; do
7701 acl_save_libdir="$libdir"
7702 libdir="$found_dir"
7703 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7704 libdir="$acl_save_libdir"
7705 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7706 done
7707 fi
7708 fi
7709 if test "X$ltrpathdirs" != "X"; then
7710 for found_dir in $ltrpathdirs; do
7711 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7712 done
0710d850 7713 fi
70d28673 7714
7fbd9d09 7715
70d28673 7716
8f223b3e
FCE
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
42f767d0
JL
7742
7743
7744
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7746$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7747if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7748 $as_echo_n "(cached) " >&6
7749else
7750 gt_save_LIBS="$LIBS"
7751 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h. */
7754#include <CoreFoundation/CFPreferences.h>
7755int
7756main ()
7757{
7758CFPreferencesCopyAppValue(NULL, NULL)
7759 ;
7760 return 0;
7761}
7762_ACEOF
7763if ac_fn_c_try_link "$LINENO"; then :
7764 gt_cv_func_CFPreferencesCopyAppValue=yes
7765else
7766 gt_cv_func_CFPreferencesCopyAppValue=no
7767fi
7768rm -f core conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770 LIBS="$gt_save_LIBS"
7771fi
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7773$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7774 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7775
7776$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7777
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
7780$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
7781if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
7782 $as_echo_n "(cached) " >&6
7783else
7784 gt_save_LIBS="$LIBS"
7785 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787/* end confdefs.h. */
7788#include <CoreFoundation/CFLocale.h>
7789int
7790main ()
7791{
7792CFLocaleCopyCurrent();
7793 ;
7794 return 0;
7795}
7796_ACEOF
7797if ac_fn_c_try_link "$LINENO"; then :
7798 gt_cv_func_CFLocaleCopyCurrent=yes
7799else
7800 gt_cv_func_CFLocaleCopyCurrent=no
7801fi
7802rm -f core conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
7804 LIBS="$gt_save_LIBS"
7805fi
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7807$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
7808 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7809
7810$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
7811
7812 fi
7813 INTL_MACOSX_LIBS=
7814 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7815 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7816 fi
8f223b3e
FCE
7817
7818
7819
7820
7821
7822
7823 LIBINTL=
7824 LTLIBINTL=
7825 POSUB=
7826
7827 case " $gt_needs " in
7828 *" need-formatstring-macros "*) gt_api_version=3 ;;
7829 *" need-ngettext "*) gt_api_version=2 ;;
7830 *) gt_api_version=1 ;;
7831 esac
7832 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7833 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7834
7835 if test "$USE_NLS" = "yes"; then
7836 gt_use_preinstalled_gnugettext=no
7837
7838
7839 if test $gt_api_version -ge 3; then
7840 gt_revision_test_code='
7841#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7842#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7843#endif
7844typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7845'
7846 else
7847 gt_revision_test_code=
7848 fi
7849 if test $gt_api_version -ge 2; then
7850 gt_expression_test_code=' + * ngettext ("", "", 0)'
7851 else
7852 gt_expression_test_code=
7853 fi
7854
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7856$as_echo_n "checking for GNU gettext in libc... " >&6; }
c3de29bd 7857if eval \${$gt_func_gnugettext_libc+:} false; then :
0710d850 7858 $as_echo_n "(cached) " >&6
2f1a1aea 7859else
1ef0423a 7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 7861/* end confdefs.h. */
42f767d0 7862
8f223b3e 7863#include <libintl.h>
891810c2 7864#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8f223b3e
FCE
7865extern int _nl_msg_cat_cntr;
7866extern int *_nl_domain_bindings;
891810c2
FCE
7867#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7868#else
7869#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7870#endif
7871$gt_revision_test_code
42f767d0 7872
2f1a1aea
FCE
7873int
7874main ()
7875{
42f767d0 7876
8f223b3e 7877bindtextdomain ("", "");
891810c2 7878return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
42f767d0 7879
2f1a1aea
FCE
7880 ;
7881 return 0;
7882}
7883_ACEOF
8f223b3e
FCE
7884if ac_fn_c_try_link "$LINENO"; then :
7885 eval "$gt_func_gnugettext_libc=yes"
2f1a1aea 7886else
8f223b3e 7887 eval "$gt_func_gnugettext_libc=no"
2f1a1aea 7888fi
8f223b3e
FCE
7889rm -f core conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891fi
7892eval ac_res=\$$gt_func_gnugettext_libc
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7894$as_echo "$ac_res" >&6; }
2f1a1aea 7895
8f223b3e 7896 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
2f1a1aea 7897
1ef0423a 7898
8f223b3e
FCE
7899
7900
7901
7902 am_save_CPPFLAGS="$CPPFLAGS"
7903
7904 for element in $INCICONV; do
7905 haveit=
7906 for x in $CPPFLAGS; do
7907
7908 acl_save_prefix="$prefix"
7909 prefix="$acl_final_prefix"
7910 acl_save_exec_prefix="$exec_prefix"
7911 exec_prefix="$acl_final_exec_prefix"
7912 eval x=\"$x\"
7913 exec_prefix="$acl_save_exec_prefix"
7914 prefix="$acl_save_prefix"
7915
7916 if test "X$x" = "X$element"; then
7917 haveit=yes
7918 break
7919 fi
7920 done
7921 if test -z "$haveit"; then
7922 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7923 fi
7924 done
7925
7926
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7928$as_echo_n "checking for iconv... " >&6; }
c3de29bd 7929if ${am_cv_func_iconv+:} false; then :
8f223b3e 7930 $as_echo_n "(cached) " >&6
2f1a1aea 7931else
8f223b3e
FCE
7932
7933 am_cv_func_iconv="no, consider installing GNU libiconv"
7934 am_cv_lib_iconv=no
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936/* end confdefs.h. */
42f767d0 7937
8f223b3e
FCE
7938#include <stdlib.h>
7939#include <iconv.h>
42f767d0 7940
8f223b3e
FCE
7941int
7942main ()
7943{
7944iconv_t cd = iconv_open("","");
42f767d0
JL
7945 iconv(cd,NULL,NULL,NULL,NULL);
7946 iconv_close(cd);
8f223b3e
FCE
7947 ;
7948 return 0;
7949}
7950_ACEOF
7951if ac_fn_c_try_link "$LINENO"; then :
7952 am_cv_func_iconv=yes
2f1a1aea 7953fi
8f223b3e
FCE
7954rm -f core conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7956 if test "$am_cv_func_iconv" != yes; then
7957 am_save_LIBS="$LIBS"
7958 LIBS="$LIBS $LIBICONV"
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960/* end confdefs.h. */
42f767d0 7961
8f223b3e
FCE
7962#include <stdlib.h>
7963#include <iconv.h>
42f767d0 7964
8f223b3e
FCE
7965int
7966main ()
7967{
7968iconv_t cd = iconv_open("","");
42f767d0
JL
7969 iconv(cd,NULL,NULL,NULL,NULL);
7970 iconv_close(cd);
8f223b3e
FCE
7971 ;
7972 return 0;
7973}
7974_ACEOF
7975if ac_fn_c_try_link "$LINENO"; then :
7976 am_cv_lib_iconv=yes
7977 am_cv_func_iconv=yes
7978fi
7979rm -f core conftest.err conftest.$ac_objext \
7980 conftest$ac_exeext conftest.$ac_ext
7981 LIBS="$am_save_LIBS"
7982 fi
2f1a1aea
FCE
7983
7984fi
8f223b3e
FCE
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7986$as_echo "$am_cv_func_iconv" >&6; }
7987 if test "$am_cv_func_iconv" = yes; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7989$as_echo_n "checking for working iconv... " >&6; }
c3de29bd 7990if ${am_cv_func_iconv_works+:} false; then :
8f223b3e
FCE
7991 $as_echo_n "(cached) " >&6
7992else
2f1a1aea 7993
42f767d0 7994 am_save_LIBS="$LIBS"
8f223b3e
FCE
7995 if test $am_cv_lib_iconv = yes; then
7996 LIBS="$LIBS $LIBICONV"
7997 fi
6fdbaaca
FCE
7998 am_cv_func_iconv_works=no
7999 for ac_iconv_const in '' 'const'; do
8000 if test "$cross_compiling" = yes; then :
8001 case "$host_os" in
8002 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8003 *) am_cv_func_iconv_works="guessing yes" ;;
8004 esac
8f223b3e 8005else
1ef0423a 8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 8007/* end confdefs.h. */
2f1a1aea 8008
8f223b3e
FCE
8009#include <iconv.h>
8010#include <string.h>
6fdbaaca
FCE
8011
8012#ifndef ICONV_CONST
8013# define ICONV_CONST $ac_iconv_const
8014#endif
8015
8016int
8017main ()
8f223b3e 8018{
6fdbaaca 8019int result = 0;
8f223b3e
FCE
8020 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8021 returns. */
8022 {
8023 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8024 if (cd_utf8_to_88591 != (iconv_t)(-1))
8025 {
6fdbaaca 8026 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8f223b3e 8027 char buf[10];
6fdbaaca 8028 ICONV_CONST char *inptr = input;
8f223b3e
FCE
8029 size_t inbytesleft = strlen (input);
8030 char *outptr = buf;
8031 size_t outbytesleft = sizeof (buf);
8032 size_t res = iconv (cd_utf8_to_88591,
6fdbaaca 8033 &inptr, &inbytesleft,
8f223b3e
FCE
8034 &outptr, &outbytesleft);
8035 if (res == 0)
42f767d0
JL
8036 result |= 1;
8037 iconv_close (cd_utf8_to_88591);
8038 }
8039 }
8040 /* Test against Solaris 10 bug: Failures are not distinguishable from
8041 successful returns. */
8042 {
8043 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8044 if (cd_ascii_to_88591 != (iconv_t)(-1))
8045 {
6fdbaaca 8046 static ICONV_CONST char input[] = "\263";
42f767d0 8047 char buf[10];
6fdbaaca 8048 ICONV_CONST char *inptr = input;
42f767d0
JL
8049 size_t inbytesleft = strlen (input);
8050 char *outptr = buf;
8051 size_t outbytesleft = sizeof (buf);
8052 size_t res = iconv (cd_ascii_to_88591,
6fdbaaca 8053 &inptr, &inbytesleft,
42f767d0
JL
8054 &outptr, &outbytesleft);
8055 if (res == 0)
8056 result |= 2;
8057 iconv_close (cd_ascii_to_88591);
8058 }
8059 }
8060 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8061 {
8062 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8063 if (cd_88591_to_utf8 != (iconv_t)(-1))
8064 {
6fdbaaca 8065 static ICONV_CONST char input[] = "\304";
42f767d0 8066 static char buf[2] = { (char)0xDE, (char)0xAD };
6fdbaaca 8067 ICONV_CONST char *inptr = input;
42f767d0
JL
8068 size_t inbytesleft = 1;
8069 char *outptr = buf;
8070 size_t outbytesleft = 1;
8071 size_t res = iconv (cd_88591_to_utf8,
6fdbaaca 8072 &inptr, &inbytesleft,
42f767d0
JL
8073 &outptr, &outbytesleft);
8074 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8075 result |= 4;
8076 iconv_close (cd_88591_to_utf8);
8f223b3e
FCE
8077 }
8078 }
8f223b3e
FCE
8079#if 0 /* This bug could be worked around by the caller. */
8080 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8081 {
8082 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8083 if (cd_88591_to_utf8 != (iconv_t)(-1))
8084 {
6fdbaaca 8085 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8f223b3e 8086 char buf[50];
6fdbaaca 8087 ICONV_CONST char *inptr = input;
8f223b3e
FCE
8088 size_t inbytesleft = strlen (input);
8089 char *outptr = buf;
8090 size_t outbytesleft = sizeof (buf);
8091 size_t res = iconv (cd_88591_to_utf8,
6fdbaaca 8092 &inptr, &inbytesleft,
8f223b3e
FCE
8093 &outptr, &outbytesleft);
8094 if ((int)res > 0)
42f767d0
JL
8095 result |= 8;
8096 iconv_close (cd_88591_to_utf8);
8f223b3e
FCE
8097 }
8098 }
8099#endif
8100 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8101 provided. */
8102 if (/* Try standardized names. */
8103 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8104 /* Try IRIX, OSF/1 names. */
8105 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8106 /* Try AIX names. */
8107 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8108 /* Try HP-UX names. */
8109 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
42f767d0
JL
8110 result |= 16;
8111 return result;
6fdbaaca
FCE
8112
8113 ;
8114 return 0;
8f223b3e 8115}
2f1a1aea 8116_ACEOF
8f223b3e
FCE
8117if ac_fn_c_try_run "$LINENO"; then :
8118 am_cv_func_iconv_works=yes
2f1a1aea 8119fi
8f223b3e
FCE
8120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8121 conftest.$ac_objext conftest.beam conftest.$ac_ext
8122fi
8123
6fdbaaca
FCE
8124 test "$am_cv_func_iconv_works" = no || break
8125 done
8f223b3e 8126 LIBS="$am_save_LIBS"
2f1a1aea
FCE
8127
8128fi
8f223b3e
FCE
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8130$as_echo "$am_cv_func_iconv_works" >&6; }
8131 case "$am_cv_func_iconv_works" in
8132 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8133 *) am_func_iconv=yes ;;
8134 esac
8135 else
8136 am_func_iconv=no am_cv_lib_iconv=no
8137 fi
8138 if test "$am_func_iconv" = yes; then
2f1a1aea 8139
8f223b3e
FCE
8140$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8141
8142 fi
8143 if test "$am_cv_lib_iconv" = yes; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8145$as_echo_n "checking how to link with libiconv... " >&6; }
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8147$as_echo "$LIBICONV" >&6; }
8148 else
8149 CPPFLAGS="$am_save_CPPFLAGS"
8150 LIBICONV=
8151 LTLIBICONV=
8152 fi
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164 use_additional=yes
8165
8166 acl_save_prefix="$prefix"
8167 prefix="$acl_final_prefix"
8168 acl_save_exec_prefix="$exec_prefix"
8169 exec_prefix="$acl_final_exec_prefix"
8170
8171 eval additional_includedir=\"$includedir\"
8172 eval additional_libdir=\"$libdir\"
8173
8174 exec_prefix="$acl_save_exec_prefix"
8175 prefix="$acl_save_prefix"
8176
8177
8178# Check whether --with-libintl-prefix was given.
8179if test "${with_libintl_prefix+set}" = set; then :
8180 withval=$with_libintl_prefix;
8181 if test "X$withval" = "Xno"; then
8182 use_additional=no
8183 else
8184 if test "X$withval" = "X"; then
8185
8186 acl_save_prefix="$prefix"
8187 prefix="$acl_final_prefix"
8188 acl_save_exec_prefix="$exec_prefix"
8189 exec_prefix="$acl_final_exec_prefix"
8190
8191 eval additional_includedir=\"$includedir\"
8192 eval additional_libdir=\"$libdir\"
8193
8194 exec_prefix="$acl_save_exec_prefix"
8195 prefix="$acl_save_prefix"
8196
8197 else
8198 additional_includedir="$withval/include"
8199 additional_libdir="$withval/$acl_libdirstem"
8200 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8201 && ! test -d "$withval/$acl_libdirstem"; then
8202 additional_libdir="$withval/$acl_libdirstem2"
8203 fi
8204 fi
8205 fi
8206
8207fi
8208
8209 LIBINTL=
8210 LTLIBINTL=
8211 INCINTL=
8212 LIBINTL_PREFIX=
8213 HAVE_LIBINTL=
8214 rpathdirs=
8215 ltrpathdirs=
8216 names_already_handled=
8217 names_next_round='intl '
8218 while test -n "$names_next_round"; do
8219 names_this_round="$names_next_round"
8220 names_next_round=
8221 for name in $names_this_round; do
8222 already_handled=
8223 for n in $names_already_handled; do
8224 if test "$n" = "$name"; then
8225 already_handled=yes
8226 break
8227 fi
8228 done
8229 if test -z "$already_handled"; then
8230 names_already_handled="$names_already_handled $name"
42f767d0 8231 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8f223b3e
FCE
8232 eval value=\"\$HAVE_LIB$uppername\"
8233 if test -n "$value"; then
8234 if test "$value" = yes; then
8235 eval value=\"\$LIB$uppername\"
8236 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8237 eval value=\"\$LTLIB$uppername\"
8238 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8239 else
8240 :
8241 fi
8242 else
8243 found_dir=
8244 found_la=
8245 found_so=
8246 found_a=
8247 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8248 if test -n "$acl_shlibext"; then
8249 shrext=".$acl_shlibext" # typically: shrext=.so
8250 else
8251 shrext=
8252 fi
8253 if test $use_additional = yes; then
8254 dir="$additional_libdir"
8255 if test -n "$acl_shlibext"; then
8256 if test -f "$dir/$libname$shrext"; then
8257 found_dir="$dir"
8258 found_so="$dir/$libname$shrext"
8259 else
8260 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8261 ver=`(cd "$dir" && \
8262 for f in "$libname$shrext".*; do echo "$f"; done \
8263 | sed -e "s,^$libname$shrext\\\\.,," \
8264 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8265 | sed 1q ) 2>/dev/null`
8266 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8267 found_dir="$dir"
8268 found_so="$dir/$libname$shrext.$ver"
8269 fi
8270 else
8271 eval library_names=\"$acl_library_names_spec\"
8272 for f in $library_names; do
8273 if test -f "$dir/$f"; then
8274 found_dir="$dir"
8275 found_so="$dir/$f"
8276 break
8277 fi
8278 done
8279 fi
8280 fi
8281 fi
8282 if test "X$found_dir" = "X"; then
8283 if test -f "$dir/$libname.$acl_libext"; then
8284 found_dir="$dir"
8285 found_a="$dir/$libname.$acl_libext"
8286 fi
8287 fi
8288 if test "X$found_dir" != "X"; then
8289 if test -f "$dir/$libname.la"; then
8290 found_la="$dir/$libname.la"
8291 fi
8292 fi
8293 fi
8294 if test "X$found_dir" = "X"; then
8295 for x in $LDFLAGS $LTLIBINTL; do
8296
8297 acl_save_prefix="$prefix"
8298 prefix="$acl_final_prefix"
8299 acl_save_exec_prefix="$exec_prefix"
8300 exec_prefix="$acl_final_exec_prefix"
8301 eval x=\"$x\"
8302 exec_prefix="$acl_save_exec_prefix"
8303 prefix="$acl_save_prefix"
8304
8305 case "$x" in
8306 -L*)
8307 dir=`echo "X$x" | sed -e 's/^X-L//'`
8308 if test -n "$acl_shlibext"; then
8309 if test -f "$dir/$libname$shrext"; then
8310 found_dir="$dir"
8311 found_so="$dir/$libname$shrext"
8312 else
8313 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8314 ver=`(cd "$dir" && \
8315 for f in "$libname$shrext".*; do echo "$f"; done \
8316 | sed -e "s,^$libname$shrext\\\\.,," \
8317 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8318 | sed 1q ) 2>/dev/null`
8319 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8320 found_dir="$dir"
8321 found_so="$dir/$libname$shrext.$ver"
8322 fi
8323 else
8324 eval library_names=\"$acl_library_names_spec\"
8325 for f in $library_names; do
8326 if test -f "$dir/$f"; then
8327 found_dir="$dir"
8328 found_so="$dir/$f"
8329 break
8330 fi
8331 done
8332 fi
8333 fi
8334 fi
8335 if test "X$found_dir" = "X"; then
8336 if test -f "$dir/$libname.$acl_libext"; then
8337 found_dir="$dir"
8338 found_a="$dir/$libname.$acl_libext"
8339 fi
8340 fi
8341 if test "X$found_dir" != "X"; then
8342 if test -f "$dir/$libname.la"; then
8343 found_la="$dir/$libname.la"
8344 fi
8345 fi
8346 ;;
8347 esac
8348 if test "X$found_dir" != "X"; then
8349 break
8350 fi
8351 done
8352 fi
8353 if test "X$found_dir" != "X"; then
8354 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8355 if test "X$found_so" != "X"; then
8356 if test "$enable_rpath" = no \
8357 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8358 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8359 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8360 else
8361 haveit=
8362 for x in $ltrpathdirs; do
8363 if test "X$x" = "X$found_dir"; then
8364 haveit=yes
8365 break
8366 fi
8367 done
8368 if test -z "$haveit"; then
8369 ltrpathdirs="$ltrpathdirs $found_dir"
8370 fi
8371 if test "$acl_hardcode_direct" = yes; then
8372 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8373 else
8374 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8375 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8376 haveit=
8377 for x in $rpathdirs; do
8378 if test "X$x" = "X$found_dir"; then
8379 haveit=yes
8380 break
8381 fi
8382 done
8383 if test -z "$haveit"; then
8384 rpathdirs="$rpathdirs $found_dir"
8385 fi
8386 else
8387 haveit=
8388 for x in $LDFLAGS $LIBINTL; do
8389
8390 acl_save_prefix="$prefix"
8391 prefix="$acl_final_prefix"
8392 acl_save_exec_prefix="$exec_prefix"
8393 exec_prefix="$acl_final_exec_prefix"
8394 eval x=\"$x\"
8395 exec_prefix="$acl_save_exec_prefix"
8396 prefix="$acl_save_prefix"
8397
8398 if test "X$x" = "X-L$found_dir"; then
8399 haveit=yes
8400 break
8401 fi
8402 done
8403 if test -z "$haveit"; then
8404 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8405 fi
8406 if test "$acl_hardcode_minus_L" != no; then
8407 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8408 else
8409 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8410 fi
8411 fi
8412 fi
8413 fi
8414 else
8415 if test "X$found_a" != "X"; then
8416 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8417 else
8418 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8419 fi
8420 fi
8421 additional_includedir=
8422 case "$found_dir" in
8423 */$acl_libdirstem | */$acl_libdirstem/)
8424 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8425 if test "$name" = 'intl'; then
8426 LIBINTL_PREFIX="$basedir"
8427 fi
8428 additional_includedir="$basedir/include"
8429 ;;
8430 */$acl_libdirstem2 | */$acl_libdirstem2/)
8431 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8432 if test "$name" = 'intl'; then
8433 LIBINTL_PREFIX="$basedir"
8434 fi
8435 additional_includedir="$basedir/include"
8436 ;;
8437 esac
8438 if test "X$additional_includedir" != "X"; then
8439 if test "X$additional_includedir" != "X/usr/include"; then
8440 haveit=
8441 if test "X$additional_includedir" = "X/usr/local/include"; then
8442 if test -n "$GCC"; then
8443 case $host_os in
8444 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8445 esac
8446 fi
8447 fi
8448 if test -z "$haveit"; then
8449 for x in $CPPFLAGS $INCINTL; do
8450
8451 acl_save_prefix="$prefix"
8452 prefix="$acl_final_prefix"
8453 acl_save_exec_prefix="$exec_prefix"
8454 exec_prefix="$acl_final_exec_prefix"
8455 eval x=\"$x\"
8456 exec_prefix="$acl_save_exec_prefix"
8457 prefix="$acl_save_prefix"
8458
8459 if test "X$x" = "X-I$additional_includedir"; then
8460 haveit=yes
8461 break
8462 fi
8463 done
8464 if test -z "$haveit"; then
8465 if test -d "$additional_includedir"; then
8466 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8467 fi
8468 fi
8469 fi
8470 fi
8471 fi
8472 if test -n "$found_la"; then
8473 save_libdir="$libdir"
8474 case "$found_la" in
8475 */* | *\\*) . "$found_la" ;;
8476 *) . "./$found_la" ;;
8477 esac
8478 libdir="$save_libdir"
8479 for dep in $dependency_libs; do
8480 case "$dep" in
8481 -L*)
8482 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8483 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8484 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8485 haveit=
8486 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8487 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8488 if test -n "$GCC"; then
8489 case $host_os in
8490 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8491 esac
8492 fi
8493 fi
8494 if test -z "$haveit"; then
8495 haveit=
8496 for x in $LDFLAGS $LIBINTL; do
8497
8498 acl_save_prefix="$prefix"
8499 prefix="$acl_final_prefix"
8500 acl_save_exec_prefix="$exec_prefix"
8501 exec_prefix="$acl_final_exec_prefix"
8502 eval x=\"$x\"
8503 exec_prefix="$acl_save_exec_prefix"
8504 prefix="$acl_save_prefix"
8505
8506 if test "X$x" = "X-L$additional_libdir"; then
8507 haveit=yes
8508 break
8509 fi
8510 done
8511 if test -z "$haveit"; then
8512 if test -d "$additional_libdir"; then
8513 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8514 fi
8515 fi
8516 haveit=
8517 for x in $LDFLAGS $LTLIBINTL; do
8518
8519 acl_save_prefix="$prefix"
8520 prefix="$acl_final_prefix"
8521 acl_save_exec_prefix="$exec_prefix"
8522 exec_prefix="$acl_final_exec_prefix"
8523 eval x=\"$x\"
8524 exec_prefix="$acl_save_exec_prefix"
8525 prefix="$acl_save_prefix"
8526
8527 if test "X$x" = "X-L$additional_libdir"; then
8528 haveit=yes
8529 break
8530 fi
8531 done
8532 if test -z "$haveit"; then
8533 if test -d "$additional_libdir"; then
8534 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8535 fi
8536 fi
8537 fi
8538 fi
8539 ;;
8540 -R*)
8541 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8542 if test "$enable_rpath" != no; then
8543 haveit=
8544 for x in $rpathdirs; do
8545 if test "X$x" = "X$dir"; then
8546 haveit=yes
8547 break
8548 fi
8549 done
8550 if test -z "$haveit"; then
8551 rpathdirs="$rpathdirs $dir"
8552 fi
8553 haveit=
8554 for x in $ltrpathdirs; do
8555 if test "X$x" = "X$dir"; then
8556 haveit=yes
8557 break
8558 fi
8559 done
8560 if test -z "$haveit"; then
8561 ltrpathdirs="$ltrpathdirs $dir"
8562 fi
8563 fi
8564 ;;
8565 -l*)
8566 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8567 ;;
8568 *.la)
8569 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8570 ;;
8571 *)
8572 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8573 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8574 ;;
8575 esac
8576 done
8577 fi
8578 else
8579 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8580 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8581 fi
8582 fi
8583 fi
8584 done
8585 done
8586 if test "X$rpathdirs" != "X"; then
8587 if test -n "$acl_hardcode_libdir_separator"; then
8588 alldirs=
8589 for found_dir in $rpathdirs; do
8590 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8591 done
8592 acl_save_libdir="$libdir"
8593 libdir="$alldirs"
8594 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8595 libdir="$acl_save_libdir"
8596 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8597 else
8598 for found_dir in $rpathdirs; do
8599 acl_save_libdir="$libdir"
8600 libdir="$found_dir"
8601 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8602 libdir="$acl_save_libdir"
8603 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8604 done
8605 fi
8606 fi
8607 if test "X$ltrpathdirs" != "X"; then
8608 for found_dir in $ltrpathdirs; do
8609 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8610 done
8611 fi
8612
8613
8614
8615
8616
8617
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8619$as_echo_n "checking for GNU gettext in libintl... " >&6; }
c3de29bd 8620if eval \${$gt_func_gnugettext_libintl+:} false; then :
8f223b3e 8621 $as_echo_n "(cached) " >&6
2f1a1aea 8622else
8f223b3e
FCE
8623 gt_save_CPPFLAGS="$CPPFLAGS"
8624 CPPFLAGS="$CPPFLAGS $INCINTL"
8625 gt_save_LIBS="$LIBS"
8626 LIBS="$LIBS $LIBINTL"
8627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2f1a1aea 8628/* end confdefs.h. */
42f767d0 8629
8f223b3e 8630#include <libintl.h>
891810c2 8631#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8f223b3e
FCE
8632extern int _nl_msg_cat_cntr;
8633extern
8634#ifdef __cplusplus
8635"C"
2f1a1aea 8636#endif
8f223b3e 8637const char *_nl_expand_alias (const char *);
891810c2
FCE
8638#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8639#else
8640#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8641#endif
8642$gt_revision_test_code
42f767d0 8643
2f1a1aea
FCE
8644int
8645main ()
8646{
42f767d0 8647
8f223b3e 8648bindtextdomain ("", "");
891810c2 8649return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
42f767d0 8650
8f223b3e 8651 ;
7fbd9d09 8652 return 0;
2f1a1aea
FCE
8653}
8654_ACEOF
8f223b3e
FCE
8655if ac_fn_c_try_link "$LINENO"; then :
8656 eval "$gt_func_gnugettext_libintl=yes"
1ef0423a 8657else
8f223b3e 8658 eval "$gt_func_gnugettext_libintl=no"
412e1bf7 8659fi
8f223b3e
FCE
8660rm -f core conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8663 LIBS="$LIBS $LIBICONV"
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665/* end confdefs.h. */
42f767d0 8666
8f223b3e 8667#include <libintl.h>
891810c2 8668#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8f223b3e
FCE
8669extern int _nl_msg_cat_cntr;
8670extern
8671#ifdef __cplusplus
8672"C"
8673#endif
8674const char *_nl_expand_alias (const char *);
891810c2
FCE
8675#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8676#else
8677#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8678#endif
8679$gt_revision_test_code
42f767d0 8680
8f223b3e
FCE
8681int
8682main ()
8683{
42f767d0 8684
8f223b3e 8685bindtextdomain ("", "");
891810c2 8686return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
42f767d0 8687
8f223b3e
FCE
8688 ;
8689 return 0;
8690}
8691_ACEOF
8692if ac_fn_c_try_link "$LINENO"; then :
8693 LIBINTL="$LIBINTL $LIBICONV"
42f767d0
JL
8694 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8695 eval "$gt_func_gnugettext_libintl=yes"
412e1bf7 8696
412e1bf7 8697fi
8f223b3e
FCE
8698rm -f core conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
8700 fi
8701 CPPFLAGS="$gt_save_CPPFLAGS"
8702 LIBS="$gt_save_LIBS"
412e1bf7 8703fi
8f223b3e
FCE
8704eval ac_res=\$$gt_func_gnugettext_libintl
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8706$as_echo "$ac_res" >&6; }
8707 fi
412e1bf7 8708
8f223b3e
FCE
8709 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8710 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8711 && test "$PACKAGE" != gettext-runtime \
8712 && test "$PACKAGE" != gettext-tools; }; then
8713 gt_use_preinstalled_gnugettext=yes
8714 else
8715 LIBINTL=
8716 LTLIBINTL=
8717 INCINTL=
8718 fi
412e1bf7 8719
412e1bf7 8720
2f1a1aea 8721
8f223b3e
FCE
8722 if test -n "$INTL_MACOSX_LIBS"; then
8723 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8724 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8725 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8726 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8727 fi
8728 fi
2f1a1aea 8729
8f223b3e
FCE
8730 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8731 || test "$nls_cv_use_gnu_gettext" = "yes"; then
2f1a1aea 8732
8f223b3e 8733$as_echo "#define ENABLE_NLS 1" >>confdefs.h
2f1a1aea 8734
8f223b3e
FCE
8735 else
8736 USE_NLS=no
8737 fi
8738 fi
2f1a1aea 8739
8f223b3e
FCE
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8741$as_echo_n "checking whether to use NLS... " >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8743$as_echo "$USE_NLS" >&6; }
8744 if test "$USE_NLS" = "yes"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8746$as_echo_n "checking where the gettext function comes from... " >&6; }
8747 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8748 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8749 gt_source="external libintl"
8750 else
8751 gt_source="libc"
8752 fi
8753 else
8754 gt_source="included intl directory"
8755 fi
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8757$as_echo "$gt_source" >&6; }
8758 fi
2f1a1aea 8759
8f223b3e
FCE
8760 if test "$USE_NLS" = "yes"; then
8761
8762 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8763 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8765$as_echo_n "checking how to link with libintl... " >&6; }
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8767$as_echo "$LIBINTL" >&6; }
8768
8769 for element in $INCINTL; do
8770 haveit=
8771 for x in $CPPFLAGS; do
8772
8773 acl_save_prefix="$prefix"
8774 prefix="$acl_final_prefix"
8775 acl_save_exec_prefix="$exec_prefix"
8776 exec_prefix="$acl_final_exec_prefix"
8777 eval x=\"$x\"
8778 exec_prefix="$acl_save_exec_prefix"
8779 prefix="$acl_save_prefix"
8780
8781 if test "X$x" = "X$element"; then
8782 haveit=yes
8783 break
8784 fi
8785 done
8786 if test -z "$haveit"; then
8787 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8788 fi
8789 done
412e1bf7 8790
8f223b3e 8791 fi
412e1bf7 8792
5e5aee9f 8793
8f223b3e 8794$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5e5aee9f 8795
2f1a1aea 8796
8f223b3e 8797$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
2f1a1aea 8798
8f223b3e 8799 fi
7fbd9d09 8800
8f223b3e 8801 POSUB=po
2f1a1aea 8802 fi
2f1a1aea 8803
2f1a1aea 8804
2f1a1aea 8805
8f223b3e 8806 INTLLIBS="$LIBINTL"
2f1a1aea
FCE
8807
8808
2f1a1aea 8809
2f1a1aea
FCE
8810
8811
8812
8813
e04a4b41 8814
e5d623b1
DS
8815if test "x$GMSGFMT" = "x:"; then
8816 as_fn_error $? "missing gnu /usr/bin/msgfmt" "$LINENO" 5
8817fi
c16501a1 8818
e5d623b1
DS
8819# We want the 'PYTHON' varible to be python version 2. We also want
8820# our custom 'PYTHON3' varible to be python version 3.
8821#
bcec8a9d
DS
8822# Note that the python2/python3 code was inspired by code in the
8823# 'abrt' configure:
8824# <https://github.com/abrt/abrt/blob/master/configure.ac>
8825#
e5d623b1
DS
8826# First, figure out what version of python is in the executable named
8827# 'python'. On most systems that is python version 2, but on arch
8828# linux that is python version 3.
8829# Extract the first word of "python", so it can be a program name with args.
8830set dummy python; ac_word=$2
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832$as_echo_n "checking for $ac_word... " >&6; }
8833if ${ac_cv_path_PYTHON_UNKNOWN+:} false; then :
8834 $as_echo_n "(cached) " >&6
8835else
8836 case $PYTHON_UNKNOWN in
8837 [\\/]* | ?:[\\/]*)
8838 ac_cv_path_PYTHON_UNKNOWN="$PYTHON_UNKNOWN" # Let the user override the test with a path.
8839 ;;
8840 *)
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842for as_dir in $PATH
8843do
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8848 ac_cv_path_PYTHON_UNKNOWN="$as_dir/$ac_word$ac_exec_ext"
8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850 break 2
8851 fi
8852done
8853 done
8854IFS=$as_save_IFS
8855
8856 test -z "$ac_cv_path_PYTHON_UNKNOWN" && ac_cv_path_PYTHON_UNKNOWN="no"
8857 ;;
8858esac
8859fi
8860PYTHON_UNKNOWN=$ac_cv_path_PYTHON_UNKNOWN
8861if test -n "$PYTHON_UNKNOWN"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_UNKNOWN" >&5
8863$as_echo "$PYTHON_UNKNOWN" >&6; }
8864else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866$as_echo "no" >&6; }
8867fi
c16501a1
DS
8868
8869
e5d623b1
DS
8870if test "x$PYTHON_UNKNOWN" != "xno"; then
8871 # OK, we found 'python'. What version is it?
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON_UNKNOWN is version 2 or 3" >&5
8873$as_echo_n "checking whether $PYTHON_UNKNOWN is version 2 or 3... " >&6; }
8874if ${ac_cv_python_unknown_version+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876else
8877 ac_cv_python_unknown_version=`$PYTHON_UNKNOWN -c "import sys; sys.stdout.write(sys.version[:3][0])"`
8878fi
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_unknown_version" >&5
8880$as_echo "$ac_cv_python_unknown_version" >&6; }
8881fi
c16501a1 8882
e5d623b1
DS
8883# Now we'll update the _AM_PYTHON_INTERPRETER_LIST variable (which
8884# AM_PATH_PYTHON uses) to only be version 2 versions of python. Note
8885# that the m4_define happens when autoconf is run, but the
c13dda2f 8886# PLAIN_PYTHON_INTERPRETER variable expansion will happen when the
e5d623b1 8887# user runs configure.
c13dda2f
DS
8888#
8889# Note that for python2, we prefer an executable named 'python2' over
8890# one just named 'python'.
e5d623b1 8891if test "x$PYTHON_UNKNOWN" != "xno" -a "x$ac_cv_python_unknown_version" = "x2"; then
c13dda2f 8892 PLAIN_PYTHON_INTERPRETER=python
e5d623b1 8893else
c13dda2f 8894 PLAIN_PYTHON_INTERPRETER=python2
e5d623b1 8895fi
c16501a1 8896
e5d623b1
DS
8897
8898# Now we can call AM_PATH_PYTHON to find python version 2.6+ (and
8899# version 2 only).
8900
8901
8902
8903
8904
8905
8906 if test -n "$PYTHON"; then
8907 # If the user set $PYTHON, use it and don't search something else.
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
8909$as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
8910 prog="import sys
8911# split strings by '.' and convert to numeric. Append some zeros
8912# because we need at least 4 digits for the hex conversion.
8913# map returns an iterator in Python 3.0 and a list in 2.x
8914minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
8915minverhex = 0
8916# xrange is not present in Python 3.0 and range returns an iterator
8917for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8918sys.exit(sys.hexversion < minverhex)"
8919 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
8920 ($PYTHON -c "$prog") >&5 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; then :
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8925$as_echo "yes" >&6; }
8926else
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928$as_echo "no" >&6; }
8929 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
8930fi
8931 am_display_PYTHON=$PYTHON
8932 else
8933 # Otherwise, try each interpreter until we find one that satisfies
8934 # VERSION.
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
8936$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
8937if ${am_cv_pathless_PYTHON+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939else
8940
c13dda2f 8941 for am_cv_pathless_PYTHON in python2 $PLAIN_PYTHON_INTERPRETER python2.7 python2.6 none; do
e5d623b1
DS
8942 test "$am_cv_pathless_PYTHON" = none && break
8943 prog="import sys
8944# split strings by '.' and convert to numeric. Append some zeros
8945# because we need at least 4 digits for the hex conversion.
8946# map returns an iterator in Python 3.0 and a list in 2.x
8947minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
8948minverhex = 0
8949# xrange is not present in Python 3.0 and range returns an iterator
8950for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8951sys.exit(sys.hexversion < minverhex)"
8952 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
8953 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; then :
8957 break
8958fi
8959 done
8960fi
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
8962$as_echo "$am_cv_pathless_PYTHON" >&6; }
8963 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
8964 if test "$am_cv_pathless_PYTHON" = none; then
8965 PYTHON=:
8966 else
8967 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
8968set dummy $am_cv_pathless_PYTHON; ac_word=$2
c16501a1
DS
8969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970$as_echo_n "checking for $ac_word... " >&6; }
8971if ${ac_cv_path_PYTHON+:} false; then :
8972 $as_echo_n "(cached) " >&6
8973else
8974 case $PYTHON in
8975 [\\/]* | ?:[\\/]*)
8976 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8977 ;;
8978 *)
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980for as_dir in $PATH
8981do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8986 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 break 2
8989 fi
8990done
8991 done
8992IFS=$as_save_IFS
8993
8994 ;;
8995esac
8996fi
8997PYTHON=$ac_cv_path_PYTHON
8998if test -n "$PYTHON"; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9000$as_echo "$PYTHON" >&6; }
9001else
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003$as_echo "no" >&6; }
9004fi
9005
9006
e5d623b1
DS
9007 fi
9008 am_display_PYTHON=$am_cv_pathless_PYTHON
c16501a1 9009 fi
c16501a1
DS
9010
9011
9012 if test "$PYTHON" = :; then
e5d623b1 9013 :
c16501a1
DS
9014 else
9015
9016
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
9018$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
9019if ${am_cv_python_version+:} false; then :
9020 $as_echo_n "(cached) " >&6
9021else
9022 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
9023fi
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
9025$as_echo "$am_cv_python_version" >&6; }
9026 PYTHON_VERSION=$am_cv_python_version
9027
9028
9029
9030 PYTHON_PREFIX='${prefix}'
9031
9032 PYTHON_EXEC_PREFIX='${exec_prefix}'
9033
9034
9035
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
9037$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
9038if ${am_cv_python_platform+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040else
9041 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
9042fi
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
9044$as_echo "$am_cv_python_platform" >&6; }
9045 PYTHON_PLATFORM=$am_cv_python_platform
9046
9047
9048 # Just factor out some code duplication.
9049 am_python_setup_sysconfig="\
9050import sys
9051# Prefer sysconfig over distutils.sysconfig, for better compatibility
9052# with python 3.x. See automake bug#10227.
9053try:
9054 import sysconfig
9055except ImportError:
9056 can_use_sysconfig = 0
9057else:
9058 can_use_sysconfig = 1
9059# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
9060# <https://github.com/pypa/virtualenv/issues/118>
9061try:
9062 from platform import python_implementation
9063 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
9064 can_use_sysconfig = 0
9065except ImportError:
9066 pass"
9067
9068
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
9070$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
9071if ${am_cv_python_pythondir+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073else
9074 if test "x$prefix" = xNONE
9075 then
9076 am_py_prefix=$ac_default_prefix
9077 else
9078 am_py_prefix=$prefix
9079 fi
9080 am_cv_python_pythondir=`$PYTHON -c "
9081$am_python_setup_sysconfig
9082if can_use_sysconfig:
9083 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
9084else:
9085 from distutils import sysconfig
9086 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
9087sys.stdout.write(sitedir)"`
9088 case $am_cv_python_pythondir in
9089 $am_py_prefix*)
9090 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
9091 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
9092 ;;
9093 *)
9094 case $am_py_prefix in
9095 /usr|/System*) ;;
9096 *)
9097 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
9098 ;;
9099 esac
9100 ;;
9101 esac
9102
9103fi
9104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
9105$as_echo "$am_cv_python_pythondir" >&6; }
9106 pythondir=$am_cv_python_pythondir
9107
9108
9109
9110 pkgpythondir=\${pythondir}/$PACKAGE
9111
9112
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
9114$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
9115if ${am_cv_python_pyexecdir+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117else
9118 if test "x$exec_prefix" = xNONE
9119 then
9120 am_py_exec_prefix=$am_py_prefix
9121 else
9122 am_py_exec_prefix=$exec_prefix
9123 fi
9124 am_cv_python_pyexecdir=`$PYTHON -c "
9125$am_python_setup_sysconfig
9126if can_use_sysconfig:
9127 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
9128else:
9129 from distutils import sysconfig
9130 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
9131sys.stdout.write(sitedir)"`
9132 case $am_cv_python_pyexecdir in
9133 $am_py_exec_prefix*)
9134 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
9135 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
9136 ;;
9137 *)
9138 case $am_py_exec_prefix in
9139 /usr|/System*) ;;
9140 *)
9141 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
9142 ;;
9143 esac
9144 ;;
9145 esac
9146
9147fi
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
9149$as_echo "$am_cv_python_pyexecdir" >&6; }
9150 pyexecdir=$am_cv_python_pyexecdir
9151
9152
9153
9154 pkgpyexecdir=\${pyexecdir}/$PACKAGE
9155
9156
9157
9158 fi
9159
9160
dd9af8b3
DS
9161python_basename=$(basename "$PYTHON")
9162
9163cat >>confdefs.h <<_ACEOF
9164#define PYTHON_BASENAME "${python_basename}"
9165_ACEOF
9166
5dabffcf 9167if test "x$PYTHON" != "x:"; then
7561738b
DS
9168
9169$as_echo "#define PYTHON_EXISTS /**/" >>confdefs.h
9170
9171fi
9172
e01cd0ba
DS
9173# AM_PATH_PYTHON defines 'pyexecdir'. Make sure the python and
9174# pyexecdir variables get sent down to the subconfigure in the
9175# testsuite directory.
9176as_fn_append ac_configure_args " python='$PYTHON' pyexecdir='$pyexecdir'"
c16501a1 9177
e5d623b1 9178# Now let's try to find python version 3.
5dabffcf 9179if test "x$PYTHON_UNKNOWN" != "xno" -a "x$ac_cv_python_unknown_version" = "x3"; then
e5d623b1
DS
9180 # Extract the first word of "python", so it can be a program name with args.
9181set dummy python; ac_word=$2
9182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183$as_echo_n "checking for $ac_word... " >&6; }
9184if ${ac_cv_path_PYTHON3+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186else
9187 case $PYTHON3 in
9188 [\\/]* | ?:[\\/]*)
9189 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9190 ;;
9191 *)
9192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193for as_dir in $PATH
9194do
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
9197 for ac_exec_ext in '' $ac_executable_extensions; do
9198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9199 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 break 2
9202 fi
9203done
9204 done
9205IFS=$as_save_IFS
9206
9207 ;;
9208esac
9209fi
9210PYTHON3=$ac_cv_path_PYTHON3
9211if test -n "$PYTHON3"; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9213$as_echo "$PYTHON3" >&6; }
9214else
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216$as_echo "no" >&6; }
9217fi
9218
9219
9220else
5dabffcf 9221 for ac_prog in python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0
e5d623b1
DS
9222do
9223 # Extract the first word of "$ac_prog", so it can be a program name with args.
9224set dummy $ac_prog; ac_word=$2
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226$as_echo_n "checking for $ac_word... " >&6; }
9227if ${ac_cv_path_PYTHON3+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229else
9230 case $PYTHON3 in
9231 [\\/]* | ?:[\\/]*)
9232 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9233 ;;
9234 *)
9235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236for as_dir in $PATH
9237do
9238 IFS=$as_save_IFS
9239 test -z "$as_dir" && as_dir=.
9240 for ac_exec_ext in '' $ac_executable_extensions; do
9241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9242 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9244 break 2
9245 fi
9246done
9247 done
9248IFS=$as_save_IFS
9249
9250 ;;
9251esac
9252fi
9253PYTHON3=$ac_cv_path_PYTHON3
9254if test -n "$PYTHON3"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9256$as_echo "$PYTHON3" >&6; }
9257else
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259$as_echo "no" >&6; }
9260fi
9261
9262
9263 test -n "$PYTHON3" && break
9264done
5dabffcf 9265test -n "$PYTHON3" || PYTHON3=":"
e5d623b1
DS
9266
9267fi
dd9af8b3
DS
9268python3_basename=$(basename "$PYTHON3")
9269
9270cat >>confdefs.h <<_ACEOF
9271#define PYTHON3_BASENAME "${python3_basename}"
9272_ACEOF
9273
e5d623b1
DS
9274
9275# If we found python version 3, set up the other variables for python
9276# version 3 that AM_PATH_PYTHON sets up for python version 2.
5dabffcf 9277if test "x$PYTHON3" != "x:"; then
7561738b
DS
9278
9279$as_echo "#define PYTHON3_EXISTS /**/" >>confdefs.h
9280
e5d623b1
DS
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 version" >&5
9282$as_echo_n "checking for python3 version... " >&6; }
9283if ${ac_cv_python3_version+:} false; then :
9284 $as_echo_n "(cached) " >&6
9285else
9286 ac_cv_python3_version=`$PYTHON3 -c "import sys; sys.stdout.write(sys.version[:3])"`
9287fi
9288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_version" >&5
9289$as_echo "$ac_cv_python3_version" >&6; }
d7f07c29 9290 PYTHON3_VERSION=$ac_cv_python3_version
e5d623b1
DS
9291
9292 PYTHON3_PREFIX='${prefix}'
9293
9294 PYTHON3_EXEC_PREFIX='${exec_prefix}'
9295
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 platform" >&5
9297$as_echo_n "checking for python3 platform... " >&6; }
9298if ${ac_cv_python3_platform+:} false; then :
9299 $as_echo_n "(cached) " >&6
9300else
9301 ac_cv_python3_platform=`$PYTHON3 -c "import sys; sys.stdout.write(sys.platform)"`
9302fi
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_platform" >&5
9304$as_echo "$ac_cv_python3_platform" >&6; }
9305 PYTHON3_PLATFORM=$ac_cv_python3_platform
9306
9307
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 script directory" >&5
9309$as_echo_n "checking for python3 script directory... " >&6; }
9310if ${ac_cv_python3_dir+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312else
9313 ac_cv_python3_dir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(0,0,prefix='$PYTHON3_PREFIX'))"`
9314fi
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_dir" >&5
9316$as_echo "$ac_cv_python3_dir" >&6; }
e6effc54 9317 python3dir=$ac_cv_python3_dir
e5d623b1
DS
9318
9319
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 extension module directory" >&5
9321$as_echo_n "checking for python3 extension module directory... " >&6; }
9322if ${ac_cv_py3execdir+:} false; then :
9323 $as_echo_n "(cached) " >&6
9324else
9325 ac_cv_py3execdir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(1,0,prefix='$PYTHON3_EXEC_PREFIX'))"`
9326fi
9327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_py3execdir" >&5
9328$as_echo "$ac_cv_py3execdir" >&6; }
e6effc54 9329 py3execdir=$ac_cv_py3execdir
e5d623b1 9330
e04a4b41 9331fi
caf6872d 9332
5dabffcf
DW
9333# Make sure the python3 and py3execdir variables get sent down to
9334# the subconfigure in the testsuite directory.
9335as_fn_append ac_configure_args " python3='$PYTHON3' py3execdir='$ac_cv_py3execdir'"
9336
70d28673 9337if test "${enable_prologues+set}" != set; then
1ef0423a 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5
0710d850 9339$as_echo_n "checking to see if prologue searching should be the default... " >&6; }
70d28673
DS
9340 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
9341 echo ' yes '
9342 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9343 enable_prologues=yes
1ef0423a 9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0710d850 9345$as_echo "yes" >&6; }
70d28673 9346 else
1ef0423a 9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 9348$as_echo "no" >&6; }
70d28673
DS
9349 fi
9350fi
7fbd9d09 9351# Check whether --enable-prologues was given.
1ef0423a 9352if test "${enable_prologues+set}" = set; then :
7fbd9d09 9353 enableval=$enable_prologues;
70d28673 9354if test "$enable_prologues" = yes; then
44f75386 9355
1ef0423a 9356$as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h
44f75386 9357
70d28673 9358fi
7fbd9d09 9359fi
70d28673 9360
7fbd9d09 9361
e1bfefdc
SC
9362
9363if test "${enable_sdt_probes+set}" != set; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5
9365$as_echo_n "checking to see if sdt probes should be the default... " >&6; }
9366 if { echo '#if __GNUC__ < 4'
9367 echo ' yes '
9368 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8b714d4b 9369 enable_sdt_probes=no
e1bfefdc
SC
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371$as_echo "no" >&6; }
9372 else
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9374$as_echo "yes" >&6; }
9375 fi
9376fi
0f5d597d
JS
9377# Check whether --enable-sdt-probes was given.
9378if test "${enable_sdt_probes+set}" = set; then :
9379 enableval=$enable_sdt_probes;
9380fi
9381
9382if test "x$enable_sdt_probes" != xno; then :
9383
9384
9385$as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h
9386
9387
f5852d3a
JS
9388fi
9389
9390
891810c2 9391 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=false
f5852d3a
JS
9392 ac_ext=cpp
9393ac_cpp='$CXXCPP $CPPFLAGS'
9394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9397 ac_success=no
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
9399$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
9400if ${ax_cv_cxx_compile_cxx11+:} false; then :
9401 $as_echo_n "(cached) " >&6
9402else
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h. */
9405
9406
9407// If the compiler admits that it is not ready for C++11, why torture it?
9408// Hopefully, this will speed up the test.
9409
9410#ifndef __cplusplus
9411
9412#error "This is not a C++ compiler"
9413
9414#elif __cplusplus < 201103L
9415
9416#error "This is not a C++11 compiler"
9417
9418#else
9419
9420namespace cxx11
9421{
9422
9423 namespace test_static_assert
9424 {
9425
9426 template <typename T>
9427 struct check
9428 {
9429 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9430 };
9431
9432 }
9433
9434 namespace test_final_override
9435 {
9436
9437 struct Base
9438 {
9439 virtual void f() {}
9440 };
9441
9442 struct Derived : public Base
9443 {
9444 virtual void f() override {}
9445 };
9446
9447 }
9448
9449 namespace test_double_right_angle_brackets
9450 {
9451
9452 template < typename T >
9453 struct check {};
9454
9455 typedef check<void> single_type;
9456 typedef check<check<void>> double_type;
9457 typedef check<check<check<void>>> triple_type;
9458 typedef check<check<check<check<void>>>> quadruple_type;
9459
9460 }
9461
9462 namespace test_decltype
9463 {
9464
9465 int
9466 f()
9467 {
9468 int a = 1;
9469 decltype(a) b = 2;
9470 return a + b;
9471 }
9472
9473 }
9474
9475 namespace test_type_deduction
9476 {
9477
9478 template < typename T1, typename T2 >
9479 struct is_same
9480 {
9481 static const bool value = false;
9482 };
9483
9484 template < typename T >
9485 struct is_same<T, T>
9486 {
9487 static const bool value = true;
9488 };
9489
9490 template < typename T1, typename T2 >
9491 auto
9492 add(T1 a1, T2 a2) -> decltype(a1 + a2)
9493 {
9494 return a1 + a2;
9495 }
9496
9497 int
9498 test(const int c, volatile int v)
9499 {
9500 static_assert(is_same<int, decltype(0)>::value == true, "");
9501 static_assert(is_same<int, decltype(c)>::value == false, "");
9502 static_assert(is_same<int, decltype(v)>::value == false, "");
9503 auto ac = c;
9504 auto av = v;
9505 auto sumi = ac + av + 'x';
9506 auto sumf = ac + av + 1.0;
9507 static_assert(is_same<int, decltype(ac)>::value == true, "");
9508 static_assert(is_same<int, decltype(av)>::value == true, "");
9509 static_assert(is_same<int, decltype(sumi)>::value == true, "");
9510 static_assert(is_same<int, decltype(sumf)>::value == false, "");
9511 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
9512 return (sumf > 0.0) ? sumi : add(c, v);
9513 }
9514
9515 }
9516
9517 namespace test_noexcept
9518 {
9519
9520 int f() { return 0; }
9521 int g() noexcept { return 0; }
9522
9523 static_assert(noexcept(f()) == false, "");
9524 static_assert(noexcept(g()) == true, "");
9525
9526 }
9527
9528 namespace test_constexpr
9529 {
9530
9531 template < typename CharT >
9532 unsigned long constexpr
9533 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
9534 {
9535 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
9536 }
9537
9538 template < typename CharT >
9539 unsigned long constexpr
9540 strlen_c(const CharT *const s) noexcept
9541 {
9542 return strlen_c_r(s, 0UL);
9543 }
9544
9545 static_assert(strlen_c("") == 0UL, "");
9546 static_assert(strlen_c("1") == 1UL, "");
9547 static_assert(strlen_c("example") == 7UL, "");
9548 static_assert(strlen_c("another\0example") == 7UL, "");
9549
9550 }
9551
9552 namespace test_rvalue_references
9553 {
9554
9555 template < int N >
9556 struct answer
9557 {
9558 static constexpr int value = N;
9559 };
9560
9561 answer<1> f(int&) { return answer<1>(); }
9562 answer<2> f(const int&) { return answer<2>(); }
9563 answer<3> f(int&&) { return answer<3>(); }
9564
9565 void
9566 test()
9567 {
9568 int i = 0;
9569 const int c = 0;
9570 static_assert(decltype(f(i))::value == 1, "");
9571 static_assert(decltype(f(c))::value == 2, "");
9572 static_assert(decltype(f(0))::value == 3, "");
9573 }
9574
9575 }
9576
9577 namespace test_uniform_initialization
9578 {
9579
9580 struct test
9581 {
9582 static const int zero {};
9583 static const int one {1};
9584 };
9585
9586 static_assert(test::zero == 0, "");
9587 static_assert(test::one == 1, "");
9588
9589 }
9590
9591 namespace test_lambdas
9592 {
9593
9594 void
9595 test1()
9596 {
9597 auto lambda1 = [](){};
9598 auto lambda2 = lambda1;
9599 lambda1();
9600 lambda2();
9601 }
9602
9603 int
9604 test2()
9605 {
9606 auto a = [](int i, int j){ return i + j; }(1, 2);
9607 auto b = []() -> int { return '0'; }();
9608 auto c = [=](){ return a + b; }();
9609 auto d = [&](){ return c; }();
9610 auto e = [a, &b](int x) mutable {
9611 const auto identity = [](int y){ return y; };
9612 for (auto i = 0; i < a; ++i)
9613 a += b--;
9614 return x + identity(a + b);
9615 }(0);
9616 return a + b + c + d + e;
9617 }
9618
9619 int
9620 test3()
9621 {
9622 const auto nullary = [](){ return 0; };
9623 const auto unary = [](int x){ return x; };
9624 using nullary_t = decltype(nullary);
9625 using unary_t = decltype(unary);
9626 const auto higher1st = [](nullary_t f){ return f(); };
9627 const auto higher2nd = [unary](nullary_t f1){
9628 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9629 };
9630 return higher1st(nullary) + higher2nd(nullary)(unary);
9631 }
9632
9633 }
9634
9635 namespace test_variadic_templates
9636 {
9637
9638 template <int...>
9639 struct sum;
9640
9641 template <int N0, int... N1toN>
9642 struct sum<N0, N1toN...>
9643 {
9644 static constexpr auto value = N0 + sum<N1toN...>::value;
9645 };
9646
9647 template <>
9648 struct sum<>
9649 {
9650 static constexpr auto value = 0;
9651 };
9652
9653 static_assert(sum<>::value == 0, "");
9654 static_assert(sum<1>::value == 1, "");
9655 static_assert(sum<23>::value == 23, "");
9656 static_assert(sum<1, 2>::value == 3, "");
9657 static_assert(sum<5, 5, 11>::value == 21, "");
9658 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9659
9660 }
9661
9662 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9663 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9664 // because of this.
9665 namespace test_template_alias_sfinae
9666 {
9667
9668 struct foo {};
9669
9670 template<typename T>
9671 using member = typename T::member_type;
9672
9673 template<typename T>
9674 void func(...) {}
9675
9676 template<typename T>
9677 void func(member<T>*) {}
9678
9679 void test();
9680
9681 void test() { func<foo>(0); }
9682
9683 }
9684
9685} // namespace cxx11
9686
9687#endif // __cplusplus >= 201103L
9688
9689
9690
9691_ACEOF
9692if ac_fn_cxx_try_compile "$LINENO"; then :
9693 ax_cv_cxx_compile_cxx11=yes
9694else
9695 ax_cv_cxx_compile_cxx11=no
9696fi
9697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698fi
9699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
9700$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
9701 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
9702 ac_success=yes
9703 fi
9704
9705
9706
9707 if test x$ac_success = xno; then
891810c2
FCE
9708 for alternative in ${ax_cxx_compile_alternatives}; do
9709 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
9710 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
f5852d3a
JS
9712$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
9713if eval \${$cachevar+:} false; then :
9714 $as_echo_n "(cached) " >&6
9715else
9716 ac_save_CXX="$CXX"
891810c2
FCE
9717 CXX="$CXX $switch"
9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f5852d3a
JS
9719/* end confdefs.h. */
9720
9721
9722// If the compiler admits that it is not ready for C++11, why torture it?
9723// Hopefully, this will speed up the test.
9724
9725#ifndef __cplusplus
9726
9727#error "This is not a C++ compiler"
9728
9729#elif __cplusplus < 201103L
9730
9731#error "This is not a C++11 compiler"
9732
9733#else
9734
9735namespace cxx11
9736{
9737
9738 namespace test_static_assert
9739 {
9740
9741 template <typename T>
9742 struct check
9743 {
9744 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9745 };
9746
9747 }
9748
9749 namespace test_final_override
9750 {
9751
9752 struct Base
9753 {
9754 virtual void f() {}
9755 };
9756
9757 struct Derived : public Base
9758 {
9759 virtual void f() override {}
9760 };
9761
9762 }
9763
9764 namespace test_double_right_angle_brackets
9765 {
9766
9767 template < typename T >
9768 struct check {};
9769
9770 typedef check<void> single_type;
9771 typedef check<check<void>> double_type;
9772 typedef check<check<check<void>>> triple_type;
9773 typedef check<check<check<check<void>>>> quadruple_type;
9774
9775 }
9776
9777 namespace test_decltype
9778 {
9779
9780 int
9781 f()
9782 {
9783 int a = 1;
9784 decltype(a) b = 2;
9785 return a + b;
9786 }
9787
9788 }
9789
9790 namespace test_type_deduction
9791 {
9792
9793 template < typename T1, typename T2 >
9794 struct is_same
9795 {
9796 static const bool value = false;
9797 };
9798
9799 template < typename T >
9800 struct is_same<T, T>
9801 {
9802 static const bool value = true;
9803 };
9804
9805 template < typename T1, typename T2 >
9806 auto
9807 add(T1 a1, T2 a2) -> decltype(a1 + a2)
9808 {
9809 return a1 + a2;
9810 }
9811
9812 int
9813 test(const int c, volatile int v)
9814 {
9815 static_assert(is_same<int, decltype(0)>::value == true, "");
9816 static_assert(is_same<int, decltype(c)>::value == false, "");
9817 static_assert(is_same<int, decltype(v)>::value == false, "");
9818 auto ac = c;
9819 auto av = v;
9820 auto sumi = ac + av + 'x';
9821 auto sumf = ac + av + 1.0;
9822 static_assert(is_same<int, decltype(ac)>::value == true, "");
9823 static_assert(is_same<int, decltype(av)>::value == true, "");
9824 static_assert(is_same<int, decltype(sumi)>::value == true, "");
9825 static_assert(is_same<int, decltype(sumf)>::value == false, "");
9826 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
9827 return (sumf > 0.0) ? sumi : add(c, v);
9828 }
9829
9830 }
9831
9832 namespace test_noexcept
9833 {
9834
9835 int f() { return 0; }
9836 int g() noexcept { return 0; }
9837
9838 static_assert(noexcept(f()) == false, "");
9839 static_assert(noexcept(g()) == true, "");
9840
9841 }
9842
9843 namespace test_constexpr
9844 {
9845
9846 template < typename CharT >
9847 unsigned long constexpr
9848 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
9849 {
9850 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
9851 }
9852
9853 template < typename CharT >
9854 unsigned long constexpr
9855 strlen_c(const CharT *const s) noexcept
9856 {
9857 return strlen_c_r(s, 0UL);
9858 }
9859
9860 static_assert(strlen_c("") == 0UL, "");
9861 static_assert(strlen_c("1") == 1UL, "");
9862 static_assert(strlen_c("example") == 7UL, "");
9863 static_assert(strlen_c("another\0example") == 7UL, "");
9864
9865 }
9866
9867 namespace test_rvalue_references
9868 {
9869
9870 template < int N >
9871 struct answer
9872 {
9873 static constexpr int value = N;
9874 };
9875
9876 answer<1> f(int&) { return answer<1>(); }
9877 answer<2> f(const int&) { return answer<2>(); }
9878 answer<3> f(int&&) { return answer<3>(); }
9879
9880 void
9881 test()
9882 {
9883 int i = 0;
9884 const int c = 0;
9885 static_assert(decltype(f(i))::value == 1, "");
9886 static_assert(decltype(f(c))::value == 2, "");
9887 static_assert(decltype(f(0))::value == 3, "");
9888 }
9889
9890 }
9891
9892 namespace test_uniform_initialization
9893 {
9894
9895 struct test
9896 {
9897 static const int zero {};
9898 static const int one {1};
9899 };
9900
9901 static_assert(test::zero == 0, "");
9902 static_assert(test::one == 1, "");
9903
9904 }
9905
9906 namespace test_lambdas
9907 {
9908
9909 void
9910 test1()
9911 {
9912 auto lambda1 = [](){};
9913 auto lambda2 = lambda1;
9914 lambda1();
9915 lambda2();
9916 }
9917
9918 int
9919 test2()
9920 {
9921 auto a = [](int i, int j){ return i + j; }(1, 2);
9922 auto b = []() -> int { return '0'; }();
9923 auto c = [=](){ return a + b; }();
9924 auto d = [&](){ return c; }();
9925 auto e = [a, &b](int x) mutable {
9926 const auto identity = [](int y){ return y; };
9927 for (auto i = 0; i < a; ++i)
9928 a += b--;
9929 return x + identity(a + b);
9930 }(0);
9931 return a + b + c + d + e;
9932 }
9933
9934 int
9935 test3()
9936 {
9937 const auto nullary = [](){ return 0; };
9938 const auto unary = [](int x){ return x; };
9939 using nullary_t = decltype(nullary);
9940 using unary_t = decltype(unary);
9941 const auto higher1st = [](nullary_t f){ return f(); };
9942 const auto higher2nd = [unary](nullary_t f1){
9943 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9944 };
9945 return higher1st(nullary) + higher2nd(nullary)(unary);
9946 }
9947
9948 }
9949
9950 namespace test_variadic_templates
9951 {
9952
9953 template <int...>
9954 struct sum;
9955
9956 template <int N0, int... N1toN>
9957 struct sum<N0, N1toN...>
9958 {
9959 static constexpr auto value = N0 + sum<N1toN...>::value;
9960 };
9961
9962 template <>
9963 struct sum<>
9964 {
9965 static constexpr auto value = 0;
9966 };
9967
9968 static_assert(sum<>::value == 0, "");
9969 static_assert(sum<1>::value == 1, "");
9970 static_assert(sum<23>::value == 23, "");
9971 static_assert(sum<1, 2>::value == 3, "");
9972 static_assert(sum<5, 5, 11>::value == 21, "");
9973 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9974
9975 }
9976
9977 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9978 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9979 // because of this.
9980 namespace test_template_alias_sfinae
9981 {
9982
9983 struct foo {};
9984
9985 template<typename T>
9986 using member = typename T::member_type;
9987
9988 template<typename T>
9989 void func(...) {}
9990
9991 template<typename T>
9992 void func(member<T>*) {}
9993
9994 void test();
9995
9996 void test() { func<foo>(0); }
9997
9998 }
9999
10000} // namespace cxx11
10001
10002#endif // __cplusplus >= 201103L
10003
10004
10005
10006_ACEOF
10007if ac_fn_cxx_try_compile "$LINENO"; then :
10008 eval $cachevar=yes
10009else
10010 eval $cachevar=no
10011fi
10012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
891810c2 10013 CXX="$ac_save_CXX"
f5852d3a
JS
10014fi
10015eval ac_res=\$$cachevar
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10017$as_echo "$ac_res" >&6; }
891810c2
FCE
10018 if eval test x\$$cachevar = xyes; then
10019 CXX="$CXX $switch"
10020 if test -n "$CXXCPP" ; then
10021 CXXCPP="$CXXCPP $switch"
10022 fi
10023 ac_success=yes
10024 break
10025 fi
10026 done
10027 if test x$ac_success = xyes; then
f5852d3a
JS
10028 break
10029 fi
10030 done
10031 fi
10032 ac_ext=c
10033ac_cpp='$CPP $CPPFLAGS'
10034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10036ac_compiler_gnu=$ac_cv_c_compiler_gnu
10037
10038 if test x$ax_cxx_compile_cxx11_required = xtrue; then
10039 if test x$ac_success = xno; then
10040 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
10041 fi
10042 fi
10043 if test x$ac_success = xno; then
10044 HAVE_CXX11=0
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
10046$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
10047 else
10048 HAVE_CXX11=1
10049
10050$as_echo "#define HAVE_CXX11 1" >>confdefs.h
10051
10052 fi
10053
10054
891810c2 10055
13a7f4f6 10056have_cxx0x="no"
f5852d3a
JS
10057if test "x$HAVE_CXX11" != x1; then :
10058
10059 ac_ext=cpp
10060ac_cpp='$CXXCPP $CPPFLAGS'
10061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10064
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -std=c++0x" >&5
10066$as_echo_n "checking whether C++ compiler accepts -std=c++0x... " >&6; }
10067if ${ax_cv_check_cxxflags___std_cpp0x+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069else
10070
10071 ax_check_save_flags=$CXXFLAGS
10072 CXXFLAGS="$CXXFLAGS -std=c++0x"
10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074/* end confdefs.h. */
10075
10076int
10077main ()
10078{
10079
10080 ;
10081 return 0;
10082}
10083_ACEOF
10084if ac_fn_cxx_try_compile "$LINENO"; then :
10085 ax_cv_check_cxxflags___std_cpp0x=yes
10086else
10087 ax_cv_check_cxxflags___std_cpp0x=no
10088fi
10089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 CXXFLAGS=$ax_check_save_flags
10091fi
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___std_cpp0x" >&5
10093$as_echo "$ax_cv_check_cxxflags___std_cpp0x" >&6; }
10094if test "x$ax_cv_check_cxxflags___std_cpp0x" = xyes; then :
10095
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with -std=c++0x" >&5
10097$as_echo "$as_me: Compiling with -std=c++0x" >&6;}
10098 CXX="$CXX -std=c++0x"
10099 HAVE_CXX11=1
13a7f4f6 10100 have_cxx0x="yes"
f5852d3a
JS
10101
10102else
10103
10104 as_fn_error $? "A compiler with C++11 support is required." "$LINENO" 5
10105
10106fi
10107
10108 ac_ext=c
10109ac_cpp='$CPP $CPPFLAGS'
10110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10112ac_compiler_gnu=$ac_cv_c_compiler_gnu
10113
10114
0f5d597d
JS
10115fi
10116
7fbd9d09 10117# Check whether --enable-ssp was given.
1ef0423a 10118if test "${enable_ssp+set}" = set; then :
7fbd9d09
FCE
10119 enableval=$enable_ssp;
10120fi
9921a199 10121
1ef0423a 10122if test "x$enable_ssp" != xno; then :
bbfd8c1a
FCE
10123
10124 save_CFLAGS="$CFLAGS"
10125 save_CXXFLAGS="$CXXFLAGS"
65ce0a67
YZ
10126 CXXFLAGS="-Werror -fstack-protector-all -D_FORTIFY_SOURCE=2 $CXXFLAGS"
10127 CFLAGS="-Werror -fstack-protector-all -D_FORTIFY_SOURCE=2 $CFLAGS"
1ef0423a
FCE
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129/* end confdefs.h. */
bbfd8c1a
FCE
10130int something ();
10131_ACEOF
1ef0423a 10132if ac_fn_c_try_compile "$LINENO"; then :
818ba2bc 10133
1ef0423a 10134 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
0710d850 10135$as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
65ce0a67
YZ
10136 CFLAGS="-fstack-protector-all -D_FORTIFY_SOURCE=2 $save_CFLAGS"
10137 CXXFLAGS="-fstack-protector-all -D_FORTIFY_SOURCE=2 $save_CXXFLAGS"
bbfd8c1a 10138else
bbfd8c1a 10139
1ef0423a 10140 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
0710d850 10141$as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
bbfd8c1a
FCE
10142 CFLAGS="$save_CFLAGS"
10143 CXXFLAGS="$save_CXXFLAGS"
10144fi
7fbd9d09 10145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921a199 10146fi
70d28673 10147
cbe7ea07
FCE
10148
10149
10150
e1e3ba36 10151# Compiling without fPIE by default (see PR 9922)
7fbd9d09 10152# Check whether --enable-pie was given.
1ef0423a 10153if test "${enable_pie+set}" = set; then :
7fbd9d09
FCE
10154 enableval=$enable_pie;
10155fi
8730f377 10156
1ef0423a 10157if test "x$enable_pie" == xyes; then :
8730f377 10158
97859b9d
JS
10159 PIECFLAGS='-fPIE'
10160 PIECXXFLAGS='-fPIE'
10161 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
8730f377
FCE
10162 save_CFLAGS="$CFLAGS"
10163 save_CXXFLAGS="$CXXFLAGS"
10164 save_LDFLAGS="$LDFLAGS"
97859b9d
JS
10165 CFLAGS="$CFLAGS $PIECFLAGS"
10166 CXXFLAGS="$CXXFLAGS $PIECXXFLAGS"
10167 LDFLAGS="$LDFLAGS $PIELDFLAGS"
1ef0423a
FCE
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169/* end confdefs.h. */
8730f377
FCE
10170void main () {}
10171_ACEOF
1ef0423a 10172if ac_fn_c_try_link "$LINENO"; then :
818ba2bc 10173
1ef0423a 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
0710d850 10175$as_echo "$as_me: Compiling with gcc pie et al." >&6;}
8730f377
FCE
10176
10177else
8730f377 10178
1ef0423a 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
0710d850 10180$as_echo "$as_me: Compiler does not support -pie et al." >&6;}
5574ef2c 10181 PIECFLAGS=""
5574ef2c 10182 PIECXXFLAGS=""
8730f377 10183 PIELDFLAGS=""
97859b9d 10184
8730f377 10185fi
1ef0423a
FCE
10186rm -f core conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
97859b9d
JS
10188 CFLAGS="$save_CFLAGS"
10189 CXXFLAGS="$save_CXXFLAGS"
10190 LDFLAGS="$save_LDFLAGS"
10191
8730f377
FCE
10192fi
10193
10194
10195
5574ef2c 10196
7fbd9d09 10197# Check whether --enable-sqlite was given.
1ef0423a 10198if test "${enable_sqlite+set}" = set; then :
7fbd9d09 10199 enableval=$enable_sqlite;
9921a199 10200else
e8f3c2c2 10201 enable_sqlite=check
7fbd9d09
FCE
10202fi
10203 sqlite3_LIBS=
1fbe397b
FCE
10204
10205
10206
10207
10208
10209
10210
10211if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10212 if test -n "$ac_tool_prefix"; then
10213 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10214set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10216$as_echo_n "checking for $ac_word... " >&6; }
10217if ${ac_cv_path_PKG_CONFIG+:} false; then :
0710d850 10218 $as_echo_n "(cached) " >&6
42feb3c0 10219else
1fbe397b
FCE
10220 case $PKG_CONFIG in
10221 [\\/]* | ?:[\\/]*)
10222 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10223 ;;
10224 *)
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226for as_dir in $PATH
10227do
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10232 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10235 fi
10236done
10237 done
10238IFS=$as_save_IFS
42feb3c0 10239
1fbe397b
FCE
10240 ;;
10241esac
10242fi
10243PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10244if test -n "$PKG_CONFIG"; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10246$as_echo "$PKG_CONFIG" >&6; }
42feb3c0 10247else
1fbe397b
FCE
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249$as_echo "no" >&6; }
42feb3c0 10250fi
1fbe397b
FCE
10251
10252
10253fi
10254if test -z "$ac_cv_path_PKG_CONFIG"; then
10255 ac_pt_PKG_CONFIG=$PKG_CONFIG
10256 # Extract the first word of "pkg-config", so it can be a program name with args.
10257set dummy pkg-config; ac_word=$2
10258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259$as_echo_n "checking for $ac_word... " >&6; }
10260if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10261 $as_echo_n "(cached) " >&6
10262else
10263 case $ac_pt_PKG_CONFIG in
10264 [\\/]* | ?:[\\/]*)
10265 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10266 ;;
10267 *)
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269for as_dir in $PATH
10270do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10278 fi
10279done
10280 done
10281IFS=$as_save_IFS
10282
10283 ;;
10284esac
10285fi
10286ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10287if test -n "$ac_pt_PKG_CONFIG"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10289$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10290else
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292$as_echo "no" >&6; }
42feb3c0 10293fi
42feb3c0 10294
1fbe397b
FCE
10295 if test "x$ac_pt_PKG_CONFIG" = x; then
10296 PKG_CONFIG=""
10297 else
10298 case $cross_compiling:$ac_tool_warned in
10299yes:)
10300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10302ac_tool_warned=yes ;;
10303esac
10304 PKG_CONFIG=$ac_pt_PKG_CONFIG
10305 fi
10306else
10307 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10308fi
0d563e60 10309
1fbe397b
FCE
10310fi
10311if test -n "$PKG_CONFIG"; then
10312 _pkg_min_version=0.9.0
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10314$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10315 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10317$as_echo "yes" >&6; }
10318 else
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320$as_echo "no" >&6; }
10321 PKG_CONFIG=""
10322 fi
10323fi
10324if test "x$enable_sqlite" != xno; then :
07606685 10325
1fbe397b
FCE
10326pkg_failed=no
10327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
10328$as_echo_n "checking for sqlite3... " >&6; }
10329
10330if test -n "$sqlite3_CFLAGS"; then
10331 pkg_cv_sqlite3_CFLAGS="$sqlite3_CFLAGS"
10332 elif test -n "$PKG_CONFIG"; then
10333 if test -n "$PKG_CONFIG" && \
10334 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5
10335 ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5
10336 ac_status=$?
10337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10338 test $ac_status = 0; }; then
10339 pkg_cv_sqlite3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 > 3.7" 2>/dev/null`
10340 test "x$?" != "x0" && pkg_failed=yes
9921a199 10341else
1fbe397b
FCE
10342 pkg_failed=yes
10343fi
10344 else
10345 pkg_failed=untried
10346fi
10347if test -n "$sqlite3_LIBS"; then
10348 pkg_cv_sqlite3_LIBS="$sqlite3_LIBS"
10349 elif test -n "$PKG_CONFIG"; then
10350 if test -n "$PKG_CONFIG" && \
10351 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5
10352 ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5
10353 ac_status=$?
10354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10355 test $ac_status = 0; }; then
10356 pkg_cv_sqlite3_LIBS=`$PKG_CONFIG --libs "sqlite3 > 3.7" 2>/dev/null`
10357 test "x$?" != "x0" && pkg_failed=yes
10358else
10359 pkg_failed=yes
10360fi
10361 else
10362 pkg_failed=untried
10363fi
10364
10365
10366
10367if test $pkg_failed = yes; then
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369$as_echo "no" >&6; }
10370
10371if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10372 _pkg_short_errors_supported=yes
10373else
10374 _pkg_short_errors_supported=no
10375fi
10376 if test $_pkg_short_errors_supported = yes; then
10377 sqlite3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1`
10378 else
10379 sqlite3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1`
10380 fi
10381 # Put the nasty error message in config.log where it belongs
10382 echo "$sqlite3_PKG_ERRORS" >&5
10383
10384 if test "x$enable_sqlite" != xcheck; then
1ef0423a 10385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
0710d850 10386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
572f73b5 10387as_fn_error $? "--enable-sqlite was given, but test for sqlite > 3.7 failed
5d4aa1f5 10388See \`config.log' for more details" "$LINENO" 5; }
9921a199 10389 fi
1fbe397b
FCE
10390elif test $pkg_failed = untried; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392$as_echo "no" >&6; }
10393 if test "x$enable_sqlite" != xcheck; then
10394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
572f73b5 10396as_fn_error $? "--enable-sqlite was given, but test for sqlite > 3.7 failed
1fbe397b
FCE
10397See \`config.log' for more details" "$LINENO" 5; }
10398 fi
10399else
10400 sqlite3_CFLAGS=$pkg_cv_sqlite3_CFLAGS
10401 sqlite3_LIBS=$pkg_cv_sqlite3_LIBS
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10403$as_echo "yes" >&6; }
42feb3c0 10404
1fbe397b
FCE
10405$as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h
10406
10407fi
9921a199 10408fi
44f75386 10409
6d14a4a9 10410# Check whether --enable-translator was given.
1ef0423a 10411if test "${enable_translator+set}" = set; then :
6d14a4a9
EB
10412 enableval=$enable_translator;
10413else
10414 enable_translator="yes"
10415fi
10416
10417 if test "$enable_translator" == "yes"; then
10418 BUILD_TRANSLATOR_TRUE=
10419 BUILD_TRANSLATOR_FALSE='#'
10420else
10421 BUILD_TRANSLATOR_TRUE='#'
10422 BUILD_TRANSLATOR_FALSE=
10423fi
10424
10425
7fbd9d09 10426# Check whether --enable-crash was given.
1ef0423a 10427if test "${enable_crash+set}" = set; then :
7fbd9d09 10428 enableval=$enable_crash; if test "$enable_crash" != "no"; then
564eb0a8
DS
10429 save_CPPFLAGS="$CPPFLAGS"
10430 if test "$enable_crash" != "yes"; then
10431 staplog_CPPFLAGS=-I$enable_crash
4a3c19da 10432 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
35a04c8e 10433
412e1bf7 10434 fi
1ef0423a
FCE
10435 for ac_header in crash/defs.h
10436do :
10437 ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" "
10438#define NR_CPUS 256
5e5aee9f 10439
1ef0423a 10440"
c3de29bd 10441if test "x$ac_cv_header_crash_defs_h" = xyes; then :
1ef0423a
FCE
10442 cat >>confdefs.h <<_ACEOF
10443#define HAVE_CRASH_DEFS_H 1
5e5aee9f 10444_ACEOF
5e5aee9f 10445
1ef0423a 10446else
5d4aa1f5 10447 as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5
1ef0423a 10448fi
7fbd9d09 10449
1ef0423a 10450done
5e5aee9f 10451
1ef0423a
FCE
10452 CPPFLAGS="$save_CPPFLAGS"
10453 fi
5e5aee9f 10454else
1ef0423a 10455 enable_crash="no"
7fbd9d09 10456fi
564eb0a8 10457
7fbd9d09 10458 if test "$enable_crash" != "no"; then
35a04c8e
FCE
10459 BUILD_CRASHMOD_TRUE=
10460 BUILD_CRASHMOD_FALSE='#'
10461else
10462 BUILD_CRASHMOD_TRUE='#'
10463 BUILD_CRASHMOD_FALSE=
10464fi
10465
10466
92aff3c7 10467building_docs="no"
6e69a441 10468installing_prebuilt_docs="yes"
7fbd9d09 10469# Check whether --enable-docs was given.
1ef0423a 10470if test "${enable_docs+set}" = set; then :
7fbd9d09 10471 enableval=$enable_docs; enable_docs=$enableval
465e8fbf 10472else
6e69a441 10473 enable_docs="prebuilt"
7fbd9d09
FCE
10474fi
10475
465e8fbf
FCE
10476# Extract the first word of "latex", so it can be a program name with args.
10477set dummy latex; ac_word=$2
1ef0423a 10478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 10479$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 10480if ${ac_cv_prog_have_latex+:} false; then :
0710d850 10481 $as_echo_n "(cached) " >&6
465e8fbf
FCE
10482else
10483 if test -n "$have_latex"; then
10484 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
10485else
10486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487for as_dir in $PATH
10488do
10489 IFS=$as_save_IFS
10490 test -z "$as_dir" && as_dir=.
1ef0423a 10491 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 10492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
465e8fbf 10493 ac_cv_prog_have_latex="yes"
1ef0423a 10494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
10495 break 2
10496 fi
10497done
1ef0423a 10498 done
7fbd9d09 10499IFS=$as_save_IFS
465e8fbf
FCE
10500
10501 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
10502fi
10503fi
10504have_latex=$ac_cv_prog_have_latex
10505if test -n "$have_latex"; then
1ef0423a 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5
0710d850 10507$as_echo "$have_latex" >&6; }
465e8fbf 10508else
1ef0423a 10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 10510$as_echo "no" >&6; }
465e8fbf
FCE
10511fi
10512
7fbd9d09 10513
465e8fbf
FCE
10514# Extract the first word of "dvips", so it can be a program name with args.
10515set dummy dvips; ac_word=$2
1ef0423a 10516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 10517$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 10518if ${ac_cv_prog_have_dvips+:} false; then :
0710d850 10519 $as_echo_n "(cached) " >&6
465e8fbf
FCE
10520else
10521 if test -n "$have_dvips"; then
10522 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
10523else
10524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525for as_dir in $PATH
10526do
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
1ef0423a 10529 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 10530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
465e8fbf 10531 ac_cv_prog_have_dvips="yes"
1ef0423a 10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
10533 break 2
10534 fi
10535done
1ef0423a 10536 done
7fbd9d09 10537IFS=$as_save_IFS
465e8fbf
FCE
10538
10539 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
10540fi
10541fi
10542have_dvips=$ac_cv_prog_have_dvips
10543if test -n "$have_dvips"; then
1ef0423a 10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
0710d850 10545$as_echo "$have_dvips" >&6; }
465e8fbf 10546else
1ef0423a 10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 10548$as_echo "no" >&6; }
465e8fbf
FCE
10549fi
10550
7fbd9d09 10551
465e8fbf
FCE
10552# Extract the first word of "ps2pdf", so it can be a program name with args.
10553set dummy ps2pdf; ac_word=$2
1ef0423a 10554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
0710d850 10555$as_echo_n "checking for $ac_word... " >&6; }
c3de29bd 10556if ${ac_cv_prog_have_ps2pdf+:} false; then :
0710d850 10557 $as_echo_n "(cached) " >&6
465e8fbf
FCE
10558else
10559 if test -n "$have_ps2pdf"; then
10560 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
10561else
10562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563for as_dir in $PATH
10564do
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
1ef0423a 10567 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 10568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
465e8fbf 10569 ac_cv_prog_have_ps2pdf="yes"
1ef0423a 10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
465e8fbf
FCE
10571 break 2
10572 fi
10573done
1ef0423a 10574 done
7fbd9d09 10575IFS=$as_save_IFS
465e8fbf
FCE
10576
10577 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
10578fi
10579fi
10580have_ps2pdf=$ac_cv_prog_have_ps2pdf
10581if test -n "$have_ps2pdf"; then
1ef0423a 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5
0710d850 10583$as_echo "$have_ps2pdf" >&6; }
465e8fbf 10584else
1ef0423a 10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 10586$as_echo "no" >&6; }
465e8fbf
FCE
10587fi
10588
7fbd9d09 10589
7012fdd5 10590if test "x${have_latex}${have_dvips}${have_ps2pdf}" != "xyesyesyes"; then
2d4b8ddf 10591 if test "$enable_docs" == "yes"; then
5d4aa1f5 10592 as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5
465e8fbf 10593 fi
2d4b8ddf 10594 if test "$enable_docs" == "check"; then
1ef0423a 10595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5
0710d850 10596$as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
2d4b8ddf 10597 fi
465e8fbf 10598fi
6e69a441
SM
10599if test "$enable_docs" == "prebuilt"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: will only install prebuilt documentation" >&5
10601$as_echo "$as_me: will only install prebuilt documentation" >&6;}
10602fi
10603if test "x${have_latex}${have_dvips}${have_ps2pdf}" == "xyesyesyes" -a "$enable_docs" != "no" -a "$enable_docs" != "prebuilt"; then
92aff3c7 10604 building_docs="yes"
6e69a441
SM
10605 installing_prebuilt_docs="yes"
10606fi
10607if test "$enable_docs" == "no"; then
10608 installing_prebuilt_docs="no"
92aff3c7 10609fi
7fbd9d09 10610 if test "$building_docs" == "yes"; then
465e8fbf
FCE
10611 BUILD_DOCS_TRUE=
10612 BUILD_DOCS_FALSE='#'
10613else
10614 BUILD_DOCS_TRUE='#'
10615 BUILD_DOCS_FALSE=
10616fi
10617
6e69a441
SM
10618 if test "$installing_prebuilt_docs" == "yes"; then
10619 INSTALL_PREBUILT_DOCS_TRUE=
10620 INSTALL_PREBUILT_DOCS_FALSE='#'
10621else
10622 INSTALL_PREBUILT_DOCS_TRUE='#'
10623 INSTALL_PREBUILT_DOCS_FALSE=
10624fi
10625
465e8fbf 10626
53ade4da 10627
92aff3c7 10628building_refdocs="no"
7fbd9d09 10629# Check whether --enable-refdocs was given.
1ef0423a 10630if test "${enable_refdocs+set}" = set; then :
7fbd9d09 10631 enableval=$enable_refdocs; enable_refdocs=$enableval
92aff3c7
WC
10632else
10633 enable_refdocs="check"
7fbd9d09
FCE
10634fi
10635
92aff3c7 10636if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
5d4aa1f5 10637 as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5
92aff3c7 10638fi
1ed33130 10639if test "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
ccf8bc85
EM
10640 building_refdocs="yes"
10641fi
10642 if test "$building_refdocs" == "yes"; then
10643 BUILD_REFDOCS_TRUE=
10644 BUILD_REFDOCS_FALSE='#'
10645else
10646 BUILD_REFDOCS_TRUE='#'
10647 BUILD_REFDOCS_FALSE=
10648fi
10649
10650
d9c42357
FL
10651# Extract the first word of "xmlto", so it can be a program name with args.
10652set dummy xmlto; ac_word=$2
10653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10654$as_echo_n "checking for $ac_word... " >&6; }
10655if ${ac_cv_prog_have_xmlto+:} false; then :
10656 $as_echo_n "(cached) " >&6
10657else
10658 if test -n "$have_xmlto"; then
10659 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
10660else
10661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662for as_dir in $PATH
10663do
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10668 ac_cv_prog_have_xmlto="yes"
10669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10670 break 2
10671 fi
10672done
10673 done
10674IFS=$as_save_IFS
10675
10676 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
10677fi
10678fi
10679have_xmlto=$ac_cv_prog_have_xmlto
10680if test -n "$have_xmlto"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
10682$as_echo "$have_xmlto" >&6; }
10683else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685$as_echo "no" >&6; }
10686fi
10687
10688
327a760e
FCE
10689# Extract the first word of "fop", so it can be a program name with args.
10690set dummy fop; ac_word=$2
10691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692$as_echo_n "checking for $ac_word... " >&6; }
10693if ${ac_cv_prog_have_fop+:} false; then :
10694 $as_echo_n "(cached) " >&6
10695else
10696 if test -n "$have_fop"; then
10697 ac_cv_prog_have_fop="$have_fop" # Let the user override the test.
10698else
10699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700for as_dir in $PATH
10701do
10702 IFS=$as_save_IFS
10703 test -z "$as_dir" && as_dir=.
10704 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 10705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
327a760e
FCE
10706 ac_cv_prog_have_fop="yes"
10707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10708 break 2
10709 fi
10710done
10711 done
10712IFS=$as_save_IFS
10713
10714 test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no"
10715fi
10716fi
10717have_fop=$ac_cv_prog_have_fop
10718if test -n "$have_fop"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5
10720$as_echo "$have_fop" >&6; }
10721else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723$as_echo "no" >&6; }
10724fi
10725
10726
61598deb
FCE
10727if test "x${have_fop}" == "xyes"; then
10728 # Due to rhbz505364 / 830266, we must actually test-run fop, not just
10729 # hope that it works.
434e049c
FCE
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5
10731$as_echo_n "checking to see if xmlto --with-fop actually works... " >&6; }
61598deb 10732 if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then
434e049c
FCE
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10734$as_echo "yes" >&6; }
61598deb 10735 else
434e049c
FCE
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5
10737$as_echo "it's dead, Jim" >&6; }
61598deb
FCE
10738 have_fop="broken"
10739 fi
75d16f55 10740 rm -f dummy-tapsets.pdf
61598deb 10741fi
327a760e
FCE
10742 if test "$have_fop" == "yes"; then
10743 HAVE_FOP_TRUE=
10744 HAVE_FOP_FALSE='#'
10745else
10746 HAVE_FOP_TRUE='#'
10747 HAVE_FOP_FALSE=
10748fi
10749
a98010af
AJ
10750 if test "$have_xmlto" == "yes"; then
10751 HAVE_XMLTO_TRUE=
10752 HAVE_XMLTO_FALSE='#'
10753else
10754 HAVE_XMLTO_TRUE='#'
10755 HAVE_XMLTO_FALSE=
10756fi
10757
327a760e 10758
d9c42357
FL
10759building_htmldocs="no"
10760# Check whether --enable-htmldocs was given.
10761if test "${enable_htmldocs+set}" = set; then :
617829c9 10762 enableval=$enable_htmldocs; building_htmldocs=$enableval
d9c42357
FL
10763else
10764 building_htmldocs="no"
10765fi
10766
617829c9
FL
10767if test "$have_xmlto" == "no" -a "$building_htmldocs" == "yes"; then
10768 as_fn_error $? "xmlto required for building html documentation" "$LINENO" 5
10769fi
d9c42357
FL
10770
10771 if test "$building_htmldocs" == "yes"; then
10772 BUILD_HTMLDOCS_TRUE=
10773 BUILD_HTMLDOCS_FALSE='#'
10774else
10775 BUILD_HTMLDOCS_TRUE='#'
10776 BUILD_HTMLDOCS_FALSE=
10777fi
10778
10779
468abaf4 10780cat > conftest.xml << 'EOF'
aa5951be
WC
10781<?xml version="1.0" encoding="UTF-8"?>
10782<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
10783"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
468abaf4
FCE
10784 <book lang="en">
10785 <bookinfo><title>foo</title></bookinfo>
a8fcf687
MW
10786 <chapter id="logging.stp"><title>Logging Tapset</title>
10787 <refentry id="API-log"><refnamediv><refname>log</refname>
10788 <refpurpose>logging</refpurpose></refnamediv>
10789 <refsect1><title>Description</title>
10790 <para>baz</para></refsect1></refentry></chapter>
aa5951be
WC
10791 </book>
10792EOF
468abaf4
FCE
10793
10794if test "x${have_xmlto}" == "xyes"; then
1ef0423a 10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5
0710d850 10796$as_echo_n "checking for xmlto --stringparam support... " >&6; }
4b5627b1 10797 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
468abaf4
FCE
10798 if test $? == 0; then
10799 have_xmlto_stringparam="yes"
1ef0423a 10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0710d850 10801$as_echo "yes" >&6; }
468abaf4 10802 else
1ef0423a 10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0710d850 10804$as_echo "no" >&6; }
468abaf4 10805 fi
4b5627b1 10806 rm -f conftest.html
468abaf4
FCE
10807fi
10808 if test "$have_xmlto_stringparam" == "yes"; then
10809 XMLTO_STRINGPARAM_TRUE=
10810 XMLTO_STRINGPARAM_FALSE='#'
10811else
10812 XMLTO_STRINGPARAM_TRUE='#'
10813 XMLTO_STRINGPARAM_FALSE=
10814fi
10815
10816
468abaf4
FCE
10817rm -f conftest.xml
10818
a0e2728a 10819
28f121c3
DEP
10820# Check whether --with-nss was given.
10821if test "${with_nss+set}" = set; then :
10822 withval=$with_nss;
a0e2728a
DB
10823fi
10824
10825
28f121c3
DEP
10826if test "x$with_nss" != "xno"; then :
10827
10828
10829pkg_failed=no
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
10831$as_echo_n "checking for nss... " >&6; }
10832
10833if test -n "$nss_CFLAGS"; then
10834 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
10835 elif test -n "$PKG_CONFIG"; then
10836 if test -n "$PKG_CONFIG" && \
10837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10838 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10839 ac_status=$?
10840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10841 test $ac_status = 0; }; then
10842 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null`
8eef2738 10843 test "x$?" != "x0" && pkg_failed=yes
28f121c3
DEP
10844else
10845 pkg_failed=yes
10846fi
10847 else
10848 pkg_failed=untried
10849fi
10850if test -n "$nss_LIBS"; then
10851 pkg_cv_nss_LIBS="$nss_LIBS"
10852 elif test -n "$PKG_CONFIG"; then
10853 if test -n "$PKG_CONFIG" && \
10854 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10855 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10856 ac_status=$?
10857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10858 test $ac_status = 0; }; then
10859 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null`
8eef2738 10860 test "x$?" != "x0" && pkg_failed=yes
28f121c3
DEP
10861else
10862 pkg_failed=yes
10863fi
10864 else
10865 pkg_failed=untried
10866fi
10867
10868
10869
10870if test $pkg_failed = yes; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872$as_echo "no" >&6; }
10873
10874if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10875 _pkg_short_errors_supported=yes
10876else
10877 _pkg_short_errors_supported=no
10878fi
10879 if test $_pkg_short_errors_supported = yes; then
8eef2738 10880 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1`
28f121c3 10881 else
8eef2738 10882 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1`
28f121c3
DEP
10883 fi
10884 # Put the nasty error message in config.log where it belongs
10885 echo "$nss_PKG_ERRORS" >&5
10886
10887 have_nss=no
10888elif test $pkg_failed = untried; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890$as_echo "no" >&6; }
10891 have_nss=no
10892else
10893 nss_CFLAGS=$pkg_cv_nss_CFLAGS
10894 nss_LIBS=$pkg_cv_nss_LIBS
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10896$as_echo "yes" >&6; }
10897 have_nss=yes
10898
10899$as_echo "#define HAVE_NSS 1" >>confdefs.h
10900
10901
10902fi
10903
10904else
10905 have_nss=no
10906fi
10907
10908 if test "${have_nss}" = "yes"; then
10909 HAVE_NSS_TRUE=
10910 HAVE_NSS_FALSE='#'
10911else
10912 HAVE_NSS_TRUE='#'
10913 HAVE_NSS_FALSE=
10914fi
10915
10916
2323b028 10917
638abbd0
SC
10918# Check whether --with-openssl was given.
10919if test "${with_openssl+set}" = set; then :
10920 withval=$with_openssl;
10921fi
10922
10923
10924if test "x$with_openssl" != "xno"; then :
10925
10926
10927pkg_failed=no
10928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
10929$as_echo_n "checking for openssl... " >&6; }
10930
10931if test -n "$openssl_CFLAGS"; then
10932 pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
10933 elif test -n "$PKG_CONFIG"; then
10934 if test -n "$PKG_CONFIG" && \
10935 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
10936 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
10937 ac_status=$?
10938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10939 test $ac_status = 0; }; then
10940 pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
10941 test "x$?" != "x0" && pkg_failed=yes
10942else
10943 pkg_failed=yes
10944fi
10945 else
10946 pkg_failed=untried
10947fi
10948if test -n "$openssl_LIBS"; then
10949 pkg_cv_openssl_LIBS="$openssl_LIBS"
10950 elif test -n "$PKG_CONFIG"; then
10951 if test -n "$PKG_CONFIG" && \
10952 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
10953 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
10954 ac_status=$?
10955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10956 test $ac_status = 0; }; then
10957 pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
10958 test "x$?" != "x0" && pkg_failed=yes
10959else
10960 pkg_failed=yes
10961fi
10962 else
10963 pkg_failed=untried
10964fi
10965
10966
10967
10968if test $pkg_failed = yes; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970$as_echo "no" >&6; }
10971
10972if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10973 _pkg_short_errors_supported=yes
10974else
10975 _pkg_short_errors_supported=no
10976fi
10977 if test $_pkg_short_errors_supported = yes; then
10978 openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
10979 else
10980 openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
10981 fi
10982 # Put the nasty error message in config.log where it belongs
10983 echo "$openssl_PKG_ERRORS" >&5
10984
10985 have_openssl=no
10986elif test $pkg_failed = untried; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10988$as_echo "no" >&6; }
10989 have_openssl=no
10990else
10991 openssl_CFLAGS=$pkg_cv_openssl_CFLAGS
10992 openssl_LIBS=$pkg_cv_openssl_LIBS
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10994$as_echo "yes" >&6; }
10995 have_openssl=yes
10996
10997$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10998
10999
11000fi
11001
11002else
11003 have_openssl=no
11004fi
11005
11006 if test "${have_openssl}" = "yes"; then
11007 HAVE_OPENSSL_TRUE=
11008 HAVE_OPENSSL_FALSE='#'
11009else
11010 HAVE_OPENSSL_TRUE='#'
11011 HAVE_OPENSSL_FALSE=
11012fi
11013
11014
11015
2323b028
FCE
11016# Check whether --with-dracutstap was given.
11017if test "${with_dracutstap+set}" = set; then :
11018 withval=$with_dracutstap;
11019fi
11020
11021if test "x$with_dracutstap" != "x"; then :
11022 dracutstap="$with_dracutstap"
11023else
11024 dracutstap=/usr/lib/dracut/modules.d/99stap
11025fi
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: using dracut module directory $dracutstap" >&5
11027$as_echo "$as_me: using dracut module directory $dracutstap" >&6;}
11028
11029
9ed47854
MC
11030
11031# Check whether --with-dracutbindir was given.
11032if test "${with_dracutbindir+set}" = set; then :
11033 withval=$with_dracutbindir;
11034fi
11035
11036if test "x$with_dracutbindir" != "x"; then :
11037 dracutbindir="$with_dracutbindir"
11038else
11039 dracutbindir=/sbin
11040fi
11041{ $as_echo "$as_me:${as_lineno-$LINENO}: using dracut binary $dracutbindir" >&5
11042$as_echo "$as_me: using dracut binary $dracutbindir" >&6;}
11043
11044
28f121c3
DEP
11045# Check whether --enable-server was given.
11046if test "${enable_server+set}" = set; then :
11047 enableval=$enable_server; enable_server=$enableval
11048else
11049 enable_server="check"
11050fi
11051
11052
11053if test "$enable_server" != "no"; then
11054 if test "x${have_nss}" != "xyes"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5
11056$as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;}
11057 fi
11058fi
11059 if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then
11060 BUILD_SERVER_TRUE=
11061 BUILD_SERVER_FALSE='#'
11062else
11063 BUILD_SERVER_TRUE='#'
11064 BUILD_SERVER_FALSE=
11065fi
11066
11067
11068if test "${have_nss}" != "yes"; then
c4fd15b4
DB
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5
11070$as_echo "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;}
28f121c3
DEP
11071fi
11072
11073
11074# Check whether --with-avahi was given.
11075if test "${with_avahi+set}" = set; then :
11076 withval=$with_avahi;
11077fi
11078
11079
11080if test "x$with_avahi" != "xno"; then :
11081
11082
11083pkg_failed=no
11084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
11085$as_echo_n "checking for avahi... " >&6; }
11086
11087if test -n "$avahi_CFLAGS"; then
11088 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
11089 elif test -n "$PKG_CONFIG"; then
11090 if test -n "$PKG_CONFIG" && \
11091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
11092 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
11093 ac_status=$?
11094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11095 test $ac_status = 0; }; then
11096 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
8eef2738 11097 test "x$?" != "x0" && pkg_failed=yes
28f121c3
DEP
11098else
11099 pkg_failed=yes
11100fi
11101 else
11102 pkg_failed=untried
11103fi
11104if test -n "$avahi_LIBS"; then
11105 pkg_cv_avahi_LIBS="$avahi_LIBS"
11106 elif test -n "$PKG_CONFIG"; then
11107 if test -n "$PKG_CONFIG" && \
11108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
11109 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
11110 ac_status=$?
11111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11112 test $ac_status = 0; }; then
11113 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
8eef2738 11114 test "x$?" != "x0" && pkg_failed=yes
28f121c3
DEP
11115else
11116 pkg_failed=yes
11117fi
11118 else
11119 pkg_failed=untried
11120fi
11121
11122
11123
11124if test $pkg_failed = yes; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126$as_echo "no" >&6; }
11127
11128if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11129 _pkg_short_errors_supported=yes
11130else
11131 _pkg_short_errors_supported=no
11132fi
11133 if test $_pkg_short_errors_supported = yes; then
8eef2738 11134 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
28f121c3 11135 else
8eef2738 11136 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
28f121c3
DEP
11137 fi
11138 # Put the nasty error message in config.log where it belongs
11139 echo "$avahi_PKG_ERRORS" >&5
11140
11141 have_avahi=no
11142elif test $pkg_failed = untried; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144$as_echo "no" >&6; }
11145 have_avahi=no
11146else
11147 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
11148 avahi_LIBS=$pkg_cv_avahi_LIBS
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11150$as_echo "yes" >&6; }
11151 have_avahi=yes
11152
11153$as_echo "#define HAVE_AVAHI 1" >>confdefs.h
11154
11155
11156fi
11157
11158else
11159 have_avahi=no
11160fi
11161
11162 if test "${have_avahi}" = "yes"; then
11163 HAVE_AVAHI_TRUE=
11164 HAVE_AVAHI_FALSE='#'
11165else
11166 HAVE_AVAHI_TRUE='#'
11167 HAVE_AVAHI_FALSE=
11168fi
11169
11170
11171if test "${have_avahi}" != "yes"; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5
11173$as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;}
11174fi
11175
1087b83f 11176
2ed04863
WC
11177
11178# Check whether --with-rpm was given.
1ef0423a 11179if test "${with_rpm+set}" = set; then :
2ed04863
WC
11180 withval=$with_rpm;
11181else
11182 with_rpm="auto"
11183fi
11184
bcfa72ed 11185if test "$with_rpm" != "no"; then
1ef0423a 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5
bcfa72ed 11187$as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; }
c3de29bd 11188if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then :
bcfa72ed 11189 $as_echo_n "(cached) " >&6
e6364d79 11190else
bcfa72ed
FCE
11191 ac_check_lib_save_LIBS=$LIBS
11192LIBS="-lrpm $LIBS"
1ef0423a 11193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ed04863
WC
11194/* end confdefs.h. */
11195
bcfa72ed
FCE
11196/* Override any GCC internal prototype to avoid an error.
11197 Use char because int might match the return type of a GCC
11198 builtin and then its argument prototype would still apply. */
11199#ifdef __cplusplus
11200extern "C"
11201#endif
11202char rpmtsInitIterator ();
2ed04863
WC
11203int
11204main ()
11205{
bcfa72ed 11206return rpmtsInitIterator ();
2ed04863
WC
11207 ;
11208 return 0;
11209}
11210_ACEOF
1ef0423a 11211if ac_fn_c_try_link "$LINENO"; then :
5e5aee9f
FCE
11212 ac_cv_lib_rpm_rpmtsInitIterator=yes
11213else
1ef0423a 11214 ac_cv_lib_rpm_rpmtsInitIterator=no
5e5aee9f 11215fi
1ef0423a
FCE
11216rm -f core conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext conftest.$ac_ext
5e5aee9f
FCE
11218LIBS=$ac_check_lib_save_LIBS
11219fi
1ef0423a 11220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
5e5aee9f 11221$as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
c3de29bd 11222if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then :
5e5aee9f 11223
12c1a007 11224
1ef0423a 11225$as_echo "#define HAVE_LIBRPM 1" >>confdefs.h
12c1a007 11226
f02c2e47 11227 stap_LIBS="$stap_LIBS -lc -lrpm"
12c1a007 11228 have_librpm="yes"
7f9ad862
SC
11229else
11230 have_librpm="no"
2ed04863 11231fi
e6364d79 11232
529073d0
FCE
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmdbNextIterator in -lrpmdb" >&5
11234$as_echo_n "checking for rpmdbNextIterator in -lrpmdb... " >&6; }
11235if ${ac_cv_lib_rpmdb_rpmdbNextIterator+:} false; then :
11236 $as_echo_n "(cached) " >&6
11237else
11238 ac_check_lib_save_LIBS=$LIBS
11239LIBS="-lrpmdb $LIBS"
11240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241/* end confdefs.h. */
11242
11243/* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11246#ifdef __cplusplus
11247extern "C"
11248#endif
11249char rpmdbNextIterator ();
11250int
11251main ()
11252{
11253return rpmdbNextIterator ();
11254 ;
11255 return 0;
11256}
11257_ACEOF
11258if ac_fn_c_try_link "$LINENO"; then :
11259 ac_cv_lib_rpmdb_rpmdbNextIterator=yes
11260else
11261 ac_cv_lib_rpmdb_rpmdbNextIterator=no
11262fi
11263rm -f core conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
11265LIBS=$ac_check_lib_save_LIBS
11266fi
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmdb_rpmdbNextIterator" >&5
11268$as_echo "$ac_cv_lib_rpmdb_rpmdbNextIterator" >&6; }
11269if test "x$ac_cv_lib_rpmdb_rpmdbNextIterator" = xyes; then :
11270
11271 stap_LIBS="$stap_LIBS -lrpmdb"
11272fi
11273
44edbcd6
JS
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5
11275$as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; }
c3de29bd 11276if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then :
44edbcd6
JS
11277 $as_echo_n "(cached) " >&6
11278else
11279 ac_check_lib_save_LIBS=$LIBS
11280LIBS="-lrpmio $LIBS"
11281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282/* end confdefs.h. */
11283
11284/* Override any GCC internal prototype to avoid an error.
11285 Use char because int might match the return type of a GCC
11286 builtin and then its argument prototype would still apply. */
11287#ifdef __cplusplus
11288extern "C"
11289#endif
11290char rpmFreeCrypto ();
11291int
11292main ()
11293{
11294return rpmFreeCrypto ();
11295 ;
11296 return 0;
11297}
11298_ACEOF
11299if ac_fn_c_try_link "$LINENO"; then :
11300 ac_cv_lib_rpmio_rpmFreeCrypto=yes
11301else
11302 ac_cv_lib_rpmio_rpmFreeCrypto=no
11303fi
11304rm -f core conftest.err conftest.$ac_objext \
11305 conftest$ac_exeext conftest.$ac_ext
11306LIBS=$ac_check_lib_save_LIBS
11307fi
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5
11309$as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; }
c3de29bd 11310if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then :
44edbcd6
JS
11311
11312
11313$as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h
11314
f02c2e47 11315 stap_LIBS="$stap_LIBS -lc -lrpmio"
44edbcd6
JS
11316 have_librpmio="yes"
11317else
11318 have_librpmio="no"
11319fi
11320
bcfa72ed 11321 if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then
5d4aa1f5 11322 as_fn_error $? "cannot find librpm" "$LINENO" 5
2ed04863 11323 fi
44edbcd6
JS
11324 if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5
11326$as_echo "$as_me: WARNING: cannot find librpmio" >&2;}
11327 fi
2ed04863
WC
11328fi
11329
9ac12b89
DS
11330LIBS_no_readline=$LIBS
11331
11332have_libreadline="no"
11333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
11334$as_echo_n "checking how to link readline libs... " >&6; }
11335for libtermcap in "" tinfo ncursesw ncurses curses termcap; do
11336 if test -z "$libtermcap"; then
11337 READLINE_LIBS="-lreadline"
11338 else
11339 READLINE_LIBS="-lreadline -l$libtermcap"
11340 fi
11341 LIBS="$READLINE_LIBS $LIBS_no_readline"
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343/* end confdefs.h. */
11344
11345/* Override any GCC internal prototype to avoid an error.
11346 Use char because int might match the return type of a GCC
11347 builtin and then its argument prototype would still apply. */
11348#ifdef __cplusplus
11349extern "C"
11350#endif
11351char readline ();
11352int
11353main ()
11354{
11355return readline ();
11356 ;
11357 return 0;
11358}
11359_ACEOF
11360if ac_fn_c_try_link "$LINENO"; then :
11361 have_libreadline="yes"
11362fi
11363rm -f core conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11365 if test "$have_libreadline" = "yes"; then
11366 break
11367 fi
11368done
11369if test "$have_libreadline" = "no"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11371$as_echo "none" >&6; }
16314eed 11372 READLINE_LIBS=""
9ac12b89
DS
11373else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
11375$as_echo "$READLINE_LIBS" >&6; }
11376
9ac12b89
DS
11377$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11378
11379fi
16314eed 11380
9ac12b89
DS
11381 if test "$have_libreadline" == "yes"; then
11382 HAVE_LIBREADLINE_TRUE=
11383 HAVE_LIBREADLINE_FALSE='#'
11384else
11385 HAVE_LIBREADLINE_TRUE='#'
11386 HAVE_LIBREADLINE_FALSE=
11387fi
11388
11389
11390LIBS=$LIBS_no_readline
2ed04863 11391
0a742545
FCE
11392
11393# Check whether --with-python3 was given.
11394if test "${with_python3+set}" = set; then :
11395 withval=$with_python3;
11396fi
11397
11398if test "x$with_python3" = "xyes"; then :
5dabffcf 11399 if test "x$PYTHON3" = "x:"; then :
e5d623b1
DS
11400 as_fn_error $? "python version 3 is required" "$LINENO" 5
11401else
11402 preferred_python=$PYTHON3
0a742545 11403
e5d623b1 11404fi
0a742545 11405else
e5d623b1
DS
11406 if test "x$PYTHON" = "x:"; then :
11407 as_fn_error $? "python version 2 is required" "$LINENO" 5
11408else
11409 preferred_python=$PYTHON
0a742545
FCE
11410
11411fi
e5d623b1 11412fi
0a742545 11413
e8f3c2c2
DS
11414build_elfutils=no
11415
7fbd9d09 11416# Check whether --with-elfutils was given.
1ef0423a 11417if test "${with_elfutils+set}" = set; then :
7fbd9d09 11418 withval=$with_elfutils;
e8f3c2c2 11419case "$with_elfutils" in
5d4aa1f5 11420yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;;
e8f3c2c2
DS
11421''|no) ;;
11422*) build_elfutils=yes ;;
11423esac
7fbd9d09 11424fi
e8f3c2c2 11425
7fbd9d09 11426 if test $build_elfutils = yes; then
e8f3c2c2
DS
11427 BUILD_ELFUTILS_TRUE=
11428 BUILD_ELFUTILS_FALSE='#'
11429else
11430 BUILD_ELFUTILS_TRUE='#'
11431 BUILD_ELFUTILS_FALSE=
11432fi
11433
1ef0423a 11434elfutils_abs_srcdir=`if test $build_elfutils = yes; then :
e8f3c2c2 11435 cd $with_elfutils && pwd
1ef0423a 11436fi`
e8f3c2c2
DS
11437
11438
efa6ba96
PP
11439if test $enable_translator = yes; then
11440 if test $build_elfutils = no; then
7e8210ae 11441 # Need libdwfl-capable recent elfutils http://elfutils.org/
c14263d8
FCE
11442
11443 # On modern debian/ubuntu, libebl has been merged into libdw
11444 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
11445 save_LIBS="$LIBS"
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5
11447$as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; }
c3de29bd 11448if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then :
c14263d8
FCE
11449 $as_echo_n "(cached) " >&6
11450else
11451 ac_check_lib_save_LIBS=$LIBS
11452LIBS="-lebl $LIBS"
11453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454/* end confdefs.h. */
11455
11456/* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11459#ifdef __cplusplus
11460extern "C"
11461#endif
11462char ebl_get_elfmachine ();
11463int
11464main ()
11465{
11466return ebl_get_elfmachine ();
11467 ;
11468 return 0;
11469}
11470_ACEOF
11471if ac_fn_c_try_link "$LINENO"; then :
11472 ac_cv_lib_ebl_ebl_get_elfmachine=yes
11473else
11474 ac_cv_lib_ebl_ebl_get_elfmachine=no
11475fi
11476rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478LIBS=$ac_check_lib_save_LIBS
11479fi
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5
11481$as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; }
c3de29bd 11482if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then :
c14263d8
FCE
11483 ebl_LIBS=-lebl
11484else
11485 ebl_LIBS=
11486fi
11487
11488 LIBS="$save_LIBS"
11489
efa6ba96 11490 save_LIBS="$LIBS"
1ef0423a 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
0710d850 11492$as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
c3de29bd 11493if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then :
0710d850 11494 $as_echo_n "(cached) " >&6
4645fadb
JS
11495else
11496 ac_check_lib_save_LIBS=$LIBS
c14263d8 11497LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
1ef0423a 11498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645fadb
JS
11499/* end confdefs.h. */
11500
7fbd9d09
FCE
11501/* Override any GCC internal prototype to avoid an error.
11502 Use char because int might match the return type of a GCC
11503 builtin and then its argument prototype would still apply. */
4645fadb
JS
11504#ifdef __cplusplus
11505extern "C"
11506#endif
11507char dwfl_module_getsym ();
11508int
11509main ()
11510{
7fbd9d09 11511return dwfl_module_getsym ();
4645fadb
JS
11512 ;
11513 return 0;
11514}
11515_ACEOF
1ef0423a 11516if ac_fn_c_try_link "$LINENO"; then :
4645fadb
JS
11517 ac_cv_lib_dw_dwfl_module_getsym=yes
11518else
1ef0423a 11519 ac_cv_lib_dw_dwfl_module_getsym=no
4645fadb 11520fi
1ef0423a
FCE
11521rm -f core conftest.err conftest.$ac_objext \
11522 conftest$ac_exeext conftest.$ac_ext
4645fadb
JS
11523LIBS=$ac_check_lib_save_LIBS
11524fi
1ef0423a 11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
0710d850 11526$as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
c3de29bd 11527if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then :
4645fadb
JS
11528 cat >>confdefs.h <<_ACEOF
11529#define HAVE_LIBDW 1
11530_ACEOF
11531
11532 LIBS="-ldw $LIBS"
11533
11534else
11535
5d4aa1f5 11536 as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5
4645fadb
JS
11537fi
11538
2a885a4a
MW
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5
11540$as_echo_n "checking for dwarf_next_unit in -ldw... " >&6; }
11541if ${ac_cv_lib_dw_dwarf_next_unit+:} false; then :
0710d850 11542 $as_echo_n "(cached) " >&6
87cb1275
MW
11543else
11544 ac_check_lib_save_LIBS=$LIBS
c14263d8 11545LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
1ef0423a 11546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87cb1275
MW
11547/* end confdefs.h. */
11548
7fbd9d09
FCE
11549/* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
87cb1275
MW
11552#ifdef __cplusplus
11553extern "C"
11554#endif
2a885a4a 11555char dwarf_next_unit ();
87cb1275
MW
11556int
11557main ()
11558{
2a885a4a 11559return dwarf_next_unit ();
87cb1275
MW
11560 ;
11561 return 0;
11562}
11563_ACEOF
1ef0423a 11564if ac_fn_c_try_link "$LINENO"; then :
2a885a4a 11565 ac_cv_lib_dw_dwarf_next_unit=yes
87cb1275 11566else
2a885a4a 11567 ac_cv_lib_dw_dwarf_next_unit=no
87cb1275 11568fi
1ef0423a
FCE
11569rm -f core conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
87cb1275
MW
11571LIBS=$ac_check_lib_save_LIBS
11572fi
2a885a4a
MW
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5
11574$as_echo "$ac_cv_lib_dw_dwarf_next_unit" >&6; }
11575if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes; then :
87cb1275
MW
11576 cat >>confdefs.h <<_ACEOF
11577#define HAVE_LIBDW 1
11578_ACEOF
11579
11580 LIBS="-ldw $LIBS"
11581
11582else
11583
2a885a4a 11584 as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5
87cb1275
MW
11585fi
11586
c14263d8 11587 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
efa6ba96
PP
11588 LIBS="$save_LIBS"
11589 else
11590 # We built our own and stap_LDFLAGS points at the install.
12c1a007 11591 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
efa6ba96 11592 fi
4645fadb
JS
11593fi
11594
6b1a0274 11595
1ef0423a 11596{ $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
0710d850 11597$as_echo "$as_me: stap will link $stap_LIBS" >&6;}
c3a3c0c9 11598
97859b9d
JS
11599# staprun has more modest libelf needs
11600if test $build_elfutils = no; then
97859b9d
JS
11601 save_LIBS="$LIBS"
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
11603$as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; }
11604if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then :
11605 $as_echo_n "(cached) " >&6
11606else
11607 ac_check_lib_save_LIBS=$LIBS
11608LIBS="-lelf $LIBS"
11609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610/* end confdefs.h. */
11611
11612/* Override any GCC internal prototype to avoid an error.
11613 Use char because int might match the return type of a GCC
11614 builtin and then its argument prototype would still apply. */
11615#ifdef __cplusplus
11616extern "C"
11617#endif
11618char elf_getshdrstrndx ();
11619int
11620main ()
11621{
11622return elf_getshdrstrndx ();
11623 ;
11624 return 0;
11625}
11626_ACEOF
11627if ac_fn_c_try_link "$LINENO"; then :
11628 ac_cv_lib_elf_elf_getshdrstrndx=yes
11629else
11630 ac_cv_lib_elf_elf_getshdrstrndx=no
11631fi
11632rm -f core conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
11634LIBS=$ac_check_lib_save_LIBS
11635fi
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
11637$as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
11638if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then :
94eb87d1
DS
11639 cat >>confdefs.h <<_ACEOF
11640#define HAVE_LIBELF 1
11641_ACEOF
97859b9d 11642
94eb87d1 11643 LIBS="-lelf $LIBS"
97859b9d 11644
94eb87d1 11645else
97859b9d 11646
94eb87d1
DS
11647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11649as_fn_error $? "libelf too old, need 0.142+
11650See \`config.log' for more details" "$LINENO" 5; }
97859b9d
JS
11651fi
11652
94eb87d1 11653 staprun_LIBS="$staprun_LIBS -lelf"
3ea8da7a 11654 stapbpf_LIBS="$stapbpf_LIBS -lelf"
97859b9d
JS
11655 LIBS="$save_LIBS"
11656else
11657 # We built our own and staprun_LDFLAGS points at the install.
11658 staprun_LIBS="$staprun_LIBS -lelf"
3ea8da7a 11659 stapbpf_LIBS="$stapbpf_LIBS -lelf"
97859b9d
JS
11660fi
11661
11662
0dbac951 11663
97859b9d
JS
11664{ $as_echo "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5
11665$as_echo "$as_me: staprun will link $staprun_LIBS" >&6;}
0dbac951
RH
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: stapbpf will link $stapbpf_LIBS" >&5
11667$as_echo "$as_me: stapbpf will link $stapbpf_LIBS" >&6;}
97859b9d 11668
47f390f9
FCE
11669# Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
11670# being compiled on 32-bit userspace but running against 64-bit kernels.
11671# This is no longer necessary.
5566993b 11672
7fbd9d09 11673ac_ext=cpp
3bf6ac45
TM
11674ac_cpp='$CXXCPP $CPPFLAGS'
11675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11678
0c09722b 11679# Use boost::string_ref if available
62cb4be9
FCE
11680ac_ext=cpp
11681ac_cpp='$CXXCPP $CPPFLAGS'
11682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11686$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11687if test -z "$CXXCPP"; then
11688 if ${ac_cv_prog_CXXCPP+:} false; then :
11689 $as_echo_n "(cached) " >&6
11690else
11691 # Double quotes because CXXCPP needs to be expanded
11692 for CXXCPP in "$CXX -E" "/lib/cpp"
11693 do
11694 ac_preproc_ok=false
11695for ac_cxx_preproc_warn_flag in '' yes
11696do
11697 # Use a header file that comes with gcc, so configuring glibc
11698 # with a fresh cross-compiler works.
11699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11700 # <limits.h> exists even on freestanding compilers.
11701 # On the NeXT, cc -E runs the code through the compiler's parser,
11702 # not just through cpp. "Syntax error" is here to catch this case.
11703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704/* end confdefs.h. */
11705#ifdef __STDC__
11706# include <limits.h>
11707#else
11708# include <assert.h>
11709#endif
11710 Syntax error
11711_ACEOF
11712if ac_fn_cxx_try_cpp "$LINENO"; then :
11713
11714else
11715 # Broken: fails on valid input.
11716continue
11717fi
11718rm -f conftest.err conftest.i conftest.$ac_ext
11719
11720 # OK, works on sane cases. Now check whether nonexistent headers
11721 # can be detected and how.
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723/* end confdefs.h. */
11724#include <ac_nonexistent.h>
11725_ACEOF
11726if ac_fn_cxx_try_cpp "$LINENO"; then :
11727 # Broken: success on invalid input.
11728continue
11729else
11730 # Passes both tests.
11731ac_preproc_ok=:
11732break
11733fi
11734rm -f conftest.err conftest.i conftest.$ac_ext
11735
11736done
11737# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11738rm -f conftest.i conftest.err conftest.$ac_ext
11739if $ac_preproc_ok; then :
11740 break
11741fi
11742
11743 done
11744 ac_cv_prog_CXXCPP=$CXXCPP
11745
11746fi
11747 CXXCPP=$ac_cv_prog_CXXCPP
11748else
11749 ac_cv_prog_CXXCPP=$CXXCPP
11750fi
11751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11752$as_echo "$CXXCPP" >&6; }
11753ac_preproc_ok=false
11754for ac_cxx_preproc_warn_flag in '' yes
11755do
11756 # Use a header file that comes with gcc, so configuring glibc
11757 # with a fresh cross-compiler works.
11758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 # <limits.h> exists even on freestanding compilers.
11760 # On the NeXT, cc -E runs the code through the compiler's parser,
11761 # not just through cpp. "Syntax error" is here to catch this case.
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763/* end confdefs.h. */
11764#ifdef __STDC__
11765# include <limits.h>
11766#else
11767# include <assert.h>
11768#endif
11769 Syntax error
11770_ACEOF
11771if ac_fn_cxx_try_cpp "$LINENO"; then :
11772
11773else
11774 # Broken: fails on valid input.
11775continue
11776fi
11777rm -f conftest.err conftest.i conftest.$ac_ext
11778
11779 # OK, works on sane cases. Now check whether nonexistent headers
11780 # can be detected and how.
11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782/* end confdefs.h. */
11783#include <ac_nonexistent.h>
11784_ACEOF
11785if ac_fn_cxx_try_cpp "$LINENO"; then :
11786 # Broken: success on invalid input.
11787continue
11788else
11789 # Passes both tests.
11790ac_preproc_ok=:
11791break
11792fi
11793rm -f conftest.err conftest.i conftest.$ac_ext
11794
11795done
11796# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11797rm -f conftest.i conftest.err conftest.$ac_ext
11798if $ac_preproc_ok; then :
11799
11800else
11801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11803as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11804See \`config.log' for more details" "$LINENO" 5; }
11805fi
11806
11807ac_ext=cpp
11808ac_cpp='$CXXCPP $CPPFLAGS'
11809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11812
11813
3dd76f53
AJ
11814for ac_header in boost/utility/string_ref.hpp
11815do :
11816 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/utility/string_ref.hpp" "ac_cv_header_boost_utility_string_ref_hpp" "$ac_includes_default"
11817if test "x$ac_cv_header_boost_utility_string_ref_hpp" = xyes; then :
11818 cat >>confdefs.h <<_ACEOF
11819#define HAVE_BOOST_UTILITY_STRING_REF_HPP 1
11820_ACEOF
11821
11822fi
11823
11824done
11825
891810c2
FCE
11826# add boost_system bits for stapdyn with dyninst 10+
11827saved_LIBS="$LIBS"
11828LIBS="-lboost_system $LIBS"
11829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking need for -lboost_system library" >&5
11830$as_echo_n "checking need for -lboost_system library... " >&6; }
11831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832/* end confdefs.h. */
11833
11834#include <boost/system/system_error.hpp>
11835int main() {
11836 boost::system::error_condition e();
11837}
11838
11839_ACEOF
11840if ac_fn_cxx_try_link "$LINENO"; then :
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yup" >&5
11842$as_echo "yup" >&6; }
11843 BOOST_SYSTEM_LIB="-lboost_system"
11844
11845else
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nope" >&5
11847$as_echo "nope" >&6; }
11848 BOOST_SYSTEM_LIB=""
11849
11850fi
11851rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11853LIBS="$saved_LIBS"
11854
11855
1ef0423a
FCE
11856ac_ext=c
11857ac_cpp='$CPP $CPPFLAGS'
11858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11860ac_compiler_gnu=$ac_cv_c_compiler_gnu
3bf6ac45
TM
11861
11862
138bbe90 11863# Check for Dyninst headers and libraries
138bbe90
JS
11864
11865# Check whether --with-dyninst was given.
11866if test "${with_dyninst+set}" = set; then :
11867 withval=$with_dyninst;
eab44db5
FCE
11868fi
11869
11870
138bbe90 11871case "$with_dyninst" in
eab44db5
FCE
11872no) ;;
11873''|yes) # Try a simple-minded distro search
ffbe6348
JS
11874 DYNINST_CXXFLAGS="-I/usr/include/dyninst"
11875 DYNINST_LDFLAGS="-L/usr/lib64/dyninst -L/usr/lib/dyninst" # XXX both lib paths!?!
11876 ;;
11877*) # Use paths in the user-specified prefix
11878 DYNINST_CXXFLAGS="-I$with_dyninst/include"
3aeea85c 11879 DYNINST_LDFLAGS="-L$with_dyninst/lib/" # XXX need lib64 too?
ffbe6348
JS
11880 ;;
11881esac
e0a17c00 11882if test "$with_dyninst" != "no"; then
ffbe6348 11883 ac_ext=cpp
138bbe90
JS
11884ac_cpp='$CXXCPP $CPPFLAGS'
11885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11888
ffbe6348
JS
11889 old_CPPFLAGS="$CPPFLAGS"
11890 CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS"
2494675c
DS
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5
11892$as_echo "$as_me: checking dyninst support" >&6;}
ffbe6348 11893 for ac_header in BPatch_object.h
138bbe90
JS
11894do :
11895 ac_fn_cxx_check_header_mongrel "$LINENO" "BPatch_object.h" "ac_cv_header_BPatch_object_h" "$ac_includes_default"
11896if test "x$ac_cv_header_BPatch_object_h" = xyes; then :
11897 cat >>confdefs.h <<_ACEOF
11898#define HAVE_BPATCH_OBJECT_H 1
11899_ACEOF
11900
138bbe90
JS
11901
11902
a3524565
JS
11903
11904$as_echo "#define HAVE_DYNINST 1" >>confdefs.h
11905
ffbe6348 11906 have_dyninst=yes
2494675c
DS
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5
11908$as_echo "$as_me: dyninst support available" >&6;}
138bbe90
JS
11909fi
11910
11911done
11912
e0a17c00 11913 if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then
2494675c
DS
11914 as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5
11915 fi
ffbe6348
JS
11916 CPPFLAGS="$old_CPPFLAGS"
11917 ac_ext=c
138bbe90
JS
11918ac_cpp='$CPP $CPPFLAGS'
11919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11921ac_compiler_gnu=$ac_cv_c_compiler_gnu
11922
ffbe6348 11923fi
138bbe90
JS
11924 if test "${have_dyninst}" = "yes"; then
11925 HAVE_DYNINST_TRUE=
11926 HAVE_DYNINST_FALSE='#'
11927else
11928 HAVE_DYNINST_TRUE='#'
11929 HAVE_DYNINST_FALSE=
11930fi
11931
11932
11933
42f767d0 11934
b0c670f4
FCE
11935# Check whether --enable-virt was given.
11936if test "${enable_virt+set}" = set; then :
11937 enableval=$enable_virt; enable_virt=$enableval
11938else
11939 enable_virt="check"
11940fi
11941
11942
11943
42f767d0
JL
11944pkg_failed=no
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5
11946$as_echo_n "checking for libvirt... " >&6; }
11947
11948if test -n "$libvirt_CFLAGS"; then
11949 pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS"
11950 elif test -n "$PKG_CONFIG"; then
11951 if test -n "$PKG_CONFIG" && \
11952 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11953 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11954 ac_status=$?
11955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11956 test $ac_status = 0; }; then
11957 pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null`
11958 test "x$?" != "x0" && pkg_failed=yes
11959else
11960 pkg_failed=yes
11961fi
11962 else
11963 pkg_failed=untried
11964fi
11965if test -n "$libvirt_LIBS"; then
11966 pkg_cv_libvirt_LIBS="$libvirt_LIBS"
11967 elif test -n "$PKG_CONFIG"; then
11968 if test -n "$PKG_CONFIG" && \
11969 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11970 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11971 ac_status=$?
11972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11973 test $ac_status = 0; }; then
11974 pkg_cv_libvirt_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null`
11975 test "x$?" != "x0" && pkg_failed=yes
11976else
11977 pkg_failed=yes
11978fi
11979 else
11980 pkg_failed=untried
11981fi
11982
11983
11984
11985if test $pkg_failed = yes; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987$as_echo "no" >&6; }
11988
11989if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11990 _pkg_short_errors_supported=yes
11991else
11992 _pkg_short_errors_supported=no
11993fi
11994 if test $_pkg_short_errors_supported = yes; then
11995 libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11996 else
11997 libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11998 fi
11999 # Put the nasty error message in config.log where it belongs
12000 echo "$libvirt_PKG_ERRORS" >&5
12001
12002 have_libvirt=no
12003elif test $pkg_failed = untried; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005$as_echo "no" >&6; }
12006 have_libvirt=no
12007else
12008 libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS
12009 libvirt_LIBS=$pkg_cv_libvirt_LIBS
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12011$as_echo "yes" >&6; }
12012
12013 have_libvirt=yes
12014
12015$as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h
12016
12017
12018fi
12019 if test "${have_libvirt}" = "yes"; then
12020 HAVE_LIBVIRT_TRUE=
12021 HAVE_LIBVIRT_FALSE='#'
12022else
12023 HAVE_LIBVIRT_TRUE='#'
12024 HAVE_LIBVIRT_FALSE=
12025fi
12026
12027
12028pkg_failed=no
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
12030$as_echo_n "checking for libxml2... " >&6; }
12031
12032if test -n "$libxml2_CFLAGS"; then
12033 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
12034 elif test -n "$PKG_CONFIG"; then
12035 if test -n "$PKG_CONFIG" && \
12036 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12037 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12038 ac_status=$?
12039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12040 test $ac_status = 0; }; then
12041 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
12042 test "x$?" != "x0" && pkg_failed=yes
12043else
12044 pkg_failed=yes
12045fi
12046 else
12047 pkg_failed=untried
12048fi
12049if test -n "$libxml2_LIBS"; then
12050 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
12051 elif test -n "$PKG_CONFIG"; then
12052 if test -n "$PKG_CONFIG" && \
12053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12054 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12055 ac_status=$?
12056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12057 test $ac_status = 0; }; then
12058 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
12059 test "x$?" != "x0" && pkg_failed=yes
12060else
12061 pkg_failed=yes
12062fi
12063 else
12064 pkg_failed=untried
12065fi
12066
12067
12068
12069if test $pkg_failed = yes; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071$as_echo "no" >&6; }
12072
12073if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12074 _pkg_short_errors_supported=yes
12075else
12076 _pkg_short_errors_supported=no
12077fi
12078 if test $_pkg_short_errors_supported = yes; then
12079 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
12080 else
12081 libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
12082 fi
12083 # Put the nasty error message in config.log where it belongs
12084 echo "$libxml2_PKG_ERRORS" >&5
12085
12086 have_libxml2=no
12087elif test $pkg_failed = untried; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089$as_echo "no" >&6; }
12090 have_libxml2=no
12091else
12092 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
12093 libxml2_LIBS=$pkg_cv_libxml2_LIBS
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12095$as_echo "yes" >&6; }
12096
12097 have_libxml2=yes
12098
12099$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12100
12101
12102fi
12103 if test "${have_libxml2}" = "yes"; then
12104 HAVE_LIBXML2_TRUE=
12105 HAVE_LIBXML2_FALSE='#'
12106else
12107 HAVE_LIBXML2_TRUE='#'
12108 HAVE_LIBXML2_FALSE=
12109fi
12110
12111
b0c670f4
FCE
12112if test "$enable_virt" != "no"; then
12113 if test "x${have_libvirt}" != "xyes"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5
12115$as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;}
12116 fi
12117 if test "x${have_libxml2}" != "xyes"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5
12119$as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;}
12120 fi
12121fi
12122 if test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"; then
12123 BUILD_VIRT_TRUE=
12124 BUILD_VIRT_FALSE='#'
12125else
12126 BUILD_VIRT_TRUE='#'
12127 BUILD_VIRT_FALSE=
12128fi
12129
12130
12131
d7f07c29
DS
12132# Check whether --with-python2-probes was given.
12133if test "${with_python2_probes+set}" = set; then :
12134 withval=$with_python2_probes;
c16501a1
DS
12135fi
12136
d7f07c29
DS
12137have_python2_support=no
12138if test "x$with_python2_probes" != "xno"; then :
5dabffcf
DW
12139 if test "x$PYTHON" != "x:"; then :
12140 # Extract the first word of "${python_basename}-config", so it can be a program name with args.
12141set dummy ${python_basename}-config; ac_word=$2
d7f07c29
DS
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143$as_echo_n "checking for $ac_word... " >&6; }
12144if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
12145 $as_echo_n "(cached) " >&6
12146else
12147 case $PYTHON_CONFIG in
12148 [\\/]* | ?:[\\/]*)
12149 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
12150 ;;
12151 *)
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153for as_dir in $PATH
12154do
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12159 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12162 fi
12163done
12164 done
12165IFS=$as_save_IFS
12166
d7f07c29
DS
12167 ;;
12168esac
12169fi
12170PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
12171if test -n "$PYTHON_CONFIG"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
12173$as_echo "$PYTHON_CONFIG" >&6; }
12174else
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176$as_echo "no" >&6; }
12177fi
12178
12179
5dabffcf
DW
12180fi
12181 if test "x$PYTHON_CONFIG" != "x"; then :
d7f07c29
DS
12182 PYTHON_CPPFLAGS=`$PYTHON_CONFIG --includes 2> /dev/null`
12183 PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
12184
12185 save_CPPFLAGS="$CPPFLAGS"
12186 CPPFLAGS="$PYTHON_CPPFLAGS $CPPFLAGS"
12187 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
12188 for ac_header in Python.h
c16501a1 12189do :
d7f07c29
DS
12190 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
12191if test "x$ac_cv_header_Python_h" = xyes; then :
c16501a1 12192 cat >>confdefs.h <<_ACEOF
d7f07c29 12193#define HAVE_PYTHON_H 1
c16501a1 12194_ACEOF
effb39de 12195 have_python2_support=yes
c16501a1
DS
12196fi
12197
12198done
12199
d7f07c29
DS
12200 CPPFLAGS="$save_CPPFLAGS"
12201fi
c16501a1 12202fi
effb39de 12203if test "x$have_python2_support" = "xyes"; then :
c16501a1 12204
d7f07c29 12205$as_echo "#define HAVE_PYTHON2_PROBES 1" >>confdefs.h
c16501a1
DS
12206
12207else
d7f07c29
DS
12208 if test "x$with_python2_probes" = "xyes"; then :
12209 as_fn_error $? "python version 2 probe support requested but not found" "$LINENO" 5
c16501a1
DS
12210fi
12211
12212fi
effb39de 12213 if test "x$have_python2_support" = "xyes"; then
d7f07c29
DS
12214 HAVE_PYTHON2_PROBES_TRUE=
12215 HAVE_PYTHON2_PROBES_FALSE='#'
12216else
12217 HAVE_PYTHON2_PROBES_TRUE='#'
12218 HAVE_PYTHON2_PROBES_FALSE=
12219fi
12220
12221
12222
12223# Check whether --with-python3-probes was given.
12224if test "${with_python3_probes+set}" = set; then :
12225 withval=$with_python3_probes;
12226fi
12227
12228have_python3_support=no
12229if test "x$with_python3_probes" != "xno"; then :
5dabffcf
DW
12230 if test "x$PYTHON3" != "x:" ; then :
12231 # Extract the first word of "${python3_basename}-config", so it can be a program name with args.
12232set dummy ${python3_basename}-config; ac_word=$2
d7f07c29
DS
12233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234$as_echo_n "checking for $ac_word... " >&6; }
12235if ${ac_cv_path_PYTHON3_CONFIG+:} false; then :
12236 $as_echo_n "(cached) " >&6
12237else
12238 case $PYTHON3_CONFIG in
12239 [\\/]* | ?:[\\/]*)
12240 ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path.
12241 ;;
12242 *)
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244for as_dir in $PATH
12245do
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12250 ac_cv_path_PYTHON3_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12253 fi
12254done
12255 done
12256IFS=$as_save_IFS
12257
d7f07c29
DS
12258 ;;
12259esac
12260fi
12261PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG
12262if test -n "$PYTHON3_CONFIG"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5
12264$as_echo "$PYTHON3_CONFIG" >&6; }
c16501a1 12265else
d7f07c29
DS
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267$as_echo "no" >&6; }
12268fi
12269
12270
5dabffcf
DW
12271fi
12272 if test "x$PYTHON3_CONFIG" != "x"; then :
d7f07c29
DS
12273 PYTHON3_CPPFLAGS=`$PYTHON3_CONFIG --includes 2> /dev/null`
12274 PYTHON3_CPPFLAGS=$PYTHON3_CPPFLAGS
12275
12276 save_CPPFLAGS="$CPPFLAGS"
12277 CPPFLAGS="$PYTHON3_CPPFLAGS $CPPFLAGS"
12278 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
12279 for ac_header in Python.h
12280do :
12281 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
12282if test "x$ac_cv_header_Python_h" = xyes; then :
12283 cat >>confdefs.h <<_ACEOF
12284#define HAVE_PYTHON_H 1
12285_ACEOF
12286 have_python3_support=yes
12287fi
12288
12289done
12290
12291 CPPFLAGS="$save_CPPFLAGS"
12292fi
12293fi
12294if test "x$have_python3_support" = "xyes"; then :
12295
12296$as_echo "#define HAVE_PYTHON3_PROBES 1" >>confdefs.h
12297
12298else
12299 if test "x$with_python3_probes" = "xyes"; then :
12300 as_fn_error $? "python version 3 probe support requested but not found" "$LINENO" 5
12301fi
12302
12303fi
12304 if test "x$have_python3_support" = "xyes"; then
12305 HAVE_PYTHON3_PROBES_TRUE=
12306 HAVE_PYTHON3_PROBES_FALSE='#'
12307else
12308 HAVE_PYTHON3_PROBES_TRUE='#'
12309 HAVE_PYTHON3_PROBES_FALSE=
12310fi
12311
12312
12313 if test "x$have_python2_support" = "xyes" -o "x$have_python3_support" = "xyes"; then
12314 HAVE_PYTHON_PROBES_TRUE=
12315 HAVE_PYTHON_PROBES_FALSE='#'
12316else
12317 HAVE_PYTHON_PROBES_TRUE='#'
12318 HAVE_PYTHON_PROBES_FALSE=
c16501a1
DS
12319fi
12320
12321
12322
11ea78d6
FL
12323pkg_failed=no
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jsonc" >&5
12325$as_echo_n "checking for jsonc... " >&6; }
12326
12327if test -n "$jsonc_CFLAGS"; then
12328 pkg_cv_jsonc_CFLAGS="$jsonc_CFLAGS"
12329 elif test -n "$PKG_CONFIG"; then
12330 if test -n "$PKG_CONFIG" && \
13a7f4f6
DS
12331 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
12332 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
11ea78d6
FL
12333 ac_status=$?
12334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12335 test $ac_status = 0; }; then
13a7f4f6 12336 pkg_cv_jsonc_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
11ea78d6
FL
12337 test "x$?" != "x0" && pkg_failed=yes
12338else
12339 pkg_failed=yes
12340fi
12341 else
12342 pkg_failed=untried
12343fi
12344if test -n "$jsonc_LIBS"; then
12345 pkg_cv_jsonc_LIBS="$jsonc_LIBS"
12346 elif test -n "$PKG_CONFIG"; then
12347 if test -n "$PKG_CONFIG" && \
13a7f4f6
DS
12348 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
12349 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
11ea78d6
FL
12350 ac_status=$?
12351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12352 test $ac_status = 0; }; then
13a7f4f6 12353 pkg_cv_jsonc_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
11ea78d6
FL
12354 test "x$?" != "x0" && pkg_failed=yes
12355else
12356 pkg_failed=yes
12357fi
12358 else
12359 pkg_failed=untried
12360fi
12361
12362
12363
12364if test $pkg_failed = yes; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366$as_echo "no" >&6; }
12367
12368if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12369 _pkg_short_errors_supported=yes
12370else
12371 _pkg_short_errors_supported=no
12372fi
12373 if test $_pkg_short_errors_supported = yes; then
13a7f4f6 12374 jsonc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
11ea78d6 12375 else
13a7f4f6 12376 jsonc_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
11ea78d6
FL
12377 fi
12378 # Put the nasty error message in config.log where it belongs
12379 echo "$jsonc_PKG_ERRORS" >&5
12380
12381 have_jsonc=no
12382elif test $pkg_failed = untried; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384$as_echo "no" >&6; }
12385 have_jsonc=no
12386else
12387 jsonc_CFLAGS=$pkg_cv_jsonc_CFLAGS
12388 jsonc_LIBS=$pkg_cv_jsonc_LIBS
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12390$as_echo "yes" >&6; }
12391 have_jsonc=yes
12392fi
12393
12394pkg_failed=no
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
12396$as_echo_n "checking for ncurses... " >&6; }
12397
12398if test -n "$ncurses_CFLAGS"; then
12399 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
12400 elif test -n "$PKG_CONFIG"; then
12401 if test -n "$PKG_CONFIG" && \
12402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12403 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12404 ac_status=$?
12405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12406 test $ac_status = 0; }; then
12407 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
12408 test "x$?" != "x0" && pkg_failed=yes
12409else
12410 pkg_failed=yes
12411fi
12412 else
12413 pkg_failed=untried
12414fi
12415if test -n "$ncurses_LIBS"; then
12416 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
12417 elif test -n "$PKG_CONFIG"; then
12418 if test -n "$PKG_CONFIG" && \
12419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12420 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12421 ac_status=$?
12422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12423 test $ac_status = 0; }; then
12424 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
12425 test "x$?" != "x0" && pkg_failed=yes
12426else
12427 pkg_failed=yes
12428fi
12429 else
12430 pkg_failed=untried
12431fi
12432
12433
12434
12435if test $pkg_failed = yes; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437$as_echo "no" >&6; }
12438
12439if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12440 _pkg_short_errors_supported=yes
12441else
12442 _pkg_short_errors_supported=no
12443fi
12444 if test $_pkg_short_errors_supported = yes; then
12445 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
12446 else
12447 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
12448 fi
12449 # Put the nasty error message in config.log where it belongs
12450 echo "$ncurses_PKG_ERRORS" >&5
12451
12452 have_ncurses=no
12453elif test $pkg_failed = untried; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455$as_echo "no" >&6; }
12456 have_ncurses=no
12457else
12458 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
12459 ncurses_LIBS=$pkg_cv_ncurses_LIBS
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12461$as_echo "yes" >&6; }
12462 have_ncurses=yes
12463fi
12464 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == "yes"; then
12465 HAVE_MONITOR_LIBS_TRUE=
12466 HAVE_MONITOR_LIBS_FALSE='#'
12467else
12468 HAVE_MONITOR_LIBS_TRUE='#'
12469 HAVE_MONITOR_LIBS_FALSE=
12470fi
12471
12472if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == yes; then
12473
12474$as_echo "#define HAVE_MONITOR_LIBS 1" >>confdefs.h
12475
12476fi
12477
f9794ee4
RM
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
12479$as_echo_n "checking for assembler .section \"?\" flags support... " >&6; }
c3de29bd 12480if ${stap_cv_sectionq+:} false; then :
f9794ee4
RM
12481 $as_echo_n "(cached) " >&6
12482else
12483
12484old_CFLAGS="$CFLAGS"
12485CFLAGS="$CFLAGS -Wa,--fatal-warnings"
12486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487/* end confdefs.h. */
12488asm(".section .note.foo,\"?\",\"note\"\n"
12489 ".byte 1, 2, 3\n"
12490 ".previous\n"
12491 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
12492 ".byte 1\n"
12493 ".pushsection .note.foo,\"?\",\"note\"\n"
12494 ".byte 4, 5, 6\n"
12495 ".popsection\n"
12496 ".byte 2\n");
12497_ACEOF
12498if ac_fn_c_try_compile "$LINENO"; then :
12499 stap_cv_sectionq=yes
12500else
12501 stap_cv_sectionq=no
12502fi
12503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a530cfe0 12504CFLAGS="$old_CFLAGS"
f9794ee4
RM
12505fi
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
12507$as_echo "$stap_cv_sectionq" >&6; }
12508
12509support_section_question=0
12510if test $stap_cv_sectionq = yes; then
12511 support_section_question=1
12512fi
0dbac951 12513
0dbac951 12514
f0418515 12515
d882ba5f
FCE
12516# Check whether --with-bpf was given.
12517if test "${with_bpf+set}" = set; then :
12518 withval=$with_bpf;
12519fi
12520
12521
12522if test "x$with_bpf" != "xno"; then :
12523
12524 ac_fn_c_check_decl "$LINENO" "BPF_PROG_TYPE_PERF_EVENT" "ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" "#include <linux/bpf.h>
f0418515
AM
12525"
12526if test "x$ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" = xyes; then :
12527 ac_have_decl=1
12528else
12529 ac_have_decl=0
0dbac951
RH
12530fi
12531
f0418515
AM
12532cat >>confdefs.h <<_ACEOF
12533#define HAVE_DECL_BPF_PROG_TYPE_PERF_EVENT $ac_have_decl
12534_ACEOF
12535if test $ac_have_decl = 1; then :
d882ba5f
FCE
12536
12537$as_echo "#define HAVE_BPF_DECLS 1" >>confdefs.h
f0418515
AM
12538
12539fi
0dbac951 12540
d882ba5f
FCE
12541
12542fi
f0418515
AM
12543 if test "x$ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" == "xyes"; then
12544 HAVE_BPF_DECLS_TRUE=
12545 HAVE_BPF_DECLS_FALSE='#'
0dbac951 12546else
f0418515
AM
12547 HAVE_BPF_DECLS_TRUE='#'
12548 HAVE_BPF_DECLS_FALSE=
0dbac951
RH
12549fi
12550
8f223b3e 12551ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
f9794ee4
RM
12552
12553
efa6ba96 12554if test $build_elfutils = yes -a $enable_translator = yes; then
d2bd25ac 12555 here=`pwd`
e016a49a
FCE
12556 case "$with_elfutils" in
12557 /*) elfutils_srcdir="$with_elfutils" ;;
d2bd25ac 12558 *) elfutils_srcdir="${here}/$with_elfutils" ;;
e016a49a 12559 esac
d2bd25ac
MW
12560
12561 if ! test -f ${elfutils_srcdir}/configure; then
12562 as_fn_error $? "No ${elfutils_srcdir}/configure, forgot to run autoreconf -i?" "$LINENO" 5
12563 fi
1ef0423a 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5
0710d850 12565$as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
29b694a7
DS
12566
12567 save_CFLAGS="$CFLAGS"
12568 save_CXXFLAGS="$CXXFLAGS"
12569 CXXFLAGS="$CXXFLAGS -fgnu89-inline"
12570 CFLAGS="$CFLAGS -fgnu89-inline"
12571 gnu89_inline_flag=""
1ef0423a
FCE
12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573/* end confdefs.h. */
29b694a7
DS
12574int something ();
12575_ACEOF
1ef0423a 12576if ac_fn_c_try_compile "$LINENO"; then :
29b694a7 12577
1ef0423a 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5
0710d850 12579$as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
29b694a7
DS
12580 gnu89_inline_flag="-fgnu89-inline"
12581else
5e5aee9f 12582
1ef0423a 12583 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5
0710d850 12584$as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
29b694a7 12585fi
29b694a7
DS
12586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587 CFLAGS="$save_CFLAGS"
12588 CXXFLAGS="$save_CXXFLAGS"
12589
e016a49a
FCE
12590 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
12591 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
12592 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
12593 # So we must make sure to pass those settings to elfutils configure.
12594 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
33ee059c
MW
12595 # Check whether this is a source release, or a source checkout.
12596 # We need --enable-maintainer-mode if it isn't a source release.
12597 # elfutils.spec is only distributed in source releases.
12598 if test -f ${elfutils_srcdir}/elfutils.spec; then
12599 need_maintainer_option=""
12600 else
12601 need_maintainer_option="--enable-maintainer-mode"
12602 fi
e016a49a 12603 (mkdir -p build-elfutils && cd build-elfutils &&
412e1bf7 12604 bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
e016a49a
FCE
12605 --includedir="${here}/include-elfutils" \
12606 --libdir="${here}/lib-elfutils" \
12607 --exec-prefix="$exec_prefix" \
12608 --prefix="$prefix" \
90491495 12609 --enable-dwz \
33ee059c 12610 ${need_maintainer_option} \
c2444a96 12611 CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag -fexceptions" \
e016a49a 12612 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
e3633556 12613 if test -f ${elfutils_srcdir}/config/version.h.in; then
e050d62f
MW
12614 echo Found elfutils/version.h header...
12615 else
12616 echo elfutils/version.h header not found, need elfutils 0.142+...
12617 exit -1
e3633556 12618 fi
e016a49a 12619 )
e050d62f 12620 if test $? != 0; then exit -1; fi
1c4cf93d 12621fi
e016a49a 12622
51030d84
JS
12623
12624# Check whether --with-selinux was given.
12625if test "${with_selinux+set}" = set; then :
12626 withval=$with_selinux;
12627fi
12628
12629
12630if test "x$with_selinux" != "xno"; then :
12631
12632
12633pkg_failed=no
12634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5
12635$as_echo_n "checking for selinux... " >&6; }
12636
12637if test -n "$selinux_CFLAGS"; then
12638 pkg_cv_selinux_CFLAGS="$selinux_CFLAGS"
12639 elif test -n "$PKG_CONFIG"; then
12640 if test -n "$PKG_CONFIG" && \
12641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12642 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12643 ac_status=$?
12644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12645 test $ac_status = 0; }; then
12646 pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
8eef2738 12647 test "x$?" != "x0" && pkg_failed=yes
51030d84
JS
12648else
12649 pkg_failed=yes
12650fi
12651 else
12652 pkg_failed=untried
12653fi
12654if test -n "$selinux_LIBS"; then
12655 pkg_cv_selinux_LIBS="$selinux_LIBS"
12656 elif test -n "$PKG_CONFIG"; then
12657 if test -n "$PKG_CONFIG" && \
12658 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12659 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12660 ac_status=$?
12661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12662 test $ac_status = 0; }; then
12663 pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
8eef2738 12664 test "x$?" != "x0" && pkg_failed=yes
51030d84
JS
12665else
12666 pkg_failed=yes
12667fi
12668 else
12669 pkg_failed=untried
12670fi
12671
12672
12673
12674if test $pkg_failed = yes; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676$as_echo "no" >&6; }
12677
12678if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12679 _pkg_short_errors_supported=yes
12680else
12681 _pkg_short_errors_supported=no
12682fi
12683 if test $_pkg_short_errors_supported = yes; then
8eef2738 12684 selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
51030d84 12685 else
8eef2738 12686 selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
51030d84
JS
12687 fi
12688 # Put the nasty error message in config.log where it belongs
12689 echo "$selinux_PKG_ERRORS" >&5
12690
12691 have_selinux=no
12692elif test $pkg_failed = untried; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694$as_echo "no" >&6; }
12695 have_selinux=no
12696else
12697 selinux_CFLAGS=$pkg_cv_selinux_CFLAGS
12698 selinux_LIBS=$pkg_cv_selinux_LIBS
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12700$as_echo "yes" >&6; }
12701 have_selinux=yes
12702
12703$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
12704
12705
12706fi
12707
12708else
12709 have_selinux=no
12710fi
12711
12712 if test "${have_selinux}" = "yes"; then
12713 HAVE_SELINUX_TRUE=
12714 HAVE_SELINUX_FALSE='#'
12715else
12716 HAVE_SELINUX_TRUE='#'
12717 HAVE_SELINUX_FALSE=
12718fi
12719
12720
0820bd9a
FL
12721ac_fn_c_check_decl "$LINENO" "F_SETPIPE_SZ" "ac_cv_have_decl_F_SETPIPE_SZ" "#include <fcntl.h>
12722"
12723if test "x$ac_cv_have_decl_F_SETPIPE_SZ" = xyes; then :
12724
12725$as_echo "#define HAVE_F_SETPIPE_SZ 1" >>confdefs.h
12726
12727fi
12728
12729
e9b0aba1
SM
12730# Extract the first word of "javac", so it can be a program name with args.
12731set dummy javac; ac_word=$2
13c19b49
LB
12732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12733$as_echo_n "checking for $ac_word... " >&6; }
e9b0aba1 12734if ${ac_cv_prog_have_javac+:} false; then :
13c19b49
LB
12735 $as_echo_n "(cached) " >&6
12736else
e9b0aba1
SM
12737 if test -n "$have_javac"; then
12738 ac_cv_prog_have_javac="$have_javac" # Let the user override the test.
13c19b49
LB
12739else
12740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741for as_dir in $PATH
12742do
12743 IFS=$as_save_IFS
12744 test -z "$as_dir" && as_dir=.
12745 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 12746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e9b0aba1 12747 ac_cv_prog_have_javac="yes"
13c19b49
LB
12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 break 2
12750 fi
12751done
12752 done
12753IFS=$as_save_IFS
12754
e9b0aba1 12755 test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no"
13c19b49
LB
12756fi
12757fi
e9b0aba1
SM
12758have_javac=$ac_cv_prog_have_javac
12759if test -n "$have_javac"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5
12761$as_echo "$have_javac" >&6; }
13c19b49
LB
12762else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764$as_echo "no" >&6; }
12765fi
12766
12767
e9b0aba1
SM
12768# Extract the first word of "jar", so it can be a program name with args.
12769set dummy jar; ac_word=$2
13c19b49
LB
12770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771$as_echo_n "checking for $ac_word... " >&6; }
e9b0aba1 12772if ${ac_cv_prog_have_jar+:} false; then :
13c19b49
LB
12773 $as_echo_n "(cached) " >&6
12774else
e9b0aba1
SM
12775 if test -n "$have_jar"; then
12776 ac_cv_prog_have_jar="$have_jar" # Let the user override the test.
13c19b49
LB
12777else
12778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779for as_dir in $PATH
12780do
12781 IFS=$as_save_IFS
12782 test -z "$as_dir" && as_dir=.
12783 for ac_exec_ext in '' $ac_executable_extensions; do
8eef2738 12784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e9b0aba1 12785 ac_cv_prog_have_jar="yes"
13c19b49
LB
12786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12787 break 2
12788 fi
12789done
12790 done
12791IFS=$as_save_IFS
2737ec70 12792
e9b0aba1 12793 test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no"
13c19b49
LB
12794fi
12795fi
e9b0aba1
SM
12796have_jar=$ac_cv_prog_have_jar
12797if test -n "$have_jar"; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5
12799$as_echo "$have_jar" >&6; }
13c19b49
LB
12800else
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802$as_echo "no" >&6; }
12803fi
12804
12805
e9b0aba1
SM
12806if test "$have_javac" != no -a "$have_jar" != no; then
12807echo java found, will try to configure Byteman support
9ac164fa
FCE
12808
12809
26703c63
SM
12810# Check whether --with-java was given.
12811if test "${with_java+set}" = set; then :
12812 withval=$with_java;
9ac164fa 12813else
26703c63 12814 with_java=/usr/lib/jvm/java
9ac164fa
FCE
12815fi
12816
a71e842d 12817if test ! -d "$with_java"; then
ef50e368 12818 with_java=no
9ac164fa 12819fi
26703c63 12820JAVADIR="${with_java}"
9ac164fa
FCE
12821 # always needed to compile
12822
26703c63 12823if test "$with_java" != "no"; then
2737ec70
LB
12824
12825cat >>confdefs.h <<_ACEOF
26703c63 12826#define HAVE_JAVA "1"
2737ec70
LB
12827_ACEOF
12828
9ac164fa
FCE
12829fi
12830
26703c63
SM
12831 if test "$with_java" != "no"; then
12832 HAVE_JAVA_TRUE=
12833 HAVE_JAVA_FALSE='#'
9ac164fa 12834else
26703c63
SM
12835 HAVE_JAVA_TRUE='#'
12836 HAVE_JAVA_FALSE=
9ac164fa
FCE
12837fi
12838
12839
12840else
12841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5
12842$as_echo "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;}
12843 if false; then
26703c63
SM
12844 HAVE_JAVA_TRUE=
12845 HAVE_JAVA_FALSE='#'
9ac164fa 12846else
26703c63
SM
12847 HAVE_JAVA_TRUE='#'
12848 HAVE_JAVA_FALSE=
2737ec70
LB
12849fi
12850
9ac164fa
FCE
12851fi # java+byteman support
12852
62c8a962
FCE
12853ENABLE_NLS="$USE_NLS"
12854
12855localedir="$localedir"
802cd104 12856
8f223b3e
FCE
12857LOCALEDIR="$localedir"
12858
12859
62c8a962 12860
85b62eab
FCE
12861# Check whether --with-extra-version was given.
12862if test "${with_extra_version+set}" = set; then :
12863 withval=$with_extra_version;
12864fi
12865
12866if test "x$with_extra_version" != "xno"; then :
12867
12868 stap_extra_version="$with_extra_version"
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5
12870$as_echo "$as_me: Adding extra version $stap_extra_version" >&6;}
12871else
12872
12873 stap_extra_version=""
12874fi
12875
12876cat >>confdefs.h <<_ACEOF
12877#define STAP_EXTRA_VERSION "$stap_extra_version"
12878_ACEOF
12879
12880STAP_EXTRA_VERSION="$stap_extra_version"
12881
12882
5c5a0bf2
DS
12883# Check whether --enable-http was given.
12884if test "${enable_http+set}" = set; then :
12885 enableval=$enable_http;
12886fi
12887
12888have_http_support=no
3ea8da7a 12889if test "x$enable_http" = "xyes"; then :
5c5a0bf2
DS
12890
12891pkg_failed=no
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
12893$as_echo_n "checking for libmicrohttpd... " >&6; }
12894
12895if test -n "$libmicrohttpd_CFLAGS"; then
12896 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
12897 elif test -n "$PKG_CONFIG"; then
12898 if test -n "$PKG_CONFIG" && \
12899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
12900 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
12901 ac_status=$?
12902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12903 test $ac_status = 0; }; then
12904 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.0" 2>/dev/null`
12905 test "x$?" != "x0" && pkg_failed=yes
12906else
12907 pkg_failed=yes
12908fi
12909 else
12910 pkg_failed=untried
12911fi
12912if test -n "$libmicrohttpd_LIBS"; then
12913 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
12914 elif test -n "$PKG_CONFIG"; then
12915 if test -n "$PKG_CONFIG" && \
12916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
12917 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
12918 ac_status=$?
12919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12920 test $ac_status = 0; }; then
12921 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.0" 2>/dev/null`
12922 test "x$?" != "x0" && pkg_failed=yes
12923else
12924 pkg_failed=yes
12925fi
12926 else
12927 pkg_failed=untried
12928fi
12929
12930
12931
12932if test $pkg_failed = yes; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934$as_echo "no" >&6; }
12935
12936if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12937 _pkg_short_errors_supported=yes
12938else
12939 _pkg_short_errors_supported=no
12940fi
12941 if test $_pkg_short_errors_supported = yes; then
12942 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
12943 else
12944 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
12945 fi
12946 # Put the nasty error message in config.log where it belongs
12947 echo "$libmicrohttpd_PKG_ERRORS" >&5
12948
12949 have_libmicrohttpd=false
12950elif test $pkg_failed = untried; then
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952$as_echo "no" >&6; }
12953 have_libmicrohttpd=false
12954else
12955 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
12956 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12958$as_echo "yes" >&6; }
12959 have_libmicrohttpd=true
12960fi
12961
12962
12963pkg_failed=no
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid" >&5
12965$as_echo_n "checking for uuid... " >&6; }
12966
12967if test -n "$uuid_CFLAGS"; then
12968 pkg_cv_uuid_CFLAGS="$uuid_CFLAGS"
12969 elif test -n "$PKG_CONFIG"; then
12970 if test -n "$PKG_CONFIG" && \
bccff213
DS
12971 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
12972 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
5c5a0bf2
DS
12973 ac_status=$?
12974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12975 test $ac_status = 0; }; then
bccff213 12976 pkg_cv_uuid_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.17.0" 2>/dev/null`
5c5a0bf2
DS
12977 test "x$?" != "x0" && pkg_failed=yes
12978else
12979 pkg_failed=yes
12980fi
12981 else
12982 pkg_failed=untried
12983fi
12984if test -n "$uuid_LIBS"; then
12985 pkg_cv_uuid_LIBS="$uuid_LIBS"
12986 elif test -n "$PKG_CONFIG"; then
12987 if test -n "$PKG_CONFIG" && \
bccff213
DS
12988 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
12989 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
5c5a0bf2
DS
12990 ac_status=$?
12991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12992 test $ac_status = 0; }; then
bccff213 12993 pkg_cv_uuid_LIBS=`$PKG_CONFIG --libs "uuid >= 2.17.0" 2>/dev/null`
5c5a0bf2
DS
12994 test "x$?" != "x0" && pkg_failed=yes
12995else
12996 pkg_failed=yes
12997fi
12998 else
12999 pkg_failed=untried
13000fi
13001
13002
13003
13004if test $pkg_failed = yes; then
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006$as_echo "no" >&6; }
13007
13008if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13009 _pkg_short_errors_supported=yes
13010else
13011 _pkg_short_errors_supported=no
13012fi
13013 if test $_pkg_short_errors_supported = yes; then
bccff213 13014 uuid_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
5c5a0bf2 13015 else
bccff213 13016 uuid_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
5c5a0bf2
DS
13017 fi
13018 # Put the nasty error message in config.log where it belongs
13019 echo "$uuid_PKG_ERRORS" >&5
13020
13021 have_libuuid=false
13022elif test $pkg_failed = untried; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024$as_echo "no" >&6; }
13025 have_libuuid=false
13026else
13027 uuid_CFLAGS=$pkg_cv_uuid_CFLAGS
13028 uuid_LIBS=$pkg_cv_uuid_LIBS
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13030$as_echo "yes" >&6; }
13031 have_libuuid=true
13032fi
13033
fb299101
SC
13034
13035pkg_failed=no
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
13037$as_echo_n "checking for libcurl... " >&6; }
13038
13039if test -n "$libcurl_CFLAGS"; then
13040 pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
13041 elif test -n "$PKG_CONFIG"; then
13042 if test -n "$PKG_CONFIG" && \
b3d1c4ec
DS
13043 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.7\""; } >&5
13044 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.7") 2>&5
fb299101
SC
13045 ac_status=$?
13046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13047 test $ac_status = 0; }; then
b3d1c4ec 13048 pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.19.7" 2>/dev/null`
fb299101
SC
13049 test "x$?" != "x0" && pkg_failed=yes
13050else
13051 pkg_failed=yes
13052fi
13053 else
13054 pkg_failed=untried
13055fi
13056if test -n "$libcurl_LIBS"; then
13057 pkg_cv_libcurl_LIBS="$libcurl_LIBS"
13058 elif test -n "$PKG_CONFIG"; then
13059 if test -n "$PKG_CONFIG" && \
b3d1c4ec
DS
13060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.7\""; } >&5
13061 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.7") 2>&5
fb299101
SC
13062 ac_status=$?
13063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13064 test $ac_status = 0; }; then
b3d1c4ec 13065 pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.19.7" 2>/dev/null`
fb299101
SC
13066 test "x$?" != "x0" && pkg_failed=yes
13067else
13068 pkg_failed=yes
13069fi
13070 else
13071 pkg_failed=untried
13072fi
13073
13074
13075
13076if test $pkg_failed = yes; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078$as_echo "no" >&6; }
13079
13080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13081 _pkg_short_errors_supported=yes
13082else
13083 _pkg_short_errors_supported=no
13084fi
13085 if test $_pkg_short_errors_supported = yes; then
b3d1c4ec 13086 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.19.7" 2>&1`
fb299101 13087 else
b3d1c4ec 13088 libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.19.7" 2>&1`
fb299101
SC
13089 fi
13090 # Put the nasty error message in config.log where it belongs
13091 echo "$libcurl_PKG_ERRORS" >&5
13092
13093 have_libcurl=false
13094elif test $pkg_failed = untried; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096$as_echo "no" >&6; }
13097 have_libcurl=false
13098else
13099 libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
13100 libcurl_LIBS=$pkg_cv_libcurl_LIBS
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13102$as_echo "yes" >&6; }
13103 have_libcurl=true
13104fi
13105
638abbd0 13106 if test "x$have_libmicrohttpd" == "xtrue" -a "x$have_libuuid" == "xtrue" -a "x$have_libcurl" == "xtrue" -a "x$have_jsonc" == "xyes" -a "x$have_nss" == "xyes" -a "x$have_openssl" == "xyes" -a "x$have_cxx0x" == "xno"; then :
5c5a0bf2
DS
13107 have_http_support=yes
13108fi
13109fi
13110
13111if test "x$have_http_support" = "xyes"; then :
13112
13113$as_echo "#define HAVE_HTTP_SUPPORT 1" >>confdefs.h
13114
13115else
13116 if test "x$enable_http" = "xyes"; then :
13117 as_fn_error $? "http service support requested but not found" "$LINENO" 5
13118fi
13119
13120fi
13121 if test "x$have_http_support" = "xyes"; then
13122 HAVE_HTTP_SUPPORT_TRUE=
13123 HAVE_HTTP_SUPPORT_FALSE='#'
13124else
13125 HAVE_HTTP_SUPPORT_TRUE='#'
13126 HAVE_HTTP_SUPPORT_FALSE=
13127fi
13128
13129
01fb72a0
DS
13130 if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"; then
13131 NEED_BASE_CLIENT_CODE_TRUE=
13132 NEED_BASE_CLIENT_CODE_FALSE='#'
13133else
13134 NEED_BASE_CLIENT_CODE_TRUE='#'
13135 NEED_BASE_CLIENT_CODE_FALSE=
13136fi
13137
13138if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"; then :
13139
13140
13141$as_echo "#define NEED_BASE_CLIENT_CODE 1" >>confdefs.h
13142
13143
13144fi
13145
85b62eab 13146
2a1c9b5d
FCE
13147stap_prefix=$prefix
13148test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
50431f30
MW
13149
13150cat >>confdefs.h <<_ACEOF
2a1c9b5d 13151#define STAP_PREFIX "$stap_prefix"
50431f30
MW
13152_ACEOF
13153
62c8a962
FCE
13154STAP_PREFIX="$stap_prefix"
13155
50431f30 13156
7fbd9d09 13157ac_config_headers="$ac_config_headers config.h:config.in"
daae650d 13158
b8550627
FCE
13159
13160
71ed4a5d 13161ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile man/cs/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile man/stap.1 man/stappaths.7 man/systemtap-service.8 man/cs/stap.1 man/cs/stappaths.7 man/cs/systemtap.8 initscript/config.systemtap initscript/config.stap-server initscript/systemtap initscript/stap-server initscript/99stap/module-setup.sh initscript/99stap/install initscript/99stap/check"
8d9d8fe1 13162
0710d850
DS
13163
13164
97859b9d 13165subdirs="$subdirs testsuite"
5ba96b90 13166
6d14a4a9
EB
13167if test $enable_translator == "yes"; then
13168 ac_config_files="$ac_config_files run-stap"
2f62657c 13169
6d14a4a9 13170fi
e4aaabda
MW
13171ac_config_files="$ac_config_files dtrace"
13172
66c3c633
JS
13173ac_config_files="$ac_config_files stapdyn/Makefile"
13174
9ac164fa
FCE
13175ac_config_files="$ac_config_files java/Makefile"
13176
d885563b
FCE
13177ac_config_files="$ac_config_files java/stapbm"
13178
cf8a58fc
DS
13179ac_config_files="$ac_config_files python/Makefile"
13180
97859b9d
JS
13181ac_config_files="$ac_config_files staprun/Makefile"
13182
0dbac951
RH
13183ac_config_files="$ac_config_files stapbpf/Makefile"
13184
ea69aa57 13185ac_config_files="$ac_config_files httpd/Makefile httpd/docker/Makefile"
5c5a0bf2 13186
97859b9d
JS
13187ac_config_files="$ac_config_files staprun/run-staprun"
13188
42f767d0
JL
13189ac_config_files="$ac_config_files staprun/guest/stapshd"
13190
13191ac_config_files="$ac_config_files staprun/guest/stapsh-daemon"
13192
13193ac_config_files="$ac_config_files staprun/guest/stapsh@.service"
13194
3de4d169
FCE
13195ac_config_files="$ac_config_files stap-exporter/Makefile"
13196
53ade4da 13197
e914597c 13198
a98010af
AJ
13199# Setup "shadow" directory doc/beginners that has the basic directories setup for
13200# xmlto in one directory (through directory links if necessary).
53ade4da
MW
13201# It would be nice to use AC_CONFIG_LINKS, but automake complains when
13202# the src is a directory and not a file.
53ade4da
MW
13203ac_config_commands="$ac_config_commands doc/beginners"
13204
13205
2f1a1aea
FCE
13206cat >confcache <<\_ACEOF
13207# This file is a shell script that caches the results of configure
13208# tests run on this system so they can be shared between configure
13209# scripts and configure runs, see configure's option --config-cache.
13210# It is not useful on other systems. If it contains results you don't
13211# want to keep, you may remove or edit it.
13212#
13213# config.status only pays attention to the cache file if you give it
13214# the --recheck option to rerun configure.
13215#
13216# `ac_cv_env_foo' variables (set or unset) will be overridden when
13217# loading this file, other *unset* `ac_cv_foo' will be assigned the
13218# following values.
13219
13220_ACEOF
13221
13222# The following way of writing the cache mishandles newlines in values,
13223# but we know of no workaround that is simple, portable, and efficient.
7fbd9d09 13224# So, we kill variables containing newlines.
2f1a1aea
FCE
13225# Ultrix sh set writes to stderr and can't be redirected directly,
13226# and sets the high bit in the cache file unless we assign to the vars.
7fbd9d09
FCE
13227(
13228 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13229 eval ac_val=\$$ac_var
13230 case $ac_val in #(
13231 *${as_nl}*)
13232 case $ac_var in #(
1ef0423a 13233 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
0710d850 13234$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7fbd9d09
FCE
13235 esac
13236 case $ac_var in #(
13237 _ | IFS | as_nl) ;; #(
0710d850 13238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1ef0423a 13239 *) { eval $ac_var=; unset $ac_var;} ;;
7fbd9d09
FCE
13240 esac ;;
13241 esac
13242 done
13243
2f1a1aea 13244 (set) 2>&1 |
7fbd9d09
FCE
13245 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13246 *${as_nl}ac_space=\ *)
1ef0423a
FCE
13247 # `set' does not quote correctly, so add quotes: double-quote
13248 # substitution turns \\\\ into \\, and sed turns \\ into \.
2f1a1aea
FCE
13249 sed -n \
13250 "s/'/'\\\\''/g;
13251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7fbd9d09 13252 ;; #(
2f1a1aea
FCE
13253 *)
13254 # `set' quotes correctly as required by POSIX, so do not add quotes.
7fbd9d09 13255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2f1a1aea 13256 ;;
7fbd9d09
FCE
13257 esac |
13258 sort
13259) |
2f1a1aea 13260 sed '
7fbd9d09 13261 /^ac_cv_env_/b end
2f1a1aea 13262 t clear
7fbd9d09 13263 :clear
2f1a1aea
FCE
13264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13265 t end
7fbd9d09
FCE
13266 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13267 :end' >>confcache
13268if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13269 if test -w "$cache_file"; then
c3de29bd 13270 if test "x$cache_file" != "x/dev/null"; then
1ef0423a 13271 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
0710d850 13272$as_echo "$as_me: updating cache $cache_file" >&6;}
c3de29bd
LB
13273 if test ! -f "$cache_file" || test -h "$cache_file"; then
13274 cat confcache >"$cache_file"
13275 else
13276 case $cache_file in #(
13277 */* | ?:*)
13278 mv -f confcache "$cache_file"$$ &&
13279 mv -f "$cache_file"$$ "$cache_file" ;; #(
13280 *)
13281 mv -f confcache "$cache_file" ;;
13282 esac
13283 fi
13284 fi
2f1a1aea 13285 else
1ef0423a 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
0710d850 13287$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2f1a1aea
FCE
13288 fi
13289fi
13290rm -f confcache
13291
13292test "x$prefix" = xNONE && prefix=$ac_default_prefix
13293# Let make expand exec_prefix.
13294test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13295
2f1a1aea
FCE
13296DEFS=-DHAVE_CONFIG_H
13297
13298ac_libobjs=
13299ac_ltlibobjs=
42ca449e 13300U=
2f1a1aea
FCE
13301for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13302 # 1. Remove the extension, and $U if already installed.
7fbd9d09 13303 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
0710d850 13304 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7fbd9d09
FCE
13305 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13306 # will be set to the directory where LIBOBJS objects are built.
1ef0423a
FCE
13307 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13308 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2f1a1aea
FCE
13309done
13310LIBOBJS=$ac_libobjs
13311
13312LTLIBOBJS=$ac_ltlibobjs
13313
13314
8eef2738
LB
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13316$as_echo_n "checking that generated files are newer than configure... " >&6; }
13317 if test -n "$am_sleep_pid"; then
13318 # Hide warnings about reused PIDs.
13319 wait $am_sleep_pid 2>/dev/null
13320 fi
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13322$as_echo "done" >&6; }
0710d850
DS
13323 if test -n "$EXEEXT"; then
13324 am__EXEEXT_TRUE=
13325 am__EXEEXT_FALSE='#'
13326else
13327 am__EXEEXT_TRUE='#'
13328 am__EXEEXT_FALSE=
13329fi
13330
2f1a1aea 13331if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5d4aa1f5 13332 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
1ef0423a 13333Usually this means the macro was only invoked conditionally." "$LINENO" 5
2f1a1aea
FCE
13334fi
13335if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5d4aa1f5 13336 as_fn_error $? "conditional \"AMDEP\" was never defined.
1ef0423a 13337Usually this means the macro was only invoked conditionally." "$LINENO" 5
2f1a1aea
FCE
13338fi
13339if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5d4aa1f5 13340 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1ef0423a 13341Usually this means the macro was only invoked conditionally." "$LINENO" 5
2f1a1aea 13342fi
8f223b3e 13343if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5d4aa1f5 13344 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8f223b3e
FCE
13345Usually this means the macro was only invoked conditionally." "$LINENO" 5
13346fi
2f1a1aea 13347if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5d4aa1f5 13348 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1ef0423a 13349Usually this means the macro was only invoked conditionally." "$LINENO" 5
2f1a1aea 13350fi
6d14a4a9 13351if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
5d4aa1f5 13352 as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined.
1ef0423a 13353Usually this means the macro was only invoked conditionally." "$LINENO" 5
6d14a4a9 13354fi
e8f3c2c2 13355if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
5d4aa1f5 13356 as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined.
1ef0423a 13357Usually this means the macro was only invoked conditionally." "$LINENO" 5
4d9087fc 13358fi
465e8fbf 13359if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
5d4aa1f5 13360 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
1ef0423a 13361Usually this means the macro was only invoked conditionally." "$LINENO" 5
92aff3c7 13362fi
6e69a441
SM
13363if test -z "${INSTALL_PREBUILT_DOCS_TRUE}" && test -z "${INSTALL_PREBUILT_DOCS_FALSE}"; then
13364 as_fn_error $? "conditional \"INSTALL_PREBUILT_DOCS\" was never defined.
13365Usually this means the macro was only invoked conditionally." "$LINENO" 5
13366fi
92aff3c7 13367if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
5d4aa1f5 13368 as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined.
1ef0423a 13369Usually this means the macro was only invoked conditionally." "$LINENO" 5
468abaf4 13370fi
327a760e
FCE
13371if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
13372 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
13373Usually this means the macro was only invoked conditionally." "$LINENO" 5
13374fi
a98010af
AJ
13375if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
13376 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
13377Usually this means the macro was only invoked conditionally." "$LINENO" 5
13378fi
d9c42357
FL
13379if test -z "${BUILD_HTMLDOCS_TRUE}" && test -z "${BUILD_HTMLDOCS_FALSE}"; then
13380 as_fn_error $? "conditional \"BUILD_HTMLDOCS\" was never defined.
13381Usually this means the macro was only invoked conditionally." "$LINENO" 5
13382fi
468abaf4 13383if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
5d4aa1f5 13384 as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined.
1ef0423a 13385Usually this means the macro was only invoked conditionally." "$LINENO" 5
19a0d4b6 13386fi
2035bcd4 13387if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
5d4aa1f5 13388 as_fn_error $? "conditional \"HAVE_NSS\" was never defined.
1ef0423a 13389Usually this means the macro was only invoked conditionally." "$LINENO" 5
465e8fbf 13390fi
638abbd0
SC
13391if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
13392 as_fn_error $? "conditional \"HAVE_OPENSSL\" was never defined.
13393Usually this means the macro was only invoked conditionally." "$LINENO" 5
13394fi
a0e2728a 13395if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
5d4aa1f5 13396 as_fn_error $? "conditional \"BUILD_SERVER\" was never defined.
a0e2728a
DB
13397Usually this means the macro was only invoked conditionally." "$LINENO" 5
13398fi
2dce8c42 13399if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
5d4aa1f5 13400 as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined.
1ef0423a 13401Usually this means the macro was only invoked conditionally." "$LINENO" 5
2dce8c42 13402fi
9ac12b89
DS
13403if test -z "${HAVE_LIBREADLINE_TRUE}" && test -z "${HAVE_LIBREADLINE_FALSE}"; then
13404 as_fn_error $? "conditional \"HAVE_LIBREADLINE\" was never defined.
13405Usually this means the macro was only invoked conditionally." "$LINENO" 5
13406fi
e8f3c2c2 13407if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
5d4aa1f5 13408 as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined.
1ef0423a 13409Usually this means the macro was only invoked conditionally." "$LINENO" 5
35a04c8e 13410fi
138bbe90
JS
13411if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then
13412 as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined.
13413Usually this means the macro was only invoked conditionally." "$LINENO" 5
13414fi
42f767d0
JL
13415if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then
13416 as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined.
13417Usually this means the macro was only invoked conditionally." "$LINENO" 5
13418fi
13419if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
13420 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
13421Usually this means the macro was only invoked conditionally." "$LINENO" 5
13422fi
b0c670f4
FCE
13423if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then
13424 as_fn_error $? "conditional \"BUILD_VIRT\" was never defined.
13425Usually this means the macro was only invoked conditionally." "$LINENO" 5
13426fi
d7f07c29
DS
13427if test -z "${HAVE_PYTHON2_PROBES_TRUE}" && test -z "${HAVE_PYTHON2_PROBES_FALSE}"; then
13428 as_fn_error $? "conditional \"HAVE_PYTHON2_PROBES\" was never defined.
13429Usually this means the macro was only invoked conditionally." "$LINENO" 5
13430fi
13431if test -z "${HAVE_PYTHON3_PROBES_TRUE}" && test -z "${HAVE_PYTHON3_PROBES_FALSE}"; then
13432 as_fn_error $? "conditional \"HAVE_PYTHON3_PROBES\" was never defined.
13433Usually this means the macro was only invoked conditionally." "$LINENO" 5
13434fi
13435if test -z "${HAVE_PYTHON_PROBES_TRUE}" && test -z "${HAVE_PYTHON_PROBES_FALSE}"; then
13436 as_fn_error $? "conditional \"HAVE_PYTHON_PROBES\" was never defined.
c16501a1
DS
13437Usually this means the macro was only invoked conditionally." "$LINENO" 5
13438fi
11ea78d6
FL
13439if test -z "${HAVE_MONITOR_LIBS_TRUE}" && test -z "${HAVE_MONITOR_LIBS_FALSE}"; then
13440 as_fn_error $? "conditional \"HAVE_MONITOR_LIBS\" was never defined.
13441Usually this means the macro was only invoked conditionally." "$LINENO" 5
13442fi
f0418515
AM
13443if test -z "${HAVE_BPF_DECLS_TRUE}" && test -z "${HAVE_BPF_DECLS_FALSE}"; then
13444 as_fn_error $? "conditional \"HAVE_BPF_DECLS\" was never defined.
0dbac951
RH
13445Usually this means the macro was only invoked conditionally." "$LINENO" 5
13446fi
51030d84
JS
13447if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
13448 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
13449Usually this means the macro was only invoked conditionally." "$LINENO" 5
13450fi
26703c63
SM
13451if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13452 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
9ac164fa
FCE
13453Usually this means the macro was only invoked conditionally." "$LINENO" 5
13454fi
26703c63
SM
13455if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13456 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
9ac164fa
FCE
13457Usually this means the macro was only invoked conditionally." "$LINENO" 5
13458fi
5c5a0bf2
DS
13459if test -z "${HAVE_HTTP_SUPPORT_TRUE}" && test -z "${HAVE_HTTP_SUPPORT_FALSE}"; then
13460 as_fn_error $? "conditional \"HAVE_HTTP_SUPPORT\" was never defined.
13461Usually this means the macro was only invoked conditionally." "$LINENO" 5
13462fi
01fb72a0
DS
13463if test -z "${NEED_BASE_CLIENT_CODE_TRUE}" && test -z "${NEED_BASE_CLIENT_CODE_FALSE}"; then
13464 as_fn_error $? "conditional \"NEED_BASE_CLIENT_CODE\" was never defined.
13465Usually this means the macro was only invoked conditionally." "$LINENO" 5
13466fi
2f1a1aea 13467
c3de29bd 13468: "${CONFIG_STATUS=./config.status}"
0710d850 13469ac_write_fail=0
2f1a1aea
FCE
13470ac_clean_files_save=$ac_clean_files
13471ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1ef0423a 13472{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
0710d850 13473$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
1ef0423a
FCE
13474as_write_fail=0
13475cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2f1a1aea
FCE
13476#! $SHELL
13477# Generated by $as_me.
13478# Run this file to recreate the current configuration.
13479# Compiler output produced by configure, useful for debugging
13480# configure, is in config.log if it exists.
13481
13482debug=false
13483ac_cs_recheck=false
13484ac_cs_silent=false
5e5aee9f 13485
1ef0423a
FCE
13486SHELL=\${CONFIG_SHELL-$SHELL}
13487export SHELL
13488_ASEOF
13489cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13490## -------------------- ##
13491## M4sh Initialization. ##
13492## -------------------- ##
2f1a1aea 13493
7fbd9d09
FCE
13494# Be more Bourne compatible
13495DUALCASE=1; export DUALCASE # for MKS sh
1ef0423a 13496if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2f1a1aea
FCE
13497 emulate sh
13498 NULLCMD=:
0710d850 13499 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2f1a1aea
FCE
13500 # is contrary to our usage. Disable this feature.
13501 alias -g '${1+"$@"}'='"$@"'
7fbd9d09 13502 setopt NO_GLOB_SUBST
4a3c19da 13503else
1ef0423a
FCE
13504 case `(set -o) 2>/dev/null` in #(
13505 *posix*) :
13506 set -o posix ;; #(
13507 *) :
13508 ;;
4a3c19da
EM
13509esac
13510fi
13511
7fbd9d09 13512
0710d850
DS
13513as_nl='
13514'
13515export as_nl
13516# Printing a long string crashes Solaris 7 /usr/bin/printf.
13517as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13518as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13519as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1ef0423a
FCE
13520# Prefer a ksh shell builtin over an external printf program on Solaris,
13521# but without wasting forks for bash or zsh.
13522if test -z "$BASH_VERSION$ZSH_VERSION" \
13523 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13524 as_echo='print -r --'
13525 as_echo_n='print -rn --'
13526elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
0710d850
DS
13527 as_echo='printf %s\n'
13528 as_echo_n='printf %s'
13529else
13530 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13531 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13532 as_echo_n='/usr/ucb/echo -n'
31f9baea 13533 else
0710d850
DS
13534 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13535 as_echo_n_body='eval
13536 arg=$1;
1ef0423a 13537 case $arg in #(
0710d850
DS
13538 *"$as_nl"*)
13539 expr "X$arg" : "X\\(.*\\)$as_nl";
13540 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13541 esac;
13542 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13543 '
13544 export as_echo_n_body
13545 as_echo_n='sh -c $as_echo_n_body as_echo'
31f9baea 13546 fi
0710d850
DS
13547 export as_echo_body
13548 as_echo='sh -c $as_echo_body as_echo'
13549fi
13550
13551# The user is always right.
13552if test "${PATH_SEPARATOR+set}" != set; then
13553 PATH_SEPARATOR=:
13554 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13555 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13556 PATH_SEPARATOR=';'
13557 }
7fbd9d09
FCE
13558fi
13559
7fbd9d09
FCE
13560
13561# IFS
13562# We need space, tab and new line, in precisely that order. Quoting is
13563# there to prevent editors from complaining about space-tab.
13564# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13565# splitting by setting IFS to empty value.)
7fbd9d09
FCE
13566IFS=" "" $as_nl"
13567
13568# Find who we are. Look in the path if we contain no directory separator.
c3de29bd 13569as_myself=
1ef0423a 13570case $0 in #((
7fbd9d09
FCE
13571 *[\\/]* ) as_myself=$0 ;;
13572 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13573for as_dir in $PATH
13574do
13575 IFS=$as_save_IFS
13576 test -z "$as_dir" && as_dir=.
1ef0423a
FCE
13577 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13578 done
7fbd9d09
FCE
13579IFS=$as_save_IFS
13580
13581 ;;
13582esac
13583# We did not find ourselves, most probably we were run as `sh COMMAND'
13584# in which case we are not to be found in the path.
13585if test "x$as_myself" = x; then
13586 as_myself=$0
13587fi
13588if test ! -f "$as_myself"; then
0710d850 13589 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1ef0423a 13590 exit 1
7fbd9d09
FCE
13591fi
13592
1ef0423a
FCE
13593# Unset variables that we do not need and which cause bugs (e.g. in
13594# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13595# suppresses any "Segmentation fault" message there. '((' could
13596# trigger a bug in pdksh 5.2.14.
13597for as_var in BASH_ENV ENV MAIL MAILPATH
13598do eval test x\${$as_var+set} = xset \
13599 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7fbd9d09
FCE
13600done
13601PS1='$ '
2f1a1aea
FCE
13602PS2='> '
13603PS4='+ '
13604
13605# NLS nuisances.
0710d850
DS
13606LC_ALL=C
13607export LC_ALL
13608LANGUAGE=C
13609export LANGUAGE
2f1a1aea 13610
1ef0423a
FCE
13611# CDPATH.
13612(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13613
13614
5d4aa1f5
FCE
13615# as_fn_error STATUS ERROR [LINENO LOG_FD]
13616# ----------------------------------------
1ef0423a
FCE
13617# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13618# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5d4aa1f5 13619# script with STATUS, using 1 if that was 0.
1ef0423a
FCE
13620as_fn_error ()
13621{
5d4aa1f5
FCE
13622 as_status=$1; test $as_status -eq 0 && as_status=1
13623 if test "$4"; then
13624 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13625 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1ef0423a 13626 fi
5d4aa1f5 13627 $as_echo "$as_me: error: $2" >&2
1ef0423a
FCE
13628 as_fn_exit $as_status
13629} # as_fn_error
13630
13631
13632# as_fn_set_status STATUS
13633# -----------------------
13634# Set $? to STATUS, without forking.
13635as_fn_set_status ()
13636{
13637 return $1
13638} # as_fn_set_status
13639
13640# as_fn_exit STATUS
13641# -----------------
13642# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13643as_fn_exit ()
13644{
13645 set +e
13646 as_fn_set_status $1
13647 exit $1
13648} # as_fn_exit
13649
13650# as_fn_unset VAR
13651# ---------------
13652# Portably unset VAR.
13653as_fn_unset ()
13654{
13655 { eval $1=; unset $1;}
13656}
13657as_unset=as_fn_unset
13658# as_fn_append VAR VALUE
13659# ----------------------
13660# Append the text in VALUE to the end of the definition contained in VAR. Take
13661# advantage of any shell optimizations that allow amortized linear growth over
13662# repeated appends, instead of the typical quadratic growth present in naive
13663# implementations.
13664if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13665 eval 'as_fn_append ()
13666 {
13667 eval $1+=\$2
13668 }'
13669else
13670 as_fn_append ()
13671 {
13672 eval $1=\$$1\$2
13673 }
13674fi # as_fn_append
13675
13676# as_fn_arith ARG...
13677# ------------------
13678# Perform arithmetic evaluation on the ARGs, and store the result in the
13679# global $as_val. Take advantage of shells that can avoid forks. The arguments
13680# must be portable across $(()) and expr.
13681if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13682 eval 'as_fn_arith ()
13683 {
13684 as_val=$(( $* ))
13685 }'
13686else
13687 as_fn_arith ()
13688 {
13689 as_val=`expr "$@" || test $? -eq 1`
13690 }
13691fi # as_fn_arith
13692
13693
7fbd9d09
FCE
13694if expr a : '\(a\)' >/dev/null 2>&1 &&
13695 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2f1a1aea
FCE
13696 as_expr=expr
13697else
13698 as_expr=false
13699fi
13700
7fbd9d09 13701if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2f1a1aea
FCE
13702 as_basename=basename
13703else
13704 as_basename=false
13705fi
13706
1ef0423a
FCE
13707if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13708 as_dirname=dirname
13709else
13710 as_dirname=false
13711fi
2f1a1aea 13712
7fbd9d09 13713as_me=`$as_basename -- "$0" ||
2f1a1aea
FCE
13714$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13715 X"$0" : 'X\(//\)$' \| \
7fbd9d09 13716 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
0710d850 13717$as_echo X/"$0" |
7fbd9d09
FCE
13718 sed '/^.*\/\([^/][^/]*\)\/*$/{
13719 s//\1/
13720 q
13721 }
13722 /^X\/\(\/\/\)$/{
13723 s//\1/
13724 q
13725 }
13726 /^X\/\(\/\).*/{
13727 s//\1/
13728 q
13729 }
13730 s/.*/./; q'`
8ae7a94a 13731
1ef0423a
FCE
13732# Avoid depending upon Character Ranges.
13733as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13734as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13735as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13736as_cr_digits='0123456789'
13737as_cr_alnum=$as_cr_Letters$as_cr_digits
7fbd9d09
FCE
13738
13739ECHO_C= ECHO_N= ECHO_T=
1ef0423a 13740case `echo -n x` in #(((((
7fbd9d09 13741-n*)
1ef0423a 13742 case `echo 'xy\c'` in
7fbd9d09 13743 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1ef0423a
FCE
13744 xy) ECHO_C='\c';;
13745 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13746 ECHO_T=' ';;
7fbd9d09
FCE
13747 esac;;
13748*)
13749 ECHO_N='-n';;
2f1a1aea 13750esac
2f1a1aea
FCE
13751
13752rm -f conf$$ conf$$.exe conf$$.file
7fbd9d09
FCE
13753if test -d conf$$.dir; then
13754 rm -f conf$$.dir/conf$$.file
13755else
13756 rm -f conf$$.dir
0710d850
DS
13757 mkdir conf$$.dir 2>/dev/null
13758fi
13759if (echo >conf$$.file) 2>/dev/null; then
13760 if ln -s conf$$.file conf$$ 2>/dev/null; then
13761 as_ln_s='ln -s'
13762 # ... but there are two gotchas:
13763 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13764 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8eef2738 13765 # In both cases, we have to default to `cp -pR'.
0710d850 13766 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8eef2738 13767 as_ln_s='cp -pR'
0710d850
DS
13768 elif ln conf$$.file conf$$ 2>/dev/null; then
13769 as_ln_s=ln
13770 else
8eef2738 13771 as_ln_s='cp -pR'
0710d850 13772 fi
2f1a1aea 13773else
8eef2738 13774 as_ln_s='cp -pR'
2f1a1aea 13775fi
7fbd9d09
FCE
13776rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13777rmdir conf$$.dir 2>/dev/null
2f1a1aea 13778
1ef0423a
FCE
13779
13780# as_fn_mkdir_p
13781# -------------
13782# Create "$as_dir" as a directory, including parents if necessary.
13783as_fn_mkdir_p ()
13784{
13785
13786 case $as_dir in #(
13787 -*) as_dir=./$as_dir;;
13788 esac
13789 test -d "$as_dir" || eval $as_mkdir_p || {
13790 as_dirs=
13791 while :; do
13792 case $as_dir in #(
13793 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13794 *) as_qdir=$as_dir;;
13795 esac
13796 as_dirs="'$as_qdir' $as_dirs"
13797 as_dir=`$as_dirname -- "$as_dir" ||
13798$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13799 X"$as_dir" : 'X\(//\)[^/]' \| \
13800 X"$as_dir" : 'X\(//\)$' \| \
13801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13802$as_echo X"$as_dir" |
13803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13804 s//\1/
13805 q
13806 }
13807 /^X\(\/\/\)[^/].*/{
13808 s//\1/
13809 q
13810 }
13811 /^X\(\/\/\)$/{
13812 s//\1/
13813 q
13814 }
13815 /^X\(\/\).*/{
13816 s//\1/
13817 q
13818 }
13819 s/.*/./; q'`
13820 test -d "$as_dir" && break
13821 done
13822 test -z "$as_dirs" || eval "mkdir $as_dirs"
5d4aa1f5 13823 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1ef0423a
FCE
13824
13825
13826} # as_fn_mkdir_p
2f1a1aea 13827if mkdir -p . 2>/dev/null; then
1ef0423a 13828 as_mkdir_p='mkdir -p "$as_dir"'
2f1a1aea
FCE
13829else
13830 test -d ./-p && rmdir ./-p
13831 as_mkdir_p=false
13832fi
13833
8eef2738
LB
13834
13835# as_fn_executable_p FILE
13836# -----------------------
13837# Test if FILE is an executable regular file.
13838as_fn_executable_p ()
13839{
13840 test -f "$1" && test -x "$1"
13841} # as_fn_executable_p
13842as_test_x='test -x'
13843as_executable_p=as_fn_executable_p
2f1a1aea
FCE
13844
13845# Sed expression to map a string onto a valid CPP name.
13846as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13847
13848# Sed expression to map a string onto a valid variable name.
13849as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13850
13851
2f1a1aea 13852exec 6>&1
1ef0423a
FCE
13853## ----------------------------------- ##
13854## Main body of $CONFIG_STATUS script. ##
13855## ----------------------------------- ##
13856_ASEOF
13857test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
2f1a1aea 13858
1ef0423a
FCE
13859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13860# Save the log message, to keep $0 and so on meaningful, and to
2f1a1aea 13861# report actual input values of CONFIG_FILES etc. instead of their
7fbd9d09
FCE
13862# values after options handling.
13863ac_log="
dd57c738 13864This file was extended by systemtap $as_me 4.1, which was
8eef2738 13865generated by GNU Autoconf 2.69. Invocation command line was
2f1a1aea
FCE
13866
13867 CONFIG_FILES = $CONFIG_FILES
13868 CONFIG_HEADERS = $CONFIG_HEADERS
13869 CONFIG_LINKS = $CONFIG_LINKS
13870 CONFIG_COMMANDS = $CONFIG_COMMANDS
13871 $ $0 $@
13872
7fbd9d09
FCE
13873on `(hostname || uname -n) 2>/dev/null | sed 1q`
13874"
13875
2f1a1aea
FCE
13876_ACEOF
13877
0710d850
DS
13878case $ac_config_files in *"
13879"*) set x $ac_config_files; shift; ac_config_files=$*;;
13880esac
13881
13882case $ac_config_headers in *"
13883"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13884esac
13885
13886
13887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
818ba2bc 13888# Files that config.status was made for.
7fbd9d09
FCE
13889config_files="$ac_config_files"
13890config_headers="$ac_config_headers"
13891config_commands="$ac_config_commands"
daae650d 13892
7fbd9d09 13893_ACEOF
8ae7a94a 13894
0710d850 13895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2f1a1aea 13896ac_cs_usage="\
1ef0423a
FCE
13897\`$as_me' instantiates files and other configuration actions
13898from templates according to the current configuration. Unless the files
13899and actions are specified as TAGs, all are instantiated by default.
2f1a1aea 13900
1ef0423a 13901Usage: $0 [OPTION]... [TAG]...
2f1a1aea
FCE
13902
13903 -h, --help print this help, then exit
7fbd9d09 13904 -V, --version print version number and configuration settings, then exit
1ef0423a 13905 --config print configuration, then exit
0710d850
DS
13906 -q, --quiet, --silent
13907 do not print progress messages
2f1a1aea
FCE
13908 -d, --debug don't remove temporary files
13909 --recheck update $as_me by reconfiguring in the same conditions
0710d850
DS
13910 --file=FILE[:TEMPLATE]
13911 instantiate the configuration file FILE
13912 --header=FILE[:TEMPLATE]
13913 instantiate the configuration header FILE
2f1a1aea
FCE
13914
13915Configuration files:
13916$config_files
13917
13918Configuration headers:
13919$config_headers
13920
13921Configuration commands:
13922$config_commands
13923
306dd4f8 13924Report bugs to <systemtap@sourceware.org>."
818ba2bc 13925
7fbd9d09 13926_ACEOF
0710d850 13927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1ef0423a 13928ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2f1a1aea 13929ac_cs_version="\\
dd57c738 13930systemtap config.status 4.1
8eef2738 13931configured by $0, generated by GNU Autoconf 2.69,
1ef0423a 13932 with options \\"\$ac_cs_config\\"
2f1a1aea 13933
8eef2738 13934Copyright (C) 2012 Free Software Foundation, Inc.
2f1a1aea
FCE
13935This config.status script is free software; the Free Software Foundation
13936gives unlimited permission to copy, distribute and modify it."
7fbd9d09
FCE
13937
13938ac_pwd='$ac_pwd'
13939srcdir='$srcdir'
13940INSTALL='$INSTALL'
13941MKDIR_P='$MKDIR_P'
0710d850
DS
13942AWK='$AWK'
13943test -n "\$AWK" || AWK=awk
2f1a1aea
FCE
13944_ACEOF
13945
0710d850
DS
13946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13947# The default lists apply if the user does not specify any file.
2f1a1aea
FCE
13948ac_need_defaults=:
13949while test $# != 0
13950do
13951 case $1 in
c3de29bd 13952 --*=?*)
7fbd9d09
FCE
13953 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13954 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2f1a1aea
FCE
13955 ac_shift=:
13956 ;;
c3de29bd
LB
13957 --*=)
13958 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13959 ac_optarg=
13960 ac_shift=:
13961 ;;
7fbd9d09 13962 *)
2f1a1aea
FCE
13963 ac_option=$1
13964 ac_optarg=$2
13965 ac_shift=shift
13966 ;;
2f1a1aea
FCE
13967 esac
13968
13969 case $ac_option in
13970 # Handling of the options.
2f1a1aea
FCE
13971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13972 ac_cs_recheck=: ;;
7fbd9d09 13973 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
0710d850 13974 $as_echo "$ac_cs_version"; exit ;;
1ef0423a
FCE
13975 --config | --confi | --conf | --con | --co | --c )
13976 $as_echo "$ac_cs_config"; exit ;;
7fbd9d09 13977 --debug | --debu | --deb | --de | --d | -d )
2f1a1aea
FCE
13978 debug=: ;;
13979 --file | --fil | --fi | --f )
13980 $ac_shift
0710d850
DS
13981 case $ac_optarg in
13982 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
c3de29bd 13983 '') as_fn_error $? "missing file argument" ;;
0710d850 13984 esac
1ef0423a 13985 as_fn_append CONFIG_FILES " '$ac_optarg'"
2f1a1aea
FCE
13986 ac_need_defaults=false;;
13987 --header | --heade | --head | --hea )
13988 $ac_shift
0710d850
DS
13989 case $ac_optarg in
13990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13991 esac
1ef0423a 13992 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
2f1a1aea 13993 ac_need_defaults=false;;
7fbd9d09
FCE
13994 --he | --h)
13995 # Conflict between --help and --header
5d4aa1f5 13996 as_fn_error $? "ambiguous option: \`$1'
1ef0423a 13997Try \`$0 --help' for more information.";;
7fbd9d09 13998 --help | --hel | -h )
0710d850 13999 $as_echo "$ac_cs_usage"; exit ;;
2f1a1aea
FCE
14000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14001 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14002 ac_cs_silent=: ;;
14003
14004 # This is an error.
5d4aa1f5 14005 -*) as_fn_error $? "unrecognized option: \`$1'
1ef0423a 14006Try \`$0 --help' for more information." ;;
2f1a1aea 14007
1ef0423a 14008 *) as_fn_append ac_config_targets " $1"
7fbd9d09 14009 ac_need_defaults=false ;;
2f1a1aea
FCE
14010
14011 esac
14012 shift
14013done
14014
14015ac_configure_extra_args=
14016
14017if $ac_cs_silent; then
14018 exec 6>/dev/null
14019 ac_configure_extra_args="$ac_configure_extra_args --silent"
14020fi
14021
14022_ACEOF
0710d850 14023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea 14024if \$ac_cs_recheck; then
8eef2738 14025 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
0710d850
DS
14026 shift
14027 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14028 CONFIG_SHELL='$SHELL'
7fbd9d09 14029 export CONFIG_SHELL
0710d850 14030 exec "\$@"
2f1a1aea
FCE
14031fi
14032
14033_ACEOF
0710d850 14034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
14035exec 5>>config.log
14036{
14037 echo
14038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14039## Running $as_me. ##
14040_ASBOX
0710d850 14041 $as_echo "$ac_log"
7fbd9d09 14042} >&5
2f1a1aea 14043
7fbd9d09 14044_ACEOF
0710d850 14045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2f1a1aea 14046#
7fbd9d09 14047# INIT-COMMANDS
2f1a1aea 14048#
891810c2 14049AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
8f223b3e
FCE
14050# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14051 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14052 # from automake < 1.5.
14053 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14054 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14055 LINGUAS="${LINGUAS-%UNSET%}"
14056
2f1a1aea
FCE
14057
14058_ACEOF
14059
0710d850 14060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
14061
14062# Handling of arguments.
2f1a1aea
FCE
14063for ac_config_target in $ac_config_targets
14064do
7fbd9d09
FCE
14065 case $ac_config_target in
14066 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8f223b3e 14067 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
f9794ee4 14068 "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;;
8f223b3e 14069 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
7fbd9d09
FCE
14070 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14071 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14072 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
a6e785fa 14073 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
7ba226f5 14074 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
53ade4da 14075 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
7fbd9d09 14076 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
c5f68013 14077 "man/stap.1") CONFIG_FILES="$CONFIG_FILES man/stap.1" ;;
a6e785fa 14078 "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;;
71ed4a5d 14079 "man/systemtap-service.8") CONFIG_FILES="$CONFIG_FILES man/systemtap-service.8" ;;
c5f68013 14080 "man/cs/stap.1") CONFIG_FILES="$CONFIG_FILES man/cs/stap.1" ;;
71730019
MC
14081 "man/cs/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/cs/stappaths.7" ;;
14082 "man/cs/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/cs/systemtap.8" ;;
29fe12e4
WC
14083 "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;;
14084 "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;;
7fbd9d09 14085 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
2f78bee0 14086 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
b728b279 14087 "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;;
9ed47854
MC
14088 "initscript/99stap/install") CONFIG_FILES="$CONFIG_FILES initscript/99stap/install" ;;
14089 "initscript/99stap/check") CONFIG_FILES="$CONFIG_FILES initscript/99stap/check" ;;
7fbd9d09 14090 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
e4aaabda 14091 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
66c3c633 14092 "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;;
9ac164fa 14093 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
d885563b 14094 "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;;
cf8a58fc 14095 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
97859b9d 14096 "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;;
0dbac951 14097 "stapbpf/Makefile") CONFIG_FILES="$CONFIG_FILES stapbpf/Makefile" ;;
5c5a0bf2 14098 "httpd/Makefile") CONFIG_FILES="$CONFIG_FILES httpd/Makefile" ;;
ea69aa57 14099 "httpd/docker/Makefile") CONFIG_FILES="$CONFIG_FILES httpd/docker/Makefile" ;;
97859b9d 14100 "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;;
42f767d0
JL
14101 "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;;
14102 "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;;
14103 "staprun/guest/stapsh@.service") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh@.service" ;;
3de4d169 14104 "stap-exporter/Makefile") CONFIG_FILES="$CONFIG_FILES stap-exporter/Makefile" ;;
53ade4da 14105 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
7fbd9d09 14106
5d4aa1f5 14107 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
2f1a1aea
FCE
14108 esac
14109done
14110
7fbd9d09 14111
2f1a1aea
FCE
14112# If the user did not use the arguments to specify the items to instantiate,
14113# then the envvar interface is used. Set only those that are not.
14114# We use the long form for the default assignment because of an extremely
14115# bizarre bug on SunOS 4.1.3.
14116if $ac_need_defaults; then
14117 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14118 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14119 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14120fi
14121
14122# Have a temporary directory for convenience. Make it in the build tree
7fbd9d09 14123# simply because there is no reason against having it here, and in addition,
2f1a1aea 14124# creating and moving files from /tmp can sometimes cause problems.
7fbd9d09
FCE
14125# Hook for its removal unless debugging.
14126# Note that there is a small window in which the directory will not be cleaned:
14127# after its creation but before its name has been assigned to `$tmp'.
2f1a1aea
FCE
14128$debug ||
14129{
c3de29bd 14130 tmp= ac_tmp=
7fbd9d09 14131 trap 'exit_status=$?
c3de29bd
LB
14132 : "${ac_tmp:=$tmp}"
14133 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7fbd9d09 14134' 0
1ef0423a 14135 trap 'as_fn_exit 1' 1 2 13 15
2f1a1aea 14136}
2f1a1aea
FCE
14137# Create a (secure) tmp directory for tmp files.
14138
14139{
7fbd9d09 14140 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c3de29bd 14141 test -d "$tmp"
2f1a1aea
FCE
14142} ||
14143{
7fbd9d09
FCE
14144 tmp=./conf$$-$RANDOM
14145 (umask 077 && mkdir "$tmp")
5d4aa1f5 14146} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
c3de29bd 14147ac_tmp=$tmp
2f1a1aea 14148
0710d850
DS
14149# Set up the scripts for CONFIG_FILES section.
14150# No need to generate them if there are no CONFIG_FILES.
14151# This happens for instance with `./config.status config.h'.
7fbd9d09
FCE
14152if test -n "$CONFIG_FILES"; then
14153
31f9baea 14154
1ef0423a
FCE
14155ac_cr=`echo X | tr X '\015'`
14156# On cygwin, bash can eat \r inside `` if the user requested igncr.
14157# But we know of no other shell where ac_cr would be empty at this
14158# point, so we can use a bashism as a fallback.
14159if test "x$ac_cr" = x; then
14160 eval ac_cr=\$\'\\r\'
14161fi
0710d850
DS
14162ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14163if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5d4aa1f5 14164 ac_cs_awk_cr='\\r'
0710d850
DS
14165else
14166 ac_cs_awk_cr=$ac_cr
7fbd9d09 14167fi
5e0d2ebf 14168
c3de29bd 14169echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7fbd9d09
FCE
14170_ACEOF
14171
14172
0710d850
DS
14173{
14174 echo "cat >conf$$subs.awk <<_ACEOF" &&
14175 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14176 echo "_ACEOF"
14177} >conf$$subs.sh ||
5d4aa1f5
FCE
14178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14179ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7fbd9d09
FCE
14180ac_delim='%!_!# '
14181for ac_last_try in false false false false false :; do
0710d850 14182 . ./conf$$subs.sh ||
5d4aa1f5 14183 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
0710d850
DS
14184
14185 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14186 if test $ac_delim_n = $ac_delim_num; then
7fbd9d09
FCE
14187 break
14188 elif $ac_last_try; then
5d4aa1f5 14189 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7fbd9d09
FCE
14190 else
14191 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14192 fi
14193done
0710d850
DS
14194rm -f conf$$subs.sh
14195
14196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c3de29bd 14197cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
0710d850
DS
14198_ACEOF
14199sed -n '
14200h
14201s/^/S["/; s/!.*/"]=/
14202p
14203g
14204s/^[^!]*!//
14205:repl
14206t repl
14207s/'"$ac_delim"'$//
14208t delim
14209:nl
14210h
1ef0423a 14211s/\(.\{148\}\)..*/\1/
0710d850
DS
14212t more1
14213s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14214p
14215n
14216b repl
14217:more1
14218s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14219p
14220g
14221s/.\{148\}//
14222t nl
14223:delim
14224h
1ef0423a 14225s/\(.\{148\}\)..*/\1/
0710d850
DS
14226t more2
14227s/["\\]/\\&/g; s/^/"/; s/$/"/
14228p
14229b
14230:more2
14231s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14232p
14233g
14234s/.\{148\}//
14235t delim
14236' <conf$$subs.awk | sed '
14237/^[^""]/{
14238 N
14239 s/\n//
14240}
14241' >>$CONFIG_STATUS || ac_write_fail=1
14242rm -f conf$$subs.awk
14243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14244_ACAWK
c3de29bd 14245cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
0710d850
DS
14246 for (key in S) S_is_set[key] = 1
14247 FS = "\a"
7fbd9d09 14248
0710d850
DS
14249}
14250{
14251 line = $ 0
14252 nfields = split(line, field, "@")
14253 substed = 0
14254 len = length(field[1])
14255 for (i = 2; i < nfields; i++) {
14256 key = field[i]
14257 keylen = length(key)
14258 if (S_is_set[key]) {
14259 value = S[key]
14260 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14261 len += length(value) + length(field[++i])
14262 substed = 1
14263 } else
14264 len += 1 + keylen
14265 }
14266
14267 print line
14268}
7fbd9d09 14269
0710d850 14270_ACAWK
7fbd9d09 14271_ACEOF
0710d850
DS
14272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14273if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14274 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14275else
14276 cat
c3de29bd 14277fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5d4aa1f5 14278 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7fbd9d09
FCE
14279_ACEOF
14280
5d4aa1f5
FCE
14281# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14282# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7fbd9d09
FCE
14283# trailing colons and then remove the whole line if VPATH becomes empty
14284# (actually we leave an empty line to preserve line numbers).
14285if test "x$srcdir" = x.; then
5d4aa1f5
FCE
14286 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14287h
14288s///
14289s/^/:/
14290s/[ ]*$/:/
14291s/:\$(srcdir):/:/g
14292s/:\${srcdir}:/:/g
14293s/:@srcdir@:/:/g
14294s/^:*//
7fbd9d09 14295s/:*$//
5d4aa1f5
FCE
14296x
14297s/\(=[ ]*\).*/\1/
14298G
14299s/\n//
7fbd9d09
FCE
14300s/^[^=]*=[ ]*$//
14301}'
14302fi
14303
0710d850 14304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
14305fi # test -n "$CONFIG_FILES"
14306
0710d850
DS
14307# Set up the scripts for CONFIG_HEADERS section.
14308# No need to generate them if there are no CONFIG_HEADERS.
14309# This happens for instance with `./config.status Makefile'.
14310if test -n "$CONFIG_HEADERS"; then
c3de29bd 14311cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
0710d850
DS
14312BEGIN {
14313_ACEOF
14314
14315# Transform confdefs.h into an awk script `defines.awk', embedded as
14316# here-document in config.status, that substitutes the proper values into
14317# config.h.in to produce config.h.
14318
14319# Create a delimiter string that does not exist in confdefs.h, to ease
14320# handling of long lines.
14321ac_delim='%!_!# '
14322for ac_last_try in false false :; do
c3de29bd
LB
14323 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14324 if test -z "$ac_tt"; then
0710d850
DS
14325 break
14326 elif $ac_last_try; then
5d4aa1f5 14327 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
0710d850
DS
14328 else
14329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14330 fi
14331done
14332
14333# For the awk script, D is an array of macro values keyed by name,
14334# likewise P contains macro parameters if any. Preserve backslash
14335# newline sequences.
14336
14337ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14338sed -n '
14339s/.\{148\}/&'"$ac_delim"'/g
14340t rset
14341:rset
14342s/^[ ]*#[ ]*define[ ][ ]*/ /
14343t def
14344d
14345:def
14346s/\\$//
14347t bsnl
14348s/["\\]/\\&/g
14349s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14350D["\1"]=" \3"/p
14351s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14352d
14353:bsnl
14354s/["\\]/\\&/g
14355s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14356D["\1"]=" \3\\\\\\n"\\/p
14357t cont
14358s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14359t cont
14360d
14361:cont
14362n
14363s/.\{148\}/&'"$ac_delim"'/g
14364t clear
14365:clear
14366s/\\$//
14367t bsnlc
14368s/["\\]/\\&/g; s/^/"/; s/$/"/p
14369d
14370:bsnlc
14371s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14372b cont
14373' <confdefs.h | sed '
14374s/'"$ac_delim"'/"\\\
14375"/g' >>$CONFIG_STATUS || ac_write_fail=1
14376
14377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14378 for (key in D) D_is_set[key] = 1
14379 FS = "\a"
14380}
14381/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14382 line = \$ 0
14383 split(line, arg, " ")
14384 if (arg[1] == "#") {
14385 defundef = arg[2]
14386 mac1 = arg[3]
14387 } else {
14388 defundef = substr(arg[1], 2)
14389 mac1 = arg[2]
14390 }
14391 split(mac1, mac2, "(") #)
14392 macro = mac2[1]
14393 prefix = substr(line, 1, index(line, defundef) - 1)
14394 if (D_is_set[macro]) {
14395 # Preserve the white space surrounding the "#".
14396 print prefix "define", macro P[macro] D[macro]
14397 next
14398 } else {
14399 # Replace #undef with comments. This is necessary, for example,
14400 # in the case of _POSIX_SOURCE, which is predefined and required
14401 # on some systems where configure will not decide to define it.
14402 if (defundef == "undef") {
14403 print "/*", prefix defundef, macro, "*/"
14404 next
14405 }
14406 }
14407}
14408{ print }
14409_ACAWK
14410_ACEOF
14411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5d4aa1f5 14412 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
0710d850
DS
14413fi # test -n "$CONFIG_HEADERS"
14414
27aba29a 14415
0710d850
DS
14416eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14417shift
14418for ac_tag
7fbd9d09
FCE
14419do
14420 case $ac_tag in
14421 :[FHLC]) ac_mode=$ac_tag; continue;;
2f1a1aea 14422 esac
7fbd9d09
FCE
14423 case $ac_mode$ac_tag in
14424 :[FHL]*:*);;
5d4aa1f5 14425 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7fbd9d09
FCE
14426 :[FH]-) ac_tag=-:-;;
14427 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14428 esac
14429 ac_save_IFS=$IFS
14430 IFS=:
14431 set x $ac_tag
14432 IFS=$ac_save_IFS
14433 shift
14434 ac_file=$1
14435 shift
2f1a1aea 14436
7fbd9d09
FCE
14437 case $ac_mode in
14438 :L) ac_source=$1;;
14439 :[FH])
14440 ac_file_inputs=
14441 for ac_f
14442 do
14443 case $ac_f in
c3de29bd 14444 -) ac_f="$ac_tmp/stdin";;
7fbd9d09
FCE
14445 *) # Look for the file first in the build tree, then in the source tree
14446 # (if the path is not absolute). The absolute path cannot be DOS-style,
14447 # because $ac_f cannot contain `:'.
14448 test -f "$ac_f" ||
14449 case $ac_f in
14450 [\\/$]*) false;;
14451 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14452 esac ||
5d4aa1f5 14453 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7fbd9d09 14454 esac
0710d850 14455 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1ef0423a 14456 as_fn_append ac_file_inputs " '$ac_f'"
7fbd9d09
FCE
14457 done
14458
14459 # Let's still pretend it is `configure' which instantiates (i.e., don't
14460 # use $as_me), people would be surprised to read:
14461 # /* config.h. Generated by config.status. */
0710d850
DS
14462 configure_input='Generated from '`
14463 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14464 `' by configure.'
7fbd9d09
FCE
14465 if test x"$ac_file" != x-; then
14466 configure_input="$ac_file. $configure_input"
1ef0423a 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
0710d850 14468$as_echo "$as_me: creating $ac_file" >&6;}
7fbd9d09 14469 fi
0710d850
DS
14470 # Neutralize special characters interpreted by sed in replacement strings.
14471 case $configure_input in #(
14472 *\&* | *\|* | *\\* )
14473 ac_sed_conf_input=`$as_echo "$configure_input" |
14474 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14475 *) ac_sed_conf_input=$configure_input;;
14476 esac
7fbd9d09
FCE
14477
14478 case $ac_tag in
c3de29bd 14479 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5d4aa1f5 14480 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7fbd9d09
FCE
14481 esac
14482 ;;
14483 esac
14484
14485 ac_dir=`$as_dirname -- "$ac_file" ||
2f1a1aea
FCE
14486$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14487 X"$ac_file" : 'X\(//\)[^/]' \| \
14488 X"$ac_file" : 'X\(//\)$' \| \
7fbd9d09 14489 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
0710d850 14490$as_echo X"$ac_file" |
7fbd9d09
FCE
14491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14492 s//\1/
14493 q
14494 }
14495 /^X\(\/\/\)[^/].*/{
14496 s//\1/
14497 q
14498 }
14499 /^X\(\/\/\)$/{
14500 s//\1/
14501 q
14502 }
14503 /^X\(\/\).*/{
14504 s//\1/
14505 q
14506 }
14507 s/.*/./; q'`
1ef0423a 14508 as_dir="$ac_dir"; as_fn_mkdir_p
2f1a1aea
FCE
14509 ac_builddir=.
14510
7fbd9d09
FCE
14511case "$ac_dir" in
14512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14513*)
0710d850 14514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 14515 # A ".." for each directory in $ac_dir_suffix.
0710d850 14516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
14517 case $ac_top_builddir_sub in
14518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14520 esac ;;
14521esac
14522ac_abs_top_builddir=$ac_pwd
14523ac_abs_builddir=$ac_pwd$ac_dir_suffix
14524# for backward compatibility:
14525ac_top_builddir=$ac_top_build_prefix
2f1a1aea
FCE
14526
14527case $srcdir in
7fbd9d09 14528 .) # We are building in place.
2f1a1aea 14529 ac_srcdir=.
7fbd9d09
FCE
14530 ac_top_srcdir=$ac_top_builddir_sub
14531 ac_abs_top_srcdir=$ac_pwd ;;
14532 [\\/]* | ?:[\\/]* ) # Absolute name.
2f1a1aea 14533 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
14534 ac_top_srcdir=$srcdir
14535 ac_abs_top_srcdir=$srcdir ;;
14536 *) # Relative name.
14537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14538 ac_top_srcdir=$ac_top_build_prefix$srcdir
14539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2f1a1aea 14540esac
7fbd9d09 14541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2f1a1aea 14542
2f1a1aea 14543
7fbd9d09
FCE
14544 case $ac_mode in
14545 :F)
14546 #
14547 # CONFIG_FILE
14548 #
2f1a1aea
FCE
14549
14550 case $INSTALL in
14551 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7fbd9d09
FCE
14552 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14553 esac
14554 ac_MKDIR_P=$MKDIR_P
14555 case $MKDIR_P in
14556 [\\/$]* | ?:[\\/]* ) ;;
14557 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5e0d2ebf 14558 esac
7fbd9d09 14559_ACEOF
5e0d2ebf 14560
0710d850 14561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7fbd9d09
FCE
14562# If the template does not know about datarootdir, expand it.
14563# FIXME: This hack should be removed a few years after 2.60.
14564ac_datarootdir_hack=; ac_datarootdir_seen=
0710d850
DS
14565ac_sed_dataroot='
14566/datarootdir/ {
7fbd9d09
FCE
14567 p
14568 q
14569}
14570/@datadir@/p
14571/@docdir@/p
14572/@infodir@/p
14573/@localedir@/p
1ef0423a 14574/@mandir@/p'
0710d850 14575case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7fbd9d09
FCE
14576*datarootdir*) ac_datarootdir_seen=yes;;
14577*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1ef0423a 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
0710d850 14579$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7fbd9d09 14580_ACEOF
0710d850 14581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7fbd9d09
FCE
14582 ac_datarootdir_hack='
14583 s&@datadir@&$datadir&g
14584 s&@docdir@&$docdir&g
14585 s&@infodir@&$infodir&g
14586 s&@localedir@&$localedir&g
14587 s&@mandir@&$mandir&g
1ef0423a 14588 s&\\\${datarootdir}&$datarootdir&g' ;;
7fbd9d09 14589esac
70d28673 14590_ACEOF
7fbd9d09
FCE
14591
14592# Neutralize VPATH when `$srcdir' = `.'.
14593# Shell code in configure.ac might set extrasub.
14594# FIXME: do we really want to maintain this feature?
0710d850
DS
14595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14596ac_sed_extra="$ac_vpsub
2f1a1aea
FCE
14597$extrasub
14598_ACEOF
0710d850 14599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2f1a1aea
FCE
14600:t
14601/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
0710d850 14602s|@configure_input@|$ac_sed_conf_input|;t t
7fbd9d09 14603s&@top_builddir@&$ac_top_builddir_sub&;t t
0710d850 14604s&@top_build_prefix@&$ac_top_build_prefix&;t t
7fbd9d09
FCE
14605s&@srcdir@&$ac_srcdir&;t t
14606s&@abs_srcdir@&$ac_abs_srcdir&;t t
14607s&@top_srcdir@&$ac_top_srcdir&;t t
14608s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14609s&@builddir@&$ac_builddir&;t t
14610s&@abs_builddir@&$ac_abs_builddir&;t t
14611s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14612s&@INSTALL@&$ac_INSTALL&;t t
14613s&@MKDIR_P@&$ac_MKDIR_P&;t t
14614$ac_datarootdir_hack
0710d850 14615"
c3de29bd
LB
14616eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14617 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7fbd9d09
FCE
14618
14619test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
c3de29bd
LB
14620 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14621 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14622 "$ac_tmp/out"`; test -z "$ac_out"; } &&
1ef0423a 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5d4aa1f5 14624which seems to be undefined. Please make sure it is defined" >&5
0710d850 14625$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5d4aa1f5 14626which seems to be undefined. Please make sure it is defined" >&2;}
7fbd9d09 14627
c3de29bd 14628 rm -f "$ac_tmp/stdin"
818ba2bc 14629 case $ac_file in
c3de29bd
LB
14630 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14631 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
0710d850 14632 esac \
5d4aa1f5 14633 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7fbd9d09
FCE
14634 ;;
14635 :H)
14636 #
14637 # CONFIG_HEADER
14638 #
818ba2bc 14639 if test x"$ac_file" != x-; then
0710d850
DS
14640 {
14641 $as_echo "/* $configure_input */" \
c3de29bd
LB
14642 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14643 } >"$ac_tmp/config.h" \
5d4aa1f5 14644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
c3de29bd 14645 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1ef0423a 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
0710d850 14647$as_echo "$as_me: $ac_file is unchanged" >&6;}
2f1a1aea 14648 else
0710d850 14649 rm -f "$ac_file"
c3de29bd 14650 mv "$ac_tmp/config.h" "$ac_file" \
5d4aa1f5 14651 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
2f1a1aea
FCE
14652 fi
14653 else
0710d850 14654 $as_echo "/* $configure_input */" \
c3de29bd 14655 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5d4aa1f5 14656 || as_fn_error $? "could not create -" "$LINENO" 5
2f1a1aea 14657 fi
0710d850
DS
14658# Compute "$ac_file"'s index in $config_headers.
14659_am_arg="$ac_file"
2f1a1aea
FCE
14660_am_stamp_count=1
14661for _am_header in $config_headers :; do
14662 case $_am_header in
0710d850 14663 $_am_arg | $_am_arg:* )
2f1a1aea
FCE
14664 break ;;
14665 * )
14666 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14667 esac
14668done
0710d850
DS
14669echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14670$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14671 X"$_am_arg" : 'X\(//\)[^/]' \| \
14672 X"$_am_arg" : 'X\(//\)$' \| \
14673 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14674$as_echo X"$_am_arg" |
7fbd9d09
FCE
14675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14676 s//\1/
14677 q
14678 }
14679 /^X\(\/\/\)[^/].*/{
14680 s//\1/
14681 q
14682 }
14683 /^X\(\/\/\)$/{
14684 s//\1/
14685 q
14686 }
14687 /^X\(\/\).*/{
14688 s//\1/
14689 q
14690 }
14691 s/.*/./; q'`/stamp-h$_am_stamp_count
14692 ;;
818ba2bc 14693
1ef0423a 14694 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
0710d850 14695$as_echo "$as_me: executing $ac_file commands" >&6;}
7fbd9d09
FCE
14696 ;;
14697 esac
818ba2bc
MW
14698
14699
7fbd9d09 14700 case $ac_file$ac_mode in
0710d850 14701 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d9e6d90b 14702 # Older Autoconf quotes --file arguments for eval, but not when files
0710d850
DS
14703 # are listed without --file. Let's play safe and only enable the eval
14704 # if we detect the quoting.
891810c2
FCE
14705 # TODO: see whether this extra hack can be removed once we start
14706 # requiring Autoconf 2.70 or later.
14707 case $CONFIG_FILES in #(
14708 *\'*) :
14709 eval set x "$CONFIG_FILES" ;; #(
14710 *) :
14711 set x $CONFIG_FILES ;; #(
14712 *) :
14713 ;;
14714esac
0710d850 14715 shift
891810c2
FCE
14716 # Used to flag and report bootstrapping failures.
14717 am_rc=0
14718 for am_mf
0710d850
DS
14719 do
14720 # Strip MF so we end up with the name of the file.
891810c2
FCE
14721 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14722 # Check whether this is an Automake generated Makefile which includes
14723 # dependency-tracking related rules and includes.
14724 # Grep'ing the whole file directly is not great: AIX grep has a line
0710d850 14725 # limit of 2048, but all sed's we know have understand at least 4000.
891810c2
FCE
14726 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14727 || continue
14728 am_dirpart=`$as_dirname -- "$am_mf" ||
14729$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14730 X"$am_mf" : 'X\(//\)[^/]' \| \
14731 X"$am_mf" : 'X\(//\)$' \| \
14732 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14733$as_echo X"$am_mf" |
7fbd9d09
FCE
14734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14735 s//\1/
14736 q
14737 }
14738 /^X\(\/\/\)[^/].*/{
14739 s//\1/
14740 q
14741 }
14742 /^X\(\/\/\)$/{
14743 s//\1/
14744 q
14745 }
14746 /^X\(\/\).*/{
14747 s//\1/
14748 q
14749 }
14750 s/.*/./; q'`
891810c2
FCE
14751 am_filepart=`$as_basename -- "$am_mf" ||
14752$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14753 X"$am_mf" : 'X\(//\)$' \| \
14754 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14755$as_echo X/"$am_mf" |
14756 sed '/^.*\/\([^/][^/]*\)\/*$/{
7fbd9d09
FCE
14757 s//\1/
14758 q
14759 }
891810c2 14760 /^X\/\(\/\/\)$/{
7fbd9d09
FCE
14761 s//\1/
14762 q
14763 }
891810c2 14764 /^X\/\(\/\).*/{
7fbd9d09
FCE
14765 s//\1/
14766 q
14767 }
14768 s/.*/./; q'`
891810c2
FCE
14769 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14770 && sed -e '/# am--include-marker/d' "$am_filepart" \
14771 | $MAKE -f - am--depfiles" >&5
14772 (cd "$am_dirpart" \
14773 && sed -e '/# am--include-marker/d' "$am_filepart" \
14774 | $MAKE -f - am--depfiles) >&5 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } || am_rc=$?
2f1a1aea 14778 done
891810c2
FCE
14779 if test $am_rc -ne 0; then
14780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14782as_fn_error $? "Something went wrong bootstrapping makefile fragments
14783 for automatic dependency tracking. Try re-running configure with the
14784 '--disable-dependency-tracking' option to at least be able to build
14785 the package (albeit without support for automatic dependency tracking).
14786See \`config.log' for more details" "$LINENO" 5; }
14787 fi
14788 { am_dirpart=; unset am_dirpart;}
14789 { am_filepart=; unset am_filepart;}
14790 { am_mf=; unset am_mf;}
14791 { am_rc=; unset am_rc;}
14792 rm -f conftest-deps.mk
0710d850 14793}
2f1a1aea 14794 ;;
8f223b3e
FCE
14795 "po-directories":C)
14796 for ac_file in $CONFIG_FILES; do
14797 # Support "outfile[:infile[:infile...]]"
14798 case "$ac_file" in
14799 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14800 esac
14801 # PO directories have a Makefile.in generated from Makefile.in.in.
14802 case "$ac_file" in */Makefile.in)
14803 # Adjust a relative srcdir.
14804 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
42f767d0 14805 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
8f223b3e
FCE
14806 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14807 # In autoconf-2.13 it is called $ac_given_srcdir.
14808 # In autoconf-2.50 it is called $srcdir.
14809 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14810 case "$ac_given_srcdir" in
14811 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14812 /*) top_srcdir="$ac_given_srcdir" ;;
14813 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14814 esac
14815 # Treat a directory as a PO directory if and only if it has a
14816 # POTFILES.in file. This allows packages to have multiple PO
14817 # directories under different names or in different locations.
14818 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14819 rm -f "$ac_dir/POTFILES"
14820 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
42f767d0
JL
14821 gt_tab=`printf '\t'`
14822 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8f223b3e
FCE
14823 POMAKEFILEDEPS="POTFILES.in"
14824 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14825 # on $ac_dir but don't depend on user-specified configuration
14826 # parameters.
14827 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14828 # The LINGUAS file contains the set of available languages.
14829 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14830 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14831 fi
14832 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
42f767d0 14833 # Hide the ALL_LINGUAS assignment from automake < 1.5.
8f223b3e
FCE
14834 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14835 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14836 else
14837 # The set of available languages was given in configure.in.
42f767d0 14838 # Hide the ALL_LINGUAS assignment from automake < 1.5.
8f223b3e
FCE
14839 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14840 fi
14841 # Compute POFILES
14842 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14843 # Compute UPDATEPOFILES
14844 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14845 # Compute DUMMYPOFILES
14846 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14847 # Compute GMOFILES
14848 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14849 case "$ac_given_srcdir" in
14850 .) srcdirpre= ;;
14851 *) srcdirpre='$(srcdir)/' ;;
14852 esac
14853 POFILES=
14854 UPDATEPOFILES=
14855 DUMMYPOFILES=
14856 GMOFILES=
14857 for lang in $ALL_LINGUAS; do
14858 POFILES="$POFILES $srcdirpre$lang.po"
14859 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14860 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14861 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14862 done
14863 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14864 # environment variable.
14865 INST_LINGUAS=
14866 if test -n "$ALL_LINGUAS"; then
14867 for presentlang in $ALL_LINGUAS; do
14868 useit=no
14869 if test "%UNSET%" != "$LINGUAS"; then
14870 desiredlanguages="$LINGUAS"
14871 else
14872 desiredlanguages="$ALL_LINGUAS"
14873 fi
14874 for desiredlang in $desiredlanguages; do
14875 # Use the presentlang catalog if desiredlang is
14876 # a. equal to presentlang, or
14877 # b. a variant of presentlang (because in this case,
14878 # presentlang can be used as a fallback for messages
14879 # which are not translated in the desiredlang catalog).
14880 case "$desiredlang" in
14881 "$presentlang"*) useit=yes;;
14882 esac
14883 done
14884 if test $useit = yes; then
14885 INST_LINGUAS="$INST_LINGUAS $presentlang"
14886 fi
14887 done
14888 fi
14889 CATALOGS=
14890 if test -n "$INST_LINGUAS"; then
14891 for lang in $INST_LINGUAS; do
14892 CATALOGS="$CATALOGS $lang.gmo"
14893 done
14894 fi
14895 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14896 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"
14897 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14898 if test -f "$f"; then
14899 case "$f" in
14900 *.orig | *.bak | *~) ;;
14901 *) cat "$f" >> "$ac_dir/Makefile" ;;
14902 esac
14903 fi
14904 done
14905 fi
14906 ;;
14907 esac
14908 done ;;
7fbd9d09 14909 "run-stap":F) chmod +x run-stap ;;
e4aaabda 14910 "dtrace":F) chmod +x dtrace ;;
d885563b 14911 "java/stapbm":F) chmod +x java/stapbm ;;
97859b9d 14912 "staprun/run-staprun":F) chmod +x staprun/run-staprun ;;
42f767d0
JL
14913 "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;;
14914 "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;;
d9c42357 14915 "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 14916
2f1a1aea 14917 esac
7fbd9d09 14918done # for ac_tag
2f1a1aea 14919
2f1a1aea 14920
1ef0423a 14921as_fn_exit 0
2f1a1aea 14922_ACEOF
2f1a1aea
FCE
14923ac_clean_files=$ac_clean_files_save
14924
0710d850 14925test $ac_write_fail = 0 ||
5d4aa1f5 14926 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
0710d850 14927
2f1a1aea
FCE
14928
14929# configure is writing to config.log, and then calls config.status.
14930# config.status does its own redirection, appending to config.log.
14931# Unfortunately, on DOS this fails, as config.log is still kept open
14932# by configure, so config.status won't be able to write to it; its
14933# output is simply discarded. So we exec the FD to /dev/null,
14934# effectively closing config.log, so it can be properly (re)opened and
14935# appended to by config.status. When coming back to configure, we
14936# need to make the FD available again.
14937if test "$no_create" != yes; then
14938 ac_cs_success=:
14939 ac_config_status_args=
14940 test "$silent" = yes &&
14941 ac_config_status_args="$ac_config_status_args --quiet"
14942 exec 5>/dev/null
14943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14944 exec 5>>config.log
14945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14946 # would make configure fail if this is the last instruction.
5d4aa1f5 14947 $ac_cs_success || as_fn_exit 1
2f1a1aea
FCE
14948fi
14949
5ba96b90
FCE
14950#
14951# CONFIG_SUBDIRS section.
14952#
14953if test "$no_recursion" != yes; then
14954
0710d850
DS
14955 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14956 # so they do not pile up.
5ba96b90
FCE
14957 ac_sub_configure_args=
14958 ac_prev=
7fbd9d09
FCE
14959 eval "set x $ac_configure_args"
14960 shift
14961 for ac_arg
14962 do
5ba96b90
FCE
14963 if test -n "$ac_prev"; then
14964 ac_prev=
14965 continue
14966 fi
14967 case $ac_arg in
14968 -cache-file | --cache-file | --cache-fil | --cache-fi \
14969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14970 ac_prev=cache_file ;;
14971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14973 | --c=*)
14974 ;;
14975 --config-cache | -C)
14976 ;;
14977 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14978 ac_prev=srcdir ;;
14979 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14980 ;;
14981 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14982 ac_prev=prefix ;;
14983 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14984 ;;
0710d850
DS
14985 --disable-option-checking)
14986 ;;
7fbd9d09
FCE
14987 *)
14988 case $ac_arg in
0710d850 14989 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fbd9d09 14990 esac
1ef0423a 14991 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5ba96b90
FCE
14992 esac
14993 done
14994
14995 # Always prepend --prefix to ensure using the same prefix
14996 # in subdir configurations.
7fbd9d09
FCE
14997 ac_arg="--prefix=$prefix"
14998 case $ac_arg in
0710d850 14999 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fbd9d09
FCE
15000 esac
15001 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15002
15003 # Pass --silent
15004 if test "$silent" = yes; then
15005 ac_sub_configure_args="--silent $ac_sub_configure_args"
15006 fi
daae650d 15007
0710d850
DS
15008 # Always prepend --disable-option-checking to silence warnings, since
15009 # different subdirs can have different --enable and --with options.
15010 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15011
5ba96b90
FCE
15012 ac_popdir=`pwd`
15013 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15014
15015 # Do not complain, so a configure script can configure whichever
15016 # parts of a large source tree are present.
7fbd9d09
FCE
15017 test -d "$srcdir/$ac_dir" || continue
15018
15019 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1ef0423a 15020 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
0710d850 15021 $as_echo "$ac_msg" >&6
1ef0423a 15022 as_dir="$ac_dir"; as_fn_mkdir_p
5ba96b90
FCE
15023 ac_builddir=.
15024
7fbd9d09
FCE
15025case "$ac_dir" in
15026.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15027*)
0710d850 15028 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7fbd9d09 15029 # A ".." for each directory in $ac_dir_suffix.
0710d850 15030 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7fbd9d09
FCE
15031 case $ac_top_builddir_sub in
15032 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15033 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15034 esac ;;
15035esac
15036ac_abs_top_builddir=$ac_pwd
15037ac_abs_builddir=$ac_pwd$ac_dir_suffix
15038# for backward compatibility:
15039ac_top_builddir=$ac_top_build_prefix
5ba96b90
FCE
15040
15041case $srcdir in
7fbd9d09 15042 .) # We are building in place.
5ba96b90 15043 ac_srcdir=.
7fbd9d09
FCE
15044 ac_top_srcdir=$ac_top_builddir_sub
15045 ac_abs_top_srcdir=$ac_pwd ;;
15046 [\\/]* | ?:[\\/]* ) # Absolute name.
5ba96b90 15047 ac_srcdir=$srcdir$ac_dir_suffix;
7fbd9d09
FCE
15048 ac_top_srcdir=$srcdir
15049 ac_abs_top_srcdir=$srcdir ;;
15050 *) # Relative name.
15051 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15052 ac_top_srcdir=$ac_top_build_prefix$srcdir
15053 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5ba96b90 15054esac
7fbd9d09 15055ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5ba96b90
FCE
15056
15057
7fbd9d09 15058 cd "$ac_dir"
5ba96b90
FCE
15059
15060 # Check for guested configure; otherwise get Cygnus style configure.
7fbd9d09
FCE
15061 if test -f "$ac_srcdir/configure.gnu"; then
15062 ac_sub_configure=$ac_srcdir/configure.gnu
15063 elif test -f "$ac_srcdir/configure"; then
15064 ac_sub_configure=$ac_srcdir/configure
15065 elif test -f "$ac_srcdir/configure.in"; then
15066 # This should be Cygnus configure.
15067 ac_sub_configure=$ac_aux_dir/configure
5ba96b90 15068 else
1ef0423a 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
0710d850 15070$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
5ba96b90
FCE
15071 ac_sub_configure=
15072 fi
15073
15074 # The recursion is here.
15075 if test -n "$ac_sub_configure"; then
15076 # Make the cache file name correct relative to the subdirectory.
15077 case $cache_file in
15078 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7fbd9d09
FCE
15079 *) # Relative name.
15080 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5ba96b90
FCE
15081 esac
15082
1ef0423a 15083 { $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 15084$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5ba96b90 15085 # The eval makes quoting arguments work.
7fbd9d09
FCE
15086 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15087 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5d4aa1f5 15088 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5ba96b90
FCE
15089 fi
15090
7fbd9d09 15091 cd "$ac_popdir"
5ba96b90
FCE
15092 done
15093fi
0710d850 15094if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1ef0423a 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
0710d850
DS
15096$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15097fi
5ba96b90 15098
4d9087fc 15099
af29024d 15100if test "${prefix}" = "/usr/local"; then
1ef0423a 15101 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
0710d850 15102$as_echo "$as_me: " >&6;}
1ef0423a 15103 { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
0710d850 15104$as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
1ef0423a 15105 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
0710d850 15106$as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
1ef0423a 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
0710d850 15108$as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
1ef0423a 15109 { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
0710d850 15110$as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
1ef0423a 15111 { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5
0710d850 15112$as_echo "$as_me: is not supported." >&6;}
af29024d 15113fi
This page took 2.919582 seconds and 5 git commands to generate.