]> sourceware.org Git - systemtap.git/blob - configure
Reorganize http server to support multiple compile backends.
[systemtap.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for systemtap 3.2.
4 #
5 # Report bugs to <systemtap@sourceware.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if 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 --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if 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 }
81 fi
82
83
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $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
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if 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
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
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
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
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
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
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
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
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.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $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
259 exit 255
260 fi
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
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."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_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.
308 as_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.
318 as_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"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
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.
376 if (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 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # 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.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
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
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
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
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
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
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
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; }
490
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
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
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `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';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (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.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='systemtap'
582 PACKAGE_TARNAME='systemtap'
583 PACKAGE_VERSION='3.2'
584 PACKAGE_STRING='systemtap 3.2'
585 PACKAGE_BUGREPORT='systemtap@sourceware.org'
586 PACKAGE_URL=''
587
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 # include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 # include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 gt_needs=
625 enable_option_checking=no
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 subdirs
631 STAP_PREFIX
632 NEED_BASE_CLIENT_CODE_FALSE
633 NEED_BASE_CLIENT_CODE_TRUE
634 HAVE_HTTP_SUPPORT_FALSE
635 HAVE_HTTP_SUPPORT_TRUE
636 uuid_LIBS
637 uuid_CFLAGS
638 libmicrohttpd_LIBS
639 libmicrohttpd_CFLAGS
640 STAP_EXTRA_VERSION
641 LOCALEDIR
642 ENABLE_NLS
643 HAVE_JAVA_FALSE
644 HAVE_JAVA_TRUE
645 JAVADIR
646 have_jar
647 have_javac
648 HAVE_SELINUX_FALSE
649 HAVE_SELINUX_TRUE
650 selinux_LIBS
651 selinux_CFLAGS
652 support_section_question
653 HAVE_MONITOR_LIBS_FALSE
654 HAVE_MONITOR_LIBS_TRUE
655 ncurses_LIBS
656 ncurses_CFLAGS
657 jsonc_LIBS
658 jsonc_CFLAGS
659 HAVE_PYTHON_PROBES_FALSE
660 HAVE_PYTHON_PROBES_TRUE
661 HAVE_PYTHON3_PROBES_FALSE
662 HAVE_PYTHON3_PROBES_TRUE
663 PYTHON3_CPPFLAGS
664 PYTHON3_CONFIG
665 HAVE_PYTHON2_PROBES_FALSE
666 HAVE_PYTHON2_PROBES_TRUE
667 PYTHON_CPPFLAGS
668 PYTHON_CONFIG
669 BUILD_VIRT_FALSE
670 BUILD_VIRT_TRUE
671 HAVE_LIBXML2_FALSE
672 HAVE_LIBXML2_TRUE
673 libxml2_LIBS
674 libxml2_CFLAGS
675 HAVE_LIBVIRT_FALSE
676 HAVE_LIBVIRT_TRUE
677 libvirt_LIBS
678 libvirt_CFLAGS
679 HAVE_DYNINST_FALSE
680 HAVE_DYNINST_TRUE
681 DYNINST_LDFLAGS
682 DYNINST_CXXFLAGS
683 CXXCPP
684 DATE
685 staprun_LIBS
686 stap_LIBS
687 elfutils_abs_srcdir
688 BUILD_ELFUTILS_FALSE
689 BUILD_ELFUTILS_TRUE
690 preferred_python
691 HAVE_LIBREADLINE_FALSE
692 HAVE_LIBREADLINE_TRUE
693 READLINE_LIBS
694 HAVE_AVAHI_FALSE
695 HAVE_AVAHI_TRUE
696 avahi_LIBS
697 avahi_CFLAGS
698 BUILD_SERVER_FALSE
699 BUILD_SERVER_TRUE
700 dracutbindir
701 dracutstap
702 HAVE_NSS_FALSE
703 HAVE_NSS_TRUE
704 nss_LIBS
705 nss_CFLAGS
706 XMLTO_STRINGPARAM_FALSE
707 XMLTO_STRINGPARAM_TRUE
708 BUILD_HTMLDOCS_FALSE
709 BUILD_HTMLDOCS_TRUE
710 HAVE_XMLTO_FALSE
711 HAVE_XMLTO_TRUE
712 HAVE_FOP_FALSE
713 HAVE_FOP_TRUE
714 have_fop
715 have_xmlto
716 BUILD_REFDOCS_FALSE
717 BUILD_REFDOCS_TRUE
718 BUILD_DOCS_FALSE
719 BUILD_DOCS_TRUE
720 have_ps2pdf
721 have_dvips
722 have_latex
723 BUILD_CRASHMOD_FALSE
724 BUILD_CRASHMOD_TRUE
725 staplog_CPPFLAGS
726 BUILD_TRANSLATOR_FALSE
727 BUILD_TRANSLATOR_TRUE
728 sqlite3_LIBS
729 sqlite3_CFLAGS
730 PKG_CONFIG_LIBDIR
731 PKG_CONFIG_PATH
732 PKG_CONFIG
733 PIECXXFLAGS
734 PIECFLAGS
735 PIELDFLAGS
736 HAVE_CXX11
737 py3execdir
738 python3dir
739 PYTHON3_PLATFORM
740 PYTHON3_EXEC_PREFIX
741 PYTHON3_PREFIX
742 PYTHON3_VERSION
743 PYTHON3
744 pkgpyexecdir
745 pyexecdir
746 pkgpythondir
747 pythondir
748 PYTHON_PLATFORM
749 PYTHON_EXEC_PREFIX
750 PYTHON_PREFIX
751 PYTHON_VERSION
752 PYTHON
753 PYTHON_UNKNOWN
754 POSUB
755 LTLIBINTL
756 LIBINTL
757 INTLLIBS
758 LTLIBICONV
759 LIBICONV
760 INTL_MACOSX_LIBS
761 XGETTEXT_EXTRA_OPTIONS
762 MSGMERGE
763 XGETTEXT_015
764 XGETTEXT
765 GMSGFMT_015
766 MSGFMT_015
767 GMSGFMT
768 MSGFMT
769 GETTEXT_MACRO_VERSION
770 USE_NLS
771 SED
772 RANLIB
773 am__fastdepCXX_FALSE
774 am__fastdepCXX_TRUE
775 CXXDEPMODE
776 ac_ct_CXX
777 CXXFLAGS
778 CXX
779 LN_S
780 EGREP
781 GREP
782 CPP
783 am__fastdepCC_FALSE
784 am__fastdepCC_TRUE
785 CCDEPMODE
786 am__nodep
787 AMDEPBACKSLASH
788 AMDEP_FALSE
789 AMDEP_TRUE
790 am__quote
791 am__include
792 DEPDIR
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
799 CC
800 MAINT
801 MAINTAINER_MODE_FALSE
802 MAINTAINER_MODE_TRUE
803 AM_BACKSLASH
804 AM_DEFAULT_VERBOSITY
805 AM_DEFAULT_V
806 AM_V
807 am__untar
808 am__tar
809 AMTAR
810 am__leading_dot
811 SET_MAKE
812 AWK
813 mkdir_p
814 MKDIR_P
815 INSTALL_STRIP_PROGRAM
816 STRIP
817 install_sh
818 MAKEINFO
819 AUTOHEADER
820 AUTOMAKE
821 AUTOCONF
822 ACLOCAL
823 VERSION
824 PACKAGE
825 CYGPATH_W
826 am__isrc
827 INSTALL_DATA
828 INSTALL_SCRIPT
829 INSTALL_PROGRAM
830 target_os
831 target_vendor
832 target_cpu
833 target
834 host_os
835 host_vendor
836 host_cpu
837 host
838 build_os
839 build_vendor
840 build_cpu
841 build
842 target_alias
843 host_alias
844 build_alias
845 LIBS
846 ECHO_T
847 ECHO_N
848 ECHO_C
849 DEFS
850 mandir
851 localedir
852 libdir
853 psdir
854 pdfdir
855 dvidir
856 htmldir
857 infodir
858 docdir
859 oldincludedir
860 includedir
861 localstatedir
862 sharedstatedir
863 sysconfdir
864 datadir
865 datarootdir
866 libexecdir
867 sbindir
868 bindir
869 program_transform_name
870 prefix
871 exec_prefix
872 PACKAGE_URL
873 PACKAGE_BUGREPORT
874 PACKAGE_STRING
875 PACKAGE_VERSION
876 PACKAGE_TARNAME
877 PACKAGE_NAME
878 PATH_SEPARATOR
879 SHELL'
880 ac_subst_files=''
881 ac_user_opts='
882 enable_option_checking
883 enable_silent_rules
884 enable_maintainer_mode
885 enable_dependency_tracking
886 enable_largefile
887 enable_nls
888 with_gnu_ld
889 enable_rpath
890 with_libiconv_prefix
891 with_libintl_prefix
892 enable_prologues
893 enable_sdt_probes
894 enable_ssp
895 enable_pie
896 enable_sqlite
897 enable_translator
898 enable_crash
899 enable_docs
900 enable_refdocs
901 enable_htmldocs
902 with_nss
903 with_dracutstap
904 with_dracutbindir
905 enable_server
906 with_avahi
907 with_rpm
908 with_python3
909 with_elfutils
910 with_dyninst
911 enable_virt
912 with_python2_probes
913 with_python3_probes
914 with_selinux
915 with_java
916 with_extra_version
917 enable_http
918 '
919 ac_precious_vars='build_alias
920 host_alias
921 target_alias
922 CC
923 CFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
927 CPP
928 CXX
929 CXXFLAGS
930 CCC
931 PYTHON
932 PKG_CONFIG
933 PKG_CONFIG_PATH
934 PKG_CONFIG_LIBDIR
935 sqlite3_CFLAGS
936 sqlite3_LIBS
937 nss_CFLAGS
938 nss_LIBS
939 avahi_CFLAGS
940 avahi_LIBS
941 CXXCPP
942 libvirt_CFLAGS
943 libvirt_LIBS
944 libxml2_CFLAGS
945 libxml2_LIBS
946 jsonc_CFLAGS
947 jsonc_LIBS
948 ncurses_CFLAGS
949 ncurses_LIBS
950 selinux_CFLAGS
951 selinux_LIBS
952 libmicrohttpd_CFLAGS
953 libmicrohttpd_LIBS
954 uuid_CFLAGS
955 uuid_LIBS'
956 ac_subdirs_all='testsuite'
957
958 # Initialize some variables set by options.
959 ac_init_help=
960 ac_init_version=false
961 ac_unrecognized_opts=
962 ac_unrecognized_sep=
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
965 cache_file=/dev/null
966 exec_prefix=NONE
967 no_create=
968 no_recursion=
969 prefix=NONE
970 program_prefix=NONE
971 program_suffix=NONE
972 program_transform_name=s,x,x,
973 silent=
974 site=
975 srcdir=
976 verbose=
977 x_includes=NONE
978 x_libraries=NONE
979
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997 infodir='${datarootdir}/info'
998 htmldir='${docdir}'
999 dvidir='${docdir}'
1000 pdfdir='${docdir}'
1001 psdir='${docdir}'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1005
1006 ac_prev=
1007 ac_dashdash=
1008 for ac_option
1009 do
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1013 ac_prev=
1014 continue
1015 fi
1016
1017 case $ac_option in
1018 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *=) ac_optarg= ;;
1020 *) ac_optarg=yes ;;
1021 esac
1022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
1028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
1049 -datadir | --datadir | --datadi | --datad)
1050 ac_prev=datadir ;;
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1053
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
1061 -disable-* | --disable-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid feature name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070 "enable_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval enable_$ac_useropt=no ;;
1076
1077 -docdir | --docdir | --docdi | --doc | --do)
1078 ac_prev=docdir ;;
1079 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080 docdir=$ac_optarg ;;
1081
1082 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083 ac_prev=dvidir ;;
1084 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085 dvidir=$ac_optarg ;;
1086
1087 -enable-* | --enable-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error $? "invalid feature name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096 "enable_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval enable_$ac_useropt=\$ac_optarg ;;
1102
1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105 | --exec | --exe | --ex)
1106 ac_prev=exec_prefix ;;
1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109 | --exec=* | --exe=* | --ex=*)
1110 exec_prefix=$ac_optarg ;;
1111
1112 -gas | --gas | --ga | --g)
1113 # Obsolete; use --with-gas.
1114 with_gas=yes ;;
1115
1116 -help | --help | --hel | --he | -h)
1117 ac_init_help=long ;;
1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119 ac_init_help=recursive ;;
1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121 ac_init_help=short ;;
1122
1123 -host | --host | --hos | --ho)
1124 ac_prev=host_alias ;;
1125 -host=* | --host=* | --hos=* | --ho=*)
1126 host_alias=$ac_optarg ;;
1127
1128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129 ac_prev=htmldir ;;
1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131 | --ht=*)
1132 htmldir=$ac_optarg ;;
1133
1134 -includedir | --includedir | --includedi | --included | --include \
1135 | --includ | --inclu | --incl | --inc)
1136 ac_prev=includedir ;;
1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138 | --includ=* | --inclu=* | --incl=* | --inc=*)
1139 includedir=$ac_optarg ;;
1140
1141 -infodir | --infodir | --infodi | --infod | --info | --inf)
1142 ac_prev=infodir ;;
1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144 infodir=$ac_optarg ;;
1145
1146 -libdir | --libdir | --libdi | --libd)
1147 ac_prev=libdir ;;
1148 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149 libdir=$ac_optarg ;;
1150
1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152 | --libexe | --libex | --libe)
1153 ac_prev=libexecdir ;;
1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155 | --libexe=* | --libex=* | --libe=*)
1156 libexecdir=$ac_optarg ;;
1157
1158 -localedir | --localedir | --localedi | --localed | --locale)
1159 ac_prev=localedir ;;
1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161 localedir=$ac_optarg ;;
1162
1163 -localstatedir | --localstatedir | --localstatedi | --localstated \
1164 | --localstate | --localstat | --localsta | --localst | --locals)
1165 ac_prev=localstatedir ;;
1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168 localstatedir=$ac_optarg ;;
1169
1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171 ac_prev=mandir ;;
1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173 mandir=$ac_optarg ;;
1174
1175 -nfp | --nfp | --nf)
1176 # Obsolete; use --without-fp.
1177 with_fp=no ;;
1178
1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180 | --no-cr | --no-c | -n)
1181 no_create=yes ;;
1182
1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 no_recursion=yes ;;
1186
1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189 | --oldin | --oldi | --old | --ol | --o)
1190 ac_prev=oldincludedir ;;
1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194 oldincludedir=$ac_optarg ;;
1195
1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197 ac_prev=prefix ;;
1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199 prefix=$ac_optarg ;;
1200
1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202 | --program-pre | --program-pr | --program-p)
1203 ac_prev=program_prefix ;;
1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206 program_prefix=$ac_optarg ;;
1207
1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209 | --program-suf | --program-su | --program-s)
1210 ac_prev=program_suffix ;;
1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213 program_suffix=$ac_optarg ;;
1214
1215 -program-transform-name | --program-transform-name \
1216 | --program-transform-nam | --program-transform-na \
1217 | --program-transform-n | --program-transform- \
1218 | --program-transform | --program-transfor \
1219 | --program-transfo | --program-transf \
1220 | --program-trans | --program-tran \
1221 | --progr-tra | --program-tr | --program-t)
1222 ac_prev=program_transform_name ;;
1223 -program-transform-name=* | --program-transform-name=* \
1224 | --program-transform-nam=* | --program-transform-na=* \
1225 | --program-transform-n=* | --program-transform-=* \
1226 | --program-transform=* | --program-transfor=* \
1227 | --program-transfo=* | --program-transf=* \
1228 | --program-trans=* | --program-tran=* \
1229 | --progr-tra=* | --program-tr=* | --program-t=*)
1230 program_transform_name=$ac_optarg ;;
1231
1232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233 ac_prev=pdfdir ;;
1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235 pdfdir=$ac_optarg ;;
1236
1237 -psdir | --psdir | --psdi | --psd | --ps)
1238 ac_prev=psdir ;;
1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 psdir=$ac_optarg ;;
1241
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 silent=yes ;;
1245
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247 ac_prev=sbindir ;;
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249 | --sbi=* | --sb=*)
1250 sbindir=$ac_optarg ;;
1251
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1255 | --sha | --sh)
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260 | --sha=* | --sh=*)
1261 sharedstatedir=$ac_optarg ;;
1262
1263 -site | --site | --sit)
1264 ac_prev=site ;;
1265 -site=* | --site=* | --sit=*)
1266 site=$ac_optarg ;;
1267
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269 ac_prev=srcdir ;;
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1272
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1279
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1284
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 verbose=yes ;;
1287
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1290
1291 -with-* | --with-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error $? "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=\$ac_optarg ;;
1306
1307 -without-* | --without-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error $? "invalid package name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1315 *"
1316 "with_$ac_useropt"
1317 "*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval with_$ac_useropt=no ;;
1322
1323 --x)
1324 # Obsolete; use --with-x.
1325 with_x=yes ;;
1326
1327 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328 | --x-incl | --x-inc | --x-in | --x-i)
1329 ac_prev=x_includes ;;
1330 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332 x_includes=$ac_optarg ;;
1333
1334 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336 ac_prev=x_libraries ;;
1337 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339 x_libraries=$ac_optarg ;;
1340
1341 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information"
1343 ;;
1344
1345 *=*)
1346 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 case $ac_envvar in #(
1349 '' | [0-9]* | *[!_$as_cr_alnum]* )
1350 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1351 esac
1352 eval $ac_envvar=\$ac_optarg
1353 export $ac_envvar ;;
1354
1355 *)
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1361 ;;
1362
1363 esac
1364 done
1365
1366 if test -n "$ac_prev"; then
1367 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368 as_fn_error $? "missing argument to $ac_option"
1369 fi
1370
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1373 no) ;;
1374 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376 esac
1377 fi
1378
1379 # Check all directory arguments for consistency.
1380 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
1384 do
1385 eval ac_val=\$$ac_var
1386 # Remove trailing slashes.
1387 case $ac_val in
1388 */ )
1389 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\$ac_val;;
1391 esac
1392 # Be sure to have absolute directory names.
1393 case $ac_val in
1394 [\\/$]* | ?:[\\/]* ) continue;;
1395 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396 esac
1397 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1398 done
1399
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1403 build=$build_alias
1404 host=$host_alias
1405 target=$target_alias
1406
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x; then
1409 if test "x$build_alias" = x; then
1410 cross_compiling=maybe
1411 elif test "x$build_alias" != "x$host_alias"; then
1412 cross_compiling=yes
1413 fi
1414 fi
1415
1416 ac_tool_prefix=
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1418
1419 test "$silent" = yes && exec 6>/dev/null
1420
1421
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425 as_fn_error $? "working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 as_fn_error $? "pwd does not report name of working directory"
1428
1429
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$as_myself" : 'X\(//\)[^/]' \| \
1437 X"$as_myself" : 'X\(//\)$' \| \
1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\/\)[^/].*/{
1445 s//\1/
1446 q
1447 }
1448 /^X\(\/\/\)$/{
1449 s//\1/
1450 q
1451 }
1452 /^X\(\/\).*/{
1453 s//\1/
1454 q
1455 }
1456 s/.*/./; q'`
1457 srcdir=$ac_confdir
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 srcdir=..
1460 fi
1461 else
1462 ac_srcdir_defaulted=no
1463 fi
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1467 fi
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 ac_abs_confdir=`(
1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1471 pwd)`
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474 srcdir=.
1475 fi
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1479 case $srcdir in
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 esac
1482 for ac_var in $ac_precious_vars; do
1483 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_${ac_var}_value=\$${ac_var}
1485 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487 done
1488
1489 #
1490 # Report the --help message.
1491 #
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1495 cat <<_ACEOF
1496 \`configure' configures systemtap 3.2 to adapt to many kinds of systems.
1497
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1499
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1502
1503 Defaults for the options are specified in brackets.
1504
1505 Configuration:
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking ...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1515
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1520 [PREFIX]
1521
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1526
1527 For better control, use the options below.
1528
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1549 _ACEOF
1550
1551 cat <<\_ACEOF
1552
1553 Program names:
1554 --program-prefix=PREFIX prepend PREFIX to installed program names
1555 --program-suffix=SUFFIX append SUFFIX to installed program names
1556 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1557
1558 System types:
1559 --build=BUILD configure for building on BUILD [guessed]
1560 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1561 --target=TARGET configure for building compilers for TARGET [HOST]
1562 _ACEOF
1563 fi
1564
1565 if test -n "$ac_init_help"; then
1566 case $ac_init_help in
1567 short | recursive ) echo "Configuration of systemtap 3.2:";;
1568 esac
1569 cat <<\_ACEOF
1570
1571 Optional Features:
1572 --disable-option-checking ignore unrecognized --enable/--with options
1573 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1574 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1575 --enable-silent-rules less verbose build output (undo: "make V=1")
1576 --disable-silent-rules verbose build output (undo: "make V=0")
1577 --enable-maintainer-mode
1578 enable make rules and dependencies not useful (and
1579 sometimes confusing) to the casual installer
1580 --enable-dependency-tracking
1581 do not reject slow dependency extractors
1582 --disable-dependency-tracking
1583 speeds up one-time build
1584 --disable-largefile omit support for large files
1585 --disable-nls do not use Native Language Support
1586 --disable-rpath do not hardcode runtime library paths
1587 --enable-prologues make -P prologue-searching default
1588 --disable-sdt-probes disable process.mark probes in stap, staprun, stapio
1589 --disable-ssp disable gcc stack-protector
1590 --enable-pie enable position-independent-executable
1591 --enable-sqlite build with sqlite support
1592 --disable-translator build only runtime utilities
1593 --enable-crash[=DIRECTORY]
1594 enable crash extension (default is disabled).
1595 Optional DIRECTORY is the path to the crash header
1596 file (needed if installed in a non-standard
1597 location).
1598 --enable-docs enable building documentation (default on if latex
1599 etc. found).
1600 --enable-refdocs enable building reference documentation (default on
1601 if other documentation built).
1602 --enable-htmldocs enable building html documentation (default off).
1603 --enable-server enable building of stap-server (default on if nss
1604 etc. found).
1605 --enable-virt enable building of stapvirt support (default on if
1606 libvirt etc. found).
1607 --disable-http Disable building http web compilation service, even
1608 if we could
1609
1610 Optional Packages:
1611 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1612 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1613 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1614 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1615 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1616 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1617 --without-libintl-prefix don't search for libintl in includedir and libdir
1618 --without-nss Do not use NSS even if present
1619 --with-dracutstap=DIR Install dracut module files in DIR
1620 --with-dracutbindir=DIR Use the dracut binary located in DIR
1621 --without-avahi Do not use Avahi even if present
1622 --with-rpm query rpm database for missing debuginfos
1623 --with-python3 prefer /usr/bin/python3
1624 --with-elfutils=DIRECTORY
1625 find elfutils source code in DIRECTORY
1626 --with-dyninst=DIRECTORY
1627 find dyninst headers/libraries in DIRECTORY
1628 --without-python2-probes
1629 Disable building python version 2 probe support,
1630 even if it is available
1631 --without-python3-probes
1632 Disable building python version 3 probe support,
1633 even if it is available
1634 --without-selinux Do not use libselinux even if present
1635 --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so
1636 against (default is /usr/lib/jvm/java)
1637 --with-extra-version=STRING
1638 Add STRING to stap -V version
1639
1640 Some influential environment variables:
1641 CC C compiler command
1642 CFLAGS C compiler flags
1643 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1644 nonstandard directory <lib dir>
1645 LIBS libraries to pass to the linker, e.g. -l<library>
1646 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1647 you have headers in a nonstandard directory <include dir>
1648 CPP C preprocessor
1649 CXX C++ compiler command
1650 CXXFLAGS C++ compiler flags
1651 PYTHON the Python interpreter
1652 PKG_CONFIG path to pkg-config utility
1653 PKG_CONFIG_PATH
1654 directories to add to pkg-config's search path
1655 PKG_CONFIG_LIBDIR
1656 path overriding pkg-config's built-in search path
1657 sqlite3_CFLAGS
1658 C compiler flags for sqlite3, overriding pkg-config
1659 sqlite3_LIBS
1660 linker flags for sqlite3, overriding pkg-config
1661 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1662 nss_LIBS linker flags for nss, overriding pkg-config
1663 avahi_CFLAGS
1664 C compiler flags for avahi, overriding pkg-config
1665 avahi_LIBS linker flags for avahi, overriding pkg-config
1666 CXXCPP C++ preprocessor
1667 libvirt_CFLAGS
1668 C compiler flags for libvirt, overriding pkg-config
1669 libvirt_LIBS
1670 linker flags for libvirt, overriding pkg-config
1671 libxml2_CFLAGS
1672 C compiler flags for libxml2, overriding pkg-config
1673 libxml2_LIBS
1674 linker flags for libxml2, overriding pkg-config
1675 jsonc_CFLAGS
1676 C compiler flags for jsonc, overriding pkg-config
1677 jsonc_LIBS linker flags for jsonc, overriding pkg-config
1678 ncurses_CFLAGS
1679 C compiler flags for ncurses, overriding pkg-config
1680 ncurses_LIBS
1681 linker flags for ncurses, overriding pkg-config
1682 selinux_CFLAGS
1683 C compiler flags for selinux, overriding pkg-config
1684 selinux_LIBS
1685 linker flags for selinux, overriding pkg-config
1686 libmicrohttpd_CFLAGS
1687 C compiler flags for libmicrohttpd, overriding pkg-config
1688 libmicrohttpd_LIBS
1689 linker flags for libmicrohttpd, overriding pkg-config
1690 uuid_CFLAGS C compiler flags for uuid, overriding pkg-config
1691 uuid_LIBS linker flags for uuid, overriding pkg-config
1692
1693 Use these variables to override the choices made by `configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1695
1696 Report bugs to <systemtap@sourceware.org>.
1697 _ACEOF
1698 ac_status=$?
1699 fi
1700
1701 if test "$ac_init_help" = "recursive"; then
1702 # If there are subdirs, report their specific --help.
1703 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704 test -d "$ac_dir" ||
1705 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706 continue
1707 ac_builddir=.
1708
1709 case "$ac_dir" in
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *)
1712 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1713 # A ".." for each directory in $ac_dir_suffix.
1714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1715 case $ac_top_builddir_sub in
1716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718 esac ;;
1719 esac
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1724
1725 case $srcdir in
1726 .) # We are building in place.
1727 ac_srcdir=.
1728 ac_top_srcdir=$ac_top_builddir_sub
1729 ac_abs_top_srcdir=$ac_pwd ;;
1730 [\\/]* | ?:[\\/]* ) # Absolute name.
1731 ac_srcdir=$srcdir$ac_dir_suffix;
1732 ac_top_srcdir=$srcdir
1733 ac_abs_top_srcdir=$srcdir ;;
1734 *) # Relative name.
1735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736 ac_top_srcdir=$ac_top_build_prefix$srcdir
1737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 esac
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740
1741 cd "$ac_dir" || { ac_status=$?; continue; }
1742 # Check for guested configure.
1743 if test -f "$ac_srcdir/configure.gnu"; then
1744 echo &&
1745 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746 elif test -f "$ac_srcdir/configure"; then
1747 echo &&
1748 $SHELL "$ac_srcdir/configure" --help=recursive
1749 else
1750 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751 fi || ac_status=$?
1752 cd "$ac_pwd" || { ac_status=$?; break; }
1753 done
1754 fi
1755
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1758 cat <<\_ACEOF
1759 systemtap configure 3.2
1760 generated by GNU Autoconf 2.69
1761
1762 Copyright (C) 2012 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1765 _ACEOF
1766 exit
1767 fi
1768
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1772
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext
1780 if { { ac_try="$ac_compile"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_compile") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest.$ac_objext; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=1
1805 fi
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
1808
1809 } # ac_fn_c_try_compile
1810
1811 # ac_fn_c_try_cpp LINENO
1812 # ----------------------
1813 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_c_try_cpp ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 if { { ac_try="$ac_cpp conftest.$ac_ext"
1818 case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1825 ac_status=$?
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1830 fi
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } > conftest.i && {
1833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1834 test ! -s conftest.err
1835 }; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 ac_retval=1
1842 fi
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
1845
1846 } # ac_fn_c_try_cpp
1847
1848 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1849 # -------------------------------------------------------
1850 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1851 # the include files in INCLUDES and setting the cache variable VAR
1852 # accordingly.
1853 ac_fn_c_check_header_mongrel ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if eval \${$3+:} false; then :
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861 fi
1862 eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 else
1866 # Is the header compilable?
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1868 $as_echo_n "checking $2 usability... " >&6; }
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 $4
1872 #include <$2>
1873 _ACEOF
1874 if ac_fn_c_try_compile "$LINENO"; then :
1875 ac_header_compiler=yes
1876 else
1877 ac_header_compiler=no
1878 fi
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1881 $as_echo "$ac_header_compiler" >&6; }
1882
1883 # Is the header present?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1885 $as_echo_n "checking $2 presence... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 #include <$2>
1889 _ACEOF
1890 if ac_fn_c_try_cpp "$LINENO"; then :
1891 ac_header_preproc=yes
1892 else
1893 ac_header_preproc=no
1894 fi
1895 rm -f conftest.err conftest.i conftest.$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1897 $as_echo "$ac_header_preproc" >&6; }
1898
1899 # So? What about this header?
1900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1901 yes:no: )
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1903 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1905 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1906 ;;
1907 no:yes:* )
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1909 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1911 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1913 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1915 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1917 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918 ( $as_echo "## --------------------------------------- ##
1919 ## Report this to systemtap@sourceware.org ##
1920 ## --------------------------------------- ##"
1921 ) | sed "s/^/$as_me: WARNING: /" >&2
1922 ;;
1923 esac
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1928 else
1929 eval "$3=\$ac_header_compiler"
1930 fi
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 fi
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_c_check_header_mongrel
1938
1939 # ac_fn_c_try_run LINENO
1940 # ----------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1942 # that executables *can* be run.
1943 ac_fn_c_try_run ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_link"
1947 case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_link") 2>&5
1954 ac_status=$?
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1957 { { case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_try") 2>&5
1964 ac_status=$?
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; }; }; then :
1967 ac_retval=0
1968 else
1969 $as_echo "$as_me: program exited with status $ac_status" >&5
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973 ac_retval=$ac_status
1974 fi
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1978
1979 } # ac_fn_c_try_run
1980
1981 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1982 # -------------------------------------------------------
1983 # Tests whether HEADER exists and can be compiled using the include files in
1984 # INCLUDES, setting the cache variable VAR accordingly.
1985 ac_fn_c_check_header_compile ()
1986 {
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1992 else
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 $4
1996 #include <$2>
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 eval "$3=yes"
2000 else
2001 eval "$3=no"
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010 } # ac_fn_c_check_header_compile
2011
2012 # ac_fn_cxx_try_compile LINENO
2013 # ----------------------------
2014 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_cxx_try_compile ()
2016 {
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 rm -f conftest.$ac_objext
2019 if { { ac_try="$ac_compile"
2020 case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_compile") 2>conftest.err
2027 ac_status=$?
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2032 fi
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_cxx_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest.$ac_objext; then :
2038 ac_retval=0
2039 else
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 ac_retval=1
2044 fi
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2047
2048 } # ac_fn_cxx_try_compile
2049
2050 # ac_fn_c_try_link LINENO
2051 # -----------------------
2052 # Try to link conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_c_try_link ()
2054 {
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 rm -f conftest.$ac_objext conftest$ac_exeext
2057 if { { ac_try="$ac_link"
2058 case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_link") 2>conftest.err
2065 ac_status=$?
2066 if test -s conftest.err; then
2067 grep -v '^ *+' conftest.err >conftest.er1
2068 cat conftest.er1 >&5
2069 mv -f conftest.er1 conftest.err
2070 fi
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; } && {
2073 test -z "$ac_c_werror_flag" ||
2074 test ! -s conftest.err
2075 } && test -s conftest$ac_exeext && {
2076 test "$cross_compiling" = yes ||
2077 test -x conftest$ac_exeext
2078 }; then :
2079 ac_retval=0
2080 else
2081 $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2083
2084 ac_retval=1
2085 fi
2086 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2087 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2088 # interfere with the next link command; also delete a directory that is
2089 # left behind by Apple's compiler. We do this before executing the actions.
2090 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 as_fn_set_status $ac_retval
2093
2094 } # ac_fn_c_try_link
2095
2096 # ac_fn_c_check_func LINENO FUNC VAR
2097 # ----------------------------------
2098 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2099 ac_fn_c_check_func ()
2100 {
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if eval \${$3+:} false; then :
2105 $as_echo_n "(cached) " >&6
2106 else
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2109 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2111 #define $2 innocuous_$2
2112
2113 /* System header to define __stub macros and hopefully few prototypes,
2114 which can conflict with char $2 (); below.
2115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2116 <limits.h> exists even on freestanding compilers. */
2117
2118 #ifdef __STDC__
2119 # include <limits.h>
2120 #else
2121 # include <assert.h>
2122 #endif
2123
2124 #undef $2
2125
2126 /* Override any GCC internal prototype to avoid an error.
2127 Use char because int might match the return type of a GCC
2128 builtin and then its argument prototype would still apply. */
2129 #ifdef __cplusplus
2130 extern "C"
2131 #endif
2132 char $2 ();
2133 /* The GNU C library defines this for functions which it implements
2134 to always fail with ENOSYS. Some functions are actually named
2135 something starting with __ and the normal name is an alias. */
2136 #if defined __stub_$2 || defined __stub___$2
2137 choke me
2138 #endif
2139
2140 int
2141 main ()
2142 {
2143 return $2 ();
2144 ;
2145 return 0;
2146 }
2147 _ACEOF
2148 if ac_fn_c_try_link "$LINENO"; then :
2149 eval "$3=yes"
2150 else
2151 eval "$3=no"
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext \
2154 conftest$ac_exeext conftest.$ac_ext
2155 fi
2156 eval ac_res=\$$3
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160
2161 } # ac_fn_c_check_func
2162
2163 # ac_fn_cxx_try_cpp LINENO
2164 # ------------------------
2165 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2166 ac_fn_cxx_try_cpp ()
2167 {
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 if { { ac_try="$ac_cpp conftest.$ac_ext"
2170 case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173 esac
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2177 ac_status=$?
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2182 fi
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } > conftest.i && {
2185 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2186 test ! -s conftest.err
2187 }; then :
2188 ac_retval=0
2189 else
2190 $as_echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 ac_retval=1
2194 fi
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196 as_fn_set_status $ac_retval
2197
2198 } # ac_fn_cxx_try_cpp
2199
2200 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2201 # ---------------------------------------------------------
2202 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2203 # the include files in INCLUDES and setting the cache variable VAR
2204 # accordingly.
2205 ac_fn_cxx_check_header_mongrel ()
2206 {
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 if eval \${$3+:} false; then :
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210 $as_echo_n "checking for $2... " >&6; }
2211 if eval \${$3+:} false; then :
2212 $as_echo_n "(cached) " >&6
2213 fi
2214 eval ac_res=\$$3
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216 $as_echo "$ac_res" >&6; }
2217 else
2218 # Is the header compilable?
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2220 $as_echo_n "checking $2 usability... " >&6; }
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2223 $4
2224 #include <$2>
2225 _ACEOF
2226 if ac_fn_cxx_try_compile "$LINENO"; then :
2227 ac_header_compiler=yes
2228 else
2229 ac_header_compiler=no
2230 fi
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2233 $as_echo "$ac_header_compiler" >&6; }
2234
2235 # Is the header present?
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2237 $as_echo_n "checking $2 presence... " >&6; }
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2240 #include <$2>
2241 _ACEOF
2242 if ac_fn_cxx_try_cpp "$LINENO"; then :
2243 ac_header_preproc=yes
2244 else
2245 ac_header_preproc=no
2246 fi
2247 rm -f conftest.err conftest.i conftest.$ac_ext
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2249 $as_echo "$ac_header_preproc" >&6; }
2250
2251 # So? What about this header?
2252 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2253 yes:no: )
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2255 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2257 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2258 ;;
2259 no:yes:* )
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2261 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2263 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2265 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2267 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2269 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2270 ( $as_echo "## --------------------------------------- ##
2271 ## Report this to systemtap@sourceware.org ##
2272 ## --------------------------------------- ##"
2273 ) | sed "s/^/$as_me: WARNING: /" >&2
2274 ;;
2275 esac
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277 $as_echo_n "checking for $2... " >&6; }
2278 if eval \${$3+:} false; then :
2279 $as_echo_n "(cached) " >&6
2280 else
2281 eval "$3=\$ac_header_compiler"
2282 fi
2283 eval ac_res=\$$3
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2286 fi
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288
2289 } # ac_fn_cxx_check_header_mongrel
2290
2291 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2292 # ---------------------------------------------
2293 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2294 # accordingly.
2295 ac_fn_c_check_decl ()
2296 {
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 as_decl_name=`echo $2|sed 's/ *(.*//'`
2299 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2301 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2302 if eval \${$3+:} false; then :
2303 $as_echo_n "(cached) " >&6
2304 else
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2307 $4
2308 int
2309 main ()
2310 {
2311 #ifndef $as_decl_name
2312 #ifdef __cplusplus
2313 (void) $as_decl_use;
2314 #else
2315 (void) $as_decl_name;
2316 #endif
2317 #endif
2318
2319 ;
2320 return 0;
2321 }
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324 eval "$3=yes"
2325 else
2326 eval "$3=no"
2327 fi
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 fi
2330 eval ac_res=\$$3
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2332 $as_echo "$ac_res" >&6; }
2333 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2334
2335 } # ac_fn_c_check_decl
2336 cat >config.log <<_ACEOF
2337 This file contains any messages produced by compilers while
2338 running configure, to aid debugging if configure makes a mistake.
2339
2340 It was created by systemtap $as_me 3.2, which was
2341 generated by GNU Autoconf 2.69. Invocation command line was
2342
2343 $ $0 $@
2344
2345 _ACEOF
2346 exec 5>>config.log
2347 {
2348 cat <<_ASUNAME
2349 ## --------- ##
2350 ## Platform. ##
2351 ## --------- ##
2352
2353 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2354 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2355 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2356 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2357 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2358
2359 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2360 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2361
2362 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2363 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2364 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2365 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2366 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2367 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2368 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2369
2370 _ASUNAME
2371
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 $as_echo "PATH: $as_dir"
2378 done
2379 IFS=$as_save_IFS
2380
2381 } >&5
2382
2383 cat >&5 <<_ACEOF
2384
2385
2386 ## ----------- ##
2387 ## Core tests. ##
2388 ## ----------- ##
2389
2390 _ACEOF
2391
2392
2393 # Keep a trace of the command line.
2394 # Strip out --no-create and --no-recursion so they do not pile up.
2395 # Strip out --silent because we don't want to record it for future runs.
2396 # Also quote any args containing shell meta-characters.
2397 # Make two passes to allow for proper duplicate-argument suppression.
2398 ac_configure_args=
2399 ac_configure_args0=
2400 ac_configure_args1=
2401 ac_must_keep_next=false
2402 for ac_pass in 1 2
2403 do
2404 for ac_arg
2405 do
2406 case $ac_arg in
2407 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2409 | -silent | --silent | --silen | --sile | --sil)
2410 continue ;;
2411 *\'*)
2412 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2413 esac
2414 case $ac_pass in
2415 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2416 2)
2417 as_fn_append ac_configure_args1 " '$ac_arg'"
2418 if test $ac_must_keep_next = true; then
2419 ac_must_keep_next=false # Got value, back to normal.
2420 else
2421 case $ac_arg in
2422 *=* | --config-cache | -C | -disable-* | --disable-* \
2423 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2424 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2425 | -with-* | --with-* | -without-* | --without-* | --x)
2426 case "$ac_configure_args0 " in
2427 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2428 esac
2429 ;;
2430 -* ) ac_must_keep_next=true ;;
2431 esac
2432 fi
2433 as_fn_append ac_configure_args " '$ac_arg'"
2434 ;;
2435 esac
2436 done
2437 done
2438 { ac_configure_args0=; unset ac_configure_args0;}
2439 { ac_configure_args1=; unset ac_configure_args1;}
2440
2441 # When interrupted or exit'd, cleanup temporary files, and complete
2442 # config.log. We remove comments because anyway the quotes in there
2443 # would cause problems or look ugly.
2444 # WARNING: Use '\'' to represent an apostrophe within the trap.
2445 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2446 trap 'exit_status=$?
2447 # Save into config.log some information that might help in debugging.
2448 {
2449 echo
2450
2451 $as_echo "## ---------------- ##
2452 ## Cache variables. ##
2453 ## ---------------- ##"
2454 echo
2455 # The following way of writing the cache mishandles newlines in values,
2456 (
2457 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2458 eval ac_val=\$$ac_var
2459 case $ac_val in #(
2460 *${as_nl}*)
2461 case $ac_var in #(
2462 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2463 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2464 esac
2465 case $ac_var in #(
2466 _ | IFS | as_nl) ;; #(
2467 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2468 *) { eval $ac_var=; unset $ac_var;} ;;
2469 esac ;;
2470 esac
2471 done
2472 (set) 2>&1 |
2473 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2474 *${as_nl}ac_space=\ *)
2475 sed -n \
2476 "s/'\''/'\''\\\\'\'''\''/g;
2477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2478 ;; #(
2479 *)
2480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2481 ;;
2482 esac |
2483 sort
2484 )
2485 echo
2486
2487 $as_echo "## ----------------- ##
2488 ## Output variables. ##
2489 ## ----------------- ##"
2490 echo
2491 for ac_var in $ac_subst_vars
2492 do
2493 eval ac_val=\$$ac_var
2494 case $ac_val in
2495 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496 esac
2497 $as_echo "$ac_var='\''$ac_val'\''"
2498 done | sort
2499 echo
2500
2501 if test -n "$ac_subst_files"; then
2502 $as_echo "## ------------------- ##
2503 ## File substitutions. ##
2504 ## ------------------- ##"
2505 echo
2506 for ac_var in $ac_subst_files
2507 do
2508 eval ac_val=\$$ac_var
2509 case $ac_val in
2510 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2511 esac
2512 $as_echo "$ac_var='\''$ac_val'\''"
2513 done | sort
2514 echo
2515 fi
2516
2517 if test -s confdefs.h; then
2518 $as_echo "## ----------- ##
2519 ## confdefs.h. ##
2520 ## ----------- ##"
2521 echo
2522 cat confdefs.h
2523 echo
2524 fi
2525 test "$ac_signal" != 0 &&
2526 $as_echo "$as_me: caught signal $ac_signal"
2527 $as_echo "$as_me: exit $exit_status"
2528 } >&5
2529 rm -f core *.core core.conftest.* &&
2530 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2531 exit $exit_status
2532 ' 0
2533 for ac_signal in 1 2 13 15; do
2534 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2535 done
2536 ac_signal=0
2537
2538 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2539 rm -f -r conftest* confdefs.h
2540
2541 $as_echo "/* confdefs.h */" > confdefs.h
2542
2543 # Predefined preprocessor variables.
2544
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_NAME "$PACKAGE_NAME"
2547 _ACEOF
2548
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2551 _ACEOF
2552
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2555 _ACEOF
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_STRING "$PACKAGE_STRING"
2559 _ACEOF
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2563 _ACEOF
2564
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_URL "$PACKAGE_URL"
2567 _ACEOF
2568
2569
2570 # Let the site file select an alternate cache file if it wants to.
2571 # Prefer an explicitly selected file to automatically selected ones.
2572 ac_site_file1=NONE
2573 ac_site_file2=NONE
2574 if test -n "$CONFIG_SITE"; then
2575 # We do not want a PATH search for config.site.
2576 case $CONFIG_SITE in #((
2577 -*) ac_site_file1=./$CONFIG_SITE;;
2578 */*) ac_site_file1=$CONFIG_SITE;;
2579 *) ac_site_file1=./$CONFIG_SITE;;
2580 esac
2581 elif test "x$prefix" != xNONE; then
2582 ac_site_file1=$prefix/share/config.site
2583 ac_site_file2=$prefix/etc/config.site
2584 else
2585 ac_site_file1=$ac_default_prefix/share/config.site
2586 ac_site_file2=$ac_default_prefix/etc/config.site
2587 fi
2588 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2589 do
2590 test "x$ac_site_file" = xNONE && continue
2591 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2593 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2594 sed 's/^/| /' "$ac_site_file" >&5
2595 . "$ac_site_file" \
2596 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 as_fn_error $? "failed to load site script $ac_site_file
2599 See \`config.log' for more details" "$LINENO" 5; }
2600 fi
2601 done
2602
2603 if test -r "$cache_file"; then
2604 # Some versions of bash will fail to source /dev/null (special files
2605 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2606 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2608 $as_echo "$as_me: loading cache $cache_file" >&6;}
2609 case $cache_file in
2610 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2611 *) . "./$cache_file";;
2612 esac
2613 fi
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2616 $as_echo "$as_me: creating cache $cache_file" >&6;}
2617 >$cache_file
2618 fi
2619
2620 gt_needs="$gt_needs "
2621 # Check that the precious variables saved in the cache have kept the same
2622 # value.
2623 ac_cache_corrupted=false
2624 for ac_var in $ac_precious_vars; do
2625 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2626 eval ac_new_set=\$ac_env_${ac_var}_set
2627 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2628 eval ac_new_val=\$ac_env_${ac_var}_value
2629 case $ac_old_set,$ac_new_set in
2630 set,)
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2632 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2633 ac_cache_corrupted=: ;;
2634 ,set)
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2636 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2637 ac_cache_corrupted=: ;;
2638 ,);;
2639 *)
2640 if test "x$ac_old_val" != "x$ac_new_val"; then
2641 # differences in whitespace do not lead to failure.
2642 ac_old_val_w=`echo x $ac_old_val`
2643 ac_new_val_w=`echo x $ac_new_val`
2644 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2646 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2647 ac_cache_corrupted=:
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2650 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2651 eval $ac_var=\$ac_old_val
2652 fi
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2654 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2656 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2657 fi;;
2658 esac
2659 # Pass precious variables to config.status.
2660 if test "$ac_new_set" = set; then
2661 case $ac_new_val in
2662 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2663 *) ac_arg=$ac_var=$ac_new_val ;;
2664 esac
2665 case " $ac_configure_args " in
2666 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2667 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2668 esac
2669 fi
2670 done
2671 if $ac_cache_corrupted; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2675 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2676 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2677 fi
2678 ## -------------------- ##
2679 ## Main body of script. ##
2680 ## -------------------- ##
2681
2682 ac_ext=c
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687
2688
2689
2690 ac_aux_dir=
2691 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2692 if test -f "$ac_dir/install-sh"; then
2693 ac_aux_dir=$ac_dir
2694 ac_install_sh="$ac_aux_dir/install-sh -c"
2695 break
2696 elif test -f "$ac_dir/install.sh"; then
2697 ac_aux_dir=$ac_dir
2698 ac_install_sh="$ac_aux_dir/install.sh -c"
2699 break
2700 elif test -f "$ac_dir/shtool"; then
2701 ac_aux_dir=$ac_dir
2702 ac_install_sh="$ac_aux_dir/shtool install -c"
2703 break
2704 fi
2705 done
2706 if test -z "$ac_aux_dir"; then
2707 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2708 fi
2709
2710 # These three variables are undocumented and unsupported,
2711 # and are intended to be withdrawn in a future Autoconf release.
2712 # They can cause serious problems if a builder's source tree is in a directory
2713 # whose full name contains unusual characters.
2714 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2715 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2716 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2717
2718
2719 # Make sure we can run config.sub.
2720 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2721 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2722
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2724 $as_echo_n "checking build system type... " >&6; }
2725 if ${ac_cv_build+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 ac_build_alias=$build_alias
2729 test "x$ac_build_alias" = x &&
2730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2731 test "x$ac_build_alias" = x &&
2732 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2733 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2735
2736 fi
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2738 $as_echo "$ac_cv_build" >&6; }
2739 case $ac_cv_build in
2740 *-*-*) ;;
2741 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2742 esac
2743 build=$ac_cv_build
2744 ac_save_IFS=$IFS; IFS='-'
2745 set x $ac_cv_build
2746 shift
2747 build_cpu=$1
2748 build_vendor=$2
2749 shift; shift
2750 # Remember, the first character of IFS is used to create $*,
2751 # except with old shells:
2752 build_os=$*
2753 IFS=$ac_save_IFS
2754 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2755
2756
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2758 $as_echo_n "checking host system type... " >&6; }
2759 if ${ac_cv_host+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 if test "x$host_alias" = x; then
2763 ac_cv_host=$ac_cv_build
2764 else
2765 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2766 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2767 fi
2768
2769 fi
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2771 $as_echo "$ac_cv_host" >&6; }
2772 case $ac_cv_host in
2773 *-*-*) ;;
2774 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2775 esac
2776 host=$ac_cv_host
2777 ac_save_IFS=$IFS; IFS='-'
2778 set x $ac_cv_host
2779 shift
2780 host_cpu=$1
2781 host_vendor=$2
2782 shift; shift
2783 # Remember, the first character of IFS is used to create $*,
2784 # except with old shells:
2785 host_os=$*
2786 IFS=$ac_save_IFS
2787 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2788
2789
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2791 $as_echo_n "checking target system type... " >&6; }
2792 if ${ac_cv_target+:} false; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test "x$target_alias" = x; then
2796 ac_cv_target=$ac_cv_host
2797 else
2798 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2799 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2800 fi
2801
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2804 $as_echo "$ac_cv_target" >&6; }
2805 case $ac_cv_target in
2806 *-*-*) ;;
2807 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2808 esac
2809 target=$ac_cv_target
2810 ac_save_IFS=$IFS; IFS='-'
2811 set x $ac_cv_target
2812 shift
2813 target_cpu=$1
2814 target_vendor=$2
2815 shift; shift
2816 # Remember, the first character of IFS is used to create $*,
2817 # except with old shells:
2818 target_os=$*
2819 IFS=$ac_save_IFS
2820 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2821
2822
2823 # The aliases save the names the user supplied, while $host etc.
2824 # will get canonicalized.
2825 test -n "$target_alias" &&
2826 test "$program_prefix$program_suffix$program_transform_name" = \
2827 NONENONEs,x,x, &&
2828 program_prefix=${target_alias}-
2829
2830
2831 am__api_version='1.15'
2832
2833 # Find a good install program. We prefer a C program (faster),
2834 # so one script is as good as another. But avoid the broken or
2835 # incompatible versions:
2836 # SysV /etc/install, /usr/sbin/install
2837 # SunOS /usr/etc/install
2838 # IRIX /sbin/install
2839 # AIX /bin/install
2840 # AmigaOS /C/install, which installs bootblocks on floppy discs
2841 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2842 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2843 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2844 # OS/2's system install, which has a completely different semantic
2845 # ./install, which can be erroneously created by make from ./install.sh.
2846 # Reject install programs that cannot install multiple files.
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2848 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2849 if test -z "$INSTALL"; then
2850 if ${ac_cv_path_install+:} false; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 # Account for people who put trailing slashes in PATH elements.
2859 case $as_dir/ in #((
2860 ./ | .// | /[cC]/* | \
2861 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2862 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2863 /usr/ucb/* ) ;;
2864 *)
2865 # OSF1 and SCO ODT 3.0 have their own names for install.
2866 # Don't use installbsd from OSF since it installs stuff as root
2867 # by default.
2868 for ac_prog in ginstall scoinst install; do
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2871 if test $ac_prog = install &&
2872 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2873 # AIX install. It has an incompatible calling convention.
2874 :
2875 elif test $ac_prog = install &&
2876 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2877 # program-specific install script used by HP pwplus--don't use.
2878 :
2879 else
2880 rm -rf conftest.one conftest.two conftest.dir
2881 echo one > conftest.one
2882 echo two > conftest.two
2883 mkdir conftest.dir
2884 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2885 test -s conftest.one && test -s conftest.two &&
2886 test -s conftest.dir/conftest.one &&
2887 test -s conftest.dir/conftest.two
2888 then
2889 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2890 break 3
2891 fi
2892 fi
2893 fi
2894 done
2895 done
2896 ;;
2897 esac
2898
2899 done
2900 IFS=$as_save_IFS
2901
2902 rm -rf conftest.one conftest.two conftest.dir
2903
2904 fi
2905 if test "${ac_cv_path_install+set}" = set; then
2906 INSTALL=$ac_cv_path_install
2907 else
2908 # As a last resort, use the slow shell script. Don't cache a
2909 # value for INSTALL within a source directory, because that will
2910 # break other packages using the cache if that directory is
2911 # removed, or if the value is a relative name.
2912 INSTALL=$ac_install_sh
2913 fi
2914 fi
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2916 $as_echo "$INSTALL" >&6; }
2917
2918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2919 # It thinks the first close brace ends the variable substitution.
2920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2921
2922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2923
2924 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2925
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2927 $as_echo_n "checking whether build environment is sane... " >&6; }
2928 # Reject unsafe characters in $srcdir or the absolute working directory
2929 # name. Accept space and tab only in the latter.
2930 am_lf='
2931 '
2932 case `pwd` in
2933 *[\\\"\#\$\&\'\`$am_lf]*)
2934 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2935 esac
2936 case $srcdir in
2937 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2938 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2939 esac
2940
2941 # Do 'set' in a subshell so we don't clobber the current shell's
2942 # arguments. Must try -L first in case configure is actually a
2943 # symlink; some systems play weird games with the mod time of symlinks
2944 # (eg FreeBSD returns the mod time of the symlink's containing
2945 # directory).
2946 if (
2947 am_has_slept=no
2948 for am_try in 1 2; do
2949 echo "timestamp, slept: $am_has_slept" > conftest.file
2950 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2951 if test "$*" = "X"; then
2952 # -L didn't work.
2953 set X `ls -t "$srcdir/configure" conftest.file`
2954 fi
2955 if test "$*" != "X $srcdir/configure conftest.file" \
2956 && test "$*" != "X conftest.file $srcdir/configure"; then
2957
2958 # If neither matched, then we have a broken ls. This can happen
2959 # if, for instance, CONFIG_SHELL is bash and it inherits a
2960 # broken ls alias from the environment. This has actually
2961 # happened. Such a system could not be considered "sane".
2962 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2963 alias in your environment" "$LINENO" 5
2964 fi
2965 if test "$2" = conftest.file || test $am_try -eq 2; then
2966 break
2967 fi
2968 # Just in case.
2969 sleep 1
2970 am_has_slept=yes
2971 done
2972 test "$2" = conftest.file
2973 )
2974 then
2975 # Ok.
2976 :
2977 else
2978 as_fn_error $? "newly created file is older than distributed files!
2979 Check your system clock" "$LINENO" 5
2980 fi
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2982 $as_echo "yes" >&6; }
2983 # If we didn't sleep, we still need to ensure time stamps of config.status and
2984 # generated files are strictly newer.
2985 am_sleep_pid=
2986 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2987 ( sleep 1 ) &
2988 am_sleep_pid=$!
2989 fi
2990
2991 rm -f conftest.file
2992
2993 test "$program_prefix" != NONE &&
2994 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2995 # Use a double $ so make ignores it.
2996 test "$program_suffix" != NONE &&
2997 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2998 # Double any \ or $.
2999 # By default was `s,x,x', remove it if useless.
3000 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3001 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3002
3003 # Expand $ac_aux_dir to an absolute path.
3004 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3005
3006 if test x"${MISSING+set}" != xset; then
3007 case $am_aux_dir in
3008 *\ * | *\ *)
3009 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3010 *)
3011 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3012 esac
3013 fi
3014 # Use eval to expand $SHELL
3015 if eval "$MISSING --is-lightweight"; then
3016 am_missing_run="$MISSING "
3017 else
3018 am_missing_run=
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3020 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3021 fi
3022
3023 if test x"${install_sh+set}" != xset; then
3024 case $am_aux_dir in
3025 *\ * | *\ *)
3026 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3027 *)
3028 install_sh="\${SHELL} $am_aux_dir/install-sh"
3029 esac
3030 fi
3031
3032 # Installed binaries are usually stripped using 'strip' when the user
3033 # run "make install-strip". However 'strip' might not be the right
3034 # tool to use in cross-compilation environments, therefore Automake
3035 # will honor the 'STRIP' environment variable to overrule this program.
3036 if test "$cross_compiling" != no; then
3037 if test -n "$ac_tool_prefix"; then
3038 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3039 set dummy ${ac_tool_prefix}strip; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_STRIP+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 if test -n "$STRIP"; then
3046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 break 2
3058 fi
3059 done
3060 done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 STRIP=$ac_cv_prog_STRIP
3066 if test -n "$STRIP"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3068 $as_echo "$STRIP" >&6; }
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074
3075 fi
3076 if test -z "$ac_cv_prog_STRIP"; then
3077 ac_ct_STRIP=$STRIP
3078 # Extract the first word of "strip", so it can be a program name with args.
3079 set dummy strip; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 if test -n "$ac_ct_STRIP"; then
3086 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095 ac_cv_prog_ac_ct_STRIP="strip"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 break 2
3098 fi
3099 done
3100 done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3106 if test -n "$ac_ct_STRIP"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3108 $as_echo "$ac_ct_STRIP" >&6; }
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114 if test "x$ac_ct_STRIP" = x; then
3115 STRIP=":"
3116 else
3117 case $cross_compiling:$ac_tool_warned in
3118 yes:)
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned=yes ;;
3122 esac
3123 STRIP=$ac_ct_STRIP
3124 fi
3125 else
3126 STRIP="$ac_cv_prog_STRIP"
3127 fi
3128
3129 fi
3130 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3131
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3133 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3134 if test -z "$MKDIR_P"; then
3135 if ${ac_cv_path_mkdir+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3140 do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_prog in mkdir gmkdir; do
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3146 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3147 'mkdir (GNU coreutils) '* | \
3148 'mkdir (coreutils) '* | \
3149 'mkdir (fileutils) '4.1*)
3150 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3151 break 3;;
3152 esac
3153 done
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 fi
3159
3160 test -d ./--version && rmdir ./--version
3161 if test "${ac_cv_path_mkdir+set}" = set; then
3162 MKDIR_P="$ac_cv_path_mkdir -p"
3163 else
3164 # As a last resort, use the slow shell script. Don't cache a
3165 # value for MKDIR_P within a source directory, because that will
3166 # break other packages using the cache if that directory is
3167 # removed, or if the value is a relative name.
3168 MKDIR_P="$ac_install_sh -d"
3169 fi
3170 fi
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3172 $as_echo "$MKDIR_P" >&6; }
3173
3174 for ac_prog in gawk mawk nawk awk
3175 do
3176 # Extract the first word of "$ac_prog", so it can be a program name with args.
3177 set dummy $ac_prog; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_AWK+:} false; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 if test -n "$AWK"; then
3184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_AWK="$ac_prog"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 AWK=$ac_cv_prog_AWK
3204 if test -n "$AWK"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3206 $as_echo "$AWK" >&6; }
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213 test -n "$AWK" && break
3214 done
3215
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3217 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3218 set x ${MAKE-make}
3219 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3220 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 cat >conftest.make <<\_ACEOF
3224 SHELL = /bin/sh
3225 all:
3226 @echo '@@@%%%=$(MAKE)=@@@%%%'
3227 _ACEOF
3228 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3229 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3230 *@@@%%%=?*=@@@%%%*)
3231 eval ac_cv_prog_make_${ac_make}_set=yes;;
3232 *)
3233 eval ac_cv_prog_make_${ac_make}_set=no;;
3234 esac
3235 rm -f conftest.make
3236 fi
3237 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3240 SET_MAKE=
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 SET_MAKE="MAKE=${MAKE-make}"
3245 fi
3246
3247 rm -rf .tst 2>/dev/null
3248 mkdir .tst 2>/dev/null
3249 if test -d .tst; then
3250 am__leading_dot=.
3251 else
3252 am__leading_dot=_
3253 fi
3254 rmdir .tst 2>/dev/null
3255
3256 # Check whether --enable-silent-rules was given.
3257 if test "${enable_silent_rules+set}" = set; then :
3258 enableval=$enable_silent_rules;
3259 fi
3260
3261 case $enable_silent_rules in # (((
3262 yes) AM_DEFAULT_VERBOSITY=0;;
3263 no) AM_DEFAULT_VERBOSITY=1;;
3264 *) AM_DEFAULT_VERBOSITY=1;;
3265 esac
3266 am_make=${MAKE-make}
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3268 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3269 if ${am_cv_make_support_nested_variables+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 if $as_echo 'TRUE=$(BAR$(V))
3273 BAR0=false
3274 BAR1=true
3275 V=1
3276 am__doit:
3277 @$(TRUE)
3278 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3279 am_cv_make_support_nested_variables=yes
3280 else
3281 am_cv_make_support_nested_variables=no
3282 fi
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3285 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3286 if test $am_cv_make_support_nested_variables = yes; then
3287 AM_V='$(V)'
3288 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3289 else
3290 AM_V=$AM_DEFAULT_VERBOSITY
3291 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3292 fi
3293 AM_BACKSLASH='\'
3294
3295 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3296 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3297 # is not polluted with repeated "-I."
3298 am__isrc=' -I$(srcdir)'
3299 # test to see if srcdir already configured
3300 if test -f $srcdir/config.status; then
3301 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3302 fi
3303 fi
3304
3305 # test whether we have cygpath
3306 if test -z "$CYGPATH_W"; then
3307 if (cygpath --version) >/dev/null 2>/dev/null; then
3308 CYGPATH_W='cygpath -w'
3309 else
3310 CYGPATH_W=echo
3311 fi
3312 fi
3313
3314
3315 # Define the identity of the package.
3316 PACKAGE='systemtap'
3317 VERSION='3.2'
3318
3319
3320 cat >>confdefs.h <<_ACEOF
3321 #define PACKAGE "$PACKAGE"
3322 _ACEOF
3323
3324
3325 cat >>confdefs.h <<_ACEOF
3326 #define VERSION "$VERSION"
3327 _ACEOF
3328
3329 # Some tools Automake needs.
3330
3331 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3332
3333
3334 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3335
3336
3337 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3338
3339
3340 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3341
3342
3343 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3344
3345 # For better backward compatibility. To be removed once Automake 1.9.x
3346 # dies out for good. For more background, see:
3347 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3348 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3349 mkdir_p='$(MKDIR_P)'
3350
3351 # We need awk for the "check" target (and possibly the TAP driver). The
3352 # system "awk" is bad on some platforms.
3353 # Always define AMTAR for backward compatibility. Yes, it's still used
3354 # in the wild :-( We should find a proper way to deprecate it ...
3355 AMTAR='$${TAR-tar}'
3356
3357
3358 # We'll loop over all known methods to create a tar archive until one works.
3359 _am_tools='gnutar pax cpio none'
3360
3361 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3362
3363
3364
3365
3366
3367
3368 # POSIX will say in a future version that running "rm -f" with no argument
3369 # is OK; and we want to be able to make that assumption in our Makefile
3370 # recipes. So use an aggressive probe to check that the usage we want is
3371 # actually supported "in the wild" to an acceptable degree.
3372 # See automake bug#10828.
3373 # To make any issue more visible, cause the running configure to be aborted
3374 # by default if the 'rm' program in use doesn't match our expectations; the
3375 # user can still override this though.
3376 if rm -f && rm -fr && rm -rf; then : OK; else
3377 cat >&2 <<'END'
3378 Oops!
3379
3380 Your 'rm' program seems unable to run without file operands specified
3381 on the command line, even when the '-f' option is present. This is contrary
3382 to the behaviour of most rm programs out there, and not conforming with
3383 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3384
3385 Please tell bug-automake@gnu.org about your system, including the value
3386 of your $PATH and any error possibly output before this message. This
3387 can help us improve future automake versions.
3388
3389 END
3390 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3391 echo 'Configuration will proceed anyway, since you have set the' >&2
3392 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3393 echo >&2
3394 else
3395 cat >&2 <<'END'
3396 Aborting the configuration process, to ensure you take notice of the issue.
3397
3398 You can download and install GNU coreutils to get an 'rm' implementation
3399 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3400
3401 If you want to complete the configuration process using your problematic
3402 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3403 to "yes", and re-run configure.
3404
3405 END
3406 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3407 fi
3408 fi
3409
3410
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3412 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3413 # Check whether --enable-maintainer-mode was given.
3414 if test "${enable_maintainer_mode+set}" = set; then :
3415 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3416 else
3417 USE_MAINTAINER_MODE=no
3418 fi
3419
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3421 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3422 if test $USE_MAINTAINER_MODE = yes; then
3423 MAINTAINER_MODE_TRUE=
3424 MAINTAINER_MODE_FALSE='#'
3425 else
3426 MAINTAINER_MODE_TRUE='#'
3427 MAINTAINER_MODE_FALSE=
3428 fi
3429
3430 MAINT=$MAINTAINER_MODE_TRUE
3431
3432
3433
3434 # Check whether --enable-silent-rules was given.
3435 if test "${enable_silent_rules+set}" = set; then :
3436 enableval=$enable_silent_rules;
3437 fi
3438
3439 case $enable_silent_rules in # (((
3440 yes) AM_DEFAULT_VERBOSITY=0;;
3441 no) AM_DEFAULT_VERBOSITY=1;;
3442 *) AM_DEFAULT_VERBOSITY=0;;
3443 esac
3444 am_make=${MAKE-make}
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3446 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3447 if ${am_cv_make_support_nested_variables+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 if $as_echo 'TRUE=$(BAR$(V))
3451 BAR0=false
3452 BAR1=true
3453 V=1
3454 am__doit:
3455 @$(TRUE)
3456 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3457 am_cv_make_support_nested_variables=yes
3458 else
3459 am_cv_make_support_nested_variables=no
3460 fi
3461 fi
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3463 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3464 if test $am_cv_make_support_nested_variables = yes; then
3465 AM_V='$(V)'
3466 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3467 else
3468 AM_V=$AM_DEFAULT_VERBOSITY
3469 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3470 fi
3471 AM_BACKSLASH='\'
3472
3473
3474 DEPDIR="${am__leading_dot}deps"
3475
3476 ac_config_commands="$ac_config_commands depfiles"
3477
3478
3479 am_make=${MAKE-make}
3480 cat > confinc << 'END'
3481 am__doit:
3482 @echo this is the am__doit target
3483 .PHONY: am__doit
3484 END
3485 # If we don't find an include directive, just comment out the code.
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3487 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3488 am__include="#"
3489 am__quote=
3490 _am_result=none
3491 # First try GNU make style include.
3492 echo "include confinc" > confmf
3493 # Ignore all kinds of additional output from 'make'.
3494 case `$am_make -s -f confmf 2> /dev/null` in #(
3495 *the\ am__doit\ target*)
3496 am__include=include
3497 am__quote=
3498 _am_result=GNU
3499 ;;
3500 esac
3501 # Now try BSD make style include.
3502 if test "$am__include" = "#"; then
3503 echo '.include "confinc"' > confmf
3504 case `$am_make -s -f confmf 2> /dev/null` in #(
3505 *the\ am__doit\ target*)
3506 am__include=.include
3507 am__quote="\""
3508 _am_result=BSD
3509 ;;
3510 esac
3511 fi
3512
3513
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3515 $as_echo "$_am_result" >&6; }
3516 rm -f confinc confmf
3517
3518 # Check whether --enable-dependency-tracking was given.
3519 if test "${enable_dependency_tracking+set}" = set; then :
3520 enableval=$enable_dependency_tracking;
3521 fi
3522
3523 if test "x$enable_dependency_tracking" != xno; then
3524 am_depcomp="$ac_aux_dir/depcomp"
3525 AMDEPBACKSLASH='\'
3526 am__nodep='_no'
3527 fi
3528 if test "x$enable_dependency_tracking" != xno; then
3529 AMDEP_TRUE=
3530 AMDEP_FALSE='#'
3531 else
3532 AMDEP_TRUE='#'
3533 AMDEP_FALSE=
3534 fi
3535
3536
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3544 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if ${ac_cv_prog_CC+:} false; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564 done
3565 done
3566 IFS=$as_save_IFS
3567
3568 fi
3569 fi
3570 CC=$ac_cv_prog_CC
3571 if test -n "$CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573 $as_echo "$CC" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3577 fi
3578
3579
3580 fi
3581 if test -z "$ac_cv_prog_CC"; then
3582 ac_ct_CC=$CC
3583 # Extract the first word of "gcc", so it can be a program name with args.
3584 set dummy gcc; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 if test -n "$ac_ct_CC"; then
3591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_ac_ct_CC="gcc"
3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 break 2
3603 fi
3604 done
3605 done
3606 IFS=$as_save_IFS
3607
3608 fi
3609 fi
3610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3611 if test -n "$ac_ct_CC"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3613 $as_echo "$ac_ct_CC" >&6; }
3614 else
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 fi
3618
3619 if test "x$ac_ct_CC" = x; then
3620 CC=""
3621 else
3622 case $cross_compiling:$ac_tool_warned in
3623 yes:)
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626 ac_tool_warned=yes ;;
3627 esac
3628 CC=$ac_ct_CC
3629 fi
3630 else
3631 CC="$ac_cv_prog_CC"
3632 fi
3633
3634 if test -z "$CC"; then
3635 if test -n "$ac_tool_prefix"; then
3636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3637 set dummy ${ac_tool_prefix}cc; ac_word=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if ${ac_cv_prog_CC+:} false; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 else
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH
3648 do
3649 IFS=$as_save_IFS
3650 test -z "$as_dir" && as_dir=.
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3653 ac_cv_prog_CC="${ac_tool_prefix}cc"
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 break 2
3656 fi
3657 done
3658 done
3659 IFS=$as_save_IFS
3660
3661 fi
3662 fi
3663 CC=$ac_cv_prog_CC
3664 if test -n "$CC"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3666 $as_echo "$CC" >&6; }
3667 else
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3670 fi
3671
3672
3673 fi
3674 fi
3675 if test -z "$CC"; then
3676 # Extract the first word of "cc", so it can be a program name with args.
3677 set dummy cc; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if ${ac_cv_prog_CC+:} false; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 if test -n "$CC"; then
3684 ac_cv_prog_CC="$CC" # Let the user override the test.
3685 else
3686 ac_prog_rejected=no
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3695 ac_prog_rejected=yes
3696 continue
3697 fi
3698 ac_cv_prog_CC="cc"
3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 break 2
3701 fi
3702 done
3703 done
3704 IFS=$as_save_IFS
3705
3706 if test $ac_prog_rejected = yes; then
3707 # We found a bogon in the path, so make sure we never use it.
3708 set dummy $ac_cv_prog_CC
3709 shift
3710 if test $# != 0; then
3711 # We chose a different compiler from the bogus one.
3712 # However, it has the same basename, so the bogon will be chosen
3713 # first if we set CC to just the basename; use the full file name.
3714 shift
3715 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3716 fi
3717 fi
3718 fi
3719 fi
3720 CC=$ac_cv_prog_CC
3721 if test -n "$CC"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3723 $as_echo "$CC" >&6; }
3724 else
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 fi
3728
3729
3730 fi
3731 if test -z "$CC"; then
3732 if test -n "$ac_tool_prefix"; then
3733 for ac_prog in cl.exe
3734 do
3735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_CC+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC="$CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3755 fi
3756 done
3757 done
3758 IFS=$as_save_IFS
3759
3760 fi
3761 fi
3762 CC=$ac_cv_prog_CC
3763 if test -n "$CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765 $as_echo "$CC" >&6; }
3766 else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3769 fi
3770
3771
3772 test -n "$CC" && break
3773 done
3774 fi
3775 if test -z "$CC"; then
3776 ac_ct_CC=$CC
3777 for ac_prog in cl.exe
3778 do
3779 # Extract the first word of "$ac_prog", so it can be a program name with args.
3780 set dummy $ac_prog; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 if test -n "$ac_ct_CC"; then
3787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796 ac_cv_prog_ac_ct_CC="$ac_prog"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 break 2
3799 fi
3800 done
3801 done
3802 IFS=$as_save_IFS
3803
3804 fi
3805 fi
3806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3807 if test -n "$ac_ct_CC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3809 $as_echo "$ac_ct_CC" >&6; }
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 fi
3814
3815
3816 test -n "$ac_ct_CC" && break
3817 done
3818
3819 if test "x$ac_ct_CC" = x; then
3820 CC=""
3821 else
3822 case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828 CC=$ac_ct_CC
3829 fi
3830 fi
3831
3832 fi
3833
3834
3835 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error $? "no acceptable C compiler found in \$PATH
3838 See \`config.log' for more details" "$LINENO" 5; }
3839
3840 # Provide some information about the compiler.
3841 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3842 set X $ac_compile
3843 ac_compiler=$2
3844 for ac_option in --version -v -V -qversion; do
3845 { { ac_try="$ac_compiler $ac_option >&5"
3846 case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3853 ac_status=$?
3854 if test -s conftest.err; then
3855 sed '10a\
3856 ... rest of stderr output deleted ...
3857 10q' conftest.err >conftest.er1
3858 cat conftest.er1 >&5
3859 fi
3860 rm -f conftest.er1 conftest.err
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }
3863 done
3864
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867
3868 int
3869 main ()
3870 {
3871
3872 ;
3873 return 0;
3874 }
3875 _ACEOF
3876 ac_clean_files_save=$ac_clean_files
3877 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3878 # Try to create an executable without -o first, disregard a.out.
3879 # It will help us diagnose broken compilers, and finding out an intuition
3880 # of exeext.
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3882 $as_echo_n "checking whether the C compiler works... " >&6; }
3883 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3884
3885 # The possible output files:
3886 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3887
3888 ac_rmfiles=
3889 for ac_file in $ac_files
3890 do
3891 case $ac_file in
3892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3893 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3894 esac
3895 done
3896 rm -f $ac_rmfiles
3897
3898 if { { ac_try="$ac_link_default"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_link_default") 2>&5
3906 ac_status=$?
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }; then :
3909 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3910 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3911 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3912 # so that the user can short-circuit this test for compilers unknown to
3913 # Autoconf.
3914 for ac_file in $ac_files ''
3915 do
3916 test -f "$ac_file" || continue
3917 case $ac_file in
3918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3919 ;;
3920 [ab].out )
3921 # We found the default executable, but exeext='' is most
3922 # certainly right.
3923 break;;
3924 *.* )
3925 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3926 then :; else
3927 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3928 fi
3929 # We set ac_cv_exeext here because the later test for it is not
3930 # safe: cross compilers may not add the suffix if given an `-o'
3931 # argument, so we may need to know it at that point already.
3932 # Even if this section looks crufty: it has the advantage of
3933 # actually working.
3934 break;;
3935 * )
3936 break;;
3937 esac
3938 done
3939 test "$ac_cv_exeext" = no && ac_cv_exeext=
3940
3941 else
3942 ac_file=''
3943 fi
3944 if test -z "$ac_file"; then :
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 $as_echo "no" >&6; }
3947 $as_echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3952 as_fn_error 77 "C compiler cannot create executables
3953 See \`config.log' for more details" "$LINENO" 5; }
3954 else
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3956 $as_echo "yes" >&6; }
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3959 $as_echo_n "checking for C compiler default output file name... " >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3961 $as_echo "$ac_file" >&6; }
3962 ac_exeext=$ac_cv_exeext
3963
3964 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3965 ac_clean_files=$ac_clean_files_save
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3967 $as_echo_n "checking for suffix of executables... " >&6; }
3968 if { { ac_try="$ac_link"
3969 case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3974 $as_echo "$ac_try_echo"; } >&5
3975 (eval "$ac_link") 2>&5
3976 ac_status=$?
3977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978 test $ac_status = 0; }; then :
3979 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3980 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3981 # work properly (i.e., refer to `conftest.exe'), while it won't with
3982 # `rm'.
3983 for ac_file in conftest.exe conftest conftest.*; do
3984 test -f "$ac_file" || continue
3985 case $ac_file in
3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3987 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3988 break;;
3989 * ) break;;
3990 esac
3991 done
3992 else
3993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3995 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3996 See \`config.log' for more details" "$LINENO" 5; }
3997 fi
3998 rm -f conftest conftest$ac_cv_exeext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4000 $as_echo "$ac_cv_exeext" >&6; }
4001
4002 rm -f conftest.$ac_ext
4003 EXEEXT=$ac_cv_exeext
4004 ac_exeext=$EXEEXT
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4007 #include <stdio.h>
4008 int
4009 main ()
4010 {
4011 FILE *f = fopen ("conftest.out", "w");
4012 return ferror (f) || fclose (f) != 0;
4013
4014 ;
4015 return 0;
4016 }
4017 _ACEOF
4018 ac_clean_files="$ac_clean_files conftest.out"
4019 # Check that the compiler produces executables we can run. If not, either
4020 # the compiler is broken, or we cross compile.
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4022 $as_echo_n "checking whether we are cross compiling... " >&6; }
4023 if test "$cross_compiling" != yes; then
4024 { { ac_try="$ac_link"
4025 case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4028 esac
4029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030 $as_echo "$ac_try_echo"; } >&5
4031 (eval "$ac_link") 2>&5
4032 ac_status=$?
4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034 test $ac_status = 0; }
4035 if { ac_try='./conftest$ac_cv_exeext'
4036 { { case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039 esac
4040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4041 $as_echo "$ac_try_echo"; } >&5
4042 (eval "$ac_try") 2>&5
4043 ac_status=$?
4044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4045 test $ac_status = 0; }; }; then
4046 cross_compiling=no
4047 else
4048 if test "$cross_compiling" = maybe; then
4049 cross_compiling=yes
4050 else
4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error $? "cannot run C compiled programs.
4054 If you meant to cross compile, use \`--host'.
4055 See \`config.log' for more details" "$LINENO" 5; }
4056 fi
4057 fi
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4060 $as_echo "$cross_compiling" >&6; }
4061
4062 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4063 ac_clean_files=$ac_clean_files_save
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4065 $as_echo_n "checking for suffix of object files... " >&6; }
4066 if ${ac_cv_objext+:} false; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071
4072 int
4073 main ()
4074 {
4075
4076 ;
4077 return 0;
4078 }
4079 _ACEOF
4080 rm -f conftest.o conftest.obj
4081 if { { ac_try="$ac_compile"
4082 case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085 esac
4086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4087 $as_echo "$ac_try_echo"; } >&5
4088 (eval "$ac_compile") 2>&5
4089 ac_status=$?
4090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4091 test $ac_status = 0; }; then :
4092 for ac_file in conftest.o conftest.obj conftest.*; do
4093 test -f "$ac_file" || continue;
4094 case $ac_file in
4095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4096 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4097 break;;
4098 esac
4099 done
4100 else
4101 $as_echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4106 as_fn_error $? "cannot compute suffix of object files: cannot compile
4107 See \`config.log' for more details" "$LINENO" 5; }
4108 fi
4109 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4112 $as_echo "$ac_cv_objext" >&6; }
4113 OBJEXT=$ac_cv_objext
4114 ac_objext=$OBJEXT
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4116 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4117 if ${ac_cv_c_compiler_gnu+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122
4123 int
4124 main ()
4125 {
4126 #ifndef __GNUC__
4127 choke me
4128 #endif
4129
4130 ;
4131 return 0;
4132 }
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135 ac_compiler_gnu=yes
4136 else
4137 ac_compiler_gnu=no
4138 fi
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4141
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4144 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4145 if test $ac_compiler_gnu = yes; then
4146 GCC=yes
4147 else
4148 GCC=
4149 fi
4150 ac_test_CFLAGS=${CFLAGS+set}
4151 ac_save_CFLAGS=$CFLAGS
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4153 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4154 if ${ac_cv_prog_cc_g+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 ac_save_c_werror_flag=$ac_c_werror_flag
4158 ac_c_werror_flag=yes
4159 ac_cv_prog_cc_g=no
4160 CFLAGS="-g"
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163
4164 int
4165 main ()
4166 {
4167
4168 ;
4169 return 0;
4170 }
4171 _ACEOF
4172 if ac_fn_c_try_compile "$LINENO"; then :
4173 ac_cv_prog_cc_g=yes
4174 else
4175 CFLAGS=""
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178
4179 int
4180 main ()
4181 {
4182
4183 ;
4184 return 0;
4185 }
4186 _ACEOF
4187 if ac_fn_c_try_compile "$LINENO"; then :
4188
4189 else
4190 ac_c_werror_flag=$ac_save_c_werror_flag
4191 CFLAGS="-g"
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194
4195 int
4196 main ()
4197 {
4198
4199 ;
4200 return 0;
4201 }
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_cv_prog_cc_g=yes
4205 fi
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 fi
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 ac_c_werror_flag=$ac_save_c_werror_flag
4212 fi
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4214 $as_echo "$ac_cv_prog_cc_g" >&6; }
4215 if test "$ac_test_CFLAGS" = set; then
4216 CFLAGS=$ac_save_CFLAGS
4217 elif test $ac_cv_prog_cc_g = yes; then
4218 if test "$GCC" = yes; then
4219 CFLAGS="-g -O2"
4220 else
4221 CFLAGS="-g"
4222 fi
4223 else
4224 if test "$GCC" = yes; then
4225 CFLAGS="-O2"
4226 else
4227 CFLAGS=
4228 fi
4229 fi
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4231 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4232 if ${ac_cv_prog_cc_c89+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 ac_cv_prog_cc_c89=no
4236 ac_save_CC=$CC
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 #include <stdarg.h>
4240 #include <stdio.h>
4241 struct stat;
4242 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4243 struct buf { int x; };
4244 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4245 static char *e (p, i)
4246 char **p;
4247 int i;
4248 {
4249 return p[i];
4250 }
4251 static char *f (char * (*g) (char **, int), char **p, ...)
4252 {
4253 char *s;
4254 va_list v;
4255 va_start (v,p);
4256 s = g (p, va_arg (v,int));
4257 va_end (v);
4258 return s;
4259 }
4260
4261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4262 function prototypes and stuff, but not '\xHH' hex character constants.
4263 These don't provoke an error unfortunately, instead are silently treated
4264 as 'x'. The following induces an error, until -std is added to get
4265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4266 array size at least. It's necessary to write '\x00'==0 to get something
4267 that's true only with -std. */
4268 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4269
4270 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4271 inside strings and character constants. */
4272 #define FOO(x) 'x'
4273 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4274
4275 int test (int i, double x);
4276 struct s1 {int (*f) (int a);};
4277 struct s2 {int (*f) (double a);};
4278 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4279 int argc;
4280 char **argv;
4281 int
4282 main ()
4283 {
4284 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4291 do
4292 CC="$ac_save_CC $ac_arg"
4293 if ac_fn_c_try_compile "$LINENO"; then :
4294 ac_cv_prog_cc_c89=$ac_arg
4295 fi
4296 rm -f core conftest.err conftest.$ac_objext
4297 test "x$ac_cv_prog_cc_c89" != "xno" && break
4298 done
4299 rm -f conftest.$ac_ext
4300 CC=$ac_save_CC
4301
4302 fi
4303 # AC_CACHE_VAL
4304 case "x$ac_cv_prog_cc_c89" in
4305 x)
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4307 $as_echo "none needed" >&6; } ;;
4308 xno)
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4310 $as_echo "unsupported" >&6; } ;;
4311 *)
4312 CC="$CC $ac_cv_prog_cc_c89"
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4314 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4315 esac
4316 if test "x$ac_cv_prog_cc_c89" != xno; then :
4317
4318 fi
4319
4320 ac_ext=c
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325
4326 ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4332 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4333 if ${am_cv_prog_cc_c_o+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338
4339 int
4340 main ()
4341 {
4342
4343 ;
4344 return 0;
4345 }
4346 _ACEOF
4347 # Make sure it works both with $CC and with simple cc.
4348 # Following AC_PROG_CC_C_O, we do the test twice because some
4349 # compilers refuse to overwrite an existing .o file with -o,
4350 # though they will create one.
4351 am_cv_prog_cc_c_o=yes
4352 for am_i in 1 2; do
4353 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4354 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } \
4358 && test -f conftest2.$ac_objext; then
4359 : OK
4360 else
4361 am_cv_prog_cc_c_o=no
4362 break
4363 fi
4364 done
4365 rm -f core conftest*
4366 unset am_i
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4369 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4370 if test "$am_cv_prog_cc_c_o" != yes; then
4371 # Losing compiler, so override with the script.
4372 # FIXME: It is wrong to rewrite CC.
4373 # But if we don't then we get into trouble of one sort or another.
4374 # A longer-term fix would be to have automake use am__CC in this case,
4375 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4376 CC="$am_aux_dir/compile $CC"
4377 fi
4378 ac_ext=c
4379 ac_cpp='$CPP $CPPFLAGS'
4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383
4384
4385 depcc="$CC" am_compiler_list=
4386
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4388 $as_echo_n "checking dependency style of $depcc... " >&6; }
4389 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4393 # We make a subdir and do the tests there. Otherwise we can end up
4394 # making bogus files that we don't know about and never remove. For
4395 # instance it was reported that on HP-UX the gcc test will end up
4396 # making a dummy file named 'D' -- because '-MD' means "put the output
4397 # in D".
4398 rm -rf conftest.dir
4399 mkdir conftest.dir
4400 # Copy depcomp to subdir because otherwise we won't find it if we're
4401 # using a relative directory.
4402 cp "$am_depcomp" conftest.dir
4403 cd conftest.dir
4404 # We will build objects and dependencies in a subdirectory because
4405 # it helps to detect inapplicable dependency modes. For instance
4406 # both Tru64's cc and ICC support -MD to output dependencies as a
4407 # side effect of compilation, but ICC will put the dependencies in
4408 # the current directory while Tru64 will put them in the object
4409 # directory.
4410 mkdir sub
4411
4412 am_cv_CC_dependencies_compiler_type=none
4413 if test "$am_compiler_list" = ""; then
4414 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4415 fi
4416 am__universal=false
4417 case " $depcc " in #(
4418 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4419 esac
4420
4421 for depmode in $am_compiler_list; do
4422 # Setup a source with many dependencies, because some compilers
4423 # like to wrap large dependency lists on column 80 (with \), and
4424 # we should not choose a depcomp mode which is confused by this.
4425 #
4426 # We need to recreate these files for each test, as the compiler may
4427 # overwrite some of them when testing with obscure command lines.
4428 # This happens at least with the AIX C compiler.
4429 : > sub/conftest.c
4430 for i in 1 2 3 4 5 6; do
4431 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4432 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4433 # Solaris 10 /bin/sh.
4434 echo '/* dummy */' > sub/conftst$i.h
4435 done
4436 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4437
4438 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4439 # mode. It turns out that the SunPro C++ compiler does not properly
4440 # handle '-M -o', and we need to detect this. Also, some Intel
4441 # versions had trouble with output in subdirs.
4442 am__obj=sub/conftest.${OBJEXT-o}
4443 am__minus_obj="-o $am__obj"
4444 case $depmode in
4445 gcc)
4446 # This depmode causes a compiler race in universal mode.
4447 test "$am__universal" = false || continue
4448 ;;
4449 nosideeffect)
4450 # After this tag, mechanisms are not by side-effect, so they'll
4451 # only be used when explicitly requested.
4452 if test "x$enable_dependency_tracking" = xyes; then
4453 continue
4454 else
4455 break
4456 fi
4457 ;;
4458 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4459 # This compiler won't grok '-c -o', but also, the minuso test has
4460 # not run yet. These depmodes are late enough in the game, and
4461 # so weak that their functioning should not be impacted.
4462 am__obj=conftest.${OBJEXT-o}
4463 am__minus_obj=
4464 ;;
4465 none) break ;;
4466 esac
4467 if depmode=$depmode \
4468 source=sub/conftest.c object=$am__obj \
4469 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4470 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4471 >/dev/null 2>conftest.err &&
4472 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4474 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4476 # icc doesn't choke on unknown options, it will just issue warnings
4477 # or remarks (even with -Werror). So we grep stderr for any message
4478 # that says an option was ignored or not supported.
4479 # When given -MP, icc 7.0 and 7.1 complain thusly:
4480 # icc: Command line warning: ignoring option '-M'; no argument required
4481 # The diagnosis changed in icc 8.0:
4482 # icc: Command line remark: option '-MP' not supported
4483 if (grep 'ignoring option' conftest.err ||
4484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4485 am_cv_CC_dependencies_compiler_type=$depmode
4486 break
4487 fi
4488 fi
4489 done
4490
4491 cd ..
4492 rm -rf conftest.dir
4493 else
4494 am_cv_CC_dependencies_compiler_type=none
4495 fi
4496
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4499 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4500 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4501
4502 if
4503 test "x$enable_dependency_tracking" != xno \
4504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4505 am__fastdepCC_TRUE=
4506 am__fastdepCC_FALSE='#'
4507 else
4508 am__fastdepCC_TRUE='#'
4509 am__fastdepCC_FALSE=
4510 fi
4511
4512
4513
4514 ac_ext=c
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4520 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4521 # On Suns, sometimes $CPP names a directory.
4522 if test -n "$CPP" && test -d "$CPP"; then
4523 CPP=
4524 fi
4525 if test -z "$CPP"; then
4526 if ${ac_cv_prog_CPP+:} false; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 # Double quotes because CPP needs to be expanded
4530 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4531 do
4532 ac_preproc_ok=false
4533 for ac_c_preproc_warn_flag in '' yes
4534 do
4535 # Use a header file that comes with gcc, so configuring glibc
4536 # with a fresh cross-compiler works.
4537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4538 # <limits.h> exists even on freestanding compilers.
4539 # On the NeXT, cc -E runs the code through the compiler's parser,
4540 # not just through cpp. "Syntax error" is here to catch this case.
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 #ifdef __STDC__
4544 # include <limits.h>
4545 #else
4546 # include <assert.h>
4547 #endif
4548 Syntax error
4549 _ACEOF
4550 if ac_fn_c_try_cpp "$LINENO"; then :
4551
4552 else
4553 # Broken: fails on valid input.
4554 continue
4555 fi
4556 rm -f conftest.err conftest.i conftest.$ac_ext
4557
4558 # OK, works on sane cases. Now check whether nonexistent headers
4559 # can be detected and how.
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4562 #include <ac_nonexistent.h>
4563 _ACEOF
4564 if ac_fn_c_try_cpp "$LINENO"; then :
4565 # Broken: success on invalid input.
4566 continue
4567 else
4568 # Passes both tests.
4569 ac_preproc_ok=:
4570 break
4571 fi
4572 rm -f conftest.err conftest.i conftest.$ac_ext
4573
4574 done
4575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4576 rm -f conftest.i conftest.err conftest.$ac_ext
4577 if $ac_preproc_ok; then :
4578 break
4579 fi
4580
4581 done
4582 ac_cv_prog_CPP=$CPP
4583
4584 fi
4585 CPP=$ac_cv_prog_CPP
4586 else
4587 ac_cv_prog_CPP=$CPP
4588 fi
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4590 $as_echo "$CPP" >&6; }
4591 ac_preproc_ok=false
4592 for ac_c_preproc_warn_flag in '' yes
4593 do
4594 # Use a header file that comes with gcc, so configuring glibc
4595 # with a fresh cross-compiler works.
4596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597 # <limits.h> exists even on freestanding compilers.
4598 # On the NeXT, cc -E runs the code through the compiler's parser,
4599 # not just through cpp. "Syntax error" is here to catch this case.
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #ifdef __STDC__
4603 # include <limits.h>
4604 #else
4605 # include <assert.h>
4606 #endif
4607 Syntax error
4608 _ACEOF
4609 if ac_fn_c_try_cpp "$LINENO"; then :
4610
4611 else
4612 # Broken: fails on valid input.
4613 continue
4614 fi
4615 rm -f conftest.err conftest.i conftest.$ac_ext
4616
4617 # OK, works on sane cases. Now check whether nonexistent headers
4618 # can be detected and how.
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 #include <ac_nonexistent.h>
4622 _ACEOF
4623 if ac_fn_c_try_cpp "$LINENO"; then :
4624 # Broken: success on invalid input.
4625 continue
4626 else
4627 # Passes both tests.
4628 ac_preproc_ok=:
4629 break
4630 fi
4631 rm -f conftest.err conftest.i conftest.$ac_ext
4632
4633 done
4634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4635 rm -f conftest.i conftest.err conftest.$ac_ext
4636 if $ac_preproc_ok; then :
4637
4638 else
4639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4641 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4642 See \`config.log' for more details" "$LINENO" 5; }
4643 fi
4644
4645 ac_ext=c
4646 ac_cpp='$CPP $CPPFLAGS'
4647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4653 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4654 if ${ac_cv_path_GREP+:} false; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 if test -z "$GREP"; then
4658 ac_path_GREP_found=false
4659 # Loop through the user's path and test for each of PROGNAME-LIST
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4662 do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_prog in grep ggrep; do
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4668 as_fn_executable_p "$ac_path_GREP" || continue
4669 # Check for GNU ac_path_GREP and select it if it is found.
4670 # Check for GNU $ac_path_GREP
4671 case `"$ac_path_GREP" --version 2>&1` in
4672 *GNU*)
4673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4674 *)
4675 ac_count=0
4676 $as_echo_n 0123456789 >"conftest.in"
4677 while :
4678 do
4679 cat "conftest.in" "conftest.in" >"conftest.tmp"
4680 mv "conftest.tmp" "conftest.in"
4681 cp "conftest.in" "conftest.nl"
4682 $as_echo 'GREP' >> "conftest.nl"
4683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685 as_fn_arith $ac_count + 1 && ac_count=$as_val
4686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4687 # Best one so far, save it but keep looking for a better one
4688 ac_cv_path_GREP="$ac_path_GREP"
4689 ac_path_GREP_max=$ac_count
4690 fi
4691 # 10*(2^10) chars as input seems more than enough
4692 test $ac_count -gt 10 && break
4693 done
4694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695 esac
4696
4697 $ac_path_GREP_found && break 3
4698 done
4699 done
4700 done
4701 IFS=$as_save_IFS
4702 if test -z "$ac_cv_path_GREP"; then
4703 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4704 fi
4705 else
4706 ac_cv_path_GREP=$GREP
4707 fi
4708
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4711 $as_echo "$ac_cv_path_GREP" >&6; }
4712 GREP="$ac_cv_path_GREP"
4713
4714
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4716 $as_echo_n "checking for egrep... " >&6; }
4717 if ${ac_cv_path_EGREP+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4721 then ac_cv_path_EGREP="$GREP -E"
4722 else
4723 if test -z "$EGREP"; then
4724 ac_path_EGREP_found=false
4725 # Loop through the user's path and test for each of PROGNAME-LIST
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_prog in egrep; do
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4734 as_fn_executable_p "$ac_path_EGREP" || continue
4735 # Check for GNU ac_path_EGREP and select it if it is found.
4736 # Check for GNU $ac_path_EGREP
4737 case `"$ac_path_EGREP" --version 2>&1` in
4738 *GNU*)
4739 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4740 *)
4741 ac_count=0
4742 $as_echo_n 0123456789 >"conftest.in"
4743 while :
4744 do
4745 cat "conftest.in" "conftest.in" >"conftest.tmp"
4746 mv "conftest.tmp" "conftest.in"
4747 cp "conftest.in" "conftest.nl"
4748 $as_echo 'EGREP' >> "conftest.nl"
4749 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4751 as_fn_arith $ac_count + 1 && ac_count=$as_val
4752 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4753 # Best one so far, save it but keep looking for a better one
4754 ac_cv_path_EGREP="$ac_path_EGREP"
4755 ac_path_EGREP_max=$ac_count
4756 fi
4757 # 10*(2^10) chars as input seems more than enough
4758 test $ac_count -gt 10 && break
4759 done
4760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4761 esac
4762
4763 $ac_path_EGREP_found && break 3
4764 done
4765 done
4766 done
4767 IFS=$as_save_IFS
4768 if test -z "$ac_cv_path_EGREP"; then
4769 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4770 fi
4771 else
4772 ac_cv_path_EGREP=$EGREP
4773 fi
4774
4775 fi
4776 fi
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4778 $as_echo "$ac_cv_path_EGREP" >&6; }
4779 EGREP="$ac_cv_path_EGREP"
4780
4781
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4783 $as_echo_n "checking for ANSI C header files... " >&6; }
4784 if ${ac_cv_header_stdc+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789 #include <stdlib.h>
4790 #include <stdarg.h>
4791 #include <string.h>
4792 #include <float.h>
4793
4794 int
4795 main ()
4796 {
4797
4798 ;
4799 return 0;
4800 }
4801 _ACEOF
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 ac_cv_header_stdc=yes
4804 else
4805 ac_cv_header_stdc=no
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808
4809 if test $ac_cv_header_stdc = yes; then
4810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813 #include <string.h>
4814
4815 _ACEOF
4816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4817 $EGREP "memchr" >/dev/null 2>&1; then :
4818
4819 else
4820 ac_cv_header_stdc=no
4821 fi
4822 rm -f conftest*
4823
4824 fi
4825
4826 if test $ac_cv_header_stdc = yes; then
4827 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830 #include <stdlib.h>
4831
4832 _ACEOF
4833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4834 $EGREP "free" >/dev/null 2>&1; then :
4835
4836 else
4837 ac_cv_header_stdc=no
4838 fi
4839 rm -f conftest*
4840
4841 fi
4842
4843 if test $ac_cv_header_stdc = yes; then
4844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4845 if test "$cross_compiling" = yes; then :
4846 :
4847 else
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 #include <ctype.h>
4851 #include <stdlib.h>
4852 #if ((' ' & 0x0FF) == 0x020)
4853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4855 #else
4856 # define ISLOWER(c) \
4857 (('a' <= (c) && (c) <= 'i') \
4858 || ('j' <= (c) && (c) <= 'r') \
4859 || ('s' <= (c) && (c) <= 'z'))
4860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4861 #endif
4862
4863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4864 int
4865 main ()
4866 {
4867 int i;
4868 for (i = 0; i < 256; i++)
4869 if (XOR (islower (i), ISLOWER (i))
4870 || toupper (i) != TOUPPER (i))
4871 return 2;
4872 return 0;
4873 }
4874 _ACEOF
4875 if ac_fn_c_try_run "$LINENO"; then :
4876
4877 else
4878 ac_cv_header_stdc=no
4879 fi
4880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4881 conftest.$ac_objext conftest.beam conftest.$ac_ext
4882 fi
4883
4884 fi
4885 fi
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4887 $as_echo "$ac_cv_header_stdc" >&6; }
4888 if test $ac_cv_header_stdc = yes; then
4889
4890 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4891
4892 fi
4893
4894 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4895 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4896 inttypes.h stdint.h unistd.h
4897 do :
4898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4899 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4900 "
4901 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4902 cat >>confdefs.h <<_ACEOF
4903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4904 _ACEOF
4905
4906 fi
4907
4908 done
4909
4910
4911
4912 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4913 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4914 MINIX=yes
4915 else
4916 MINIX=
4917 fi
4918
4919
4920 if test "$MINIX" = yes; then
4921
4922 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4923
4924
4925 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4926
4927
4928 $as_echo "#define _MINIX 1" >>confdefs.h
4929
4930 fi
4931
4932
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4934 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4935 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940
4941 # define __EXTENSIONS__ 1
4942 $ac_includes_default
4943 int
4944 main ()
4945 {
4946
4947 ;
4948 return 0;
4949 }
4950 _ACEOF
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952 ac_cv_safe_to_define___extensions__=yes
4953 else
4954 ac_cv_safe_to_define___extensions__=no
4955 fi
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 fi
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4959 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4960 test $ac_cv_safe_to_define___extensions__ = yes &&
4961 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4962
4963 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4964
4965 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4966
4967 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4968
4969 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4970
4971
4972
4973
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4975 $as_echo_n "checking whether ln -s works... " >&6; }
4976 LN_S=$as_ln_s
4977 if test "$LN_S" = "ln -s"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4979 $as_echo "yes" >&6; }
4980 else
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4982 $as_echo "no, using $LN_S" >&6; }
4983 fi
4984
4985 ac_ext=c
4986 ac_cpp='$CPP $CPPFLAGS'
4987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990 if test -n "$ac_tool_prefix"; then
4991 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4992 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if ${ac_cv_prog_CC+:} false; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$CC"; then
4999 ac_cv_prog_CC="$CC" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5011 fi
5012 done
5013 done
5014 IFS=$as_save_IFS
5015
5016 fi
5017 fi
5018 CC=$ac_cv_prog_CC
5019 if test -n "$CC"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5021 $as_echo "$CC" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026
5027
5028 fi
5029 if test -z "$ac_cv_prog_CC"; then
5030 ac_ct_CC=$CC
5031 # Extract the first word of "gcc", so it can be a program name with args.
5032 set dummy gcc; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$ac_ct_CC"; then
5039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_prog_ac_ct_CC="gcc"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5051 fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056 fi
5057 fi
5058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5059 if test -n "$ac_ct_CC"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5061 $as_echo "$ac_ct_CC" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067 if test "x$ac_ct_CC" = x; then
5068 CC=""
5069 else
5070 case $cross_compiling:$ac_tool_warned in
5071 yes:)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074 ac_tool_warned=yes ;;
5075 esac
5076 CC=$ac_ct_CC
5077 fi
5078 else
5079 CC="$ac_cv_prog_CC"
5080 fi
5081
5082 if test -z "$CC"; then
5083 if test -n "$ac_tool_prefix"; then
5084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5085 set dummy ${ac_tool_prefix}cc; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_prog_CC+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 if test -n "$CC"; then
5092 ac_cv_prog_CC="$CC" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5096 do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_CC="${ac_tool_prefix}cc"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5104 fi
5105 done
5106 done
5107 IFS=$as_save_IFS
5108
5109 fi
5110 fi
5111 CC=$ac_cv_prog_CC
5112 if test -n "$CC"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5114 $as_echo "$CC" >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5118 fi
5119
5120
5121 fi
5122 fi
5123 if test -z "$CC"; then
5124 # Extract the first word of "cc", so it can be a program name with args.
5125 set dummy cc; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_CC+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$CC"; then
5132 ac_cv_prog_CC="$CC" # Let the user override the test.
5133 else
5134 ac_prog_rejected=no
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5143 ac_prog_rejected=yes
5144 continue
5145 fi
5146 ac_cv_prog_CC="cc"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150 done
5151 done
5152 IFS=$as_save_IFS
5153
5154 if test $ac_prog_rejected = yes; then
5155 # We found a bogon in the path, so make sure we never use it.
5156 set dummy $ac_cv_prog_CC
5157 shift
5158 if test $# != 0; then
5159 # We chose a different compiler from the bogus one.
5160 # However, it has the same basename, so the bogon will be chosen
5161 # first if we set CC to just the basename; use the full file name.
5162 shift
5163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5164 fi
5165 fi
5166 fi
5167 fi
5168 CC=$ac_cv_prog_CC
5169 if test -n "$CC"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5171 $as_echo "$CC" >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176
5177
5178 fi
5179 if test -z "$CC"; then
5180 if test -n "$ac_tool_prefix"; then
5181 for ac_prog in cl.exe
5182 do
5183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_CC+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$CC"; then
5191 ac_cv_prog_CC="$CC" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5203 fi
5204 done
5205 done
5206 IFS=$as_save_IFS
5207
5208 fi
5209 fi
5210 CC=$ac_cv_prog_CC
5211 if test -n "$CC"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5213 $as_echo "$CC" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5217 fi
5218
5219
5220 test -n "$CC" && break
5221 done
5222 fi
5223 if test -z "$CC"; then
5224 ac_ct_CC=$CC
5225 for ac_prog in cl.exe
5226 do
5227 # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if test -n "$ac_ct_CC"; then
5235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_prog_ac_ct_CC="$ac_prog"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5247 fi
5248 done
5249 done
5250 IFS=$as_save_IFS
5251
5252 fi
5253 fi
5254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5255 if test -n "$ac_ct_CC"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5257 $as_echo "$ac_ct_CC" >&6; }
5258 else
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262
5263
5264 test -n "$ac_ct_CC" && break
5265 done
5266
5267 if test "x$ac_ct_CC" = x; then
5268 CC=""
5269 else
5270 case $cross_compiling:$ac_tool_warned in
5271 yes:)
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5274 ac_tool_warned=yes ;;
5275 esac
5276 CC=$ac_ct_CC
5277 fi
5278 fi
5279
5280 fi
5281
5282
5283 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5285 as_fn_error $? "no acceptable C compiler found in \$PATH
5286 See \`config.log' for more details" "$LINENO" 5; }
5287
5288 # Provide some information about the compiler.
5289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5290 set X $ac_compile
5291 ac_compiler=$2
5292 for ac_option in --version -v -V -qversion; do
5293 { { ac_try="$ac_compiler $ac_option >&5"
5294 case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297 esac
5298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5299 $as_echo "$ac_try_echo"; } >&5
5300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5301 ac_status=$?
5302 if test -s conftest.err; then
5303 sed '10a\
5304 ... rest of stderr output deleted ...
5305 10q' conftest.err >conftest.er1
5306 cat conftest.er1 >&5
5307 fi
5308 rm -f conftest.er1 conftest.err
5309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5310 test $ac_status = 0; }
5311 done
5312
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5314 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5315 if ${ac_cv_c_compiler_gnu+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320
5321 int
5322 main ()
5323 {
5324 #ifndef __GNUC__
5325 choke me
5326 #endif
5327
5328 ;
5329 return 0;
5330 }
5331 _ACEOF
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333 ac_compiler_gnu=yes
5334 else
5335 ac_compiler_gnu=no
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5339
5340 fi
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5342 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5343 if test $ac_compiler_gnu = yes; then
5344 GCC=yes
5345 else
5346 GCC=
5347 fi
5348 ac_test_CFLAGS=${CFLAGS+set}
5349 ac_save_CFLAGS=$CFLAGS
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5351 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5352 if ${ac_cv_prog_cc_g+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 ac_save_c_werror_flag=$ac_c_werror_flag
5356 ac_c_werror_flag=yes
5357 ac_cv_prog_cc_g=no
5358 CFLAGS="-g"
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361
5362 int
5363 main ()
5364 {
5365
5366 ;
5367 return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 ac_cv_prog_cc_g=yes
5372 else
5373 CFLAGS=""
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376
5377 int
5378 main ()
5379 {
5380
5381 ;
5382 return 0;
5383 }
5384 _ACEOF
5385 if ac_fn_c_try_compile "$LINENO"; then :
5386
5387 else
5388 ac_c_werror_flag=$ac_save_c_werror_flag
5389 CFLAGS="-g"
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392
5393 int
5394 main ()
5395 {
5396
5397 ;
5398 return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"; then :
5402 ac_cv_prog_cc_g=yes
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 fi
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 ac_c_werror_flag=$ac_save_c_werror_flag
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5412 $as_echo "$ac_cv_prog_cc_g" >&6; }
5413 if test "$ac_test_CFLAGS" = set; then
5414 CFLAGS=$ac_save_CFLAGS
5415 elif test $ac_cv_prog_cc_g = yes; then
5416 if test "$GCC" = yes; then
5417 CFLAGS="-g -O2"
5418 else
5419 CFLAGS="-g"
5420 fi
5421 else
5422 if test "$GCC" = yes; then
5423 CFLAGS="-O2"
5424 else
5425 CFLAGS=
5426 fi
5427 fi
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5429 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5430 if ${ac_cv_prog_cc_c89+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 ac_cv_prog_cc_c89=no
5434 ac_save_CC=$CC
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437 #include <stdarg.h>
5438 #include <stdio.h>
5439 struct stat;
5440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5441 struct buf { int x; };
5442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5443 static char *e (p, i)
5444 char **p;
5445 int i;
5446 {
5447 return p[i];
5448 }
5449 static char *f (char * (*g) (char **, int), char **p, ...)
5450 {
5451 char *s;
5452 va_list v;
5453 va_start (v,p);
5454 s = g (p, va_arg (v,int));
5455 va_end (v);
5456 return s;
5457 }
5458
5459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5460 function prototypes and stuff, but not '\xHH' hex character constants.
5461 These don't provoke an error unfortunately, instead are silently treated
5462 as 'x'. The following induces an error, until -std is added to get
5463 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5464 array size at least. It's necessary to write '\x00'==0 to get something
5465 that's true only with -std. */
5466 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5467
5468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5469 inside strings and character constants. */
5470 #define FOO(x) 'x'
5471 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5472
5473 int test (int i, double x);
5474 struct s1 {int (*f) (int a);};
5475 struct s2 {int (*f) (double a);};
5476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5477 int argc;
5478 char **argv;
5479 int
5480 main ()
5481 {
5482 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5483 ;
5484 return 0;
5485 }
5486 _ACEOF
5487 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5488 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5489 do
5490 CC="$ac_save_CC $ac_arg"
5491 if ac_fn_c_try_compile "$LINENO"; then :
5492 ac_cv_prog_cc_c89=$ac_arg
5493 fi
5494 rm -f core conftest.err conftest.$ac_objext
5495 test "x$ac_cv_prog_cc_c89" != "xno" && break
5496 done
5497 rm -f conftest.$ac_ext
5498 CC=$ac_save_CC
5499
5500 fi
5501 # AC_CACHE_VAL
5502 case "x$ac_cv_prog_cc_c89" in
5503 x)
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5505 $as_echo "none needed" >&6; } ;;
5506 xno)
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5508 $as_echo "unsupported" >&6; } ;;
5509 *)
5510 CC="$CC $ac_cv_prog_cc_c89"
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5512 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5513 esac
5514 if test "x$ac_cv_prog_cc_c89" != xno; then :
5515
5516 fi
5517
5518 ac_ext=c
5519 ac_cpp='$CPP $CPPFLAGS'
5520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523
5524 ac_ext=c
5525 ac_cpp='$CPP $CPPFLAGS'
5526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5530 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5531 if ${am_cv_prog_cc_c_o+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536
5537 int
5538 main ()
5539 {
5540
5541 ;
5542 return 0;
5543 }
5544 _ACEOF
5545 # Make sure it works both with $CC and with simple cc.
5546 # Following AC_PROG_CC_C_O, we do the test twice because some
5547 # compilers refuse to overwrite an existing .o file with -o,
5548 # though they will create one.
5549 am_cv_prog_cc_c_o=yes
5550 for am_i in 1 2; do
5551 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5552 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } \
5556 && test -f conftest2.$ac_objext; then
5557 : OK
5558 else
5559 am_cv_prog_cc_c_o=no
5560 break
5561 fi
5562 done
5563 rm -f core conftest*
5564 unset am_i
5565 fi
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5567 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5568 if test "$am_cv_prog_cc_c_o" != yes; then
5569 # Losing compiler, so override with the script.
5570 # FIXME: It is wrong to rewrite CC.
5571 # But if we don't then we get into trouble of one sort or another.
5572 # A longer-term fix would be to have automake use am__CC in this case,
5573 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5574 CC="$am_aux_dir/compile $CC"
5575 fi
5576 ac_ext=c
5577 ac_cpp='$CPP $CPPFLAGS'
5578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5581
5582
5583 depcc="$CC" am_compiler_list=
5584
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5586 $as_echo_n "checking dependency style of $depcc... " >&6; }
5587 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5591 # We make a subdir and do the tests there. Otherwise we can end up
5592 # making bogus files that we don't know about and never remove. For
5593 # instance it was reported that on HP-UX the gcc test will end up
5594 # making a dummy file named 'D' -- because '-MD' means "put the output
5595 # in D".
5596 rm -rf conftest.dir
5597 mkdir conftest.dir
5598 # Copy depcomp to subdir because otherwise we won't find it if we're
5599 # using a relative directory.
5600 cp "$am_depcomp" conftest.dir
5601 cd conftest.dir
5602 # We will build objects and dependencies in a subdirectory because
5603 # it helps to detect inapplicable dependency modes. For instance
5604 # both Tru64's cc and ICC support -MD to output dependencies as a
5605 # side effect of compilation, but ICC will put the dependencies in
5606 # the current directory while Tru64 will put them in the object
5607 # directory.
5608 mkdir sub
5609
5610 am_cv_CC_dependencies_compiler_type=none
5611 if test "$am_compiler_list" = ""; then
5612 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5613 fi
5614 am__universal=false
5615 case " $depcc " in #(
5616 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5617 esac
5618
5619 for depmode in $am_compiler_list; do
5620 # Setup a source with many dependencies, because some compilers
5621 # like to wrap large dependency lists on column 80 (with \), and
5622 # we should not choose a depcomp mode which is confused by this.
5623 #
5624 # We need to recreate these files for each test, as the compiler may
5625 # overwrite some of them when testing with obscure command lines.
5626 # This happens at least with the AIX C compiler.
5627 : > sub/conftest.c
5628 for i in 1 2 3 4 5 6; do
5629 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5630 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5631 # Solaris 10 /bin/sh.
5632 echo '/* dummy */' > sub/conftst$i.h
5633 done
5634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5635
5636 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5637 # mode. It turns out that the SunPro C++ compiler does not properly
5638 # handle '-M -o', and we need to detect this. Also, some Intel
5639 # versions had trouble with output in subdirs.
5640 am__obj=sub/conftest.${OBJEXT-o}
5641 am__minus_obj="-o $am__obj"
5642 case $depmode in
5643 gcc)
5644 # This depmode causes a compiler race in universal mode.
5645 test "$am__universal" = false || continue
5646 ;;
5647 nosideeffect)
5648 # After this tag, mechanisms are not by side-effect, so they'll
5649 # only be used when explicitly requested.
5650 if test "x$enable_dependency_tracking" = xyes; then
5651 continue
5652 else
5653 break
5654 fi
5655 ;;
5656 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5657 # This compiler won't grok '-c -o', but also, the minuso test has
5658 # not run yet. These depmodes are late enough in the game, and
5659 # so weak that their functioning should not be impacted.
5660 am__obj=conftest.${OBJEXT-o}
5661 am__minus_obj=
5662 ;;
5663 none) break ;;
5664 esac
5665 if depmode=$depmode \
5666 source=sub/conftest.c object=$am__obj \
5667 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5668 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5669 >/dev/null 2>conftest.err &&
5670 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5671 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5672 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5673 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5674 # icc doesn't choke on unknown options, it will just issue warnings
5675 # or remarks (even with -Werror). So we grep stderr for any message
5676 # that says an option was ignored or not supported.
5677 # When given -MP, icc 7.0 and 7.1 complain thusly:
5678 # icc: Command line warning: ignoring option '-M'; no argument required
5679 # The diagnosis changed in icc 8.0:
5680 # icc: Command line remark: option '-MP' not supported
5681 if (grep 'ignoring option' conftest.err ||
5682 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5683 am_cv_CC_dependencies_compiler_type=$depmode
5684 break
5685 fi
5686 fi
5687 done
5688
5689 cd ..
5690 rm -rf conftest.dir
5691 else
5692 am_cv_CC_dependencies_compiler_type=none
5693 fi
5694
5695 fi
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5697 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5698 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5699
5700 if
5701 test "x$enable_dependency_tracking" != xno \
5702 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5703 am__fastdepCC_TRUE=
5704 am__fastdepCC_FALSE='#'
5705 else
5706 am__fastdepCC_TRUE='#'
5707 am__fastdepCC_FALSE=
5708 fi
5709
5710
5711 ac_ext=cpp
5712 ac_cpp='$CXXCPP $CPPFLAGS'
5713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5716 if test -z "$CXX"; then
5717 if test -n "$CCC"; then
5718 CXX=$CCC
5719 else
5720 if test -n "$ac_tool_prefix"; then
5721 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5722 do
5723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5724 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_prog_CXX+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if test -n "$CXX"; then
5731 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5743 fi
5744 done
5745 done
5746 IFS=$as_save_IFS
5747
5748 fi
5749 fi
5750 CXX=$ac_cv_prog_CXX
5751 if test -n "$CXX"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5753 $as_echo "$CXX" >&6; }
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5757 fi
5758
5759
5760 test -n "$CXX" && break
5761 done
5762 fi
5763 if test -z "$CXX"; then
5764 ac_ct_CXX=$CXX
5765 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5766 do
5767 # Extract the first word of "$ac_prog", so it can be a program name with args.
5768 set dummy $ac_prog; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if test -n "$ac_ct_CXX"; then
5775 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784 ac_cv_prog_ac_ct_CXX="$ac_prog"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5787 fi
5788 done
5789 done
5790 IFS=$as_save_IFS
5791
5792 fi
5793 fi
5794 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5795 if test -n "$ac_ct_CXX"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5797 $as_echo "$ac_ct_CXX" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802
5803
5804 test -n "$ac_ct_CXX" && break
5805 done
5806
5807 if test "x$ac_ct_CXX" = x; then
5808 CXX="g++"
5809 else
5810 case $cross_compiling:$ac_tool_warned in
5811 yes:)
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5814 ac_tool_warned=yes ;;
5815 esac
5816 CXX=$ac_ct_CXX
5817 fi
5818 fi
5819
5820 fi
5821 fi
5822 # Provide some information about the compiler.
5823 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5824 set X $ac_compile
5825 ac_compiler=$2
5826 for ac_option in --version -v -V -qversion; do
5827 { { ac_try="$ac_compiler $ac_option >&5"
5828 case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831 esac
5832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5833 $as_echo "$ac_try_echo"; } >&5
5834 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5835 ac_status=$?
5836 if test -s conftest.err; then
5837 sed '10a\
5838 ... rest of stderr output deleted ...
5839 10q' conftest.err >conftest.er1
5840 cat conftest.er1 >&5
5841 fi
5842 rm -f conftest.er1 conftest.err
5843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5844 test $ac_status = 0; }
5845 done
5846
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5848 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5849 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5854
5855 int
5856 main ()
5857 {
5858 #ifndef __GNUC__
5859 choke me
5860 #endif
5861
5862 ;
5863 return 0;
5864 }
5865 _ACEOF
5866 if ac_fn_cxx_try_compile "$LINENO"; then :
5867 ac_compiler_gnu=yes
5868 else
5869 ac_compiler_gnu=no
5870 fi
5871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5873
5874 fi
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5876 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5877 if test $ac_compiler_gnu = yes; then
5878 GXX=yes
5879 else
5880 GXX=
5881 fi
5882 ac_test_CXXFLAGS=${CXXFLAGS+set}
5883 ac_save_CXXFLAGS=$CXXFLAGS
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5885 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5886 if ${ac_cv_prog_cxx_g+:} false; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5890 ac_cxx_werror_flag=yes
5891 ac_cv_prog_cxx_g=no
5892 CXXFLAGS="-g"
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895
5896 int
5897 main ()
5898 {
5899
5900 ;
5901 return 0;
5902 }
5903 _ACEOF
5904 if ac_fn_cxx_try_compile "$LINENO"; then :
5905 ac_cv_prog_cxx_g=yes
5906 else
5907 CXXFLAGS=""
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910
5911 int
5912 main ()
5913 {
5914
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 if ac_fn_cxx_try_compile "$LINENO"; then :
5920
5921 else
5922 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5923 CXXFLAGS="-g"
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926
5927 int
5928 main ()
5929 {
5930
5931 ;
5932 return 0;
5933 }
5934 _ACEOF
5935 if ac_fn_cxx_try_compile "$LINENO"; then :
5936 ac_cv_prog_cxx_g=yes
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 fi
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 fi
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5946 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5947 if test "$ac_test_CXXFLAGS" = set; then
5948 CXXFLAGS=$ac_save_CXXFLAGS
5949 elif test $ac_cv_prog_cxx_g = yes; then
5950 if test "$GXX" = yes; then
5951 CXXFLAGS="-g -O2"
5952 else
5953 CXXFLAGS="-g"
5954 fi
5955 else
5956 if test "$GXX" = yes; then
5957 CXXFLAGS="-O2"
5958 else
5959 CXXFLAGS=
5960 fi
5961 fi
5962 ac_ext=c
5963 ac_cpp='$CPP $CPPFLAGS'
5964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5967
5968 depcc="$CXX" am_compiler_list=
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5971 $as_echo_n "checking dependency style of $depcc... " >&6; }
5972 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5976 # We make a subdir and do the tests there. Otherwise we can end up
5977 # making bogus files that we don't know about and never remove. For
5978 # instance it was reported that on HP-UX the gcc test will end up
5979 # making a dummy file named 'D' -- because '-MD' means "put the output
5980 # in D".
5981 rm -rf conftest.dir
5982 mkdir conftest.dir
5983 # Copy depcomp to subdir because otherwise we won't find it if we're
5984 # using a relative directory.
5985 cp "$am_depcomp" conftest.dir
5986 cd conftest.dir
5987 # We will build objects and dependencies in a subdirectory because
5988 # it helps to detect inapplicable dependency modes. For instance
5989 # both Tru64's cc and ICC support -MD to output dependencies as a
5990 # side effect of compilation, but ICC will put the dependencies in
5991 # the current directory while Tru64 will put them in the object
5992 # directory.
5993 mkdir sub
5994
5995 am_cv_CXX_dependencies_compiler_type=none
5996 if test "$am_compiler_list" = ""; then
5997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5998 fi
5999 am__universal=false
6000 case " $depcc " in #(
6001 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6002 esac
6003
6004 for depmode in $am_compiler_list; do
6005 # Setup a source with many dependencies, because some compilers
6006 # like to wrap large dependency lists on column 80 (with \), and
6007 # we should not choose a depcomp mode which is confused by this.
6008 #
6009 # We need to recreate these files for each test, as the compiler may
6010 # overwrite some of them when testing with obscure command lines.
6011 # This happens at least with the AIX C compiler.
6012 : > sub/conftest.c
6013 for i in 1 2 3 4 5 6; do
6014 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6015 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6016 # Solaris 10 /bin/sh.
6017 echo '/* dummy */' > sub/conftst$i.h
6018 done
6019 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6020
6021 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6022 # mode. It turns out that the SunPro C++ compiler does not properly
6023 # handle '-M -o', and we need to detect this. Also, some Intel
6024 # versions had trouble with output in subdirs.
6025 am__obj=sub/conftest.${OBJEXT-o}
6026 am__minus_obj="-o $am__obj"
6027 case $depmode in
6028 gcc)
6029 # This depmode causes a compiler race in universal mode.
6030 test "$am__universal" = false || continue
6031 ;;
6032 nosideeffect)
6033 # After this tag, mechanisms are not by side-effect, so they'll
6034 # only be used when explicitly requested.
6035 if test "x$enable_dependency_tracking" = xyes; then
6036 continue
6037 else
6038 break
6039 fi
6040 ;;
6041 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6042 # This compiler won't grok '-c -o', but also, the minuso test has
6043 # not run yet. These depmodes are late enough in the game, and
6044 # so weak that their functioning should not be impacted.
6045 am__obj=conftest.${OBJEXT-o}
6046 am__minus_obj=
6047 ;;
6048 none) break ;;
6049 esac
6050 if depmode=$depmode \
6051 source=sub/conftest.c object=$am__obj \
6052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6053 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6054 >/dev/null 2>conftest.err &&
6055 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6057 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6059 # icc doesn't choke on unknown options, it will just issue warnings
6060 # or remarks (even with -Werror). So we grep stderr for any message
6061 # that says an option was ignored or not supported.
6062 # When given -MP, icc 7.0 and 7.1 complain thusly:
6063 # icc: Command line warning: ignoring option '-M'; no argument required
6064 # The diagnosis changed in icc 8.0:
6065 # icc: Command line remark: option '-MP' not supported
6066 if (grep 'ignoring option' conftest.err ||
6067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6068 am_cv_CXX_dependencies_compiler_type=$depmode
6069 break
6070 fi
6071 fi
6072 done
6073
6074 cd ..
6075 rm -rf conftest.dir
6076 else
6077 am_cv_CXX_dependencies_compiler_type=none
6078 fi
6079
6080 fi
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6082 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6083 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6084
6085 if
6086 test "x$enable_dependency_tracking" != xno \
6087 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6088 am__fastdepCXX_TRUE=
6089 am__fastdepCXX_FALSE='#'
6090 else
6091 am__fastdepCXX_TRUE='#'
6092 am__fastdepCXX_FALSE=
6093 fi
6094
6095
6096 ac_ext=c
6097 ac_cpp='$CPP $CPPFLAGS'
6098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6102 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6103 # On Suns, sometimes $CPP names a directory.
6104 if test -n "$CPP" && test -d "$CPP"; then
6105 CPP=
6106 fi
6107 if test -z "$CPP"; then
6108 if ${ac_cv_prog_CPP+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 # Double quotes because CPP needs to be expanded
6112 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6113 do
6114 ac_preproc_ok=false
6115 for ac_c_preproc_warn_flag in '' yes
6116 do
6117 # Use a header file that comes with gcc, so configuring glibc
6118 # with a fresh cross-compiler works.
6119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6120 # <limits.h> exists even on freestanding compilers.
6121 # On the NeXT, cc -E runs the code through the compiler's parser,
6122 # not just through cpp. "Syntax error" is here to catch this case.
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 #ifdef __STDC__
6126 # include <limits.h>
6127 #else
6128 # include <assert.h>
6129 #endif
6130 Syntax error
6131 _ACEOF
6132 if ac_fn_c_try_cpp "$LINENO"; then :
6133
6134 else
6135 # Broken: fails on valid input.
6136 continue
6137 fi
6138 rm -f conftest.err conftest.i conftest.$ac_ext
6139
6140 # OK, works on sane cases. Now check whether nonexistent headers
6141 # can be detected and how.
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144 #include <ac_nonexistent.h>
6145 _ACEOF
6146 if ac_fn_c_try_cpp "$LINENO"; then :
6147 # Broken: success on invalid input.
6148 continue
6149 else
6150 # Passes both tests.
6151 ac_preproc_ok=:
6152 break
6153 fi
6154 rm -f conftest.err conftest.i conftest.$ac_ext
6155
6156 done
6157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6158 rm -f conftest.i conftest.err conftest.$ac_ext
6159 if $ac_preproc_ok; then :
6160 break
6161 fi
6162
6163 done
6164 ac_cv_prog_CPP=$CPP
6165
6166 fi
6167 CPP=$ac_cv_prog_CPP
6168 else
6169 ac_cv_prog_CPP=$CPP
6170 fi
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6172 $as_echo "$CPP" >&6; }
6173 ac_preproc_ok=false
6174 for ac_c_preproc_warn_flag in '' yes
6175 do
6176 # Use a header file that comes with gcc, so configuring glibc
6177 # with a fresh cross-compiler works.
6178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6179 # <limits.h> exists even on freestanding compilers.
6180 # On the NeXT, cc -E runs the code through the compiler's parser,
6181 # not just through cpp. "Syntax error" is here to catch this case.
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184 #ifdef __STDC__
6185 # include <limits.h>
6186 #else
6187 # include <assert.h>
6188 #endif
6189 Syntax error
6190 _ACEOF
6191 if ac_fn_c_try_cpp "$LINENO"; then :
6192
6193 else
6194 # Broken: fails on valid input.
6195 continue
6196 fi
6197 rm -f conftest.err conftest.i conftest.$ac_ext
6198
6199 # OK, works on sane cases. Now check whether nonexistent headers
6200 # can be detected and how.
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203 #include <ac_nonexistent.h>
6204 _ACEOF
6205 if ac_fn_c_try_cpp "$LINENO"; then :
6206 # Broken: success on invalid input.
6207 continue
6208 else
6209 # Passes both tests.
6210 ac_preproc_ok=:
6211 break
6212 fi
6213 rm -f conftest.err conftest.i conftest.$ac_ext
6214
6215 done
6216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6217 rm -f conftest.i conftest.err conftest.$ac_ext
6218 if $ac_preproc_ok; then :
6219
6220 else
6221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6223 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6224 See \`config.log' for more details" "$LINENO" 5; }
6225 fi
6226
6227 ac_ext=c
6228 ac_cpp='$CPP $CPPFLAGS'
6229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6232
6233
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6236 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_prog_RANLIB+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$RANLIB"; then
6243 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256 done
6257 done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 RANLIB=$ac_cv_prog_RANLIB
6263 if test -n "$RANLIB"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6265 $as_echo "$RANLIB" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270
6271
6272 fi
6273 if test -z "$ac_cv_prog_RANLIB"; then
6274 ac_ct_RANLIB=$RANLIB
6275 # Extract the first word of "ranlib", so it can be a program name with args.
6276 set dummy ranlib; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$ac_ct_RANLIB"; then
6283 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292 ac_cv_prog_ac_ct_RANLIB="ranlib"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300 fi
6301 fi
6302 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6303 if test -n "$ac_ct_RANLIB"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6305 $as_echo "$ac_ct_RANLIB" >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6309 fi
6310
6311 if test "x$ac_ct_RANLIB" = x; then
6312 RANLIB=":"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315 yes:)
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318 ac_tool_warned=yes ;;
6319 esac
6320 RANLIB=$ac_ct_RANLIB
6321 fi
6322 else
6323 RANLIB="$ac_cv_prog_RANLIB"
6324 fi
6325
6326
6327
6328
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6330 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6331 set x ${MAKE-make}
6332 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6333 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 cat >conftest.make <<\_ACEOF
6337 SHELL = /bin/sh
6338 all:
6339 @echo '@@@%%%=$(MAKE)=@@@%%%'
6340 _ACEOF
6341 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6342 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6343 *@@@%%%=?*=@@@%%%*)
6344 eval ac_cv_prog_make_${ac_make}_set=yes;;
6345 *)
6346 eval ac_cv_prog_make_${ac_make}_set=no;;
6347 esac
6348 rm -f conftest.make
6349 fi
6350 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6352 $as_echo "yes" >&6; }
6353 SET_MAKE=
6354 else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6357 SET_MAKE="MAKE=${MAKE-make}"
6358 fi
6359
6360
6361
6362 # Check whether --enable-largefile was given.
6363 if test "${enable_largefile+set}" = set; then :
6364 enableval=$enable_largefile;
6365 fi
6366
6367 if test "$enable_largefile" != no; then
6368
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6370 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6371 if ${ac_cv_sys_largefile_CC+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 ac_cv_sys_largefile_CC=no
6375 if test "$GCC" != yes; then
6376 ac_save_CC=$CC
6377 while :; do
6378 # IRIX 6.2 and later do not support large files by default,
6379 # so use the C compiler's -n32 option if that helps.
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6382 #include <sys/types.h>
6383 /* Check that off_t can represent 2**63 - 1 correctly.
6384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6385 since some C++ compilers masquerading as C compilers
6386 incorrectly reject 9223372036854775807. */
6387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6389 && LARGE_OFF_T % 2147483647 == 1)
6390 ? 1 : -1];
6391 int
6392 main ()
6393 {
6394
6395 ;
6396 return 0;
6397 }
6398 _ACEOF
6399 if ac_fn_c_try_compile "$LINENO"; then :
6400 break
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext
6403 CC="$CC -n32"
6404 if ac_fn_c_try_compile "$LINENO"; then :
6405 ac_cv_sys_largefile_CC=' -n32'; break
6406 fi
6407 rm -f core conftest.err conftest.$ac_objext
6408 break
6409 done
6410 CC=$ac_save_CC
6411 rm -f conftest.$ac_ext
6412 fi
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6415 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6416 if test "$ac_cv_sys_largefile_CC" != no; then
6417 CC=$CC$ac_cv_sys_largefile_CC
6418 fi
6419
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6421 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6422 if ${ac_cv_sys_file_offset_bits+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 while :; do
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428 #include <sys/types.h>
6429 /* Check that off_t can represent 2**63 - 1 correctly.
6430 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6431 since some C++ compilers masquerading as C compilers
6432 incorrectly reject 9223372036854775807. */
6433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6435 && LARGE_OFF_T % 2147483647 == 1)
6436 ? 1 : -1];
6437 int
6438 main ()
6439 {
6440
6441 ;
6442 return 0;
6443 }
6444 _ACEOF
6445 if ac_fn_c_try_compile "$LINENO"; then :
6446 ac_cv_sys_file_offset_bits=no; break
6447 fi
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 #define _FILE_OFFSET_BITS 64
6452 #include <sys/types.h>
6453 /* Check that off_t can represent 2**63 - 1 correctly.
6454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6455 since some C++ compilers masquerading as C compilers
6456 incorrectly reject 9223372036854775807. */
6457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6459 && LARGE_OFF_T % 2147483647 == 1)
6460 ? 1 : -1];
6461 int
6462 main ()
6463 {
6464
6465 ;
6466 return 0;
6467 }
6468 _ACEOF
6469 if ac_fn_c_try_compile "$LINENO"; then :
6470 ac_cv_sys_file_offset_bits=64; break
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473 ac_cv_sys_file_offset_bits=unknown
6474 break
6475 done
6476 fi
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6478 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6479 case $ac_cv_sys_file_offset_bits in #(
6480 no | unknown) ;;
6481 *)
6482 cat >>confdefs.h <<_ACEOF
6483 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6484 _ACEOF
6485 ;;
6486 esac
6487 rm -rf conftest*
6488 if test $ac_cv_sys_file_offset_bits = unknown; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6490 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6491 if ${ac_cv_sys_large_files+:} false; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 while :; do
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497 #include <sys/types.h>
6498 /* Check that off_t can represent 2**63 - 1 correctly.
6499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6500 since some C++ compilers masquerading as C compilers
6501 incorrectly reject 9223372036854775807. */
6502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6504 && LARGE_OFF_T % 2147483647 == 1)
6505 ? 1 : -1];
6506 int
6507 main ()
6508 {
6509
6510 ;
6511 return 0;
6512 }
6513 _ACEOF
6514 if ac_fn_c_try_compile "$LINENO"; then :
6515 ac_cv_sys_large_files=no; break
6516 fi
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 #define _LARGE_FILES 1
6521 #include <sys/types.h>
6522 /* Check that off_t can represent 2**63 - 1 correctly.
6523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6524 since some C++ compilers masquerading as C compilers
6525 incorrectly reject 9223372036854775807. */
6526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6528 && LARGE_OFF_T % 2147483647 == 1)
6529 ? 1 : -1];
6530 int
6531 main ()
6532 {
6533
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_c_try_compile "$LINENO"; then :
6539 ac_cv_sys_large_files=1; break
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 ac_cv_sys_large_files=unknown
6543 break
6544 done
6545 fi
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6547 $as_echo "$ac_cv_sys_large_files" >&6; }
6548 case $ac_cv_sys_large_files in #(
6549 no | unknown) ;;
6550 *)
6551 cat >>confdefs.h <<_ACEOF
6552 #define _LARGE_FILES $ac_cv_sys_large_files
6553 _ACEOF
6554 ;;
6555 esac
6556 rm -rf conftest*
6557 fi
6558
6559
6560 fi
6561
6562 for ac_func in ppoll
6563 do :
6564 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
6565 if test "x$ac_cv_func_ppoll" = xyes; then :
6566 cat >>confdefs.h <<_ACEOF
6567 #define HAVE_PPOLL 1
6568 _ACEOF
6569
6570 fi
6571 done
6572
6573 for ac_func in openat
6574 do :
6575 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
6576 if test "x$ac_cv_func_openat" = xyes; then :
6577 cat >>confdefs.h <<_ACEOF
6578 #define HAVE_OPENAT 1
6579 _ACEOF
6580
6581 fi
6582 done
6583
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6585 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6586 if ${ac_cv_path_SED+:} false; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6590 for ac_i in 1 2 3 4 5 6 7; do
6591 ac_script="$ac_script$as_nl$ac_script"
6592 done
6593 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6594 { ac_script=; unset ac_script;}
6595 if test -z "$SED"; then
6596 ac_path_SED_found=false
6597 # Loop through the user's path and test for each of PROGNAME-LIST
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_prog in sed gsed; do
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6606 as_fn_executable_p "$ac_path_SED" || continue
6607 # Check for GNU ac_path_SED and select it if it is found.
6608 # Check for GNU $ac_path_SED
6609 case `"$ac_path_SED" --version 2>&1` in
6610 *GNU*)
6611 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6612 *)
6613 ac_count=0
6614 $as_echo_n 0123456789 >"conftest.in"
6615 while :
6616 do
6617 cat "conftest.in" "conftest.in" >"conftest.tmp"
6618 mv "conftest.tmp" "conftest.in"
6619 cp "conftest.in" "conftest.nl"
6620 $as_echo '' >> "conftest.nl"
6621 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6623 as_fn_arith $ac_count + 1 && ac_count=$as_val
6624 if test $ac_count -gt ${ac_path_SED_max-0}; then
6625 # Best one so far, save it but keep looking for a better one
6626 ac_cv_path_SED="$ac_path_SED"
6627 ac_path_SED_max=$ac_count
6628 fi
6629 # 10*(2^10) chars as input seems more than enough
6630 test $ac_count -gt 10 && break
6631 done
6632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6633 esac
6634
6635 $ac_path_SED_found && break 3
6636 done
6637 done
6638 done
6639 IFS=$as_save_IFS
6640 if test -z "$ac_cv_path_SED"; then
6641 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6642 fi
6643 else
6644 ac_cv_path_SED=$SED
6645 fi
6646
6647 fi
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6649 $as_echo "$ac_cv_path_SED" >&6; }
6650 SED="$ac_cv_path_SED"
6651 rm -f conftest.sed
6652
6653
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6655 $as_echo_n "checking whether NLS is requested... " >&6; }
6656 # Check whether --enable-nls was given.
6657 if test "${enable_nls+set}" = set; then :
6658 enableval=$enable_nls; USE_NLS=$enableval
6659 else
6660 USE_NLS=yes
6661 fi
6662
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6664 $as_echo "$USE_NLS" >&6; }
6665
6666
6667
6668
6669 GETTEXT_MACRO_VERSION=0.19
6670
6671
6672
6673
6674 # Prepare PATH_SEPARATOR.
6675 # The user is always right.
6676 if test "${PATH_SEPARATOR+set}" != set; then
6677 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6678 # contains only /bin. Note that ksh looks also at the FPATH variable,
6679 # so we have to set that as well for the test.
6680 PATH_SEPARATOR=:
6681 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6682 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6683 || PATH_SEPARATOR=';'
6684 }
6685 fi
6686
6687 # Find out how to test for executable files. Don't use a zero-byte file,
6688 # as systems may use methods other than mode bits to determine executability.
6689 cat >conf$$.file <<_ASEOF
6690 #! /bin/sh
6691 exit 0
6692 _ASEOF
6693 chmod +x conf$$.file
6694 if test -x conf$$.file >/dev/null 2>&1; then
6695 ac_executable_p="test -x"
6696 else
6697 ac_executable_p="test -f"
6698 fi
6699 rm -f conf$$.file
6700
6701 # Extract the first word of "msgfmt", so it can be a program name with args.
6702 set dummy msgfmt; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if ${ac_cv_path_MSGFMT+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 case "$MSGFMT" in
6709 [\\/]* | ?:[\\/]*)
6710 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6711 ;;
6712 *)
6713 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6714 for ac_dir in $PATH; do
6715 IFS="$ac_save_IFS"
6716 test -z "$ac_dir" && ac_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6719 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6720 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6721 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6722 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6723 break 2
6724 fi
6725 fi
6726 done
6727 done
6728 IFS="$ac_save_IFS"
6729 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6730 ;;
6731 esac
6732 fi
6733 MSGFMT="$ac_cv_path_MSGFMT"
6734 if test "$MSGFMT" != ":"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6736 $as_echo "$MSGFMT" >&6; }
6737 else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741
6742 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6743 set dummy gmsgfmt; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_path_GMSGFMT+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 case $GMSGFMT in
6750 [\\/]* | ?:[\\/]*)
6751 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6752 ;;
6753 *)
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6770 ;;
6771 esac
6772 fi
6773 GMSGFMT=$ac_cv_path_GMSGFMT
6774 if test -n "$GMSGFMT"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6776 $as_echo "$GMSGFMT" >&6; }
6777 else
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6780 fi
6781
6782
6783
6784 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6785 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6786 *) MSGFMT_015=$MSGFMT ;;
6787 esac
6788
6789 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6790 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6791 *) GMSGFMT_015=$GMSGFMT ;;
6792 esac
6793
6794
6795
6796 # Prepare PATH_SEPARATOR.
6797 # The user is always right.
6798 if test "${PATH_SEPARATOR+set}" != set; then
6799 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6800 # contains only /bin. Note that ksh looks also at the FPATH variable,
6801 # so we have to set that as well for the test.
6802 PATH_SEPARATOR=:
6803 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6804 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6805 || PATH_SEPARATOR=';'
6806 }
6807 fi
6808
6809 # Find out how to test for executable files. Don't use a zero-byte file,
6810 # as systems may use methods other than mode bits to determine executability.
6811 cat >conf$$.file <<_ASEOF
6812 #! /bin/sh
6813 exit 0
6814 _ASEOF
6815 chmod +x conf$$.file
6816 if test -x conf$$.file >/dev/null 2>&1; then
6817 ac_executable_p="test -x"
6818 else
6819 ac_executable_p="test -f"
6820 fi
6821 rm -f conf$$.file
6822
6823 # Extract the first word of "xgettext", so it can be a program name with args.
6824 set dummy xgettext; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_path_XGETTEXT+:} false; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 case "$XGETTEXT" in
6831 [\\/]* | ?:[\\/]*)
6832 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6833 ;;
6834 *)
6835 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6836 for ac_dir in $PATH; do
6837 IFS="$ac_save_IFS"
6838 test -z "$ac_dir" && ac_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6841 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6842 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6843 (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
6844 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6845 break 2
6846 fi
6847 fi
6848 done
6849 done
6850 IFS="$ac_save_IFS"
6851 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6852 ;;
6853 esac
6854 fi
6855 XGETTEXT="$ac_cv_path_XGETTEXT"
6856 if test "$XGETTEXT" != ":"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6858 $as_echo "$XGETTEXT" >&6; }
6859 else
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6863
6864 rm -f messages.po
6865
6866 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6867 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6868 *) XGETTEXT_015=$XGETTEXT ;;
6869 esac
6870
6871
6872
6873 # Prepare PATH_SEPARATOR.
6874 # The user is always right.
6875 if test "${PATH_SEPARATOR+set}" != set; then
6876 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6877 # contains only /bin. Note that ksh looks also at the FPATH variable,
6878 # so we have to set that as well for the test.
6879 PATH_SEPARATOR=:
6880 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6881 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6882 || PATH_SEPARATOR=';'
6883 }
6884 fi
6885
6886 # Find out how to test for executable files. Don't use a zero-byte file,
6887 # as systems may use methods other than mode bits to determine executability.
6888 cat >conf$$.file <<_ASEOF
6889 #! /bin/sh
6890 exit 0
6891 _ASEOF
6892 chmod +x conf$$.file
6893 if test -x conf$$.file >/dev/null 2>&1; then
6894 ac_executable_p="test -x"
6895 else
6896 ac_executable_p="test -f"
6897 fi
6898 rm -f conf$$.file
6899
6900 # Extract the first word of "msgmerge", so it can be a program name with args.
6901 set dummy msgmerge; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_path_MSGMERGE+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 case "$MSGMERGE" in
6908 [\\/]* | ?:[\\/]*)
6909 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6910 ;;
6911 *)
6912 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6913 for ac_dir in $PATH; do
6914 IFS="$ac_save_IFS"
6915 test -z "$ac_dir" && ac_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6918 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6919 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6920 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6921 break 2
6922 fi
6923 fi
6924 done
6925 done
6926 IFS="$ac_save_IFS"
6927 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6928 ;;
6929 esac
6930 fi
6931 MSGMERGE="$ac_cv_path_MSGMERGE"
6932 if test "$MSGMERGE" != ":"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6934 $as_echo "$MSGMERGE" >&6; }
6935 else
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939
6940
6941 test -n "$localedir" || localedir='${datadir}/locale'
6942
6943
6944 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6945
6946
6947 ac_config_commands="$ac_config_commands po-directories"
6948
6949
6950
6951 if test "X$prefix" = "XNONE"; then
6952 acl_final_prefix="$ac_default_prefix"
6953 else
6954 acl_final_prefix="$prefix"
6955 fi
6956 if test "X$exec_prefix" = "XNONE"; then
6957 acl_final_exec_prefix='${prefix}'
6958 else
6959 acl_final_exec_prefix="$exec_prefix"
6960 fi
6961 acl_save_prefix="$prefix"
6962 prefix="$acl_final_prefix"
6963 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6964 prefix="$acl_save_prefix"
6965
6966
6967
6968 # Check whether --with-gnu-ld was given.
6969 if test "${with_gnu_ld+set}" = set; then :
6970 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6971 else
6972 with_gnu_ld=no
6973 fi
6974
6975 # Prepare PATH_SEPARATOR.
6976 # The user is always right.
6977 if test "${PATH_SEPARATOR+set}" != set; then
6978 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6979 # contains only /bin. Note that ksh looks also at the FPATH variable,
6980 # so we have to set that as well for the test.
6981 PATH_SEPARATOR=:
6982 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6983 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6984 || PATH_SEPARATOR=';'
6985 }
6986 fi
6987
6988 ac_prog=ld
6989 if test "$GCC" = yes; then
6990 # Check if gcc -print-prog-name=ld gives a path.
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6992 $as_echo_n "checking for ld used by $CC... " >&6; }
6993 case $host in
6994 *-*-mingw*)
6995 # gcc leaves a trailing carriage return which upsets mingw
6996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6997 *)
6998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6999 esac
7000 case $ac_prog in
7001 # Accept absolute paths.
7002 [\\/]* | ?:[\\/]*)
7003 re_direlt='/[^/][^/]*/\.\./'
7004 # Canonicalize the pathname of ld
7005 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7006 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7007 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7008 done
7009 test -z "$LD" && LD="$ac_prog"
7010 ;;
7011 "")
7012 # If it fails, then pretend we aren't using GCC.
7013 ac_prog=ld
7014 ;;
7015 *)
7016 # If it is relative, then search for the first ld in PATH.
7017 with_gnu_ld=unknown
7018 ;;
7019 esac
7020 elif test "$with_gnu_ld" = yes; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7022 $as_echo_n "checking for GNU ld... " >&6; }
7023 else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7025 $as_echo_n "checking for non-GNU ld... " >&6; }
7026 fi
7027 if ${acl_cv_path_LD+:} false; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 if test -z "$LD"; then
7031 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7032 for ac_dir in $PATH; do
7033 IFS="$acl_save_ifs"
7034 test -z "$ac_dir" && ac_dir=.
7035 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7036 acl_cv_path_LD="$ac_dir/$ac_prog"
7037 # Check to see if the program is GNU ld. I'd rather use --version,
7038 # but apparently some variants of GNU ld only accept -v.
7039 # Break only if it was the GNU/non-GNU ld that we prefer.
7040 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7041 *GNU* | *'with BFD'*)
7042 test "$with_gnu_ld" != no && break
7043 ;;
7044 *)
7045 test "$with_gnu_ld" != yes && break
7046 ;;
7047 esac
7048 fi
7049 done
7050 IFS="$acl_save_ifs"
7051 else
7052 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7053 fi
7054 fi
7055
7056 LD="$acl_cv_path_LD"
7057 if test -n "$LD"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7059 $as_echo "$LD" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7066 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7067 if ${acl_cv_prog_gnu_ld+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7071 case `$LD -v 2>&1 </dev/null` in
7072 *GNU* | *'with BFD'*)
7073 acl_cv_prog_gnu_ld=yes
7074 ;;
7075 *)
7076 acl_cv_prog_gnu_ld=no
7077 ;;
7078 esac
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7081 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7082 with_gnu_ld=$acl_cv_prog_gnu_ld
7083
7084
7085
7086
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7088 $as_echo_n "checking for shared library run path origin... " >&6; }
7089 if ${acl_cv_rpath+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092
7093 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7094 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7095 . ./conftest.sh
7096 rm -f ./conftest.sh
7097 acl_cv_rpath=done
7098
7099 fi
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7101 $as_echo "$acl_cv_rpath" >&6; }
7102 wl="$acl_cv_wl"
7103 acl_libext="$acl_cv_libext"
7104 acl_shlibext="$acl_cv_shlibext"
7105 acl_libname_spec="$acl_cv_libname_spec"
7106 acl_library_names_spec="$acl_cv_library_names_spec"
7107 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7108 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7109 acl_hardcode_direct="$acl_cv_hardcode_direct"
7110 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7111 # Check whether --enable-rpath was given.
7112 if test "${enable_rpath+set}" = set; then :
7113 enableval=$enable_rpath; :
7114 else
7115 enable_rpath=yes
7116 fi
7117
7118
7119
7120
7121 acl_libdirstem=lib
7122 acl_libdirstem2=
7123 case "$host_os" in
7124 solaris*)
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7126 $as_echo_n "checking for 64-bit host... " >&6; }
7127 if ${gl_cv_solaris_64bit+:} false; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131 /* end confdefs.h. */
7132
7133 #ifdef _LP64
7134 sixtyfour bits
7135 #endif
7136
7137 _ACEOF
7138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7139 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7140 gl_cv_solaris_64bit=yes
7141 else
7142 gl_cv_solaris_64bit=no
7143 fi
7144 rm -f conftest*
7145
7146
7147 fi
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7149 $as_echo "$gl_cv_solaris_64bit" >&6; }
7150 if test $gl_cv_solaris_64bit = yes; then
7151 acl_libdirstem=lib/64
7152 case "$host_cpu" in
7153 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7154 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7155 esac
7156 fi
7157 ;;
7158 *)
7159 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7160 if test -n "$searchpath"; then
7161 acl_save_IFS="${IFS= }"; IFS=":"
7162 for searchdir in $searchpath; do
7163 if test -d "$searchdir"; then
7164 case "$searchdir" in
7165 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7166 */../ | */.. )
7167 # Better ignore directories of this form. They are misleading.
7168 ;;
7169 *) searchdir=`cd "$searchdir" && pwd`
7170 case "$searchdir" in
7171 */lib64 ) acl_libdirstem=lib64 ;;
7172 esac ;;
7173 esac
7174 fi
7175 done
7176 IFS="$acl_save_IFS"
7177 fi
7178 ;;
7179 esac
7180 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 use_additional=yes
7194
7195 acl_save_prefix="$prefix"
7196 prefix="$acl_final_prefix"
7197 acl_save_exec_prefix="$exec_prefix"
7198 exec_prefix="$acl_final_exec_prefix"
7199
7200 eval additional_includedir=\"$includedir\"
7201 eval additional_libdir=\"$libdir\"
7202
7203 exec_prefix="$acl_save_exec_prefix"
7204 prefix="$acl_save_prefix"
7205
7206
7207 # Check whether --with-libiconv-prefix was given.
7208 if test "${with_libiconv_prefix+set}" = set; then :
7209 withval=$with_libiconv_prefix;
7210 if test "X$withval" = "Xno"; then
7211 use_additional=no
7212 else
7213 if test "X$withval" = "X"; then
7214
7215 acl_save_prefix="$prefix"
7216 prefix="$acl_final_prefix"
7217 acl_save_exec_prefix="$exec_prefix"
7218 exec_prefix="$acl_final_exec_prefix"
7219
7220 eval additional_includedir=\"$includedir\"
7221 eval additional_libdir=\"$libdir\"
7222
7223 exec_prefix="$acl_save_exec_prefix"
7224 prefix="$acl_save_prefix"
7225
7226 else
7227 additional_includedir="$withval/include"
7228 additional_libdir="$withval/$acl_libdirstem"
7229 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7230 && ! test -d "$withval/$acl_libdirstem"; then
7231 additional_libdir="$withval/$acl_libdirstem2"
7232 fi
7233 fi
7234 fi
7235
7236 fi
7237
7238 LIBICONV=
7239 LTLIBICONV=
7240 INCICONV=
7241 LIBICONV_PREFIX=
7242 HAVE_LIBICONV=
7243 rpathdirs=
7244 ltrpathdirs=
7245 names_already_handled=
7246 names_next_round='iconv '
7247 while test -n "$names_next_round"; do
7248 names_this_round="$names_next_round"
7249 names_next_round=
7250 for name in $names_this_round; do
7251 already_handled=
7252 for n in $names_already_handled; do
7253 if test "$n" = "$name"; then
7254 already_handled=yes
7255 break
7256 fi
7257 done
7258 if test -z "$already_handled"; then
7259 names_already_handled="$names_already_handled $name"
7260 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7261 eval value=\"\$HAVE_LIB$uppername\"
7262 if test -n "$value"; then
7263 if test "$value" = yes; then
7264 eval value=\"\$LIB$uppername\"
7265 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7266 eval value=\"\$LTLIB$uppername\"
7267 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7268 else
7269 :
7270 fi
7271 else
7272 found_dir=
7273 found_la=
7274 found_so=
7275 found_a=
7276 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7277 if test -n "$acl_shlibext"; then
7278 shrext=".$acl_shlibext" # typically: shrext=.so
7279 else
7280 shrext=
7281 fi
7282 if test $use_additional = yes; then
7283 dir="$additional_libdir"
7284 if test -n "$acl_shlibext"; then
7285 if test -f "$dir/$libname$shrext"; then
7286 found_dir="$dir"
7287 found_so="$dir/$libname$shrext"
7288 else
7289 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7290 ver=`(cd "$dir" && \
7291 for f in "$libname$shrext".*; do echo "$f"; done \
7292 | sed -e "s,^$libname$shrext\\\\.,," \
7293 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7294 | sed 1q ) 2>/dev/null`
7295 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7296 found_dir="$dir"
7297 found_so="$dir/$libname$shrext.$ver"
7298 fi
7299 else
7300 eval library_names=\"$acl_library_names_spec\"
7301 for f in $library_names; do
7302 if test -f "$dir/$f"; then
7303 found_dir="$dir"
7304 found_so="$dir/$f"
7305 break
7306 fi
7307 done
7308 fi
7309 fi
7310 fi
7311 if test "X$found_dir" = "X"; then
7312 if test -f "$dir/$libname.$acl_libext"; then
7313 found_dir="$dir"
7314 found_a="$dir/$libname.$acl_libext"
7315 fi
7316 fi
7317 if test "X$found_dir" != "X"; then
7318 if test -f "$dir/$libname.la"; then
7319 found_la="$dir/$libname.la"
7320 fi
7321 fi
7322 fi
7323 if test "X$found_dir" = "X"; then
7324 for x in $LDFLAGS $LTLIBICONV; do
7325
7326 acl_save_prefix="$prefix"
7327 prefix="$acl_final_prefix"
7328 acl_save_exec_prefix="$exec_prefix"
7329 exec_prefix="$acl_final_exec_prefix"
7330 eval x=\"$x\"
7331 exec_prefix="$acl_save_exec_prefix"
7332 prefix="$acl_save_prefix"
7333
7334 case "$x" in
7335 -L*)
7336 dir=`echo "X$x" | sed -e 's/^X-L//'`
7337 if test -n "$acl_shlibext"; then
7338 if test -f "$dir/$libname$shrext"; then
7339 found_dir="$dir"
7340 found_so="$dir/$libname$shrext"
7341 else
7342 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7343 ver=`(cd "$dir" && \
7344 for f in "$libname$shrext".*; do echo "$f"; done \
7345 | sed -e "s,^$libname$shrext\\\\.,," \
7346 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7347 | sed 1q ) 2>/dev/null`
7348 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7349 found_dir="$dir"
7350 found_so="$dir/$libname$shrext.$ver"
7351 fi
7352 else
7353 eval library_names=\"$acl_library_names_spec\"
7354 for f in $library_names; do
7355 if test -f "$dir/$f"; then
7356 found_dir="$dir"
7357 found_so="$dir/$f"
7358 break
7359 fi
7360 done
7361 fi
7362 fi
7363 fi
7364 if test "X$found_dir" = "X"; then
7365 if test -f "$dir/$libname.$acl_libext"; then
7366 found_dir="$dir"
7367 found_a="$dir/$libname.$acl_libext"
7368 fi
7369 fi
7370 if test "X$found_dir" != "X"; then
7371 if test -f "$dir/$libname.la"; then
7372 found_la="$dir/$libname.la"
7373 fi
7374 fi
7375 ;;
7376 esac
7377 if test "X$found_dir" != "X"; then
7378 break
7379 fi
7380 done
7381 fi
7382 if test "X$found_dir" != "X"; then
7383 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7384 if test "X$found_so" != "X"; then
7385 if test "$enable_rpath" = no \
7386 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7387 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7388 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7389 else
7390 haveit=
7391 for x in $ltrpathdirs; do
7392 if test "X$x" = "X$found_dir"; then
7393 haveit=yes
7394 break
7395 fi
7396 done
7397 if test -z "$haveit"; then
7398 ltrpathdirs="$ltrpathdirs $found_dir"
7399 fi
7400 if test "$acl_hardcode_direct" = yes; then
7401 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7402 else
7403 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7404 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7405 haveit=
7406 for x in $rpathdirs; do
7407 if test "X$x" = "X$found_dir"; then
7408 haveit=yes
7409 break
7410 fi
7411 done
7412 if test -z "$haveit"; then
7413 rpathdirs="$rpathdirs $found_dir"
7414 fi
7415 else
7416 haveit=
7417 for x in $LDFLAGS $LIBICONV; do
7418
7419 acl_save_prefix="$prefix"
7420 prefix="$acl_final_prefix"
7421 acl_save_exec_prefix="$exec_prefix"
7422 exec_prefix="$acl_final_exec_prefix"
7423 eval x=\"$x\"
7424 exec_prefix="$acl_save_exec_prefix"
7425 prefix="$acl_save_prefix"
7426
7427 if test "X$x" = "X-L$found_dir"; then
7428 haveit=yes
7429 break
7430 fi
7431 done
7432 if test -z "$haveit"; then
7433 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7434 fi
7435 if test "$acl_hardcode_minus_L" != no; then
7436 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7437 else
7438 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7439 fi
7440 fi
7441 fi
7442 fi
7443 else
7444 if test "X$found_a" != "X"; then
7445 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7446 else
7447 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7448 fi
7449 fi
7450 additional_includedir=
7451 case "$found_dir" in
7452 */$acl_libdirstem | */$acl_libdirstem/)
7453 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7454 if test "$name" = 'iconv'; then
7455 LIBICONV_PREFIX="$basedir"
7456 fi
7457 additional_includedir="$basedir/include"
7458 ;;
7459 */$acl_libdirstem2 | */$acl_libdirstem2/)
7460 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7461 if test "$name" = 'iconv'; then
7462 LIBICONV_PREFIX="$basedir"
7463 fi
7464 additional_includedir="$basedir/include"
7465 ;;
7466 esac
7467 if test "X$additional_includedir" != "X"; then
7468 if test "X$additional_includedir" != "X/usr/include"; then
7469 haveit=
7470 if test "X$additional_includedir" = "X/usr/local/include"; then
7471 if test -n "$GCC"; then
7472 case $host_os in
7473 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7474 esac
7475 fi
7476 fi
7477 if test -z "$haveit"; then
7478 for x in $CPPFLAGS $INCICONV; do
7479
7480 acl_save_prefix="$prefix"
7481 prefix="$acl_final_prefix"
7482 acl_save_exec_prefix="$exec_prefix"
7483 exec_prefix="$acl_final_exec_prefix"
7484 eval x=\"$x\"
7485 exec_prefix="$acl_save_exec_prefix"
7486 prefix="$acl_save_prefix"
7487
7488 if test "X$x" = "X-I$additional_includedir"; then
7489 haveit=yes
7490 break
7491 fi
7492 done
7493 if test -z "$haveit"; then
7494 if test -d "$additional_includedir"; then
7495 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7496 fi
7497 fi
7498 fi
7499 fi
7500 fi
7501 if test -n "$found_la"; then
7502 save_libdir="$libdir"
7503 case "$found_la" in
7504 */* | *\\*) . "$found_la" ;;
7505 *) . "./$found_la" ;;
7506 esac
7507 libdir="$save_libdir"
7508 for dep in $dependency_libs; do
7509 case "$dep" in
7510 -L*)
7511 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7512 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7513 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7514 haveit=
7515 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7516 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7517 if test -n "$GCC"; then
7518 case $host_os in
7519 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7520 esac
7521 fi
7522 fi
7523 if test -z "$haveit"; then
7524 haveit=
7525 for x in $LDFLAGS $LIBICONV; do
7526
7527 acl_save_prefix="$prefix"
7528 prefix="$acl_final_prefix"
7529 acl_save_exec_prefix="$exec_prefix"
7530 exec_prefix="$acl_final_exec_prefix"
7531 eval x=\"$x\"
7532 exec_prefix="$acl_save_exec_prefix"
7533 prefix="$acl_save_prefix"
7534
7535 if test "X$x" = "X-L$additional_libdir"; then
7536 haveit=yes
7537 break
7538 fi
7539 done
7540 if test -z "$haveit"; then
7541 if test -d "$additional_libdir"; then
7542 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7543 fi
7544 fi
7545 haveit=
7546 for x in $LDFLAGS $LTLIBICONV; do
7547
7548 acl_save_prefix="$prefix"
7549 prefix="$acl_final_prefix"
7550 acl_save_exec_prefix="$exec_prefix"
7551 exec_prefix="$acl_final_exec_prefix"
7552 eval x=\"$x\"
7553 exec_prefix="$acl_save_exec_prefix"
7554 prefix="$acl_save_prefix"
7555
7556 if test "X$x" = "X-L$additional_libdir"; then
7557 haveit=yes
7558 break
7559 fi
7560 done
7561 if test -z "$haveit"; then
7562 if test -d "$additional_libdir"; then
7563 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7564 fi
7565 fi
7566 fi
7567 fi
7568 ;;
7569 -R*)
7570 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7571 if test "$enable_rpath" != no; then
7572 haveit=
7573 for x in $rpathdirs; do
7574 if test "X$x" = "X$dir"; then
7575 haveit=yes
7576 break
7577 fi
7578 done
7579 if test -z "$haveit"; then
7580 rpathdirs="$rpathdirs $dir"
7581 fi
7582 haveit=
7583 for x in $ltrpathdirs; do
7584 if test "X$x" = "X$dir"; then
7585 haveit=yes
7586 break
7587 fi
7588 done
7589 if test -z "$haveit"; then
7590 ltrpathdirs="$ltrpathdirs $dir"
7591 fi
7592 fi
7593 ;;
7594 -l*)
7595 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7596 ;;
7597 *.la)
7598 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7599 ;;
7600 *)
7601 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7602 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7603 ;;
7604 esac
7605 done
7606 fi
7607 else
7608 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7609 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7610 fi
7611 fi
7612 fi
7613 done
7614 done
7615 if test "X$rpathdirs" != "X"; then
7616 if test -n "$acl_hardcode_libdir_separator"; then
7617 alldirs=
7618 for found_dir in $rpathdirs; do
7619 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7620 done
7621 acl_save_libdir="$libdir"
7622 libdir="$alldirs"
7623 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7624 libdir="$acl_save_libdir"
7625 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7626 else
7627 for found_dir in $rpathdirs; do
7628 acl_save_libdir="$libdir"
7629 libdir="$found_dir"
7630 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7631 libdir="$acl_save_libdir"
7632 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7633 done
7634 fi
7635 fi
7636 if test "X$ltrpathdirs" != "X"; then
7637 for found_dir in $ltrpathdirs; do
7638 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7639 done
7640 fi
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7673 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7674 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 gt_save_LIBS="$LIBS"
7678 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 #include <CoreFoundation/CFPreferences.h>
7682 int
7683 main ()
7684 {
7685 CFPreferencesCopyAppValue(NULL, NULL)
7686 ;
7687 return 0;
7688 }
7689 _ACEOF
7690 if ac_fn_c_try_link "$LINENO"; then :
7691 gt_cv_func_CFPreferencesCopyAppValue=yes
7692 else
7693 gt_cv_func_CFPreferencesCopyAppValue=no
7694 fi
7695 rm -f core conftest.err conftest.$ac_objext \
7696 conftest$ac_exeext conftest.$ac_ext
7697 LIBS="$gt_save_LIBS"
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7700 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7701 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7702
7703 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7704
7705 fi
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
7707 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
7708 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 gt_save_LIBS="$LIBS"
7712 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7715 #include <CoreFoundation/CFLocale.h>
7716 int
7717 main ()
7718 {
7719 CFLocaleCopyCurrent();
7720 ;
7721 return 0;
7722 }
7723 _ACEOF
7724 if ac_fn_c_try_link "$LINENO"; then :
7725 gt_cv_func_CFLocaleCopyCurrent=yes
7726 else
7727 gt_cv_func_CFLocaleCopyCurrent=no
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
7731 LIBS="$gt_save_LIBS"
7732 fi
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7734 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
7735 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7736
7737 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
7738
7739 fi
7740 INTL_MACOSX_LIBS=
7741 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7742 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7743 fi
7744
7745
7746
7747
7748
7749
7750 LIBINTL=
7751 LTLIBINTL=
7752 POSUB=
7753
7754 case " $gt_needs " in
7755 *" need-formatstring-macros "*) gt_api_version=3 ;;
7756 *" need-ngettext "*) gt_api_version=2 ;;
7757 *) gt_api_version=1 ;;
7758 esac
7759 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7760 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7761
7762 if test "$USE_NLS" = "yes"; then
7763 gt_use_preinstalled_gnugettext=no
7764
7765
7766 if test $gt_api_version -ge 3; then
7767 gt_revision_test_code='
7768 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7769 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7770 #endif
7771 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7772 '
7773 else
7774 gt_revision_test_code=
7775 fi
7776 if test $gt_api_version -ge 2; then
7777 gt_expression_test_code=' + * ngettext ("", "", 0)'
7778 else
7779 gt_expression_test_code=
7780 fi
7781
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7783 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7784 if eval \${$gt_func_gnugettext_libc+:} false; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789
7790 #include <libintl.h>
7791 $gt_revision_test_code
7792 extern int _nl_msg_cat_cntr;
7793 extern int *_nl_domain_bindings;
7794
7795 int
7796 main ()
7797 {
7798
7799 bindtextdomain ("", "");
7800 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7801
7802 ;
7803 return 0;
7804 }
7805 _ACEOF
7806 if ac_fn_c_try_link "$LINENO"; then :
7807 eval "$gt_func_gnugettext_libc=yes"
7808 else
7809 eval "$gt_func_gnugettext_libc=no"
7810 fi
7811 rm -f core conftest.err conftest.$ac_objext \
7812 conftest$ac_exeext conftest.$ac_ext
7813 fi
7814 eval ac_res=\$$gt_func_gnugettext_libc
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7816 $as_echo "$ac_res" >&6; }
7817
7818 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7819
7820
7821
7822
7823
7824 am_save_CPPFLAGS="$CPPFLAGS"
7825
7826 for element in $INCICONV; do
7827 haveit=
7828 for x in $CPPFLAGS; do
7829
7830 acl_save_prefix="$prefix"
7831 prefix="$acl_final_prefix"
7832 acl_save_exec_prefix="$exec_prefix"
7833 exec_prefix="$acl_final_exec_prefix"
7834 eval x=\"$x\"
7835 exec_prefix="$acl_save_exec_prefix"
7836 prefix="$acl_save_prefix"
7837
7838 if test "X$x" = "X$element"; then
7839 haveit=yes
7840 break
7841 fi
7842 done
7843 if test -z "$haveit"; then
7844 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7845 fi
7846 done
7847
7848
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7850 $as_echo_n "checking for iconv... " >&6; }
7851 if ${am_cv_func_iconv+:} false; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854
7855 am_cv_func_iconv="no, consider installing GNU libiconv"
7856 am_cv_lib_iconv=no
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7859
7860 #include <stdlib.h>
7861 #include <iconv.h>
7862
7863 int
7864 main ()
7865 {
7866 iconv_t cd = iconv_open("","");
7867 iconv(cd,NULL,NULL,NULL,NULL);
7868 iconv_close(cd);
7869 ;
7870 return 0;
7871 }
7872 _ACEOF
7873 if ac_fn_c_try_link "$LINENO"; then :
7874 am_cv_func_iconv=yes
7875 fi
7876 rm -f core conftest.err conftest.$ac_objext \
7877 conftest$ac_exeext conftest.$ac_ext
7878 if test "$am_cv_func_iconv" != yes; then
7879 am_save_LIBS="$LIBS"
7880 LIBS="$LIBS $LIBICONV"
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7883
7884 #include <stdlib.h>
7885 #include <iconv.h>
7886
7887 int
7888 main ()
7889 {
7890 iconv_t cd = iconv_open("","");
7891 iconv(cd,NULL,NULL,NULL,NULL);
7892 iconv_close(cd);
7893 ;
7894 return 0;
7895 }
7896 _ACEOF
7897 if ac_fn_c_try_link "$LINENO"; then :
7898 am_cv_lib_iconv=yes
7899 am_cv_func_iconv=yes
7900 fi
7901 rm -f core conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7903 LIBS="$am_save_LIBS"
7904 fi
7905
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7908 $as_echo "$am_cv_func_iconv" >&6; }
7909 if test "$am_cv_func_iconv" = yes; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7911 $as_echo_n "checking for working iconv... " >&6; }
7912 if ${am_cv_func_iconv_works+:} false; then :
7913 $as_echo_n "(cached) " >&6
7914 else
7915
7916 am_save_LIBS="$LIBS"
7917 if test $am_cv_lib_iconv = yes; then
7918 LIBS="$LIBS $LIBICONV"
7919 fi
7920 am_cv_func_iconv_works=no
7921 for ac_iconv_const in '' 'const'; do
7922 if test "$cross_compiling" = yes; then :
7923 case "$host_os" in
7924 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7925 *) am_cv_func_iconv_works="guessing yes" ;;
7926 esac
7927 else
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7930
7931 #include <iconv.h>
7932 #include <string.h>
7933
7934 #ifndef ICONV_CONST
7935 # define ICONV_CONST $ac_iconv_const
7936 #endif
7937
7938 int
7939 main ()
7940 {
7941 int result = 0;
7942 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7943 returns. */
7944 {
7945 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7946 if (cd_utf8_to_88591 != (iconv_t)(-1))
7947 {
7948 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
7949 char buf[10];
7950 ICONV_CONST char *inptr = input;
7951 size_t inbytesleft = strlen (input);
7952 char *outptr = buf;
7953 size_t outbytesleft = sizeof (buf);
7954 size_t res = iconv (cd_utf8_to_88591,
7955 &inptr, &inbytesleft,
7956 &outptr, &outbytesleft);
7957 if (res == 0)
7958 result |= 1;
7959 iconv_close (cd_utf8_to_88591);
7960 }
7961 }
7962 /* Test against Solaris 10 bug: Failures are not distinguishable from
7963 successful returns. */
7964 {
7965 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7966 if (cd_ascii_to_88591 != (iconv_t)(-1))
7967 {
7968 static ICONV_CONST char input[] = "\263";
7969 char buf[10];
7970 ICONV_CONST char *inptr = input;
7971 size_t inbytesleft = strlen (input);
7972 char *outptr = buf;
7973 size_t outbytesleft = sizeof (buf);
7974 size_t res = iconv (cd_ascii_to_88591,
7975 &inptr, &inbytesleft,
7976 &outptr, &outbytesleft);
7977 if (res == 0)
7978 result |= 2;
7979 iconv_close (cd_ascii_to_88591);
7980 }
7981 }
7982 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
7983 {
7984 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
7985 if (cd_88591_to_utf8 != (iconv_t)(-1))
7986 {
7987 static ICONV_CONST char input[] = "\304";
7988 static char buf[2] = { (char)0xDE, (char)0xAD };
7989 ICONV_CONST char *inptr = input;
7990 size_t inbytesleft = 1;
7991 char *outptr = buf;
7992 size_t outbytesleft = 1;
7993 size_t res = iconv (cd_88591_to_utf8,
7994 &inptr, &inbytesleft,
7995 &outptr, &outbytesleft);
7996 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
7997 result |= 4;
7998 iconv_close (cd_88591_to_utf8);
7999 }
8000 }
8001 #if 0 /* This bug could be worked around by the caller. */
8002 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8003 {
8004 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8005 if (cd_88591_to_utf8 != (iconv_t)(-1))
8006 {
8007 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8008 char buf[50];
8009 ICONV_CONST char *inptr = input;
8010 size_t inbytesleft = strlen (input);
8011 char *outptr = buf;
8012 size_t outbytesleft = sizeof (buf);
8013 size_t res = iconv (cd_88591_to_utf8,
8014 &inptr, &inbytesleft,
8015 &outptr, &outbytesleft);
8016 if ((int)res > 0)
8017 result |= 8;
8018 iconv_close (cd_88591_to_utf8);
8019 }
8020 }
8021 #endif
8022 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8023 provided. */
8024 if (/* Try standardized names. */
8025 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8026 /* Try IRIX, OSF/1 names. */
8027 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8028 /* Try AIX names. */
8029 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8030 /* Try HP-UX names. */
8031 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8032 result |= 16;
8033 return result;
8034
8035 ;
8036 return 0;
8037 }
8038 _ACEOF
8039 if ac_fn_c_try_run "$LINENO"; then :
8040 am_cv_func_iconv_works=yes
8041 fi
8042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8043 conftest.$ac_objext conftest.beam conftest.$ac_ext
8044 fi
8045
8046 test "$am_cv_func_iconv_works" = no || break
8047 done
8048 LIBS="$am_save_LIBS"
8049
8050 fi
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8052 $as_echo "$am_cv_func_iconv_works" >&6; }
8053 case "$am_cv_func_iconv_works" in
8054 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8055 *) am_func_iconv=yes ;;
8056 esac
8057 else
8058 am_func_iconv=no am_cv_lib_iconv=no
8059 fi
8060 if test "$am_func_iconv" = yes; then
8061
8062 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8063
8064 fi
8065 if test "$am_cv_lib_iconv" = yes; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8067 $as_echo_n "checking how to link with libiconv... " >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8069 $as_echo "$LIBICONV" >&6; }
8070 else
8071 CPPFLAGS="$am_save_CPPFLAGS"
8072 LIBICONV=
8073 LTLIBICONV=
8074 fi
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086 use_additional=yes
8087
8088 acl_save_prefix="$prefix"
8089 prefix="$acl_final_prefix"
8090 acl_save_exec_prefix="$exec_prefix"
8091 exec_prefix="$acl_final_exec_prefix"
8092
8093 eval additional_includedir=\"$includedir\"
8094 eval additional_libdir=\"$libdir\"
8095
8096 exec_prefix="$acl_save_exec_prefix"
8097 prefix="$acl_save_prefix"
8098
8099
8100 # Check whether --with-libintl-prefix was given.
8101 if test "${with_libintl_prefix+set}" = set; then :
8102 withval=$with_libintl_prefix;
8103 if test "X$withval" = "Xno"; then
8104 use_additional=no
8105 else
8106 if test "X$withval" = "X"; then
8107
8108 acl_save_prefix="$prefix"
8109 prefix="$acl_final_prefix"
8110 acl_save_exec_prefix="$exec_prefix"
8111 exec_prefix="$acl_final_exec_prefix"
8112
8113 eval additional_includedir=\"$includedir\"
8114 eval additional_libdir=\"$libdir\"
8115
8116 exec_prefix="$acl_save_exec_prefix"
8117 prefix="$acl_save_prefix"
8118
8119 else
8120 additional_includedir="$withval/include"
8121 additional_libdir="$withval/$acl_libdirstem"
8122 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8123 && ! test -d "$withval/$acl_libdirstem"; then
8124 additional_libdir="$withval/$acl_libdirstem2"
8125 fi
8126 fi
8127 fi
8128
8129 fi
8130
8131 LIBINTL=
8132 LTLIBINTL=
8133 INCINTL=
8134 LIBINTL_PREFIX=
8135 HAVE_LIBINTL=
8136 rpathdirs=
8137 ltrpathdirs=
8138 names_already_handled=
8139 names_next_round='intl '
8140 while test -n "$names_next_round"; do
8141 names_this_round="$names_next_round"
8142 names_next_round=
8143 for name in $names_this_round; do
8144 already_handled=
8145 for n in $names_already_handled; do
8146 if test "$n" = "$name"; then
8147 already_handled=yes
8148 break
8149 fi
8150 done
8151 if test -z "$already_handled"; then
8152 names_already_handled="$names_already_handled $name"
8153 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8154 eval value=\"\$HAVE_LIB$uppername\"
8155 if test -n "$value"; then
8156 if test "$value" = yes; then
8157 eval value=\"\$LIB$uppername\"
8158 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8159 eval value=\"\$LTLIB$uppername\"
8160 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8161 else
8162 :
8163 fi
8164 else
8165 found_dir=
8166 found_la=
8167 found_so=
8168 found_a=
8169 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8170 if test -n "$acl_shlibext"; then
8171 shrext=".$acl_shlibext" # typically: shrext=.so
8172 else
8173 shrext=
8174 fi
8175 if test $use_additional = yes; then
8176 dir="$additional_libdir"
8177 if test -n "$acl_shlibext"; then
8178 if test -f "$dir/$libname$shrext"; then
8179 found_dir="$dir"
8180 found_so="$dir/$libname$shrext"
8181 else
8182 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8183 ver=`(cd "$dir" && \
8184 for f in "$libname$shrext".*; do echo "$f"; done \
8185 | sed -e "s,^$libname$shrext\\\\.,," \
8186 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8187 | sed 1q ) 2>/dev/null`
8188 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8189 found_dir="$dir"
8190 found_so="$dir/$libname$shrext.$ver"
8191 fi
8192 else
8193 eval library_names=\"$acl_library_names_spec\"
8194 for f in $library_names; do
8195 if test -f "$dir/$f"; then
8196 found_dir="$dir"
8197 found_so="$dir/$f"
8198 break
8199 fi
8200 done
8201 fi
8202 fi
8203 fi
8204 if test "X$found_dir" = "X"; then
8205 if test -f "$dir/$libname.$acl_libext"; then
8206 found_dir="$dir"
8207 found_a="$dir/$libname.$acl_libext"
8208 fi
8209 fi
8210 if test "X$found_dir" != "X"; then
8211 if test -f "$dir/$libname.la"; then
8212 found_la="$dir/$libname.la"
8213 fi
8214 fi
8215 fi
8216 if test "X$found_dir" = "X"; then
8217 for x in $LDFLAGS $LTLIBINTL; do
8218
8219 acl_save_prefix="$prefix"
8220 prefix="$acl_final_prefix"
8221 acl_save_exec_prefix="$exec_prefix"
8222 exec_prefix="$acl_final_exec_prefix"
8223 eval x=\"$x\"
8224 exec_prefix="$acl_save_exec_prefix"
8225 prefix="$acl_save_prefix"
8226
8227 case "$x" in
8228 -L*)
8229 dir=`echo "X$x" | sed -e 's/^X-L//'`
8230 if test -n "$acl_shlibext"; then
8231 if test -f "$dir/$libname$shrext"; then
8232 found_dir="$dir"
8233 found_so="$dir/$libname$shrext"
8234 else
8235 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8236 ver=`(cd "$dir" && \
8237 for f in "$libname$shrext".*; do echo "$f"; done \
8238 | sed -e "s,^$libname$shrext\\\\.,," \
8239 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8240 | sed 1q ) 2>/dev/null`
8241 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8242 found_dir="$dir"
8243 found_so="$dir/$libname$shrext.$ver"
8244 fi
8245 else
8246 eval library_names=\"$acl_library_names_spec\"
8247 for f in $library_names; do
8248 if test -f "$dir/$f"; then
8249 found_dir="$dir"
8250 found_so="$dir/$f"
8251 break
8252 fi
8253 done
8254 fi
8255 fi
8256 fi
8257 if test "X$found_dir" = "X"; then
8258 if test -f "$dir/$libname.$acl_libext"; then
8259 found_dir="$dir"
8260 found_a="$dir/$libname.$acl_libext"
8261 fi
8262 fi
8263 if test "X$found_dir" != "X"; then
8264 if test -f "$dir/$libname.la"; then
8265 found_la="$dir/$libname.la"
8266 fi
8267 fi
8268 ;;
8269 esac
8270 if test "X$found_dir" != "X"; then
8271 break
8272 fi
8273 done
8274 fi
8275 if test "X$found_dir" != "X"; then
8276 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8277 if test "X$found_so" != "X"; then
8278 if test "$enable_rpath" = no \
8279 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8280 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8281 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8282 else
8283 haveit=
8284 for x in $ltrpathdirs; do
8285 if test "X$x" = "X$found_dir"; then
8286 haveit=yes
8287 break
8288 fi
8289 done
8290 if test -z "$haveit"; then
8291 ltrpathdirs="$ltrpathdirs $found_dir"
8292 fi
8293 if test "$acl_hardcode_direct" = yes; then
8294 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8295 else
8296 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8297 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8298 haveit=
8299 for x in $rpathdirs; do
8300 if test "X$x" = "X$found_dir"; then
8301 haveit=yes
8302 break
8303 fi
8304 done
8305 if test -z "$haveit"; then
8306 rpathdirs="$rpathdirs $found_dir"
8307 fi
8308 else
8309 haveit=
8310 for x in $LDFLAGS $LIBINTL; do
8311
8312 acl_save_prefix="$prefix"
8313 prefix="$acl_final_prefix"
8314 acl_save_exec_prefix="$exec_prefix"
8315 exec_prefix="$acl_final_exec_prefix"
8316 eval x=\"$x\"
8317 exec_prefix="$acl_save_exec_prefix"
8318 prefix="$acl_save_prefix"
8319
8320 if test "X$x" = "X-L$found_dir"; then
8321 haveit=yes
8322 break
8323 fi
8324 done
8325 if test -z "$haveit"; then
8326 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8327 fi
8328 if test "$acl_hardcode_minus_L" != no; then
8329 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8330 else
8331 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8332 fi
8333 fi
8334 fi
8335 fi
8336 else
8337 if test "X$found_a" != "X"; then
8338 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8339 else
8340 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8341 fi
8342 fi
8343 additional_includedir=
8344 case "$found_dir" in
8345 */$acl_libdirstem | */$acl_libdirstem/)
8346 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8347 if test "$name" = 'intl'; then
8348 LIBINTL_PREFIX="$basedir"
8349 fi
8350 additional_includedir="$basedir/include"
8351 ;;
8352 */$acl_libdirstem2 | */$acl_libdirstem2/)
8353 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8354 if test "$name" = 'intl'; then
8355 LIBINTL_PREFIX="$basedir"
8356 fi
8357 additional_includedir="$basedir/include"
8358 ;;
8359 esac
8360 if test "X$additional_includedir" != "X"; then
8361 if test "X$additional_includedir" != "X/usr/include"; then
8362 haveit=
8363 if test "X$additional_includedir" = "X/usr/local/include"; then
8364 if test -n "$GCC"; then
8365 case $host_os in
8366 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8367 esac
8368 fi
8369 fi
8370 if test -z "$haveit"; then
8371 for x in $CPPFLAGS $INCINTL; do
8372
8373 acl_save_prefix="$prefix"
8374 prefix="$acl_final_prefix"
8375 acl_save_exec_prefix="$exec_prefix"
8376 exec_prefix="$acl_final_exec_prefix"
8377 eval x=\"$x\"
8378 exec_prefix="$acl_save_exec_prefix"
8379 prefix="$acl_save_prefix"
8380
8381 if test "X$x" = "X-I$additional_includedir"; then
8382 haveit=yes
8383 break
8384 fi
8385 done
8386 if test -z "$haveit"; then
8387 if test -d "$additional_includedir"; then
8388 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8389 fi
8390 fi
8391 fi
8392 fi
8393 fi
8394 if test -n "$found_la"; then
8395 save_libdir="$libdir"
8396 case "$found_la" in
8397 */* | *\\*) . "$found_la" ;;
8398 *) . "./$found_la" ;;
8399 esac
8400 libdir="$save_libdir"
8401 for dep in $dependency_libs; do
8402 case "$dep" in
8403 -L*)
8404 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8405 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8406 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8407 haveit=
8408 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8409 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8410 if test -n "$GCC"; then
8411 case $host_os in
8412 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8413 esac
8414 fi
8415 fi
8416 if test -z "$haveit"; then
8417 haveit=
8418 for x in $LDFLAGS $LIBINTL; do
8419
8420 acl_save_prefix="$prefix"
8421 prefix="$acl_final_prefix"
8422 acl_save_exec_prefix="$exec_prefix"
8423 exec_prefix="$acl_final_exec_prefix"
8424 eval x=\"$x\"
8425 exec_prefix="$acl_save_exec_prefix"
8426 prefix="$acl_save_prefix"
8427
8428 if test "X$x" = "X-L$additional_libdir"; then
8429 haveit=yes
8430 break
8431 fi
8432 done
8433 if test -z "$haveit"; then
8434 if test -d "$additional_libdir"; then
8435 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8436 fi
8437 fi
8438 haveit=
8439 for x in $LDFLAGS $LTLIBINTL; do
8440
8441 acl_save_prefix="$prefix"
8442 prefix="$acl_final_prefix"
8443 acl_save_exec_prefix="$exec_prefix"
8444 exec_prefix="$acl_final_exec_prefix"
8445 eval x=\"$x\"
8446 exec_prefix="$acl_save_exec_prefix"
8447 prefix="$acl_save_prefix"
8448
8449 if test "X$x" = "X-L$additional_libdir"; then
8450 haveit=yes
8451 break
8452 fi
8453 done
8454 if test -z "$haveit"; then
8455 if test -d "$additional_libdir"; then
8456 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8457 fi
8458 fi
8459 fi
8460 fi
8461 ;;
8462 -R*)
8463 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8464 if test "$enable_rpath" != no; then
8465 haveit=
8466 for x in $rpathdirs; do
8467 if test "X$x" = "X$dir"; then
8468 haveit=yes
8469 break
8470 fi
8471 done
8472 if test -z "$haveit"; then
8473 rpathdirs="$rpathdirs $dir"
8474 fi
8475 haveit=
8476 for x in $ltrpathdirs; do
8477 if test "X$x" = "X$dir"; then
8478 haveit=yes
8479 break
8480 fi
8481 done
8482 if test -z "$haveit"; then
8483 ltrpathdirs="$ltrpathdirs $dir"
8484 fi
8485 fi
8486 ;;
8487 -l*)
8488 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8489 ;;
8490 *.la)
8491 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8492 ;;
8493 *)
8494 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8495 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8496 ;;
8497 esac
8498 done
8499 fi
8500 else
8501 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8502 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8503 fi
8504 fi
8505 fi
8506 done
8507 done
8508 if test "X$rpathdirs" != "X"; then
8509 if test -n "$acl_hardcode_libdir_separator"; then
8510 alldirs=
8511 for found_dir in $rpathdirs; do
8512 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8513 done
8514 acl_save_libdir="$libdir"
8515 libdir="$alldirs"
8516 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8517 libdir="$acl_save_libdir"
8518 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8519 else
8520 for found_dir in $rpathdirs; do
8521 acl_save_libdir="$libdir"
8522 libdir="$found_dir"
8523 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8524 libdir="$acl_save_libdir"
8525 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8526 done
8527 fi
8528 fi
8529 if test "X$ltrpathdirs" != "X"; then
8530 for found_dir in $ltrpathdirs; do
8531 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8532 done
8533 fi
8534
8535
8536
8537
8538
8539
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8541 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8542 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8545 gt_save_CPPFLAGS="$CPPFLAGS"
8546 CPPFLAGS="$CPPFLAGS $INCINTL"
8547 gt_save_LIBS="$LIBS"
8548 LIBS="$LIBS $LIBINTL"
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551
8552 #include <libintl.h>
8553 $gt_revision_test_code
8554 extern int _nl_msg_cat_cntr;
8555 extern
8556 #ifdef __cplusplus
8557 "C"
8558 #endif
8559 const char *_nl_expand_alias (const char *);
8560
8561 int
8562 main ()
8563 {
8564
8565 bindtextdomain ("", "");
8566 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8567
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 if ac_fn_c_try_link "$LINENO"; then :
8573 eval "$gt_func_gnugettext_libintl=yes"
8574 else
8575 eval "$gt_func_gnugettext_libintl=no"
8576 fi
8577 rm -f core conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8579 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8580 LIBS="$LIBS $LIBICONV"
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583
8584 #include <libintl.h>
8585 $gt_revision_test_code
8586 extern int _nl_msg_cat_cntr;
8587 extern
8588 #ifdef __cplusplus
8589 "C"
8590 #endif
8591 const char *_nl_expand_alias (const char *);
8592
8593 int
8594 main ()
8595 {
8596
8597 bindtextdomain ("", "");
8598 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8599
8600 ;
8601 return 0;
8602 }
8603 _ACEOF
8604 if ac_fn_c_try_link "$LINENO"; then :
8605 LIBINTL="$LIBINTL $LIBICONV"
8606 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8607 eval "$gt_func_gnugettext_libintl=yes"
8608
8609 fi
8610 rm -f core conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
8612 fi
8613 CPPFLAGS="$gt_save_CPPFLAGS"
8614 LIBS="$gt_save_LIBS"
8615 fi
8616 eval ac_res=\$$gt_func_gnugettext_libintl
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8618 $as_echo "$ac_res" >&6; }
8619 fi
8620
8621 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8622 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8623 && test "$PACKAGE" != gettext-runtime \
8624 && test "$PACKAGE" != gettext-tools; }; then
8625 gt_use_preinstalled_gnugettext=yes
8626 else
8627 LIBINTL=
8628 LTLIBINTL=
8629 INCINTL=
8630 fi
8631
8632
8633
8634 if test -n "$INTL_MACOSX_LIBS"; then
8635 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8636 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8637 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8638 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8639 fi
8640 fi
8641
8642 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8643 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8644
8645 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8646
8647 else
8648 USE_NLS=no
8649 fi
8650 fi
8651
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8653 $as_echo_n "checking whether to use NLS... " >&6; }
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8655 $as_echo "$USE_NLS" >&6; }
8656 if test "$USE_NLS" = "yes"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8658 $as_echo_n "checking where the gettext function comes from... " >&6; }
8659 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8660 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8661 gt_source="external libintl"
8662 else
8663 gt_source="libc"
8664 fi
8665 else
8666 gt_source="included intl directory"
8667 fi
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8669 $as_echo "$gt_source" >&6; }
8670 fi
8671
8672 if test "$USE_NLS" = "yes"; then
8673
8674 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8675 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8677 $as_echo_n "checking how to link with libintl... " >&6; }
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8679 $as_echo "$LIBINTL" >&6; }
8680
8681 for element in $INCINTL; do
8682 haveit=
8683 for x in $CPPFLAGS; do
8684
8685 acl_save_prefix="$prefix"
8686 prefix="$acl_final_prefix"
8687 acl_save_exec_prefix="$exec_prefix"
8688 exec_prefix="$acl_final_exec_prefix"
8689 eval x=\"$x\"
8690 exec_prefix="$acl_save_exec_prefix"
8691 prefix="$acl_save_prefix"
8692
8693 if test "X$x" = "X$element"; then
8694 haveit=yes
8695 break
8696 fi
8697 done
8698 if test -z "$haveit"; then
8699 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8700 fi
8701 done
8702
8703 fi
8704
8705
8706 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8707
8708
8709 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8710
8711 fi
8712
8713 POSUB=po
8714 fi
8715
8716
8717
8718 INTLLIBS="$LIBINTL"
8719
8720
8721
8722
8723
8724
8725
8726
8727 if test "x$GMSGFMT" = "x:"; then
8728 as_fn_error $? "missing gnu /usr/bin/msgfmt" "$LINENO" 5
8729 fi
8730
8731 # We want the 'PYTHON' varible to be python version 2. We also want
8732 # our custom 'PYTHON3' varible to be python version 3.
8733 #
8734 # Note that the python2/python3 code was inspired by code in the
8735 # 'abrt' configure:
8736 # <https://github.com/abrt/abrt/blob/master/configure.ac>
8737 #
8738 # First, figure out what version of python is in the executable named
8739 # 'python'. On most systems that is python version 2, but on arch
8740 # linux that is python version 3.
8741 # Extract the first word of "python", so it can be a program name with args.
8742 set dummy python; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if ${ac_cv_path_PYTHON_UNKNOWN+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 case $PYTHON_UNKNOWN in
8749 [\\/]* | ?:[\\/]*)
8750 ac_cv_path_PYTHON_UNKNOWN="$PYTHON_UNKNOWN" # Let the user override the test with a path.
8751 ;;
8752 *)
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 for as_dir in $PATH
8755 do
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8760 ac_cv_path_PYTHON_UNKNOWN="$as_dir/$ac_word$ac_exec_ext"
8761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8763 fi
8764 done
8765 done
8766 IFS=$as_save_IFS
8767
8768 test -z "$ac_cv_path_PYTHON_UNKNOWN" && ac_cv_path_PYTHON_UNKNOWN="no"
8769 ;;
8770 esac
8771 fi
8772 PYTHON_UNKNOWN=$ac_cv_path_PYTHON_UNKNOWN
8773 if test -n "$PYTHON_UNKNOWN"; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_UNKNOWN" >&5
8775 $as_echo "$PYTHON_UNKNOWN" >&6; }
8776 else
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8779 fi
8780
8781
8782 if test "x$PYTHON_UNKNOWN" != "xno"; then
8783 # OK, we found 'python'. What version is it?
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON_UNKNOWN is version 2 or 3" >&5
8785 $as_echo_n "checking whether $PYTHON_UNKNOWN is version 2 or 3... " >&6; }
8786 if ${ac_cv_python_unknown_version+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 ac_cv_python_unknown_version=`$PYTHON_UNKNOWN -c "import sys; sys.stdout.write(sys.version[:3][0])"`
8790 fi
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_unknown_version" >&5
8792 $as_echo "$ac_cv_python_unknown_version" >&6; }
8793 fi
8794
8795 # Now we'll update the _AM_PYTHON_INTERPRETER_LIST variable (which
8796 # AM_PATH_PYTHON uses) to only be version 2 versions of python. Note
8797 # that the m4_define happens when autoconf is run, but the
8798 # FIRST_PYTHON_INTERPRETER variable expansion will happen when the
8799 # user runs configure.
8800 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$ac_cv_python_unknown_version" = "x2"; then
8801 FIRST_PYTHON_INTERPRETER=python
8802 else
8803 FIRST_PYTHON_INTERPRETER=python2
8804 fi
8805
8806
8807 # Now we can call AM_PATH_PYTHON to find python version 2.6+ (and
8808 # version 2 only).
8809
8810
8811
8812
8813
8814
8815 if test -n "$PYTHON"; then
8816 # If the user set $PYTHON, use it and don't search something else.
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
8818 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
8819 prog="import sys
8820 # split strings by '.' and convert to numeric. Append some zeros
8821 # because we need at least 4 digits for the hex conversion.
8822 # map returns an iterator in Python 3.0 and a list in 2.x
8823 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
8824 minverhex = 0
8825 # xrange is not present in Python 3.0 and range returns an iterator
8826 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8827 sys.exit(sys.hexversion < minverhex)"
8828 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
8829 ($PYTHON -c "$prog") >&5 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; then :
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8834 $as_echo "yes" >&6; }
8835 else
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8838 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
8839 fi
8840 am_display_PYTHON=$PYTHON
8841 else
8842 # Otherwise, try each interpreter until we find one that satisfies
8843 # VERSION.
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
8845 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
8846 if ${am_cv_pathless_PYTHON+:} false; then :
8847 $as_echo_n "(cached) " >&6
8848 else
8849
8850 for am_cv_pathless_PYTHON in $FIRST_PYTHON_INTERPRETER python2 python2.7 python2.6 none; do
8851 test "$am_cv_pathless_PYTHON" = none && break
8852 prog="import sys
8853 # split strings by '.' and convert to numeric. Append some zeros
8854 # because we need at least 4 digits for the hex conversion.
8855 # map returns an iterator in Python 3.0 and a list in 2.x
8856 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
8857 minverhex = 0
8858 # xrange is not present in Python 3.0 and range returns an iterator
8859 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8860 sys.exit(sys.hexversion < minverhex)"
8861 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
8862 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; then :
8866 break
8867 fi
8868 done
8869 fi
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
8871 $as_echo "$am_cv_pathless_PYTHON" >&6; }
8872 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
8873 if test "$am_cv_pathless_PYTHON" = none; then
8874 PYTHON=:
8875 else
8876 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
8877 set dummy $am_cv_pathless_PYTHON; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if ${ac_cv_path_PYTHON+:} false; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 case $PYTHON in
8884 [\\/]* | ?:[\\/]*)
8885 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8886 ;;
8887 *)
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 for as_dir in $PATH
8890 do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8895 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897 break 2
8898 fi
8899 done
8900 done
8901 IFS=$as_save_IFS
8902
8903 ;;
8904 esac
8905 fi
8906 PYTHON=$ac_cv_path_PYTHON
8907 if test -n "$PYTHON"; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8909 $as_echo "$PYTHON" >&6; }
8910 else
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 $as_echo "no" >&6; }
8913 fi
8914
8915
8916 fi
8917 am_display_PYTHON=$am_cv_pathless_PYTHON
8918 fi
8919
8920
8921 if test "$PYTHON" = :; then
8922 :
8923 else
8924
8925
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
8927 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
8928 if ${am_cv_python_version+:} false; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
8932 fi
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
8934 $as_echo "$am_cv_python_version" >&6; }
8935 PYTHON_VERSION=$am_cv_python_version
8936
8937
8938
8939 PYTHON_PREFIX='${prefix}'
8940
8941 PYTHON_EXEC_PREFIX='${exec_prefix}'
8942
8943
8944
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
8946 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
8947 if ${am_cv_python_platform+:} false; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
8951 fi
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
8953 $as_echo "$am_cv_python_platform" >&6; }
8954 PYTHON_PLATFORM=$am_cv_python_platform
8955
8956
8957 # Just factor out some code duplication.
8958 am_python_setup_sysconfig="\
8959 import sys
8960 # Prefer sysconfig over distutils.sysconfig, for better compatibility
8961 # with python 3.x. See automake bug#10227.
8962 try:
8963 import sysconfig
8964 except ImportError:
8965 can_use_sysconfig = 0
8966 else:
8967 can_use_sysconfig = 1
8968 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
8969 # <https://github.com/pypa/virtualenv/issues/118>
8970 try:
8971 from platform import python_implementation
8972 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
8973 can_use_sysconfig = 0
8974 except ImportError:
8975 pass"
8976
8977
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
8979 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
8980 if ${am_cv_python_pythondir+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 if test "x$prefix" = xNONE
8984 then
8985 am_py_prefix=$ac_default_prefix
8986 else
8987 am_py_prefix=$prefix
8988 fi
8989 am_cv_python_pythondir=`$PYTHON -c "
8990 $am_python_setup_sysconfig
8991 if can_use_sysconfig:
8992 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
8993 else:
8994 from distutils import sysconfig
8995 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
8996 sys.stdout.write(sitedir)"`
8997 case $am_cv_python_pythondir in
8998 $am_py_prefix*)
8999 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
9000 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
9001 ;;
9002 *)
9003 case $am_py_prefix in
9004 /usr|/System*) ;;
9005 *)
9006 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
9007 ;;
9008 esac
9009 ;;
9010 esac
9011
9012 fi
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
9014 $as_echo "$am_cv_python_pythondir" >&6; }
9015 pythondir=$am_cv_python_pythondir
9016
9017
9018
9019 pkgpythondir=\${pythondir}/$PACKAGE
9020
9021
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
9023 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
9024 if ${am_cv_python_pyexecdir+:} false; then :
9025 $as_echo_n "(cached) " >&6
9026 else
9027 if test "x$exec_prefix" = xNONE
9028 then
9029 am_py_exec_prefix=$am_py_prefix
9030 else
9031 am_py_exec_prefix=$exec_prefix
9032 fi
9033 am_cv_python_pyexecdir=`$PYTHON -c "
9034 $am_python_setup_sysconfig
9035 if can_use_sysconfig:
9036 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
9037 else:
9038 from distutils import sysconfig
9039 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
9040 sys.stdout.write(sitedir)"`
9041 case $am_cv_python_pyexecdir in
9042 $am_py_exec_prefix*)
9043 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
9044 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
9045 ;;
9046 *)
9047 case $am_py_exec_prefix in
9048 /usr|/System*) ;;
9049 *)
9050 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
9051 ;;
9052 esac
9053 ;;
9054 esac
9055
9056 fi
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
9058 $as_echo "$am_cv_python_pyexecdir" >&6; }
9059 pyexecdir=$am_cv_python_pyexecdir
9060
9061
9062
9063 pkgpyexecdir=\${pyexecdir}/$PACKAGE
9064
9065
9066
9067 fi
9068
9069
9070 python_basename=$(basename "$PYTHON")
9071
9072 cat >>confdefs.h <<_ACEOF
9073 #define PYTHON_BASENAME "${python_basename}"
9074 _ACEOF
9075
9076 # AM_PATH_PYTHON defines 'pyexecdir'. Make sure the python and
9077 # pyexecdir variables get sent down to the subconfigure in the
9078 # testsuite directory.
9079 as_fn_append ac_configure_args " python='$PYTHON' pyexecdir='$pyexecdir'"
9080
9081 # Now let's try to find python version 3.
9082 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$python_unknown_version" = "x3"; then
9083 # Extract the first word of "python", so it can be a program name with args.
9084 set dummy python; ac_word=$2
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 $as_echo_n "checking for $ac_word... " >&6; }
9087 if ${ac_cv_path_PYTHON3+:} false; then :
9088 $as_echo_n "(cached) " >&6
9089 else
9090 case $PYTHON3 in
9091 [\\/]* | ?:[\\/]*)
9092 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9093 ;;
9094 *)
9095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 for as_dir in $PATH
9097 do
9098 IFS=$as_save_IFS
9099 test -z "$as_dir" && as_dir=.
9100 for ac_exec_ext in '' $ac_executable_extensions; do
9101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9102 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9104 break 2
9105 fi
9106 done
9107 done
9108 IFS=$as_save_IFS
9109
9110 ;;
9111 esac
9112 fi
9113 PYTHON3=$ac_cv_path_PYTHON3
9114 if test -n "$PYTHON3"; then
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9116 $as_echo "$PYTHON3" >&6; }
9117 else
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9120 fi
9121
9122
9123 else
9124 for ac_prog in python3 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0
9125 do
9126 # Extract the first word of "$ac_prog", so it can be a program name with args.
9127 set dummy $ac_prog; ac_word=$2
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129 $as_echo_n "checking for $ac_word... " >&6; }
9130 if ${ac_cv_path_PYTHON3+:} false; then :
9131 $as_echo_n "(cached) " >&6
9132 else
9133 case $PYTHON3 in
9134 [\\/]* | ?:[\\/]*)
9135 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9136 ;;
9137 *)
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139 for as_dir in $PATH
9140 do
9141 IFS=$as_save_IFS
9142 test -z "$as_dir" && as_dir=.
9143 for ac_exec_ext in '' $ac_executable_extensions; do
9144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9145 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9147 break 2
9148 fi
9149 done
9150 done
9151 IFS=$as_save_IFS
9152
9153 ;;
9154 esac
9155 fi
9156 PYTHON3=$ac_cv_path_PYTHON3
9157 if test -n "$PYTHON3"; then
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9159 $as_echo "$PYTHON3" >&6; }
9160 else
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162 $as_echo "no" >&6; }
9163 fi
9164
9165
9166 test -n "$PYTHON3" && break
9167 done
9168
9169 fi
9170 python3_basename=$(basename "$PYTHON3")
9171
9172 cat >>confdefs.h <<_ACEOF
9173 #define PYTHON3_BASENAME "${python3_basename}"
9174 _ACEOF
9175
9176
9177 # If we found python version 3, set up the other variables for python
9178 # version 3 that AM_PATH_PYTHON sets up for python version 2.
9179 if test -n "$PYTHON3"; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 version" >&5
9181 $as_echo_n "checking for python3 version... " >&6; }
9182 if ${ac_cv_python3_version+:} false; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 ac_cv_python3_version=`$PYTHON3 -c "import sys; sys.stdout.write(sys.version[:3])"`
9186 fi
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_version" >&5
9188 $as_echo "$ac_cv_python3_version" >&6; }
9189 PYTHON3_VERSION=$ac_cv_python3_version
9190
9191 PYTHON3_PREFIX='${prefix}'
9192
9193 PYTHON3_EXEC_PREFIX='${exec_prefix}'
9194
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 platform" >&5
9196 $as_echo_n "checking for python3 platform... " >&6; }
9197 if ${ac_cv_python3_platform+:} false; then :
9198 $as_echo_n "(cached) " >&6
9199 else
9200 ac_cv_python3_platform=`$PYTHON3 -c "import sys; sys.stdout.write(sys.platform)"`
9201 fi
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_platform" >&5
9203 $as_echo "$ac_cv_python3_platform" >&6; }
9204 PYTHON3_PLATFORM=$ac_cv_python3_platform
9205
9206
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 script directory" >&5
9208 $as_echo_n "checking for python3 script directory... " >&6; }
9209 if ${ac_cv_python3_dir+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 ac_cv_python3_dir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(0,0,prefix='$PYTHON3_PREFIX'))"`
9213 fi
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_dir" >&5
9215 $as_echo "$ac_cv_python3_dir" >&6; }
9216 python3dir=$ac_cv_python3_dir
9217
9218
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 extension module directory" >&5
9220 $as_echo_n "checking for python3 extension module directory... " >&6; }
9221 if ${ac_cv_py3execdir+:} false; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 ac_cv_py3execdir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(1,0,prefix='$PYTHON3_EXEC_PREFIX'))"`
9225 fi
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_py3execdir" >&5
9227 $as_echo "$ac_cv_py3execdir" >&6; }
9228 py3execdir=$ac_cv_py3execdir
9229
9230
9231 # Make sure the python3 and py3execdir variables get sent down to
9232 # the subconfigure in the testsuite directory.
9233 as_fn_append ac_configure_args " python3='$PYTHON3' py3execdir='$ac_cv_py3execdir'"
9234 fi
9235
9236 if test "${enable_prologues+set}" != set; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5
9238 $as_echo_n "checking to see if prologue searching should be the default... " >&6; }
9239 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
9240 echo ' yes '
9241 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9242 enable_prologues=yes
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9244 $as_echo "yes" >&6; }
9245 else
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247 $as_echo "no" >&6; }
9248 fi
9249 fi
9250 # Check whether --enable-prologues was given.
9251 if test "${enable_prologues+set}" = set; then :
9252 enableval=$enable_prologues;
9253 if test "$enable_prologues" = yes; then
9254
9255 $as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h
9256
9257 fi
9258 fi
9259
9260
9261
9262 if test "${enable_sdt_probes+set}" != set; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5
9264 $as_echo_n "checking to see if sdt probes should be the default... " >&6; }
9265 if { echo '#if __GNUC__ < 4'
9266 echo ' yes '
9267 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9268 enable_sdt_probes=no
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9271 else
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9273 $as_echo "yes" >&6; }
9274 fi
9275 fi
9276 # Check whether --enable-sdt-probes was given.
9277 if test "${enable_sdt_probes+set}" = set; then :
9278 enableval=$enable_sdt_probes;
9279 fi
9280
9281 if test "x$enable_sdt_probes" != xno; then :
9282
9283
9284 $as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h
9285
9286
9287 fi
9288
9289
9290 ax_cxx_compile_cxx11_required=false
9291 ac_ext=cpp
9292 ac_cpp='$CXXCPP $CPPFLAGS'
9293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9296 ac_success=no
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
9298 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
9299 if ${ax_cv_cxx_compile_cxx11+:} false; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304
9305
9306 // If the compiler admits that it is not ready for C++11, why torture it?
9307 // Hopefully, this will speed up the test.
9308
9309 #ifndef __cplusplus
9310
9311 #error "This is not a C++ compiler"
9312
9313 #elif __cplusplus < 201103L
9314
9315 #error "This is not a C++11 compiler"
9316
9317 #else
9318
9319 namespace cxx11
9320 {
9321
9322 namespace test_static_assert
9323 {
9324
9325 template <typename T>
9326 struct check
9327 {
9328 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9329 };
9330
9331 }
9332
9333 namespace test_final_override
9334 {
9335
9336 struct Base
9337 {
9338 virtual void f() {}
9339 };
9340
9341 struct Derived : public Base
9342 {
9343 virtual void f() override {}
9344 };
9345
9346 }
9347
9348 namespace test_double_right_angle_brackets
9349 {
9350
9351 template < typename T >
9352 struct check {};
9353
9354 typedef check<void> single_type;
9355 typedef check<check<void>> double_type;
9356 typedef check<check<check<void>>> triple_type;
9357 typedef check<check<check<check<void>>>> quadruple_type;
9358
9359 }
9360
9361 namespace test_decltype
9362 {
9363
9364 int
9365 f()
9366 {
9367 int a = 1;
9368 decltype(a) b = 2;
9369 return a + b;
9370 }
9371
9372 }
9373
9374 namespace test_type_deduction
9375 {
9376
9377 template < typename T1, typename T2 >
9378 struct is_same
9379 {
9380 static const bool value = false;
9381 };
9382
9383 template < typename T >
9384 struct is_same<T, T>
9385 {
9386 static const bool value = true;
9387 };
9388
9389 template < typename T1, typename T2 >
9390 auto
9391 add(T1 a1, T2 a2) -> decltype(a1 + a2)
9392 {
9393 return a1 + a2;
9394 }
9395
9396 int
9397 test(const int c, volatile int v)
9398 {
9399 static_assert(is_same<int, decltype(0)>::value == true, "");
9400 static_assert(is_same<int, decltype(c)>::value == false, "");
9401 static_assert(is_same<int, decltype(v)>::value == false, "");
9402 auto ac = c;
9403 auto av = v;
9404 auto sumi = ac + av + 'x';
9405 auto sumf = ac + av + 1.0;
9406 static_assert(is_same<int, decltype(ac)>::value == true, "");
9407 static_assert(is_same<int, decltype(av)>::value == true, "");
9408 static_assert(is_same<int, decltype(sumi)>::value == true, "");
9409 static_assert(is_same<int, decltype(sumf)>::value == false, "");
9410 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
9411 return (sumf > 0.0) ? sumi : add(c, v);
9412 }
9413
9414 }
9415
9416 namespace test_noexcept
9417 {
9418
9419 int f() { return 0; }
9420 int g() noexcept { return 0; }
9421
9422 static_assert(noexcept(f()) == false, "");
9423 static_assert(noexcept(g()) == true, "");
9424
9425 }
9426
9427 namespace test_constexpr
9428 {
9429
9430 template < typename CharT >
9431 unsigned long constexpr
9432 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
9433 {
9434 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
9435 }
9436
9437 template < typename CharT >
9438 unsigned long constexpr
9439 strlen_c(const CharT *const s) noexcept
9440 {
9441 return strlen_c_r(s, 0UL);
9442 }
9443
9444 static_assert(strlen_c("") == 0UL, "");
9445 static_assert(strlen_c("1") == 1UL, "");
9446 static_assert(strlen_c("example") == 7UL, "");
9447 static_assert(strlen_c("another\0example") == 7UL, "");
9448
9449 }
9450
9451 namespace test_rvalue_references
9452 {
9453
9454 template < int N >
9455 struct answer
9456 {
9457 static constexpr int value = N;
9458 };
9459
9460 answer<1> f(int&) { return answer<1>(); }
9461 answer<2> f(const int&) { return answer<2>(); }
9462 answer<3> f(int&&) { return answer<3>(); }
9463
9464 void
9465 test()
9466 {
9467 int i = 0;
9468 const int c = 0;
9469 static_assert(decltype(f(i))::value == 1, "");
9470 static_assert(decltype(f(c))::value == 2, "");
9471 static_assert(decltype(f(0))::value == 3, "");
9472 }
9473
9474 }
9475
9476 namespace test_uniform_initialization
9477 {
9478
9479 struct test
9480 {
9481 static const int zero {};
9482 static const int one {1};
9483 };
9484
9485 static_assert(test::zero == 0, "");
9486 static_assert(test::one == 1, "");
9487
9488 }
9489
9490 namespace test_lambdas
9491 {
9492
9493 void
9494 test1()
9495 {
9496 auto lambda1 = [](){};
9497 auto lambda2 = lambda1;
9498 lambda1();
9499 lambda2();
9500 }
9501
9502 int
9503 test2()
9504 {
9505 auto a = [](int i, int j){ return i + j; }(1, 2);
9506 auto b = []() -> int { return '0'; }();
9507 auto c = [=](){ return a + b; }();
9508 auto d = [&](){ return c; }();
9509 auto e = [a, &b](int x) mutable {
9510 const auto identity = [](int y){ return y; };
9511 for (auto i = 0; i < a; ++i)
9512 a += b--;
9513 return x + identity(a + b);
9514 }(0);
9515 return a + b + c + d + e;
9516 }
9517
9518 int
9519 test3()
9520 {
9521 const auto nullary = [](){ return 0; };
9522 const auto unary = [](int x){ return x; };
9523 using nullary_t = decltype(nullary);
9524 using unary_t = decltype(unary);
9525 const auto higher1st = [](nullary_t f){ return f(); };
9526 const auto higher2nd = [unary](nullary_t f1){
9527 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9528 };
9529 return higher1st(nullary) + higher2nd(nullary)(unary);
9530 }
9531
9532 }
9533
9534 namespace test_variadic_templates
9535 {
9536
9537 template <int...>
9538 struct sum;
9539
9540 template <int N0, int... N1toN>
9541 struct sum<N0, N1toN...>
9542 {
9543 static constexpr auto value = N0 + sum<N1toN...>::value;
9544 };
9545
9546 template <>
9547 struct sum<>
9548 {
9549 static constexpr auto value = 0;
9550 };
9551
9552 static_assert(sum<>::value == 0, "");
9553 static_assert(sum<1>::value == 1, "");
9554 static_assert(sum<23>::value == 23, "");
9555 static_assert(sum<1, 2>::value == 3, "");
9556 static_assert(sum<5, 5, 11>::value == 21, "");
9557 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9558
9559 }
9560
9561 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9562 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9563 // because of this.
9564 namespace test_template_alias_sfinae
9565 {
9566
9567 struct foo {};
9568
9569 template<typename T>
9570 using member = typename T::member_type;
9571
9572 template<typename T>
9573 void func(...) {}
9574
9575 template<typename T>
9576 void func(member<T>*) {}
9577
9578 void test();
9579
9580 void test() { func<foo>(0); }
9581
9582 }
9583
9584 } // namespace cxx11
9585
9586 #endif // __cplusplus >= 201103L
9587
9588
9589
9590 _ACEOF
9591 if ac_fn_cxx_try_compile "$LINENO"; then :
9592 ax_cv_cxx_compile_cxx11=yes
9593 else
9594 ax_cv_cxx_compile_cxx11=no
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597 fi
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
9599 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
9600 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
9601 ac_success=yes
9602 fi
9603
9604
9605
9606 if test x$ac_success = xno; then
9607 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
9608 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
9610 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
9611 if eval \${$cachevar+:} false; then :
9612 $as_echo_n "(cached) " >&6
9613 else
9614 ac_save_CXX="$CXX"
9615 CXX="$CXX $switch"
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9618
9619
9620 // If the compiler admits that it is not ready for C++11, why torture it?
9621 // Hopefully, this will speed up the test.
9622
9623 #ifndef __cplusplus
9624
9625 #error "This is not a C++ compiler"
9626
9627 #elif __cplusplus < 201103L
9628
9629 #error "This is not a C++11 compiler"
9630
9631 #else
9632
9633 namespace cxx11
9634 {
9635
9636 namespace test_static_assert
9637 {
9638
9639 template <typename T>
9640 struct check
9641 {
9642 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9643 };
9644
9645 }
9646
9647 namespace test_final_override
9648 {
9649
9650 struct Base
9651 {
9652 virtual void f() {}
9653 };
9654
9655 struct Derived : public Base
9656 {
9657 virtual void f() override {}
9658 };
9659
9660 }
9661
9662 namespace test_double_right_angle_brackets
9663 {
9664
9665 template < typename T >
9666 struct check {};
9667
9668 typedef check<void> single_type;
9669 typedef check<check<void>> double_type;
9670 typedef check<check<check<void>>> triple_type;
9671 typedef check<check<check<check<void>>>> quadruple_type;
9672
9673 }
9674
9675 namespace test_decltype
9676 {
9677
9678 int
9679 f()
9680 {
9681 int a = 1;
9682 decltype(a) b = 2;
9683 return a + b;
9684 }
9685
9686 }
9687
9688 namespace test_type_deduction
9689 {
9690
9691 template < typename T1, typename T2 >
9692 struct is_same
9693 {
9694 static const bool value = false;
9695 };
9696
9697 template < typename T >
9698 struct is_same<T, T>
9699 {
9700 static const bool value = true;
9701 };
9702
9703 template < typename T1, typename T2 >
9704 auto
9705 add(T1 a1, T2 a2) -> decltype(a1 + a2)
9706 {
9707 return a1 + a2;
9708 }
9709
9710 int
9711 test(const int c, volatile int v)
9712 {
9713 static_assert(is_same<int, decltype(0)>::value == true, "");
9714 static_assert(is_same<int, decltype(c)>::value == false, "");
9715 static_assert(is_same<int, decltype(v)>::value == false, "");
9716 auto ac = c;
9717 auto av = v;
9718 auto sumi = ac + av + 'x';
9719 auto sumf = ac + av + 1.0;
9720 static_assert(is_same<int, decltype(ac)>::value == true, "");
9721 static_assert(is_same<int, decltype(av)>::value == true, "");
9722 static_assert(is_same<int, decltype(sumi)>::value == true, "");
9723 static_assert(is_same<int, decltype(sumf)>::value == false, "");
9724 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
9725 return (sumf > 0.0) ? sumi : add(c, v);
9726 }
9727
9728 }
9729
9730 namespace test_noexcept
9731 {
9732
9733 int f() { return 0; }
9734 int g() noexcept { return 0; }
9735
9736 static_assert(noexcept(f()) == false, "");
9737 static_assert(noexcept(g()) == true, "");
9738
9739 }
9740
9741 namespace test_constexpr
9742 {
9743
9744 template < typename CharT >
9745 unsigned long constexpr
9746 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
9747 {
9748 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
9749 }
9750
9751 template < typename CharT >
9752 unsigned long constexpr
9753 strlen_c(const CharT *const s) noexcept
9754 {
9755 return strlen_c_r(s, 0UL);
9756 }
9757
9758 static_assert(strlen_c("") == 0UL, "");
9759 static_assert(strlen_c("1") == 1UL, "");
9760 static_assert(strlen_c("example") == 7UL, "");
9761 static_assert(strlen_c("another\0example") == 7UL, "");
9762
9763 }
9764
9765 namespace test_rvalue_references
9766 {
9767
9768 template < int N >
9769 struct answer
9770 {
9771 static constexpr int value = N;
9772 };
9773
9774 answer<1> f(int&) { return answer<1>(); }
9775 answer<2> f(const int&) { return answer<2>(); }
9776 answer<3> f(int&&) { return answer<3>(); }
9777
9778 void
9779 test()
9780 {
9781 int i = 0;
9782 const int c = 0;
9783 static_assert(decltype(f(i))::value == 1, "");
9784 static_assert(decltype(f(c))::value == 2, "");
9785 static_assert(decltype(f(0))::value == 3, "");
9786 }
9787
9788 }
9789
9790 namespace test_uniform_initialization
9791 {
9792
9793 struct test
9794 {
9795 static const int zero {};
9796 static const int one {1};
9797 };
9798
9799 static_assert(test::zero == 0, "");
9800 static_assert(test::one == 1, "");
9801
9802 }
9803
9804 namespace test_lambdas
9805 {
9806
9807 void
9808 test1()
9809 {
9810 auto lambda1 = [](){};
9811 auto lambda2 = lambda1;
9812 lambda1();
9813 lambda2();
9814 }
9815
9816 int
9817 test2()
9818 {
9819 auto a = [](int i, int j){ return i + j; }(1, 2);
9820 auto b = []() -> int { return '0'; }();
9821 auto c = [=](){ return a + b; }();
9822 auto d = [&](){ return c; }();
9823 auto e = [a, &b](int x) mutable {
9824 const auto identity = [](int y){ return y; };
9825 for (auto i = 0; i < a; ++i)
9826 a += b--;
9827 return x + identity(a + b);
9828 }(0);
9829 return a + b + c + d + e;
9830 }
9831
9832 int
9833 test3()
9834 {
9835 const auto nullary = [](){ return 0; };
9836 const auto unary = [](int x){ return x; };
9837 using nullary_t = decltype(nullary);
9838 using unary_t = decltype(unary);
9839 const auto higher1st = [](nullary_t f){ return f(); };
9840 const auto higher2nd = [unary](nullary_t f1){
9841 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9842 };
9843 return higher1st(nullary) + higher2nd(nullary)(unary);
9844 }
9845
9846 }
9847
9848 namespace test_variadic_templates
9849 {
9850
9851 template <int...>
9852 struct sum;
9853
9854 template <int N0, int... N1toN>
9855 struct sum<N0, N1toN...>
9856 {
9857 static constexpr auto value = N0 + sum<N1toN...>::value;
9858 };
9859
9860 template <>
9861 struct sum<>
9862 {
9863 static constexpr auto value = 0;
9864 };
9865
9866 static_assert(sum<>::value == 0, "");
9867 static_assert(sum<1>::value == 1, "");
9868 static_assert(sum<23>::value == 23, "");
9869 static_assert(sum<1, 2>::value == 3, "");
9870 static_assert(sum<5, 5, 11>::value == 21, "");
9871 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9872
9873 }
9874
9875 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9876 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9877 // because of this.
9878 namespace test_template_alias_sfinae
9879 {
9880
9881 struct foo {};
9882
9883 template<typename T>
9884 using member = typename T::member_type;
9885
9886 template<typename T>
9887 void func(...) {}
9888
9889 template<typename T>
9890 void func(member<T>*) {}
9891
9892 void test();
9893
9894 void test() { func<foo>(0); }
9895
9896 }
9897
9898 } // namespace cxx11
9899
9900 #endif // __cplusplus >= 201103L
9901
9902
9903
9904 _ACEOF
9905 if ac_fn_cxx_try_compile "$LINENO"; then :
9906 eval $cachevar=yes
9907 else
9908 eval $cachevar=no
9909 fi
9910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9911 CXX="$ac_save_CXX"
9912 fi
9913 eval ac_res=\$$cachevar
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9915 $as_echo "$ac_res" >&6; }
9916 if eval test x\$$cachevar = xyes; then
9917 CXX="$CXX $switch"
9918 ac_success=yes
9919 break
9920 fi
9921 done
9922 fi
9923 ac_ext=c
9924 ac_cpp='$CPP $CPPFLAGS'
9925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9928
9929 if test x$ax_cxx_compile_cxx11_required = xtrue; then
9930 if test x$ac_success = xno; then
9931 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
9932 fi
9933 fi
9934 if test x$ac_success = xno; then
9935 HAVE_CXX11=0
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
9937 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
9938 else
9939 HAVE_CXX11=1
9940
9941 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
9942
9943 fi
9944
9945
9946 if test "x$HAVE_CXX11" != x1; then :
9947
9948 ac_ext=cpp
9949 ac_cpp='$CXXCPP $CPPFLAGS'
9950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9953
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -std=c++0x" >&5
9955 $as_echo_n "checking whether C++ compiler accepts -std=c++0x... " >&6; }
9956 if ${ax_cv_check_cxxflags___std_cpp0x+:} false; then :
9957 $as_echo_n "(cached) " >&6
9958 else
9959
9960 ax_check_save_flags=$CXXFLAGS
9961 CXXFLAGS="$CXXFLAGS -std=c++0x"
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9964
9965 int
9966 main ()
9967 {
9968
9969 ;
9970 return 0;
9971 }
9972 _ACEOF
9973 if ac_fn_cxx_try_compile "$LINENO"; then :
9974 ax_cv_check_cxxflags___std_cpp0x=yes
9975 else
9976 ax_cv_check_cxxflags___std_cpp0x=no
9977 fi
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 CXXFLAGS=$ax_check_save_flags
9980 fi
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___std_cpp0x" >&5
9982 $as_echo "$ax_cv_check_cxxflags___std_cpp0x" >&6; }
9983 if test "x$ax_cv_check_cxxflags___std_cpp0x" = xyes; then :
9984
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with -std=c++0x" >&5
9986 $as_echo "$as_me: Compiling with -std=c++0x" >&6;}
9987 CXX="$CXX -std=c++0x"
9988 HAVE_CXX11=1
9989
9990 else
9991
9992 as_fn_error $? "A compiler with C++11 support is required." "$LINENO" 5
9993
9994 fi
9995
9996 ac_ext=c
9997 ac_cpp='$CPP $CPPFLAGS'
9998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10001
10002
10003 fi
10004
10005 # Check whether --enable-ssp was given.
10006 if test "${enable_ssp+set}" = set; then :
10007 enableval=$enable_ssp;
10008 fi
10009
10010 if test "x$enable_ssp" != xno; then :
10011
10012 save_CFLAGS="$CFLAGS"
10013 save_CXXFLAGS="$CXXFLAGS"
10014 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
10015 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10018 int something ();
10019 _ACEOF
10020 if ac_fn_c_try_compile "$LINENO"; then :
10021
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
10023 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
10024 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
10025 CXXFLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
10026 else
10027
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
10029 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
10030 CFLAGS="$save_CFLAGS"
10031 CXXFLAGS="$save_CXXFLAGS"
10032 fi
10033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10034 fi
10035
10036
10037
10038
10039 # Compiling without fPIE by default (see PR 9922)
10040 # Check whether --enable-pie was given.
10041 if test "${enable_pie+set}" = set; then :
10042 enableval=$enable_pie;
10043 fi
10044
10045 if test "x$enable_pie" == xyes; then :
10046
10047 PIECFLAGS='-fPIE'
10048 PIECXXFLAGS='-fPIE'
10049 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
10050 save_CFLAGS="$CFLAGS"
10051 save_CXXFLAGS="$CXXFLAGS"
10052 save_LDFLAGS="$LDFLAGS"
10053 CFLAGS="$CFLAGS $PIECFLAGS"
10054 CXXFLAGS="$CXXFLAGS $PIECXXFLAGS"
10055 LDFLAGS="$LDFLAGS $PIELDFLAGS"
10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h. */
10058 void main () {}
10059 _ACEOF
10060 if ac_fn_c_try_link "$LINENO"; then :
10061
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
10063 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
10064
10065 else
10066
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
10068 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
10069 PIECFLAGS=""
10070 PIECXXFLAGS=""
10071 PIELDFLAGS=""
10072
10073 fi
10074 rm -f core conftest.err conftest.$ac_objext \
10075 conftest$ac_exeext conftest.$ac_ext
10076 CFLAGS="$save_CFLAGS"
10077 CXXFLAGS="$save_CXXFLAGS"
10078 LDFLAGS="$save_LDFLAGS"
10079
10080 fi
10081
10082
10083
10084
10085 # Check whether --enable-sqlite was given.
10086 if test "${enable_sqlite+set}" = set; then :
10087 enableval=$enable_sqlite;
10088 else
10089 enable_sqlite=check
10090 fi
10091 sqlite3_LIBS=
10092
10093
10094
10095
10096
10097
10098
10099 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10100 if test -n "$ac_tool_prefix"; then
10101 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10102 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 case $PKG_CONFIG in
10109 [\\/]* | ?:[\\/]*)
10110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10111 ;;
10112 *)
10113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in $PATH
10115 do
10116 IFS=$as_save_IFS
10117 test -z "$as_dir" && as_dir=.
10118 for ac_exec_ext in '' $ac_executable_extensions; do
10119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10122 break 2
10123 fi
10124 done
10125 done
10126 IFS=$as_save_IFS
10127
10128 ;;
10129 esac
10130 fi
10131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10132 if test -n "$PKG_CONFIG"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10134 $as_echo "$PKG_CONFIG" >&6; }
10135 else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138 fi
10139
10140
10141 fi
10142 if test -z "$ac_cv_path_PKG_CONFIG"; then
10143 ac_pt_PKG_CONFIG=$PKG_CONFIG
10144 # Extract the first word of "pkg-config", so it can be a program name with args.
10145 set dummy pkg-config; ac_word=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 case $ac_pt_PKG_CONFIG in
10152 [\\/]* | ?:[\\/]*)
10153 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10154 ;;
10155 *)
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10158 do
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165 break 2
10166 fi
10167 done
10168 done
10169 IFS=$as_save_IFS
10170
10171 ;;
10172 esac
10173 fi
10174 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10175 if test -n "$ac_pt_PKG_CONFIG"; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10177 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10178 else
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10181 fi
10182
10183 if test "x$ac_pt_PKG_CONFIG" = x; then
10184 PKG_CONFIG=""
10185 else
10186 case $cross_compiling:$ac_tool_warned in
10187 yes:)
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10190 ac_tool_warned=yes ;;
10191 esac
10192 PKG_CONFIG=$ac_pt_PKG_CONFIG
10193 fi
10194 else
10195 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10196 fi
10197
10198 fi
10199 if test -n "$PKG_CONFIG"; then
10200 _pkg_min_version=0.9.0
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10202 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10203 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10205 $as_echo "yes" >&6; }
10206 else
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 $as_echo "no" >&6; }
10209 PKG_CONFIG=""
10210 fi
10211 fi
10212 if test "x$enable_sqlite" != xno; then :
10213
10214 pkg_failed=no
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
10216 $as_echo_n "checking for sqlite3... " >&6; }
10217
10218 if test -n "$sqlite3_CFLAGS"; then
10219 pkg_cv_sqlite3_CFLAGS="$sqlite3_CFLAGS"
10220 elif test -n "$PKG_CONFIG"; then
10221 if test -n "$PKG_CONFIG" && \
10222 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5
10223 ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5
10224 ac_status=$?
10225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10226 test $ac_status = 0; }; then
10227 pkg_cv_sqlite3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 > 3.7" 2>/dev/null`
10228 test "x$?" != "x0" && pkg_failed=yes
10229 else
10230 pkg_failed=yes
10231 fi
10232 else
10233 pkg_failed=untried
10234 fi
10235 if test -n "$sqlite3_LIBS"; then
10236 pkg_cv_sqlite3_LIBS="$sqlite3_LIBS"
10237 elif test -n "$PKG_CONFIG"; then
10238 if test -n "$PKG_CONFIG" && \
10239 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5
10240 ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5
10241 ac_status=$?
10242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10243 test $ac_status = 0; }; then
10244 pkg_cv_sqlite3_LIBS=`$PKG_CONFIG --libs "sqlite3 > 3.7" 2>/dev/null`
10245 test "x$?" != "x0" && pkg_failed=yes
10246 else
10247 pkg_failed=yes
10248 fi
10249 else
10250 pkg_failed=untried
10251 fi
10252
10253
10254
10255 if test $pkg_failed = yes; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10257 $as_echo "no" >&6; }
10258
10259 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10260 _pkg_short_errors_supported=yes
10261 else
10262 _pkg_short_errors_supported=no
10263 fi
10264 if test $_pkg_short_errors_supported = yes; then
10265 sqlite3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1`
10266 else
10267 sqlite3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1`
10268 fi
10269 # Put the nasty error message in config.log where it belongs
10270 echo "$sqlite3_PKG_ERRORS" >&5
10271
10272 if test "x$enable_sqlite" != xcheck; then
10273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10275 as_fn_error $? "--enable-sqlite was given, but test for sqlite > 3.7 failed
10276 See \`config.log' for more details" "$LINENO" 5; }
10277 fi
10278 elif test $pkg_failed = untried; then
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10281 if test "x$enable_sqlite" != xcheck; then
10282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10284 as_fn_error $? "--enable-sqlite was given, but test for sqlite > 3.7 failed
10285 See \`config.log' for more details" "$LINENO" 5; }
10286 fi
10287 else
10288 sqlite3_CFLAGS=$pkg_cv_sqlite3_CFLAGS
10289 sqlite3_LIBS=$pkg_cv_sqlite3_LIBS
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10291 $as_echo "yes" >&6; }
10292
10293 $as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h
10294
10295 fi
10296 fi
10297
10298 # Check whether --enable-translator was given.
10299 if test "${enable_translator+set}" = set; then :
10300 enableval=$enable_translator;
10301 else
10302 enable_translator="yes"
10303 fi
10304
10305 if test "$enable_translator" == "yes"; then
10306 BUILD_TRANSLATOR_TRUE=
10307 BUILD_TRANSLATOR_FALSE='#'
10308 else
10309 BUILD_TRANSLATOR_TRUE='#'
10310 BUILD_TRANSLATOR_FALSE=
10311 fi
10312
10313
10314 # Check whether --enable-crash was given.
10315 if test "${enable_crash+set}" = set; then :
10316 enableval=$enable_crash; if test "$enable_crash" != "no"; then
10317 save_CPPFLAGS="$CPPFLAGS"
10318 if test "$enable_crash" != "yes"; then
10319 staplog_CPPFLAGS=-I$enable_crash
10320 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
10321
10322 fi
10323 for ac_header in crash/defs.h
10324 do :
10325 ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" "
10326 #define NR_CPUS 256
10327
10328 "
10329 if test "x$ac_cv_header_crash_defs_h" = xyes; then :
10330 cat >>confdefs.h <<_ACEOF
10331 #define HAVE_CRASH_DEFS_H 1
10332 _ACEOF
10333
10334 else
10335 as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5
10336 fi
10337
10338 done
10339
10340 CPPFLAGS="$save_CPPFLAGS"
10341 fi
10342 else
10343 enable_crash="no"
10344 fi
10345
10346 if test "$enable_crash" != "no"; then
10347 BUILD_CRASHMOD_TRUE=
10348 BUILD_CRASHMOD_FALSE='#'
10349 else
10350 BUILD_CRASHMOD_TRUE='#'
10351 BUILD_CRASHMOD_FALSE=
10352 fi
10353
10354
10355 building_docs="no"
10356 # Check whether --enable-docs was given.
10357 if test "${enable_docs+set}" = set; then :
10358 enableval=$enable_docs; enable_docs=$enableval
10359 else
10360 enable_docs="check"
10361 fi
10362
10363 # Extract the first word of "latex", so it can be a program name with args.
10364 set dummy latex; ac_word=$2
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10366 $as_echo_n "checking for $ac_word... " >&6; }
10367 if ${ac_cv_prog_have_latex+:} false; then :
10368 $as_echo_n "(cached) " >&6
10369 else
10370 if test -n "$have_latex"; then
10371 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
10372 else
10373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374 for as_dir in $PATH
10375 do
10376 IFS=$as_save_IFS
10377 test -z "$as_dir" && as_dir=.
10378 for ac_exec_ext in '' $ac_executable_extensions; do
10379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10380 ac_cv_prog_have_latex="yes"
10381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10382 break 2
10383 fi
10384 done
10385 done
10386 IFS=$as_save_IFS
10387
10388 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
10389 fi
10390 fi
10391 have_latex=$ac_cv_prog_have_latex
10392 if test -n "$have_latex"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5
10394 $as_echo "$have_latex" >&6; }
10395 else
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10398 fi
10399
10400
10401 # Extract the first word of "dvips", so it can be a program name with args.
10402 set dummy dvips; ac_word=$2
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10404 $as_echo_n "checking for $ac_word... " >&6; }
10405 if ${ac_cv_prog_have_dvips+:} false; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 if test -n "$have_dvips"; then
10409 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
10410 else
10411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412 for as_dir in $PATH
10413 do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10418 ac_cv_prog_have_dvips="yes"
10419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10420 break 2
10421 fi
10422 done
10423 done
10424 IFS=$as_save_IFS
10425
10426 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
10427 fi
10428 fi
10429 have_dvips=$ac_cv_prog_have_dvips
10430 if test -n "$have_dvips"; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
10432 $as_echo "$have_dvips" >&6; }
10433 else
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10435 $as_echo "no" >&6; }
10436 fi
10437
10438
10439 # Extract the first word of "ps2pdf", so it can be a program name with args.
10440 set dummy ps2pdf; ac_word=$2
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442 $as_echo_n "checking for $ac_word... " >&6; }
10443 if ${ac_cv_prog_have_ps2pdf+:} false; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 if test -n "$have_ps2pdf"; then
10447 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
10448 else
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10451 do
10452 IFS=$as_save_IFS
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10456 ac_cv_prog_have_ps2pdf="yes"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 break 2
10459 fi
10460 done
10461 done
10462 IFS=$as_save_IFS
10463
10464 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
10465 fi
10466 fi
10467 have_ps2pdf=$ac_cv_prog_have_ps2pdf
10468 if test -n "$have_ps2pdf"; then
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5
10470 $as_echo "$have_ps2pdf" >&6; }
10471 else
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10474 fi
10475
10476
10477 if test "x${have_latex}${have_dvips}${have_ps2pdf}" != "xyesyesyes"; then
10478 if test "$enable_docs" == "yes"; then
10479 as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5
10480 fi
10481 if test "$enable_docs" == "check"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5
10483 $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
10484 fi
10485 fi
10486 if test "x${have_latex}${have_dvips}${have_ps2pdf}" == "xyesyesyes" -a "$enable_docs" != "no"; then
10487 building_docs="yes"
10488 fi
10489 if test "$building_docs" == "yes"; then
10490 BUILD_DOCS_TRUE=
10491 BUILD_DOCS_FALSE='#'
10492 else
10493 BUILD_DOCS_TRUE='#'
10494 BUILD_DOCS_FALSE=
10495 fi
10496
10497
10498
10499 building_refdocs="no"
10500 # Check whether --enable-refdocs was given.
10501 if test "${enable_refdocs+set}" = set; then :
10502 enableval=$enable_refdocs; enable_refdocs=$enableval
10503 else
10504 enable_refdocs="check"
10505 fi
10506
10507 if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
10508 as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5
10509 fi
10510 if test "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
10511 building_refdocs="yes"
10512 fi
10513 if test "$building_refdocs" == "yes"; then
10514 BUILD_REFDOCS_TRUE=
10515 BUILD_REFDOCS_FALSE='#'
10516 else
10517 BUILD_REFDOCS_TRUE='#'
10518 BUILD_REFDOCS_FALSE=
10519 fi
10520
10521
10522 # Extract the first word of "xmlto", so it can be a program name with args.
10523 set dummy xmlto; ac_word=$2
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10525 $as_echo_n "checking for $ac_word... " >&6; }
10526 if ${ac_cv_prog_have_xmlto+:} false; then :
10527 $as_echo_n "(cached) " >&6
10528 else
10529 if test -n "$have_xmlto"; then
10530 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
10531 else
10532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533 for as_dir in $PATH
10534 do
10535 IFS=$as_save_IFS
10536 test -z "$as_dir" && as_dir=.
10537 for ac_exec_ext in '' $ac_executable_extensions; do
10538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10539 ac_cv_prog_have_xmlto="yes"
10540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 break 2
10542 fi
10543 done
10544 done
10545 IFS=$as_save_IFS
10546
10547 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
10548 fi
10549 fi
10550 have_xmlto=$ac_cv_prog_have_xmlto
10551 if test -n "$have_xmlto"; then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
10553 $as_echo "$have_xmlto" >&6; }
10554 else
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }
10557 fi
10558
10559
10560 # Extract the first word of "fop", so it can be a program name with args.
10561 set dummy fop; ac_word=$2
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563 $as_echo_n "checking for $ac_word... " >&6; }
10564 if ${ac_cv_prog_have_fop+:} false; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 if test -n "$have_fop"; then
10568 ac_cv_prog_have_fop="$have_fop" # Let the user override the test.
10569 else
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10572 do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10577 ac_cv_prog_have_fop="yes"
10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 break 2
10580 fi
10581 done
10582 done
10583 IFS=$as_save_IFS
10584
10585 test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no"
10586 fi
10587 fi
10588 have_fop=$ac_cv_prog_have_fop
10589 if test -n "$have_fop"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5
10591 $as_echo "$have_fop" >&6; }
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10595 fi
10596
10597
10598 if test "x${have_fop}" == "xyes"; then
10599 # Due to rhbz505364 / 830266, we must actually test-run fop, not just
10600 # hope that it works.
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5
10602 $as_echo_n "checking to see if xmlto --with-fop actually works... " >&6; }
10603 if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10605 $as_echo "yes" >&6; }
10606 else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5
10608 $as_echo "it's dead, Jim" >&6; }
10609 have_fop="broken"
10610 fi
10611 rm -f dummy-tapsets.pdf
10612 fi
10613 if test "$have_fop" == "yes"; then
10614 HAVE_FOP_TRUE=
10615 HAVE_FOP_FALSE='#'
10616 else
10617 HAVE_FOP_TRUE='#'
10618 HAVE_FOP_FALSE=
10619 fi
10620
10621 if test "$have_xmlto" == "yes"; then
10622 HAVE_XMLTO_TRUE=
10623 HAVE_XMLTO_FALSE='#'
10624 else
10625 HAVE_XMLTO_TRUE='#'
10626 HAVE_XMLTO_FALSE=
10627 fi
10628
10629
10630 building_htmldocs="no"
10631 # Check whether --enable-htmldocs was given.
10632 if test "${enable_htmldocs+set}" = set; then :
10633 enableval=$enable_htmldocs; building_htmldocs=$enableval
10634 else
10635 building_htmldocs="no"
10636 fi
10637
10638 if test "$have_xmlto" == "no" -a "$building_htmldocs" == "yes"; then
10639 as_fn_error $? "xmlto required for building html documentation" "$LINENO" 5
10640 fi
10641
10642 if test "$building_htmldocs" == "yes"; then
10643 BUILD_HTMLDOCS_TRUE=
10644 BUILD_HTMLDOCS_FALSE='#'
10645 else
10646 BUILD_HTMLDOCS_TRUE='#'
10647 BUILD_HTMLDOCS_FALSE=
10648 fi
10649
10650
10651 cat > conftest.xml << 'EOF'
10652 <?xml version="1.0" encoding="UTF-8"?>
10653 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
10654 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
10655 <book lang="en">
10656 <bookinfo><title>foo</title></bookinfo>
10657 <chapter id="logging.stp"><title>Logging Tapset</title>
10658 <refentry id="API-log"><refnamediv><refname>log</refname>
10659 <refpurpose>logging</refpurpose></refnamediv>
10660 <refsect1><title>Description</title>
10661 <para>baz</para></refsect1></refentry></chapter>
10662 </book>
10663 EOF
10664
10665 if test "x${have_xmlto}" == "xyes"; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5
10667 $as_echo_n "checking for xmlto --stringparam support... " >&6; }
10668 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
10669 if test $? == 0; then
10670 have_xmlto_stringparam="yes"
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10672 $as_echo "yes" >&6; }
10673 else
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675 $as_echo "no" >&6; }
10676 fi
10677 rm -f conftest.html
10678 fi
10679 if test "$have_xmlto_stringparam" == "yes"; then
10680 XMLTO_STRINGPARAM_TRUE=
10681 XMLTO_STRINGPARAM_FALSE='#'
10682 else
10683 XMLTO_STRINGPARAM_TRUE='#'
10684 XMLTO_STRINGPARAM_FALSE=
10685 fi
10686
10687
10688 rm -f conftest.xml
10689
10690
10691 # Check whether --with-nss was given.
10692 if test "${with_nss+set}" = set; then :
10693 withval=$with_nss;
10694 fi
10695
10696
10697 if test "x$with_nss" != "xno"; then :
10698
10699
10700 pkg_failed=no
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
10702 $as_echo_n "checking for nss... " >&6; }
10703
10704 if test -n "$nss_CFLAGS"; then
10705 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
10706 elif test -n "$PKG_CONFIG"; then
10707 if test -n "$PKG_CONFIG" && \
10708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10709 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10710 ac_status=$?
10711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10712 test $ac_status = 0; }; then
10713 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null`
10714 test "x$?" != "x0" && pkg_failed=yes
10715 else
10716 pkg_failed=yes
10717 fi
10718 else
10719 pkg_failed=untried
10720 fi
10721 if test -n "$nss_LIBS"; then
10722 pkg_cv_nss_LIBS="$nss_LIBS"
10723 elif test -n "$PKG_CONFIG"; then
10724 if test -n "$PKG_CONFIG" && \
10725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10726 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10727 ac_status=$?
10728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10729 test $ac_status = 0; }; then
10730 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null`
10731 test "x$?" != "x0" && pkg_failed=yes
10732 else
10733 pkg_failed=yes
10734 fi
10735 else
10736 pkg_failed=untried
10737 fi
10738
10739
10740
10741 if test $pkg_failed = yes; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10744
10745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10746 _pkg_short_errors_supported=yes
10747 else
10748 _pkg_short_errors_supported=no
10749 fi
10750 if test $_pkg_short_errors_supported = yes; then
10751 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1`
10752 else
10753 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1`
10754 fi
10755 # Put the nasty error message in config.log where it belongs
10756 echo "$nss_PKG_ERRORS" >&5
10757
10758 have_nss=no
10759 elif test $pkg_failed = untried; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761 $as_echo "no" >&6; }
10762 have_nss=no
10763 else
10764 nss_CFLAGS=$pkg_cv_nss_CFLAGS
10765 nss_LIBS=$pkg_cv_nss_LIBS
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10767 $as_echo "yes" >&6; }
10768 have_nss=yes
10769
10770 $as_echo "#define HAVE_NSS 1" >>confdefs.h
10771
10772
10773 fi
10774
10775 else
10776 have_nss=no
10777 fi
10778
10779 if test "${have_nss}" = "yes"; then
10780 HAVE_NSS_TRUE=
10781 HAVE_NSS_FALSE='#'
10782 else
10783 HAVE_NSS_TRUE='#'
10784 HAVE_NSS_FALSE=
10785 fi
10786
10787
10788
10789 # Check whether --with-dracutstap was given.
10790 if test "${with_dracutstap+set}" = set; then :
10791 withval=$with_dracutstap;
10792 fi
10793
10794 if test "x$with_dracutstap" != "x"; then :
10795 dracutstap="$with_dracutstap"
10796 else
10797 dracutstap=/usr/lib/dracut/modules.d/99stap
10798 fi
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut module directory $dracutstap" >&5
10800 $as_echo "$as_me: using dracut module directory $dracutstap" >&6;}
10801
10802
10803
10804 # Check whether --with-dracutbindir was given.
10805 if test "${with_dracutbindir+set}" = set; then :
10806 withval=$with_dracutbindir;
10807 fi
10808
10809 if test "x$with_dracutbindir" != "x"; then :
10810 dracutbindir="$with_dracutbindir"
10811 else
10812 dracutbindir=/sbin
10813 fi
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut binary $dracutbindir" >&5
10815 $as_echo "$as_me: using dracut binary $dracutbindir" >&6;}
10816
10817
10818 # Check whether --enable-server was given.
10819 if test "${enable_server+set}" = set; then :
10820 enableval=$enable_server; enable_server=$enableval
10821 else
10822 enable_server="check"
10823 fi
10824
10825
10826 if test "$enable_server" != "no"; then
10827 if test "x${have_nss}" != "xyes"; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5
10829 $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;}
10830 fi
10831 fi
10832 if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then
10833 BUILD_SERVER_TRUE=
10834 BUILD_SERVER_FALSE='#'
10835 else
10836 BUILD_SERVER_TRUE='#'
10837 BUILD_SERVER_FALSE=
10838 fi
10839
10840
10841 if test "${have_nss}" != "yes"; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5
10843 $as_echo "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;}
10844 fi
10845
10846
10847 # Check whether --with-avahi was given.
10848 if test "${with_avahi+set}" = set; then :
10849 withval=$with_avahi;
10850 fi
10851
10852
10853 if test "x$with_avahi" != "xno"; then :
10854
10855
10856 pkg_failed=no
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
10858 $as_echo_n "checking for avahi... " >&6; }
10859
10860 if test -n "$avahi_CFLAGS"; then
10861 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
10862 elif test -n "$PKG_CONFIG"; then
10863 if test -n "$PKG_CONFIG" && \
10864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
10865 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
10866 ac_status=$?
10867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10868 test $ac_status = 0; }; then
10869 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
10870 test "x$?" != "x0" && pkg_failed=yes
10871 else
10872 pkg_failed=yes
10873 fi
10874 else
10875 pkg_failed=untried
10876 fi
10877 if test -n "$avahi_LIBS"; then
10878 pkg_cv_avahi_LIBS="$avahi_LIBS"
10879 elif test -n "$PKG_CONFIG"; then
10880 if test -n "$PKG_CONFIG" && \
10881 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
10882 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
10883 ac_status=$?
10884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10885 test $ac_status = 0; }; then
10886 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
10887 test "x$?" != "x0" && pkg_failed=yes
10888 else
10889 pkg_failed=yes
10890 fi
10891 else
10892 pkg_failed=untried
10893 fi
10894
10895
10896
10897 if test $pkg_failed = yes; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 $as_echo "no" >&6; }
10900
10901 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10902 _pkg_short_errors_supported=yes
10903 else
10904 _pkg_short_errors_supported=no
10905 fi
10906 if test $_pkg_short_errors_supported = yes; then
10907 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
10908 else
10909 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
10910 fi
10911 # Put the nasty error message in config.log where it belongs
10912 echo "$avahi_PKG_ERRORS" >&5
10913
10914 have_avahi=no
10915 elif test $pkg_failed = untried; then
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 $as_echo "no" >&6; }
10918 have_avahi=no
10919 else
10920 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
10921 avahi_LIBS=$pkg_cv_avahi_LIBS
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10923 $as_echo "yes" >&6; }
10924 have_avahi=yes
10925
10926 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
10927
10928
10929 fi
10930
10931 else
10932 have_avahi=no
10933 fi
10934
10935 if test "${have_avahi}" = "yes"; then
10936 HAVE_AVAHI_TRUE=
10937 HAVE_AVAHI_FALSE='#'
10938 else
10939 HAVE_AVAHI_TRUE='#'
10940 HAVE_AVAHI_FALSE=
10941 fi
10942
10943
10944 if test "${have_avahi}" != "yes"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5
10946 $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;}
10947 fi
10948
10949
10950
10951 # Check whether --with-rpm was given.
10952 if test "${with_rpm+set}" = set; then :
10953 withval=$with_rpm;
10954 else
10955 with_rpm="auto"
10956 fi
10957
10958 if test "$with_rpm" != "no"; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5
10960 $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; }
10961 if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then :
10962 $as_echo_n "(cached) " >&6
10963 else
10964 ac_check_lib_save_LIBS=$LIBS
10965 LIBS="-lrpm $LIBS"
10966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10968
10969 /* Override any GCC internal prototype to avoid an error.
10970 Use char because int might match the return type of a GCC
10971 builtin and then its argument prototype would still apply. */
10972 #ifdef __cplusplus
10973 extern "C"
10974 #endif
10975 char rpmtsInitIterator ();
10976 int
10977 main ()
10978 {
10979 return rpmtsInitIterator ();
10980 ;
10981 return 0;
10982 }
10983 _ACEOF
10984 if ac_fn_c_try_link "$LINENO"; then :
10985 ac_cv_lib_rpm_rpmtsInitIterator=yes
10986 else
10987 ac_cv_lib_rpm_rpmtsInitIterator=no
10988 fi
10989 rm -f core conftest.err conftest.$ac_objext \
10990 conftest$ac_exeext conftest.$ac_ext
10991 LIBS=$ac_check_lib_save_LIBS
10992 fi
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
10994 $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
10995 if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then :
10996
10997
10998 $as_echo "#define HAVE_LIBRPM 1" >>confdefs.h
10999
11000 stap_LIBS="$stap_LIBS -lc -lrpm"
11001 have_librpm="yes"
11002 else
11003 have_librpm="no"
11004 fi
11005
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmdbNextIterator in -lrpmdb" >&5
11007 $as_echo_n "checking for rpmdbNextIterator in -lrpmdb... " >&6; }
11008 if ${ac_cv_lib_rpmdb_rpmdbNextIterator+:} false; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011 ac_check_lib_save_LIBS=$LIBS
11012 LIBS="-lrpmdb $LIBS"
11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11015
11016 /* Override any GCC internal prototype to avoid an error.
11017 Use char because int might match the return type of a GCC
11018 builtin and then its argument prototype would still apply. */
11019 #ifdef __cplusplus
11020 extern "C"
11021 #endif
11022 char rpmdbNextIterator ();
11023 int
11024 main ()
11025 {
11026 return rpmdbNextIterator ();
11027 ;
11028 return 0;
11029 }
11030 _ACEOF
11031 if ac_fn_c_try_link "$LINENO"; then :
11032 ac_cv_lib_rpmdb_rpmdbNextIterator=yes
11033 else
11034 ac_cv_lib_rpmdb_rpmdbNextIterator=no
11035 fi
11036 rm -f core conftest.err conftest.$ac_objext \
11037 conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS
11039 fi
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmdb_rpmdbNextIterator" >&5
11041 $as_echo "$ac_cv_lib_rpmdb_rpmdbNextIterator" >&6; }
11042 if test "x$ac_cv_lib_rpmdb_rpmdbNextIterator" = xyes; then :
11043
11044 stap_LIBS="$stap_LIBS -lrpmdb"
11045 fi
11046
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5
11048 $as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; }
11049 if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then :
11050 $as_echo_n "(cached) " >&6
11051 else
11052 ac_check_lib_save_LIBS=$LIBS
11053 LIBS="-lrpmio $LIBS"
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h. */
11056
11057 /* Override any GCC internal prototype to avoid an error.
11058 Use char because int might match the return type of a GCC
11059 builtin and then its argument prototype would still apply. */
11060 #ifdef __cplusplus
11061 extern "C"
11062 #endif
11063 char rpmFreeCrypto ();
11064 int
11065 main ()
11066 {
11067 return rpmFreeCrypto ();
11068 ;
11069 return 0;
11070 }
11071 _ACEOF
11072 if ac_fn_c_try_link "$LINENO"; then :
11073 ac_cv_lib_rpmio_rpmFreeCrypto=yes
11074 else
11075 ac_cv_lib_rpmio_rpmFreeCrypto=no
11076 fi
11077 rm -f core conftest.err conftest.$ac_objext \
11078 conftest$ac_exeext conftest.$ac_ext
11079 LIBS=$ac_check_lib_save_LIBS
11080 fi
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5
11082 $as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; }
11083 if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then :
11084
11085
11086 $as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h
11087
11088 stap_LIBS="$stap_LIBS -lc -lrpmio"
11089 have_librpmio="yes"
11090 else
11091 have_librpmio="no"
11092 fi
11093
11094 if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then
11095 as_fn_error $? "cannot find librpm" "$LINENO" 5
11096 fi
11097 if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5
11099 $as_echo "$as_me: WARNING: cannot find librpmio" >&2;}
11100 fi
11101 fi
11102
11103 LIBS_no_readline=$LIBS
11104
11105 have_libreadline="no"
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
11107 $as_echo_n "checking how to link readline libs... " >&6; }
11108 for libtermcap in "" tinfo ncursesw ncurses curses termcap; do
11109 if test -z "$libtermcap"; then
11110 READLINE_LIBS="-lreadline"
11111 else
11112 READLINE_LIBS="-lreadline -l$libtermcap"
11113 fi
11114 LIBS="$READLINE_LIBS $LIBS_no_readline"
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11117
11118 /* Override any GCC internal prototype to avoid an error.
11119 Use char because int might match the return type of a GCC
11120 builtin and then its argument prototype would still apply. */
11121 #ifdef __cplusplus
11122 extern "C"
11123 #endif
11124 char readline ();
11125 int
11126 main ()
11127 {
11128 return readline ();
11129 ;
11130 return 0;
11131 }
11132 _ACEOF
11133 if ac_fn_c_try_link "$LINENO"; then :
11134 have_libreadline="yes"
11135 fi
11136 rm -f core conftest.err conftest.$ac_objext \
11137 conftest$ac_exeext conftest.$ac_ext
11138 if test "$have_libreadline" = "yes"; then
11139 break
11140 fi
11141 done
11142 if test "$have_libreadline" = "no"; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11144 $as_echo "none" >&6; }
11145 READLINE_LIBS=""
11146 else
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
11148 $as_echo "$READLINE_LIBS" >&6; }
11149
11150 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11151
11152 fi
11153
11154 if test "$have_libreadline" == "yes"; then
11155 HAVE_LIBREADLINE_TRUE=
11156 HAVE_LIBREADLINE_FALSE='#'
11157 else
11158 HAVE_LIBREADLINE_TRUE='#'
11159 HAVE_LIBREADLINE_FALSE=
11160 fi
11161
11162
11163 LIBS=$LIBS_no_readline
11164
11165
11166 # Check whether --with-python3 was given.
11167 if test "${with_python3+set}" = set; then :
11168 withval=$with_python3;
11169 fi
11170
11171 if test "x$with_python3" = "xyes"; then :
11172 if test -z "$PYTHON3"; then :
11173 as_fn_error $? "python version 3 is required" "$LINENO" 5
11174 else
11175 preferred_python=$PYTHON3
11176
11177 fi
11178 else
11179 if test "x$PYTHON" = "x:"; then :
11180 as_fn_error $? "python version 2 is required" "$LINENO" 5
11181 else
11182 preferred_python=$PYTHON
11183
11184 fi
11185 fi
11186
11187 build_elfutils=no
11188
11189 # Check whether --with-elfutils was given.
11190 if test "${with_elfutils+set}" = set; then :
11191 withval=$with_elfutils;
11192 case "$with_elfutils" in
11193 yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;;
11194 ''|no) ;;
11195 *) build_elfutils=yes ;;
11196 esac
11197 fi
11198
11199 if test $build_elfutils = yes; then
11200 BUILD_ELFUTILS_TRUE=
11201 BUILD_ELFUTILS_FALSE='#'
11202 else
11203 BUILD_ELFUTILS_TRUE='#'
11204 BUILD_ELFUTILS_FALSE=
11205 fi
11206
11207 elfutils_abs_srcdir=`if test $build_elfutils = yes; then :
11208 cd $with_elfutils && pwd
11209 fi`
11210
11211
11212 if test $enable_translator = yes; then
11213 if test $build_elfutils = no; then
11214 # Need libdwfl-capable recent elfutils http://elfutils.org/
11215
11216 # On modern debian/ubuntu, libebl has been merged into libdw
11217 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
11218 save_LIBS="$LIBS"
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5
11220 $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; }
11221 if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 ac_check_lib_save_LIBS=$LIBS
11225 LIBS="-lebl $LIBS"
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228
11229 /* Override any GCC internal prototype to avoid an error.
11230 Use char because int might match the return type of a GCC
11231 builtin and then its argument prototype would still apply. */
11232 #ifdef __cplusplus
11233 extern "C"
11234 #endif
11235 char ebl_get_elfmachine ();
11236 int
11237 main ()
11238 {
11239 return ebl_get_elfmachine ();
11240 ;
11241 return 0;
11242 }
11243 _ACEOF
11244 if ac_fn_c_try_link "$LINENO"; then :
11245 ac_cv_lib_ebl_ebl_get_elfmachine=yes
11246 else
11247 ac_cv_lib_ebl_ebl_get_elfmachine=no
11248 fi
11249 rm -f core conftest.err conftest.$ac_objext \
11250 conftest$ac_exeext conftest.$ac_ext
11251 LIBS=$ac_check_lib_save_LIBS
11252 fi
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5
11254 $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; }
11255 if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then :
11256 ebl_LIBS=-lebl
11257 else
11258 ebl_LIBS=
11259 fi
11260
11261 LIBS="$save_LIBS"
11262
11263 save_LIBS="$LIBS"
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
11265 $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
11266 if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 ac_check_lib_save_LIBS=$LIBS
11270 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11273
11274 /* Override any GCC internal prototype to avoid an error.
11275 Use char because int might match the return type of a GCC
11276 builtin and then its argument prototype would still apply. */
11277 #ifdef __cplusplus
11278 extern "C"
11279 #endif
11280 char dwfl_module_getsym ();
11281 int
11282 main ()
11283 {
11284 return dwfl_module_getsym ();
11285 ;
11286 return 0;
11287 }
11288 _ACEOF
11289 if ac_fn_c_try_link "$LINENO"; then :
11290 ac_cv_lib_dw_dwfl_module_getsym=yes
11291 else
11292 ac_cv_lib_dw_dwfl_module_getsym=no
11293 fi
11294 rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11296 LIBS=$ac_check_lib_save_LIBS
11297 fi
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
11299 $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
11300 if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then :
11301 cat >>confdefs.h <<_ACEOF
11302 #define HAVE_LIBDW 1
11303 _ACEOF
11304
11305 LIBS="-ldw $LIBS"
11306
11307 else
11308
11309 as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5
11310 fi
11311
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5
11313 $as_echo_n "checking for dwarf_next_unit in -ldw... " >&6; }
11314 if ${ac_cv_lib_dw_dwarf_next_unit+:} false; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11321
11322 /* Override any GCC internal prototype to avoid an error.
11323 Use char because int might match the return type of a GCC
11324 builtin and then its argument prototype would still apply. */
11325 #ifdef __cplusplus
11326 extern "C"
11327 #endif
11328 char dwarf_next_unit ();
11329 int
11330 main ()
11331 {
11332 return dwarf_next_unit ();
11333 ;
11334 return 0;
11335 }
11336 _ACEOF
11337 if ac_fn_c_try_link "$LINENO"; then :
11338 ac_cv_lib_dw_dwarf_next_unit=yes
11339 else
11340 ac_cv_lib_dw_dwarf_next_unit=no
11341 fi
11342 rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11345 fi
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5
11347 $as_echo "$ac_cv_lib_dw_dwarf_next_unit" >&6; }
11348 if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes; then :
11349 cat >>confdefs.h <<_ACEOF
11350 #define HAVE_LIBDW 1
11351 _ACEOF
11352
11353 LIBS="-ldw $LIBS"
11354
11355 else
11356
11357 as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5
11358 fi
11359
11360 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
11361 LIBS="$save_LIBS"
11362 else
11363 # We built our own and stap_LDFLAGS points at the install.
11364 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
11365 fi
11366 fi
11367
11368
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
11370 $as_echo "$as_me: stap will link $stap_LIBS" >&6;}
11371
11372 # staprun has more modest libelf needs
11373 if test $build_elfutils = no; then
11374 save_LIBS="$LIBS"
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
11376 $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; }
11377 if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 ac_check_lib_save_LIBS=$LIBS
11381 LIBS="-lelf $LIBS"
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11384
11385 /* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11388 #ifdef __cplusplus
11389 extern "C"
11390 #endif
11391 char elf_getshdrstrndx ();
11392 int
11393 main ()
11394 {
11395 return elf_getshdrstrndx ();
11396 ;
11397 return 0;
11398 }
11399 _ACEOF
11400 if ac_fn_c_try_link "$LINENO"; then :
11401 ac_cv_lib_elf_elf_getshdrstrndx=yes
11402 else
11403 ac_cv_lib_elf_elf_getshdrstrndx=no
11404 fi
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11408 fi
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
11410 $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
11411 if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then :
11412 cat >>confdefs.h <<_ACEOF
11413 #define HAVE_LIBELF 1
11414 _ACEOF
11415
11416 LIBS="-lelf $LIBS"
11417
11418 else
11419
11420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11422 as_fn_error $? "libelf too old, need 0.142+
11423 See \`config.log' for more details" "$LINENO" 5; }
11424 fi
11425
11426 staprun_LIBS="$staprun_LIBS -lelf"
11427 LIBS="$save_LIBS"
11428 else
11429 # We built our own and staprun_LDFLAGS points at the install.
11430 staprun_LIBS="$staprun_LIBS -lelf"
11431 fi
11432
11433
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5
11435 $as_echo "$as_me: staprun will link $staprun_LIBS" >&6;}
11436
11437
11438 date=`date +%Y-%m-%d`
11439
11440 cat >>confdefs.h <<_ACEOF
11441 #define DATE "$date"
11442 _ACEOF
11443
11444 DATE="$date"
11445
11446
11447 # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
11448 # being compiled on 32-bit userspace but running against 64-bit kernels.
11449 # This is no longer necessary.
11450
11451 ac_ext=cpp
11452 ac_cpp='$CXXCPP $CPPFLAGS'
11453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11456
11457 # Use boost::string_ref if available
11458 ac_ext=cpp
11459 ac_cpp='$CXXCPP $CPPFLAGS'
11460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11464 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11465 if test -z "$CXXCPP"; then
11466 if ${ac_cv_prog_CXXCPP+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 # Double quotes because CXXCPP needs to be expanded
11470 for CXXCPP in "$CXX -E" "/lib/cpp"
11471 do
11472 ac_preproc_ok=false
11473 for ac_cxx_preproc_warn_flag in '' yes
11474 do
11475 # Use a header file that comes with gcc, so configuring glibc
11476 # with a fresh cross-compiler works.
11477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11478 # <limits.h> exists even on freestanding compilers.
11479 # On the NeXT, cc -E runs the code through the compiler's parser,
11480 # not just through cpp. "Syntax error" is here to catch this case.
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11483 #ifdef __STDC__
11484 # include <limits.h>
11485 #else
11486 # include <assert.h>
11487 #endif
11488 Syntax error
11489 _ACEOF
11490 if ac_fn_cxx_try_cpp "$LINENO"; then :
11491
11492 else
11493 # Broken: fails on valid input.
11494 continue
11495 fi
11496 rm -f conftest.err conftest.i conftest.$ac_ext
11497
11498 # OK, works on sane cases. Now check whether nonexistent headers
11499 # can be detected and how.
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11502 #include <ac_nonexistent.h>
11503 _ACEOF
11504 if ac_fn_cxx_try_cpp "$LINENO"; then :
11505 # Broken: success on invalid input.
11506 continue
11507 else
11508 # Passes both tests.
11509 ac_preproc_ok=:
11510 break
11511 fi
11512 rm -f conftest.err conftest.i conftest.$ac_ext
11513
11514 done
11515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11516 rm -f conftest.i conftest.err conftest.$ac_ext
11517 if $ac_preproc_ok; then :
11518 break
11519 fi
11520
11521 done
11522 ac_cv_prog_CXXCPP=$CXXCPP
11523
11524 fi
11525 CXXCPP=$ac_cv_prog_CXXCPP
11526 else
11527 ac_cv_prog_CXXCPP=$CXXCPP
11528 fi
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11530 $as_echo "$CXXCPP" >&6; }
11531 ac_preproc_ok=false
11532 for ac_cxx_preproc_warn_flag in '' yes
11533 do
11534 # Use a header file that comes with gcc, so configuring glibc
11535 # with a fresh cross-compiler works.
11536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11537 # <limits.h> exists even on freestanding compilers.
11538 # On the NeXT, cc -E runs the code through the compiler's parser,
11539 # not just through cpp. "Syntax error" is here to catch this case.
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11542 #ifdef __STDC__
11543 # include <limits.h>
11544 #else
11545 # include <assert.h>
11546 #endif
11547 Syntax error
11548 _ACEOF
11549 if ac_fn_cxx_try_cpp "$LINENO"; then :
11550
11551 else
11552 # Broken: fails on valid input.
11553 continue
11554 fi
11555 rm -f conftest.err conftest.i conftest.$ac_ext
11556
11557 # OK, works on sane cases. Now check whether nonexistent headers
11558 # can be detected and how.
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561 #include <ac_nonexistent.h>
11562 _ACEOF
11563 if ac_fn_cxx_try_cpp "$LINENO"; then :
11564 # Broken: success on invalid input.
11565 continue
11566 else
11567 # Passes both tests.
11568 ac_preproc_ok=:
11569 break
11570 fi
11571 rm -f conftest.err conftest.i conftest.$ac_ext
11572
11573 done
11574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11575 rm -f conftest.i conftest.err conftest.$ac_ext
11576 if $ac_preproc_ok; then :
11577
11578 else
11579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11581 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11582 See \`config.log' for more details" "$LINENO" 5; }
11583 fi
11584
11585 ac_ext=cpp
11586 ac_cpp='$CXXCPP $CPPFLAGS'
11587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11590
11591
11592 for ac_header in boost/utility/string_ref.hpp
11593 do :
11594 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/utility/string_ref.hpp" "ac_cv_header_boost_utility_string_ref_hpp" "$ac_includes_default"
11595 if test "x$ac_cv_header_boost_utility_string_ref_hpp" = xyes; then :
11596 cat >>confdefs.h <<_ACEOF
11597 #define HAVE_BOOST_UTILITY_STRING_REF_HPP 1
11598 _ACEOF
11599
11600 fi
11601
11602 done
11603
11604 ac_ext=c
11605 ac_cpp='$CPP $CPPFLAGS'
11606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11609
11610
11611
11612 # Check for Dyninst headers and libraries
11613
11614 # Check whether --with-dyninst was given.
11615 if test "${with_dyninst+set}" = set; then :
11616 withval=$with_dyninst;
11617 fi
11618
11619
11620 case "$with_dyninst" in
11621 no) ;;
11622 ''|yes) # Try a simple-minded distro search
11623 DYNINST_CXXFLAGS="-I/usr/include/dyninst"
11624 DYNINST_LDFLAGS="-L/usr/lib64/dyninst -L/usr/lib/dyninst" # XXX both lib paths!?!
11625 ;;
11626 *) # Use paths in the user-specified prefix
11627 DYNINST_CXXFLAGS="-I$with_dyninst/include"
11628 DYNINST_LDFLAGS="-L$with_dyninst/lib/" # XXX need lib64 too?
11629 ;;
11630 esac
11631 if test "$with_dyninst" != "no"; then
11632 ac_ext=cpp
11633 ac_cpp='$CXXCPP $CPPFLAGS'
11634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11637
11638 old_CPPFLAGS="$CPPFLAGS"
11639 CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS"
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5
11641 $as_echo "$as_me: checking dyninst support" >&6;}
11642 for ac_header in BPatch_object.h
11643 do :
11644 ac_fn_cxx_check_header_mongrel "$LINENO" "BPatch_object.h" "ac_cv_header_BPatch_object_h" "$ac_includes_default"
11645 if test "x$ac_cv_header_BPatch_object_h" = xyes; then :
11646 cat >>confdefs.h <<_ACEOF
11647 #define HAVE_BPATCH_OBJECT_H 1
11648 _ACEOF
11649
11650
11651
11652
11653 $as_echo "#define HAVE_DYNINST 1" >>confdefs.h
11654
11655 have_dyninst=yes
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5
11657 $as_echo "$as_me: dyninst support available" >&6;}
11658 fi
11659
11660 done
11661
11662 if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then
11663 as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5
11664 fi
11665 CPPFLAGS="$old_CPPFLAGS"
11666 ac_ext=c
11667 ac_cpp='$CPP $CPPFLAGS'
11668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11671
11672 fi
11673 if test "${have_dyninst}" = "yes"; then
11674 HAVE_DYNINST_TRUE=
11675 HAVE_DYNINST_FALSE='#'
11676 else
11677 HAVE_DYNINST_TRUE='#'
11678 HAVE_DYNINST_FALSE=
11679 fi
11680
11681
11682
11683
11684 # Check whether --enable-virt was given.
11685 if test "${enable_virt+set}" = set; then :
11686 enableval=$enable_virt; enable_virt=$enableval
11687 else
11688 enable_virt="check"
11689 fi
11690
11691
11692
11693 pkg_failed=no
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5
11695 $as_echo_n "checking for libvirt... " >&6; }
11696
11697 if test -n "$libvirt_CFLAGS"; then
11698 pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS"
11699 elif test -n "$PKG_CONFIG"; then
11700 if test -n "$PKG_CONFIG" && \
11701 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11702 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11703 ac_status=$?
11704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11705 test $ac_status = 0; }; then
11706 pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null`
11707 test "x$?" != "x0" && pkg_failed=yes
11708 else
11709 pkg_failed=yes
11710 fi
11711 else
11712 pkg_failed=untried
11713 fi
11714 if test -n "$libvirt_LIBS"; then
11715 pkg_cv_libvirt_LIBS="$libvirt_LIBS"
11716 elif test -n "$PKG_CONFIG"; then
11717 if test -n "$PKG_CONFIG" && \
11718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11719 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11720 ac_status=$?
11721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11722 test $ac_status = 0; }; then
11723 pkg_cv_libvirt_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null`
11724 test "x$?" != "x0" && pkg_failed=yes
11725 else
11726 pkg_failed=yes
11727 fi
11728 else
11729 pkg_failed=untried
11730 fi
11731
11732
11733
11734 if test $pkg_failed = yes; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11737
11738 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11739 _pkg_short_errors_supported=yes
11740 else
11741 _pkg_short_errors_supported=no
11742 fi
11743 if test $_pkg_short_errors_supported = yes; then
11744 libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11745 else
11746 libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11747 fi
11748 # Put the nasty error message in config.log where it belongs
11749 echo "$libvirt_PKG_ERRORS" >&5
11750
11751 have_libvirt=no
11752 elif test $pkg_failed = untried; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11755 have_libvirt=no
11756 else
11757 libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS
11758 libvirt_LIBS=$pkg_cv_libvirt_LIBS
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11760 $as_echo "yes" >&6; }
11761
11762 have_libvirt=yes
11763
11764 $as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h
11765
11766
11767 fi
11768 if test "${have_libvirt}" = "yes"; then
11769 HAVE_LIBVIRT_TRUE=
11770 HAVE_LIBVIRT_FALSE='#'
11771 else
11772 HAVE_LIBVIRT_TRUE='#'
11773 HAVE_LIBVIRT_FALSE=
11774 fi
11775
11776
11777 pkg_failed=no
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
11779 $as_echo_n "checking for libxml2... " >&6; }
11780
11781 if test -n "$libxml2_CFLAGS"; then
11782 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
11783 elif test -n "$PKG_CONFIG"; then
11784 if test -n "$PKG_CONFIG" && \
11785 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
11786 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
11787 ac_status=$?
11788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11789 test $ac_status = 0; }; then
11790 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
11791 test "x$?" != "x0" && pkg_failed=yes
11792 else
11793 pkg_failed=yes
11794 fi
11795 else
11796 pkg_failed=untried
11797 fi
11798 if test -n "$libxml2_LIBS"; then
11799 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
11800 elif test -n "$PKG_CONFIG"; then
11801 if test -n "$PKG_CONFIG" && \
11802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
11803 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
11804 ac_status=$?
11805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806 test $ac_status = 0; }; then
11807 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
11808 test "x$?" != "x0" && pkg_failed=yes
11809 else
11810 pkg_failed=yes
11811 fi
11812 else
11813 pkg_failed=untried
11814 fi
11815
11816
11817
11818 if test $pkg_failed = yes; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11821
11822 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11823 _pkg_short_errors_supported=yes
11824 else
11825 _pkg_short_errors_supported=no
11826 fi
11827 if test $_pkg_short_errors_supported = yes; then
11828 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
11829 else
11830 libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
11831 fi
11832 # Put the nasty error message in config.log where it belongs
11833 echo "$libxml2_PKG_ERRORS" >&5
11834
11835 have_libxml2=no
11836 elif test $pkg_failed = untried; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11839 have_libxml2=no
11840 else
11841 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
11842 libxml2_LIBS=$pkg_cv_libxml2_LIBS
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11844 $as_echo "yes" >&6; }
11845
11846 have_libxml2=yes
11847
11848 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11849
11850
11851 fi
11852 if test "${have_libxml2}" = "yes"; then
11853 HAVE_LIBXML2_TRUE=
11854 HAVE_LIBXML2_FALSE='#'
11855 else
11856 HAVE_LIBXML2_TRUE='#'
11857 HAVE_LIBXML2_FALSE=
11858 fi
11859
11860
11861 if test "$enable_virt" != "no"; then
11862 if test "x${have_libvirt}" != "xyes"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5
11864 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;}
11865 fi
11866 if test "x${have_libxml2}" != "xyes"; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5
11868 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;}
11869 fi
11870 fi
11871 if test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"; then
11872 BUILD_VIRT_TRUE=
11873 BUILD_VIRT_FALSE='#'
11874 else
11875 BUILD_VIRT_TRUE='#'
11876 BUILD_VIRT_FALSE=
11877 fi
11878
11879
11880
11881 # Check whether --with-python2-probes was given.
11882 if test "${with_python2_probes+set}" = set; then :
11883 withval=$with_python2_probes;
11884 fi
11885
11886 have_python2_support=no
11887 if test "x$with_python2_probes" != "xno"; then :
11888 pathless_python=$(basename "$PYTHON")
11889 # Extract the first word of "${pathless_python}-config", so it can be a program name with args.
11890 set dummy ${pathless_python}-config; ac_word=$2
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892 $as_echo_n "checking for $ac_word... " >&6; }
11893 if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
11894 $as_echo_n "(cached) " >&6
11895 else
11896 case $PYTHON_CONFIG in
11897 [\\/]* | ?:[\\/]*)
11898 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
11899 ;;
11900 *)
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $PATH
11903 do
11904 IFS=$as_save_IFS
11905 test -z "$as_dir" && as_dir=.
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11908 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11910 break 2
11911 fi
11912 done
11913 done
11914 IFS=$as_save_IFS
11915
11916 test -z "$ac_cv_path_PYTHON_CONFIG" && ac_cv_path_PYTHON_CONFIG="no"
11917 ;;
11918 esac
11919 fi
11920 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
11921 if test -n "$PYTHON_CONFIG"; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
11923 $as_echo "$PYTHON_CONFIG" >&6; }
11924 else
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926 $as_echo "no" >&6; }
11927 fi
11928
11929
11930 if test "x$PYTHON_CONFIG" != "xno"; then :
11931 PYTHON_CPPFLAGS=`$PYTHON_CONFIG --includes 2> /dev/null`
11932 PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
11933
11934 save_CPPFLAGS="$CPPFLAGS"
11935 CPPFLAGS="$PYTHON_CPPFLAGS $CPPFLAGS"
11936 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
11937 for ac_header in Python.h
11938 do :
11939 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
11940 if test "x$ac_cv_header_Python_h" = xyes; then :
11941 cat >>confdefs.h <<_ACEOF
11942 #define HAVE_PYTHON_H 1
11943 _ACEOF
11944 have_python2_support=yes
11945 fi
11946
11947 done
11948
11949 CPPFLAGS="$save_CPPFLAGS"
11950 fi
11951 fi
11952 if test "x$have_python2_support" = "xyes"; then :
11953
11954 $as_echo "#define HAVE_PYTHON2_PROBES 1" >>confdefs.h
11955
11956 else
11957 if test "x$with_python2_probes" = "xyes"; then :
11958 as_fn_error $? "python version 2 probe support requested but not found" "$LINENO" 5
11959 fi
11960
11961 fi
11962 if test "x$have_python2_support" = "xyes"; then
11963 HAVE_PYTHON2_PROBES_TRUE=
11964 HAVE_PYTHON2_PROBES_FALSE='#'
11965 else
11966 HAVE_PYTHON2_PROBES_TRUE='#'
11967 HAVE_PYTHON2_PROBES_FALSE=
11968 fi
11969
11970
11971
11972 # Check whether --with-python3-probes was given.
11973 if test "${with_python3_probes+set}" = set; then :
11974 withval=$with_python3_probes;
11975 fi
11976
11977 have_python3_support=no
11978 if test "x$with_python3_probes" != "xno"; then :
11979 pathless_python3=$(basename "$PYTHON3")
11980 if test "x${pathless_python3}" == "x"; then
11981 pathless_python3="python3"
11982 fi
11983 # Extract the first word of "${pathless_python3}-config", so it can be a program name with args.
11984 set dummy ${pathless_python3}-config; ac_word=$2
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11986 $as_echo_n "checking for $ac_word... " >&6; }
11987 if ${ac_cv_path_PYTHON3_CONFIG+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 case $PYTHON3_CONFIG in
11991 [\\/]* | ?:[\\/]*)
11992 ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path.
11993 ;;
11994 *)
11995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11996 for as_dir in $PATH
11997 do
11998 IFS=$as_save_IFS
11999 test -z "$as_dir" && as_dir=.
12000 for ac_exec_ext in '' $ac_executable_extensions; do
12001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12002 ac_cv_path_PYTHON3_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 break 2
12005 fi
12006 done
12007 done
12008 IFS=$as_save_IFS
12009
12010 test -z "$ac_cv_path_PYTHON3_CONFIG" && ac_cv_path_PYTHON3_CONFIG="no"
12011 ;;
12012 esac
12013 fi
12014 PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG
12015 if test -n "$PYTHON3_CONFIG"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5
12017 $as_echo "$PYTHON3_CONFIG" >&6; }
12018 else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12021 fi
12022
12023
12024 if test "x$PYTHON3_CONFIG" != "xno"; then :
12025 PYTHON3_CPPFLAGS=`$PYTHON3_CONFIG --includes 2> /dev/null`
12026 PYTHON3_CPPFLAGS=$PYTHON3_CPPFLAGS
12027
12028 save_CPPFLAGS="$CPPFLAGS"
12029 CPPFLAGS="$PYTHON3_CPPFLAGS $CPPFLAGS"
12030 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
12031 for ac_header in Python.h
12032 do :
12033 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
12034 if test "x$ac_cv_header_Python_h" = xyes; then :
12035 cat >>confdefs.h <<_ACEOF
12036 #define HAVE_PYTHON_H 1
12037 _ACEOF
12038 have_python3_support=yes
12039 fi
12040
12041 done
12042
12043 CPPFLAGS="$save_CPPFLAGS"
12044 fi
12045 fi
12046 if test "x$have_python3_support" = "xyes"; then :
12047
12048 $as_echo "#define HAVE_PYTHON3_PROBES 1" >>confdefs.h
12049
12050 else
12051 if test "x$with_python3_probes" = "xyes"; then :
12052 as_fn_error $? "python version 3 probe support requested but not found" "$LINENO" 5
12053 fi
12054
12055 fi
12056 if test "x$have_python3_support" = "xyes"; then
12057 HAVE_PYTHON3_PROBES_TRUE=
12058 HAVE_PYTHON3_PROBES_FALSE='#'
12059 else
12060 HAVE_PYTHON3_PROBES_TRUE='#'
12061 HAVE_PYTHON3_PROBES_FALSE=
12062 fi
12063
12064
12065 if test "x$have_python2_support" = "xyes" -o "x$have_python3_support" = "xyes"; then
12066 HAVE_PYTHON_PROBES_TRUE=
12067 HAVE_PYTHON_PROBES_FALSE='#'
12068 else
12069 HAVE_PYTHON_PROBES_TRUE='#'
12070 HAVE_PYTHON_PROBES_FALSE=
12071 fi
12072
12073
12074
12075 pkg_failed=no
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jsonc" >&5
12077 $as_echo_n "checking for jsonc... " >&6; }
12078
12079 if test -n "$jsonc_CFLAGS"; then
12080 pkg_cv_jsonc_CFLAGS="$jsonc_CFLAGS"
12081 elif test -n "$PKG_CONFIG"; then
12082 if test -n "$PKG_CONFIG" && \
12083 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.12\""; } >&5
12084 ($PKG_CONFIG --exists --print-errors "json-c >= 0.12") 2>&5
12085 ac_status=$?
12086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12087 test $ac_status = 0; }; then
12088 pkg_cv_jsonc_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.12" 2>/dev/null`
12089 test "x$?" != "x0" && pkg_failed=yes
12090 else
12091 pkg_failed=yes
12092 fi
12093 else
12094 pkg_failed=untried
12095 fi
12096 if test -n "$jsonc_LIBS"; then
12097 pkg_cv_jsonc_LIBS="$jsonc_LIBS"
12098 elif test -n "$PKG_CONFIG"; then
12099 if test -n "$PKG_CONFIG" && \
12100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.12\""; } >&5
12101 ($PKG_CONFIG --exists --print-errors "json-c >= 0.12") 2>&5
12102 ac_status=$?
12103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12104 test $ac_status = 0; }; then
12105 pkg_cv_jsonc_LIBS=`$PKG_CONFIG --libs "json-c >= 0.12" 2>/dev/null`
12106 test "x$?" != "x0" && pkg_failed=yes
12107 else
12108 pkg_failed=yes
12109 fi
12110 else
12111 pkg_failed=untried
12112 fi
12113
12114
12115
12116 if test $pkg_failed = yes; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12119
12120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12121 _pkg_short_errors_supported=yes
12122 else
12123 _pkg_short_errors_supported=no
12124 fi
12125 if test $_pkg_short_errors_supported = yes; then
12126 jsonc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.12" 2>&1`
12127 else
12128 jsonc_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.12" 2>&1`
12129 fi
12130 # Put the nasty error message in config.log where it belongs
12131 echo "$jsonc_PKG_ERRORS" >&5
12132
12133 have_jsonc=no
12134 elif test $pkg_failed = untried; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12137 have_jsonc=no
12138 else
12139 jsonc_CFLAGS=$pkg_cv_jsonc_CFLAGS
12140 jsonc_LIBS=$pkg_cv_jsonc_LIBS
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12142 $as_echo "yes" >&6; }
12143 have_jsonc=yes
12144 fi
12145
12146 pkg_failed=no
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
12148 $as_echo_n "checking for ncurses... " >&6; }
12149
12150 if test -n "$ncurses_CFLAGS"; then
12151 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
12152 elif test -n "$PKG_CONFIG"; then
12153 if test -n "$PKG_CONFIG" && \
12154 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12155 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12156 ac_status=$?
12157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12158 test $ac_status = 0; }; then
12159 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
12160 test "x$?" != "x0" && pkg_failed=yes
12161 else
12162 pkg_failed=yes
12163 fi
12164 else
12165 pkg_failed=untried
12166 fi
12167 if test -n "$ncurses_LIBS"; then
12168 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
12169 elif test -n "$PKG_CONFIG"; then
12170 if test -n "$PKG_CONFIG" && \
12171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12172 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12173 ac_status=$?
12174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12175 test $ac_status = 0; }; then
12176 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
12177 test "x$?" != "x0" && pkg_failed=yes
12178 else
12179 pkg_failed=yes
12180 fi
12181 else
12182 pkg_failed=untried
12183 fi
12184
12185
12186
12187 if test $pkg_failed = yes; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189 $as_echo "no" >&6; }
12190
12191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12192 _pkg_short_errors_supported=yes
12193 else
12194 _pkg_short_errors_supported=no
12195 fi
12196 if test $_pkg_short_errors_supported = yes; then
12197 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
12198 else
12199 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
12200 fi
12201 # Put the nasty error message in config.log where it belongs
12202 echo "$ncurses_PKG_ERRORS" >&5
12203
12204 have_ncurses=no
12205 elif test $pkg_failed = untried; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207 $as_echo "no" >&6; }
12208 have_ncurses=no
12209 else
12210 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
12211 ncurses_LIBS=$pkg_cv_ncurses_LIBS
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12213 $as_echo "yes" >&6; }
12214 have_ncurses=yes
12215 fi
12216 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == "yes"; then
12217 HAVE_MONITOR_LIBS_TRUE=
12218 HAVE_MONITOR_LIBS_FALSE='#'
12219 else
12220 HAVE_MONITOR_LIBS_TRUE='#'
12221 HAVE_MONITOR_LIBS_FALSE=
12222 fi
12223
12224 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == yes; then
12225
12226 $as_echo "#define HAVE_MONITOR_LIBS 1" >>confdefs.h
12227
12228 fi
12229
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
12231 $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; }
12232 if ${stap_cv_sectionq+:} false; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235
12236 old_CFLAGS="$CFLAGS"
12237 CFLAGS="$CFLAGS -Wa,--fatal-warnings"
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12240 asm(".section .note.foo,\"?\",\"note\"\n"
12241 ".byte 1, 2, 3\n"
12242 ".previous\n"
12243 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
12244 ".byte 1\n"
12245 ".pushsection .note.foo,\"?\",\"note\"\n"
12246 ".byte 4, 5, 6\n"
12247 ".popsection\n"
12248 ".byte 2\n");
12249 _ACEOF
12250 if ac_fn_c_try_compile "$LINENO"; then :
12251 stap_cv_sectionq=yes
12252 else
12253 stap_cv_sectionq=no
12254 fi
12255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256 CFLAGS="$old_CFLAGS"
12257 fi
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
12259 $as_echo "$stap_cv_sectionq" >&6; }
12260
12261 support_section_question=0
12262 if test $stap_cv_sectionq = yes; then
12263 support_section_question=1
12264 fi
12265 ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
12266
12267
12268 if test $build_elfutils = yes -a $enable_translator = yes; then
12269 here=`pwd`
12270 case "$with_elfutils" in
12271 /*) elfutils_srcdir="$with_elfutils" ;;
12272 *) elfutils_srcdir="${here}/$with_elfutils" ;;
12273 esac
12274
12275 if ! test -f ${elfutils_srcdir}/configure; then
12276 as_fn_error $? "No ${elfutils_srcdir}/configure, forgot to run autoreconf -i?" "$LINENO" 5
12277 fi
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5
12279 $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
12280
12281 save_CFLAGS="$CFLAGS"
12282 save_CXXFLAGS="$CXXFLAGS"
12283 CXXFLAGS="$CXXFLAGS -fgnu89-inline"
12284 CFLAGS="$CFLAGS -fgnu89-inline"
12285 gnu89_inline_flag=""
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288 int something ();
12289 _ACEOF
12290 if ac_fn_c_try_compile "$LINENO"; then :
12291
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5
12293 $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
12294 gnu89_inline_flag="-fgnu89-inline"
12295 else
12296
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5
12298 $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
12299 fi
12300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 CFLAGS="$save_CFLAGS"
12302 CXXFLAGS="$save_CXXFLAGS"
12303
12304 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
12305 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
12306 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
12307 # So we must make sure to pass those settings to elfutils configure.
12308 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
12309 # Check whether this is a source release, or a source checkout.
12310 # We need --enable-maintainer-mode if it isn't a source release.
12311 # elfutils.spec is only distributed in source releases.
12312 if test -f ${elfutils_srcdir}/elfutils.spec; then
12313 need_maintainer_option=""
12314 else
12315 need_maintainer_option="--enable-maintainer-mode"
12316 fi
12317 (mkdir -p build-elfutils && cd build-elfutils &&
12318 bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
12319 --includedir="${here}/include-elfutils" \
12320 --libdir="${here}/lib-elfutils" \
12321 --exec-prefix="$exec_prefix" \
12322 --prefix="$prefix" \
12323 --enable-dwz \
12324 ${need_maintainer_option} \
12325 CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag -fexceptions" \
12326 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
12327 if test -f ${elfutils_srcdir}/config/version.h.in; then
12328 echo Found elfutils/version.h header...
12329 else
12330 echo elfutils/version.h header not found, need elfutils 0.142+...
12331 exit -1
12332 fi
12333 )
12334 if test $? != 0; then exit -1; fi
12335 fi
12336
12337
12338 # Check whether --with-selinux was given.
12339 if test "${with_selinux+set}" = set; then :
12340 withval=$with_selinux;
12341 fi
12342
12343
12344 if test "x$with_selinux" != "xno"; then :
12345
12346
12347 pkg_failed=no
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5
12349 $as_echo_n "checking for selinux... " >&6; }
12350
12351 if test -n "$selinux_CFLAGS"; then
12352 pkg_cv_selinux_CFLAGS="$selinux_CFLAGS"
12353 elif test -n "$PKG_CONFIG"; then
12354 if test -n "$PKG_CONFIG" && \
12355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12356 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12357 ac_status=$?
12358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12359 test $ac_status = 0; }; then
12360 pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
12361 test "x$?" != "x0" && pkg_failed=yes
12362 else
12363 pkg_failed=yes
12364 fi
12365 else
12366 pkg_failed=untried
12367 fi
12368 if test -n "$selinux_LIBS"; then
12369 pkg_cv_selinux_LIBS="$selinux_LIBS"
12370 elif test -n "$PKG_CONFIG"; then
12371 if test -n "$PKG_CONFIG" && \
12372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12373 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12374 ac_status=$?
12375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12376 test $ac_status = 0; }; then
12377 pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
12378 test "x$?" != "x0" && pkg_failed=yes
12379 else
12380 pkg_failed=yes
12381 fi
12382 else
12383 pkg_failed=untried
12384 fi
12385
12386
12387
12388 if test $pkg_failed = yes; then
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12391
12392 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12393 _pkg_short_errors_supported=yes
12394 else
12395 _pkg_short_errors_supported=no
12396 fi
12397 if test $_pkg_short_errors_supported = yes; then
12398 selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
12399 else
12400 selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
12401 fi
12402 # Put the nasty error message in config.log where it belongs
12403 echo "$selinux_PKG_ERRORS" >&5
12404
12405 have_selinux=no
12406 elif test $pkg_failed = untried; then
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408 $as_echo "no" >&6; }
12409 have_selinux=no
12410 else
12411 selinux_CFLAGS=$pkg_cv_selinux_CFLAGS
12412 selinux_LIBS=$pkg_cv_selinux_LIBS
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12414 $as_echo "yes" >&6; }
12415 have_selinux=yes
12416
12417 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
12418
12419
12420 fi
12421
12422 else
12423 have_selinux=no
12424 fi
12425
12426 if test "${have_selinux}" = "yes"; then
12427 HAVE_SELINUX_TRUE=
12428 HAVE_SELINUX_FALSE='#'
12429 else
12430 HAVE_SELINUX_TRUE='#'
12431 HAVE_SELINUX_FALSE=
12432 fi
12433
12434
12435 ac_fn_c_check_decl "$LINENO" "F_SETPIPE_SZ" "ac_cv_have_decl_F_SETPIPE_SZ" "#include <fcntl.h>
12436 "
12437 if test "x$ac_cv_have_decl_F_SETPIPE_SZ" = xyes; then :
12438
12439 $as_echo "#define HAVE_F_SETPIPE_SZ 1" >>confdefs.h
12440
12441 fi
12442
12443
12444 # Extract the first word of "javac", so it can be a program name with args.
12445 set dummy javac; ac_word=$2
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447 $as_echo_n "checking for $ac_word... " >&6; }
12448 if ${ac_cv_prog_have_javac+:} false; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 if test -n "$have_javac"; then
12452 ac_cv_prog_have_javac="$have_javac" # Let the user override the test.
12453 else
12454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12455 for as_dir in $PATH
12456 do
12457 IFS=$as_save_IFS
12458 test -z "$as_dir" && as_dir=.
12459 for ac_exec_ext in '' $ac_executable_extensions; do
12460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12461 ac_cv_prog_have_javac="yes"
12462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463 break 2
12464 fi
12465 done
12466 done
12467 IFS=$as_save_IFS
12468
12469 test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no"
12470 fi
12471 fi
12472 have_javac=$ac_cv_prog_have_javac
12473 if test -n "$have_javac"; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5
12475 $as_echo "$have_javac" >&6; }
12476 else
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478 $as_echo "no" >&6; }
12479 fi
12480
12481
12482 # Extract the first word of "jar", so it can be a program name with args.
12483 set dummy jar; ac_word=$2
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485 $as_echo_n "checking for $ac_word... " >&6; }
12486 if ${ac_cv_prog_have_jar+:} false; then :
12487 $as_echo_n "(cached) " >&6
12488 else
12489 if test -n "$have_jar"; then
12490 ac_cv_prog_have_jar="$have_jar" # Let the user override the test.
12491 else
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12494 do
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12499 ac_cv_prog_have_jar="yes"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12502 fi
12503 done
12504 done
12505 IFS=$as_save_IFS
12506
12507 test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no"
12508 fi
12509 fi
12510 have_jar=$ac_cv_prog_have_jar
12511 if test -n "$have_jar"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5
12513 $as_echo "$have_jar" >&6; }
12514 else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12517 fi
12518
12519
12520 if test "$have_javac" != no -a "$have_jar" != no; then
12521 echo java found, will try to configure Byteman support
12522
12523
12524 # Check whether --with-java was given.
12525 if test "${with_java+set}" = set; then :
12526 withval=$with_java;
12527 else
12528 with_java=/usr/lib/jvm/java
12529 fi
12530
12531 if test ! -d "$with_java"; then
12532 with_java=no
12533 fi
12534 JAVADIR="${with_java}"
12535 # always needed to compile
12536
12537 if test "$with_java" != "no"; then
12538
12539 cat >>confdefs.h <<_ACEOF
12540 #define HAVE_JAVA "1"
12541 _ACEOF
12542
12543 fi
12544
12545 if test "$with_java" != "no"; then
12546 HAVE_JAVA_TRUE=
12547 HAVE_JAVA_FALSE='#'
12548 else
12549 HAVE_JAVA_TRUE='#'
12550 HAVE_JAVA_FALSE=
12551 fi
12552
12553
12554 else
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5
12556 $as_echo "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;}
12557 if false; then
12558 HAVE_JAVA_TRUE=
12559 HAVE_JAVA_FALSE='#'
12560 else
12561 HAVE_JAVA_TRUE='#'
12562 HAVE_JAVA_FALSE=
12563 fi
12564
12565 fi # java+byteman support
12566
12567 ENABLE_NLS="$USE_NLS"
12568
12569 localedir="$localedir"
12570
12571 LOCALEDIR="$localedir"
12572
12573
12574
12575 # Check whether --with-extra-version was given.
12576 if test "${with_extra_version+set}" = set; then :
12577 withval=$with_extra_version;
12578 fi
12579
12580 if test "x$with_extra_version" != "xno"; then :
12581
12582 stap_extra_version="$with_extra_version"
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5
12584 $as_echo "$as_me: Adding extra version $stap_extra_version" >&6;}
12585 else
12586
12587 stap_extra_version=""
12588 fi
12589
12590 cat >>confdefs.h <<_ACEOF
12591 #define STAP_EXTRA_VERSION "$stap_extra_version"
12592 _ACEOF
12593
12594 STAP_EXTRA_VERSION="$stap_extra_version"
12595
12596
12597 # Check whether --enable-http was given.
12598 if test "${enable_http+set}" = set; then :
12599 enableval=$enable_http;
12600 fi
12601
12602 have_http_support=no
12603 if test "x$enable_http" != "xno"; then :
12604
12605 pkg_failed=no
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
12607 $as_echo_n "checking for libmicrohttpd... " >&6; }
12608
12609 if test -n "$libmicrohttpd_CFLAGS"; then
12610 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
12611 elif test -n "$PKG_CONFIG"; then
12612 if test -n "$PKG_CONFIG" && \
12613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
12614 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
12615 ac_status=$?
12616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12617 test $ac_status = 0; }; then
12618 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.0" 2>/dev/null`
12619 test "x$?" != "x0" && pkg_failed=yes
12620 else
12621 pkg_failed=yes
12622 fi
12623 else
12624 pkg_failed=untried
12625 fi
12626 if test -n "$libmicrohttpd_LIBS"; then
12627 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
12628 elif test -n "$PKG_CONFIG"; then
12629 if test -n "$PKG_CONFIG" && \
12630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
12631 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
12632 ac_status=$?
12633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12634 test $ac_status = 0; }; then
12635 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.0" 2>/dev/null`
12636 test "x$?" != "x0" && pkg_failed=yes
12637 else
12638 pkg_failed=yes
12639 fi
12640 else
12641 pkg_failed=untried
12642 fi
12643
12644
12645
12646 if test $pkg_failed = yes; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 $as_echo "no" >&6; }
12649
12650 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12651 _pkg_short_errors_supported=yes
12652 else
12653 _pkg_short_errors_supported=no
12654 fi
12655 if test $_pkg_short_errors_supported = yes; then
12656 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
12657 else
12658 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
12659 fi
12660 # Put the nasty error message in config.log where it belongs
12661 echo "$libmicrohttpd_PKG_ERRORS" >&5
12662
12663 have_libmicrohttpd=false
12664 elif test $pkg_failed = untried; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666 $as_echo "no" >&6; }
12667 have_libmicrohttpd=false
12668 else
12669 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
12670 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12672 $as_echo "yes" >&6; }
12673 have_libmicrohttpd=true
12674 fi
12675
12676
12677 pkg_failed=no
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid" >&5
12679 $as_echo_n "checking for uuid... " >&6; }
12680
12681 if test -n "$uuid_CFLAGS"; then
12682 pkg_cv_uuid_CFLAGS="$uuid_CFLAGS"
12683 elif test -n "$PKG_CONFIG"; then
12684 if test -n "$PKG_CONFIG" && \
12685 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
12686 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
12687 ac_status=$?
12688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12689 test $ac_status = 0; }; then
12690 pkg_cv_uuid_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.17.0" 2>/dev/null`
12691 test "x$?" != "x0" && pkg_failed=yes
12692 else
12693 pkg_failed=yes
12694 fi
12695 else
12696 pkg_failed=untried
12697 fi
12698 if test -n "$uuid_LIBS"; then
12699 pkg_cv_uuid_LIBS="$uuid_LIBS"
12700 elif test -n "$PKG_CONFIG"; then
12701 if test -n "$PKG_CONFIG" && \
12702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
12703 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
12704 ac_status=$?
12705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12706 test $ac_status = 0; }; then
12707 pkg_cv_uuid_LIBS=`$PKG_CONFIG --libs "uuid >= 2.17.0" 2>/dev/null`
12708 test "x$?" != "x0" && pkg_failed=yes
12709 else
12710 pkg_failed=yes
12711 fi
12712 else
12713 pkg_failed=untried
12714 fi
12715
12716
12717
12718 if test $pkg_failed = yes; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12721
12722 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12723 _pkg_short_errors_supported=yes
12724 else
12725 _pkg_short_errors_supported=no
12726 fi
12727 if test $_pkg_short_errors_supported = yes; then
12728 uuid_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
12729 else
12730 uuid_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
12731 fi
12732 # Put the nasty error message in config.log where it belongs
12733 echo "$uuid_PKG_ERRORS" >&5
12734
12735 have_libuuid=false
12736 elif test $pkg_failed = untried; then
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738 $as_echo "no" >&6; }
12739 have_libuuid=false
12740 else
12741 uuid_CFLAGS=$pkg_cv_uuid_CFLAGS
12742 uuid_LIBS=$pkg_cv_uuid_LIBS
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12744 $as_echo "yes" >&6; }
12745 have_libuuid=true
12746 fi
12747
12748 if test "x$have_libmicrohttpd" == "xtrue" -a "x$have_libuuid" == "xtrue" -a "x$have_jsonc" == "xyes"; then :
12749 have_http_support=yes
12750 fi
12751 fi
12752
12753 if test "x$have_http_support" = "xyes"; then :
12754
12755 $as_echo "#define HAVE_HTTP_SUPPORT 1" >>confdefs.h
12756
12757 else
12758 if test "x$enable_http" = "xyes"; then :
12759 as_fn_error $? "http service support requested but not found" "$LINENO" 5
12760 fi
12761
12762 fi
12763 if test "x$have_http_support" = "xyes"; then
12764 HAVE_HTTP_SUPPORT_TRUE=
12765 HAVE_HTTP_SUPPORT_FALSE='#'
12766 else
12767 HAVE_HTTP_SUPPORT_TRUE='#'
12768 HAVE_HTTP_SUPPORT_FALSE=
12769 fi
12770
12771
12772 if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"; then
12773 NEED_BASE_CLIENT_CODE_TRUE=
12774 NEED_BASE_CLIENT_CODE_FALSE='#'
12775 else
12776 NEED_BASE_CLIENT_CODE_TRUE='#'
12777 NEED_BASE_CLIENT_CODE_FALSE=
12778 fi
12779
12780 if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"; then :
12781
12782
12783 $as_echo "#define NEED_BASE_CLIENT_CODE 1" >>confdefs.h
12784
12785
12786 fi
12787
12788
12789 stap_prefix=$prefix
12790 test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
12791
12792 cat >>confdefs.h <<_ACEOF
12793 #define STAP_PREFIX "$stap_prefix"
12794 _ACEOF
12795
12796 STAP_PREFIX="$stap_prefix"
12797
12798
12799 ac_config_headers="$ac_config_headers config.h:config.in"
12800
12801 ac_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.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"
12802
12803
12804
12805 subdirs="$subdirs testsuite"
12806
12807 if test $enable_translator == "yes"; then
12808 ac_config_files="$ac_config_files run-stap"
12809
12810 fi
12811 ac_config_files="$ac_config_files dtrace"
12812
12813 ac_config_files="$ac_config_files stapdyn/Makefile"
12814
12815 ac_config_files="$ac_config_files java/Makefile"
12816
12817 ac_config_files="$ac_config_files java/stapbm"
12818
12819 ac_config_files="$ac_config_files python/Makefile"
12820
12821 ac_config_files="$ac_config_files staprun/Makefile"
12822
12823 ac_config_files="$ac_config_files httpd/Makefile"
12824
12825 ac_config_files="$ac_config_files staprun/run-staprun"
12826
12827 ac_config_files="$ac_config_files staprun/guest/stapshd"
12828
12829 ac_config_files="$ac_config_files staprun/guest/stapsh-daemon"
12830
12831 ac_config_files="$ac_config_files staprun/guest/stapsh@.service"
12832
12833
12834 # Setup "shadow" directory doc/beginners that has the basic directories setup for
12835 # xmlto in one directory (through directory links if necessary).
12836 # It would be nice to use AC_CONFIG_LINKS, but automake complains when
12837 # the src is a directory and not a file.
12838 ac_config_commands="$ac_config_commands doc/beginners"
12839
12840
12841 cat >confcache <<\_ACEOF
12842 # This file is a shell script that caches the results of configure
12843 # tests run on this system so they can be shared between configure
12844 # scripts and configure runs, see configure's option --config-cache.
12845 # It is not useful on other systems. If it contains results you don't
12846 # want to keep, you may remove or edit it.
12847 #
12848 # config.status only pays attention to the cache file if you give it
12849 # the --recheck option to rerun configure.
12850 #
12851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12853 # following values.
12854
12855 _ACEOF
12856
12857 # The following way of writing the cache mishandles newlines in values,
12858 # but we know of no workaround that is simple, portable, and efficient.
12859 # So, we kill variables containing newlines.
12860 # Ultrix sh set writes to stderr and can't be redirected directly,
12861 # and sets the high bit in the cache file unless we assign to the vars.
12862 (
12863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12864 eval ac_val=\$$ac_var
12865 case $ac_val in #(
12866 *${as_nl}*)
12867 case $ac_var in #(
12868 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12869 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12870 esac
12871 case $ac_var in #(
12872 _ | IFS | as_nl) ;; #(
12873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12874 *) { eval $ac_var=; unset $ac_var;} ;;
12875 esac ;;
12876 esac
12877 done
12878
12879 (set) 2>&1 |
12880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12881 *${as_nl}ac_space=\ *)
12882 # `set' does not quote correctly, so add quotes: double-quote
12883 # substitution turns \\\\ into \\, and sed turns \\ into \.
12884 sed -n \
12885 "s/'/'\\\\''/g;
12886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12887 ;; #(
12888 *)
12889 # `set' quotes correctly as required by POSIX, so do not add quotes.
12890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12891 ;;
12892 esac |
12893 sort
12894 ) |
12895 sed '
12896 /^ac_cv_env_/b end
12897 t clear
12898 :clear
12899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12900 t end
12901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12902 :end' >>confcache
12903 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12904 if test -w "$cache_file"; then
12905 if test "x$cache_file" != "x/dev/null"; then
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12907 $as_echo "$as_me: updating cache $cache_file" >&6;}
12908 if test ! -f "$cache_file" || test -h "$cache_file"; then
12909 cat confcache >"$cache_file"
12910 else
12911 case $cache_file in #(
12912 */* | ?:*)
12913 mv -f confcache "$cache_file"$$ &&
12914 mv -f "$cache_file"$$ "$cache_file" ;; #(
12915 *)
12916 mv -f confcache "$cache_file" ;;
12917 esac
12918 fi
12919 fi
12920 else
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12922 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12923 fi
12924 fi
12925 rm -f confcache
12926
12927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12928 # Let make expand exec_prefix.
12929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12930
12931 DEFS=-DHAVE_CONFIG_H
12932
12933 ac_libobjs=
12934 ac_ltlibobjs=
12935 U=
12936 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12937 # 1. Remove the extension, and $U if already installed.
12938 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12939 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12940 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12941 # will be set to the directory where LIBOBJS objects are built.
12942 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12943 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12944 done
12945 LIBOBJS=$ac_libobjs
12946
12947 LTLIBOBJS=$ac_ltlibobjs
12948
12949
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12951 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12952 if test -n "$am_sleep_pid"; then
12953 # Hide warnings about reused PIDs.
12954 wait $am_sleep_pid 2>/dev/null
12955 fi
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12957 $as_echo "done" >&6; }
12958 if test -n "$EXEEXT"; then
12959 am__EXEEXT_TRUE=
12960 am__EXEEXT_FALSE='#'
12961 else
12962 am__EXEEXT_TRUE='#'
12963 am__EXEEXT_FALSE=
12964 fi
12965
12966 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12967 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12969 fi
12970 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12971 as_fn_error $? "conditional \"AMDEP\" was never defined.
12972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12973 fi
12974 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12975 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12977 fi
12978 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12979 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12981 fi
12982 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
12983 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
12984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12985 fi
12986 if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
12987 as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined.
12988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12989 fi
12990 if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
12991 as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined.
12992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12993 fi
12994 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
12995 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
12996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12997 fi
12998 if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
12999 as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined.
13000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13001 fi
13002 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
13003 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
13004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13005 fi
13006 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
13007 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
13008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13009 fi
13010 if test -z "${BUILD_HTMLDOCS_TRUE}" && test -z "${BUILD_HTMLDOCS_FALSE}"; then
13011 as_fn_error $? "conditional \"BUILD_HTMLDOCS\" was never defined.
13012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13013 fi
13014 if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
13015 as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined.
13016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13017 fi
13018 if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
13019 as_fn_error $? "conditional \"HAVE_NSS\" was never defined.
13020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13021 fi
13022 if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
13023 as_fn_error $? "conditional \"BUILD_SERVER\" was never defined.
13024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13025 fi
13026 if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
13027 as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined.
13028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13029 fi
13030 if test -z "${HAVE_LIBREADLINE_TRUE}" && test -z "${HAVE_LIBREADLINE_FALSE}"; then
13031 as_fn_error $? "conditional \"HAVE_LIBREADLINE\" was never defined.
13032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13033 fi
13034 if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
13035 as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined.
13036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13037 fi
13038 if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then
13039 as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined.
13040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13041 fi
13042 if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then
13043 as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined.
13044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13045 fi
13046 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
13047 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
13048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13049 fi
13050 if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then
13051 as_fn_error $? "conditional \"BUILD_VIRT\" was never defined.
13052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13053 fi
13054 if test -z "${HAVE_PYTHON2_PROBES_TRUE}" && test -z "${HAVE_PYTHON2_PROBES_FALSE}"; then
13055 as_fn_error $? "conditional \"HAVE_PYTHON2_PROBES\" was never defined.
13056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13057 fi
13058 if test -z "${HAVE_PYTHON3_PROBES_TRUE}" && test -z "${HAVE_PYTHON3_PROBES_FALSE}"; then
13059 as_fn_error $? "conditional \"HAVE_PYTHON3_PROBES\" was never defined.
13060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13061 fi
13062 if test -z "${HAVE_PYTHON_PROBES_TRUE}" && test -z "${HAVE_PYTHON_PROBES_FALSE}"; then
13063 as_fn_error $? "conditional \"HAVE_PYTHON_PROBES\" was never defined.
13064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13065 fi
13066 if test -z "${HAVE_MONITOR_LIBS_TRUE}" && test -z "${HAVE_MONITOR_LIBS_FALSE}"; then
13067 as_fn_error $? "conditional \"HAVE_MONITOR_LIBS\" was never defined.
13068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13069 fi
13070 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
13071 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
13072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13073 fi
13074 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13075 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
13076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13077 fi
13078 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13079 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
13080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13081 fi
13082 if test -z "${HAVE_HTTP_SUPPORT_TRUE}" && test -z "${HAVE_HTTP_SUPPORT_FALSE}"; then
13083 as_fn_error $? "conditional \"HAVE_HTTP_SUPPORT\" was never defined.
13084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13085 fi
13086 if test -z "${NEED_BASE_CLIENT_CODE_TRUE}" && test -z "${NEED_BASE_CLIENT_CODE_FALSE}"; then
13087 as_fn_error $? "conditional \"NEED_BASE_CLIENT_CODE\" was never defined.
13088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13089 fi
13090
13091 : "${CONFIG_STATUS=./config.status}"
13092 ac_write_fail=0
13093 ac_clean_files_save=$ac_clean_files
13094 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13096 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13097 as_write_fail=0
13098 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13099 #! $SHELL
13100 # Generated by $as_me.
13101 # Run this file to recreate the current configuration.
13102 # Compiler output produced by configure, useful for debugging
13103 # configure, is in config.log if it exists.
13104
13105 debug=false
13106 ac_cs_recheck=false
13107 ac_cs_silent=false
13108
13109 SHELL=\${CONFIG_SHELL-$SHELL}
13110 export SHELL
13111 _ASEOF
13112 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13113 ## -------------------- ##
13114 ## M4sh Initialization. ##
13115 ## -------------------- ##
13116
13117 # Be more Bourne compatible
13118 DUALCASE=1; export DUALCASE # for MKS sh
13119 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13120 emulate sh
13121 NULLCMD=:
13122 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13123 # is contrary to our usage. Disable this feature.
13124 alias -g '${1+"$@"}'='"$@"'
13125 setopt NO_GLOB_SUBST
13126 else
13127 case `(set -o) 2>/dev/null` in #(
13128 *posix*) :
13129 set -o posix ;; #(
13130 *) :
13131 ;;
13132 esac
13133 fi
13134
13135
13136 as_nl='
13137 '
13138 export as_nl
13139 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13140 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13141 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13142 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13143 # Prefer a ksh shell builtin over an external printf program on Solaris,
13144 # but without wasting forks for bash or zsh.
13145 if test -z "$BASH_VERSION$ZSH_VERSION" \
13146 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13147 as_echo='print -r --'
13148 as_echo_n='print -rn --'
13149 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13150 as_echo='printf %s\n'
13151 as_echo_n='printf %s'
13152 else
13153 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13154 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13155 as_echo_n='/usr/ucb/echo -n'
13156 else
13157 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13158 as_echo_n_body='eval
13159 arg=$1;
13160 case $arg in #(
13161 *"$as_nl"*)
13162 expr "X$arg" : "X\\(.*\\)$as_nl";
13163 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13164 esac;
13165 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13166 '
13167 export as_echo_n_body
13168 as_echo_n='sh -c $as_echo_n_body as_echo'
13169 fi
13170 export as_echo_body
13171 as_echo='sh -c $as_echo_body as_echo'
13172 fi
13173
13174 # The user is always right.
13175 if test "${PATH_SEPARATOR+set}" != set; then
13176 PATH_SEPARATOR=:
13177 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13178 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13179 PATH_SEPARATOR=';'
13180 }
13181 fi
13182
13183
13184 # IFS
13185 # We need space, tab and new line, in precisely that order. Quoting is
13186 # there to prevent editors from complaining about space-tab.
13187 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13188 # splitting by setting IFS to empty value.)
13189 IFS=" "" $as_nl"
13190
13191 # Find who we are. Look in the path if we contain no directory separator.
13192 as_myself=
13193 case $0 in #((
13194 *[\\/]* ) as_myself=$0 ;;
13195 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196 for as_dir in $PATH
13197 do
13198 IFS=$as_save_IFS
13199 test -z "$as_dir" && as_dir=.
13200 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13201 done
13202 IFS=$as_save_IFS
13203
13204 ;;
13205 esac
13206 # We did not find ourselves, most probably we were run as `sh COMMAND'
13207 # in which case we are not to be found in the path.
13208 if test "x$as_myself" = x; then
13209 as_myself=$0
13210 fi
13211 if test ! -f "$as_myself"; then
13212 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13213 exit 1
13214 fi
13215
13216 # Unset variables that we do not need and which cause bugs (e.g. in
13217 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13218 # suppresses any "Segmentation fault" message there. '((' could
13219 # trigger a bug in pdksh 5.2.14.
13220 for as_var in BASH_ENV ENV MAIL MAILPATH
13221 do eval test x\${$as_var+set} = xset \
13222 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13223 done
13224 PS1='$ '
13225 PS2='> '
13226 PS4='+ '
13227
13228 # NLS nuisances.
13229 LC_ALL=C
13230 export LC_ALL
13231 LANGUAGE=C
13232 export LANGUAGE
13233
13234 # CDPATH.
13235 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13236
13237
13238 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13239 # ----------------------------------------
13240 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13241 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13242 # script with STATUS, using 1 if that was 0.
13243 as_fn_error ()
13244 {
13245 as_status=$1; test $as_status -eq 0 && as_status=1
13246 if test "$4"; then
13247 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13248 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13249 fi
13250 $as_echo "$as_me: error: $2" >&2
13251 as_fn_exit $as_status
13252 } # as_fn_error
13253
13254
13255 # as_fn_set_status STATUS
13256 # -----------------------
13257 # Set $? to STATUS, without forking.
13258 as_fn_set_status ()
13259 {
13260 return $1
13261 } # as_fn_set_status
13262
13263 # as_fn_exit STATUS
13264 # -----------------
13265 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13266 as_fn_exit ()
13267 {
13268 set +e
13269 as_fn_set_status $1
13270 exit $1
13271 } # as_fn_exit
13272
13273 # as_fn_unset VAR
13274 # ---------------
13275 # Portably unset VAR.
13276 as_fn_unset ()
13277 {
13278 { eval $1=; unset $1;}
13279 }
13280 as_unset=as_fn_unset
13281 # as_fn_append VAR VALUE
13282 # ----------------------
13283 # Append the text in VALUE to the end of the definition contained in VAR. Take
13284 # advantage of any shell optimizations that allow amortized linear growth over
13285 # repeated appends, instead of the typical quadratic growth present in naive
13286 # implementations.
13287 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13288 eval 'as_fn_append ()
13289 {
13290 eval $1+=\$2
13291 }'
13292 else
13293 as_fn_append ()
13294 {
13295 eval $1=\$$1\$2
13296 }
13297 fi # as_fn_append
13298
13299 # as_fn_arith ARG...
13300 # ------------------
13301 # Perform arithmetic evaluation on the ARGs, and store the result in the
13302 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13303 # must be portable across $(()) and expr.
13304 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13305 eval 'as_fn_arith ()
13306 {
13307 as_val=$(( $* ))
13308 }'
13309 else
13310 as_fn_arith ()
13311 {
13312 as_val=`expr "$@" || test $? -eq 1`
13313 }
13314 fi # as_fn_arith
13315
13316
13317 if expr a : '\(a\)' >/dev/null 2>&1 &&
13318 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13319 as_expr=expr
13320 else
13321 as_expr=false
13322 fi
13323
13324 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13325 as_basename=basename
13326 else
13327 as_basename=false
13328 fi
13329
13330 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13331 as_dirname=dirname
13332 else
13333 as_dirname=false
13334 fi
13335
13336 as_me=`$as_basename -- "$0" ||
13337 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13338 X"$0" : 'X\(//\)$' \| \
13339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13340 $as_echo X/"$0" |
13341 sed '/^.*\/\([^/][^/]*\)\/*$/{
13342 s//\1/
13343 q
13344 }
13345 /^X\/\(\/\/\)$/{
13346 s//\1/
13347 q
13348 }
13349 /^X\/\(\/\).*/{
13350 s//\1/
13351 q
13352 }
13353 s/.*/./; q'`
13354
13355 # Avoid depending upon Character Ranges.
13356 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13357 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13358 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13359 as_cr_digits='0123456789'
13360 as_cr_alnum=$as_cr_Letters$as_cr_digits
13361
13362 ECHO_C= ECHO_N= ECHO_T=
13363 case `echo -n x` in #(((((
13364 -n*)
13365 case `echo 'xy\c'` in
13366 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13367 xy) ECHO_C='\c';;
13368 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13369 ECHO_T=' ';;
13370 esac;;
13371 *)
13372 ECHO_N='-n';;
13373 esac
13374
13375 rm -f conf$$ conf$$.exe conf$$.file
13376 if test -d conf$$.dir; then
13377 rm -f conf$$.dir/conf$$.file
13378 else
13379 rm -f conf$$.dir
13380 mkdir conf$$.dir 2>/dev/null
13381 fi
13382 if (echo >conf$$.file) 2>/dev/null; then
13383 if ln -s conf$$.file conf$$ 2>/dev/null; then
13384 as_ln_s='ln -s'
13385 # ... but there are two gotchas:
13386 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13387 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13388 # In both cases, we have to default to `cp -pR'.
13389 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13390 as_ln_s='cp -pR'
13391 elif ln conf$$.file conf$$ 2>/dev/null; then
13392 as_ln_s=ln
13393 else
13394 as_ln_s='cp -pR'
13395 fi
13396 else
13397 as_ln_s='cp -pR'
13398 fi
13399 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13400 rmdir conf$$.dir 2>/dev/null
13401
13402
13403 # as_fn_mkdir_p
13404 # -------------
13405 # Create "$as_dir" as a directory, including parents if necessary.
13406 as_fn_mkdir_p ()
13407 {
13408
13409 case $as_dir in #(
13410 -*) as_dir=./$as_dir;;
13411 esac
13412 test -d "$as_dir" || eval $as_mkdir_p || {
13413 as_dirs=
13414 while :; do
13415 case $as_dir in #(
13416 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13417 *) as_qdir=$as_dir;;
13418 esac
13419 as_dirs="'$as_qdir' $as_dirs"
13420 as_dir=`$as_dirname -- "$as_dir" ||
13421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13422 X"$as_dir" : 'X\(//\)[^/]' \| \
13423 X"$as_dir" : 'X\(//\)$' \| \
13424 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13425 $as_echo X"$as_dir" |
13426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13427 s//\1/
13428 q
13429 }
13430 /^X\(\/\/\)[^/].*/{
13431 s//\1/
13432 q
13433 }
13434 /^X\(\/\/\)$/{
13435 s//\1/
13436 q
13437 }
13438 /^X\(\/\).*/{
13439 s//\1/
13440 q
13441 }
13442 s/.*/./; q'`
13443 test -d "$as_dir" && break
13444 done
13445 test -z "$as_dirs" || eval "mkdir $as_dirs"
13446 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13447
13448
13449 } # as_fn_mkdir_p
13450 if mkdir -p . 2>/dev/null; then
13451 as_mkdir_p='mkdir -p "$as_dir"'
13452 else
13453 test -d ./-p && rmdir ./-p
13454 as_mkdir_p=false
13455 fi
13456
13457
13458 # as_fn_executable_p FILE
13459 # -----------------------
13460 # Test if FILE is an executable regular file.
13461 as_fn_executable_p ()
13462 {
13463 test -f "$1" && test -x "$1"
13464 } # as_fn_executable_p
13465 as_test_x='test -x'
13466 as_executable_p=as_fn_executable_p
13467
13468 # Sed expression to map a string onto a valid CPP name.
13469 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13470
13471 # Sed expression to map a string onto a valid variable name.
13472 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13473
13474
13475 exec 6>&1
13476 ## ----------------------------------- ##
13477 ## Main body of $CONFIG_STATUS script. ##
13478 ## ----------------------------------- ##
13479 _ASEOF
13480 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13481
13482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13483 # Save the log message, to keep $0 and so on meaningful, and to
13484 # report actual input values of CONFIG_FILES etc. instead of their
13485 # values after options handling.
13486 ac_log="
13487 This file was extended by systemtap $as_me 3.2, which was
13488 generated by GNU Autoconf 2.69. Invocation command line was
13489
13490 CONFIG_FILES = $CONFIG_FILES
13491 CONFIG_HEADERS = $CONFIG_HEADERS
13492 CONFIG_LINKS = $CONFIG_LINKS
13493 CONFIG_COMMANDS = $CONFIG_COMMANDS
13494 $ $0 $@
13495
13496 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13497 "
13498
13499 _ACEOF
13500
13501 case $ac_config_files in *"
13502 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13503 esac
13504
13505 case $ac_config_headers in *"
13506 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13507 esac
13508
13509
13510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13511 # Files that config.status was made for.
13512 config_files="$ac_config_files"
13513 config_headers="$ac_config_headers"
13514 config_commands="$ac_config_commands"
13515
13516 _ACEOF
13517
13518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13519 ac_cs_usage="\
13520 \`$as_me' instantiates files and other configuration actions
13521 from templates according to the current configuration. Unless the files
13522 and actions are specified as TAGs, all are instantiated by default.
13523
13524 Usage: $0 [OPTION]... [TAG]...
13525
13526 -h, --help print this help, then exit
13527 -V, --version print version number and configuration settings, then exit
13528 --config print configuration, then exit
13529 -q, --quiet, --silent
13530 do not print progress messages
13531 -d, --debug don't remove temporary files
13532 --recheck update $as_me by reconfiguring in the same conditions
13533 --file=FILE[:TEMPLATE]
13534 instantiate the configuration file FILE
13535 --header=FILE[:TEMPLATE]
13536 instantiate the configuration header FILE
13537
13538 Configuration files:
13539 $config_files
13540
13541 Configuration headers:
13542 $config_headers
13543
13544 Configuration commands:
13545 $config_commands
13546
13547 Report bugs to <systemtap@sourceware.org>."
13548
13549 _ACEOF
13550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13551 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13552 ac_cs_version="\\
13553 systemtap config.status 3.2
13554 configured by $0, generated by GNU Autoconf 2.69,
13555 with options \\"\$ac_cs_config\\"
13556
13557 Copyright (C) 2012 Free Software Foundation, Inc.
13558 This config.status script is free software; the Free Software Foundation
13559 gives unlimited permission to copy, distribute and modify it."
13560
13561 ac_pwd='$ac_pwd'
13562 srcdir='$srcdir'
13563 INSTALL='$INSTALL'
13564 MKDIR_P='$MKDIR_P'
13565 AWK='$AWK'
13566 test -n "\$AWK" || AWK=awk
13567 _ACEOF
13568
13569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13570 # The default lists apply if the user does not specify any file.
13571 ac_need_defaults=:
13572 while test $# != 0
13573 do
13574 case $1 in
13575 --*=?*)
13576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13578 ac_shift=:
13579 ;;
13580 --*=)
13581 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13582 ac_optarg=
13583 ac_shift=:
13584 ;;
13585 *)
13586 ac_option=$1
13587 ac_optarg=$2
13588 ac_shift=shift
13589 ;;
13590 esac
13591
13592 case $ac_option in
13593 # Handling of the options.
13594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13595 ac_cs_recheck=: ;;
13596 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13597 $as_echo "$ac_cs_version"; exit ;;
13598 --config | --confi | --conf | --con | --co | --c )
13599 $as_echo "$ac_cs_config"; exit ;;
13600 --debug | --debu | --deb | --de | --d | -d )
13601 debug=: ;;
13602 --file | --fil | --fi | --f )
13603 $ac_shift
13604 case $ac_optarg in
13605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13606 '') as_fn_error $? "missing file argument" ;;
13607 esac
13608 as_fn_append CONFIG_FILES " '$ac_optarg'"
13609 ac_need_defaults=false;;
13610 --header | --heade | --head | --hea )
13611 $ac_shift
13612 case $ac_optarg in
13613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13614 esac
13615 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13616 ac_need_defaults=false;;
13617 --he | --h)
13618 # Conflict between --help and --header
13619 as_fn_error $? "ambiguous option: \`$1'
13620 Try \`$0 --help' for more information.";;
13621 --help | --hel | -h )
13622 $as_echo "$ac_cs_usage"; exit ;;
13623 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13624 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13625 ac_cs_silent=: ;;
13626
13627 # This is an error.
13628 -*) as_fn_error $? "unrecognized option: \`$1'
13629 Try \`$0 --help' for more information." ;;
13630
13631 *) as_fn_append ac_config_targets " $1"
13632 ac_need_defaults=false ;;
13633
13634 esac
13635 shift
13636 done
13637
13638 ac_configure_extra_args=
13639
13640 if $ac_cs_silent; then
13641 exec 6>/dev/null
13642 ac_configure_extra_args="$ac_configure_extra_args --silent"
13643 fi
13644
13645 _ACEOF
13646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13647 if \$ac_cs_recheck; then
13648 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13649 shift
13650 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13651 CONFIG_SHELL='$SHELL'
13652 export CONFIG_SHELL
13653 exec "\$@"
13654 fi
13655
13656 _ACEOF
13657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13658 exec 5>>config.log
13659 {
13660 echo
13661 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13662 ## Running $as_me. ##
13663 _ASBOX
13664 $as_echo "$ac_log"
13665 } >&5
13666
13667 _ACEOF
13668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13669 #
13670 # INIT-COMMANDS
13671 #
13672 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13673 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13674 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13675 # from automake < 1.5.
13676 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13677 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13678 LINGUAS="${LINGUAS-%UNSET%}"
13679
13680
13681 _ACEOF
13682
13683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13684
13685 # Handling of arguments.
13686 for ac_config_target in $ac_config_targets
13687 do
13688 case $ac_config_target in
13689 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13690 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13691 "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;;
13692 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13693 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13694 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13695 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13696 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13697 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
13698 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
13699 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
13700 "man/stap.1") CONFIG_FILES="$CONFIG_FILES man/stap.1" ;;
13701 "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;;
13702 "man/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/systemtap.8" ;;
13703 "man/cs/stap.1") CONFIG_FILES="$CONFIG_FILES man/cs/stap.1" ;;
13704 "man/cs/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/cs/stappaths.7" ;;
13705 "man/cs/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/cs/systemtap.8" ;;
13706 "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;;
13707 "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;;
13708 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
13709 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
13710 "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;;
13711 "initscript/99stap/install") CONFIG_FILES="$CONFIG_FILES initscript/99stap/install" ;;
13712 "initscript/99stap/check") CONFIG_FILES="$CONFIG_FILES initscript/99stap/check" ;;
13713 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
13714 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
13715 "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;;
13716 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
13717 "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;;
13718 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
13719 "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;;
13720 "httpd/Makefile") CONFIG_FILES="$CONFIG_FILES httpd/Makefile" ;;
13721 "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;;
13722 "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;;
13723 "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;;
13724 "staprun/guest/stapsh@.service") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh@.service" ;;
13725 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
13726
13727 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13728 esac
13729 done
13730
13731
13732 # If the user did not use the arguments to specify the items to instantiate,
13733 # then the envvar interface is used. Set only those that are not.
13734 # We use the long form for the default assignment because of an extremely
13735 # bizarre bug on SunOS 4.1.3.
13736 if $ac_need_defaults; then
13737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13739 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13740 fi
13741
13742 # Have a temporary directory for convenience. Make it in the build tree
13743 # simply because there is no reason against having it here, and in addition,
13744 # creating and moving files from /tmp can sometimes cause problems.
13745 # Hook for its removal unless debugging.
13746 # Note that there is a small window in which the directory will not be cleaned:
13747 # after its creation but before its name has been assigned to `$tmp'.
13748 $debug ||
13749 {
13750 tmp= ac_tmp=
13751 trap 'exit_status=$?
13752 : "${ac_tmp:=$tmp}"
13753 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13754 ' 0
13755 trap 'as_fn_exit 1' 1 2 13 15
13756 }
13757 # Create a (secure) tmp directory for tmp files.
13758
13759 {
13760 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13761 test -d "$tmp"
13762 } ||
13763 {
13764 tmp=./conf$$-$RANDOM
13765 (umask 077 && mkdir "$tmp")
13766 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13767 ac_tmp=$tmp
13768
13769 # Set up the scripts for CONFIG_FILES section.
13770 # No need to generate them if there are no CONFIG_FILES.
13771 # This happens for instance with `./config.status config.h'.
13772 if test -n "$CONFIG_FILES"; then
13773
13774
13775 ac_cr=`echo X | tr X '\015'`
13776 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13777 # But we know of no other shell where ac_cr would be empty at this
13778 # point, so we can use a bashism as a fallback.
13779 if test "x$ac_cr" = x; then
13780 eval ac_cr=\$\'\\r\'
13781 fi
13782 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13783 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13784 ac_cs_awk_cr='\\r'
13785 else
13786 ac_cs_awk_cr=$ac_cr
13787 fi
13788
13789 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13790 _ACEOF
13791
13792
13793 {
13794 echo "cat >conf$$subs.awk <<_ACEOF" &&
13795 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13796 echo "_ACEOF"
13797 } >conf$$subs.sh ||
13798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13799 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13800 ac_delim='%!_!# '
13801 for ac_last_try in false false false false false :; do
13802 . ./conf$$subs.sh ||
13803 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13804
13805 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13806 if test $ac_delim_n = $ac_delim_num; then
13807 break
13808 elif $ac_last_try; then
13809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13810 else
13811 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13812 fi
13813 done
13814 rm -f conf$$subs.sh
13815
13816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13817 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13818 _ACEOF
13819 sed -n '
13820 h
13821 s/^/S["/; s/!.*/"]=/
13822 p
13823 g
13824 s/^[^!]*!//
13825 :repl
13826 t repl
13827 s/'"$ac_delim"'$//
13828 t delim
13829 :nl
13830 h
13831 s/\(.\{148\}\)..*/\1/
13832 t more1
13833 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13834 p
13835 n
13836 b repl
13837 :more1
13838 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13839 p
13840 g
13841 s/.\{148\}//
13842 t nl
13843 :delim
13844 h
13845 s/\(.\{148\}\)..*/\1/
13846 t more2
13847 s/["\\]/\\&/g; s/^/"/; s/$/"/
13848 p
13849 b
13850 :more2
13851 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13852 p
13853 g
13854 s/.\{148\}//
13855 t delim
13856 ' <conf$$subs.awk | sed '
13857 /^[^""]/{
13858 N
13859 s/\n//
13860 }
13861 ' >>$CONFIG_STATUS || ac_write_fail=1
13862 rm -f conf$$subs.awk
13863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13864 _ACAWK
13865 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13866 for (key in S) S_is_set[key] = 1
13867 FS = "\a"
13868
13869 }
13870 {
13871 line = $ 0
13872 nfields = split(line, field, "@")
13873 substed = 0
13874 len = length(field[1])
13875 for (i = 2; i < nfields; i++) {
13876 key = field[i]
13877 keylen = length(key)
13878 if (S_is_set[key]) {
13879 value = S[key]
13880 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13881 len += length(value) + length(field[++i])
13882 substed = 1
13883 } else
13884 len += 1 + keylen
13885 }
13886
13887 print line
13888 }
13889
13890 _ACAWK
13891 _ACEOF
13892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13893 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13894 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13895 else
13896 cat
13897 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13898 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13899 _ACEOF
13900
13901 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13902 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13903 # trailing colons and then remove the whole line if VPATH becomes empty
13904 # (actually we leave an empty line to preserve line numbers).
13905 if test "x$srcdir" = x.; then
13906 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13907 h
13908 s///
13909 s/^/:/
13910 s/[ ]*$/:/
13911 s/:\$(srcdir):/:/g
13912 s/:\${srcdir}:/:/g
13913 s/:@srcdir@:/:/g
13914 s/^:*//
13915 s/:*$//
13916 x
13917 s/\(=[ ]*\).*/\1/
13918 G
13919 s/\n//
13920 s/^[^=]*=[ ]*$//
13921 }'
13922 fi
13923
13924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13925 fi # test -n "$CONFIG_FILES"
13926
13927 # Set up the scripts for CONFIG_HEADERS section.
13928 # No need to generate them if there are no CONFIG_HEADERS.
13929 # This happens for instance with `./config.status Makefile'.
13930 if test -n "$CONFIG_HEADERS"; then
13931 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13932 BEGIN {
13933 _ACEOF
13934
13935 # Transform confdefs.h into an awk script `defines.awk', embedded as
13936 # here-document in config.status, that substitutes the proper values into
13937 # config.h.in to produce config.h.
13938
13939 # Create a delimiter string that does not exist in confdefs.h, to ease
13940 # handling of long lines.
13941 ac_delim='%!_!# '
13942 for ac_last_try in false false :; do
13943 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13944 if test -z "$ac_tt"; then
13945 break
13946 elif $ac_last_try; then
13947 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13948 else
13949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13950 fi
13951 done
13952
13953 # For the awk script, D is an array of macro values keyed by name,
13954 # likewise P contains macro parameters if any. Preserve backslash
13955 # newline sequences.
13956
13957 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13958 sed -n '
13959 s/.\{148\}/&'"$ac_delim"'/g
13960 t rset
13961 :rset
13962 s/^[ ]*#[ ]*define[ ][ ]*/ /
13963 t def
13964 d
13965 :def
13966 s/\\$//
13967 t bsnl
13968 s/["\\]/\\&/g
13969 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13970 D["\1"]=" \3"/p
13971 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13972 d
13973 :bsnl
13974 s/["\\]/\\&/g
13975 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13976 D["\1"]=" \3\\\\\\n"\\/p
13977 t cont
13978 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13979 t cont
13980 d
13981 :cont
13982 n
13983 s/.\{148\}/&'"$ac_delim"'/g
13984 t clear
13985 :clear
13986 s/\\$//
13987 t bsnlc
13988 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13989 d
13990 :bsnlc
13991 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13992 b cont
13993 ' <confdefs.h | sed '
13994 s/'"$ac_delim"'/"\\\
13995 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13996
13997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13998 for (key in D) D_is_set[key] = 1
13999 FS = "\a"
14000 }
14001 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14002 line = \$ 0
14003 split(line, arg, " ")
14004 if (arg[1] == "#") {
14005 defundef = arg[2]
14006 mac1 = arg[3]
14007 } else {
14008 defundef = substr(arg[1], 2)
14009 mac1 = arg[2]
14010 }
14011 split(mac1, mac2, "(") #)
14012 macro = mac2[1]
14013 prefix = substr(line, 1, index(line, defundef) - 1)
14014 if (D_is_set[macro]) {
14015 # Preserve the white space surrounding the "#".
14016 print prefix "define", macro P[macro] D[macro]
14017 next
14018 } else {
14019 # Replace #undef with comments. This is necessary, for example,
14020 # in the case of _POSIX_SOURCE, which is predefined and required
14021 # on some systems where configure will not decide to define it.
14022 if (defundef == "undef") {
14023 print "/*", prefix defundef, macro, "*/"
14024 next
14025 }
14026 }
14027 }
14028 { print }
14029 _ACAWK
14030 _ACEOF
14031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14032 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14033 fi # test -n "$CONFIG_HEADERS"
14034
14035
14036 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14037 shift
14038 for ac_tag
14039 do
14040 case $ac_tag in
14041 :[FHLC]) ac_mode=$ac_tag; continue;;
14042 esac
14043 case $ac_mode$ac_tag in
14044 :[FHL]*:*);;
14045 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14046 :[FH]-) ac_tag=-:-;;
14047 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14048 esac
14049 ac_save_IFS=$IFS
14050 IFS=:
14051 set x $ac_tag
14052 IFS=$ac_save_IFS
14053 shift
14054 ac_file=$1
14055 shift
14056
14057 case $ac_mode in
14058 :L) ac_source=$1;;
14059 :[FH])
14060 ac_file_inputs=
14061 for ac_f
14062 do
14063 case $ac_f in
14064 -) ac_f="$ac_tmp/stdin";;
14065 *) # Look for the file first in the build tree, then in the source tree
14066 # (if the path is not absolute). The absolute path cannot be DOS-style,
14067 # because $ac_f cannot contain `:'.
14068 test -f "$ac_f" ||
14069 case $ac_f in
14070 [\\/$]*) false;;
14071 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14072 esac ||
14073 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14074 esac
14075 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14076 as_fn_append ac_file_inputs " '$ac_f'"
14077 done
14078
14079 # Let's still pretend it is `configure' which instantiates (i.e., don't
14080 # use $as_me), people would be surprised to read:
14081 # /* config.h. Generated by config.status. */
14082 configure_input='Generated from '`
14083 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14084 `' by configure.'
14085 if test x"$ac_file" != x-; then
14086 configure_input="$ac_file. $configure_input"
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14088 $as_echo "$as_me: creating $ac_file" >&6;}
14089 fi
14090 # Neutralize special characters interpreted by sed in replacement strings.
14091 case $configure_input in #(
14092 *\&* | *\|* | *\\* )
14093 ac_sed_conf_input=`$as_echo "$configure_input" |
14094 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14095 *) ac_sed_conf_input=$configure_input;;
14096 esac
14097
14098 case $ac_tag in
14099 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14100 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14101 esac
14102 ;;
14103 esac
14104
14105 ac_dir=`$as_dirname -- "$ac_file" ||
14106 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14107 X"$ac_file" : 'X\(//\)[^/]' \| \
14108 X"$ac_file" : 'X\(//\)$' \| \
14109 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14110 $as_echo X"$ac_file" |
14111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14112 s//\1/
14113 q
14114 }
14115 /^X\(\/\/\)[^/].*/{
14116 s//\1/
14117 q
14118 }
14119 /^X\(\/\/\)$/{
14120 s//\1/
14121 q
14122 }
14123 /^X\(\/\).*/{
14124 s//\1/
14125 q
14126 }
14127 s/.*/./; q'`
14128 as_dir="$ac_dir"; as_fn_mkdir_p
14129 ac_builddir=.
14130
14131 case "$ac_dir" in
14132 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14133 *)
14134 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14135 # A ".." for each directory in $ac_dir_suffix.
14136 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14137 case $ac_top_builddir_sub in
14138 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14139 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14140 esac ;;
14141 esac
14142 ac_abs_top_builddir=$ac_pwd
14143 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14144 # for backward compatibility:
14145 ac_top_builddir=$ac_top_build_prefix
14146
14147 case $srcdir in
14148 .) # We are building in place.
14149 ac_srcdir=.
14150 ac_top_srcdir=$ac_top_builddir_sub
14151 ac_abs_top_srcdir=$ac_pwd ;;
14152 [\\/]* | ?:[\\/]* ) # Absolute name.
14153 ac_srcdir=$srcdir$ac_dir_suffix;
14154 ac_top_srcdir=$srcdir
14155 ac_abs_top_srcdir=$srcdir ;;
14156 *) # Relative name.
14157 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14158 ac_top_srcdir=$ac_top_build_prefix$srcdir
14159 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14160 esac
14161 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14162
14163
14164 case $ac_mode in
14165 :F)
14166 #
14167 # CONFIG_FILE
14168 #
14169
14170 case $INSTALL in
14171 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14172 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14173 esac
14174 ac_MKDIR_P=$MKDIR_P
14175 case $MKDIR_P in
14176 [\\/$]* | ?:[\\/]* ) ;;
14177 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14178 esac
14179 _ACEOF
14180
14181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14182 # If the template does not know about datarootdir, expand it.
14183 # FIXME: This hack should be removed a few years after 2.60.
14184 ac_datarootdir_hack=; ac_datarootdir_seen=
14185 ac_sed_dataroot='
14186 /datarootdir/ {
14187 p
14188 q
14189 }
14190 /@datadir@/p
14191 /@docdir@/p
14192 /@infodir@/p
14193 /@localedir@/p
14194 /@mandir@/p'
14195 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14196 *datarootdir*) ac_datarootdir_seen=yes;;
14197 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14199 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14200 _ACEOF
14201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14202 ac_datarootdir_hack='
14203 s&@datadir@&$datadir&g
14204 s&@docdir@&$docdir&g
14205 s&@infodir@&$infodir&g
14206 s&@localedir@&$localedir&g
14207 s&@mandir@&$mandir&g
14208 s&\\\${datarootdir}&$datarootdir&g' ;;
14209 esac
14210 _ACEOF
14211
14212 # Neutralize VPATH when `$srcdir' = `.'.
14213 # Shell code in configure.ac might set extrasub.
14214 # FIXME: do we really want to maintain this feature?
14215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14216 ac_sed_extra="$ac_vpsub
14217 $extrasub
14218 _ACEOF
14219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14220 :t
14221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14222 s|@configure_input@|$ac_sed_conf_input|;t t
14223 s&@top_builddir@&$ac_top_builddir_sub&;t t
14224 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14225 s&@srcdir@&$ac_srcdir&;t t
14226 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14227 s&@top_srcdir@&$ac_top_srcdir&;t t
14228 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14229 s&@builddir@&$ac_builddir&;t t
14230 s&@abs_builddir@&$ac_abs_builddir&;t t
14231 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14232 s&@INSTALL@&$ac_INSTALL&;t t
14233 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14234 $ac_datarootdir_hack
14235 "
14236 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14237 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14238
14239 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14240 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14242 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14244 which seems to be undefined. Please make sure it is defined" >&5
14245 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14246 which seems to be undefined. Please make sure it is defined" >&2;}
14247
14248 rm -f "$ac_tmp/stdin"
14249 case $ac_file in
14250 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14251 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14252 esac \
14253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14254 ;;
14255 :H)
14256 #
14257 # CONFIG_HEADER
14258 #
14259 if test x"$ac_file" != x-; then
14260 {
14261 $as_echo "/* $configure_input */" \
14262 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14263 } >"$ac_tmp/config.h" \
14264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14265 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14267 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14268 else
14269 rm -f "$ac_file"
14270 mv "$ac_tmp/config.h" "$ac_file" \
14271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14272 fi
14273 else
14274 $as_echo "/* $configure_input */" \
14275 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14276 || as_fn_error $? "could not create -" "$LINENO" 5
14277 fi
14278 # Compute "$ac_file"'s index in $config_headers.
14279 _am_arg="$ac_file"
14280 _am_stamp_count=1
14281 for _am_header in $config_headers :; do
14282 case $_am_header in
14283 $_am_arg | $_am_arg:* )
14284 break ;;
14285 * )
14286 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14287 esac
14288 done
14289 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14290 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14291 X"$_am_arg" : 'X\(//\)[^/]' \| \
14292 X"$_am_arg" : 'X\(//\)$' \| \
14293 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14294 $as_echo X"$_am_arg" |
14295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14296 s//\1/
14297 q
14298 }
14299 /^X\(\/\/\)[^/].*/{
14300 s//\1/
14301 q
14302 }
14303 /^X\(\/\/\)$/{
14304 s//\1/
14305 q
14306 }
14307 /^X\(\/\).*/{
14308 s//\1/
14309 q
14310 }
14311 s/.*/./; q'`/stamp-h$_am_stamp_count
14312 ;;
14313
14314 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14315 $as_echo "$as_me: executing $ac_file commands" >&6;}
14316 ;;
14317 esac
14318
14319
14320 case $ac_file$ac_mode in
14321 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14322 # Older Autoconf quotes --file arguments for eval, but not when files
14323 # are listed without --file. Let's play safe and only enable the eval
14324 # if we detect the quoting.
14325 case $CONFIG_FILES in
14326 *\'*) eval set x "$CONFIG_FILES" ;;
14327 *) set x $CONFIG_FILES ;;
14328 esac
14329 shift
14330 for mf
14331 do
14332 # Strip MF so we end up with the name of the file.
14333 mf=`echo "$mf" | sed -e 's/:.*$//'`
14334 # Check whether this is an Automake generated Makefile or not.
14335 # We used to match only the files named 'Makefile.in', but
14336 # some people rename them; so instead we look at the file content.
14337 # Grep'ing the first line is not enough: some people post-process
14338 # each Makefile.in and add a new line on top of each file to say so.
14339 # Grep'ing the whole file is not good either: AIX grep has a line
14340 # limit of 2048, but all sed's we know have understand at least 4000.
14341 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14342 dirpart=`$as_dirname -- "$mf" ||
14343 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14344 X"$mf" : 'X\(//\)[^/]' \| \
14345 X"$mf" : 'X\(//\)$' \| \
14346 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14347 $as_echo X"$mf" |
14348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14349 s//\1/
14350 q
14351 }
14352 /^X\(\/\/\)[^/].*/{
14353 s//\1/
14354 q
14355 }
14356 /^X\(\/\/\)$/{
14357 s//\1/
14358 q
14359 }
14360 /^X\(\/\).*/{
14361 s//\1/
14362 q
14363 }
14364 s/.*/./; q'`
14365 else
14366 continue
14367 fi
14368 # Extract the definition of DEPDIR, am__include, and am__quote
14369 # from the Makefile without running 'make'.
14370 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14371 test -z "$DEPDIR" && continue
14372 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14373 test -z "$am__include" && continue
14374 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14375 # Find all dependency output files, they are included files with
14376 # $(DEPDIR) in their names. We invoke sed twice because it is the
14377 # simplest approach to changing $(DEPDIR) to its actual value in the
14378 # expansion.
14379 for file in `sed -n "
14380 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14381 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14382 # Make sure the directory exists.
14383 test -f "$dirpart/$file" && continue
14384 fdir=`$as_dirname -- "$file" ||
14385 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14386 X"$file" : 'X\(//\)[^/]' \| \
14387 X"$file" : 'X\(//\)$' \| \
14388 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14389 $as_echo X"$file" |
14390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14391 s//\1/
14392 q
14393 }
14394 /^X\(\/\/\)[^/].*/{
14395 s//\1/
14396 q
14397 }
14398 /^X\(\/\/\)$/{
14399 s//\1/
14400 q
14401 }
14402 /^X\(\/\).*/{
14403 s//\1/
14404 q
14405 }
14406 s/.*/./; q'`
14407 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14408 # echo "creating $dirpart/$file"
14409 echo '# dummy' > "$dirpart/$file"
14410 done
14411 done
14412 }
14413 ;;
14414 "po-directories":C)
14415 for ac_file in $CONFIG_FILES; do
14416 # Support "outfile[:infile[:infile...]]"
14417 case "$ac_file" in
14418 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14419 esac
14420 # PO directories have a Makefile.in generated from Makefile.in.in.
14421 case "$ac_file" in */Makefile.in)
14422 # Adjust a relative srcdir.
14423 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14424 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14425 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14426 # In autoconf-2.13 it is called $ac_given_srcdir.
14427 # In autoconf-2.50 it is called $srcdir.
14428 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14429 case "$ac_given_srcdir" in
14430 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14431 /*) top_srcdir="$ac_given_srcdir" ;;
14432 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14433 esac
14434 # Treat a directory as a PO directory if and only if it has a
14435 # POTFILES.in file. This allows packages to have multiple PO
14436 # directories under different names or in different locations.
14437 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14438 rm -f "$ac_dir/POTFILES"
14439 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14440 gt_tab=`printf '\t'`
14441 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"
14442 POMAKEFILEDEPS="POTFILES.in"
14443 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14444 # on $ac_dir but don't depend on user-specified configuration
14445 # parameters.
14446 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14447 # The LINGUAS file contains the set of available languages.
14448 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14449 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14450 fi
14451 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14452 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14453 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14454 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14455 else
14456 # The set of available languages was given in configure.in.
14457 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14458 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14459 fi
14460 # Compute POFILES
14461 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14462 # Compute UPDATEPOFILES
14463 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14464 # Compute DUMMYPOFILES
14465 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14466 # Compute GMOFILES
14467 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14468 case "$ac_given_srcdir" in
14469 .) srcdirpre= ;;
14470 *) srcdirpre='$(srcdir)/' ;;
14471 esac
14472 POFILES=
14473 UPDATEPOFILES=
14474 DUMMYPOFILES=
14475 GMOFILES=
14476 for lang in $ALL_LINGUAS; do
14477 POFILES="$POFILES $srcdirpre$lang.po"
14478 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14479 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14480 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14481 done
14482 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14483 # environment variable.
14484 INST_LINGUAS=
14485 if test -n "$ALL_LINGUAS"; then
14486 for presentlang in $ALL_LINGUAS; do
14487 useit=no
14488 if test "%UNSET%" != "$LINGUAS"; then
14489 desiredlanguages="$LINGUAS"
14490 else
14491 desiredlanguages="$ALL_LINGUAS"
14492 fi
14493 for desiredlang in $desiredlanguages; do
14494 # Use the presentlang catalog if desiredlang is
14495 # a. equal to presentlang, or
14496 # b. a variant of presentlang (because in this case,
14497 # presentlang can be used as a fallback for messages
14498 # which are not translated in the desiredlang catalog).
14499 case "$desiredlang" in
14500 "$presentlang"*) useit=yes;;
14501 esac
14502 done
14503 if test $useit = yes; then
14504 INST_LINGUAS="$INST_LINGUAS $presentlang"
14505 fi
14506 done
14507 fi
14508 CATALOGS=
14509 if test -n "$INST_LINGUAS"; then
14510 for lang in $INST_LINGUAS; do
14511 CATALOGS="$CATALOGS $lang.gmo"
14512 done
14513 fi
14514 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14515 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"
14516 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14517 if test -f "$f"; then
14518 case "$f" in
14519 *.orig | *.bak | *~) ;;
14520 *) cat "$f" >> "$ac_dir/Makefile" ;;
14521 esac
14522 fi
14523 done
14524 fi
14525 ;;
14526 esac
14527 done ;;
14528 "run-stap":F) chmod +x run-stap ;;
14529 "dtrace":F) chmod +x dtrace ;;
14530 "java/stapbm":F) chmod +x java/stapbm ;;
14531 "staprun/run-staprun":F) chmod +x staprun/run-staprun ;;
14532 "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;;
14533 "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;;
14534 "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 ;;
14535
14536 esac
14537 done # for ac_tag
14538
14539
14540 as_fn_exit 0
14541 _ACEOF
14542 ac_clean_files=$ac_clean_files_save
14543
14544 test $ac_write_fail = 0 ||
14545 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14546
14547
14548 # configure is writing to config.log, and then calls config.status.
14549 # config.status does its own redirection, appending to config.log.
14550 # Unfortunately, on DOS this fails, as config.log is still kept open
14551 # by configure, so config.status won't be able to write to it; its
14552 # output is simply discarded. So we exec the FD to /dev/null,
14553 # effectively closing config.log, so it can be properly (re)opened and
14554 # appended to by config.status. When coming back to configure, we
14555 # need to make the FD available again.
14556 if test "$no_create" != yes; then
14557 ac_cs_success=:
14558 ac_config_status_args=
14559 test "$silent" = yes &&
14560 ac_config_status_args="$ac_config_status_args --quiet"
14561 exec 5>/dev/null
14562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14563 exec 5>>config.log
14564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14565 # would make configure fail if this is the last instruction.
14566 $ac_cs_success || as_fn_exit 1
14567 fi
14568
14569 #
14570 # CONFIG_SUBDIRS section.
14571 #
14572 if test "$no_recursion" != yes; then
14573
14574 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14575 # so they do not pile up.
14576 ac_sub_configure_args=
14577 ac_prev=
14578 eval "set x $ac_configure_args"
14579 shift
14580 for ac_arg
14581 do
14582 if test -n "$ac_prev"; then
14583 ac_prev=
14584 continue
14585 fi
14586 case $ac_arg in
14587 -cache-file | --cache-file | --cache-fil | --cache-fi \
14588 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14589 ac_prev=cache_file ;;
14590 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14591 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14592 | --c=*)
14593 ;;
14594 --config-cache | -C)
14595 ;;
14596 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14597 ac_prev=srcdir ;;
14598 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14599 ;;
14600 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14601 ac_prev=prefix ;;
14602 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14603 ;;
14604 --disable-option-checking)
14605 ;;
14606 *)
14607 case $ac_arg in
14608 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14609 esac
14610 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14611 esac
14612 done
14613
14614 # Always prepend --prefix to ensure using the same prefix
14615 # in subdir configurations.
14616 ac_arg="--prefix=$prefix"
14617 case $ac_arg in
14618 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14619 esac
14620 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14621
14622 # Pass --silent
14623 if test "$silent" = yes; then
14624 ac_sub_configure_args="--silent $ac_sub_configure_args"
14625 fi
14626
14627 # Always prepend --disable-option-checking to silence warnings, since
14628 # different subdirs can have different --enable and --with options.
14629 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14630
14631 ac_popdir=`pwd`
14632 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14633
14634 # Do not complain, so a configure script can configure whichever
14635 # parts of a large source tree are present.
14636 test -d "$srcdir/$ac_dir" || continue
14637
14638 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14639 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14640 $as_echo "$ac_msg" >&6
14641 as_dir="$ac_dir"; as_fn_mkdir_p
14642 ac_builddir=.
14643
14644 case "$ac_dir" in
14645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14646 *)
14647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14648 # A ".." for each directory in $ac_dir_suffix.
14649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14650 case $ac_top_builddir_sub in
14651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14653 esac ;;
14654 esac
14655 ac_abs_top_builddir=$ac_pwd
14656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14657 # for backward compatibility:
14658 ac_top_builddir=$ac_top_build_prefix
14659
14660 case $srcdir in
14661 .) # We are building in place.
14662 ac_srcdir=.
14663 ac_top_srcdir=$ac_top_builddir_sub
14664 ac_abs_top_srcdir=$ac_pwd ;;
14665 [\\/]* | ?:[\\/]* ) # Absolute name.
14666 ac_srcdir=$srcdir$ac_dir_suffix;
14667 ac_top_srcdir=$srcdir
14668 ac_abs_top_srcdir=$srcdir ;;
14669 *) # Relative name.
14670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14671 ac_top_srcdir=$ac_top_build_prefix$srcdir
14672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14673 esac
14674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14675
14676
14677 cd "$ac_dir"
14678
14679 # Check for guested configure; otherwise get Cygnus style configure.
14680 if test -f "$ac_srcdir/configure.gnu"; then
14681 ac_sub_configure=$ac_srcdir/configure.gnu
14682 elif test -f "$ac_srcdir/configure"; then
14683 ac_sub_configure=$ac_srcdir/configure
14684 elif test -f "$ac_srcdir/configure.in"; then
14685 # This should be Cygnus configure.
14686 ac_sub_configure=$ac_aux_dir/configure
14687 else
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14690 ac_sub_configure=
14691 fi
14692
14693 # The recursion is here.
14694 if test -n "$ac_sub_configure"; then
14695 # Make the cache file name correct relative to the subdirectory.
14696 case $cache_file in
14697 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14698 *) # Relative name.
14699 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14700 esac
14701
14702 { $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
14703 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14704 # The eval makes quoting arguments work.
14705 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14706 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14707 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14708 fi
14709
14710 cd "$ac_popdir"
14711 done
14712 fi
14713 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14715 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14716 fi
14717
14718
14719 if test "${prefix}" = "/usr/local"; then
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
14721 $as_echo "$as_me: " >&6;}
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
14723 $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
14725 $as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
14727 $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
14729 $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5
14731 $as_echo "$as_me: is not supported." >&6;}
14732 fi
This page took 0.886924 seconds and 6 git commands to generate.