]> sourceware.org Git - systemtap.git/blob - configure
Merge remote-tracking branch 'origin/master' into dsmith/interactive
[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 2.9.
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='2.9'
584 PACKAGE_STRING='systemtap 2.9'
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 cxx11
633 STAP_EXTRA_VERSION
634 LOCALEDIR
635 ENABLE_NLS
636 HAVE_JAVA_FALSE
637 HAVE_JAVA_TRUE
638 JAVADIR
639 have_jar
640 have_javac
641 HAVE_SELINUX_FALSE
642 HAVE_SELINUX_TRUE
643 selinux_LIBS
644 selinux_CFLAGS
645 support_section_question
646 BUILD_VIRT_FALSE
647 BUILD_VIRT_TRUE
648 HAVE_LIBXML2_FALSE
649 HAVE_LIBXML2_TRUE
650 libxml2_LIBS
651 libxml2_CFLAGS
652 HAVE_LIBVIRT_FALSE
653 HAVE_LIBVIRT_TRUE
654 libvirt_LIBS
655 libvirt_CFLAGS
656 HAVE_DYNINST_FALSE
657 HAVE_DYNINST_TRUE
658 DYNINST_LDFLAGS
659 DYNINST_CXXFLAGS
660 CXXCPP
661 DATE
662 staprun_LIBS
663 stap_LIBS
664 elfutils_abs_srcdir
665 BUILD_ELFUTILS_FALSE
666 BUILD_ELFUTILS_TRUE
667 python
668 HAVE_LIBREADLINE_FALSE
669 HAVE_LIBREADLINE_TRUE
670 READLINE_LIBS
671 HAVE_AVAHI_FALSE
672 HAVE_AVAHI_TRUE
673 avahi_LIBS
674 avahi_CFLAGS
675 BUILD_SERVER_FALSE
676 BUILD_SERVER_TRUE
677 dracutstap
678 HAVE_NSS_FALSE
679 HAVE_NSS_TRUE
680 nss_LIBS
681 nss_CFLAGS
682 PKG_CONFIG_LIBDIR
683 PKG_CONFIG_PATH
684 PKG_CONFIG
685 BUILD_PDFREFDOCS_FALSE
686 BUILD_PDFREFDOCS_TRUE
687 XMLTO_STRINGPARAM_FALSE
688 XMLTO_STRINGPARAM_TRUE
689 HAVE_XMLTO_FALSE
690 HAVE_XMLTO_TRUE
691 HAVE_FOP_FALSE
692 HAVE_FOP_TRUE
693 have_fop
694 BUILD_REFDOCS_FALSE
695 BUILD_REFDOCS_TRUE
696 have_xmlto
697 BUILD_DOCS_FALSE
698 BUILD_DOCS_TRUE
699 have_latex2html
700 have_ps2pdf
701 have_dvips
702 have_latex
703 BUILD_CRASHMOD_FALSE
704 BUILD_CRASHMOD_TRUE
705 staplog_CPPFLAGS
706 BUILD_TRANSLATOR_FALSE
707 BUILD_TRANSLATOR_TRUE
708 sqlite3_LIBS
709 PIECXXFLAGS
710 PIECFLAGS
711 PIELDFLAGS
712 POSUB
713 LTLIBINTL
714 LIBINTL
715 INTLLIBS
716 LTLIBICONV
717 LIBICONV
718 INTL_MACOSX_LIBS
719 XGETTEXT_EXTRA_OPTIONS
720 MSGMERGE
721 XGETTEXT_015
722 XGETTEXT
723 GMSGFMT_015
724 MSGFMT_015
725 GMSGFMT
726 MSGFMT
727 GETTEXT_MACRO_VERSION
728 USE_NLS
729 SED
730 RANLIB
731 am__fastdepCXX_FALSE
732 am__fastdepCXX_TRUE
733 CXXDEPMODE
734 ac_ct_CXX
735 CXXFLAGS
736 CXX
737 LN_S
738 EGREP
739 GREP
740 CPP
741 am__fastdepCC_FALSE
742 am__fastdepCC_TRUE
743 CCDEPMODE
744 am__nodep
745 AMDEPBACKSLASH
746 AMDEP_FALSE
747 AMDEP_TRUE
748 am__quote
749 am__include
750 DEPDIR
751 OBJEXT
752 EXEEXT
753 ac_ct_CC
754 CPPFLAGS
755 LDFLAGS
756 CFLAGS
757 CC
758 MAINT
759 MAINTAINER_MODE_FALSE
760 MAINTAINER_MODE_TRUE
761 AM_BACKSLASH
762 AM_DEFAULT_VERBOSITY
763 AM_DEFAULT_V
764 AM_V
765 am__untar
766 am__tar
767 AMTAR
768 am__leading_dot
769 SET_MAKE
770 AWK
771 mkdir_p
772 MKDIR_P
773 INSTALL_STRIP_PROGRAM
774 STRIP
775 install_sh
776 MAKEINFO
777 AUTOHEADER
778 AUTOMAKE
779 AUTOCONF
780 ACLOCAL
781 VERSION
782 PACKAGE
783 CYGPATH_W
784 am__isrc
785 INSTALL_DATA
786 INSTALL_SCRIPT
787 INSTALL_PROGRAM
788 target_os
789 target_vendor
790 target_cpu
791 target
792 host_os
793 host_vendor
794 host_cpu
795 host
796 build_os
797 build_vendor
798 build_cpu
799 build
800 target_alias
801 host_alias
802 build_alias
803 LIBS
804 ECHO_T
805 ECHO_N
806 ECHO_C
807 DEFS
808 mandir
809 localedir
810 libdir
811 psdir
812 pdfdir
813 dvidir
814 htmldir
815 infodir
816 docdir
817 oldincludedir
818 includedir
819 localstatedir
820 sharedstatedir
821 sysconfdir
822 datadir
823 datarootdir
824 libexecdir
825 sbindir
826 bindir
827 program_transform_name
828 prefix
829 exec_prefix
830 PACKAGE_URL
831 PACKAGE_BUGREPORT
832 PACKAGE_STRING
833 PACKAGE_VERSION
834 PACKAGE_TARNAME
835 PACKAGE_NAME
836 PATH_SEPARATOR
837 SHELL'
838 ac_subst_files=''
839 ac_user_opts='
840 enable_option_checking
841 enable_silent_rules
842 enable_maintainer_mode
843 enable_dependency_tracking
844 enable_largefile
845 enable_nls
846 with_gnu_ld
847 enable_rpath
848 with_libiconv_prefix
849 with_libintl_prefix
850 enable_prologues
851 enable_sdt_probes
852 enable_ssp
853 enable_pie
854 enable_sqlite
855 enable_translator
856 enable_crash
857 enable_docs
858 enable_refdocs
859 with_nss
860 with_dracutstap
861 enable_server
862 with_avahi
863 with_rpm
864 with_python3
865 with_elfutils
866 with_dyninst
867 enable_virt
868 with_selinux
869 with_java
870 with_extra_version
871 '
872 ac_precious_vars='build_alias
873 host_alias
874 target_alias
875 CC
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
880 CPP
881 CXX
882 CXXFLAGS
883 CCC
884 PKG_CONFIG
885 PKG_CONFIG_PATH
886 PKG_CONFIG_LIBDIR
887 nss_CFLAGS
888 nss_LIBS
889 avahi_CFLAGS
890 avahi_LIBS
891 CXXCPP
892 libvirt_CFLAGS
893 libvirt_LIBS
894 libxml2_CFLAGS
895 libxml2_LIBS
896 selinux_CFLAGS
897 selinux_LIBS'
898 ac_subdirs_all='testsuite'
899
900 # Initialize some variables set by options.
901 ac_init_help=
902 ac_init_version=false
903 ac_unrecognized_opts=
904 ac_unrecognized_sep=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
921
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
947
948 ac_prev=
949 ac_dashdash=
950 for ac_option
951 do
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
955 ac_prev=
956 continue
957 fi
958
959 case $ac_option in
960 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *=) ac_optarg= ;;
962 *) ac_optarg=yes ;;
963 esac
964
965 # Accept the important Cygnus configure options, so we can diagnose typos.
966
967 case $ac_dashdash$ac_option in
968 --)
969 ac_dashdash=yes ;;
970
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 ac_prev=bindir ;;
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974 bindir=$ac_optarg ;;
975
976 -build | --build | --buil | --bui | --bu)
977 ac_prev=build_alias ;;
978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979 build_alias=$ac_optarg ;;
980
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986 cache_file=$ac_optarg ;;
987
988 --config-cache | -C)
989 cache_file=config.cache ;;
990
991 -datadir | --datadir | --datadi | --datad)
992 ac_prev=datadir ;;
993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
994 datadir=$ac_optarg ;;
995
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1002
1003 -disable-* | --disable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=no ;;
1018
1019 -docdir | --docdir | --docdi | --doc | --do)
1020 ac_prev=docdir ;;
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1023
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025 ac_prev=dvidir ;;
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
1028
1029 -enable-* | --enable-*)
1030 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 as_fn_error $? "invalid feature name: $ac_useropt"
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1037 *"
1038 "enable_$ac_useropt"
1039 "*) ;;
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1042 esac
1043 eval enable_$ac_useropt=\$ac_optarg ;;
1044
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1052 exec_prefix=$ac_optarg ;;
1053
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1056 with_gas=yes ;;
1057
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
1064
1065 -host | --host | --hos | --ho)
1066 ac_prev=host_alias ;;
1067 -host=* | --host=* | --hos=* | --ho=*)
1068 host_alias=$ac_optarg ;;
1069
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071 ac_prev=htmldir ;;
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073 | --ht=*)
1074 htmldir=$ac_optarg ;;
1075
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1081 includedir=$ac_optarg ;;
1082
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1084 ac_prev=infodir ;;
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086 infodir=$ac_optarg ;;
1087
1088 -libdir | --libdir | --libdi | --libd)
1089 ac_prev=libdir ;;
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091 libdir=$ac_optarg ;;
1092
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1098 libexecdir=$ac_optarg ;;
1099
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1104
1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 | --localstate | --localstat | --localsta | --localst | --locals)
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110 localstatedir=$ac_optarg ;;
1111
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113 ac_prev=mandir ;;
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115 mandir=$ac_optarg ;;
1116
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1119 with_fp=no ;;
1120
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122 | --no-cr | --no-c | -n)
1123 no_create=yes ;;
1124
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127 no_recursion=yes ;;
1128
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136 oldincludedir=$ac_optarg ;;
1137
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139 ac_prev=prefix ;;
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141 prefix=$ac_optarg ;;
1142
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148 program_prefix=$ac_optarg ;;
1149
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155 program_suffix=$ac_optarg ;;
1156
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1172 program_transform_name=$ac_optarg ;;
1173
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175 ac_prev=pdfdir ;;
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1178
1179 -psdir | --psdir | --psdi | --psd | --ps)
1180 ac_prev=psdir ;;
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182 psdir=$ac_optarg ;;
1183
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1186 silent=yes ;;
1187
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189 ac_prev=sbindir ;;
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191 | --sbi=* | --sb=*)
1192 sbindir=$ac_optarg ;;
1193
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1197 | --sha | --sh)
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202 | --sha=* | --sh=*)
1203 sharedstatedir=$ac_optarg ;;
1204
1205 -site | --site | --sit)
1206 ac_prev=site ;;
1207 -site=* | --site=* | --sit=*)
1208 site=$ac_optarg ;;
1209
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211 ac_prev=srcdir ;;
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213 srcdir=$ac_optarg ;;
1214
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220 sysconfdir=$ac_optarg ;;
1221
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1223 ac_prev=target_alias ;;
1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225 target_alias=$ac_optarg ;;
1226
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228 verbose=yes ;;
1229
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
1232
1233 -with-* | --with-*)
1234 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 as_fn_error $? "invalid package name: $ac_useropt"
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1241 *"
1242 "with_$ac_useropt"
1243 "*) ;;
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1246 esac
1247 eval with_$ac_useropt=\$ac_optarg ;;
1248
1249 -without-* | --without-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error $? "invalid package name: $ac_useropt"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258 "with_$ac_useropt"
1259 "*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=no ;;
1264
1265 --x)
1266 # Obsolete; use --with-x.
1267 with_x=yes ;;
1268
1269 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270 | --x-incl | --x-inc | --x-in | --x-i)
1271 ac_prev=x_includes ;;
1272 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274 x_includes=$ac_optarg ;;
1275
1276 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278 ac_prev=x_libraries ;;
1279 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281 x_libraries=$ac_optarg ;;
1282
1283 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1284 Try \`$0 --help' for more information"
1285 ;;
1286
1287 *=*)
1288 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
1290 case $ac_envvar in #(
1291 '' | [0-9]* | *[!_$as_cr_alnum]* )
1292 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1293 esac
1294 eval $ac_envvar=\$ac_optarg
1295 export $ac_envvar ;;
1296
1297 *)
1298 # FIXME: should be removed in autoconf 3.0.
1299 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1303 ;;
1304
1305 esac
1306 done
1307
1308 if test -n "$ac_prev"; then
1309 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310 as_fn_error $? "missing argument to $ac_option"
1311 fi
1312
1313 if test -n "$ac_unrecognized_opts"; then
1314 case $enable_option_checking in
1315 no) ;;
1316 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1317 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318 esac
1319 fi
1320
1321 # Check all directory arguments for consistency.
1322 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
1326 do
1327 eval ac_val=\$$ac_var
1328 # Remove trailing slashes.
1329 case $ac_val in
1330 */ )
1331 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332 eval $ac_var=\$ac_val;;
1333 esac
1334 # Be sure to have absolute directory names.
1335 case $ac_val in
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338 esac
1339 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1340 done
1341
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1345 build=$build_alias
1346 host=$host_alias
1347 target=$target_alias
1348
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x; then
1351 if test "x$build_alias" = x; then
1352 cross_compiling=maybe
1353 elif test "x$build_alias" != "x$host_alias"; then
1354 cross_compiling=yes
1355 fi
1356 fi
1357
1358 ac_tool_prefix=
1359 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360
1361 test "$silent" = yes && exec 6>/dev/null
1362
1363
1364 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365 ac_ls_di=`ls -di .` &&
1366 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1367 as_fn_error $? "working directory cannot be determined"
1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369 as_fn_error $? "pwd does not report name of working directory"
1370
1371
1372 # Find the source files, if location was not specified.
1373 if test -z "$srcdir"; then
1374 ac_srcdir_defaulted=yes
1375 # Try the directory containing this script, then the parent directory.
1376 ac_confdir=`$as_dirname -- "$as_myself" ||
1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381 $as_echo X"$as_myself" |
1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\/\)[^/].*/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\/\)$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\).*/{
1395 s//\1/
1396 q
1397 }
1398 s/.*/./; q'`
1399 srcdir=$ac_confdir
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 srcdir=..
1402 fi
1403 else
1404 ac_srcdir_defaulted=no
1405 fi
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1408 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1409 fi
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 ac_abs_confdir=`(
1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1413 pwd)`
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1417 fi
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1421 case $srcdir in
1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 esac
1424 for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 done
1430
1431 #
1432 # Report the --help message.
1433 #
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1437 cat <<_ACEOF
1438 \`configure' configures systemtap 2.9 to adapt to many kinds of systems.
1439
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1441
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1444
1445 Defaults for the options are specified in brackets.
1446
1447 Configuration:
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking ...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1462 [PREFIX]
1463
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1468
1469 For better control, use the options below.
1470
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1491 _ACEOF
1492
1493 cat <<\_ACEOF
1494
1495 Program names:
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1499
1500 System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 --target=TARGET configure for building compilers for TARGET [HOST]
1504 _ACEOF
1505 fi
1506
1507 if test -n "$ac_init_help"; then
1508 case $ac_init_help in
1509 short | recursive ) echo "Configuration of systemtap 2.9:";;
1510 esac
1511 cat <<\_ACEOF
1512
1513 Optional Features:
1514 --disable-option-checking ignore unrecognized --enable/--with options
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1517 --enable-silent-rules less verbose build output (undo: "make V=1")
1518 --disable-silent-rules verbose build output (undo: "make V=0")
1519 --enable-maintainer-mode
1520 enable make rules and dependencies not useful (and
1521 sometimes confusing) to the casual installer
1522 --enable-dependency-tracking
1523 do not reject slow dependency extractors
1524 --disable-dependency-tracking
1525 speeds up one-time build
1526 --disable-largefile omit support for large files
1527 --disable-nls do not use Native Language Support
1528 --disable-rpath do not hardcode runtime library paths
1529 --enable-prologues make -P prologue-searching default
1530 --disable-sdt-probes disable process.mark probes in stap, staprun, stapio
1531 --disable-ssp disable gcc stack-protector
1532 --enable-pie enable position-independent-executable
1533 --enable-sqlite build with sqlite support
1534 --disable-translator build only runtime utilities
1535 --enable-crash[=DIRECTORY]
1536 enable crash extension (default is disabled).
1537 Optional DIRECTORY is the path to the crash header
1538 file (needed if installed in a non-standard
1539 location).
1540 --enable-docs enable building documentation (default on if latex
1541 etc. found).
1542 --enable-refdocs enable building reference documentation (default on
1543 if xmlto etc. found and other documentation built).
1544 --enable-server enable building of stap-server (default on if nss
1545 etc. found).
1546 --enable-virt enable building of stapvirt support (default on if
1547 libvirt etc. found).
1548
1549 Optional Packages:
1550 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1551 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1554 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1555 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1556 --without-libintl-prefix don't search for libintl in includedir and libdir
1557 --without-nss Do not use NSS even if present
1558 --with-dracutstap=DIR Install dracut module files in DIR
1559 --without-avahi Do not use Avahi even if present
1560 --with-rpm query rpm database for missing debuginfos
1561 --with-python3 prefer /usr/bin/python3
1562 --with-elfutils=DIRECTORY
1563 find elfutils source code in DIRECTORY
1564 --with-dyninst=DIRECTORY
1565 find dyninst headers/libraries in DIRECTORY
1566 --without-selinux Do not use libselinux even if present
1567 --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so
1568 against (default is /usr/lib/jvm/java)
1569 --with-extra-version=STRING
1570 Add STRING to stap -V version
1571
1572 Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1580 CPP C preprocessor
1581 CXX C++ compiler command
1582 CXXFLAGS C++ compiler flags
1583 PKG_CONFIG path to pkg-config utility
1584 PKG_CONFIG_PATH
1585 directories to add to pkg-config's search path
1586 PKG_CONFIG_LIBDIR
1587 path overriding pkg-config's built-in search path
1588 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1589 nss_LIBS linker flags for nss, overriding pkg-config
1590 avahi_CFLAGS
1591 C compiler flags for avahi, overriding pkg-config
1592 avahi_LIBS linker flags for avahi, overriding pkg-config
1593 CXXCPP C++ preprocessor
1594 libvirt_CFLAGS
1595 C compiler flags for libvirt, overriding pkg-config
1596 libvirt_LIBS
1597 linker flags for libvirt, overriding pkg-config
1598 libxml2_CFLAGS
1599 C compiler flags for libxml2, overriding pkg-config
1600 libxml2_LIBS
1601 linker flags for libxml2, overriding pkg-config
1602 selinux_CFLAGS
1603 C compiler flags for selinux, overriding pkg-config
1604 selinux_LIBS
1605 linker flags for selinux, overriding pkg-config
1606
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1609
1610 Report bugs to <systemtap@sourceware.org>.
1611 _ACEOF
1612 ac_status=$?
1613 fi
1614
1615 if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
1621 ac_builddir=.
1622
1623 case "$ac_dir" in
1624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *)
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633 esac
1634 ac_abs_top_builddir=$ac_pwd
1635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636 # for backward compatibility:
1637 ac_top_builddir=$ac_top_build_prefix
1638
1639 case $srcdir in
1640 .) # We are building in place.
1641 ac_srcdir=.
1642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
1645 ac_srcdir=$srcdir$ac_dir_suffix;
1646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 esac
1653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure" --help=recursive
1663 else
1664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 fi || ac_status=$?
1666 cd "$ac_pwd" || { ac_status=$?; break; }
1667 done
1668 fi
1669
1670 test -n "$ac_init_help" && exit $ac_status
1671 if $ac_init_version; then
1672 cat <<\_ACEOF
1673 systemtap configure 2.9
1674 generated by GNU Autoconf 2.69
1675
1676 Copyright (C) 2012 Free Software Foundation, Inc.
1677 This configure script is free software; the Free Software Foundation
1678 gives unlimited permission to copy, distribute and modify it.
1679 _ACEOF
1680 exit
1681 fi
1682
1683 ## ------------------------ ##
1684 ## Autoconf initialization. ##
1685 ## ------------------------ ##
1686
1687 # ac_fn_c_try_compile LINENO
1688 # --------------------------
1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_compile ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_compile
1724
1725 # ac_fn_c_try_cpp LINENO
1726 # ----------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_cpp ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_cpp conftest.$ac_ext"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } > conftest.i && {
1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756 fi
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_cpp
1761
1762 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765 # the include files in INCLUDES and setting the cache variable VAR
1766 # accordingly.
1767 ac_fn_c_check_header_mongrel ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if eval \${$3+:} false; then :
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval \${$3+:} false; then :
1774 $as_echo_n "(cached) " >&6
1775 fi
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 else
1780 # Is the header compilable?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782 $as_echo_n "checking $2 usability... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 $4
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 ac_header_compiler=yes
1790 else
1791 ac_header_compiler=no
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795 $as_echo "$ac_header_compiler" >&6; }
1796
1797 # Is the header present?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799 $as_echo_n "checking $2 presence... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_cpp "$LINENO"; then :
1805 ac_header_preproc=yes
1806 else
1807 ac_header_preproc=no
1808 fi
1809 rm -f conftest.err conftest.i conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811 $as_echo "$ac_header_preproc" >&6; }
1812
1813 # So? What about this header?
1814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1815 yes:no: )
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 ;;
1821 no:yes:* )
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1825 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1829 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 ( $as_echo "## --------------------------------------- ##
1833 ## Report this to systemtap@sourceware.org ##
1834 ## --------------------------------------- ##"
1835 ) | sed "s/^/$as_me: WARNING: /" >&2
1836 ;;
1837 esac
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 eval "$3=\$ac_header_compiler"
1844 fi
1845 eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 fi
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851 } # ac_fn_c_check_header_mongrel
1852
1853 # ac_fn_c_try_run LINENO
1854 # ----------------------
1855 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1856 # that executables *can* be run.
1857 ac_fn_c_try_run ()
1858 {
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_link"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_link") 2>&5
1868 ac_status=$?
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1871 { { case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_try") 2>&5
1878 ac_status=$?
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; }; }; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: program exited with status $ac_status" >&5
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887 ac_retval=$ac_status
1888 fi
1889 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1892
1893 } # ac_fn_c_try_run
1894
1895 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1896 # -------------------------------------------------------
1897 # Tests whether HEADER exists and can be compiled using the include files in
1898 # INCLUDES, setting the cache variable VAR accordingly.
1899 ac_fn_c_check_header_compile ()
1900 {
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if eval \${$3+:} false; then :
1905 $as_echo_n "(cached) " >&6
1906 else
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 $4
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 eval "$3=yes"
1914 else
1915 eval "$3=no"
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 fi
1919 eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923
1924 } # ac_fn_c_check_header_compile
1925
1926 # ac_fn_cxx_try_compile LINENO
1927 # ----------------------------
1928 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_cxx_try_compile ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 rm -f conftest.$ac_objext
1933 if { { ac_try="$ac_compile"
1934 case "(($ac_try" in
1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1937 esac
1938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939 $as_echo "$ac_try_echo"; } >&5
1940 (eval "$ac_compile") 2>conftest.err
1941 ac_status=$?
1942 if test -s conftest.err; then
1943 grep -v '^ *+' conftest.err >conftest.er1
1944 cat conftest.er1 >&5
1945 mv -f conftest.er1 conftest.err
1946 fi
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; } && {
1949 test -z "$ac_cxx_werror_flag" ||
1950 test ! -s conftest.err
1951 } && test -s conftest.$ac_objext; then :
1952 ac_retval=0
1953 else
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1956
1957 ac_retval=1
1958 fi
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 as_fn_set_status $ac_retval
1961
1962 } # ac_fn_cxx_try_compile
1963
1964 # ac_fn_c_try_link LINENO
1965 # -----------------------
1966 # Try to link conftest.$ac_ext, and return whether this succeeded.
1967 ac_fn_c_try_link ()
1968 {
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 rm -f conftest.$ac_objext conftest$ac_exeext
1971 if { { ac_try="$ac_link"
1972 case "(($ac_try" in
1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1975 esac
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_link") 2>conftest.err
1979 ac_status=$?
1980 if test -s conftest.err; then
1981 grep -v '^ *+' conftest.err >conftest.er1
1982 cat conftest.er1 >&5
1983 mv -f conftest.er1 conftest.err
1984 fi
1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986 test $ac_status = 0; } && {
1987 test -z "$ac_c_werror_flag" ||
1988 test ! -s conftest.err
1989 } && test -s conftest$ac_exeext && {
1990 test "$cross_compiling" = yes ||
1991 test -x conftest$ac_exeext
1992 }; then :
1993 ac_retval=0
1994 else
1995 $as_echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1997
1998 ac_retval=1
1999 fi
2000 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2001 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2002 # interfere with the next link command; also delete a directory that is
2003 # left behind by Apple's compiler. We do this before executing the actions.
2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 as_fn_set_status $ac_retval
2007
2008 } # ac_fn_c_try_link
2009
2010 # ac_fn_c_check_func LINENO FUNC VAR
2011 # ----------------------------------
2012 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2013 ac_fn_c_check_func ()
2014 {
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2020 else
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2025 #define $2 innocuous_$2
2026
2027 /* System header to define __stub macros and hopefully few prototypes,
2028 which can conflict with char $2 (); below.
2029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2030 <limits.h> exists even on freestanding compilers. */
2031
2032 #ifdef __STDC__
2033 # include <limits.h>
2034 #else
2035 # include <assert.h>
2036 #endif
2037
2038 #undef $2
2039
2040 /* Override any GCC internal prototype to avoid an error.
2041 Use char because int might match the return type of a GCC
2042 builtin and then its argument prototype would still apply. */
2043 #ifdef __cplusplus
2044 extern "C"
2045 #endif
2046 char $2 ();
2047 /* The GNU C library defines this for functions which it implements
2048 to always fail with ENOSYS. Some functions are actually named
2049 something starting with __ and the normal name is an alias. */
2050 #if defined __stub_$2 || defined __stub___$2
2051 choke me
2052 #endif
2053
2054 int
2055 main ()
2056 {
2057 return $2 ();
2058 ;
2059 return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_link "$LINENO"; then :
2063 eval "$3=yes"
2064 else
2065 eval "$3=no"
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext \
2068 conftest$ac_exeext conftest.$ac_ext
2069 fi
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075 } # ac_fn_c_check_func
2076
2077 # ac_fn_cxx_try_cpp LINENO
2078 # ------------------------
2079 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2080 ac_fn_cxx_try_cpp ()
2081 {
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if { { ac_try="$ac_cpp conftest.$ac_ext"
2084 case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087 esac
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2091 ac_status=$?
2092 if test -s conftest.err; then
2093 grep -v '^ *+' conftest.err >conftest.er1
2094 cat conftest.er1 >&5
2095 mv -f conftest.er1 conftest.err
2096 fi
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; } > conftest.i && {
2099 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2100 test ! -s conftest.err
2101 }; then :
2102 ac_retval=0
2103 else
2104 $as_echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2106
2107 ac_retval=1
2108 fi
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 as_fn_set_status $ac_retval
2111
2112 } # ac_fn_cxx_try_cpp
2113
2114 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2115 # ---------------------------------------------------------
2116 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2117 # the include files in INCLUDES and setting the cache variable VAR
2118 # accordingly.
2119 ac_fn_cxx_check_header_mongrel ()
2120 {
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 if eval \${$3+:} false; then :
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if eval \${$3+:} false; then :
2126 $as_echo_n "(cached) " >&6
2127 fi
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 else
2132 # Is the header compilable?
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2134 $as_echo_n "checking $2 usability... " >&6; }
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 $4
2138 #include <$2>
2139 _ACEOF
2140 if ac_fn_cxx_try_compile "$LINENO"; then :
2141 ac_header_compiler=yes
2142 else
2143 ac_header_compiler=no
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2147 $as_echo "$ac_header_compiler" >&6; }
2148
2149 # Is the header present?
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2151 $as_echo_n "checking $2 presence... " >&6; }
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2154 #include <$2>
2155 _ACEOF
2156 if ac_fn_cxx_try_cpp "$LINENO"; then :
2157 ac_header_preproc=yes
2158 else
2159 ac_header_preproc=no
2160 fi
2161 rm -f conftest.err conftest.i conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2163 $as_echo "$ac_header_preproc" >&6; }
2164
2165 # So? What about this header?
2166 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2167 yes:no: )
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2169 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2171 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2172 ;;
2173 no:yes:* )
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2175 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2177 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2179 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2181 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2183 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2184 ( $as_echo "## --------------------------------------- ##
2185 ## Report this to systemtap@sourceware.org ##
2186 ## --------------------------------------- ##"
2187 ) | sed "s/^/$as_me: WARNING: /" >&2
2188 ;;
2189 esac
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 $as_echo_n "checking for $2... " >&6; }
2192 if eval \${$3+:} false; then :
2193 $as_echo_n "(cached) " >&6
2194 else
2195 eval "$3=\$ac_header_compiler"
2196 fi
2197 eval ac_res=\$$3
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200 fi
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202
2203 } # ac_fn_cxx_check_header_mongrel
2204 cat >config.log <<_ACEOF
2205 This file contains any messages produced by compilers while
2206 running configure, to aid debugging if configure makes a mistake.
2207
2208 It was created by systemtap $as_me 2.9, which was
2209 generated by GNU Autoconf 2.69. Invocation command line was
2210
2211 $ $0 $@
2212
2213 _ACEOF
2214 exec 5>>config.log
2215 {
2216 cat <<_ASUNAME
2217 ## --------- ##
2218 ## Platform. ##
2219 ## --------- ##
2220
2221 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2222 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2223 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2224 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2225 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2226
2227 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2228 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2229
2230 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2231 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2232 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2233 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2234 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2235 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2236 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2237
2238 _ASUNAME
2239
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 $as_echo "PATH: $as_dir"
2246 done
2247 IFS=$as_save_IFS
2248
2249 } >&5
2250
2251 cat >&5 <<_ACEOF
2252
2253
2254 ## ----------- ##
2255 ## Core tests. ##
2256 ## ----------- ##
2257
2258 _ACEOF
2259
2260
2261 # Keep a trace of the command line.
2262 # Strip out --no-create and --no-recursion so they do not pile up.
2263 # Strip out --silent because we don't want to record it for future runs.
2264 # Also quote any args containing shell meta-characters.
2265 # Make two passes to allow for proper duplicate-argument suppression.
2266 ac_configure_args=
2267 ac_configure_args0=
2268 ac_configure_args1=
2269 ac_must_keep_next=false
2270 for ac_pass in 1 2
2271 do
2272 for ac_arg
2273 do
2274 case $ac_arg in
2275 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2277 | -silent | --silent | --silen | --sile | --sil)
2278 continue ;;
2279 *\'*)
2280 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2281 esac
2282 case $ac_pass in
2283 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2284 2)
2285 as_fn_append ac_configure_args1 " '$ac_arg'"
2286 if test $ac_must_keep_next = true; then
2287 ac_must_keep_next=false # Got value, back to normal.
2288 else
2289 case $ac_arg in
2290 *=* | --config-cache | -C | -disable-* | --disable-* \
2291 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2292 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2293 | -with-* | --with-* | -without-* | --without-* | --x)
2294 case "$ac_configure_args0 " in
2295 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2296 esac
2297 ;;
2298 -* ) ac_must_keep_next=true ;;
2299 esac
2300 fi
2301 as_fn_append ac_configure_args " '$ac_arg'"
2302 ;;
2303 esac
2304 done
2305 done
2306 { ac_configure_args0=; unset ac_configure_args0;}
2307 { ac_configure_args1=; unset ac_configure_args1;}
2308
2309 # When interrupted or exit'd, cleanup temporary files, and complete
2310 # config.log. We remove comments because anyway the quotes in there
2311 # would cause problems or look ugly.
2312 # WARNING: Use '\'' to represent an apostrophe within the trap.
2313 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2314 trap 'exit_status=$?
2315 # Save into config.log some information that might help in debugging.
2316 {
2317 echo
2318
2319 $as_echo "## ---------------- ##
2320 ## Cache variables. ##
2321 ## ---------------- ##"
2322 echo
2323 # The following way of writing the cache mishandles newlines in values,
2324 (
2325 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2326 eval ac_val=\$$ac_var
2327 case $ac_val in #(
2328 *${as_nl}*)
2329 case $ac_var in #(
2330 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2331 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2332 esac
2333 case $ac_var in #(
2334 _ | IFS | as_nl) ;; #(
2335 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2336 *) { eval $ac_var=; unset $ac_var;} ;;
2337 esac ;;
2338 esac
2339 done
2340 (set) 2>&1 |
2341 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2342 *${as_nl}ac_space=\ *)
2343 sed -n \
2344 "s/'\''/'\''\\\\'\'''\''/g;
2345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2346 ;; #(
2347 *)
2348 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2349 ;;
2350 esac |
2351 sort
2352 )
2353 echo
2354
2355 $as_echo "## ----------------- ##
2356 ## Output variables. ##
2357 ## ----------------- ##"
2358 echo
2359 for ac_var in $ac_subst_vars
2360 do
2361 eval ac_val=\$$ac_var
2362 case $ac_val in
2363 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2364 esac
2365 $as_echo "$ac_var='\''$ac_val'\''"
2366 done | sort
2367 echo
2368
2369 if test -n "$ac_subst_files"; then
2370 $as_echo "## ------------------- ##
2371 ## File substitutions. ##
2372 ## ------------------- ##"
2373 echo
2374 for ac_var in $ac_subst_files
2375 do
2376 eval ac_val=\$$ac_var
2377 case $ac_val in
2378 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379 esac
2380 $as_echo "$ac_var='\''$ac_val'\''"
2381 done | sort
2382 echo
2383 fi
2384
2385 if test -s confdefs.h; then
2386 $as_echo "## ----------- ##
2387 ## confdefs.h. ##
2388 ## ----------- ##"
2389 echo
2390 cat confdefs.h
2391 echo
2392 fi
2393 test "$ac_signal" != 0 &&
2394 $as_echo "$as_me: caught signal $ac_signal"
2395 $as_echo "$as_me: exit $exit_status"
2396 } >&5
2397 rm -f core *.core core.conftest.* &&
2398 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2399 exit $exit_status
2400 ' 0
2401 for ac_signal in 1 2 13 15; do
2402 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2403 done
2404 ac_signal=0
2405
2406 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2407 rm -f -r conftest* confdefs.h
2408
2409 $as_echo "/* confdefs.h */" > confdefs.h
2410
2411 # Predefined preprocessor variables.
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_NAME "$PACKAGE_NAME"
2415 _ACEOF
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2423 _ACEOF
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_STRING "$PACKAGE_STRING"
2427 _ACEOF
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2431 _ACEOF
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_URL "$PACKAGE_URL"
2435 _ACEOF
2436
2437
2438 # Let the site file select an alternate cache file if it wants to.
2439 # Prefer an explicitly selected file to automatically selected ones.
2440 ac_site_file1=NONE
2441 ac_site_file2=NONE
2442 if test -n "$CONFIG_SITE"; then
2443 # We do not want a PATH search for config.site.
2444 case $CONFIG_SITE in #((
2445 -*) ac_site_file1=./$CONFIG_SITE;;
2446 */*) ac_site_file1=$CONFIG_SITE;;
2447 *) ac_site_file1=./$CONFIG_SITE;;
2448 esac
2449 elif test "x$prefix" != xNONE; then
2450 ac_site_file1=$prefix/share/config.site
2451 ac_site_file2=$prefix/etc/config.site
2452 else
2453 ac_site_file1=$ac_default_prefix/share/config.site
2454 ac_site_file2=$ac_default_prefix/etc/config.site
2455 fi
2456 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2457 do
2458 test "x$ac_site_file" = xNONE && continue
2459 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2461 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2462 sed 's/^/| /' "$ac_site_file" >&5
2463 . "$ac_site_file" \
2464 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466 as_fn_error $? "failed to load site script $ac_site_file
2467 See \`config.log' for more details" "$LINENO" 5; }
2468 fi
2469 done
2470
2471 if test -r "$cache_file"; then
2472 # Some versions of bash will fail to source /dev/null (special files
2473 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2474 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2476 $as_echo "$as_me: loading cache $cache_file" >&6;}
2477 case $cache_file in
2478 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2479 *) . "./$cache_file";;
2480 esac
2481 fi
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2484 $as_echo "$as_me: creating cache $cache_file" >&6;}
2485 >$cache_file
2486 fi
2487
2488 gt_needs="$gt_needs "
2489 # Check that the precious variables saved in the cache have kept the same
2490 # value.
2491 ac_cache_corrupted=false
2492 for ac_var in $ac_precious_vars; do
2493 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2494 eval ac_new_set=\$ac_env_${ac_var}_set
2495 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2496 eval ac_new_val=\$ac_env_${ac_var}_value
2497 case $ac_old_set,$ac_new_set in
2498 set,)
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2501 ac_cache_corrupted=: ;;
2502 ,set)
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2504 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2505 ac_cache_corrupted=: ;;
2506 ,);;
2507 *)
2508 if test "x$ac_old_val" != "x$ac_new_val"; then
2509 # differences in whitespace do not lead to failure.
2510 ac_old_val_w=`echo x $ac_old_val`
2511 ac_new_val_w=`echo x $ac_new_val`
2512 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2514 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2515 ac_cache_corrupted=:
2516 else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2518 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2519 eval $ac_var=\$ac_old_val
2520 fi
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2522 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2524 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2525 fi;;
2526 esac
2527 # Pass precious variables to config.status.
2528 if test "$ac_new_set" = set; then
2529 case $ac_new_val in
2530 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2531 *) ac_arg=$ac_var=$ac_new_val ;;
2532 esac
2533 case " $ac_configure_args " in
2534 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2535 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2536 esac
2537 fi
2538 done
2539 if $ac_cache_corrupted; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2543 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2544 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2545 fi
2546 ## -------------------- ##
2547 ## Main body of script. ##
2548 ## -------------------- ##
2549
2550 ac_ext=c
2551 ac_cpp='$CPP $CPPFLAGS'
2552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2555
2556
2557
2558 ac_aux_dir=
2559 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2560 if test -f "$ac_dir/install-sh"; then
2561 ac_aux_dir=$ac_dir
2562 ac_install_sh="$ac_aux_dir/install-sh -c"
2563 break
2564 elif test -f "$ac_dir/install.sh"; then
2565 ac_aux_dir=$ac_dir
2566 ac_install_sh="$ac_aux_dir/install.sh -c"
2567 break
2568 elif test -f "$ac_dir/shtool"; then
2569 ac_aux_dir=$ac_dir
2570 ac_install_sh="$ac_aux_dir/shtool install -c"
2571 break
2572 fi
2573 done
2574 if test -z "$ac_aux_dir"; then
2575 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2576 fi
2577
2578 # These three variables are undocumented and unsupported,
2579 # and are intended to be withdrawn in a future Autoconf release.
2580 # They can cause serious problems if a builder's source tree is in a directory
2581 # whose full name contains unusual characters.
2582 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2583 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2584 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2585
2586
2587 # Make sure we can run config.sub.
2588 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2589 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2590
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2592 $as_echo_n "checking build system type... " >&6; }
2593 if ${ac_cv_build+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 ac_build_alias=$build_alias
2597 test "x$ac_build_alias" = x &&
2598 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2599 test "x$ac_build_alias" = x &&
2600 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2601 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2602 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2603
2604 fi
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2606 $as_echo "$ac_cv_build" >&6; }
2607 case $ac_cv_build in
2608 *-*-*) ;;
2609 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2610 esac
2611 build=$ac_cv_build
2612 ac_save_IFS=$IFS; IFS='-'
2613 set x $ac_cv_build
2614 shift
2615 build_cpu=$1
2616 build_vendor=$2
2617 shift; shift
2618 # Remember, the first character of IFS is used to create $*,
2619 # except with old shells:
2620 build_os=$*
2621 IFS=$ac_save_IFS
2622 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2623
2624
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2626 $as_echo_n "checking host system type... " >&6; }
2627 if ${ac_cv_host+:} false; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 if test "x$host_alias" = x; then
2631 ac_cv_host=$ac_cv_build
2632 else
2633 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2634 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2635 fi
2636
2637 fi
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2639 $as_echo "$ac_cv_host" >&6; }
2640 case $ac_cv_host in
2641 *-*-*) ;;
2642 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2643 esac
2644 host=$ac_cv_host
2645 ac_save_IFS=$IFS; IFS='-'
2646 set x $ac_cv_host
2647 shift
2648 host_cpu=$1
2649 host_vendor=$2
2650 shift; shift
2651 # Remember, the first character of IFS is used to create $*,
2652 # except with old shells:
2653 host_os=$*
2654 IFS=$ac_save_IFS
2655 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2656
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2659 $as_echo_n "checking target system type... " >&6; }
2660 if ${ac_cv_target+:} false; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 if test "x$target_alias" = x; then
2664 ac_cv_target=$ac_cv_host
2665 else
2666 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2667 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2668 fi
2669
2670 fi
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2672 $as_echo "$ac_cv_target" >&6; }
2673 case $ac_cv_target in
2674 *-*-*) ;;
2675 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2676 esac
2677 target=$ac_cv_target
2678 ac_save_IFS=$IFS; IFS='-'
2679 set x $ac_cv_target
2680 shift
2681 target_cpu=$1
2682 target_vendor=$2
2683 shift; shift
2684 # Remember, the first character of IFS is used to create $*,
2685 # except with old shells:
2686 target_os=$*
2687 IFS=$ac_save_IFS
2688 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2689
2690
2691 # The aliases save the names the user supplied, while $host etc.
2692 # will get canonicalized.
2693 test -n "$target_alias" &&
2694 test "$program_prefix$program_suffix$program_transform_name" = \
2695 NONENONEs,x,x, &&
2696 program_prefix=${target_alias}-
2697
2698
2699 am__api_version='1.14'
2700
2701 # Find a good install program. We prefer a C program (faster),
2702 # so one script is as good as another. But avoid the broken or
2703 # incompatible versions:
2704 # SysV /etc/install, /usr/sbin/install
2705 # SunOS /usr/etc/install
2706 # IRIX /sbin/install
2707 # AIX /bin/install
2708 # AmigaOS /C/install, which installs bootblocks on floppy discs
2709 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2710 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2711 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2712 # OS/2's system install, which has a completely different semantic
2713 # ./install, which can be erroneously created by make from ./install.sh.
2714 # Reject install programs that cannot install multiple files.
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2716 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2717 if test -z "$INSTALL"; then
2718 if ${ac_cv_path_install+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 # Account for people who put trailing slashes in PATH elements.
2727 case $as_dir/ in #((
2728 ./ | .// | /[cC]/* | \
2729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2730 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2731 /usr/ucb/* ) ;;
2732 *)
2733 # OSF1 and SCO ODT 3.0 have their own names for install.
2734 # Don't use installbsd from OSF since it installs stuff as root
2735 # by default.
2736 for ac_prog in ginstall scoinst install; do
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2739 if test $ac_prog = install &&
2740 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2741 # AIX install. It has an incompatible calling convention.
2742 :
2743 elif test $ac_prog = install &&
2744 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2745 # program-specific install script used by HP pwplus--don't use.
2746 :
2747 else
2748 rm -rf conftest.one conftest.two conftest.dir
2749 echo one > conftest.one
2750 echo two > conftest.two
2751 mkdir conftest.dir
2752 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2753 test -s conftest.one && test -s conftest.two &&
2754 test -s conftest.dir/conftest.one &&
2755 test -s conftest.dir/conftest.two
2756 then
2757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2758 break 3
2759 fi
2760 fi
2761 fi
2762 done
2763 done
2764 ;;
2765 esac
2766
2767 done
2768 IFS=$as_save_IFS
2769
2770 rm -rf conftest.one conftest.two conftest.dir
2771
2772 fi
2773 if test "${ac_cv_path_install+set}" = set; then
2774 INSTALL=$ac_cv_path_install
2775 else
2776 # As a last resort, use the slow shell script. Don't cache a
2777 # value for INSTALL within a source directory, because that will
2778 # break other packages using the cache if that directory is
2779 # removed, or if the value is a relative name.
2780 INSTALL=$ac_install_sh
2781 fi
2782 fi
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2784 $as_echo "$INSTALL" >&6; }
2785
2786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2787 # It thinks the first close brace ends the variable substitution.
2788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2789
2790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2791
2792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2793
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2795 $as_echo_n "checking whether build environment is sane... " >&6; }
2796 # Reject unsafe characters in $srcdir or the absolute working directory
2797 # name. Accept space and tab only in the latter.
2798 am_lf='
2799 '
2800 case `pwd` in
2801 *[\\\"\#\$\&\'\`$am_lf]*)
2802 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2803 esac
2804 case $srcdir in
2805 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2806 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2807 esac
2808
2809 # Do 'set' in a subshell so we don't clobber the current shell's
2810 # arguments. Must try -L first in case configure is actually a
2811 # symlink; some systems play weird games with the mod time of symlinks
2812 # (eg FreeBSD returns the mod time of the symlink's containing
2813 # directory).
2814 if (
2815 am_has_slept=no
2816 for am_try in 1 2; do
2817 echo "timestamp, slept: $am_has_slept" > conftest.file
2818 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2819 if test "$*" = "X"; then
2820 # -L didn't work.
2821 set X `ls -t "$srcdir/configure" conftest.file`
2822 fi
2823 if test "$*" != "X $srcdir/configure conftest.file" \
2824 && test "$*" != "X conftest.file $srcdir/configure"; then
2825
2826 # If neither matched, then we have a broken ls. This can happen
2827 # if, for instance, CONFIG_SHELL is bash and it inherits a
2828 # broken ls alias from the environment. This has actually
2829 # happened. Such a system could not be considered "sane".
2830 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2831 alias in your environment" "$LINENO" 5
2832 fi
2833 if test "$2" = conftest.file || test $am_try -eq 2; then
2834 break
2835 fi
2836 # Just in case.
2837 sleep 1
2838 am_has_slept=yes
2839 done
2840 test "$2" = conftest.file
2841 )
2842 then
2843 # Ok.
2844 :
2845 else
2846 as_fn_error $? "newly created file is older than distributed files!
2847 Check your system clock" "$LINENO" 5
2848 fi
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850 $as_echo "yes" >&6; }
2851 # If we didn't sleep, we still need to ensure time stamps of config.status and
2852 # generated files are strictly newer.
2853 am_sleep_pid=
2854 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2855 ( sleep 1 ) &
2856 am_sleep_pid=$!
2857 fi
2858
2859 rm -f conftest.file
2860
2861 test "$program_prefix" != NONE &&
2862 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2863 # Use a double $ so make ignores it.
2864 test "$program_suffix" != NONE &&
2865 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2866 # Double any \ or $.
2867 # By default was `s,x,x', remove it if useless.
2868 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2869 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2870
2871 # expand $ac_aux_dir to an absolute path
2872 am_aux_dir=`cd $ac_aux_dir && pwd`
2873
2874 if test x"${MISSING+set}" != xset; then
2875 case $am_aux_dir in
2876 *\ * | *\ *)
2877 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2878 *)
2879 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2880 esac
2881 fi
2882 # Use eval to expand $SHELL
2883 if eval "$MISSING --is-lightweight"; then
2884 am_missing_run="$MISSING "
2885 else
2886 am_missing_run=
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2888 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2889 fi
2890
2891 if test x"${install_sh}" != xset; then
2892 case $am_aux_dir in
2893 *\ * | *\ *)
2894 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2895 *)
2896 install_sh="\${SHELL} $am_aux_dir/install-sh"
2897 esac
2898 fi
2899
2900 # Installed binaries are usually stripped using 'strip' when the user
2901 # run "make install-strip". However 'strip' might not be the right
2902 # tool to use in cross-compilation environments, therefore Automake
2903 # will honor the 'STRIP' environment variable to overrule this program.
2904 if test "$cross_compiling" != no; then
2905 if test -n "$ac_tool_prefix"; then
2906 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}strip; ac_word=$2
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if ${ac_cv_prog_STRIP+:} false; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 if test -n "$STRIP"; then
2914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927 done
2928 done
2929 IFS=$as_save_IFS
2930
2931 fi
2932 fi
2933 STRIP=$ac_cv_prog_STRIP
2934 if test -n "$STRIP"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2936 $as_echo "$STRIP" >&6; }
2937 else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2940 fi
2941
2942
2943 fi
2944 if test -z "$ac_cv_prog_STRIP"; then
2945 ac_ct_STRIP=$STRIP
2946 # Extract the first word of "strip", so it can be a program name with args.
2947 set dummy strip; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952 else
2953 if test -n "$ac_ct_STRIP"; then
2954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_ac_ct_STRIP="strip"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2970
2971 fi
2972 fi
2973 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2974 if test -n "$ac_ct_STRIP"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2976 $as_echo "$ac_ct_STRIP" >&6; }
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 fi
2981
2982 if test "x$ac_ct_STRIP" = x; then
2983 STRIP=":"
2984 else
2985 case $cross_compiling:$ac_tool_warned in
2986 yes:)
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989 ac_tool_warned=yes ;;
2990 esac
2991 STRIP=$ac_ct_STRIP
2992 fi
2993 else
2994 STRIP="$ac_cv_prog_STRIP"
2995 fi
2996
2997 fi
2998 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2999
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3001 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3002 if test -z "$MKDIR_P"; then
3003 if ${ac_cv_path_mkdir+:} false; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3008 do
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_prog in mkdir gmkdir; do
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3014 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3015 'mkdir (GNU coreutils) '* | \
3016 'mkdir (coreutils) '* | \
3017 'mkdir (fileutils) '4.1*)
3018 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3019 break 3;;
3020 esac
3021 done
3022 done
3023 done
3024 IFS=$as_save_IFS
3025
3026 fi
3027
3028 test -d ./--version && rmdir ./--version
3029 if test "${ac_cv_path_mkdir+set}" = set; then
3030 MKDIR_P="$ac_cv_path_mkdir -p"
3031 else
3032 # As a last resort, use the slow shell script. Don't cache a
3033 # value for MKDIR_P within a source directory, because that will
3034 # break other packages using the cache if that directory is
3035 # removed, or if the value is a relative name.
3036 MKDIR_P="$ac_install_sh -d"
3037 fi
3038 fi
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3040 $as_echo "$MKDIR_P" >&6; }
3041
3042 for ac_prog in gawk mawk nawk awk
3043 do
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_AWK+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test -n "$AWK"; then
3052 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_AWK="$ac_prog"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065 done
3066 done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 AWK=$ac_cv_prog_AWK
3072 if test -n "$AWK"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3074 $as_echo "$AWK" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080
3081 test -n "$AWK" && break
3082 done
3083
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3085 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3086 set x ${MAKE-make}
3087 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3088 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 cat >conftest.make <<\_ACEOF
3092 SHELL = /bin/sh
3093 all:
3094 @echo '@@@%%%=$(MAKE)=@@@%%%'
3095 _ACEOF
3096 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3097 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3098 *@@@%%%=?*=@@@%%%*)
3099 eval ac_cv_prog_make_${ac_make}_set=yes;;
3100 *)
3101 eval ac_cv_prog_make_${ac_make}_set=no;;
3102 esac
3103 rm -f conftest.make
3104 fi
3105 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3107 $as_echo "yes" >&6; }
3108 SET_MAKE=
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 SET_MAKE="MAKE=${MAKE-make}"
3113 fi
3114
3115 rm -rf .tst 2>/dev/null
3116 mkdir .tst 2>/dev/null
3117 if test -d .tst; then
3118 am__leading_dot=.
3119 else
3120 am__leading_dot=_
3121 fi
3122 rmdir .tst 2>/dev/null
3123
3124 # Check whether --enable-silent-rules was given.
3125 if test "${enable_silent_rules+set}" = set; then :
3126 enableval=$enable_silent_rules;
3127 fi
3128
3129 case $enable_silent_rules in # (((
3130 yes) AM_DEFAULT_VERBOSITY=0;;
3131 no) AM_DEFAULT_VERBOSITY=1;;
3132 *) AM_DEFAULT_VERBOSITY=1;;
3133 esac
3134 am_make=${MAKE-make}
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3136 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3137 if ${am_cv_make_support_nested_variables+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if $as_echo 'TRUE=$(BAR$(V))
3141 BAR0=false
3142 BAR1=true
3143 V=1
3144 am__doit:
3145 @$(TRUE)
3146 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3147 am_cv_make_support_nested_variables=yes
3148 else
3149 am_cv_make_support_nested_variables=no
3150 fi
3151 fi
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3153 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3154 if test $am_cv_make_support_nested_variables = yes; then
3155 AM_V='$(V)'
3156 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3157 else
3158 AM_V=$AM_DEFAULT_VERBOSITY
3159 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3160 fi
3161 AM_BACKSLASH='\'
3162
3163 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3164 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3165 # is not polluted with repeated "-I."
3166 am__isrc=' -I$(srcdir)'
3167 # test to see if srcdir already configured
3168 if test -f $srcdir/config.status; then
3169 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3170 fi
3171 fi
3172
3173 # test whether we have cygpath
3174 if test -z "$CYGPATH_W"; then
3175 if (cygpath --version) >/dev/null 2>/dev/null; then
3176 CYGPATH_W='cygpath -w'
3177 else
3178 CYGPATH_W=echo
3179 fi
3180 fi
3181
3182
3183 # Define the identity of the package.
3184 PACKAGE='systemtap'
3185 VERSION='2.9'
3186
3187
3188 cat >>confdefs.h <<_ACEOF
3189 #define PACKAGE "$PACKAGE"
3190 _ACEOF
3191
3192
3193 cat >>confdefs.h <<_ACEOF
3194 #define VERSION "$VERSION"
3195 _ACEOF
3196
3197 # Some tools Automake needs.
3198
3199 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3200
3201
3202 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3203
3204
3205 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3206
3207
3208 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3209
3210
3211 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3212
3213 # For better backward compatibility. To be removed once Automake 1.9.x
3214 # dies out for good. For more background, see:
3215 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3216 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3217 mkdir_p='$(MKDIR_P)'
3218
3219 # We need awk for the "check" target. The system "awk" is bad on
3220 # some platforms.
3221 # Always define AMTAR for backward compatibility. Yes, it's still used
3222 # in the wild :-( We should find a proper way to deprecate it ...
3223 AMTAR='$${TAR-tar}'
3224
3225
3226 # We'll loop over all known methods to create a tar archive until one works.
3227 _am_tools='gnutar pax cpio none'
3228
3229 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3230
3231
3232
3233
3234
3235
3236 # POSIX will say in a future version that running "rm -f" with no argument
3237 # is OK; and we want to be able to make that assumption in our Makefile
3238 # recipes. So use an aggressive probe to check that the usage we want is
3239 # actually supported "in the wild" to an acceptable degree.
3240 # See automake bug#10828.
3241 # To make any issue more visible, cause the running configure to be aborted
3242 # by default if the 'rm' program in use doesn't match our expectations; the
3243 # user can still override this though.
3244 if rm -f && rm -fr && rm -rf; then : OK; else
3245 cat >&2 <<'END'
3246 Oops!
3247
3248 Your 'rm' program seems unable to run without file operands specified
3249 on the command line, even when the '-f' option is present. This is contrary
3250 to the behaviour of most rm programs out there, and not conforming with
3251 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3252
3253 Please tell bug-automake@gnu.org about your system, including the value
3254 of your $PATH and any error possibly output before this message. This
3255 can help us improve future automake versions.
3256
3257 END
3258 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3259 echo 'Configuration will proceed anyway, since you have set the' >&2
3260 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3261 echo >&2
3262 else
3263 cat >&2 <<'END'
3264 Aborting the configuration process, to ensure you take notice of the issue.
3265
3266 You can download and install GNU coreutils to get an 'rm' implementation
3267 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3268
3269 If you want to complete the configuration process using your problematic
3270 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3271 to "yes", and re-run configure.
3272
3273 END
3274 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3275 fi
3276 fi
3277
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3279 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3280 # Check whether --enable-maintainer-mode was given.
3281 if test "${enable_maintainer_mode+set}" = set; then :
3282 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3283 else
3284 USE_MAINTAINER_MODE=no
3285 fi
3286
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3288 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3289 if test $USE_MAINTAINER_MODE = yes; then
3290 MAINTAINER_MODE_TRUE=
3291 MAINTAINER_MODE_FALSE='#'
3292 else
3293 MAINTAINER_MODE_TRUE='#'
3294 MAINTAINER_MODE_FALSE=
3295 fi
3296
3297 MAINT=$MAINTAINER_MODE_TRUE
3298
3299
3300
3301 # Check whether --enable-silent-rules was given.
3302 if test "${enable_silent_rules+set}" = set; then :
3303 enableval=$enable_silent_rules;
3304 fi
3305
3306 case $enable_silent_rules in # (((
3307 yes) AM_DEFAULT_VERBOSITY=0;;
3308 no) AM_DEFAULT_VERBOSITY=1;;
3309 *) AM_DEFAULT_VERBOSITY=0;;
3310 esac
3311 am_make=${MAKE-make}
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3313 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3314 if ${am_cv_make_support_nested_variables+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 if $as_echo 'TRUE=$(BAR$(V))
3318 BAR0=false
3319 BAR1=true
3320 V=1
3321 am__doit:
3322 @$(TRUE)
3323 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3324 am_cv_make_support_nested_variables=yes
3325 else
3326 am_cv_make_support_nested_variables=no
3327 fi
3328 fi
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3330 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3331 if test $am_cv_make_support_nested_variables = yes; then
3332 AM_V='$(V)'
3333 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3334 else
3335 AM_V=$AM_DEFAULT_VERBOSITY
3336 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3337 fi
3338 AM_BACKSLASH='\'
3339
3340
3341 DEPDIR="${am__leading_dot}deps"
3342
3343 ac_config_commands="$ac_config_commands depfiles"
3344
3345
3346 am_make=${MAKE-make}
3347 cat > confinc << 'END'
3348 am__doit:
3349 @echo this is the am__doit target
3350 .PHONY: am__doit
3351 END
3352 # If we don't find an include directive, just comment out the code.
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3354 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3355 am__include="#"
3356 am__quote=
3357 _am_result=none
3358 # First try GNU make style include.
3359 echo "include confinc" > confmf
3360 # Ignore all kinds of additional output from 'make'.
3361 case `$am_make -s -f confmf 2> /dev/null` in #(
3362 *the\ am__doit\ target*)
3363 am__include=include
3364 am__quote=
3365 _am_result=GNU
3366 ;;
3367 esac
3368 # Now try BSD make style include.
3369 if test "$am__include" = "#"; then
3370 echo '.include "confinc"' > confmf
3371 case `$am_make -s -f confmf 2> /dev/null` in #(
3372 *the\ am__doit\ target*)
3373 am__include=.include
3374 am__quote="\""
3375 _am_result=BSD
3376 ;;
3377 esac
3378 fi
3379
3380
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3382 $as_echo "$_am_result" >&6; }
3383 rm -f confinc confmf
3384
3385 # Check whether --enable-dependency-tracking was given.
3386 if test "${enable_dependency_tracking+set}" = set; then :
3387 enableval=$enable_dependency_tracking;
3388 fi
3389
3390 if test "x$enable_dependency_tracking" != xno; then
3391 am_depcomp="$ac_aux_dir/depcomp"
3392 AMDEPBACKSLASH='\'
3393 am__nodep='_no'
3394 fi
3395 if test "x$enable_dependency_tracking" != xno; then
3396 AMDEP_TRUE=
3397 AMDEP_FALSE='#'
3398 else
3399 AMDEP_TRUE='#'
3400 AMDEP_FALSE=
3401 fi
3402
3403
3404 ac_ext=c
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 if test -n "$ac_tool_prefix"; then
3410 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3411 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if ${ac_cv_prog_CC+:} false; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC="$CC" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 break 2
3430 fi
3431 done
3432 done
3433 IFS=$as_save_IFS
3434
3435 fi
3436 fi
3437 CC=$ac_cv_prog_CC
3438 if test -n "$CC"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3440 $as_echo "$CC" >&6; }
3441 else
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3444 fi
3445
3446
3447 fi
3448 if test -z "$ac_cv_prog_CC"; then
3449 ac_ct_CC=$CC
3450 # Extract the first word of "gcc", so it can be a program name with args.
3451 set dummy gcc; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 if test -n "$ac_ct_CC"; then
3458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3462 do
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467 ac_cv_prog_ac_ct_CC="gcc"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 break 2
3470 fi
3471 done
3472 done
3473 IFS=$as_save_IFS
3474
3475 fi
3476 fi
3477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478 if test -n "$ac_ct_CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3480 $as_echo "$ac_ct_CC" >&6; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3484 fi
3485
3486 if test "x$ac_ct_CC" = x; then
3487 CC=""
3488 else
3489 case $cross_compiling:$ac_tool_warned in
3490 yes:)
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3493 ac_tool_warned=yes ;;
3494 esac
3495 CC=$ac_ct_CC
3496 fi
3497 else
3498 CC="$ac_cv_prog_CC"
3499 fi
3500
3501 if test -z "$CC"; then
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}cc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_CC+:} false; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_CC="${ac_tool_prefix}cc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 break 2
3523 fi
3524 done
3525 done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 fi
3538
3539
3540 fi
3541 fi
3542 if test -z "$CC"; then
3543 # Extract the first word of "cc", so it can be a program name with args.
3544 set dummy cc; 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 ac_prog_rejected=no
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3562 ac_prog_rejected=yes
3563 continue
3564 fi
3565 ac_cv_prog_CC="cc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 break 2
3568 fi
3569 done
3570 done
3571 IFS=$as_save_IFS
3572
3573 if test $ac_prog_rejected = yes; then
3574 # We found a bogon in the path, so make sure we never use it.
3575 set dummy $ac_cv_prog_CC
3576 shift
3577 if test $# != 0; then
3578 # We chose a different compiler from the bogus one.
3579 # However, it has the same basename, so the bogon will be chosen
3580 # first if we set CC to just the basename; use the full file name.
3581 shift
3582 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3583 fi
3584 fi
3585 fi
3586 fi
3587 CC=$ac_cv_prog_CC
3588 if test -n "$CC"; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3590 $as_echo "$CC" >&6; }
3591 else
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594 fi
3595
3596
3597 fi
3598 if test -z "$CC"; then
3599 if test -n "$ac_tool_prefix"; then
3600 for ac_prog in cl.exe
3601 do
3602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_CC+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3622 fi
3623 done
3624 done
3625 IFS=$as_save_IFS
3626
3627 fi
3628 fi
3629 CC=$ac_cv_prog_CC
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3633 else
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3636 fi
3637
3638
3639 test -n "$CC" && break
3640 done
3641 fi
3642 if test -z "$CC"; then
3643 ac_ct_CC=$CC
3644 for ac_prog in cl.exe
3645 do
3646 # Extract the first word of "$ac_prog", so it can be a program name with args.
3647 set dummy $ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 if test -n "$ac_ct_CC"; then
3654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_ac_ct_CC="$ac_prog"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667 done
3668 done
3669 IFS=$as_save_IFS
3670
3671 fi
3672 fi
3673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3674 if test -n "$ac_ct_CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3676 $as_echo "$ac_ct_CC" >&6; }
3677 else
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3680 fi
3681
3682
3683 test -n "$ac_ct_CC" && break
3684 done
3685
3686 if test "x$ac_ct_CC" = x; then
3687 CC=""
3688 else
3689 case $cross_compiling:$ac_tool_warned in
3690 yes:)
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3693 ac_tool_warned=yes ;;
3694 esac
3695 CC=$ac_ct_CC
3696 fi
3697 fi
3698
3699 fi
3700
3701
3702 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 as_fn_error $? "no acceptable C compiler found in \$PATH
3705 See \`config.log' for more details" "$LINENO" 5; }
3706
3707 # Provide some information about the compiler.
3708 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3709 set X $ac_compile
3710 ac_compiler=$2
3711 for ac_option in --version -v -V -qversion; do
3712 { { ac_try="$ac_compiler $ac_option >&5"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718 $as_echo "$ac_try_echo"; } >&5
3719 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3720 ac_status=$?
3721 if test -s conftest.err; then
3722 sed '10a\
3723 ... rest of stderr output deleted ...
3724 10q' conftest.err >conftest.er1
3725 cat conftest.er1 >&5
3726 fi
3727 rm -f conftest.er1 conftest.err
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }
3730 done
3731
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734
3735 int
3736 main ()
3737 {
3738
3739 ;
3740 return 0;
3741 }
3742 _ACEOF
3743 ac_clean_files_save=$ac_clean_files
3744 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3745 # Try to create an executable without -o first, disregard a.out.
3746 # It will help us diagnose broken compilers, and finding out an intuition
3747 # of exeext.
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3749 $as_echo_n "checking whether the C compiler works... " >&6; }
3750 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3751
3752 # The possible output files:
3753 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3754
3755 ac_rmfiles=
3756 for ac_file in $ac_files
3757 do
3758 case $ac_file in
3759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3760 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3761 esac
3762 done
3763 rm -f $ac_rmfiles
3764
3765 if { { ac_try="$ac_link_default"
3766 case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772 (eval "$ac_link_default") 2>&5
3773 ac_status=$?
3774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }; then :
3776 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3777 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3778 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3779 # so that the user can short-circuit this test for compilers unknown to
3780 # Autoconf.
3781 for ac_file in $ac_files ''
3782 do
3783 test -f "$ac_file" || continue
3784 case $ac_file in
3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3786 ;;
3787 [ab].out )
3788 # We found the default executable, but exeext='' is most
3789 # certainly right.
3790 break;;
3791 *.* )
3792 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3793 then :; else
3794 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3795 fi
3796 # We set ac_cv_exeext here because the later test for it is not
3797 # safe: cross compilers may not add the suffix if given an `-o'
3798 # argument, so we may need to know it at that point already.
3799 # Even if this section looks crufty: it has the advantage of
3800 # actually working.
3801 break;;
3802 * )
3803 break;;
3804 esac
3805 done
3806 test "$ac_cv_exeext" = no && ac_cv_exeext=
3807
3808 else
3809 ac_file=''
3810 fi
3811 if test -z "$ac_file"; then :
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3814 $as_echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error 77 "C compiler cannot create executables
3820 See \`config.log' for more details" "$LINENO" 5; }
3821 else
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3823 $as_echo "yes" >&6; }
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3826 $as_echo_n "checking for C compiler default output file name... " >&6; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3828 $as_echo "$ac_file" >&6; }
3829 ac_exeext=$ac_cv_exeext
3830
3831 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3832 ac_clean_files=$ac_clean_files_save
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3834 $as_echo_n "checking for suffix of executables... " >&6; }
3835 if { { ac_try="$ac_link"
3836 case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842 (eval "$ac_link") 2>&5
3843 ac_status=$?
3844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845 test $ac_status = 0; }; then :
3846 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3847 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3848 # work properly (i.e., refer to `conftest.exe'), while it won't with
3849 # `rm'.
3850 for ac_file in conftest.exe conftest conftest.*; do
3851 test -f "$ac_file" || continue
3852 case $ac_file in
3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3854 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3855 break;;
3856 * ) break;;
3857 esac
3858 done
3859 else
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3863 See \`config.log' for more details" "$LINENO" 5; }
3864 fi
3865 rm -f conftest conftest$ac_cv_exeext
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3867 $as_echo "$ac_cv_exeext" >&6; }
3868
3869 rm -f conftest.$ac_ext
3870 EXEEXT=$ac_cv_exeext
3871 ac_exeext=$EXEEXT
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3874 #include <stdio.h>
3875 int
3876 main ()
3877 {
3878 FILE *f = fopen ("conftest.out", "w");
3879 return ferror (f) || fclose (f) != 0;
3880
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 ac_clean_files="$ac_clean_files conftest.out"
3886 # Check that the compiler produces executables we can run. If not, either
3887 # the compiler is broken, or we cross compile.
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3889 $as_echo_n "checking whether we are cross compiling... " >&6; }
3890 if test "$cross_compiling" != yes; then
3891 { { ac_try="$ac_link"
3892 case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_link") 2>&5
3899 ac_status=$?
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }
3902 if { ac_try='./conftest$ac_cv_exeext'
3903 { { case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_try") 2>&5
3910 ac_status=$?
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }; }; then
3913 cross_compiling=no
3914 else
3915 if test "$cross_compiling" = maybe; then
3916 cross_compiling=yes
3917 else
3918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 as_fn_error $? "cannot run C compiled programs.
3921 If you meant to cross compile, use \`--host'.
3922 See \`config.log' for more details" "$LINENO" 5; }
3923 fi
3924 fi
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3927 $as_echo "$cross_compiling" >&6; }
3928
3929 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3930 ac_clean_files=$ac_clean_files_save
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3932 $as_echo_n "checking for suffix of object files... " >&6; }
3933 if ${ac_cv_objext+:} false; then :
3934 $as_echo_n "(cached) " >&6
3935 else
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3938
3939 int
3940 main ()
3941 {
3942
3943 ;
3944 return 0;
3945 }
3946 _ACEOF
3947 rm -f conftest.o conftest.obj
3948 if { { ac_try="$ac_compile"
3949 case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955 (eval "$ac_compile") 2>&5
3956 ac_status=$?
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }; then :
3959 for ac_file in conftest.o conftest.obj conftest.*; do
3960 test -f "$ac_file" || continue;
3961 case $ac_file in
3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3963 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3964 break;;
3965 esac
3966 done
3967 else
3968 $as_echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3970
3971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973 as_fn_error $? "cannot compute suffix of object files: cannot compile
3974 See \`config.log' for more details" "$LINENO" 5; }
3975 fi
3976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3979 $as_echo "$ac_cv_objext" >&6; }
3980 OBJEXT=$ac_cv_objext
3981 ac_objext=$OBJEXT
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3984 if ${ac_cv_c_compiler_gnu+:} false; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3989
3990 int
3991 main ()
3992 {
3993 #ifndef __GNUC__
3994 choke me
3995 #endif
3996
3997 ;
3998 return 0;
3999 }
4000 _ACEOF
4001 if ac_fn_c_try_compile "$LINENO"; then :
4002 ac_compiler_gnu=yes
4003 else
4004 ac_compiler_gnu=no
4005 fi
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4008
4009 fi
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4011 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4012 if test $ac_compiler_gnu = yes; then
4013 GCC=yes
4014 else
4015 GCC=
4016 fi
4017 ac_test_CFLAGS=${CFLAGS+set}
4018 ac_save_CFLAGS=$CFLAGS
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4020 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4021 if ${ac_cv_prog_cc_g+:} false; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 ac_save_c_werror_flag=$ac_c_werror_flag
4025 ac_c_werror_flag=yes
4026 ac_cv_prog_cc_g=no
4027 CFLAGS="-g"
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4030
4031 int
4032 main ()
4033 {
4034
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 if ac_fn_c_try_compile "$LINENO"; then :
4040 ac_cv_prog_cc_g=yes
4041 else
4042 CFLAGS=""
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045
4046 int
4047 main ()
4048 {
4049
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055
4056 else
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4058 CFLAGS="-g"
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061
4062 int
4063 main ()
4064 {
4065
4066 ;
4067 return 0;
4068 }
4069 _ACEOF
4070 if ac_fn_c_try_compile "$LINENO"; then :
4071 ac_cv_prog_cc_g=yes
4072 fi
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 fi
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 fi
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_c_werror_flag=$ac_save_c_werror_flag
4079 fi
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4081 $as_echo "$ac_cv_prog_cc_g" >&6; }
4082 if test "$ac_test_CFLAGS" = set; then
4083 CFLAGS=$ac_save_CFLAGS
4084 elif test $ac_cv_prog_cc_g = yes; then
4085 if test "$GCC" = yes; then
4086 CFLAGS="-g -O2"
4087 else
4088 CFLAGS="-g"
4089 fi
4090 else
4091 if test "$GCC" = yes; then
4092 CFLAGS="-O2"
4093 else
4094 CFLAGS=
4095 fi
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4098 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4099 if ${ac_cv_prog_cc_c89+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 ac_cv_prog_cc_c89=no
4103 ac_save_CC=$CC
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #include <stdarg.h>
4107 #include <stdio.h>
4108 struct stat;
4109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4110 struct buf { int x; };
4111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4112 static char *e (p, i)
4113 char **p;
4114 int i;
4115 {
4116 return p[i];
4117 }
4118 static char *f (char * (*g) (char **, int), char **p, ...)
4119 {
4120 char *s;
4121 va_list v;
4122 va_start (v,p);
4123 s = g (p, va_arg (v,int));
4124 va_end (v);
4125 return s;
4126 }
4127
4128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4129 function prototypes and stuff, but not '\xHH' hex character constants.
4130 These don't provoke an error unfortunately, instead are silently treated
4131 as 'x'. The following induces an error, until -std is added to get
4132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4133 array size at least. It's necessary to write '\x00'==0 to get something
4134 that's true only with -std. */
4135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4136
4137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4138 inside strings and character constants. */
4139 #define FOO(x) 'x'
4140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4141
4142 int test (int i, double x);
4143 struct s1 {int (*f) (int a);};
4144 struct s2 {int (*f) (double a);};
4145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4146 int argc;
4147 char **argv;
4148 int
4149 main ()
4150 {
4151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4152 ;
4153 return 0;
4154 }
4155 _ACEOF
4156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4158 do
4159 CC="$ac_save_CC $ac_arg"
4160 if ac_fn_c_try_compile "$LINENO"; then :
4161 ac_cv_prog_cc_c89=$ac_arg
4162 fi
4163 rm -f core conftest.err conftest.$ac_objext
4164 test "x$ac_cv_prog_cc_c89" != "xno" && break
4165 done
4166 rm -f conftest.$ac_ext
4167 CC=$ac_save_CC
4168
4169 fi
4170 # AC_CACHE_VAL
4171 case "x$ac_cv_prog_cc_c89" in
4172 x)
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4174 $as_echo "none needed" >&6; } ;;
4175 xno)
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177 $as_echo "unsupported" >&6; } ;;
4178 *)
4179 CC="$CC $ac_cv_prog_cc_c89"
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4182 esac
4183 if test "x$ac_cv_prog_cc_c89" != xno; then :
4184
4185 fi
4186
4187 ac_ext=c
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4199 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4200 if ${am_cv_prog_cc_c_o+:} false; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205
4206 int
4207 main ()
4208 {
4209
4210 ;
4211 return 0;
4212 }
4213 _ACEOF
4214 # Make sure it works both with $CC and with simple cc.
4215 # Following AC_PROG_CC_C_O, we do the test twice because some
4216 # compilers refuse to overwrite an existing .o file with -o,
4217 # though they will create one.
4218 am_cv_prog_cc_c_o=yes
4219 for am_i in 1 2; do
4220 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4221 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } \
4225 && test -f conftest2.$ac_objext; then
4226 : OK
4227 else
4228 am_cv_prog_cc_c_o=no
4229 break
4230 fi
4231 done
4232 rm -f core conftest*
4233 unset am_i
4234 fi
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4236 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4237 if test "$am_cv_prog_cc_c_o" != yes; then
4238 # Losing compiler, so override with the script.
4239 # FIXME: It is wrong to rewrite CC.
4240 # But if we don't then we get into trouble of one sort or another.
4241 # A longer-term fix would be to have automake use am__CC in this case,
4242 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4243 CC="$am_aux_dir/compile $CC"
4244 fi
4245 ac_ext=c
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250
4251
4252 depcc="$CC" am_compiler_list=
4253
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4255 $as_echo_n "checking dependency style of $depcc... " >&6; }
4256 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4260 # We make a subdir and do the tests there. Otherwise we can end up
4261 # making bogus files that we don't know about and never remove. For
4262 # instance it was reported that on HP-UX the gcc test will end up
4263 # making a dummy file named 'D' -- because '-MD' means "put the output
4264 # in D".
4265 rm -rf conftest.dir
4266 mkdir conftest.dir
4267 # Copy depcomp to subdir because otherwise we won't find it if we're
4268 # using a relative directory.
4269 cp "$am_depcomp" conftest.dir
4270 cd conftest.dir
4271 # We will build objects and dependencies in a subdirectory because
4272 # it helps to detect inapplicable dependency modes. For instance
4273 # both Tru64's cc and ICC support -MD to output dependencies as a
4274 # side effect of compilation, but ICC will put the dependencies in
4275 # the current directory while Tru64 will put them in the object
4276 # directory.
4277 mkdir sub
4278
4279 am_cv_CC_dependencies_compiler_type=none
4280 if test "$am_compiler_list" = ""; then
4281 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4282 fi
4283 am__universal=false
4284 case " $depcc " in #(
4285 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4286 esac
4287
4288 for depmode in $am_compiler_list; do
4289 # Setup a source with many dependencies, because some compilers
4290 # like to wrap large dependency lists on column 80 (with \), and
4291 # we should not choose a depcomp mode which is confused by this.
4292 #
4293 # We need to recreate these files for each test, as the compiler may
4294 # overwrite some of them when testing with obscure command lines.
4295 # This happens at least with the AIX C compiler.
4296 : > sub/conftest.c
4297 for i in 1 2 3 4 5 6; do
4298 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4299 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4300 # Solaris 10 /bin/sh.
4301 echo '/* dummy */' > sub/conftst$i.h
4302 done
4303 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4304
4305 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4306 # mode. It turns out that the SunPro C++ compiler does not properly
4307 # handle '-M -o', and we need to detect this. Also, some Intel
4308 # versions had trouble with output in subdirs.
4309 am__obj=sub/conftest.${OBJEXT-o}
4310 am__minus_obj="-o $am__obj"
4311 case $depmode in
4312 gcc)
4313 # This depmode causes a compiler race in universal mode.
4314 test "$am__universal" = false || continue
4315 ;;
4316 nosideeffect)
4317 # After this tag, mechanisms are not by side-effect, so they'll
4318 # only be used when explicitly requested.
4319 if test "x$enable_dependency_tracking" = xyes; then
4320 continue
4321 else
4322 break
4323 fi
4324 ;;
4325 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4326 # This compiler won't grok '-c -o', but also, the minuso test has
4327 # not run yet. These depmodes are late enough in the game, and
4328 # so weak that their functioning should not be impacted.
4329 am__obj=conftest.${OBJEXT-o}
4330 am__minus_obj=
4331 ;;
4332 none) break ;;
4333 esac
4334 if depmode=$depmode \
4335 source=sub/conftest.c object=$am__obj \
4336 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4337 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4338 >/dev/null 2>conftest.err &&
4339 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4340 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4341 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4342 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4343 # icc doesn't choke on unknown options, it will just issue warnings
4344 # or remarks (even with -Werror). So we grep stderr for any message
4345 # that says an option was ignored or not supported.
4346 # When given -MP, icc 7.0 and 7.1 complain thusly:
4347 # icc: Command line warning: ignoring option '-M'; no argument required
4348 # The diagnosis changed in icc 8.0:
4349 # icc: Command line remark: option '-MP' not supported
4350 if (grep 'ignoring option' conftest.err ||
4351 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4352 am_cv_CC_dependencies_compiler_type=$depmode
4353 break
4354 fi
4355 fi
4356 done
4357
4358 cd ..
4359 rm -rf conftest.dir
4360 else
4361 am_cv_CC_dependencies_compiler_type=none
4362 fi
4363
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4366 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4367 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4368
4369 if
4370 test "x$enable_dependency_tracking" != xno \
4371 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4372 am__fastdepCC_TRUE=
4373 am__fastdepCC_FALSE='#'
4374 else
4375 am__fastdepCC_TRUE='#'
4376 am__fastdepCC_FALSE=
4377 fi
4378
4379
4380
4381 ac_ext=c
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4387 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4388 # On Suns, sometimes $CPP names a directory.
4389 if test -n "$CPP" && test -d "$CPP"; then
4390 CPP=
4391 fi
4392 if test -z "$CPP"; then
4393 if ${ac_cv_prog_CPP+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 # Double quotes because CPP needs to be expanded
4397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4398 do
4399 ac_preproc_ok=false
4400 for ac_c_preproc_warn_flag in '' yes
4401 do
4402 # Use a header file that comes with gcc, so configuring glibc
4403 # with a fresh cross-compiler works.
4404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4405 # <limits.h> exists even on freestanding compilers.
4406 # On the NeXT, cc -E runs the code through the compiler's parser,
4407 # not just through cpp. "Syntax error" is here to catch this case.
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410 #ifdef __STDC__
4411 # include <limits.h>
4412 #else
4413 # include <assert.h>
4414 #endif
4415 Syntax error
4416 _ACEOF
4417 if ac_fn_c_try_cpp "$LINENO"; then :
4418
4419 else
4420 # Broken: fails on valid input.
4421 continue
4422 fi
4423 rm -f conftest.err conftest.i conftest.$ac_ext
4424
4425 # OK, works on sane cases. Now check whether nonexistent headers
4426 # can be detected and how.
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429 #include <ac_nonexistent.h>
4430 _ACEOF
4431 if ac_fn_c_try_cpp "$LINENO"; then :
4432 # Broken: success on invalid input.
4433 continue
4434 else
4435 # Passes both tests.
4436 ac_preproc_ok=:
4437 break
4438 fi
4439 rm -f conftest.err conftest.i conftest.$ac_ext
4440
4441 done
4442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4443 rm -f conftest.i conftest.err conftest.$ac_ext
4444 if $ac_preproc_ok; then :
4445 break
4446 fi
4447
4448 done
4449 ac_cv_prog_CPP=$CPP
4450
4451 fi
4452 CPP=$ac_cv_prog_CPP
4453 else
4454 ac_cv_prog_CPP=$CPP
4455 fi
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4457 $as_echo "$CPP" >&6; }
4458 ac_preproc_ok=false
4459 for ac_c_preproc_warn_flag in '' yes
4460 do
4461 # Use a header file that comes with gcc, so configuring glibc
4462 # with a fresh cross-compiler works.
4463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4464 # <limits.h> exists even on freestanding compilers.
4465 # On the NeXT, cc -E runs the code through the compiler's parser,
4466 # not just through cpp. "Syntax error" is here to catch this case.
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4469 #ifdef __STDC__
4470 # include <limits.h>
4471 #else
4472 # include <assert.h>
4473 #endif
4474 Syntax error
4475 _ACEOF
4476 if ac_fn_c_try_cpp "$LINENO"; then :
4477
4478 else
4479 # Broken: fails on valid input.
4480 continue
4481 fi
4482 rm -f conftest.err conftest.i conftest.$ac_ext
4483
4484 # OK, works on sane cases. Now check whether nonexistent headers
4485 # can be detected and how.
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4488 #include <ac_nonexistent.h>
4489 _ACEOF
4490 if ac_fn_c_try_cpp "$LINENO"; then :
4491 # Broken: success on invalid input.
4492 continue
4493 else
4494 # Passes both tests.
4495 ac_preproc_ok=:
4496 break
4497 fi
4498 rm -f conftest.err conftest.i conftest.$ac_ext
4499
4500 done
4501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4502 rm -f conftest.i conftest.err conftest.$ac_ext
4503 if $ac_preproc_ok; then :
4504
4505 else
4506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4508 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4509 See \`config.log' for more details" "$LINENO" 5; }
4510 fi
4511
4512 ac_ext=c
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4520 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4521 if ${ac_cv_path_GREP+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -z "$GREP"; then
4525 ac_path_GREP_found=false
4526 # Loop through the user's path and test for each of PROGNAME-LIST
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4529 do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_prog in grep ggrep; do
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4535 as_fn_executable_p "$ac_path_GREP" || continue
4536 # Check for GNU ac_path_GREP and select it if it is found.
4537 # Check for GNU $ac_path_GREP
4538 case `"$ac_path_GREP" --version 2>&1` in
4539 *GNU*)
4540 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4541 *)
4542 ac_count=0
4543 $as_echo_n 0123456789 >"conftest.in"
4544 while :
4545 do
4546 cat "conftest.in" "conftest.in" >"conftest.tmp"
4547 mv "conftest.tmp" "conftest.in"
4548 cp "conftest.in" "conftest.nl"
4549 $as_echo 'GREP' >> "conftest.nl"
4550 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4552 as_fn_arith $ac_count + 1 && ac_count=$as_val
4553 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4554 # Best one so far, save it but keep looking for a better one
4555 ac_cv_path_GREP="$ac_path_GREP"
4556 ac_path_GREP_max=$ac_count
4557 fi
4558 # 10*(2^10) chars as input seems more than enough
4559 test $ac_count -gt 10 && break
4560 done
4561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4562 esac
4563
4564 $ac_path_GREP_found && break 3
4565 done
4566 done
4567 done
4568 IFS=$as_save_IFS
4569 if test -z "$ac_cv_path_GREP"; then
4570 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4571 fi
4572 else
4573 ac_cv_path_GREP=$GREP
4574 fi
4575
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4578 $as_echo "$ac_cv_path_GREP" >&6; }
4579 GREP="$ac_cv_path_GREP"
4580
4581
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4583 $as_echo_n "checking for egrep... " >&6; }
4584 if ${ac_cv_path_EGREP+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4588 then ac_cv_path_EGREP="$GREP -E"
4589 else
4590 if test -z "$EGREP"; then
4591 ac_path_EGREP_found=false
4592 # Loop through the user's path and test for each of PROGNAME-LIST
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4595 do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_prog in egrep; do
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4601 as_fn_executable_p "$ac_path_EGREP" || continue
4602 # Check for GNU ac_path_EGREP and select it if it is found.
4603 # Check for GNU $ac_path_EGREP
4604 case `"$ac_path_EGREP" --version 2>&1` in
4605 *GNU*)
4606 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4607 *)
4608 ac_count=0
4609 $as_echo_n 0123456789 >"conftest.in"
4610 while :
4611 do
4612 cat "conftest.in" "conftest.in" >"conftest.tmp"
4613 mv "conftest.tmp" "conftest.in"
4614 cp "conftest.in" "conftest.nl"
4615 $as_echo 'EGREP' >> "conftest.nl"
4616 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618 as_fn_arith $ac_count + 1 && ac_count=$as_val
4619 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4620 # Best one so far, save it but keep looking for a better one
4621 ac_cv_path_EGREP="$ac_path_EGREP"
4622 ac_path_EGREP_max=$ac_count
4623 fi
4624 # 10*(2^10) chars as input seems more than enough
4625 test $ac_count -gt 10 && break
4626 done
4627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4628 esac
4629
4630 $ac_path_EGREP_found && break 3
4631 done
4632 done
4633 done
4634 IFS=$as_save_IFS
4635 if test -z "$ac_cv_path_EGREP"; then
4636 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4637 fi
4638 else
4639 ac_cv_path_EGREP=$EGREP
4640 fi
4641
4642 fi
4643 fi
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4645 $as_echo "$ac_cv_path_EGREP" >&6; }
4646 EGREP="$ac_cv_path_EGREP"
4647
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4650 $as_echo_n "checking for ANSI C header files... " >&6; }
4651 if ${ac_cv_header_stdc+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 #include <stdlib.h>
4657 #include <stdarg.h>
4658 #include <string.h>
4659 #include <float.h>
4660
4661 int
4662 main ()
4663 {
4664
4665 ;
4666 return 0;
4667 }
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670 ac_cv_header_stdc=yes
4671 else
4672 ac_cv_header_stdc=no
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675
4676 if test $ac_cv_header_stdc = yes; then
4677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 #include <string.h>
4681
4682 _ACEOF
4683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4684 $EGREP "memchr" >/dev/null 2>&1; then :
4685
4686 else
4687 ac_cv_header_stdc=no
4688 fi
4689 rm -f conftest*
4690
4691 fi
4692
4693 if test $ac_cv_header_stdc = yes; then
4694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <stdlib.h>
4698
4699 _ACEOF
4700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4701 $EGREP "free" >/dev/null 2>&1; then :
4702
4703 else
4704 ac_cv_header_stdc=no
4705 fi
4706 rm -f conftest*
4707
4708 fi
4709
4710 if test $ac_cv_header_stdc = yes; then
4711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4712 if test "$cross_compiling" = yes; then :
4713 :
4714 else
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717 #include <ctype.h>
4718 #include <stdlib.h>
4719 #if ((' ' & 0x0FF) == 0x020)
4720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4722 #else
4723 # define ISLOWER(c) \
4724 (('a' <= (c) && (c) <= 'i') \
4725 || ('j' <= (c) && (c) <= 'r') \
4726 || ('s' <= (c) && (c) <= 'z'))
4727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4728 #endif
4729
4730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4731 int
4732 main ()
4733 {
4734 int i;
4735 for (i = 0; i < 256; i++)
4736 if (XOR (islower (i), ISLOWER (i))
4737 || toupper (i) != TOUPPER (i))
4738 return 2;
4739 return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_c_try_run "$LINENO"; then :
4743
4744 else
4745 ac_cv_header_stdc=no
4746 fi
4747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4748 conftest.$ac_objext conftest.beam conftest.$ac_ext
4749 fi
4750
4751 fi
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4754 $as_echo "$ac_cv_header_stdc" >&6; }
4755 if test $ac_cv_header_stdc = yes; then
4756
4757 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4758
4759 fi
4760
4761 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4762 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4763 inttypes.h stdint.h unistd.h
4764 do :
4765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4766 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4767 "
4768 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4769 cat >>confdefs.h <<_ACEOF
4770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771 _ACEOF
4772
4773 fi
4774
4775 done
4776
4777
4778
4779 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4780 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4781 MINIX=yes
4782 else
4783 MINIX=
4784 fi
4785
4786
4787 if test "$MINIX" = yes; then
4788
4789 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4790
4791
4792 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4793
4794
4795 $as_echo "#define _MINIX 1" >>confdefs.h
4796
4797 fi
4798
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4801 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4802 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4807
4808 # define __EXTENSIONS__ 1
4809 $ac_includes_default
4810 int
4811 main ()
4812 {
4813
4814 ;
4815 return 0;
4816 }
4817 _ACEOF
4818 if ac_fn_c_try_compile "$LINENO"; then :
4819 ac_cv_safe_to_define___extensions__=yes
4820 else
4821 ac_cv_safe_to_define___extensions__=no
4822 fi
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4826 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4827 test $ac_cv_safe_to_define___extensions__ = yes &&
4828 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4829
4830 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4831
4832 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4833
4834 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4835
4836 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4837
4838
4839
4840
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4842 $as_echo_n "checking whether ln -s works... " >&6; }
4843 LN_S=$as_ln_s
4844 if test "$LN_S" = "ln -s"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4846 $as_echo "yes" >&6; }
4847 else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4849 $as_echo "no, using $LN_S" >&6; }
4850 fi
4851
4852 ac_ext=c
4853 ac_cpp='$CPP $CPPFLAGS'
4854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857 if test -n "$ac_tool_prefix"; then
4858 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4859 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if ${ac_cv_prog_CC+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 if test -n "$CC"; then
4866 ac_cv_prog_CC="$CC" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 fi
4884 fi
4885 CC=$ac_cv_prog_CC
4886 if test -n "$CC"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4888 $as_echo "$CC" >&6; }
4889 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4892 fi
4893
4894
4895 fi
4896 if test -z "$ac_cv_prog_CC"; then
4897 ac_ct_CC=$CC
4898 # Extract the first word of "gcc", so it can be a program name with args.
4899 set dummy gcc; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 if test -n "$ac_ct_CC"; then
4906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 ac_cv_prog_ac_ct_CC="gcc"
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919 done
4920 done
4921 IFS=$as_save_IFS
4922
4923 fi
4924 fi
4925 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4926 if test -n "$ac_ct_CC"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4928 $as_echo "$ac_ct_CC" >&6; }
4929 else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4932 fi
4933
4934 if test "x$ac_ct_CC" = x; then
4935 CC=""
4936 else
4937 case $cross_compiling:$ac_tool_warned in
4938 yes:)
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4941 ac_tool_warned=yes ;;
4942 esac
4943 CC=$ac_ct_CC
4944 fi
4945 else
4946 CC="$ac_cv_prog_CC"
4947 fi
4948
4949 if test -z "$CC"; then
4950 if test -n "$ac_tool_prefix"; then
4951 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4952 set dummy ${ac_tool_prefix}cc; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_prog_CC+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test -n "$CC"; then
4959 ac_cv_prog_CC="$CC" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_CC="${ac_tool_prefix}cc"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972 done
4973 done
4974 IFS=$as_save_IFS
4975
4976 fi
4977 fi
4978 CC=$ac_cv_prog_CC
4979 if test -n "$CC"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4981 $as_echo "$CC" >&6; }
4982 else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986
4987
4988 fi
4989 fi
4990 if test -z "$CC"; then
4991 # Extract the first word of "cc", so it can be a program name with args.
4992 set dummy cc; 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 ac_prog_rejected=no
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5010 ac_prog_rejected=yes
5011 continue
5012 fi
5013 ac_cv_prog_CC="cc"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5016 fi
5017 done
5018 done
5019 IFS=$as_save_IFS
5020
5021 if test $ac_prog_rejected = yes; then
5022 # We found a bogon in the path, so make sure we never use it.
5023 set dummy $ac_cv_prog_CC
5024 shift
5025 if test $# != 0; then
5026 # We chose a different compiler from the bogus one.
5027 # However, it has the same basename, so the bogon will be chosen
5028 # first if we set CC to just the basename; use the full file name.
5029 shift
5030 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5031 fi
5032 fi
5033 fi
5034 fi
5035 CC=$ac_cv_prog_CC
5036 if test -n "$CC"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5038 $as_echo "$CC" >&6; }
5039 else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043
5044
5045 fi
5046 if test -z "$CC"; then
5047 if test -n "$ac_tool_prefix"; then
5048 for ac_prog in cl.exe
5049 do
5050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_CC+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if test -n "$CC"; then
5058 ac_cv_prog_CC="$CC" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071 done
5072 done
5073 IFS=$as_save_IFS
5074
5075 fi
5076 fi
5077 CC=$ac_cv_prog_CC
5078 if test -n "$CC"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5080 $as_echo "$CC" >&6; }
5081 else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5084 fi
5085
5086
5087 test -n "$CC" && break
5088 done
5089 fi
5090 if test -z "$CC"; then
5091 ac_ct_CC=$CC
5092 for ac_prog in cl.exe
5093 do
5094 # Extract the first word of "$ac_prog", so it can be a program name with args.
5095 set dummy $ac_prog; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 if test -n "$ac_ct_CC"; then
5102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_ac_ct_CC="$ac_prog"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5114 fi
5115 done
5116 done
5117 IFS=$as_save_IFS
5118
5119 fi
5120 fi
5121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5122 if test -n "$ac_ct_CC"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5124 $as_echo "$ac_ct_CC" >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 fi
5129
5130
5131 test -n "$ac_ct_CC" && break
5132 done
5133
5134 if test "x$ac_ct_CC" = x; then
5135 CC=""
5136 else
5137 case $cross_compiling:$ac_tool_warned in
5138 yes:)
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5141 ac_tool_warned=yes ;;
5142 esac
5143 CC=$ac_ct_CC
5144 fi
5145 fi
5146
5147 fi
5148
5149
5150 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5152 as_fn_error $? "no acceptable C compiler found in \$PATH
5153 See \`config.log' for more details" "$LINENO" 5; }
5154
5155 # Provide some information about the compiler.
5156 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5157 set X $ac_compile
5158 ac_compiler=$2
5159 for ac_option in --version -v -V -qversion; do
5160 { { ac_try="$ac_compiler $ac_option >&5"
5161 case "(($ac_try" in
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5164 esac
5165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5166 $as_echo "$ac_try_echo"; } >&5
5167 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5168 ac_status=$?
5169 if test -s conftest.err; then
5170 sed '10a\
5171 ... rest of stderr output deleted ...
5172 10q' conftest.err >conftest.er1
5173 cat conftest.er1 >&5
5174 fi
5175 rm -f conftest.er1 conftest.err
5176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5177 test $ac_status = 0; }
5178 done
5179
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5181 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5182 if ${ac_cv_c_compiler_gnu+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187
5188 int
5189 main ()
5190 {
5191 #ifndef __GNUC__
5192 choke me
5193 #endif
5194
5195 ;
5196 return 0;
5197 }
5198 _ACEOF
5199 if ac_fn_c_try_compile "$LINENO"; then :
5200 ac_compiler_gnu=yes
5201 else
5202 ac_compiler_gnu=no
5203 fi
5204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5206
5207 fi
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5209 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5210 if test $ac_compiler_gnu = yes; then
5211 GCC=yes
5212 else
5213 GCC=
5214 fi
5215 ac_test_CFLAGS=${CFLAGS+set}
5216 ac_save_CFLAGS=$CFLAGS
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5218 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5219 if ${ac_cv_prog_cc_g+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 ac_save_c_werror_flag=$ac_c_werror_flag
5223 ac_c_werror_flag=yes
5224 ac_cv_prog_cc_g=no
5225 CFLAGS="-g"
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228
5229 int
5230 main ()
5231 {
5232
5233 ;
5234 return 0;
5235 }
5236 _ACEOF
5237 if ac_fn_c_try_compile "$LINENO"; then :
5238 ac_cv_prog_cc_g=yes
5239 else
5240 CFLAGS=""
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5243
5244 int
5245 main ()
5246 {
5247
5248 ;
5249 return 0;
5250 }
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253
5254 else
5255 ac_c_werror_flag=$ac_save_c_werror_flag
5256 CFLAGS="-g"
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259
5260 int
5261 main ()
5262 {
5263
5264 ;
5265 return 0;
5266 }
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"; then :
5269 ac_cv_prog_cc_g=yes
5270 fi
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5272 fi
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 fi
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 ac_c_werror_flag=$ac_save_c_werror_flag
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5279 $as_echo "$ac_cv_prog_cc_g" >&6; }
5280 if test "$ac_test_CFLAGS" = set; then
5281 CFLAGS=$ac_save_CFLAGS
5282 elif test $ac_cv_prog_cc_g = yes; then
5283 if test "$GCC" = yes; then
5284 CFLAGS="-g -O2"
5285 else
5286 CFLAGS="-g"
5287 fi
5288 else
5289 if test "$GCC" = yes; then
5290 CFLAGS="-O2"
5291 else
5292 CFLAGS=
5293 fi
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5296 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5297 if ${ac_cv_prog_cc_c89+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 ac_cv_prog_cc_c89=no
5301 ac_save_CC=$CC
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 #include <stdarg.h>
5305 #include <stdio.h>
5306 struct stat;
5307 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5308 struct buf { int x; };
5309 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5310 static char *e (p, i)
5311 char **p;
5312 int i;
5313 {
5314 return p[i];
5315 }
5316 static char *f (char * (*g) (char **, int), char **p, ...)
5317 {
5318 char *s;
5319 va_list v;
5320 va_start (v,p);
5321 s = g (p, va_arg (v,int));
5322 va_end (v);
5323 return s;
5324 }
5325
5326 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5327 function prototypes and stuff, but not '\xHH' hex character constants.
5328 These don't provoke an error unfortunately, instead are silently treated
5329 as 'x'. The following induces an error, until -std is added to get
5330 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5331 array size at least. It's necessary to write '\x00'==0 to get something
5332 that's true only with -std. */
5333 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5334
5335 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5336 inside strings and character constants. */
5337 #define FOO(x) 'x'
5338 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5339
5340 int test (int i, double x);
5341 struct s1 {int (*f) (int a);};
5342 struct s2 {int (*f) (double a);};
5343 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5344 int argc;
5345 char **argv;
5346 int
5347 main ()
5348 {
5349 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5350 ;
5351 return 0;
5352 }
5353 _ACEOF
5354 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5355 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5356 do
5357 CC="$ac_save_CC $ac_arg"
5358 if ac_fn_c_try_compile "$LINENO"; then :
5359 ac_cv_prog_cc_c89=$ac_arg
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext
5362 test "x$ac_cv_prog_cc_c89" != "xno" && break
5363 done
5364 rm -f conftest.$ac_ext
5365 CC=$ac_save_CC
5366
5367 fi
5368 # AC_CACHE_VAL
5369 case "x$ac_cv_prog_cc_c89" in
5370 x)
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5372 $as_echo "none needed" >&6; } ;;
5373 xno)
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5375 $as_echo "unsupported" >&6; } ;;
5376 *)
5377 CC="$CC $ac_cv_prog_cc_c89"
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5379 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5380 esac
5381 if test "x$ac_cv_prog_cc_c89" != xno; then :
5382
5383 fi
5384
5385 ac_ext=c
5386 ac_cpp='$CPP $CPPFLAGS'
5387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5390
5391 ac_ext=c
5392 ac_cpp='$CPP $CPPFLAGS'
5393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5397 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5398 if ${am_cv_prog_cc_c_o+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403
5404 int
5405 main ()
5406 {
5407
5408 ;
5409 return 0;
5410 }
5411 _ACEOF
5412 # Make sure it works both with $CC and with simple cc.
5413 # Following AC_PROG_CC_C_O, we do the test twice because some
5414 # compilers refuse to overwrite an existing .o file with -o,
5415 # though they will create one.
5416 am_cv_prog_cc_c_o=yes
5417 for am_i in 1 2; do
5418 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5419 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } \
5423 && test -f conftest2.$ac_objext; then
5424 : OK
5425 else
5426 am_cv_prog_cc_c_o=no
5427 break
5428 fi
5429 done
5430 rm -f core conftest*
5431 unset am_i
5432 fi
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5434 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5435 if test "$am_cv_prog_cc_c_o" != yes; then
5436 # Losing compiler, so override with the script.
5437 # FIXME: It is wrong to rewrite CC.
5438 # But if we don't then we get into trouble of one sort or another.
5439 # A longer-term fix would be to have automake use am__CC in this case,
5440 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5441 CC="$am_aux_dir/compile $CC"
5442 fi
5443 ac_ext=c
5444 ac_cpp='$CPP $CPPFLAGS'
5445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5448
5449
5450 depcc="$CC" am_compiler_list=
5451
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5453 $as_echo_n "checking dependency style of $depcc... " >&6; }
5454 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5458 # We make a subdir and do the tests there. Otherwise we can end up
5459 # making bogus files that we don't know about and never remove. For
5460 # instance it was reported that on HP-UX the gcc test will end up
5461 # making a dummy file named 'D' -- because '-MD' means "put the output
5462 # in D".
5463 rm -rf conftest.dir
5464 mkdir conftest.dir
5465 # Copy depcomp to subdir because otherwise we won't find it if we're
5466 # using a relative directory.
5467 cp "$am_depcomp" conftest.dir
5468 cd conftest.dir
5469 # We will build objects and dependencies in a subdirectory because
5470 # it helps to detect inapplicable dependency modes. For instance
5471 # both Tru64's cc and ICC support -MD to output dependencies as a
5472 # side effect of compilation, but ICC will put the dependencies in
5473 # the current directory while Tru64 will put them in the object
5474 # directory.
5475 mkdir sub
5476
5477 am_cv_CC_dependencies_compiler_type=none
5478 if test "$am_compiler_list" = ""; then
5479 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5480 fi
5481 am__universal=false
5482 case " $depcc " in #(
5483 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5484 esac
5485
5486 for depmode in $am_compiler_list; do
5487 # Setup a source with many dependencies, because some compilers
5488 # like to wrap large dependency lists on column 80 (with \), and
5489 # we should not choose a depcomp mode which is confused by this.
5490 #
5491 # We need to recreate these files for each test, as the compiler may
5492 # overwrite some of them when testing with obscure command lines.
5493 # This happens at least with the AIX C compiler.
5494 : > sub/conftest.c
5495 for i in 1 2 3 4 5 6; do
5496 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5497 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5498 # Solaris 10 /bin/sh.
5499 echo '/* dummy */' > sub/conftst$i.h
5500 done
5501 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5502
5503 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5504 # mode. It turns out that the SunPro C++ compiler does not properly
5505 # handle '-M -o', and we need to detect this. Also, some Intel
5506 # versions had trouble with output in subdirs.
5507 am__obj=sub/conftest.${OBJEXT-o}
5508 am__minus_obj="-o $am__obj"
5509 case $depmode in
5510 gcc)
5511 # This depmode causes a compiler race in universal mode.
5512 test "$am__universal" = false || continue
5513 ;;
5514 nosideeffect)
5515 # After this tag, mechanisms are not by side-effect, so they'll
5516 # only be used when explicitly requested.
5517 if test "x$enable_dependency_tracking" = xyes; then
5518 continue
5519 else
5520 break
5521 fi
5522 ;;
5523 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5524 # This compiler won't grok '-c -o', but also, the minuso test has
5525 # not run yet. These depmodes are late enough in the game, and
5526 # so weak that their functioning should not be impacted.
5527 am__obj=conftest.${OBJEXT-o}
5528 am__minus_obj=
5529 ;;
5530 none) break ;;
5531 esac
5532 if depmode=$depmode \
5533 source=sub/conftest.c object=$am__obj \
5534 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5535 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5536 >/dev/null 2>conftest.err &&
5537 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5539 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5541 # icc doesn't choke on unknown options, it will just issue warnings
5542 # or remarks (even with -Werror). So we grep stderr for any message
5543 # that says an option was ignored or not supported.
5544 # When given -MP, icc 7.0 and 7.1 complain thusly:
5545 # icc: Command line warning: ignoring option '-M'; no argument required
5546 # The diagnosis changed in icc 8.0:
5547 # icc: Command line remark: option '-MP' not supported
5548 if (grep 'ignoring option' conftest.err ||
5549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5550 am_cv_CC_dependencies_compiler_type=$depmode
5551 break
5552 fi
5553 fi
5554 done
5555
5556 cd ..
5557 rm -rf conftest.dir
5558 else
5559 am_cv_CC_dependencies_compiler_type=none
5560 fi
5561
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5564 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5565 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5566
5567 if
5568 test "x$enable_dependency_tracking" != xno \
5569 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5570 am__fastdepCC_TRUE=
5571 am__fastdepCC_FALSE='#'
5572 else
5573 am__fastdepCC_TRUE='#'
5574 am__fastdepCC_FALSE=
5575 fi
5576
5577
5578 ac_ext=cpp
5579 ac_cpp='$CXXCPP $CPPFLAGS'
5580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5583 if test -z "$CXX"; then
5584 if test -n "$CCC"; then
5585 CXX=$CCC
5586 else
5587 if test -n "$ac_tool_prefix"; then
5588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5589 do
5590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if ${ac_cv_prog_CXX+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 if test -n "$CXX"; then
5598 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5610 fi
5611 done
5612 done
5613 IFS=$as_save_IFS
5614
5615 fi
5616 fi
5617 CXX=$ac_cv_prog_CXX
5618 if test -n "$CXX"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5620 $as_echo "$CXX" >&6; }
5621 else
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5624 fi
5625
5626
5627 test -n "$CXX" && break
5628 done
5629 fi
5630 if test -z "$CXX"; then
5631 ac_ct_CXX=$CXX
5632 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5633 do
5634 # Extract the first word of "$ac_prog", so it can be a program name with args.
5635 set dummy $ac_prog; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 if test -n "$ac_ct_CXX"; then
5642 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_prog_ac_ct_CXX="$ac_prog"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5654 fi
5655 done
5656 done
5657 IFS=$as_save_IFS
5658
5659 fi
5660 fi
5661 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5662 if test -n "$ac_ct_CXX"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5664 $as_echo "$ac_ct_CXX" >&6; }
5665 else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5668 fi
5669
5670
5671 test -n "$ac_ct_CXX" && break
5672 done
5673
5674 if test "x$ac_ct_CXX" = x; then
5675 CXX="g++"
5676 else
5677 case $cross_compiling:$ac_tool_warned in
5678 yes:)
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5682 esac
5683 CXX=$ac_ct_CXX
5684 fi
5685 fi
5686
5687 fi
5688 fi
5689 # Provide some information about the compiler.
5690 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5691 set X $ac_compile
5692 ac_compiler=$2
5693 for ac_option in --version -v -V -qversion; do
5694 { { ac_try="$ac_compiler $ac_option >&5"
5695 case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698 esac
5699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5700 $as_echo "$ac_try_echo"; } >&5
5701 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5702 ac_status=$?
5703 if test -s conftest.err; then
5704 sed '10a\
5705 ... rest of stderr output deleted ...
5706 10q' conftest.err >conftest.er1
5707 cat conftest.er1 >&5
5708 fi
5709 rm -f conftest.er1 conftest.err
5710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711 test $ac_status = 0; }
5712 done
5713
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5715 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5716 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721
5722 int
5723 main ()
5724 {
5725 #ifndef __GNUC__
5726 choke me
5727 #endif
5728
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_cxx_try_compile "$LINENO"; then :
5734 ac_compiler_gnu=yes
5735 else
5736 ac_compiler_gnu=no
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5740
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5743 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5744 if test $ac_compiler_gnu = yes; then
5745 GXX=yes
5746 else
5747 GXX=
5748 fi
5749 ac_test_CXXFLAGS=${CXXFLAGS+set}
5750 ac_save_CXXFLAGS=$CXXFLAGS
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5752 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5753 if ${ac_cv_prog_cxx_g+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5757 ac_cxx_werror_flag=yes
5758 ac_cv_prog_cxx_g=no
5759 CXXFLAGS="-g"
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762
5763 int
5764 main ()
5765 {
5766
5767 ;
5768 return 0;
5769 }
5770 _ACEOF
5771 if ac_fn_cxx_try_compile "$LINENO"; then :
5772 ac_cv_prog_cxx_g=yes
5773 else
5774 CXXFLAGS=""
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777
5778 int
5779 main ()
5780 {
5781
5782 ;
5783 return 0;
5784 }
5785 _ACEOF
5786 if ac_fn_cxx_try_compile "$LINENO"; then :
5787
5788 else
5789 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5790 CXXFLAGS="-g"
5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h. */
5793
5794 int
5795 main ()
5796 {
5797
5798 ;
5799 return 0;
5800 }
5801 _ACEOF
5802 if ac_fn_cxx_try_compile "$LINENO"; then :
5803 ac_cv_prog_cxx_g=yes
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 fi
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5811 fi
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5813 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5814 if test "$ac_test_CXXFLAGS" = set; then
5815 CXXFLAGS=$ac_save_CXXFLAGS
5816 elif test $ac_cv_prog_cxx_g = yes; then
5817 if test "$GXX" = yes; then
5818 CXXFLAGS="-g -O2"
5819 else
5820 CXXFLAGS="-g"
5821 fi
5822 else
5823 if test "$GXX" = yes; then
5824 CXXFLAGS="-O2"
5825 else
5826 CXXFLAGS=
5827 fi
5828 fi
5829 ac_ext=c
5830 ac_cpp='$CPP $CPPFLAGS'
5831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5834
5835 depcc="$CXX" am_compiler_list=
5836
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5838 $as_echo_n "checking dependency style of $depcc... " >&6; }
5839 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5843 # We make a subdir and do the tests there. Otherwise we can end up
5844 # making bogus files that we don't know about and never remove. For
5845 # instance it was reported that on HP-UX the gcc test will end up
5846 # making a dummy file named 'D' -- because '-MD' means "put the output
5847 # in D".
5848 rm -rf conftest.dir
5849 mkdir conftest.dir
5850 # Copy depcomp to subdir because otherwise we won't find it if we're
5851 # using a relative directory.
5852 cp "$am_depcomp" conftest.dir
5853 cd conftest.dir
5854 # We will build objects and dependencies in a subdirectory because
5855 # it helps to detect inapplicable dependency modes. For instance
5856 # both Tru64's cc and ICC support -MD to output dependencies as a
5857 # side effect of compilation, but ICC will put the dependencies in
5858 # the current directory while Tru64 will put them in the object
5859 # directory.
5860 mkdir sub
5861
5862 am_cv_CXX_dependencies_compiler_type=none
5863 if test "$am_compiler_list" = ""; then
5864 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5865 fi
5866 am__universal=false
5867 case " $depcc " in #(
5868 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5869 esac
5870
5871 for depmode in $am_compiler_list; do
5872 # Setup a source with many dependencies, because some compilers
5873 # like to wrap large dependency lists on column 80 (with \), and
5874 # we should not choose a depcomp mode which is confused by this.
5875 #
5876 # We need to recreate these files for each test, as the compiler may
5877 # overwrite some of them when testing with obscure command lines.
5878 # This happens at least with the AIX C compiler.
5879 : > sub/conftest.c
5880 for i in 1 2 3 4 5 6; do
5881 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5882 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5883 # Solaris 10 /bin/sh.
5884 echo '/* dummy */' > sub/conftst$i.h
5885 done
5886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5887
5888 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5889 # mode. It turns out that the SunPro C++ compiler does not properly
5890 # handle '-M -o', and we need to detect this. Also, some Intel
5891 # versions had trouble with output in subdirs.
5892 am__obj=sub/conftest.${OBJEXT-o}
5893 am__minus_obj="-o $am__obj"
5894 case $depmode in
5895 gcc)
5896 # This depmode causes a compiler race in universal mode.
5897 test "$am__universal" = false || continue
5898 ;;
5899 nosideeffect)
5900 # After this tag, mechanisms are not by side-effect, so they'll
5901 # only be used when explicitly requested.
5902 if test "x$enable_dependency_tracking" = xyes; then
5903 continue
5904 else
5905 break
5906 fi
5907 ;;
5908 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5909 # This compiler won't grok '-c -o', but also, the minuso test has
5910 # not run yet. These depmodes are late enough in the game, and
5911 # so weak that their functioning should not be impacted.
5912 am__obj=conftest.${OBJEXT-o}
5913 am__minus_obj=
5914 ;;
5915 none) break ;;
5916 esac
5917 if depmode=$depmode \
5918 source=sub/conftest.c object=$am__obj \
5919 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5920 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5921 >/dev/null 2>conftest.err &&
5922 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5923 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5924 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5925 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5926 # icc doesn't choke on unknown options, it will just issue warnings
5927 # or remarks (even with -Werror). So we grep stderr for any message
5928 # that says an option was ignored or not supported.
5929 # When given -MP, icc 7.0 and 7.1 complain thusly:
5930 # icc: Command line warning: ignoring option '-M'; no argument required
5931 # The diagnosis changed in icc 8.0:
5932 # icc: Command line remark: option '-MP' not supported
5933 if (grep 'ignoring option' conftest.err ||
5934 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5935 am_cv_CXX_dependencies_compiler_type=$depmode
5936 break
5937 fi
5938 fi
5939 done
5940
5941 cd ..
5942 rm -rf conftest.dir
5943 else
5944 am_cv_CXX_dependencies_compiler_type=none
5945 fi
5946
5947 fi
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5949 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5950 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5951
5952 if
5953 test "x$enable_dependency_tracking" != xno \
5954 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5955 am__fastdepCXX_TRUE=
5956 am__fastdepCXX_FALSE='#'
5957 else
5958 am__fastdepCXX_TRUE='#'
5959 am__fastdepCXX_FALSE=
5960 fi
5961
5962
5963 ac_ext=c
5964 ac_cpp='$CPP $CPPFLAGS'
5965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5969 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5970 # On Suns, sometimes $CPP names a directory.
5971 if test -n "$CPP" && test -d "$CPP"; then
5972 CPP=
5973 fi
5974 if test -z "$CPP"; then
5975 if ${ac_cv_prog_CPP+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 # Double quotes because CPP needs to be expanded
5979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5980 do
5981 ac_preproc_ok=false
5982 for ac_c_preproc_warn_flag in '' yes
5983 do
5984 # Use a header file that comes with gcc, so configuring glibc
5985 # with a fresh cross-compiler works.
5986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5987 # <limits.h> exists even on freestanding compilers.
5988 # On the NeXT, cc -E runs the code through the compiler's parser,
5989 # not just through cpp. "Syntax error" is here to catch this case.
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #ifdef __STDC__
5993 # include <limits.h>
5994 #else
5995 # include <assert.h>
5996 #endif
5997 Syntax error
5998 _ACEOF
5999 if ac_fn_c_try_cpp "$LINENO"; then :
6000
6001 else
6002 # Broken: fails on valid input.
6003 continue
6004 fi
6005 rm -f conftest.err conftest.i conftest.$ac_ext
6006
6007 # OK, works on sane cases. Now check whether nonexistent headers
6008 # can be detected and how.
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #include <ac_nonexistent.h>
6012 _ACEOF
6013 if ac_fn_c_try_cpp "$LINENO"; then :
6014 # Broken: success on invalid input.
6015 continue
6016 else
6017 # Passes both tests.
6018 ac_preproc_ok=:
6019 break
6020 fi
6021 rm -f conftest.err conftest.i conftest.$ac_ext
6022
6023 done
6024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6025 rm -f conftest.i conftest.err conftest.$ac_ext
6026 if $ac_preproc_ok; then :
6027 break
6028 fi
6029
6030 done
6031 ac_cv_prog_CPP=$CPP
6032
6033 fi
6034 CPP=$ac_cv_prog_CPP
6035 else
6036 ac_cv_prog_CPP=$CPP
6037 fi
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6039 $as_echo "$CPP" >&6; }
6040 ac_preproc_ok=false
6041 for ac_c_preproc_warn_flag in '' yes
6042 do
6043 # Use a header file that comes with gcc, so configuring glibc
6044 # with a fresh cross-compiler works.
6045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6046 # <limits.h> exists even on freestanding compilers.
6047 # On the NeXT, cc -E runs the code through the compiler's parser,
6048 # not just through cpp. "Syntax error" is here to catch this case.
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #ifdef __STDC__
6052 # include <limits.h>
6053 #else
6054 # include <assert.h>
6055 #endif
6056 Syntax error
6057 _ACEOF
6058 if ac_fn_c_try_cpp "$LINENO"; then :
6059
6060 else
6061 # Broken: fails on valid input.
6062 continue
6063 fi
6064 rm -f conftest.err conftest.i conftest.$ac_ext
6065
6066 # OK, works on sane cases. Now check whether nonexistent headers
6067 # can be detected and how.
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 #include <ac_nonexistent.h>
6071 _ACEOF
6072 if ac_fn_c_try_cpp "$LINENO"; then :
6073 # Broken: success on invalid input.
6074 continue
6075 else
6076 # Passes both tests.
6077 ac_preproc_ok=:
6078 break
6079 fi
6080 rm -f conftest.err conftest.i conftest.$ac_ext
6081
6082 done
6083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6084 rm -f conftest.i conftest.err conftest.$ac_ext
6085 if $ac_preproc_ok; then :
6086
6087 else
6088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6090 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6091 See \`config.log' for more details" "$LINENO" 5; }
6092 fi
6093
6094 ac_ext=c
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099
6100 ac_ext=c
6101 ac_cpp='$CPP $CPPFLAGS'
6102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6105 if test -n "$ac_tool_prefix"; then
6106 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6107 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109 $as_echo_n "checking for $ac_word... " >&6; }
6110 if ${ac_cv_prog_CC+:} false; then :
6111 $as_echo_n "(cached) " >&6
6112 else
6113 if test -n "$CC"; then
6114 ac_cv_prog_CC="$CC" # Let the user override the test.
6115 else
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 break 2
6126 fi
6127 done
6128 done
6129 IFS=$as_save_IFS
6130
6131 fi
6132 fi
6133 CC=$ac_cv_prog_CC
6134 if test -n "$CC"; then
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6136 $as_echo "$CC" >&6; }
6137 else
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139 $as_echo "no" >&6; }
6140 fi
6141
6142
6143 fi
6144 if test -z "$ac_cv_prog_CC"; then
6145 ac_ct_CC=$CC
6146 # Extract the first word of "gcc", so it can be a program name with args.
6147 set dummy gcc; ac_word=$2
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149 $as_echo_n "checking for $ac_word... " >&6; }
6150 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 if test -n "$ac_ct_CC"; then
6154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6155 else
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159 IFS=$as_save_IFS
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6163 ac_cv_prog_ac_ct_CC="gcc"
6164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 break 2
6166 fi
6167 done
6168 done
6169 IFS=$as_save_IFS
6170
6171 fi
6172 fi
6173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6174 if test -n "$ac_ct_CC"; then
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6176 $as_echo "$ac_ct_CC" >&6; }
6177 else
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 $as_echo "no" >&6; }
6180 fi
6181
6182 if test "x$ac_ct_CC" = x; then
6183 CC=""
6184 else
6185 case $cross_compiling:$ac_tool_warned in
6186 yes:)
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned=yes ;;
6190 esac
6191 CC=$ac_ct_CC
6192 fi
6193 else
6194 CC="$ac_cv_prog_CC"
6195 fi
6196
6197 if test -z "$CC"; then
6198 if test -n "$ac_tool_prefix"; then
6199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6200 set dummy ${ac_tool_prefix}cc; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if ${ac_cv_prog_CC+:} false; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 if test -n "$CC"; then
6207 ac_cv_prog_CC="$CC" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212 IFS=$as_save_IFS
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216 ac_cv_prog_CC="${ac_tool_prefix}cc"
6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 break 2
6219 fi
6220 done
6221 done
6222 IFS=$as_save_IFS
6223
6224 fi
6225 fi
6226 CC=$ac_cv_prog_CC
6227 if test -n "$CC"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6229 $as_echo "$CC" >&6; }
6230 else
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6233 fi
6234
6235
6236 fi
6237 fi
6238 if test -z "$CC"; then
6239 # Extract the first word of "cc", so it can be a program name with args.
6240 set dummy cc; ac_word=$2
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242 $as_echo_n "checking for $ac_word... " >&6; }
6243 if ${ac_cv_prog_CC+:} false; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 if test -n "$CC"; then
6247 ac_cv_prog_CC="$CC" # Let the user override the test.
6248 else
6249 ac_prog_rejected=no
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6257 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6258 ac_prog_rejected=yes
6259 continue
6260 fi
6261 ac_cv_prog_CC="cc"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
6265 done
6266 done
6267 IFS=$as_save_IFS
6268
6269 if test $ac_prog_rejected = yes; then
6270 # We found a bogon in the path, so make sure we never use it.
6271 set dummy $ac_cv_prog_CC
6272 shift
6273 if test $# != 0; then
6274 # We chose a different compiler from the bogus one.
6275 # However, it has the same basename, so the bogon will be chosen
6276 # first if we set CC to just the basename; use the full file name.
6277 shift
6278 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6279 fi
6280 fi
6281 fi
6282 fi
6283 CC=$ac_cv_prog_CC
6284 if test -n "$CC"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6286 $as_echo "$CC" >&6; }
6287 else
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6290 fi
6291
6292
6293 fi
6294 if test -z "$CC"; then
6295 if test -n "$ac_tool_prefix"; then
6296 for ac_prog in cl.exe
6297 do
6298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if ${ac_cv_prog_CC+:} false; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 if test -n "$CC"; then
6306 ac_cv_prog_CC="$CC" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319 done
6320 done
6321 IFS=$as_save_IFS
6322
6323 fi
6324 fi
6325 CC=$ac_cv_prog_CC
6326 if test -n "$CC"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6328 $as_echo "$CC" >&6; }
6329 else
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6332 fi
6333
6334
6335 test -n "$CC" && break
6336 done
6337 fi
6338 if test -z "$CC"; then
6339 ac_ct_CC=$CC
6340 for ac_prog in cl.exe
6341 do
6342 # Extract the first word of "$ac_prog", so it can be a program name with args.
6343 set dummy $ac_prog; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 if test -n "$ac_ct_CC"; then
6350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6359 ac_cv_prog_ac_ct_CC="$ac_prog"
6360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 break 2
6362 fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6370 if test -n "$ac_ct_CC"; then
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6372 $as_echo "$ac_ct_CC" >&6; }
6373 else
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377
6378
6379 test -n "$ac_ct_CC" && break
6380 done
6381
6382 if test "x$ac_ct_CC" = x; then
6383 CC=""
6384 else
6385 case $cross_compiling:$ac_tool_warned in
6386 yes:)
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389 ac_tool_warned=yes ;;
6390 esac
6391 CC=$ac_ct_CC
6392 fi
6393 fi
6394
6395 fi
6396
6397
6398 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6400 as_fn_error $? "no acceptable C compiler found in \$PATH
6401 See \`config.log' for more details" "$LINENO" 5; }
6402
6403 # Provide some information about the compiler.
6404 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6405 set X $ac_compile
6406 ac_compiler=$2
6407 for ac_option in --version -v -V -qversion; do
6408 { { ac_try="$ac_compiler $ac_option >&5"
6409 case "(($ac_try" in
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6412 esac
6413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6414 $as_echo "$ac_try_echo"; } >&5
6415 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6416 ac_status=$?
6417 if test -s conftest.err; then
6418 sed '10a\
6419 ... rest of stderr output deleted ...
6420 10q' conftest.err >conftest.er1
6421 cat conftest.er1 >&5
6422 fi
6423 rm -f conftest.er1 conftest.err
6424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6425 test $ac_status = 0; }
6426 done
6427
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6429 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6430 if ${ac_cv_c_compiler_gnu+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6435
6436 int
6437 main ()
6438 {
6439 #ifndef __GNUC__
6440 choke me
6441 #endif
6442
6443 ;
6444 return 0;
6445 }
6446 _ACEOF
6447 if ac_fn_c_try_compile "$LINENO"; then :
6448 ac_compiler_gnu=yes
6449 else
6450 ac_compiler_gnu=no
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6454
6455 fi
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6457 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6458 if test $ac_compiler_gnu = yes; then
6459 GCC=yes
6460 else
6461 GCC=
6462 fi
6463 ac_test_CFLAGS=${CFLAGS+set}
6464 ac_save_CFLAGS=$CFLAGS
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6466 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6467 if ${ac_cv_prog_cc_g+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 ac_save_c_werror_flag=$ac_c_werror_flag
6471 ac_c_werror_flag=yes
6472 ac_cv_prog_cc_g=no
6473 CFLAGS="-g"
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6476
6477 int
6478 main ()
6479 {
6480
6481 ;
6482 return 0;
6483 }
6484 _ACEOF
6485 if ac_fn_c_try_compile "$LINENO"; then :
6486 ac_cv_prog_cc_g=yes
6487 else
6488 CFLAGS=""
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491
6492 int
6493 main ()
6494 {
6495
6496 ;
6497 return 0;
6498 }
6499 _ACEOF
6500 if ac_fn_c_try_compile "$LINENO"; then :
6501
6502 else
6503 ac_c_werror_flag=$ac_save_c_werror_flag
6504 CFLAGS="-g"
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507
6508 int
6509 main ()
6510 {
6511
6512 ;
6513 return 0;
6514 }
6515 _ACEOF
6516 if ac_fn_c_try_compile "$LINENO"; then :
6517 ac_cv_prog_cc_g=yes
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 fi
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 fi
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 ac_c_werror_flag=$ac_save_c_werror_flag
6525 fi
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6527 $as_echo "$ac_cv_prog_cc_g" >&6; }
6528 if test "$ac_test_CFLAGS" = set; then
6529 CFLAGS=$ac_save_CFLAGS
6530 elif test $ac_cv_prog_cc_g = yes; then
6531 if test "$GCC" = yes; then
6532 CFLAGS="-g -O2"
6533 else
6534 CFLAGS="-g"
6535 fi
6536 else
6537 if test "$GCC" = yes; then
6538 CFLAGS="-O2"
6539 else
6540 CFLAGS=
6541 fi
6542 fi
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6544 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6545 if ${ac_cv_prog_cc_c89+:} false; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548 ac_cv_prog_cc_c89=no
6549 ac_save_CC=$CC
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6552 #include <stdarg.h>
6553 #include <stdio.h>
6554 struct stat;
6555 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6556 struct buf { int x; };
6557 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6558 static char *e (p, i)
6559 char **p;
6560 int i;
6561 {
6562 return p[i];
6563 }
6564 static char *f (char * (*g) (char **, int), char **p, ...)
6565 {
6566 char *s;
6567 va_list v;
6568 va_start (v,p);
6569 s = g (p, va_arg (v,int));
6570 va_end (v);
6571 return s;
6572 }
6573
6574 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6575 function prototypes and stuff, but not '\xHH' hex character constants.
6576 These don't provoke an error unfortunately, instead are silently treated
6577 as 'x'. The following induces an error, until -std is added to get
6578 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6579 array size at least. It's necessary to write '\x00'==0 to get something
6580 that's true only with -std. */
6581 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6582
6583 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6584 inside strings and character constants. */
6585 #define FOO(x) 'x'
6586 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6587
6588 int test (int i, double x);
6589 struct s1 {int (*f) (int a);};
6590 struct s2 {int (*f) (double a);};
6591 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6592 int argc;
6593 char **argv;
6594 int
6595 main ()
6596 {
6597 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6598 ;
6599 return 0;
6600 }
6601 _ACEOF
6602 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6603 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6604 do
6605 CC="$ac_save_CC $ac_arg"
6606 if ac_fn_c_try_compile "$LINENO"; then :
6607 ac_cv_prog_cc_c89=$ac_arg
6608 fi
6609 rm -f core conftest.err conftest.$ac_objext
6610 test "x$ac_cv_prog_cc_c89" != "xno" && break
6611 done
6612 rm -f conftest.$ac_ext
6613 CC=$ac_save_CC
6614
6615 fi
6616 # AC_CACHE_VAL
6617 case "x$ac_cv_prog_cc_c89" in
6618 x)
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6620 $as_echo "none needed" >&6; } ;;
6621 xno)
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6623 $as_echo "unsupported" >&6; } ;;
6624 *)
6625 CC="$CC $ac_cv_prog_cc_c89"
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6627 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6628 esac
6629 if test "x$ac_cv_prog_cc_c89" != xno; then :
6630
6631 fi
6632
6633 ac_ext=c
6634 ac_cpp='$CPP $CPPFLAGS'
6635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6638
6639 ac_ext=c
6640 ac_cpp='$CPP $CPPFLAGS'
6641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6645 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6646 if ${am_cv_prog_cc_c_o+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h. */
6651
6652 int
6653 main ()
6654 {
6655
6656 ;
6657 return 0;
6658 }
6659 _ACEOF
6660 # Make sure it works both with $CC and with simple cc.
6661 # Following AC_PROG_CC_C_O, we do the test twice because some
6662 # compilers refuse to overwrite an existing .o file with -o,
6663 # though they will create one.
6664 am_cv_prog_cc_c_o=yes
6665 for am_i in 1 2; do
6666 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6667 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } \
6671 && test -f conftest2.$ac_objext; then
6672 : OK
6673 else
6674 am_cv_prog_cc_c_o=no
6675 break
6676 fi
6677 done
6678 rm -f core conftest*
6679 unset am_i
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6682 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6683 if test "$am_cv_prog_cc_c_o" != yes; then
6684 # Losing compiler, so override with the script.
6685 # FIXME: It is wrong to rewrite CC.
6686 # But if we don't then we get into trouble of one sort or another.
6687 # A longer-term fix would be to have automake use am__CC in this case,
6688 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6689 CC="$am_aux_dir/compile $CC"
6690 fi
6691 ac_ext=c
6692 ac_cpp='$CPP $CPPFLAGS'
6693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6696
6697
6698 depcc="$CC" am_compiler_list=
6699
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6701 $as_echo_n "checking dependency style of $depcc... " >&6; }
6702 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6706 # We make a subdir and do the tests there. Otherwise we can end up
6707 # making bogus files that we don't know about and never remove. For
6708 # instance it was reported that on HP-UX the gcc test will end up
6709 # making a dummy file named 'D' -- because '-MD' means "put the output
6710 # in D".
6711 rm -rf conftest.dir
6712 mkdir conftest.dir
6713 # Copy depcomp to subdir because otherwise we won't find it if we're
6714 # using a relative directory.
6715 cp "$am_depcomp" conftest.dir
6716 cd conftest.dir
6717 # We will build objects and dependencies in a subdirectory because
6718 # it helps to detect inapplicable dependency modes. For instance
6719 # both Tru64's cc and ICC support -MD to output dependencies as a
6720 # side effect of compilation, but ICC will put the dependencies in
6721 # the current directory while Tru64 will put them in the object
6722 # directory.
6723 mkdir sub
6724
6725 am_cv_CC_dependencies_compiler_type=none
6726 if test "$am_compiler_list" = ""; then
6727 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6728 fi
6729 am__universal=false
6730 case " $depcc " in #(
6731 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6732 esac
6733
6734 for depmode in $am_compiler_list; do
6735 # Setup a source with many dependencies, because some compilers
6736 # like to wrap large dependency lists on column 80 (with \), and
6737 # we should not choose a depcomp mode which is confused by this.
6738 #
6739 # We need to recreate these files for each test, as the compiler may
6740 # overwrite some of them when testing with obscure command lines.
6741 # This happens at least with the AIX C compiler.
6742 : > sub/conftest.c
6743 for i in 1 2 3 4 5 6; do
6744 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6745 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6746 # Solaris 10 /bin/sh.
6747 echo '/* dummy */' > sub/conftst$i.h
6748 done
6749 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6750
6751 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6752 # mode. It turns out that the SunPro C++ compiler does not properly
6753 # handle '-M -o', and we need to detect this. Also, some Intel
6754 # versions had trouble with output in subdirs.
6755 am__obj=sub/conftest.${OBJEXT-o}
6756 am__minus_obj="-o $am__obj"
6757 case $depmode in
6758 gcc)
6759 # This depmode causes a compiler race in universal mode.
6760 test "$am__universal" = false || continue
6761 ;;
6762 nosideeffect)
6763 # After this tag, mechanisms are not by side-effect, so they'll
6764 # only be used when explicitly requested.
6765 if test "x$enable_dependency_tracking" = xyes; then
6766 continue
6767 else
6768 break
6769 fi
6770 ;;
6771 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6772 # This compiler won't grok '-c -o', but also, the minuso test has
6773 # not run yet. These depmodes are late enough in the game, and
6774 # so weak that their functioning should not be impacted.
6775 am__obj=conftest.${OBJEXT-o}
6776 am__minus_obj=
6777 ;;
6778 none) break ;;
6779 esac
6780 if depmode=$depmode \
6781 source=sub/conftest.c object=$am__obj \
6782 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6783 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6784 >/dev/null 2>conftest.err &&
6785 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6786 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6787 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6788 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6789 # icc doesn't choke on unknown options, it will just issue warnings
6790 # or remarks (even with -Werror). So we grep stderr for any message
6791 # that says an option was ignored or not supported.
6792 # When given -MP, icc 7.0 and 7.1 complain thusly:
6793 # icc: Command line warning: ignoring option '-M'; no argument required
6794 # The diagnosis changed in icc 8.0:
6795 # icc: Command line remark: option '-MP' not supported
6796 if (grep 'ignoring option' conftest.err ||
6797 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6798 am_cv_CC_dependencies_compiler_type=$depmode
6799 break
6800 fi
6801 fi
6802 done
6803
6804 cd ..
6805 rm -rf conftest.dir
6806 else
6807 am_cv_CC_dependencies_compiler_type=none
6808 fi
6809
6810 fi
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6812 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6813 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6814
6815 if
6816 test "x$enable_dependency_tracking" != xno \
6817 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6818 am__fastdepCC_TRUE=
6819 am__fastdepCC_FALSE='#'
6820 else
6821 am__fastdepCC_TRUE='#'
6822 am__fastdepCC_FALSE=
6823 fi
6824
6825
6826 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6827
6828
6829 if test -n "$ac_tool_prefix"; then
6830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if ${ac_cv_prog_RANLIB+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 if test -n "$RANLIB"; then
6838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855 fi
6856 fi
6857 RANLIB=$ac_cv_prog_RANLIB
6858 if test -n "$RANLIB"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6860 $as_echo "$RANLIB" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866
6867 fi
6868 if test -z "$ac_cv_prog_RANLIB"; then
6869 ac_ct_RANLIB=$RANLIB
6870 # Extract the first word of "ranlib", so it can be a program name with args.
6871 set dummy ranlib; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 if test -n "$ac_ct_RANLIB"; then
6878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887 ac_cv_prog_ac_ct_RANLIB="ranlib"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891 done
6892 done
6893 IFS=$as_save_IFS
6894
6895 fi
6896 fi
6897 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6898 if test -n "$ac_ct_RANLIB"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6900 $as_echo "$ac_ct_RANLIB" >&6; }
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904 fi
6905
6906 if test "x$ac_ct_RANLIB" = x; then
6907 RANLIB=":"
6908 else
6909 case $cross_compiling:$ac_tool_warned in
6910 yes:)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6914 esac
6915 RANLIB=$ac_ct_RANLIB
6916 fi
6917 else
6918 RANLIB="$ac_cv_prog_RANLIB"
6919 fi
6920
6921
6922
6923
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6925 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6926 set x ${MAKE-make}
6927 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6928 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 cat >conftest.make <<\_ACEOF
6932 SHELL = /bin/sh
6933 all:
6934 @echo '@@@%%%=$(MAKE)=@@@%%%'
6935 _ACEOF
6936 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6937 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6938 *@@@%%%=?*=@@@%%%*)
6939 eval ac_cv_prog_make_${ac_make}_set=yes;;
6940 *)
6941 eval ac_cv_prog_make_${ac_make}_set=no;;
6942 esac
6943 rm -f conftest.make
6944 fi
6945 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6947 $as_echo "yes" >&6; }
6948 SET_MAKE=
6949 else
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6952 SET_MAKE="MAKE=${MAKE-make}"
6953 fi
6954
6955
6956
6957 # Check whether --enable-largefile was given.
6958 if test "${enable_largefile+set}" = set; then :
6959 enableval=$enable_largefile;
6960 fi
6961
6962 if test "$enable_largefile" != no; then
6963
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6965 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6966 if ${ac_cv_sys_largefile_CC+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 ac_cv_sys_largefile_CC=no
6970 if test "$GCC" != yes; then
6971 ac_save_CC=$CC
6972 while :; do
6973 # IRIX 6.2 and later do not support large files by default,
6974 # so use the C compiler's -n32 option if that helps.
6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976 /* end confdefs.h. */
6977 #include <sys/types.h>
6978 /* Check that off_t can represent 2**63 - 1 correctly.
6979 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6980 since some C++ compilers masquerading as C compilers
6981 incorrectly reject 9223372036854775807. */
6982 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6984 && LARGE_OFF_T % 2147483647 == 1)
6985 ? 1 : -1];
6986 int
6987 main ()
6988 {
6989
6990 ;
6991 return 0;
6992 }
6993 _ACEOF
6994 if ac_fn_c_try_compile "$LINENO"; then :
6995 break
6996 fi
6997 rm -f core conftest.err conftest.$ac_objext
6998 CC="$CC -n32"
6999 if ac_fn_c_try_compile "$LINENO"; then :
7000 ac_cv_sys_largefile_CC=' -n32'; break
7001 fi
7002 rm -f core conftest.err conftest.$ac_objext
7003 break
7004 done
7005 CC=$ac_save_CC
7006 rm -f conftest.$ac_ext
7007 fi
7008 fi
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7010 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7011 if test "$ac_cv_sys_largefile_CC" != no; then
7012 CC=$CC$ac_cv_sys_largefile_CC
7013 fi
7014
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7016 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7017 if ${ac_cv_sys_file_offset_bits+:} false; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 while :; do
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 #include <sys/types.h>
7024 /* Check that off_t can represent 2**63 - 1 correctly.
7025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7026 since some C++ compilers masquerading as C compilers
7027 incorrectly reject 9223372036854775807. */
7028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7030 && LARGE_OFF_T % 2147483647 == 1)
7031 ? 1 : -1];
7032 int
7033 main ()
7034 {
7035
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 if ac_fn_c_try_compile "$LINENO"; then :
7041 ac_cv_sys_file_offset_bits=no; break
7042 fi
7043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7046 #define _FILE_OFFSET_BITS 64
7047 #include <sys/types.h>
7048 /* Check that off_t can represent 2**63 - 1 correctly.
7049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7050 since some C++ compilers masquerading as C compilers
7051 incorrectly reject 9223372036854775807. */
7052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7054 && LARGE_OFF_T % 2147483647 == 1)
7055 ? 1 : -1];
7056 int
7057 main ()
7058 {
7059
7060 ;
7061 return 0;
7062 }
7063 _ACEOF
7064 if ac_fn_c_try_compile "$LINENO"; then :
7065 ac_cv_sys_file_offset_bits=64; break
7066 fi
7067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 ac_cv_sys_file_offset_bits=unknown
7069 break
7070 done
7071 fi
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7073 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7074 case $ac_cv_sys_file_offset_bits in #(
7075 no | unknown) ;;
7076 *)
7077 cat >>confdefs.h <<_ACEOF
7078 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7079 _ACEOF
7080 ;;
7081 esac
7082 rm -rf conftest*
7083 if test $ac_cv_sys_file_offset_bits = unknown; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7085 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7086 if ${ac_cv_sys_large_files+:} false; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 while :; do
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092 #include <sys/types.h>
7093 /* Check that off_t can represent 2**63 - 1 correctly.
7094 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7095 since some C++ compilers masquerading as C compilers
7096 incorrectly reject 9223372036854775807. */
7097 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7098 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7099 && LARGE_OFF_T % 2147483647 == 1)
7100 ? 1 : -1];
7101 int
7102 main ()
7103 {
7104
7105 ;
7106 return 0;
7107 }
7108 _ACEOF
7109 if ac_fn_c_try_compile "$LINENO"; then :
7110 ac_cv_sys_large_files=no; break
7111 fi
7112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7115 #define _LARGE_FILES 1
7116 #include <sys/types.h>
7117 /* Check that off_t can represent 2**63 - 1 correctly.
7118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7119 since some C++ compilers masquerading as C compilers
7120 incorrectly reject 9223372036854775807. */
7121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7123 && LARGE_OFF_T % 2147483647 == 1)
7124 ? 1 : -1];
7125 int
7126 main ()
7127 {
7128
7129 ;
7130 return 0;
7131 }
7132 _ACEOF
7133 if ac_fn_c_try_compile "$LINENO"; then :
7134 ac_cv_sys_large_files=1; break
7135 fi
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 ac_cv_sys_large_files=unknown
7138 break
7139 done
7140 fi
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7142 $as_echo "$ac_cv_sys_large_files" >&6; }
7143 case $ac_cv_sys_large_files in #(
7144 no | unknown) ;;
7145 *)
7146 cat >>confdefs.h <<_ACEOF
7147 #define _LARGE_FILES $ac_cv_sys_large_files
7148 _ACEOF
7149 ;;
7150 esac
7151 rm -rf conftest*
7152 fi
7153
7154
7155 fi
7156
7157 for ac_func in ppoll
7158 do :
7159 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
7160 if test "x$ac_cv_func_ppoll" = xyes; then :
7161 cat >>confdefs.h <<_ACEOF
7162 #define HAVE_PPOLL 1
7163 _ACEOF
7164
7165 fi
7166 done
7167
7168 for ac_func in openat
7169 do :
7170 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
7171 if test "x$ac_cv_func_openat" = xyes; then :
7172 cat >>confdefs.h <<_ACEOF
7173 #define HAVE_OPENAT 1
7174 _ACEOF
7175
7176 fi
7177 done
7178
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7180 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7181 if ${ac_cv_path_SED+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7185 for ac_i in 1 2 3 4 5 6 7; do
7186 ac_script="$ac_script$as_nl$ac_script"
7187 done
7188 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7189 { ac_script=; unset ac_script;}
7190 if test -z "$SED"; then
7191 ac_path_SED_found=false
7192 # Loop through the user's path and test for each of PROGNAME-LIST
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_prog in sed gsed; do
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7201 as_fn_executable_p "$ac_path_SED" || continue
7202 # Check for GNU ac_path_SED and select it if it is found.
7203 # Check for GNU $ac_path_SED
7204 case `"$ac_path_SED" --version 2>&1` in
7205 *GNU*)
7206 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7207 *)
7208 ac_count=0
7209 $as_echo_n 0123456789 >"conftest.in"
7210 while :
7211 do
7212 cat "conftest.in" "conftest.in" >"conftest.tmp"
7213 mv "conftest.tmp" "conftest.in"
7214 cp "conftest.in" "conftest.nl"
7215 $as_echo '' >> "conftest.nl"
7216 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7218 as_fn_arith $ac_count + 1 && ac_count=$as_val
7219 if test $ac_count -gt ${ac_path_SED_max-0}; then
7220 # Best one so far, save it but keep looking for a better one
7221 ac_cv_path_SED="$ac_path_SED"
7222 ac_path_SED_max=$ac_count
7223 fi
7224 # 10*(2^10) chars as input seems more than enough
7225 test $ac_count -gt 10 && break
7226 done
7227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7228 esac
7229
7230 $ac_path_SED_found && break 3
7231 done
7232 done
7233 done
7234 IFS=$as_save_IFS
7235 if test -z "$ac_cv_path_SED"; then
7236 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7237 fi
7238 else
7239 ac_cv_path_SED=$SED
7240 fi
7241
7242 fi
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7244 $as_echo "$ac_cv_path_SED" >&6; }
7245 SED="$ac_cv_path_SED"
7246 rm -f conftest.sed
7247
7248
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7250 $as_echo_n "checking whether NLS is requested... " >&6; }
7251 # Check whether --enable-nls was given.
7252 if test "${enable_nls+set}" = set; then :
7253 enableval=$enable_nls; USE_NLS=$enableval
7254 else
7255 USE_NLS=yes
7256 fi
7257
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7259 $as_echo "$USE_NLS" >&6; }
7260
7261
7262
7263
7264 GETTEXT_MACRO_VERSION=0.19
7265
7266
7267
7268
7269 # Prepare PATH_SEPARATOR.
7270 # The user is always right.
7271 if test "${PATH_SEPARATOR+set}" != set; then
7272 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7273 # contains only /bin. Note that ksh looks also at the FPATH variable,
7274 # so we have to set that as well for the test.
7275 PATH_SEPARATOR=:
7276 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7277 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7278 || PATH_SEPARATOR=';'
7279 }
7280 fi
7281
7282 # Find out how to test for executable files. Don't use a zero-byte file,
7283 # as systems may use methods other than mode bits to determine executability.
7284 cat >conf$$.file <<_ASEOF
7285 #! /bin/sh
7286 exit 0
7287 _ASEOF
7288 chmod +x conf$$.file
7289 if test -x conf$$.file >/dev/null 2>&1; then
7290 ac_executable_p="test -x"
7291 else
7292 ac_executable_p="test -f"
7293 fi
7294 rm -f conf$$.file
7295
7296 # Extract the first word of "msgfmt", so it can be a program name with args.
7297 set dummy msgfmt; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if ${ac_cv_path_MSGFMT+:} false; then :
7301 $as_echo_n "(cached) " >&6
7302 else
7303 case "$MSGFMT" in
7304 [\\/]* | ?:[\\/]*)
7305 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7306 ;;
7307 *)
7308 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7309 for ac_dir in $PATH; do
7310 IFS="$ac_save_IFS"
7311 test -z "$ac_dir" && ac_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7314 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7315 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7316 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7317 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7318 break 2
7319 fi
7320 fi
7321 done
7322 done
7323 IFS="$ac_save_IFS"
7324 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7325 ;;
7326 esac
7327 fi
7328 MSGFMT="$ac_cv_path_MSGFMT"
7329 if test "$MSGFMT" != ":"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7331 $as_echo "$MSGFMT" >&6; }
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336
7337 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7338 set dummy gmsgfmt; ac_word=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if ${ac_cv_path_GMSGFMT+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 case $GMSGFMT in
7345 [\\/]* | ?:[\\/]*)
7346 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7347 ;;
7348 *)
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360 done
7361 done
7362 IFS=$as_save_IFS
7363
7364 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7365 ;;
7366 esac
7367 fi
7368 GMSGFMT=$ac_cv_path_GMSGFMT
7369 if test -n "$GMSGFMT"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7371 $as_echo "$GMSGFMT" >&6; }
7372 else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376
7377
7378
7379 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7380 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7381 *) MSGFMT_015=$MSGFMT ;;
7382 esac
7383
7384 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7385 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7386 *) GMSGFMT_015=$GMSGFMT ;;
7387 esac
7388
7389
7390
7391 # Prepare PATH_SEPARATOR.
7392 # The user is always right.
7393 if test "${PATH_SEPARATOR+set}" != set; then
7394 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7395 # contains only /bin. Note that ksh looks also at the FPATH variable,
7396 # so we have to set that as well for the test.
7397 PATH_SEPARATOR=:
7398 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7399 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7400 || PATH_SEPARATOR=';'
7401 }
7402 fi
7403
7404 # Find out how to test for executable files. Don't use a zero-byte file,
7405 # as systems may use methods other than mode bits to determine executability.
7406 cat >conf$$.file <<_ASEOF
7407 #! /bin/sh
7408 exit 0
7409 _ASEOF
7410 chmod +x conf$$.file
7411 if test -x conf$$.file >/dev/null 2>&1; then
7412 ac_executable_p="test -x"
7413 else
7414 ac_executable_p="test -f"
7415 fi
7416 rm -f conf$$.file
7417
7418 # Extract the first word of "xgettext", so it can be a program name with args.
7419 set dummy xgettext; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if ${ac_cv_path_XGETTEXT+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 case "$XGETTEXT" in
7426 [\\/]* | ?:[\\/]*)
7427 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7428 ;;
7429 *)
7430 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7431 for ac_dir in $PATH; do
7432 IFS="$ac_save_IFS"
7433 test -z "$ac_dir" && ac_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7436 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7437 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7438 (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
7439 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7440 break 2
7441 fi
7442 fi
7443 done
7444 done
7445 IFS="$ac_save_IFS"
7446 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7447 ;;
7448 esac
7449 fi
7450 XGETTEXT="$ac_cv_path_XGETTEXT"
7451 if test "$XGETTEXT" != ":"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7453 $as_echo "$XGETTEXT" >&6; }
7454 else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7457 fi
7458
7459 rm -f messages.po
7460
7461 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7462 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7463 *) XGETTEXT_015=$XGETTEXT ;;
7464 esac
7465
7466
7467
7468 # Prepare PATH_SEPARATOR.
7469 # The user is always right.
7470 if test "${PATH_SEPARATOR+set}" != set; then
7471 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7472 # contains only /bin. Note that ksh looks also at the FPATH variable,
7473 # so we have to set that as well for the test.
7474 PATH_SEPARATOR=:
7475 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7476 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7477 || PATH_SEPARATOR=';'
7478 }
7479 fi
7480
7481 # Find out how to test for executable files. Don't use a zero-byte file,
7482 # as systems may use methods other than mode bits to determine executability.
7483 cat >conf$$.file <<_ASEOF
7484 #! /bin/sh
7485 exit 0
7486 _ASEOF
7487 chmod +x conf$$.file
7488 if test -x conf$$.file >/dev/null 2>&1; then
7489 ac_executable_p="test -x"
7490 else
7491 ac_executable_p="test -f"
7492 fi
7493 rm -f conf$$.file
7494
7495 # Extract the first word of "msgmerge", so it can be a program name with args.
7496 set dummy msgmerge; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_path_MSGMERGE+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 case "$MSGMERGE" in
7503 [\\/]* | ?:[\\/]*)
7504 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7505 ;;
7506 *)
7507 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7508 for ac_dir in $PATH; do
7509 IFS="$ac_save_IFS"
7510 test -z "$ac_dir" && ac_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7513 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7514 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7515 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7516 break 2
7517 fi
7518 fi
7519 done
7520 done
7521 IFS="$ac_save_IFS"
7522 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7523 ;;
7524 esac
7525 fi
7526 MSGMERGE="$ac_cv_path_MSGMERGE"
7527 if test "$MSGMERGE" != ":"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7529 $as_echo "$MSGMERGE" >&6; }
7530 else
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535
7536 test -n "$localedir" || localedir='${datadir}/locale'
7537
7538
7539 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7540
7541
7542 ac_config_commands="$ac_config_commands po-directories"
7543
7544
7545
7546 if test "X$prefix" = "XNONE"; then
7547 acl_final_prefix="$ac_default_prefix"
7548 else
7549 acl_final_prefix="$prefix"
7550 fi
7551 if test "X$exec_prefix" = "XNONE"; then
7552 acl_final_exec_prefix='${prefix}'
7553 else
7554 acl_final_exec_prefix="$exec_prefix"
7555 fi
7556 acl_save_prefix="$prefix"
7557 prefix="$acl_final_prefix"
7558 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7559 prefix="$acl_save_prefix"
7560
7561
7562
7563 # Check whether --with-gnu-ld was given.
7564 if test "${with_gnu_ld+set}" = set; then :
7565 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7566 else
7567 with_gnu_ld=no
7568 fi
7569
7570 # Prepare PATH_SEPARATOR.
7571 # The user is always right.
7572 if test "${PATH_SEPARATOR+set}" != set; then
7573 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7574 # contains only /bin. Note that ksh looks also at the FPATH variable,
7575 # so we have to set that as well for the test.
7576 PATH_SEPARATOR=:
7577 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7578 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7579 || PATH_SEPARATOR=';'
7580 }
7581 fi
7582
7583 ac_prog=ld
7584 if test "$GCC" = yes; then
7585 # Check if gcc -print-prog-name=ld gives a path.
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7587 $as_echo_n "checking for ld used by $CC... " >&6; }
7588 case $host in
7589 *-*-mingw*)
7590 # gcc leaves a trailing carriage return which upsets mingw
7591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7592 *)
7593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7594 esac
7595 case $ac_prog in
7596 # Accept absolute paths.
7597 [\\/]* | ?:[\\/]*)
7598 re_direlt='/[^/][^/]*/\.\./'
7599 # Canonicalize the pathname of ld
7600 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7601 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7602 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7603 done
7604 test -z "$LD" && LD="$ac_prog"
7605 ;;
7606 "")
7607 # If it fails, then pretend we aren't using GCC.
7608 ac_prog=ld
7609 ;;
7610 *)
7611 # If it is relative, then search for the first ld in PATH.
7612 with_gnu_ld=unknown
7613 ;;
7614 esac
7615 elif test "$with_gnu_ld" = yes; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7617 $as_echo_n "checking for GNU ld... " >&6; }
7618 else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7620 $as_echo_n "checking for non-GNU ld... " >&6; }
7621 fi
7622 if ${acl_cv_path_LD+:} false; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 if test -z "$LD"; then
7626 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7627 for ac_dir in $PATH; do
7628 IFS="$acl_save_ifs"
7629 test -z "$ac_dir" && ac_dir=.
7630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7631 acl_cv_path_LD="$ac_dir/$ac_prog"
7632 # Check to see if the program is GNU ld. I'd rather use --version,
7633 # but apparently some variants of GNU ld only accept -v.
7634 # Break only if it was the GNU/non-GNU ld that we prefer.
7635 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7636 *GNU* | *'with BFD'*)
7637 test "$with_gnu_ld" != no && break
7638 ;;
7639 *)
7640 test "$with_gnu_ld" != yes && break
7641 ;;
7642 esac
7643 fi
7644 done
7645 IFS="$acl_save_ifs"
7646 else
7647 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7648 fi
7649 fi
7650
7651 LD="$acl_cv_path_LD"
7652 if test -n "$LD"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7654 $as_echo "$LD" >&6; }
7655 else
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7658 fi
7659 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7661 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7662 if ${acl_cv_prog_gnu_ld+:} false; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7666 case `$LD -v 2>&1 </dev/null` in
7667 *GNU* | *'with BFD'*)
7668 acl_cv_prog_gnu_ld=yes
7669 ;;
7670 *)
7671 acl_cv_prog_gnu_ld=no
7672 ;;
7673 esac
7674 fi
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7676 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7677 with_gnu_ld=$acl_cv_prog_gnu_ld
7678
7679
7680
7681
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7683 $as_echo_n "checking for shared library run path origin... " >&6; }
7684 if ${acl_cv_rpath+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687
7688 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7689 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7690 . ./conftest.sh
7691 rm -f ./conftest.sh
7692 acl_cv_rpath=done
7693
7694 fi
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7696 $as_echo "$acl_cv_rpath" >&6; }
7697 wl="$acl_cv_wl"
7698 acl_libext="$acl_cv_libext"
7699 acl_shlibext="$acl_cv_shlibext"
7700 acl_libname_spec="$acl_cv_libname_spec"
7701 acl_library_names_spec="$acl_cv_library_names_spec"
7702 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7703 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7704 acl_hardcode_direct="$acl_cv_hardcode_direct"
7705 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7706 # Check whether --enable-rpath was given.
7707 if test "${enable_rpath+set}" = set; then :
7708 enableval=$enable_rpath; :
7709 else
7710 enable_rpath=yes
7711 fi
7712
7713
7714
7715
7716 acl_libdirstem=lib
7717 acl_libdirstem2=
7718 case "$host_os" in
7719 solaris*)
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7721 $as_echo_n "checking for 64-bit host... " >&6; }
7722 if ${gl_cv_solaris_64bit+:} false; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727
7728 #ifdef _LP64
7729 sixtyfour bits
7730 #endif
7731
7732 _ACEOF
7733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7734 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7735 gl_cv_solaris_64bit=yes
7736 else
7737 gl_cv_solaris_64bit=no
7738 fi
7739 rm -f conftest*
7740
7741
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7744 $as_echo "$gl_cv_solaris_64bit" >&6; }
7745 if test $gl_cv_solaris_64bit = yes; then
7746 acl_libdirstem=lib/64
7747 case "$host_cpu" in
7748 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7749 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7750 esac
7751 fi
7752 ;;
7753 *)
7754 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7755 if test -n "$searchpath"; then
7756 acl_save_IFS="${IFS= }"; IFS=":"
7757 for searchdir in $searchpath; do
7758 if test -d "$searchdir"; then
7759 case "$searchdir" in
7760 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7761 */../ | */.. )
7762 # Better ignore directories of this form. They are misleading.
7763 ;;
7764 *) searchdir=`cd "$searchdir" && pwd`
7765 case "$searchdir" in
7766 */lib64 ) acl_libdirstem=lib64 ;;
7767 esac ;;
7768 esac
7769 fi
7770 done
7771 IFS="$acl_save_IFS"
7772 fi
7773 ;;
7774 esac
7775 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788 use_additional=yes
7789
7790 acl_save_prefix="$prefix"
7791 prefix="$acl_final_prefix"
7792 acl_save_exec_prefix="$exec_prefix"
7793 exec_prefix="$acl_final_exec_prefix"
7794
7795 eval additional_includedir=\"$includedir\"
7796 eval additional_libdir=\"$libdir\"
7797
7798 exec_prefix="$acl_save_exec_prefix"
7799 prefix="$acl_save_prefix"
7800
7801
7802 # Check whether --with-libiconv-prefix was given.
7803 if test "${with_libiconv_prefix+set}" = set; then :
7804 withval=$with_libiconv_prefix;
7805 if test "X$withval" = "Xno"; then
7806 use_additional=no
7807 else
7808 if test "X$withval" = "X"; then
7809
7810 acl_save_prefix="$prefix"
7811 prefix="$acl_final_prefix"
7812 acl_save_exec_prefix="$exec_prefix"
7813 exec_prefix="$acl_final_exec_prefix"
7814
7815 eval additional_includedir=\"$includedir\"
7816 eval additional_libdir=\"$libdir\"
7817
7818 exec_prefix="$acl_save_exec_prefix"
7819 prefix="$acl_save_prefix"
7820
7821 else
7822 additional_includedir="$withval/include"
7823 additional_libdir="$withval/$acl_libdirstem"
7824 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7825 && ! test -d "$withval/$acl_libdirstem"; then
7826 additional_libdir="$withval/$acl_libdirstem2"
7827 fi
7828 fi
7829 fi
7830
7831 fi
7832
7833 LIBICONV=
7834 LTLIBICONV=
7835 INCICONV=
7836 LIBICONV_PREFIX=
7837 HAVE_LIBICONV=
7838 rpathdirs=
7839 ltrpathdirs=
7840 names_already_handled=
7841 names_next_round='iconv '
7842 while test -n "$names_next_round"; do
7843 names_this_round="$names_next_round"
7844 names_next_round=
7845 for name in $names_this_round; do
7846 already_handled=
7847 for n in $names_already_handled; do
7848 if test "$n" = "$name"; then
7849 already_handled=yes
7850 break
7851 fi
7852 done
7853 if test -z "$already_handled"; then
7854 names_already_handled="$names_already_handled $name"
7855 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7856 eval value=\"\$HAVE_LIB$uppername\"
7857 if test -n "$value"; then
7858 if test "$value" = yes; then
7859 eval value=\"\$LIB$uppername\"
7860 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7861 eval value=\"\$LTLIB$uppername\"
7862 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7863 else
7864 :
7865 fi
7866 else
7867 found_dir=
7868 found_la=
7869 found_so=
7870 found_a=
7871 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7872 if test -n "$acl_shlibext"; then
7873 shrext=".$acl_shlibext" # typically: shrext=.so
7874 else
7875 shrext=
7876 fi
7877 if test $use_additional = yes; then
7878 dir="$additional_libdir"
7879 if test -n "$acl_shlibext"; then
7880 if test -f "$dir/$libname$shrext"; then
7881 found_dir="$dir"
7882 found_so="$dir/$libname$shrext"
7883 else
7884 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7885 ver=`(cd "$dir" && \
7886 for f in "$libname$shrext".*; do echo "$f"; done \
7887 | sed -e "s,^$libname$shrext\\\\.,," \
7888 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7889 | sed 1q ) 2>/dev/null`
7890 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7891 found_dir="$dir"
7892 found_so="$dir/$libname$shrext.$ver"
7893 fi
7894 else
7895 eval library_names=\"$acl_library_names_spec\"
7896 for f in $library_names; do
7897 if test -f "$dir/$f"; then
7898 found_dir="$dir"
7899 found_so="$dir/$f"
7900 break
7901 fi
7902 done
7903 fi
7904 fi
7905 fi
7906 if test "X$found_dir" = "X"; then
7907 if test -f "$dir/$libname.$acl_libext"; then
7908 found_dir="$dir"
7909 found_a="$dir/$libname.$acl_libext"
7910 fi
7911 fi
7912 if test "X$found_dir" != "X"; then
7913 if test -f "$dir/$libname.la"; then
7914 found_la="$dir/$libname.la"
7915 fi
7916 fi
7917 fi
7918 if test "X$found_dir" = "X"; then
7919 for x in $LDFLAGS $LTLIBICONV; do
7920
7921 acl_save_prefix="$prefix"
7922 prefix="$acl_final_prefix"
7923 acl_save_exec_prefix="$exec_prefix"
7924 exec_prefix="$acl_final_exec_prefix"
7925 eval x=\"$x\"
7926 exec_prefix="$acl_save_exec_prefix"
7927 prefix="$acl_save_prefix"
7928
7929 case "$x" in
7930 -L*)
7931 dir=`echo "X$x" | sed -e 's/^X-L//'`
7932 if test -n "$acl_shlibext"; then
7933 if test -f "$dir/$libname$shrext"; then
7934 found_dir="$dir"
7935 found_so="$dir/$libname$shrext"
7936 else
7937 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7938 ver=`(cd "$dir" && \
7939 for f in "$libname$shrext".*; do echo "$f"; done \
7940 | sed -e "s,^$libname$shrext\\\\.,," \
7941 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7942 | sed 1q ) 2>/dev/null`
7943 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7944 found_dir="$dir"
7945 found_so="$dir/$libname$shrext.$ver"
7946 fi
7947 else
7948 eval library_names=\"$acl_library_names_spec\"
7949 for f in $library_names; do
7950 if test -f "$dir/$f"; then
7951 found_dir="$dir"
7952 found_so="$dir/$f"
7953 break
7954 fi
7955 done
7956 fi
7957 fi
7958 fi
7959 if test "X$found_dir" = "X"; then
7960 if test -f "$dir/$libname.$acl_libext"; then
7961 found_dir="$dir"
7962 found_a="$dir/$libname.$acl_libext"
7963 fi
7964 fi
7965 if test "X$found_dir" != "X"; then
7966 if test -f "$dir/$libname.la"; then
7967 found_la="$dir/$libname.la"
7968 fi
7969 fi
7970 ;;
7971 esac
7972 if test "X$found_dir" != "X"; then
7973 break
7974 fi
7975 done
7976 fi
7977 if test "X$found_dir" != "X"; then
7978 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7979 if test "X$found_so" != "X"; then
7980 if test "$enable_rpath" = no \
7981 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7982 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7983 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7984 else
7985 haveit=
7986 for x in $ltrpathdirs; do
7987 if test "X$x" = "X$found_dir"; then
7988 haveit=yes
7989 break
7990 fi
7991 done
7992 if test -z "$haveit"; then
7993 ltrpathdirs="$ltrpathdirs $found_dir"
7994 fi
7995 if test "$acl_hardcode_direct" = yes; then
7996 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7997 else
7998 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7999 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8000 haveit=
8001 for x in $rpathdirs; do
8002 if test "X$x" = "X$found_dir"; then
8003 haveit=yes
8004 break
8005 fi
8006 done
8007 if test -z "$haveit"; then
8008 rpathdirs="$rpathdirs $found_dir"
8009 fi
8010 else
8011 haveit=
8012 for x in $LDFLAGS $LIBICONV; do
8013
8014 acl_save_prefix="$prefix"
8015 prefix="$acl_final_prefix"
8016 acl_save_exec_prefix="$exec_prefix"
8017 exec_prefix="$acl_final_exec_prefix"
8018 eval x=\"$x\"
8019 exec_prefix="$acl_save_exec_prefix"
8020 prefix="$acl_save_prefix"
8021
8022 if test "X$x" = "X-L$found_dir"; then
8023 haveit=yes
8024 break
8025 fi
8026 done
8027 if test -z "$haveit"; then
8028 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8029 fi
8030 if test "$acl_hardcode_minus_L" != no; then
8031 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8032 else
8033 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8034 fi
8035 fi
8036 fi
8037 fi
8038 else
8039 if test "X$found_a" != "X"; then
8040 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8041 else
8042 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8043 fi
8044 fi
8045 additional_includedir=
8046 case "$found_dir" in
8047 */$acl_libdirstem | */$acl_libdirstem/)
8048 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8049 if test "$name" = 'iconv'; then
8050 LIBICONV_PREFIX="$basedir"
8051 fi
8052 additional_includedir="$basedir/include"
8053 ;;
8054 */$acl_libdirstem2 | */$acl_libdirstem2/)
8055 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8056 if test "$name" = 'iconv'; then
8057 LIBICONV_PREFIX="$basedir"
8058 fi
8059 additional_includedir="$basedir/include"
8060 ;;
8061 esac
8062 if test "X$additional_includedir" != "X"; then
8063 if test "X$additional_includedir" != "X/usr/include"; then
8064 haveit=
8065 if test "X$additional_includedir" = "X/usr/local/include"; then
8066 if test -n "$GCC"; then
8067 case $host_os in
8068 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8069 esac
8070 fi
8071 fi
8072 if test -z "$haveit"; then
8073 for x in $CPPFLAGS $INCICONV; do
8074
8075 acl_save_prefix="$prefix"
8076 prefix="$acl_final_prefix"
8077 acl_save_exec_prefix="$exec_prefix"
8078 exec_prefix="$acl_final_exec_prefix"
8079 eval x=\"$x\"
8080 exec_prefix="$acl_save_exec_prefix"
8081 prefix="$acl_save_prefix"
8082
8083 if test "X$x" = "X-I$additional_includedir"; then
8084 haveit=yes
8085 break
8086 fi
8087 done
8088 if test -z "$haveit"; then
8089 if test -d "$additional_includedir"; then
8090 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8091 fi
8092 fi
8093 fi
8094 fi
8095 fi
8096 if test -n "$found_la"; then
8097 save_libdir="$libdir"
8098 case "$found_la" in
8099 */* | *\\*) . "$found_la" ;;
8100 *) . "./$found_la" ;;
8101 esac
8102 libdir="$save_libdir"
8103 for dep in $dependency_libs; do
8104 case "$dep" in
8105 -L*)
8106 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8107 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8108 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8109 haveit=
8110 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8111 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8112 if test -n "$GCC"; then
8113 case $host_os in
8114 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8115 esac
8116 fi
8117 fi
8118 if test -z "$haveit"; then
8119 haveit=
8120 for x in $LDFLAGS $LIBICONV; do
8121
8122 acl_save_prefix="$prefix"
8123 prefix="$acl_final_prefix"
8124 acl_save_exec_prefix="$exec_prefix"
8125 exec_prefix="$acl_final_exec_prefix"
8126 eval x=\"$x\"
8127 exec_prefix="$acl_save_exec_prefix"
8128 prefix="$acl_save_prefix"
8129
8130 if test "X$x" = "X-L$additional_libdir"; then
8131 haveit=yes
8132 break
8133 fi
8134 done
8135 if test -z "$haveit"; then
8136 if test -d "$additional_libdir"; then
8137 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8138 fi
8139 fi
8140 haveit=
8141 for x in $LDFLAGS $LTLIBICONV; do
8142
8143 acl_save_prefix="$prefix"
8144 prefix="$acl_final_prefix"
8145 acl_save_exec_prefix="$exec_prefix"
8146 exec_prefix="$acl_final_exec_prefix"
8147 eval x=\"$x\"
8148 exec_prefix="$acl_save_exec_prefix"
8149 prefix="$acl_save_prefix"
8150
8151 if test "X$x" = "X-L$additional_libdir"; then
8152 haveit=yes
8153 break
8154 fi
8155 done
8156 if test -z "$haveit"; then
8157 if test -d "$additional_libdir"; then
8158 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8159 fi
8160 fi
8161 fi
8162 fi
8163 ;;
8164 -R*)
8165 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8166 if test "$enable_rpath" != no; then
8167 haveit=
8168 for x in $rpathdirs; do
8169 if test "X$x" = "X$dir"; then
8170 haveit=yes
8171 break
8172 fi
8173 done
8174 if test -z "$haveit"; then
8175 rpathdirs="$rpathdirs $dir"
8176 fi
8177 haveit=
8178 for x in $ltrpathdirs; do
8179 if test "X$x" = "X$dir"; then
8180 haveit=yes
8181 break
8182 fi
8183 done
8184 if test -z "$haveit"; then
8185 ltrpathdirs="$ltrpathdirs $dir"
8186 fi
8187 fi
8188 ;;
8189 -l*)
8190 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8191 ;;
8192 *.la)
8193 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8194 ;;
8195 *)
8196 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8197 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8198 ;;
8199 esac
8200 done
8201 fi
8202 else
8203 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8204 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8205 fi
8206 fi
8207 fi
8208 done
8209 done
8210 if test "X$rpathdirs" != "X"; then
8211 if test -n "$acl_hardcode_libdir_separator"; then
8212 alldirs=
8213 for found_dir in $rpathdirs; do
8214 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8215 done
8216 acl_save_libdir="$libdir"
8217 libdir="$alldirs"
8218 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8219 libdir="$acl_save_libdir"
8220 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8221 else
8222 for found_dir in $rpathdirs; do
8223 acl_save_libdir="$libdir"
8224 libdir="$found_dir"
8225 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8226 libdir="$acl_save_libdir"
8227 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8228 done
8229 fi
8230 fi
8231 if test "X$ltrpathdirs" != "X"; then
8232 for found_dir in $ltrpathdirs; do
8233 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8234 done
8235 fi
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8268 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8269 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8270 $as_echo_n "(cached) " >&6
8271 else
8272 gt_save_LIBS="$LIBS"
8273 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8276 #include <CoreFoundation/CFPreferences.h>
8277 int
8278 main ()
8279 {
8280 CFPreferencesCopyAppValue(NULL, NULL)
8281 ;
8282 return 0;
8283 }
8284 _ACEOF
8285 if ac_fn_c_try_link "$LINENO"; then :
8286 gt_cv_func_CFPreferencesCopyAppValue=yes
8287 else
8288 gt_cv_func_CFPreferencesCopyAppValue=no
8289 fi
8290 rm -f core conftest.err conftest.$ac_objext \
8291 conftest$ac_exeext conftest.$ac_ext
8292 LIBS="$gt_save_LIBS"
8293 fi
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8295 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8296 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8297
8298 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8299
8300 fi
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8302 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8303 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 gt_save_LIBS="$LIBS"
8307 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8310 #include <CoreFoundation/CFLocale.h>
8311 int
8312 main ()
8313 {
8314 CFLocaleCopyCurrent();
8315 ;
8316 return 0;
8317 }
8318 _ACEOF
8319 if ac_fn_c_try_link "$LINENO"; then :
8320 gt_cv_func_CFLocaleCopyCurrent=yes
8321 else
8322 gt_cv_func_CFLocaleCopyCurrent=no
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext \
8325 conftest$ac_exeext conftest.$ac_ext
8326 LIBS="$gt_save_LIBS"
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8329 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8330 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8331
8332 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8333
8334 fi
8335 INTL_MACOSX_LIBS=
8336 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8337 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8338 fi
8339
8340
8341
8342
8343
8344
8345 LIBINTL=
8346 LTLIBINTL=
8347 POSUB=
8348
8349 case " $gt_needs " in
8350 *" need-formatstring-macros "*) gt_api_version=3 ;;
8351 *" need-ngettext "*) gt_api_version=2 ;;
8352 *) gt_api_version=1 ;;
8353 esac
8354 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8355 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8356
8357 if test "$USE_NLS" = "yes"; then
8358 gt_use_preinstalled_gnugettext=no
8359
8360
8361 if test $gt_api_version -ge 3; then
8362 gt_revision_test_code='
8363 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8364 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8365 #endif
8366 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8367 '
8368 else
8369 gt_revision_test_code=
8370 fi
8371 if test $gt_api_version -ge 2; then
8372 gt_expression_test_code=' + * ngettext ("", "", 0)'
8373 else
8374 gt_expression_test_code=
8375 fi
8376
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8378 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8379 if eval \${$gt_func_gnugettext_libc+:} false; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384
8385 #include <libintl.h>
8386 $gt_revision_test_code
8387 extern int _nl_msg_cat_cntr;
8388 extern int *_nl_domain_bindings;
8389
8390 int
8391 main ()
8392 {
8393
8394 bindtextdomain ("", "");
8395 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
8396
8397 ;
8398 return 0;
8399 }
8400 _ACEOF
8401 if ac_fn_c_try_link "$LINENO"; then :
8402 eval "$gt_func_gnugettext_libc=yes"
8403 else
8404 eval "$gt_func_gnugettext_libc=no"
8405 fi
8406 rm -f core conftest.err conftest.$ac_objext \
8407 conftest$ac_exeext conftest.$ac_ext
8408 fi
8409 eval ac_res=\$$gt_func_gnugettext_libc
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8411 $as_echo "$ac_res" >&6; }
8412
8413 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8414
8415
8416
8417
8418
8419 am_save_CPPFLAGS="$CPPFLAGS"
8420
8421 for element in $INCICONV; do
8422 haveit=
8423 for x in $CPPFLAGS; do
8424
8425 acl_save_prefix="$prefix"
8426 prefix="$acl_final_prefix"
8427 acl_save_exec_prefix="$exec_prefix"
8428 exec_prefix="$acl_final_exec_prefix"
8429 eval x=\"$x\"
8430 exec_prefix="$acl_save_exec_prefix"
8431 prefix="$acl_save_prefix"
8432
8433 if test "X$x" = "X$element"; then
8434 haveit=yes
8435 break
8436 fi
8437 done
8438 if test -z "$haveit"; then
8439 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8440 fi
8441 done
8442
8443
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8445 $as_echo_n "checking for iconv... " >&6; }
8446 if ${am_cv_func_iconv+:} false; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449
8450 am_cv_func_iconv="no, consider installing GNU libiconv"
8451 am_cv_lib_iconv=no
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454
8455 #include <stdlib.h>
8456 #include <iconv.h>
8457
8458 int
8459 main ()
8460 {
8461 iconv_t cd = iconv_open("","");
8462 iconv(cd,NULL,NULL,NULL,NULL);
8463 iconv_close(cd);
8464 ;
8465 return 0;
8466 }
8467 _ACEOF
8468 if ac_fn_c_try_link "$LINENO"; then :
8469 am_cv_func_iconv=yes
8470 fi
8471 rm -f core conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
8473 if test "$am_cv_func_iconv" != yes; then
8474 am_save_LIBS="$LIBS"
8475 LIBS="$LIBS $LIBICONV"
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8478
8479 #include <stdlib.h>
8480 #include <iconv.h>
8481
8482 int
8483 main ()
8484 {
8485 iconv_t cd = iconv_open("","");
8486 iconv(cd,NULL,NULL,NULL,NULL);
8487 iconv_close(cd);
8488 ;
8489 return 0;
8490 }
8491 _ACEOF
8492 if ac_fn_c_try_link "$LINENO"; then :
8493 am_cv_lib_iconv=yes
8494 am_cv_func_iconv=yes
8495 fi
8496 rm -f core conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext conftest.$ac_ext
8498 LIBS="$am_save_LIBS"
8499 fi
8500
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8503 $as_echo "$am_cv_func_iconv" >&6; }
8504 if test "$am_cv_func_iconv" = yes; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8506 $as_echo_n "checking for working iconv... " >&6; }
8507 if ${am_cv_func_iconv_works+:} false; then :
8508 $as_echo_n "(cached) " >&6
8509 else
8510
8511 am_save_LIBS="$LIBS"
8512 if test $am_cv_lib_iconv = yes; then
8513 LIBS="$LIBS $LIBICONV"
8514 fi
8515 am_cv_func_iconv_works=no
8516 for ac_iconv_const in '' 'const'; do
8517 if test "$cross_compiling" = yes; then :
8518 case "$host_os" in
8519 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8520 *) am_cv_func_iconv_works="guessing yes" ;;
8521 esac
8522 else
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525
8526 #include <iconv.h>
8527 #include <string.h>
8528
8529 #ifndef ICONV_CONST
8530 # define ICONV_CONST $ac_iconv_const
8531 #endif
8532
8533 int
8534 main ()
8535 {
8536 int result = 0;
8537 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8538 returns. */
8539 {
8540 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8541 if (cd_utf8_to_88591 != (iconv_t)(-1))
8542 {
8543 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8544 char buf[10];
8545 ICONV_CONST char *inptr = input;
8546 size_t inbytesleft = strlen (input);
8547 char *outptr = buf;
8548 size_t outbytesleft = sizeof (buf);
8549 size_t res = iconv (cd_utf8_to_88591,
8550 &inptr, &inbytesleft,
8551 &outptr, &outbytesleft);
8552 if (res == 0)
8553 result |= 1;
8554 iconv_close (cd_utf8_to_88591);
8555 }
8556 }
8557 /* Test against Solaris 10 bug: Failures are not distinguishable from
8558 successful returns. */
8559 {
8560 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8561 if (cd_ascii_to_88591 != (iconv_t)(-1))
8562 {
8563 static ICONV_CONST char input[] = "\263";
8564 char buf[10];
8565 ICONV_CONST char *inptr = input;
8566 size_t inbytesleft = strlen (input);
8567 char *outptr = buf;
8568 size_t outbytesleft = sizeof (buf);
8569 size_t res = iconv (cd_ascii_to_88591,
8570 &inptr, &inbytesleft,
8571 &outptr, &outbytesleft);
8572 if (res == 0)
8573 result |= 2;
8574 iconv_close (cd_ascii_to_88591);
8575 }
8576 }
8577 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8578 {
8579 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8580 if (cd_88591_to_utf8 != (iconv_t)(-1))
8581 {
8582 static ICONV_CONST char input[] = "\304";
8583 static char buf[2] = { (char)0xDE, (char)0xAD };
8584 ICONV_CONST char *inptr = input;
8585 size_t inbytesleft = 1;
8586 char *outptr = buf;
8587 size_t outbytesleft = 1;
8588 size_t res = iconv (cd_88591_to_utf8,
8589 &inptr, &inbytesleft,
8590 &outptr, &outbytesleft);
8591 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8592 result |= 4;
8593 iconv_close (cd_88591_to_utf8);
8594 }
8595 }
8596 #if 0 /* This bug could be worked around by the caller. */
8597 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8598 {
8599 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8600 if (cd_88591_to_utf8 != (iconv_t)(-1))
8601 {
8602 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8603 char buf[50];
8604 ICONV_CONST char *inptr = input;
8605 size_t inbytesleft = strlen (input);
8606 char *outptr = buf;
8607 size_t outbytesleft = sizeof (buf);
8608 size_t res = iconv (cd_88591_to_utf8,
8609 &inptr, &inbytesleft,
8610 &outptr, &outbytesleft);
8611 if ((int)res > 0)
8612 result |= 8;
8613 iconv_close (cd_88591_to_utf8);
8614 }
8615 }
8616 #endif
8617 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8618 provided. */
8619 if (/* Try standardized names. */
8620 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8621 /* Try IRIX, OSF/1 names. */
8622 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8623 /* Try AIX names. */
8624 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8625 /* Try HP-UX names. */
8626 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8627 result |= 16;
8628 return result;
8629
8630 ;
8631 return 0;
8632 }
8633 _ACEOF
8634 if ac_fn_c_try_run "$LINENO"; then :
8635 am_cv_func_iconv_works=yes
8636 fi
8637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8638 conftest.$ac_objext conftest.beam conftest.$ac_ext
8639 fi
8640
8641 test "$am_cv_func_iconv_works" = no || break
8642 done
8643 LIBS="$am_save_LIBS"
8644
8645 fi
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8647 $as_echo "$am_cv_func_iconv_works" >&6; }
8648 case "$am_cv_func_iconv_works" in
8649 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8650 *) am_func_iconv=yes ;;
8651 esac
8652 else
8653 am_func_iconv=no am_cv_lib_iconv=no
8654 fi
8655 if test "$am_func_iconv" = yes; then
8656
8657 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8658
8659 fi
8660 if test "$am_cv_lib_iconv" = yes; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8662 $as_echo_n "checking how to link with libiconv... " >&6; }
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8664 $as_echo "$LIBICONV" >&6; }
8665 else
8666 CPPFLAGS="$am_save_CPPFLAGS"
8667 LIBICONV=
8668 LTLIBICONV=
8669 fi
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681 use_additional=yes
8682
8683 acl_save_prefix="$prefix"
8684 prefix="$acl_final_prefix"
8685 acl_save_exec_prefix="$exec_prefix"
8686 exec_prefix="$acl_final_exec_prefix"
8687
8688 eval additional_includedir=\"$includedir\"
8689 eval additional_libdir=\"$libdir\"
8690
8691 exec_prefix="$acl_save_exec_prefix"
8692 prefix="$acl_save_prefix"
8693
8694
8695 # Check whether --with-libintl-prefix was given.
8696 if test "${with_libintl_prefix+set}" = set; then :
8697 withval=$with_libintl_prefix;
8698 if test "X$withval" = "Xno"; then
8699 use_additional=no
8700 else
8701 if test "X$withval" = "X"; then
8702
8703 acl_save_prefix="$prefix"
8704 prefix="$acl_final_prefix"
8705 acl_save_exec_prefix="$exec_prefix"
8706 exec_prefix="$acl_final_exec_prefix"
8707
8708 eval additional_includedir=\"$includedir\"
8709 eval additional_libdir=\"$libdir\"
8710
8711 exec_prefix="$acl_save_exec_prefix"
8712 prefix="$acl_save_prefix"
8713
8714 else
8715 additional_includedir="$withval/include"
8716 additional_libdir="$withval/$acl_libdirstem"
8717 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8718 && ! test -d "$withval/$acl_libdirstem"; then
8719 additional_libdir="$withval/$acl_libdirstem2"
8720 fi
8721 fi
8722 fi
8723
8724 fi
8725
8726 LIBINTL=
8727 LTLIBINTL=
8728 INCINTL=
8729 LIBINTL_PREFIX=
8730 HAVE_LIBINTL=
8731 rpathdirs=
8732 ltrpathdirs=
8733 names_already_handled=
8734 names_next_round='intl '
8735 while test -n "$names_next_round"; do
8736 names_this_round="$names_next_round"
8737 names_next_round=
8738 for name in $names_this_round; do
8739 already_handled=
8740 for n in $names_already_handled; do
8741 if test "$n" = "$name"; then
8742 already_handled=yes
8743 break
8744 fi
8745 done
8746 if test -z "$already_handled"; then
8747 names_already_handled="$names_already_handled $name"
8748 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8749 eval value=\"\$HAVE_LIB$uppername\"
8750 if test -n "$value"; then
8751 if test "$value" = yes; then
8752 eval value=\"\$LIB$uppername\"
8753 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8754 eval value=\"\$LTLIB$uppername\"
8755 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8756 else
8757 :
8758 fi
8759 else
8760 found_dir=
8761 found_la=
8762 found_so=
8763 found_a=
8764 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8765 if test -n "$acl_shlibext"; then
8766 shrext=".$acl_shlibext" # typically: shrext=.so
8767 else
8768 shrext=
8769 fi
8770 if test $use_additional = yes; then
8771 dir="$additional_libdir"
8772 if test -n "$acl_shlibext"; then
8773 if test -f "$dir/$libname$shrext"; then
8774 found_dir="$dir"
8775 found_so="$dir/$libname$shrext"
8776 else
8777 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8778 ver=`(cd "$dir" && \
8779 for f in "$libname$shrext".*; do echo "$f"; done \
8780 | sed -e "s,^$libname$shrext\\\\.,," \
8781 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8782 | sed 1q ) 2>/dev/null`
8783 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8784 found_dir="$dir"
8785 found_so="$dir/$libname$shrext.$ver"
8786 fi
8787 else
8788 eval library_names=\"$acl_library_names_spec\"
8789 for f in $library_names; do
8790 if test -f "$dir/$f"; then
8791 found_dir="$dir"
8792 found_so="$dir/$f"
8793 break
8794 fi
8795 done
8796 fi
8797 fi
8798 fi
8799 if test "X$found_dir" = "X"; then
8800 if test -f "$dir/$libname.$acl_libext"; then
8801 found_dir="$dir"
8802 found_a="$dir/$libname.$acl_libext"
8803 fi
8804 fi
8805 if test "X$found_dir" != "X"; then
8806 if test -f "$dir/$libname.la"; then
8807 found_la="$dir/$libname.la"
8808 fi
8809 fi
8810 fi
8811 if test "X$found_dir" = "X"; then
8812 for x in $LDFLAGS $LTLIBINTL; do
8813
8814 acl_save_prefix="$prefix"
8815 prefix="$acl_final_prefix"
8816 acl_save_exec_prefix="$exec_prefix"
8817 exec_prefix="$acl_final_exec_prefix"
8818 eval x=\"$x\"
8819 exec_prefix="$acl_save_exec_prefix"
8820 prefix="$acl_save_prefix"
8821
8822 case "$x" in
8823 -L*)
8824 dir=`echo "X$x" | sed -e 's/^X-L//'`
8825 if test -n "$acl_shlibext"; then
8826 if test -f "$dir/$libname$shrext"; then
8827 found_dir="$dir"
8828 found_so="$dir/$libname$shrext"
8829 else
8830 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8831 ver=`(cd "$dir" && \
8832 for f in "$libname$shrext".*; do echo "$f"; done \
8833 | sed -e "s,^$libname$shrext\\\\.,," \
8834 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8835 | sed 1q ) 2>/dev/null`
8836 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8837 found_dir="$dir"
8838 found_so="$dir/$libname$shrext.$ver"
8839 fi
8840 else
8841 eval library_names=\"$acl_library_names_spec\"
8842 for f in $library_names; do
8843 if test -f "$dir/$f"; then
8844 found_dir="$dir"
8845 found_so="$dir/$f"
8846 break
8847 fi
8848 done
8849 fi
8850 fi
8851 fi
8852 if test "X$found_dir" = "X"; then
8853 if test -f "$dir/$libname.$acl_libext"; then
8854 found_dir="$dir"
8855 found_a="$dir/$libname.$acl_libext"
8856 fi
8857 fi
8858 if test "X$found_dir" != "X"; then
8859 if test -f "$dir/$libname.la"; then
8860 found_la="$dir/$libname.la"
8861 fi
8862 fi
8863 ;;
8864 esac
8865 if test "X$found_dir" != "X"; then
8866 break
8867 fi
8868 done
8869 fi
8870 if test "X$found_dir" != "X"; then
8871 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8872 if test "X$found_so" != "X"; then
8873 if test "$enable_rpath" = no \
8874 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8875 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8876 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8877 else
8878 haveit=
8879 for x in $ltrpathdirs; do
8880 if test "X$x" = "X$found_dir"; then
8881 haveit=yes
8882 break
8883 fi
8884 done
8885 if test -z "$haveit"; then
8886 ltrpathdirs="$ltrpathdirs $found_dir"
8887 fi
8888 if test "$acl_hardcode_direct" = yes; then
8889 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8890 else
8891 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8892 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8893 haveit=
8894 for x in $rpathdirs; do
8895 if test "X$x" = "X$found_dir"; then
8896 haveit=yes
8897 break
8898 fi
8899 done
8900 if test -z "$haveit"; then
8901 rpathdirs="$rpathdirs $found_dir"
8902 fi
8903 else
8904 haveit=
8905 for x in $LDFLAGS $LIBINTL; do
8906
8907 acl_save_prefix="$prefix"
8908 prefix="$acl_final_prefix"
8909 acl_save_exec_prefix="$exec_prefix"
8910 exec_prefix="$acl_final_exec_prefix"
8911 eval x=\"$x\"
8912 exec_prefix="$acl_save_exec_prefix"
8913 prefix="$acl_save_prefix"
8914
8915 if test "X$x" = "X-L$found_dir"; then
8916 haveit=yes
8917 break
8918 fi
8919 done
8920 if test -z "$haveit"; then
8921 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8922 fi
8923 if test "$acl_hardcode_minus_L" != no; then
8924 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8925 else
8926 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8927 fi
8928 fi
8929 fi
8930 fi
8931 else
8932 if test "X$found_a" != "X"; then
8933 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8934 else
8935 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8936 fi
8937 fi
8938 additional_includedir=
8939 case "$found_dir" in
8940 */$acl_libdirstem | */$acl_libdirstem/)
8941 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8942 if test "$name" = 'intl'; then
8943 LIBINTL_PREFIX="$basedir"
8944 fi
8945 additional_includedir="$basedir/include"
8946 ;;
8947 */$acl_libdirstem2 | */$acl_libdirstem2/)
8948 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8949 if test "$name" = 'intl'; then
8950 LIBINTL_PREFIX="$basedir"
8951 fi
8952 additional_includedir="$basedir/include"
8953 ;;
8954 esac
8955 if test "X$additional_includedir" != "X"; then
8956 if test "X$additional_includedir" != "X/usr/include"; then
8957 haveit=
8958 if test "X$additional_includedir" = "X/usr/local/include"; then
8959 if test -n "$GCC"; then
8960 case $host_os in
8961 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8962 esac
8963 fi
8964 fi
8965 if test -z "$haveit"; then
8966 for x in $CPPFLAGS $INCINTL; do
8967
8968 acl_save_prefix="$prefix"
8969 prefix="$acl_final_prefix"
8970 acl_save_exec_prefix="$exec_prefix"
8971 exec_prefix="$acl_final_exec_prefix"
8972 eval x=\"$x\"
8973 exec_prefix="$acl_save_exec_prefix"
8974 prefix="$acl_save_prefix"
8975
8976 if test "X$x" = "X-I$additional_includedir"; then
8977 haveit=yes
8978 break
8979 fi
8980 done
8981 if test -z "$haveit"; then
8982 if test -d "$additional_includedir"; then
8983 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8984 fi
8985 fi
8986 fi
8987 fi
8988 fi
8989 if test -n "$found_la"; then
8990 save_libdir="$libdir"
8991 case "$found_la" in
8992 */* | *\\*) . "$found_la" ;;
8993 *) . "./$found_la" ;;
8994 esac
8995 libdir="$save_libdir"
8996 for dep in $dependency_libs; do
8997 case "$dep" in
8998 -L*)
8999 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9000 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9001 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9002 haveit=
9003 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9004 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9005 if test -n "$GCC"; then
9006 case $host_os in
9007 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9008 esac
9009 fi
9010 fi
9011 if test -z "$haveit"; then
9012 haveit=
9013 for x in $LDFLAGS $LIBINTL; do
9014
9015 acl_save_prefix="$prefix"
9016 prefix="$acl_final_prefix"
9017 acl_save_exec_prefix="$exec_prefix"
9018 exec_prefix="$acl_final_exec_prefix"
9019 eval x=\"$x\"
9020 exec_prefix="$acl_save_exec_prefix"
9021 prefix="$acl_save_prefix"
9022
9023 if test "X$x" = "X-L$additional_libdir"; then
9024 haveit=yes
9025 break
9026 fi
9027 done
9028 if test -z "$haveit"; then
9029 if test -d "$additional_libdir"; then
9030 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9031 fi
9032 fi
9033 haveit=
9034 for x in $LDFLAGS $LTLIBINTL; do
9035
9036 acl_save_prefix="$prefix"
9037 prefix="$acl_final_prefix"
9038 acl_save_exec_prefix="$exec_prefix"
9039 exec_prefix="$acl_final_exec_prefix"
9040 eval x=\"$x\"
9041 exec_prefix="$acl_save_exec_prefix"
9042 prefix="$acl_save_prefix"
9043
9044 if test "X$x" = "X-L$additional_libdir"; then
9045 haveit=yes
9046 break
9047 fi
9048 done
9049 if test -z "$haveit"; then
9050 if test -d "$additional_libdir"; then
9051 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9052 fi
9053 fi
9054 fi
9055 fi
9056 ;;
9057 -R*)
9058 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9059 if test "$enable_rpath" != no; then
9060 haveit=
9061 for x in $rpathdirs; do
9062 if test "X$x" = "X$dir"; then
9063 haveit=yes
9064 break
9065 fi
9066 done
9067 if test -z "$haveit"; then
9068 rpathdirs="$rpathdirs $dir"
9069 fi
9070 haveit=
9071 for x in $ltrpathdirs; do
9072 if test "X$x" = "X$dir"; then
9073 haveit=yes
9074 break
9075 fi
9076 done
9077 if test -z "$haveit"; then
9078 ltrpathdirs="$ltrpathdirs $dir"
9079 fi
9080 fi
9081 ;;
9082 -l*)
9083 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9084 ;;
9085 *.la)
9086 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9087 ;;
9088 *)
9089 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9090 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9091 ;;
9092 esac
9093 done
9094 fi
9095 else
9096 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9097 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9098 fi
9099 fi
9100 fi
9101 done
9102 done
9103 if test "X$rpathdirs" != "X"; then
9104 if test -n "$acl_hardcode_libdir_separator"; then
9105 alldirs=
9106 for found_dir in $rpathdirs; do
9107 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9108 done
9109 acl_save_libdir="$libdir"
9110 libdir="$alldirs"
9111 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9112 libdir="$acl_save_libdir"
9113 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9114 else
9115 for found_dir in $rpathdirs; do
9116 acl_save_libdir="$libdir"
9117 libdir="$found_dir"
9118 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9119 libdir="$acl_save_libdir"
9120 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9121 done
9122 fi
9123 fi
9124 if test "X$ltrpathdirs" != "X"; then
9125 for found_dir in $ltrpathdirs; do
9126 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9127 done
9128 fi
9129
9130
9131
9132
9133
9134
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9136 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9137 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9138 $as_echo_n "(cached) " >&6
9139 else
9140 gt_save_CPPFLAGS="$CPPFLAGS"
9141 CPPFLAGS="$CPPFLAGS $INCINTL"
9142 gt_save_LIBS="$LIBS"
9143 LIBS="$LIBS $LIBINTL"
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146
9147 #include <libintl.h>
9148 $gt_revision_test_code
9149 extern int _nl_msg_cat_cntr;
9150 extern
9151 #ifdef __cplusplus
9152 "C"
9153 #endif
9154 const char *_nl_expand_alias (const char *);
9155
9156 int
9157 main ()
9158 {
9159
9160 bindtextdomain ("", "");
9161 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9162
9163 ;
9164 return 0;
9165 }
9166 _ACEOF
9167 if ac_fn_c_try_link "$LINENO"; then :
9168 eval "$gt_func_gnugettext_libintl=yes"
9169 else
9170 eval "$gt_func_gnugettext_libintl=no"
9171 fi
9172 rm -f core conftest.err conftest.$ac_objext \
9173 conftest$ac_exeext conftest.$ac_ext
9174 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9175 LIBS="$LIBS $LIBICONV"
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178
9179 #include <libintl.h>
9180 $gt_revision_test_code
9181 extern int _nl_msg_cat_cntr;
9182 extern
9183 #ifdef __cplusplus
9184 "C"
9185 #endif
9186 const char *_nl_expand_alias (const char *);
9187
9188 int
9189 main ()
9190 {
9191
9192 bindtextdomain ("", "");
9193 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9194
9195 ;
9196 return 0;
9197 }
9198 _ACEOF
9199 if ac_fn_c_try_link "$LINENO"; then :
9200 LIBINTL="$LIBINTL $LIBICONV"
9201 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9202 eval "$gt_func_gnugettext_libintl=yes"
9203
9204 fi
9205 rm -f core conftest.err conftest.$ac_objext \
9206 conftest$ac_exeext conftest.$ac_ext
9207 fi
9208 CPPFLAGS="$gt_save_CPPFLAGS"
9209 LIBS="$gt_save_LIBS"
9210 fi
9211 eval ac_res=\$$gt_func_gnugettext_libintl
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9213 $as_echo "$ac_res" >&6; }
9214 fi
9215
9216 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9217 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9218 && test "$PACKAGE" != gettext-runtime \
9219 && test "$PACKAGE" != gettext-tools; }; then
9220 gt_use_preinstalled_gnugettext=yes
9221 else
9222 LIBINTL=
9223 LTLIBINTL=
9224 INCINTL=
9225 fi
9226
9227
9228
9229 if test -n "$INTL_MACOSX_LIBS"; then
9230 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9231 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9232 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9233 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9234 fi
9235 fi
9236
9237 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9238 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9239
9240 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9241
9242 else
9243 USE_NLS=no
9244 fi
9245 fi
9246
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9248 $as_echo_n "checking whether to use NLS... " >&6; }
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9250 $as_echo "$USE_NLS" >&6; }
9251 if test "$USE_NLS" = "yes"; then
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9253 $as_echo_n "checking where the gettext function comes from... " >&6; }
9254 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9255 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9256 gt_source="external libintl"
9257 else
9258 gt_source="libc"
9259 fi
9260 else
9261 gt_source="included intl directory"
9262 fi
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9264 $as_echo "$gt_source" >&6; }
9265 fi
9266
9267 if test "$USE_NLS" = "yes"; then
9268
9269 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9270 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9272 $as_echo_n "checking how to link with libintl... " >&6; }
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9274 $as_echo "$LIBINTL" >&6; }
9275
9276 for element in $INCINTL; do
9277 haveit=
9278 for x in $CPPFLAGS; do
9279
9280 acl_save_prefix="$prefix"
9281 prefix="$acl_final_prefix"
9282 acl_save_exec_prefix="$exec_prefix"
9283 exec_prefix="$acl_final_exec_prefix"
9284 eval x=\"$x\"
9285 exec_prefix="$acl_save_exec_prefix"
9286 prefix="$acl_save_prefix"
9287
9288 if test "X$x" = "X$element"; then
9289 haveit=yes
9290 break
9291 fi
9292 done
9293 if test -z "$haveit"; then
9294 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9295 fi
9296 done
9297
9298 fi
9299
9300
9301 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9302
9303
9304 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9305
9306 fi
9307
9308 POSUB=po
9309 fi
9310
9311
9312
9313 INTLLIBS="$LIBINTL"
9314
9315
9316
9317
9318
9319
9320
9321
9322 if test "x$GMSGFMT" = "x:"; then
9323 as_fn_error $? "missing gnu /usr/bin/msgfmt" "$LINENO" 5
9324 fi
9325
9326 if test "${enable_prologues+set}" != set; then
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5
9328 $as_echo_n "checking to see if prologue searching should be the default... " >&6; }
9329 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
9330 echo ' yes '
9331 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9332 enable_prologues=yes
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9334 $as_echo "yes" >&6; }
9335 else
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337 $as_echo "no" >&6; }
9338 fi
9339 fi
9340 # Check whether --enable-prologues was given.
9341 if test "${enable_prologues+set}" = set; then :
9342 enableval=$enable_prologues;
9343 if test "$enable_prologues" = yes; then
9344
9345 $as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h
9346
9347 fi
9348 fi
9349
9350
9351
9352 if test "${enable_sdt_probes+set}" != set; then
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5
9354 $as_echo_n "checking to see if sdt probes should be the default... " >&6; }
9355 if { echo '#if __GNUC__ < 4'
9356 echo ' yes '
9357 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9358 enable_sdt_probes=no
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 $as_echo "no" >&6; }
9361 else
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9363 $as_echo "yes" >&6; }
9364 fi
9365 fi
9366 # Check whether --enable-sdt-probes was given.
9367 if test "${enable_sdt_probes+set}" = set; then :
9368 enableval=$enable_sdt_probes;
9369 fi
9370
9371 if test "x$enable_sdt_probes" != xno; then :
9372
9373
9374 $as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h
9375
9376
9377 fi
9378
9379 # Check whether --enable-ssp was given.
9380 if test "${enable_ssp+set}" = set; then :
9381 enableval=$enable_ssp;
9382 fi
9383
9384 if test "x$enable_ssp" != xno; then :
9385
9386 save_CFLAGS="$CFLAGS"
9387 save_CXXFLAGS="$CXXFLAGS"
9388 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
9389 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9392 int something ();
9393 _ACEOF
9394 if ac_fn_c_try_compile "$LINENO"; then :
9395
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
9397 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
9398 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
9399 CXXFLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
9400 else
9401
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
9403 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
9404 CFLAGS="$save_CFLAGS"
9405 CXXFLAGS="$save_CXXFLAGS"
9406 fi
9407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 fi
9409
9410
9411
9412
9413 # Compiling without fPIE by default (see PR 9922)
9414 # Check whether --enable-pie was given.
9415 if test "${enable_pie+set}" = set; then :
9416 enableval=$enable_pie;
9417 fi
9418
9419 if test "x$enable_pie" == xyes; then :
9420
9421 PIECFLAGS='-fPIE'
9422 PIECXXFLAGS='-fPIE'
9423 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
9424 save_CFLAGS="$CFLAGS"
9425 save_CXXFLAGS="$CXXFLAGS"
9426 save_LDFLAGS="$LDFLAGS"
9427 CFLAGS="$CFLAGS $PIECFLAGS"
9428 CXXFLAGS="$CXXFLAGS $PIECXXFLAGS"
9429 LDFLAGS="$LDFLAGS $PIELDFLAGS"
9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9432 void main () {}
9433 _ACEOF
9434 if ac_fn_c_try_link "$LINENO"; then :
9435
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
9437 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
9438
9439 else
9440
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
9442 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
9443 PIECFLAGS=""
9444 PIECXXFLAGS=""
9445 PIELDFLAGS=""
9446
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
9450 CFLAGS="$save_CFLAGS"
9451 CXXFLAGS="$save_CXXFLAGS"
9452 LDFLAGS="$save_LDFLAGS"
9453
9454 fi
9455
9456
9457
9458
9459 # Check whether --enable-sqlite was given.
9460 if test "${enable_sqlite+set}" = set; then :
9461 enableval=$enable_sqlite;
9462 else
9463 enable_sqlite=check
9464 fi
9465 sqlite3_LIBS=
9466 if test "x$enable_sqlite" != xno; then :
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
9468 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
9469 if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 ac_check_lib_save_LIBS=$LIBS
9473 LIBS="-lsqlite3 $LIBS"
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476
9477 /* Override any GCC internal prototype to avoid an error.
9478 Use char because int might match the return type of a GCC
9479 builtin and then its argument prototype would still apply. */
9480 #ifdef __cplusplus
9481 extern "C"
9482 #endif
9483 char sqlite3_open ();
9484 int
9485 main ()
9486 {
9487 return sqlite3_open ();
9488 ;
9489 return 0;
9490 }
9491 _ACEOF
9492 if ac_fn_c_try_link "$LINENO"; then :
9493 ac_cv_lib_sqlite3_sqlite3_open=yes
9494 else
9495 ac_cv_lib_sqlite3_sqlite3_open=no
9496 fi
9497 rm -f core conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_check_lib_save_LIBS
9500 fi
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
9502 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
9503 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
9504 sqlite3_LIBS=-lsqlite3
9505
9506
9507 $as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h
9508
9509 else
9510 if test "x$enable_sqlite" != xcheck; then
9511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9513 as_fn_error $? "--enable-sqlite was given, but test for sqlite failed
9514 See \`config.log' for more details" "$LINENO" 5; }
9515 fi
9516 fi
9517
9518 fi
9519
9520 # Check whether --enable-translator was given.
9521 if test "${enable_translator+set}" = set; then :
9522 enableval=$enable_translator;
9523 else
9524 enable_translator="yes"
9525 fi
9526
9527 if test "$enable_translator" == "yes"; then
9528 BUILD_TRANSLATOR_TRUE=
9529 BUILD_TRANSLATOR_FALSE='#'
9530 else
9531 BUILD_TRANSLATOR_TRUE='#'
9532 BUILD_TRANSLATOR_FALSE=
9533 fi
9534
9535
9536 # Check whether --enable-crash was given.
9537 if test "${enable_crash+set}" = set; then :
9538 enableval=$enable_crash; if test "$enable_crash" != "no"; then
9539 save_CPPFLAGS="$CPPFLAGS"
9540 if test "$enable_crash" != "yes"; then
9541 staplog_CPPFLAGS=-I$enable_crash
9542 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
9543
9544 fi
9545 for ac_header in crash/defs.h
9546 do :
9547 ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" "
9548 #define NR_CPUS 256
9549
9550 "
9551 if test "x$ac_cv_header_crash_defs_h" = xyes; then :
9552 cat >>confdefs.h <<_ACEOF
9553 #define HAVE_CRASH_DEFS_H 1
9554 _ACEOF
9555
9556 else
9557 as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5
9558 fi
9559
9560 done
9561
9562 CPPFLAGS="$save_CPPFLAGS"
9563 fi
9564 else
9565 enable_crash="no"
9566 fi
9567
9568 if test "$enable_crash" != "no"; then
9569 BUILD_CRASHMOD_TRUE=
9570 BUILD_CRASHMOD_FALSE='#'
9571 else
9572 BUILD_CRASHMOD_TRUE='#'
9573 BUILD_CRASHMOD_FALSE=
9574 fi
9575
9576
9577 building_docs="no"
9578 # Check whether --enable-docs was given.
9579 if test "${enable_docs+set}" = set; then :
9580 enableval=$enable_docs; enable_docs=$enableval
9581 else
9582 enable_docs="check"
9583 fi
9584
9585 # Extract the first word of "latex", so it can be a program name with args.
9586 set dummy latex; ac_word=$2
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9588 $as_echo_n "checking for $ac_word... " >&6; }
9589 if ${ac_cv_prog_have_latex+:} false; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 if test -n "$have_latex"; then
9593 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
9594 else
9595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 for as_dir in $PATH
9597 do
9598 IFS=$as_save_IFS
9599 test -z "$as_dir" && as_dir=.
9600 for ac_exec_ext in '' $ac_executable_extensions; do
9601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9602 ac_cv_prog_have_latex="yes"
9603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604 break 2
9605 fi
9606 done
9607 done
9608 IFS=$as_save_IFS
9609
9610 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
9611 fi
9612 fi
9613 have_latex=$ac_cv_prog_have_latex
9614 if test -n "$have_latex"; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5
9616 $as_echo "$have_latex" >&6; }
9617 else
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9620 fi
9621
9622
9623 # Extract the first word of "dvips", so it can be a program name with args.
9624 set dummy dvips; ac_word=$2
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9626 $as_echo_n "checking for $ac_word... " >&6; }
9627 if ${ac_cv_prog_have_dvips+:} false; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 if test -n "$have_dvips"; then
9631 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
9632 else
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634 for as_dir in $PATH
9635 do
9636 IFS=$as_save_IFS
9637 test -z "$as_dir" && as_dir=.
9638 for ac_exec_ext in '' $ac_executable_extensions; do
9639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9640 ac_cv_prog_have_dvips="yes"
9641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9642 break 2
9643 fi
9644 done
9645 done
9646 IFS=$as_save_IFS
9647
9648 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
9649 fi
9650 fi
9651 have_dvips=$ac_cv_prog_have_dvips
9652 if test -n "$have_dvips"; then
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
9654 $as_echo "$have_dvips" >&6; }
9655 else
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657 $as_echo "no" >&6; }
9658 fi
9659
9660
9661 # Extract the first word of "ps2pdf", so it can be a program name with args.
9662 set dummy ps2pdf; ac_word=$2
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664 $as_echo_n "checking for $ac_word... " >&6; }
9665 if ${ac_cv_prog_have_ps2pdf+:} false; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 if test -n "$have_ps2pdf"; then
9669 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
9670 else
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 for as_dir in $PATH
9673 do
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9678 ac_cv_prog_have_ps2pdf="yes"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9681 fi
9682 done
9683 done
9684 IFS=$as_save_IFS
9685
9686 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
9687 fi
9688 fi
9689 have_ps2pdf=$ac_cv_prog_have_ps2pdf
9690 if test -n "$have_ps2pdf"; then
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5
9692 $as_echo "$have_ps2pdf" >&6; }
9693 else
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695 $as_echo "no" >&6; }
9696 fi
9697
9698
9699 # Extract the first word of "latex2html", so it can be a program name with args.
9700 set dummy latex2html; ac_word=$2
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702 $as_echo_n "checking for $ac_word... " >&6; }
9703 if ${ac_cv_prog_have_latex2html+:} false; then :
9704 $as_echo_n "(cached) " >&6
9705 else
9706 if test -n "$have_latex2html"; then
9707 ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test.
9708 else
9709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in $PATH
9711 do
9712 IFS=$as_save_IFS
9713 test -z "$as_dir" && as_dir=.
9714 for ac_exec_ext in '' $ac_executable_extensions; do
9715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9716 ac_cv_prog_have_latex2html="yes"
9717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718 break 2
9719 fi
9720 done
9721 done
9722 IFS=$as_save_IFS
9723
9724 test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no"
9725 fi
9726 fi
9727 have_latex2html=$ac_cv_prog_have_latex2html
9728 if test -n "$have_latex2html"; then
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex2html" >&5
9730 $as_echo "$have_latex2html" >&6; }
9731 else
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 $as_echo "no" >&6; }
9734 fi
9735
9736
9737 if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then
9738 if test "$enable_docs" == "yes"; then
9739 as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5
9740 fi
9741 if test "$enable_docs" == "check"; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5
9743 $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
9744 fi
9745 fi
9746 if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then
9747 building_docs="yes"
9748 fi
9749 if test "$building_docs" == "yes"; then
9750 BUILD_DOCS_TRUE=
9751 BUILD_DOCS_FALSE='#'
9752 else
9753 BUILD_DOCS_TRUE='#'
9754 BUILD_DOCS_FALSE=
9755 fi
9756
9757
9758
9759 building_refdocs="no"
9760 # Check whether --enable-refdocs was given.
9761 if test "${enable_refdocs+set}" = set; then :
9762 enableval=$enable_refdocs; enable_refdocs=$enableval
9763 else
9764 enable_refdocs="check"
9765 fi
9766
9767 if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
9768 as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5
9769 fi
9770 # Extract the first word of "xmlto", so it can be a program name with args.
9771 set dummy xmlto; ac_word=$2
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 $as_echo_n "checking for $ac_word... " >&6; }
9774 if ${ac_cv_prog_have_xmlto+:} false; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 if test -n "$have_xmlto"; then
9778 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
9779 else
9780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 for as_dir in $PATH
9782 do
9783 IFS=$as_save_IFS
9784 test -z "$as_dir" && as_dir=.
9785 for ac_exec_ext in '' $ac_executable_extensions; do
9786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9787 ac_cv_prog_have_xmlto="yes"
9788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9789 break 2
9790 fi
9791 done
9792 done
9793 IFS=$as_save_IFS
9794
9795 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
9796 fi
9797 fi
9798 have_xmlto=$ac_cv_prog_have_xmlto
9799 if test -n "$have_xmlto"; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
9801 $as_echo "$have_xmlto" >&6; }
9802 else
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9805 fi
9806
9807
9808 if test "$enable_refdocs" == "yes"; then
9809 if test "x${have_xmlto}" != "xyes"; then
9810 as_fn_error $? "cannot find xmlto for building reference documentation" "$LINENO" 5
9811 fi
9812 fi
9813 if test "x${have_xmlto}" == "xyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
9814 building_refdocs="yes"
9815 fi
9816 if test "$building_refdocs" == "yes"; then
9817 BUILD_REFDOCS_TRUE=
9818 BUILD_REFDOCS_FALSE='#'
9819 else
9820 BUILD_REFDOCS_TRUE='#'
9821 BUILD_REFDOCS_FALSE=
9822 fi
9823
9824
9825 # Extract the first word of "fop", so it can be a program name with args.
9826 set dummy fop; ac_word=$2
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9828 $as_echo_n "checking for $ac_word... " >&6; }
9829 if ${ac_cv_prog_have_fop+:} false; then :
9830 $as_echo_n "(cached) " >&6
9831 else
9832 if test -n "$have_fop"; then
9833 ac_cv_prog_have_fop="$have_fop" # Let the user override the test.
9834 else
9835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836 for as_dir in $PATH
9837 do
9838 IFS=$as_save_IFS
9839 test -z "$as_dir" && as_dir=.
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9842 ac_cv_prog_have_fop="yes"
9843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9844 break 2
9845 fi
9846 done
9847 done
9848 IFS=$as_save_IFS
9849
9850 test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no"
9851 fi
9852 fi
9853 have_fop=$ac_cv_prog_have_fop
9854 if test -n "$have_fop"; then
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5
9856 $as_echo "$have_fop" >&6; }
9857 else
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859 $as_echo "no" >&6; }
9860 fi
9861
9862
9863 if test "x${have_fop}" == "xyes"; then
9864 # Due to rhbz505364 / 830266, we must actually test-run fop, not just
9865 # hope that it works.
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5
9867 $as_echo_n "checking to see if xmlto --with-fop actually works... " >&6; }
9868 if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9870 $as_echo "yes" >&6; }
9871 else
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5
9873 $as_echo "it's dead, Jim" >&6; }
9874 have_fop="broken"
9875 fi
9876 rm -f dummy-tapsets.pdf
9877 fi
9878 if test "$have_fop" == "yes"; then
9879 HAVE_FOP_TRUE=
9880 HAVE_FOP_FALSE='#'
9881 else
9882 HAVE_FOP_TRUE='#'
9883 HAVE_FOP_FALSE=
9884 fi
9885
9886 if test "$have_xmlto" == "yes"; then
9887 HAVE_XMLTO_TRUE=
9888 HAVE_XMLTO_FALSE='#'
9889 else
9890 HAVE_XMLTO_TRUE='#'
9891 HAVE_XMLTO_FALSE=
9892 fi
9893
9894
9895 cat > conftest.xml << 'EOF'
9896 <?xml version="1.0" encoding="UTF-8"?>
9897 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
9898 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
9899 <book lang="en">
9900 <bookinfo><title>foo</title></bookinfo>
9901 <chapter id="logging.stp"><title>Logging Tapset</title>
9902 <refentry id="API-log"><refnamediv><refname>log</refname>
9903 <refpurpose>logging</refpurpose></refnamediv>
9904 <refsect1><title>Description</title>
9905 <para>baz</para></refsect1></refentry></chapter>
9906 </book>
9907 EOF
9908
9909 if test "x${have_xmlto}" == "xyes"; then
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5
9911 $as_echo_n "checking for xmlto --stringparam support... " >&6; }
9912 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
9913 if test $? == 0; then
9914 have_xmlto_stringparam="yes"
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9916 $as_echo "yes" >&6; }
9917 else
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9920 fi
9921 rm -f conftest.html
9922 fi
9923 if test "$have_xmlto_stringparam" == "yes"; then
9924 XMLTO_STRINGPARAM_TRUE=
9925 XMLTO_STRINGPARAM_FALSE='#'
9926 else
9927 XMLTO_STRINGPARAM_TRUE='#'
9928 XMLTO_STRINGPARAM_FALSE=
9929 fi
9930
9931
9932 if test "x${building_refdocs}" == "xyes"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto pdf support" >&5
9934 $as_echo_n "checking for xmlto pdf support... " >&6; }
9935 # xmlto pdf may work *only* with --with-fop
9936 # XXX: To an extent this test is redundant in that the --with-fop test
9937 # already ran xmlto --with-fop pdf ....
9938 if test "x$have_fop" == "xyes"; then
9939 XMLTOPDF_FOP=--with-fop
9940 else
9941 XMLTOPDF_FOP=
9942 fi
9943 xmlto $XMLTOPDF_FOP pdf conftest.xml >& /dev/null
9944 if test $? == 0; then
9945 have_xmlto_pdf="yes"
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9947 $as_echo "yes" >&6; }
9948 else
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950 $as_echo "no" >&6; }
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building reference documentation in PDF format" >&5
9952 $as_echo "$as_me: WARNING: Not building reference documentation in PDF format" >&2;}
9953 fi
9954 rm -f conftest.pdf
9955 fi
9956 if test "$have_xmlto_pdf" == "yes"; then
9957 BUILD_PDFREFDOCS_TRUE=
9958 BUILD_PDFREFDOCS_FALSE='#'
9959 else
9960 BUILD_PDFREFDOCS_TRUE='#'
9961 BUILD_PDFREFDOCS_FALSE=
9962 fi
9963
9964
9965 rm -f conftest.xml
9966
9967
9968 # Check whether --with-nss was given.
9969 if test "${with_nss+set}" = set; then :
9970 withval=$with_nss;
9971 fi
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9982 if test -n "$ac_tool_prefix"; then
9983 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9984 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986 $as_echo_n "checking for $ac_word... " >&6; }
9987 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 case $PKG_CONFIG in
9991 [\\/]* | ?:[\\/]*)
9992 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9993 ;;
9994 *)
9995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996 for as_dir in $PATH
9997 do
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10002 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 break 2
10005 fi
10006 done
10007 done
10008 IFS=$as_save_IFS
10009
10010 ;;
10011 esac
10012 fi
10013 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10014 if test -n "$PKG_CONFIG"; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10016 $as_echo "$PKG_CONFIG" >&6; }
10017 else
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10020 fi
10021
10022
10023 fi
10024 if test -z "$ac_cv_path_PKG_CONFIG"; then
10025 ac_pt_PKG_CONFIG=$PKG_CONFIG
10026 # Extract the first word of "pkg-config", so it can be a program name with args.
10027 set dummy pkg-config; ac_word=$2
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10029 $as_echo_n "checking for $ac_word... " >&6; }
10030 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10031 $as_echo_n "(cached) " >&6
10032 else
10033 case $ac_pt_PKG_CONFIG in
10034 [\\/]* | ?:[\\/]*)
10035 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10036 ;;
10037 *)
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in $PATH
10040 do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10045 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 break 2
10048 fi
10049 done
10050 done
10051 IFS=$as_save_IFS
10052
10053 ;;
10054 esac
10055 fi
10056 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10057 if test -n "$ac_pt_PKG_CONFIG"; then
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10059 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10060 else
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062 $as_echo "no" >&6; }
10063 fi
10064
10065 if test "x$ac_pt_PKG_CONFIG" = x; then
10066 PKG_CONFIG=""
10067 else
10068 case $cross_compiling:$ac_tool_warned in
10069 yes:)
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10072 ac_tool_warned=yes ;;
10073 esac
10074 PKG_CONFIG=$ac_pt_PKG_CONFIG
10075 fi
10076 else
10077 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10078 fi
10079
10080 fi
10081 if test -n "$PKG_CONFIG"; then
10082 _pkg_min_version=0.9.0
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10084 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10085 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10087 $as_echo "yes" >&6; }
10088 else
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10090 $as_echo "no" >&6; }
10091 PKG_CONFIG=""
10092 fi
10093 fi
10094 if test "x$with_nss" != "xno"; then :
10095
10096
10097 pkg_failed=no
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
10099 $as_echo_n "checking for nss... " >&6; }
10100
10101 if test -n "$nss_CFLAGS"; then
10102 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
10103 elif test -n "$PKG_CONFIG"; then
10104 if test -n "$PKG_CONFIG" && \
10105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10106 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10107 ac_status=$?
10108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10109 test $ac_status = 0; }; then
10110 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null`
10111 test "x$?" != "x0" && pkg_failed=yes
10112 else
10113 pkg_failed=yes
10114 fi
10115 else
10116 pkg_failed=untried
10117 fi
10118 if test -n "$nss_LIBS"; then
10119 pkg_cv_nss_LIBS="$nss_LIBS"
10120 elif test -n "$PKG_CONFIG"; then
10121 if test -n "$PKG_CONFIG" && \
10122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10123 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10124 ac_status=$?
10125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10126 test $ac_status = 0; }; then
10127 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null`
10128 test "x$?" != "x0" && pkg_failed=yes
10129 else
10130 pkg_failed=yes
10131 fi
10132 else
10133 pkg_failed=untried
10134 fi
10135
10136
10137
10138 if test $pkg_failed = yes; then
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10141
10142 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10143 _pkg_short_errors_supported=yes
10144 else
10145 _pkg_short_errors_supported=no
10146 fi
10147 if test $_pkg_short_errors_supported = yes; then
10148 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1`
10149 else
10150 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1`
10151 fi
10152 # Put the nasty error message in config.log where it belongs
10153 echo "$nss_PKG_ERRORS" >&5
10154
10155 have_nss=no
10156 elif test $pkg_failed = untried; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10159 have_nss=no
10160 else
10161 nss_CFLAGS=$pkg_cv_nss_CFLAGS
10162 nss_LIBS=$pkg_cv_nss_LIBS
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10164 $as_echo "yes" >&6; }
10165 have_nss=yes
10166
10167 $as_echo "#define HAVE_NSS 1" >>confdefs.h
10168
10169
10170 fi
10171
10172 else
10173 have_nss=no
10174 fi
10175
10176 if test "${have_nss}" = "yes"; then
10177 HAVE_NSS_TRUE=
10178 HAVE_NSS_FALSE='#'
10179 else
10180 HAVE_NSS_TRUE='#'
10181 HAVE_NSS_FALSE=
10182 fi
10183
10184
10185
10186 # Check whether --with-dracutstap was given.
10187 if test "${with_dracutstap+set}" = set; then :
10188 withval=$with_dracutstap;
10189 fi
10190
10191 if test "x$with_dracutstap" != "x"; then :
10192 dracutstap="$with_dracutstap"
10193 else
10194 dracutstap=/usr/lib/dracut/modules.d/99stap
10195 fi
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut module directory $dracutstap" >&5
10197 $as_echo "$as_me: using dracut module directory $dracutstap" >&6;}
10198
10199
10200 # Check whether --enable-server was given.
10201 if test "${enable_server+set}" = set; then :
10202 enableval=$enable_server; enable_server=$enableval
10203 else
10204 enable_server="check"
10205 fi
10206
10207
10208 if test "$enable_server" != "no"; then
10209 if test "x${have_nss}" != "xyes"; then
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5
10211 $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;}
10212 fi
10213 fi
10214 if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then
10215 BUILD_SERVER_TRUE=
10216 BUILD_SERVER_FALSE='#'
10217 else
10218 BUILD_SERVER_TRUE='#'
10219 BUILD_SERVER_FALSE=
10220 fi
10221
10222
10223 if test "${have_nss}" != "yes"; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5
10225 $as_echo "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;}
10226 fi
10227
10228
10229 # Check whether --with-avahi was given.
10230 if test "${with_avahi+set}" = set; then :
10231 withval=$with_avahi;
10232 fi
10233
10234
10235 if test "x$with_avahi" != "xno"; then :
10236
10237
10238 pkg_failed=no
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
10240 $as_echo_n "checking for avahi... " >&6; }
10241
10242 if test -n "$avahi_CFLAGS"; then
10243 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
10244 elif test -n "$PKG_CONFIG"; then
10245 if test -n "$PKG_CONFIG" && \
10246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
10247 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
10248 ac_status=$?
10249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10250 test $ac_status = 0; }; then
10251 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
10252 test "x$?" != "x0" && pkg_failed=yes
10253 else
10254 pkg_failed=yes
10255 fi
10256 else
10257 pkg_failed=untried
10258 fi
10259 if test -n "$avahi_LIBS"; then
10260 pkg_cv_avahi_LIBS="$avahi_LIBS"
10261 elif test -n "$PKG_CONFIG"; then
10262 if test -n "$PKG_CONFIG" && \
10263 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
10264 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
10265 ac_status=$?
10266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10267 test $ac_status = 0; }; then
10268 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
10269 test "x$?" != "x0" && pkg_failed=yes
10270 else
10271 pkg_failed=yes
10272 fi
10273 else
10274 pkg_failed=untried
10275 fi
10276
10277
10278
10279 if test $pkg_failed = yes; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10282
10283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10284 _pkg_short_errors_supported=yes
10285 else
10286 _pkg_short_errors_supported=no
10287 fi
10288 if test $_pkg_short_errors_supported = yes; then
10289 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
10290 else
10291 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
10292 fi
10293 # Put the nasty error message in config.log where it belongs
10294 echo "$avahi_PKG_ERRORS" >&5
10295
10296 have_avahi=no
10297 elif test $pkg_failed = untried; then
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10300 have_avahi=no
10301 else
10302 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
10303 avahi_LIBS=$pkg_cv_avahi_LIBS
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10305 $as_echo "yes" >&6; }
10306 have_avahi=yes
10307
10308 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
10309
10310
10311 fi
10312
10313 else
10314 have_avahi=no
10315 fi
10316
10317 if test "${have_avahi}" = "yes"; then
10318 HAVE_AVAHI_TRUE=
10319 HAVE_AVAHI_FALSE='#'
10320 else
10321 HAVE_AVAHI_TRUE='#'
10322 HAVE_AVAHI_FALSE=
10323 fi
10324
10325
10326 if test "${have_avahi}" != "yes"; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5
10328 $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;}
10329 fi
10330
10331
10332
10333 # Check whether --with-rpm was given.
10334 if test "${with_rpm+set}" = set; then :
10335 withval=$with_rpm;
10336 else
10337 with_rpm="auto"
10338 fi
10339
10340 if test "$with_rpm" != "no"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5
10342 $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; }
10343 if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-lrpm $LIBS"
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10350
10351 /* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 char rpmtsInitIterator ();
10358 int
10359 main ()
10360 {
10361 return rpmtsInitIterator ();
10362 ;
10363 return 0;
10364 }
10365 _ACEOF
10366 if ac_fn_c_try_link "$LINENO"; then :
10367 ac_cv_lib_rpm_rpmtsInitIterator=yes
10368 else
10369 ac_cv_lib_rpm_rpmtsInitIterator=no
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10374 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
10376 $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
10377 if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then :
10378
10379
10380 $as_echo "#define HAVE_LIBRPM 1" >>confdefs.h
10381
10382 stap_LIBS="$stap_LIBS -lc -lrpm"
10383 have_librpm="yes"
10384 else
10385 have_librpm="no"
10386 fi
10387
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5
10389 $as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; }
10390 if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 ac_check_lib_save_LIBS=$LIBS
10394 LIBS="-lrpmio $LIBS"
10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h. */
10397
10398 /* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
10401 #ifdef __cplusplus
10402 extern "C"
10403 #endif
10404 char rpmFreeCrypto ();
10405 int
10406 main ()
10407 {
10408 return rpmFreeCrypto ();
10409 ;
10410 return 0;
10411 }
10412 _ACEOF
10413 if ac_fn_c_try_link "$LINENO"; then :
10414 ac_cv_lib_rpmio_rpmFreeCrypto=yes
10415 else
10416 ac_cv_lib_rpmio_rpmFreeCrypto=no
10417 fi
10418 rm -f core conftest.err conftest.$ac_objext \
10419 conftest$ac_exeext conftest.$ac_ext
10420 LIBS=$ac_check_lib_save_LIBS
10421 fi
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5
10423 $as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; }
10424 if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then :
10425
10426
10427 $as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h
10428
10429 stap_LIBS="$stap_LIBS -lc -lrpmio"
10430 have_librpmio="yes"
10431 else
10432 have_librpmio="no"
10433 fi
10434
10435 if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then
10436 as_fn_error $? "cannot find librpm" "$LINENO" 5
10437 fi
10438 if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5
10440 $as_echo "$as_me: WARNING: cannot find librpmio" >&2;}
10441 fi
10442 fi
10443
10444 LIBS_no_readline=$LIBS
10445
10446 have_libreadline="no"
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
10448 $as_echo_n "checking how to link readline libs... " >&6; }
10449 for libtermcap in "" tinfo ncursesw ncurses curses termcap; do
10450 if test -z "$libtermcap"; then
10451 READLINE_LIBS="-lreadline"
10452 else
10453 READLINE_LIBS="-lreadline -l$libtermcap"
10454 fi
10455 LIBS="$READLINE_LIBS $LIBS_no_readline"
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10458
10459 /* Override any GCC internal prototype to avoid an error.
10460 Use char because int might match the return type of a GCC
10461 builtin and then its argument prototype would still apply. */
10462 #ifdef __cplusplus
10463 extern "C"
10464 #endif
10465 char readline ();
10466 int
10467 main ()
10468 {
10469 return readline ();
10470 ;
10471 return 0;
10472 }
10473 _ACEOF
10474 if ac_fn_c_try_link "$LINENO"; then :
10475 have_libreadline="yes"
10476 fi
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10479 if test "$have_libreadline" = "yes"; then
10480 break
10481 fi
10482 done
10483 if test "$have_libreadline" = "no"; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10485 $as_echo "none" >&6; }
10486 READLINE_LIBS=""
10487 else
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
10489 $as_echo "$READLINE_LIBS" >&6; }
10490
10491 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
10492
10493 fi
10494
10495 if test "$have_libreadline" == "yes"; then
10496 HAVE_LIBREADLINE_TRUE=
10497 HAVE_LIBREADLINE_FALSE='#'
10498 else
10499 HAVE_LIBREADLINE_TRUE='#'
10500 HAVE_LIBREADLINE_FALSE=
10501 fi
10502
10503
10504 LIBS=$LIBS_no_readline
10505
10506
10507 # Check whether --with-python3 was given.
10508 if test "${with_python3+set}" = set; then :
10509 withval=$with_python3;
10510 fi
10511
10512 if test "x$with_python3" = "xyes"; then :
10513 python=python3
10514
10515 else
10516 python=python
10517
10518 fi
10519
10520 build_elfutils=no
10521
10522 # Check whether --with-elfutils was given.
10523 if test "${with_elfutils+set}" = set; then :
10524 withval=$with_elfutils;
10525 case "$with_elfutils" in
10526 yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;;
10527 ''|no) ;;
10528 *) build_elfutils=yes ;;
10529 esac
10530 fi
10531
10532 if test $build_elfutils = yes; then
10533 BUILD_ELFUTILS_TRUE=
10534 BUILD_ELFUTILS_FALSE='#'
10535 else
10536 BUILD_ELFUTILS_TRUE='#'
10537 BUILD_ELFUTILS_FALSE=
10538 fi
10539
10540 elfutils_abs_srcdir=`if test $build_elfutils = yes; then :
10541 cd $with_elfutils && pwd
10542 fi`
10543
10544
10545 if test $enable_translator = yes; then
10546 if test $build_elfutils = no; then
10547 # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/
10548
10549 # On modern debian/ubuntu, libebl has been merged into libdw
10550 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
10551 save_LIBS="$LIBS"
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5
10553 $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; }
10554 if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then :
10555 $as_echo_n "(cached) " >&6
10556 else
10557 ac_check_lib_save_LIBS=$LIBS
10558 LIBS="-lebl $LIBS"
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561
10562 /* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10565 #ifdef __cplusplus
10566 extern "C"
10567 #endif
10568 char ebl_get_elfmachine ();
10569 int
10570 main ()
10571 {
10572 return ebl_get_elfmachine ();
10573 ;
10574 return 0;
10575 }
10576 _ACEOF
10577 if ac_fn_c_try_link "$LINENO"; then :
10578 ac_cv_lib_ebl_ebl_get_elfmachine=yes
10579 else
10580 ac_cv_lib_ebl_ebl_get_elfmachine=no
10581 fi
10582 rm -f core conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10584 LIBS=$ac_check_lib_save_LIBS
10585 fi
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5
10587 $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; }
10588 if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then :
10589 ebl_LIBS=-lebl
10590 else
10591 ebl_LIBS=
10592 fi
10593
10594 LIBS="$save_LIBS"
10595
10596 save_LIBS="$LIBS"
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
10598 $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
10599 if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10602 ac_check_lib_save_LIBS=$LIBS
10603 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10606
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10610 #ifdef __cplusplus
10611 extern "C"
10612 #endif
10613 char dwfl_module_getsym ();
10614 int
10615 main ()
10616 {
10617 return dwfl_module_getsym ();
10618 ;
10619 return 0;
10620 }
10621 _ACEOF
10622 if ac_fn_c_try_link "$LINENO"; then :
10623 ac_cv_lib_dw_dwfl_module_getsym=yes
10624 else
10625 ac_cv_lib_dw_dwfl_module_getsym=no
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629 LIBS=$ac_check_lib_save_LIBS
10630 fi
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
10632 $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
10633 if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then :
10634 cat >>confdefs.h <<_ACEOF
10635 #define HAVE_LIBDW 1
10636 _ACEOF
10637
10638 LIBS="-ldw $LIBS"
10639
10640 else
10641
10642 as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5
10643 fi
10644
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5
10646 $as_echo_n "checking for dwarf_next_unit in -ldw... " >&6; }
10647 if ${ac_cv_lib_dw_dwarf_next_unit+:} false; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 ac_check_lib_save_LIBS=$LIBS
10651 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10654
10655 /* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 char dwarf_next_unit ();
10662 int
10663 main ()
10664 {
10665 return dwarf_next_unit ();
10666 ;
10667 return 0;
10668 }
10669 _ACEOF
10670 if ac_fn_c_try_link "$LINENO"; then :
10671 ac_cv_lib_dw_dwarf_next_unit=yes
10672 else
10673 ac_cv_lib_dw_dwarf_next_unit=no
10674 fi
10675 rm -f core conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10677 LIBS=$ac_check_lib_save_LIBS
10678 fi
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5
10680 $as_echo "$ac_cv_lib_dw_dwarf_next_unit" >&6; }
10681 if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes; then :
10682 cat >>confdefs.h <<_ACEOF
10683 #define HAVE_LIBDW 1
10684 _ACEOF
10685
10686 LIBS="-ldw $LIBS"
10687
10688 else
10689
10690 as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5
10691 fi
10692
10693 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
10694 LIBS="$save_LIBS"
10695 else
10696 # We built our own and stap_LDFLAGS points at the install.
10697 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
10698 fi
10699 fi
10700
10701
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
10703 $as_echo "$as_me: stap will link $stap_LIBS" >&6;}
10704
10705 # staprun has more modest libelf needs
10706 if test $build_elfutils = no; then
10707 save_LIBS="$LIBS"
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
10709 $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; }
10710 if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then :
10711 $as_echo_n "(cached) " >&6
10712 else
10713 ac_check_lib_save_LIBS=$LIBS
10714 LIBS="-lelf $LIBS"
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h. */
10717
10718 /* Override any GCC internal prototype to avoid an error.
10719 Use char because int might match the return type of a GCC
10720 builtin and then its argument prototype would still apply. */
10721 #ifdef __cplusplus
10722 extern "C"
10723 #endif
10724 char elf_getshdrstrndx ();
10725 int
10726 main ()
10727 {
10728 return elf_getshdrstrndx ();
10729 ;
10730 return 0;
10731 }
10732 _ACEOF
10733 if ac_fn_c_try_link "$LINENO"; then :
10734 ac_cv_lib_elf_elf_getshdrstrndx=yes
10735 else
10736 ac_cv_lib_elf_elf_getshdrstrndx=no
10737 fi
10738 rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740 LIBS=$ac_check_lib_save_LIBS
10741 fi
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
10743 $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
10744 if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then :
10745 cat >>confdefs.h <<_ACEOF
10746 #define HAVE_LIBELF 1
10747 _ACEOF
10748
10749 LIBS="-lelf $LIBS"
10750
10751 else
10752
10753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10755 as_fn_error $? "libelf too old, need 0.142+
10756 See \`config.log' for more details" "$LINENO" 5; }
10757 fi
10758
10759 staprun_LIBS="$staprun_LIBS -lelf"
10760 LIBS="$save_LIBS"
10761 else
10762 # We built our own and staprun_LDFLAGS points at the install.
10763 staprun_LIBS="$staprun_LIBS -lelf"
10764 fi
10765
10766
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5
10768 $as_echo "$as_me: staprun will link $staprun_LIBS" >&6;}
10769
10770
10771 date=`date +%Y-%m-%d`
10772
10773 cat >>confdefs.h <<_ACEOF
10774 #define DATE "$date"
10775 _ACEOF
10776
10777 DATE="$date"
10778
10779
10780 # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
10781 # being compiled on 32-bit userspace but running against 64-bit kernels.
10782 # This is no longer necessary.
10783
10784 # Use tr1/unordered_map if available
10785 ac_ext=cpp
10786 ac_cpp='$CXXCPP $CPPFLAGS'
10787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10790
10791
10792 ac_ext=cpp
10793 ac_cpp='$CXXCPP $CPPFLAGS'
10794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10798 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10799 if test -z "$CXXCPP"; then
10800 if ${ac_cv_prog_CXXCPP+:} false; then :
10801 $as_echo_n "(cached) " >&6
10802 else
10803 # Double quotes because CXXCPP needs to be expanded
10804 for CXXCPP in "$CXX -E" "/lib/cpp"
10805 do
10806 ac_preproc_ok=false
10807 for ac_cxx_preproc_warn_flag in '' yes
10808 do
10809 # Use a header file that comes with gcc, so configuring glibc
10810 # with a fresh cross-compiler works.
10811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10812 # <limits.h> exists even on freestanding compilers.
10813 # On the NeXT, cc -E runs the code through the compiler's parser,
10814 # not just through cpp. "Syntax error" is here to catch this case.
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817 #ifdef __STDC__
10818 # include <limits.h>
10819 #else
10820 # include <assert.h>
10821 #endif
10822 Syntax error
10823 _ACEOF
10824 if ac_fn_cxx_try_cpp "$LINENO"; then :
10825
10826 else
10827 # Broken: fails on valid input.
10828 continue
10829 fi
10830 rm -f conftest.err conftest.i conftest.$ac_ext
10831
10832 # OK, works on sane cases. Now check whether nonexistent headers
10833 # can be detected and how.
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10836 #include <ac_nonexistent.h>
10837 _ACEOF
10838 if ac_fn_cxx_try_cpp "$LINENO"; then :
10839 # Broken: success on invalid input.
10840 continue
10841 else
10842 # Passes both tests.
10843 ac_preproc_ok=:
10844 break
10845 fi
10846 rm -f conftest.err conftest.i conftest.$ac_ext
10847
10848 done
10849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10850 rm -f conftest.i conftest.err conftest.$ac_ext
10851 if $ac_preproc_ok; then :
10852 break
10853 fi
10854
10855 done
10856 ac_cv_prog_CXXCPP=$CXXCPP
10857
10858 fi
10859 CXXCPP=$ac_cv_prog_CXXCPP
10860 else
10861 ac_cv_prog_CXXCPP=$CXXCPP
10862 fi
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10864 $as_echo "$CXXCPP" >&6; }
10865 ac_preproc_ok=false
10866 for ac_cxx_preproc_warn_flag in '' yes
10867 do
10868 # Use a header file that comes with gcc, so configuring glibc
10869 # with a fresh cross-compiler works.
10870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871 # <limits.h> exists even on freestanding compilers.
10872 # On the NeXT, cc -E runs the code through the compiler's parser,
10873 # not just through cpp. "Syntax error" is here to catch this case.
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10876 #ifdef __STDC__
10877 # include <limits.h>
10878 #else
10879 # include <assert.h>
10880 #endif
10881 Syntax error
10882 _ACEOF
10883 if ac_fn_cxx_try_cpp "$LINENO"; then :
10884
10885 else
10886 # Broken: fails on valid input.
10887 continue
10888 fi
10889 rm -f conftest.err conftest.i conftest.$ac_ext
10890
10891 # OK, works on sane cases. Now check whether nonexistent headers
10892 # can be detected and how.
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10895 #include <ac_nonexistent.h>
10896 _ACEOF
10897 if ac_fn_cxx_try_cpp "$LINENO"; then :
10898 # Broken: success on invalid input.
10899 continue
10900 else
10901 # Passes both tests.
10902 ac_preproc_ok=:
10903 break
10904 fi
10905 rm -f conftest.err conftest.i conftest.$ac_ext
10906
10907 done
10908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10909 rm -f conftest.i conftest.err conftest.$ac_ext
10910 if $ac_preproc_ok; then :
10911
10912 else
10913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10915 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
10916 See \`config.log' for more details" "$LINENO" 5; }
10917 fi
10918
10919 ac_ext=cpp
10920 ac_cpp='$CXXCPP $CPPFLAGS'
10921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10924
10925
10926 for ac_header in tr1/unordered_map
10927 do :
10928 ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" "$ac_includes_default"
10929 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
10930 cat >>confdefs.h <<_ACEOF
10931 #define HAVE_TR1_UNORDERED_MAP 1
10932 _ACEOF
10933
10934 fi
10935
10936 done
10937
10938 for ac_header in tr1/memory
10939 do :
10940 ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/memory" "ac_cv_header_tr1_memory" "$ac_includes_default"
10941 if test "x$ac_cv_header_tr1_memory" = xyes; then :
10942 cat >>confdefs.h <<_ACEOF
10943 #define HAVE_TR1_MEMORY 1
10944 _ACEOF
10945
10946 fi
10947
10948 done
10949
10950 for ac_header in boost/shared_ptr.hpp
10951 do :
10952 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default"
10953 if test "x$ac_cv_header_boost_shared_ptr_hpp" = xyes; then :
10954 cat >>confdefs.h <<_ACEOF
10955 #define HAVE_BOOST_SHARED_PTR_HPP 1
10956 _ACEOF
10957
10958 fi
10959
10960 done
10961
10962 for ac_header in boost/utility/string_ref.hpp
10963 do :
10964 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/utility/string_ref.hpp" "ac_cv_header_boost_utility_string_ref_hpp" "$ac_includes_default"
10965 if test "x$ac_cv_header_boost_utility_string_ref_hpp" = xyes; then :
10966 cat >>confdefs.h <<_ACEOF
10967 #define HAVE_BOOST_UTILITY_STRING_REF_HPP 1
10968 _ACEOF
10969
10970 fi
10971
10972 done
10973
10974 ac_ext=c
10975 ac_cpp='$CPP $CPPFLAGS'
10976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10979
10980
10981
10982 # Check for Dyninst headers and libraries
10983
10984 # Check whether --with-dyninst was given.
10985 if test "${with_dyninst+set}" = set; then :
10986 withval=$with_dyninst;
10987 fi
10988
10989
10990 case "$with_dyninst" in
10991 no) ;;
10992 ''|yes) # Try a simple-minded distro search
10993 DYNINST_CXXFLAGS="-I/usr/include/dyninst"
10994 DYNINST_LDFLAGS="-L/usr/lib64/dyninst -L/usr/lib/dyninst" # XXX both lib paths!?!
10995 ;;
10996 *) # Use paths in the user-specified prefix
10997 DYNINST_CXXFLAGS="-I$with_dyninst/include"
10998 DYNINST_LDFLAGS="-L$with_dyninst/lib/" # XXX need lib64 too?
10999 ;;
11000 esac
11001 if test "$with_dyninst" != "no"; then
11002 ac_ext=cpp
11003 ac_cpp='$CXXCPP $CPPFLAGS'
11004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11007
11008 old_CPPFLAGS="$CPPFLAGS"
11009 CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS"
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5
11011 $as_echo "$as_me: checking dyninst support" >&6;}
11012 for ac_header in BPatch_object.h
11013 do :
11014 ac_fn_cxx_check_header_mongrel "$LINENO" "BPatch_object.h" "ac_cv_header_BPatch_object_h" "$ac_includes_default"
11015 if test "x$ac_cv_header_BPatch_object_h" = xyes; then :
11016 cat >>confdefs.h <<_ACEOF
11017 #define HAVE_BPATCH_OBJECT_H 1
11018 _ACEOF
11019
11020
11021
11022
11023 $as_echo "#define HAVE_DYNINST 1" >>confdefs.h
11024
11025 have_dyninst=yes
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5
11027 $as_echo "$as_me: dyninst support available" >&6;}
11028 fi
11029
11030 done
11031
11032 if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then
11033 as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5
11034 fi
11035 CPPFLAGS="$old_CPPFLAGS"
11036 ac_ext=c
11037 ac_cpp='$CPP $CPPFLAGS'
11038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11041
11042 fi
11043 if test "${have_dyninst}" = "yes"; then
11044 HAVE_DYNINST_TRUE=
11045 HAVE_DYNINST_FALSE='#'
11046 else
11047 HAVE_DYNINST_TRUE='#'
11048 HAVE_DYNINST_FALSE=
11049 fi
11050
11051
11052
11053
11054 # Check whether --enable-virt was given.
11055 if test "${enable_virt+set}" = set; then :
11056 enableval=$enable_virt; enable_virt=$enableval
11057 else
11058 enable_virt="check"
11059 fi
11060
11061
11062
11063 pkg_failed=no
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5
11065 $as_echo_n "checking for libvirt... " >&6; }
11066
11067 if test -n "$libvirt_CFLAGS"; then
11068 pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS"
11069 elif test -n "$PKG_CONFIG"; then
11070 if test -n "$PKG_CONFIG" && \
11071 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11072 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11073 ac_status=$?
11074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11075 test $ac_status = 0; }; then
11076 pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null`
11077 test "x$?" != "x0" && pkg_failed=yes
11078 else
11079 pkg_failed=yes
11080 fi
11081 else
11082 pkg_failed=untried
11083 fi
11084 if test -n "$libvirt_LIBS"; then
11085 pkg_cv_libvirt_LIBS="$libvirt_LIBS"
11086 elif test -n "$PKG_CONFIG"; then
11087 if test -n "$PKG_CONFIG" && \
11088 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11089 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11090 ac_status=$?
11091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11092 test $ac_status = 0; }; then
11093 pkg_cv_libvirt_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null`
11094 test "x$?" != "x0" && pkg_failed=yes
11095 else
11096 pkg_failed=yes
11097 fi
11098 else
11099 pkg_failed=untried
11100 fi
11101
11102
11103
11104 if test $pkg_failed = yes; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11107
11108 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11109 _pkg_short_errors_supported=yes
11110 else
11111 _pkg_short_errors_supported=no
11112 fi
11113 if test $_pkg_short_errors_supported = yes; then
11114 libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11115 else
11116 libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11117 fi
11118 # Put the nasty error message in config.log where it belongs
11119 echo "$libvirt_PKG_ERRORS" >&5
11120
11121 have_libvirt=no
11122 elif test $pkg_failed = untried; then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 $as_echo "no" >&6; }
11125 have_libvirt=no
11126 else
11127 libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS
11128 libvirt_LIBS=$pkg_cv_libvirt_LIBS
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11130 $as_echo "yes" >&6; }
11131
11132 have_libvirt=yes
11133
11134 $as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h
11135
11136
11137 fi
11138 if test "${have_libvirt}" = "yes"; then
11139 HAVE_LIBVIRT_TRUE=
11140 HAVE_LIBVIRT_FALSE='#'
11141 else
11142 HAVE_LIBVIRT_TRUE='#'
11143 HAVE_LIBVIRT_FALSE=
11144 fi
11145
11146
11147 pkg_failed=no
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
11149 $as_echo_n "checking for libxml2... " >&6; }
11150
11151 if test -n "$libxml2_CFLAGS"; then
11152 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
11153 elif test -n "$PKG_CONFIG"; then
11154 if test -n "$PKG_CONFIG" && \
11155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
11156 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
11157 ac_status=$?
11158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11159 test $ac_status = 0; }; then
11160 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
11161 test "x$?" != "x0" && pkg_failed=yes
11162 else
11163 pkg_failed=yes
11164 fi
11165 else
11166 pkg_failed=untried
11167 fi
11168 if test -n "$libxml2_LIBS"; then
11169 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
11170 elif test -n "$PKG_CONFIG"; then
11171 if test -n "$PKG_CONFIG" && \
11172 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
11173 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
11174 ac_status=$?
11175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11176 test $ac_status = 0; }; then
11177 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
11178 test "x$?" != "x0" && pkg_failed=yes
11179 else
11180 pkg_failed=yes
11181 fi
11182 else
11183 pkg_failed=untried
11184 fi
11185
11186
11187
11188 if test $pkg_failed = yes; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11191
11192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11193 _pkg_short_errors_supported=yes
11194 else
11195 _pkg_short_errors_supported=no
11196 fi
11197 if test $_pkg_short_errors_supported = yes; then
11198 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
11199 else
11200 libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
11201 fi
11202 # Put the nasty error message in config.log where it belongs
11203 echo "$libxml2_PKG_ERRORS" >&5
11204
11205 have_libxml2=no
11206 elif test $pkg_failed = untried; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 $as_echo "no" >&6; }
11209 have_libxml2=no
11210 else
11211 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
11212 libxml2_LIBS=$pkg_cv_libxml2_LIBS
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11214 $as_echo "yes" >&6; }
11215
11216 have_libxml2=yes
11217
11218 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11219
11220
11221 fi
11222 if test "${have_libxml2}" = "yes"; then
11223 HAVE_LIBXML2_TRUE=
11224 HAVE_LIBXML2_FALSE='#'
11225 else
11226 HAVE_LIBXML2_TRUE='#'
11227 HAVE_LIBXML2_FALSE=
11228 fi
11229
11230
11231 if test "$enable_virt" != "no"; then
11232 if test "x${have_libvirt}" != "xyes"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5
11234 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;}
11235 fi
11236 if test "x${have_libxml2}" != "xyes"; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5
11238 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;}
11239 fi
11240 fi
11241 if test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"; then
11242 BUILD_VIRT_TRUE=
11243 BUILD_VIRT_FALSE='#'
11244 else
11245 BUILD_VIRT_TRUE='#'
11246 BUILD_VIRT_FALSE=
11247 fi
11248
11249
11250
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
11252 $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; }
11253 if ${stap_cv_sectionq+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255 else
11256
11257 old_CFLAGS="$CFLAGS"
11258 CFLAGS="$CFLAGS -Wa,--fatal-warnings"
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11261 asm(".section .note.foo,\"?\",\"note\"\n"
11262 ".byte 1, 2, 3\n"
11263 ".previous\n"
11264 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
11265 ".byte 1\n"
11266 ".pushsection .note.foo,\"?\",\"note\"\n"
11267 ".byte 4, 5, 6\n"
11268 ".popsection\n"
11269 ".byte 2\n");
11270 _ACEOF
11271 if ac_fn_c_try_compile "$LINENO"; then :
11272 stap_cv_sectionq=yes
11273 else
11274 stap_cv_sectionq=no
11275 fi
11276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11277 CFLAGS="$old_CFLAGS"
11278 fi
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
11280 $as_echo "$stap_cv_sectionq" >&6; }
11281
11282 support_section_question=0
11283 if test $stap_cv_sectionq = yes; then
11284 support_section_question=1
11285 fi
11286 ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
11287
11288
11289 if test $build_elfutils = yes -a $enable_translator = yes; then
11290 here=`pwd`
11291 case "$with_elfutils" in
11292 /*) elfutils_srcdir="$with_elfutils" ;;
11293 *) elfutils_srcdir="${here}/$with_elfutils" ;;
11294 esac
11295
11296 if ! test -f ${elfutils_srcdir}/configure; then
11297 as_fn_error $? "No ${elfutils_srcdir}/configure, forgot to run autoreconf -i?" "$LINENO" 5
11298 fi
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5
11300 $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
11301
11302 save_CFLAGS="$CFLAGS"
11303 save_CXXFLAGS="$CXXFLAGS"
11304 CXXFLAGS="$CXXFLAGS -fgnu89-inline"
11305 CFLAGS="$CFLAGS -fgnu89-inline"
11306 gnu89_inline_flag=""
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11309 int something ();
11310 _ACEOF
11311 if ac_fn_c_try_compile "$LINENO"; then :
11312
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5
11314 $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
11315 gnu89_inline_flag="-fgnu89-inline"
11316 else
11317
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5
11319 $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
11320 fi
11321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11322 CFLAGS="$save_CFLAGS"
11323 CXXFLAGS="$save_CXXFLAGS"
11324
11325 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
11326 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
11327 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
11328 # So we must make sure to pass those settings to elfutils configure.
11329 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
11330 # Check whether this is a source release, or a source checkout.
11331 # We need --enable-maintainer-mode if it isn't a source release.
11332 # elfutils.spec is only distributed in source releases.
11333 if test -f ${elfutils_srcdir}/elfutils.spec; then
11334 need_maintainer_option=""
11335 else
11336 need_maintainer_option="--enable-maintainer-mode"
11337 fi
11338 (mkdir -p build-elfutils && cd build-elfutils &&
11339 bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
11340 --includedir="${here}/include-elfutils" \
11341 --libdir="${here}/lib-elfutils" \
11342 --exec-prefix="$exec_prefix" \
11343 --prefix="$prefix" \
11344 --enable-dwz \
11345 ${need_maintainer_option} \
11346 CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag -fexceptions" \
11347 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
11348 if test -f ${elfutils_srcdir}/config/version.h.in; then
11349 echo Found elfutils/version.h header...
11350 else
11351 echo elfutils/version.h header not found, need elfutils 0.142+...
11352 exit -1
11353 fi
11354 )
11355 if test $? != 0; then exit -1; fi
11356 fi
11357
11358
11359 # Check whether --with-selinux was given.
11360 if test "${with_selinux+set}" = set; then :
11361 withval=$with_selinux;
11362 fi
11363
11364
11365 if test "x$with_selinux" != "xno"; then :
11366
11367
11368 pkg_failed=no
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5
11370 $as_echo_n "checking for selinux... " >&6; }
11371
11372 if test -n "$selinux_CFLAGS"; then
11373 pkg_cv_selinux_CFLAGS="$selinux_CFLAGS"
11374 elif test -n "$PKG_CONFIG"; then
11375 if test -n "$PKG_CONFIG" && \
11376 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
11377 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
11378 ac_status=$?
11379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11380 test $ac_status = 0; }; then
11381 pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
11382 test "x$?" != "x0" && pkg_failed=yes
11383 else
11384 pkg_failed=yes
11385 fi
11386 else
11387 pkg_failed=untried
11388 fi
11389 if test -n "$selinux_LIBS"; then
11390 pkg_cv_selinux_LIBS="$selinux_LIBS"
11391 elif test -n "$PKG_CONFIG"; then
11392 if test -n "$PKG_CONFIG" && \
11393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
11394 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
11395 ac_status=$?
11396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11397 test $ac_status = 0; }; then
11398 pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
11399 test "x$?" != "x0" && pkg_failed=yes
11400 else
11401 pkg_failed=yes
11402 fi
11403 else
11404 pkg_failed=untried
11405 fi
11406
11407
11408
11409 if test $pkg_failed = yes; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411 $as_echo "no" >&6; }
11412
11413 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11414 _pkg_short_errors_supported=yes
11415 else
11416 _pkg_short_errors_supported=no
11417 fi
11418 if test $_pkg_short_errors_supported = yes; then
11419 selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
11420 else
11421 selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
11422 fi
11423 # Put the nasty error message in config.log where it belongs
11424 echo "$selinux_PKG_ERRORS" >&5
11425
11426 have_selinux=no
11427 elif test $pkg_failed = untried; then
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429 $as_echo "no" >&6; }
11430 have_selinux=no
11431 else
11432 selinux_CFLAGS=$pkg_cv_selinux_CFLAGS
11433 selinux_LIBS=$pkg_cv_selinux_LIBS
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11435 $as_echo "yes" >&6; }
11436 have_selinux=yes
11437
11438 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
11439
11440
11441 fi
11442
11443 else
11444 have_selinux=no
11445 fi
11446
11447 if test "${have_selinux}" = "yes"; then
11448 HAVE_SELINUX_TRUE=
11449 HAVE_SELINUX_FALSE='#'
11450 else
11451 HAVE_SELINUX_TRUE='#'
11452 HAVE_SELINUX_FALSE=
11453 fi
11454
11455
11456 # Extract the first word of "javac", so it can be a program name with args.
11457 set dummy javac; ac_word=$2
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459 $as_echo_n "checking for $ac_word... " >&6; }
11460 if ${ac_cv_prog_have_javac+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 if test -n "$have_javac"; then
11464 ac_cv_prog_have_javac="$have_javac" # Let the user override the test.
11465 else
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in $PATH
11468 do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11473 ac_cv_prog_have_javac="yes"
11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 break 2
11476 fi
11477 done
11478 done
11479 IFS=$as_save_IFS
11480
11481 test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no"
11482 fi
11483 fi
11484 have_javac=$ac_cv_prog_have_javac
11485 if test -n "$have_javac"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5
11487 $as_echo "$have_javac" >&6; }
11488 else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 $as_echo "no" >&6; }
11491 fi
11492
11493
11494 # Extract the first word of "jar", so it can be a program name with args.
11495 set dummy jar; ac_word=$2
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11497 $as_echo_n "checking for $ac_word... " >&6; }
11498 if ${ac_cv_prog_have_jar+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501 if test -n "$have_jar"; then
11502 ac_cv_prog_have_jar="$have_jar" # Let the user override the test.
11503 else
11504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 for as_dir in $PATH
11506 do
11507 IFS=$as_save_IFS
11508 test -z "$as_dir" && as_dir=.
11509 for ac_exec_ext in '' $ac_executable_extensions; do
11510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11511 ac_cv_prog_have_jar="yes"
11512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11513 break 2
11514 fi
11515 done
11516 done
11517 IFS=$as_save_IFS
11518
11519 test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no"
11520 fi
11521 fi
11522 have_jar=$ac_cv_prog_have_jar
11523 if test -n "$have_jar"; then
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5
11525 $as_echo "$have_jar" >&6; }
11526 else
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528 $as_echo "no" >&6; }
11529 fi
11530
11531
11532 if test "$have_javac" != no -a "$have_jar" != no; then
11533 echo java found, will try to configure Byteman support
11534
11535
11536 # Check whether --with-java was given.
11537 if test "${with_java+set}" = set; then :
11538 withval=$with_java;
11539 else
11540 with_java=/usr/lib/jvm/java
11541 fi
11542
11543 if test ! -d "$with_java"; then
11544 with_java=no
11545 fi
11546 JAVADIR="${with_java}"
11547 # always needed to compile
11548
11549 if test "$with_java" != "no"; then
11550
11551 cat >>confdefs.h <<_ACEOF
11552 #define HAVE_JAVA "1"
11553 _ACEOF
11554
11555 fi
11556
11557 if test "$with_java" != "no"; then
11558 HAVE_JAVA_TRUE=
11559 HAVE_JAVA_FALSE='#'
11560 else
11561 HAVE_JAVA_TRUE='#'
11562 HAVE_JAVA_FALSE=
11563 fi
11564
11565
11566 else
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5
11568 $as_echo "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;}
11569 if false; then
11570 HAVE_JAVA_TRUE=
11571 HAVE_JAVA_FALSE='#'
11572 else
11573 HAVE_JAVA_TRUE='#'
11574 HAVE_JAVA_FALSE=
11575 fi
11576
11577 fi # java+byteman support
11578
11579 ENABLE_NLS="$USE_NLS"
11580
11581 localedir="$localedir"
11582
11583 LOCALEDIR="$localedir"
11584
11585
11586
11587 # Check whether --with-extra-version was given.
11588 if test "${with_extra_version+set}" = set; then :
11589 withval=$with_extra_version;
11590 fi
11591
11592 if test "x$with_extra_version" != "xno"; then :
11593
11594 stap_extra_version="$with_extra_version"
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5
11596 $as_echo "$as_me: Adding extra version $stap_extra_version" >&6;}
11597 else
11598
11599 stap_extra_version=""
11600 fi
11601
11602 cat >>confdefs.h <<_ACEOF
11603 #define STAP_EXTRA_VERSION "$stap_extra_version"
11604 _ACEOF
11605
11606 STAP_EXTRA_VERSION="$stap_extra_version"
11607
11608
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=c++11" >&5
11610 $as_echo_n "checking whether C compiler accepts -std=c++11... " >&6; }
11611 if ${ax_cv_check_cflags___std_cpp11+:} false; then :
11612 $as_echo_n "(cached) " >&6
11613 else
11614
11615 ax_check_save_flags=$CFLAGS
11616 CFLAGS="$CFLAGS -std=c++11"
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11619
11620 int
11621 main ()
11622 {
11623
11624 ;
11625 return 0;
11626 }
11627 _ACEOF
11628 if ac_fn_c_try_compile "$LINENO"; then :
11629 ax_cv_check_cflags___std_cpp11=yes
11630 else
11631 ax_cv_check_cflags___std_cpp11=no
11632 fi
11633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634 CFLAGS=$ax_check_save_flags
11635 fi
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_cpp11" >&5
11637 $as_echo "$ax_cv_check_cflags___std_cpp11" >&6; }
11638 if test "x$ax_cv_check_cflags___std_cpp11" = xyes; then :
11639 cxx11="-std=c++11"
11640 else
11641 cxx11=""
11642 fi
11643
11644 if test "x$cxx11" != "x"; then :
11645
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling parts of systemtap with -std=c++11" >&5
11647 $as_echo "$as_me: Compiling parts of systemtap with -std=c++11" >&6;}
11648 fi
11649
11650
11651
11652 stap_prefix=$prefix
11653 test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
11654
11655 cat >>confdefs.h <<_ACEOF
11656 #define STAP_PREFIX "$stap_prefix"
11657 _ACEOF
11658
11659 STAP_PREFIX="$stap_prefix"
11660
11661
11662 ac_config_headers="$ac_config_headers config.h:config.in"
11663
11664 ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile man/stappaths.7 man/systemtap.8 initscript/config.systemtap initscript/config.stap-server initscript/systemtap initscript/stap-server initscript/99stap/module-setup.sh"
11665
11666
11667
11668 subdirs="$subdirs testsuite"
11669
11670 if test $enable_translator == "yes"; then
11671 ac_config_files="$ac_config_files run-stap"
11672
11673 fi
11674 ac_config_files="$ac_config_files dtrace"
11675
11676 ac_config_files="$ac_config_files stapdyn/Makefile"
11677
11678 ac_config_files="$ac_config_files java/Makefile"
11679
11680 ac_config_files="$ac_config_files java/stapbm"
11681
11682 ac_config_files="$ac_config_files staprun/Makefile"
11683
11684 ac_config_files="$ac_config_files staprun/run-staprun"
11685
11686 ac_config_files="$ac_config_files staprun/guest/stapshd"
11687
11688 ac_config_files="$ac_config_files staprun/guest/stapsh-daemon"
11689
11690 ac_config_files="$ac_config_files staprun/guest/stapsh@.service"
11691
11692
11693 # Setup "shadow" directory doc/beginners that has the basic directories setup for
11694 # xmlto in one directory (through directory links if necessary).
11695 # It would be nice to use AC_CONFIG_LINKS, but automake complains when
11696 # the src is a directory and not a file.
11697 ac_config_commands="$ac_config_commands doc/beginners"
11698
11699
11700 cat >confcache <<\_ACEOF
11701 # This file is a shell script that caches the results of configure
11702 # tests run on this system so they can be shared between configure
11703 # scripts and configure runs, see configure's option --config-cache.
11704 # It is not useful on other systems. If it contains results you don't
11705 # want to keep, you may remove or edit it.
11706 #
11707 # config.status only pays attention to the cache file if you give it
11708 # the --recheck option to rerun configure.
11709 #
11710 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11711 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11712 # following values.
11713
11714 _ACEOF
11715
11716 # The following way of writing the cache mishandles newlines in values,
11717 # but we know of no workaround that is simple, portable, and efficient.
11718 # So, we kill variables containing newlines.
11719 # Ultrix sh set writes to stderr and can't be redirected directly,
11720 # and sets the high bit in the cache file unless we assign to the vars.
11721 (
11722 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11723 eval ac_val=\$$ac_var
11724 case $ac_val in #(
11725 *${as_nl}*)
11726 case $ac_var in #(
11727 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11728 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11729 esac
11730 case $ac_var in #(
11731 _ | IFS | as_nl) ;; #(
11732 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11733 *) { eval $ac_var=; unset $ac_var;} ;;
11734 esac ;;
11735 esac
11736 done
11737
11738 (set) 2>&1 |
11739 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11740 *${as_nl}ac_space=\ *)
11741 # `set' does not quote correctly, so add quotes: double-quote
11742 # substitution turns \\\\ into \\, and sed turns \\ into \.
11743 sed -n \
11744 "s/'/'\\\\''/g;
11745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11746 ;; #(
11747 *)
11748 # `set' quotes correctly as required by POSIX, so do not add quotes.
11749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11750 ;;
11751 esac |
11752 sort
11753 ) |
11754 sed '
11755 /^ac_cv_env_/b end
11756 t clear
11757 :clear
11758 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11759 t end
11760 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11761 :end' >>confcache
11762 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11763 if test -w "$cache_file"; then
11764 if test "x$cache_file" != "x/dev/null"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11766 $as_echo "$as_me: updating cache $cache_file" >&6;}
11767 if test ! -f "$cache_file" || test -h "$cache_file"; then
11768 cat confcache >"$cache_file"
11769 else
11770 case $cache_file in #(
11771 */* | ?:*)
11772 mv -f confcache "$cache_file"$$ &&
11773 mv -f "$cache_file"$$ "$cache_file" ;; #(
11774 *)
11775 mv -f confcache "$cache_file" ;;
11776 esac
11777 fi
11778 fi
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11781 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11782 fi
11783 fi
11784 rm -f confcache
11785
11786 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11787 # Let make expand exec_prefix.
11788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11789
11790 DEFS=-DHAVE_CONFIG_H
11791
11792 ac_libobjs=
11793 ac_ltlibobjs=
11794 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11795 # 1. Remove the extension, and $U if already installed.
11796 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11797 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11798 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11799 # will be set to the directory where LIBOBJS objects are built.
11800 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11801 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11802 done
11803 LIBOBJS=$ac_libobjs
11804
11805 LTLIBOBJS=$ac_ltlibobjs
11806
11807
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11809 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11810 if test -n "$am_sleep_pid"; then
11811 # Hide warnings about reused PIDs.
11812 wait $am_sleep_pid 2>/dev/null
11813 fi
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11815 $as_echo "done" >&6; }
11816 if test -n "$EXEEXT"; then
11817 am__EXEEXT_TRUE=
11818 am__EXEEXT_FALSE='#'
11819 else
11820 am__EXEEXT_TRUE='#'
11821 am__EXEEXT_FALSE=
11822 fi
11823
11824 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11825 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11827 fi
11828 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11829 as_fn_error $? "conditional \"AMDEP\" was never defined.
11830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11831 fi
11832 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11833 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11835 fi
11836 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11837 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11839 fi
11840 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11841 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11843 fi
11844 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11845 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11847 fi
11848 if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
11849 as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined.
11850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11851 fi
11852 if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
11853 as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined.
11854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11855 fi
11856 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
11857 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
11858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11859 fi
11860 if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
11861 as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined.
11862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11863 fi
11864 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11865 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11867 fi
11868 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11869 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11871 fi
11872 if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
11873 as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined.
11874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11875 fi
11876 if test -z "${BUILD_PDFREFDOCS_TRUE}" && test -z "${BUILD_PDFREFDOCS_FALSE}"; then
11877 as_fn_error $? "conditional \"BUILD_PDFREFDOCS\" was never defined.
11878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11879 fi
11880 if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
11881 as_fn_error $? "conditional \"HAVE_NSS\" was never defined.
11882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11883 fi
11884 if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
11885 as_fn_error $? "conditional \"BUILD_SERVER\" was never defined.
11886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11887 fi
11888 if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
11889 as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined.
11890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11891 fi
11892 if test -z "${HAVE_LIBREADLINE_TRUE}" && test -z "${HAVE_LIBREADLINE_FALSE}"; then
11893 as_fn_error $? "conditional \"HAVE_LIBREADLINE\" was never defined.
11894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11895 fi
11896 if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
11897 as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined.
11898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11899 fi
11900 if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then
11901 as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined.
11902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11903 fi
11904 if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then
11905 as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined.
11906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11907 fi
11908 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
11909 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
11910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11911 fi
11912 if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then
11913 as_fn_error $? "conditional \"BUILD_VIRT\" was never defined.
11914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11915 fi
11916 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
11917 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
11918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11919 fi
11920 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
11921 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
11922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11923 fi
11924 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
11925 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
11926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11927 fi
11928
11929 : "${CONFIG_STATUS=./config.status}"
11930 ac_write_fail=0
11931 ac_clean_files_save=$ac_clean_files
11932 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11934 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11935 as_write_fail=0
11936 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11937 #! $SHELL
11938 # Generated by $as_me.
11939 # Run this file to recreate the current configuration.
11940 # Compiler output produced by configure, useful for debugging
11941 # configure, is in config.log if it exists.
11942
11943 debug=false
11944 ac_cs_recheck=false
11945 ac_cs_silent=false
11946
11947 SHELL=\${CONFIG_SHELL-$SHELL}
11948 export SHELL
11949 _ASEOF
11950 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11951 ## -------------------- ##
11952 ## M4sh Initialization. ##
11953 ## -------------------- ##
11954
11955 # Be more Bourne compatible
11956 DUALCASE=1; export DUALCASE # for MKS sh
11957 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11958 emulate sh
11959 NULLCMD=:
11960 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11961 # is contrary to our usage. Disable this feature.
11962 alias -g '${1+"$@"}'='"$@"'
11963 setopt NO_GLOB_SUBST
11964 else
11965 case `(set -o) 2>/dev/null` in #(
11966 *posix*) :
11967 set -o posix ;; #(
11968 *) :
11969 ;;
11970 esac
11971 fi
11972
11973
11974 as_nl='
11975 '
11976 export as_nl
11977 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11978 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11979 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11980 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11981 # Prefer a ksh shell builtin over an external printf program on Solaris,
11982 # but without wasting forks for bash or zsh.
11983 if test -z "$BASH_VERSION$ZSH_VERSION" \
11984 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11985 as_echo='print -r --'
11986 as_echo_n='print -rn --'
11987 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11988 as_echo='printf %s\n'
11989 as_echo_n='printf %s'
11990 else
11991 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11992 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11993 as_echo_n='/usr/ucb/echo -n'
11994 else
11995 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11996 as_echo_n_body='eval
11997 arg=$1;
11998 case $arg in #(
11999 *"$as_nl"*)
12000 expr "X$arg" : "X\\(.*\\)$as_nl";
12001 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12002 esac;
12003 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12004 '
12005 export as_echo_n_body
12006 as_echo_n='sh -c $as_echo_n_body as_echo'
12007 fi
12008 export as_echo_body
12009 as_echo='sh -c $as_echo_body as_echo'
12010 fi
12011
12012 # The user is always right.
12013 if test "${PATH_SEPARATOR+set}" != set; then
12014 PATH_SEPARATOR=:
12015 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12016 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12017 PATH_SEPARATOR=';'
12018 }
12019 fi
12020
12021
12022 # IFS
12023 # We need space, tab and new line, in precisely that order. Quoting is
12024 # there to prevent editors from complaining about space-tab.
12025 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12026 # splitting by setting IFS to empty value.)
12027 IFS=" "" $as_nl"
12028
12029 # Find who we are. Look in the path if we contain no directory separator.
12030 as_myself=
12031 case $0 in #((
12032 *[\\/]* ) as_myself=$0 ;;
12033 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034 for as_dir in $PATH
12035 do
12036 IFS=$as_save_IFS
12037 test -z "$as_dir" && as_dir=.
12038 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12039 done
12040 IFS=$as_save_IFS
12041
12042 ;;
12043 esac
12044 # We did not find ourselves, most probably we were run as `sh COMMAND'
12045 # in which case we are not to be found in the path.
12046 if test "x$as_myself" = x; then
12047 as_myself=$0
12048 fi
12049 if test ! -f "$as_myself"; then
12050 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12051 exit 1
12052 fi
12053
12054 # Unset variables that we do not need and which cause bugs (e.g. in
12055 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12056 # suppresses any "Segmentation fault" message there. '((' could
12057 # trigger a bug in pdksh 5.2.14.
12058 for as_var in BASH_ENV ENV MAIL MAILPATH
12059 do eval test x\${$as_var+set} = xset \
12060 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12061 done
12062 PS1='$ '
12063 PS2='> '
12064 PS4='+ '
12065
12066 # NLS nuisances.
12067 LC_ALL=C
12068 export LC_ALL
12069 LANGUAGE=C
12070 export LANGUAGE
12071
12072 # CDPATH.
12073 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12074
12075
12076 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12077 # ----------------------------------------
12078 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12079 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12080 # script with STATUS, using 1 if that was 0.
12081 as_fn_error ()
12082 {
12083 as_status=$1; test $as_status -eq 0 && as_status=1
12084 if test "$4"; then
12085 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12086 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12087 fi
12088 $as_echo "$as_me: error: $2" >&2
12089 as_fn_exit $as_status
12090 } # as_fn_error
12091
12092
12093 # as_fn_set_status STATUS
12094 # -----------------------
12095 # Set $? to STATUS, without forking.
12096 as_fn_set_status ()
12097 {
12098 return $1
12099 } # as_fn_set_status
12100
12101 # as_fn_exit STATUS
12102 # -----------------
12103 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12104 as_fn_exit ()
12105 {
12106 set +e
12107 as_fn_set_status $1
12108 exit $1
12109 } # as_fn_exit
12110
12111 # as_fn_unset VAR
12112 # ---------------
12113 # Portably unset VAR.
12114 as_fn_unset ()
12115 {
12116 { eval $1=; unset $1;}
12117 }
12118 as_unset=as_fn_unset
12119 # as_fn_append VAR VALUE
12120 # ----------------------
12121 # Append the text in VALUE to the end of the definition contained in VAR. Take
12122 # advantage of any shell optimizations that allow amortized linear growth over
12123 # repeated appends, instead of the typical quadratic growth present in naive
12124 # implementations.
12125 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12126 eval 'as_fn_append ()
12127 {
12128 eval $1+=\$2
12129 }'
12130 else
12131 as_fn_append ()
12132 {
12133 eval $1=\$$1\$2
12134 }
12135 fi # as_fn_append
12136
12137 # as_fn_arith ARG...
12138 # ------------------
12139 # Perform arithmetic evaluation on the ARGs, and store the result in the
12140 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12141 # must be portable across $(()) and expr.
12142 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12143 eval 'as_fn_arith ()
12144 {
12145 as_val=$(( $* ))
12146 }'
12147 else
12148 as_fn_arith ()
12149 {
12150 as_val=`expr "$@" || test $? -eq 1`
12151 }
12152 fi # as_fn_arith
12153
12154
12155 if expr a : '\(a\)' >/dev/null 2>&1 &&
12156 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12157 as_expr=expr
12158 else
12159 as_expr=false
12160 fi
12161
12162 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12163 as_basename=basename
12164 else
12165 as_basename=false
12166 fi
12167
12168 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12169 as_dirname=dirname
12170 else
12171 as_dirname=false
12172 fi
12173
12174 as_me=`$as_basename -- "$0" ||
12175 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12176 X"$0" : 'X\(//\)$' \| \
12177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12178 $as_echo X/"$0" |
12179 sed '/^.*\/\([^/][^/]*\)\/*$/{
12180 s//\1/
12181 q
12182 }
12183 /^X\/\(\/\/\)$/{
12184 s//\1/
12185 q
12186 }
12187 /^X\/\(\/\).*/{
12188 s//\1/
12189 q
12190 }
12191 s/.*/./; q'`
12192
12193 # Avoid depending upon Character Ranges.
12194 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12195 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12196 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12197 as_cr_digits='0123456789'
12198 as_cr_alnum=$as_cr_Letters$as_cr_digits
12199
12200 ECHO_C= ECHO_N= ECHO_T=
12201 case `echo -n x` in #(((((
12202 -n*)
12203 case `echo 'xy\c'` in
12204 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12205 xy) ECHO_C='\c';;
12206 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12207 ECHO_T=' ';;
12208 esac;;
12209 *)
12210 ECHO_N='-n';;
12211 esac
12212
12213 rm -f conf$$ conf$$.exe conf$$.file
12214 if test -d conf$$.dir; then
12215 rm -f conf$$.dir/conf$$.file
12216 else
12217 rm -f conf$$.dir
12218 mkdir conf$$.dir 2>/dev/null
12219 fi
12220 if (echo >conf$$.file) 2>/dev/null; then
12221 if ln -s conf$$.file conf$$ 2>/dev/null; then
12222 as_ln_s='ln -s'
12223 # ... but there are two gotchas:
12224 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12225 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12226 # In both cases, we have to default to `cp -pR'.
12227 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12228 as_ln_s='cp -pR'
12229 elif ln conf$$.file conf$$ 2>/dev/null; then
12230 as_ln_s=ln
12231 else
12232 as_ln_s='cp -pR'
12233 fi
12234 else
12235 as_ln_s='cp -pR'
12236 fi
12237 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12238 rmdir conf$$.dir 2>/dev/null
12239
12240
12241 # as_fn_mkdir_p
12242 # -------------
12243 # Create "$as_dir" as a directory, including parents if necessary.
12244 as_fn_mkdir_p ()
12245 {
12246
12247 case $as_dir in #(
12248 -*) as_dir=./$as_dir;;
12249 esac
12250 test -d "$as_dir" || eval $as_mkdir_p || {
12251 as_dirs=
12252 while :; do
12253 case $as_dir in #(
12254 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12255 *) as_qdir=$as_dir;;
12256 esac
12257 as_dirs="'$as_qdir' $as_dirs"
12258 as_dir=`$as_dirname -- "$as_dir" ||
12259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12260 X"$as_dir" : 'X\(//\)[^/]' \| \
12261 X"$as_dir" : 'X\(//\)$' \| \
12262 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12263 $as_echo X"$as_dir" |
12264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12265 s//\1/
12266 q
12267 }
12268 /^X\(\/\/\)[^/].*/{
12269 s//\1/
12270 q
12271 }
12272 /^X\(\/\/\)$/{
12273 s//\1/
12274 q
12275 }
12276 /^X\(\/\).*/{
12277 s//\1/
12278 q
12279 }
12280 s/.*/./; q'`
12281 test -d "$as_dir" && break
12282 done
12283 test -z "$as_dirs" || eval "mkdir $as_dirs"
12284 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12285
12286
12287 } # as_fn_mkdir_p
12288 if mkdir -p . 2>/dev/null; then
12289 as_mkdir_p='mkdir -p "$as_dir"'
12290 else
12291 test -d ./-p && rmdir ./-p
12292 as_mkdir_p=false
12293 fi
12294
12295
12296 # as_fn_executable_p FILE
12297 # -----------------------
12298 # Test if FILE is an executable regular file.
12299 as_fn_executable_p ()
12300 {
12301 test -f "$1" && test -x "$1"
12302 } # as_fn_executable_p
12303 as_test_x='test -x'
12304 as_executable_p=as_fn_executable_p
12305
12306 # Sed expression to map a string onto a valid CPP name.
12307 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12308
12309 # Sed expression to map a string onto a valid variable name.
12310 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12311
12312
12313 exec 6>&1
12314 ## ----------------------------------- ##
12315 ## Main body of $CONFIG_STATUS script. ##
12316 ## ----------------------------------- ##
12317 _ASEOF
12318 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12319
12320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12321 # Save the log message, to keep $0 and so on meaningful, and to
12322 # report actual input values of CONFIG_FILES etc. instead of their
12323 # values after options handling.
12324 ac_log="
12325 This file was extended by systemtap $as_me 2.9, which was
12326 generated by GNU Autoconf 2.69. Invocation command line was
12327
12328 CONFIG_FILES = $CONFIG_FILES
12329 CONFIG_HEADERS = $CONFIG_HEADERS
12330 CONFIG_LINKS = $CONFIG_LINKS
12331 CONFIG_COMMANDS = $CONFIG_COMMANDS
12332 $ $0 $@
12333
12334 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12335 "
12336
12337 _ACEOF
12338
12339 case $ac_config_files in *"
12340 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12341 esac
12342
12343 case $ac_config_headers in *"
12344 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12345 esac
12346
12347
12348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12349 # Files that config.status was made for.
12350 config_files="$ac_config_files"
12351 config_headers="$ac_config_headers"
12352 config_commands="$ac_config_commands"
12353
12354 _ACEOF
12355
12356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12357 ac_cs_usage="\
12358 \`$as_me' instantiates files and other configuration actions
12359 from templates according to the current configuration. Unless the files
12360 and actions are specified as TAGs, all are instantiated by default.
12361
12362 Usage: $0 [OPTION]... [TAG]...
12363
12364 -h, --help print this help, then exit
12365 -V, --version print version number and configuration settings, then exit
12366 --config print configuration, then exit
12367 -q, --quiet, --silent
12368 do not print progress messages
12369 -d, --debug don't remove temporary files
12370 --recheck update $as_me by reconfiguring in the same conditions
12371 --file=FILE[:TEMPLATE]
12372 instantiate the configuration file FILE
12373 --header=FILE[:TEMPLATE]
12374 instantiate the configuration header FILE
12375
12376 Configuration files:
12377 $config_files
12378
12379 Configuration headers:
12380 $config_headers
12381
12382 Configuration commands:
12383 $config_commands
12384
12385 Report bugs to <systemtap@sourceware.org>."
12386
12387 _ACEOF
12388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12389 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12390 ac_cs_version="\\
12391 systemtap config.status 2.9
12392 configured by $0, generated by GNU Autoconf 2.69,
12393 with options \\"\$ac_cs_config\\"
12394
12395 Copyright (C) 2012 Free Software Foundation, Inc.
12396 This config.status script is free software; the Free Software Foundation
12397 gives unlimited permission to copy, distribute and modify it."
12398
12399 ac_pwd='$ac_pwd'
12400 srcdir='$srcdir'
12401 INSTALL='$INSTALL'
12402 MKDIR_P='$MKDIR_P'
12403 AWK='$AWK'
12404 test -n "\$AWK" || AWK=awk
12405 _ACEOF
12406
12407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12408 # The default lists apply if the user does not specify any file.
12409 ac_need_defaults=:
12410 while test $# != 0
12411 do
12412 case $1 in
12413 --*=?*)
12414 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12415 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12416 ac_shift=:
12417 ;;
12418 --*=)
12419 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12420 ac_optarg=
12421 ac_shift=:
12422 ;;
12423 *)
12424 ac_option=$1
12425 ac_optarg=$2
12426 ac_shift=shift
12427 ;;
12428 esac
12429
12430 case $ac_option in
12431 # Handling of the options.
12432 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12433 ac_cs_recheck=: ;;
12434 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12435 $as_echo "$ac_cs_version"; exit ;;
12436 --config | --confi | --conf | --con | --co | --c )
12437 $as_echo "$ac_cs_config"; exit ;;
12438 --debug | --debu | --deb | --de | --d | -d )
12439 debug=: ;;
12440 --file | --fil | --fi | --f )
12441 $ac_shift
12442 case $ac_optarg in
12443 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12444 '') as_fn_error $? "missing file argument" ;;
12445 esac
12446 as_fn_append CONFIG_FILES " '$ac_optarg'"
12447 ac_need_defaults=false;;
12448 --header | --heade | --head | --hea )
12449 $ac_shift
12450 case $ac_optarg in
12451 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12452 esac
12453 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12454 ac_need_defaults=false;;
12455 --he | --h)
12456 # Conflict between --help and --header
12457 as_fn_error $? "ambiguous option: \`$1'
12458 Try \`$0 --help' for more information.";;
12459 --help | --hel | -h )
12460 $as_echo "$ac_cs_usage"; exit ;;
12461 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12462 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12463 ac_cs_silent=: ;;
12464
12465 # This is an error.
12466 -*) as_fn_error $? "unrecognized option: \`$1'
12467 Try \`$0 --help' for more information." ;;
12468
12469 *) as_fn_append ac_config_targets " $1"
12470 ac_need_defaults=false ;;
12471
12472 esac
12473 shift
12474 done
12475
12476 ac_configure_extra_args=
12477
12478 if $ac_cs_silent; then
12479 exec 6>/dev/null
12480 ac_configure_extra_args="$ac_configure_extra_args --silent"
12481 fi
12482
12483 _ACEOF
12484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12485 if \$ac_cs_recheck; then
12486 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12487 shift
12488 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12489 CONFIG_SHELL='$SHELL'
12490 export CONFIG_SHELL
12491 exec "\$@"
12492 fi
12493
12494 _ACEOF
12495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12496 exec 5>>config.log
12497 {
12498 echo
12499 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12500 ## Running $as_me. ##
12501 _ASBOX
12502 $as_echo "$ac_log"
12503 } >&5
12504
12505 _ACEOF
12506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12507 #
12508 # INIT-COMMANDS
12509 #
12510 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12511 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12512 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12513 # from automake < 1.5.
12514 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12515 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12516 LINGUAS="${LINGUAS-%UNSET%}"
12517
12518
12519 _ACEOF
12520
12521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12522
12523 # Handling of arguments.
12524 for ac_config_target in $ac_config_targets
12525 do
12526 case $ac_config_target in
12527 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12528 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12529 "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;;
12530 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12531 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12532 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12533 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12534 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12535 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
12536 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
12537 "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;;
12538 "man/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/systemtap.8" ;;
12539 "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;;
12540 "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;;
12541 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
12542 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
12543 "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;;
12544 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
12545 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
12546 "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;;
12547 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
12548 "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;;
12549 "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;;
12550 "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;;
12551 "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;;
12552 "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;;
12553 "staprun/guest/stapsh@.service") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh@.service" ;;
12554 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
12555
12556 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12557 esac
12558 done
12559
12560
12561 # If the user did not use the arguments to specify the items to instantiate,
12562 # then the envvar interface is used. Set only those that are not.
12563 # We use the long form for the default assignment because of an extremely
12564 # bizarre bug on SunOS 4.1.3.
12565 if $ac_need_defaults; then
12566 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12567 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12568 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12569 fi
12570
12571 # Have a temporary directory for convenience. Make it in the build tree
12572 # simply because there is no reason against having it here, and in addition,
12573 # creating and moving files from /tmp can sometimes cause problems.
12574 # Hook for its removal unless debugging.
12575 # Note that there is a small window in which the directory will not be cleaned:
12576 # after its creation but before its name has been assigned to `$tmp'.
12577 $debug ||
12578 {
12579 tmp= ac_tmp=
12580 trap 'exit_status=$?
12581 : "${ac_tmp:=$tmp}"
12582 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12583 ' 0
12584 trap 'as_fn_exit 1' 1 2 13 15
12585 }
12586 # Create a (secure) tmp directory for tmp files.
12587
12588 {
12589 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12590 test -d "$tmp"
12591 } ||
12592 {
12593 tmp=./conf$$-$RANDOM
12594 (umask 077 && mkdir "$tmp")
12595 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12596 ac_tmp=$tmp
12597
12598 # Set up the scripts for CONFIG_FILES section.
12599 # No need to generate them if there are no CONFIG_FILES.
12600 # This happens for instance with `./config.status config.h'.
12601 if test -n "$CONFIG_FILES"; then
12602
12603
12604 ac_cr=`echo X | tr X '\015'`
12605 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12606 # But we know of no other shell where ac_cr would be empty at this
12607 # point, so we can use a bashism as a fallback.
12608 if test "x$ac_cr" = x; then
12609 eval ac_cr=\$\'\\r\'
12610 fi
12611 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12612 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12613 ac_cs_awk_cr='\\r'
12614 else
12615 ac_cs_awk_cr=$ac_cr
12616 fi
12617
12618 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12619 _ACEOF
12620
12621
12622 {
12623 echo "cat >conf$$subs.awk <<_ACEOF" &&
12624 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12625 echo "_ACEOF"
12626 } >conf$$subs.sh ||
12627 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12628 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12629 ac_delim='%!_!# '
12630 for ac_last_try in false false false false false :; do
12631 . ./conf$$subs.sh ||
12632 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12633
12634 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12635 if test $ac_delim_n = $ac_delim_num; then
12636 break
12637 elif $ac_last_try; then
12638 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12639 else
12640 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12641 fi
12642 done
12643 rm -f conf$$subs.sh
12644
12645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12646 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12647 _ACEOF
12648 sed -n '
12649 h
12650 s/^/S["/; s/!.*/"]=/
12651 p
12652 g
12653 s/^[^!]*!//
12654 :repl
12655 t repl
12656 s/'"$ac_delim"'$//
12657 t delim
12658 :nl
12659 h
12660 s/\(.\{148\}\)..*/\1/
12661 t more1
12662 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12663 p
12664 n
12665 b repl
12666 :more1
12667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12668 p
12669 g
12670 s/.\{148\}//
12671 t nl
12672 :delim
12673 h
12674 s/\(.\{148\}\)..*/\1/
12675 t more2
12676 s/["\\]/\\&/g; s/^/"/; s/$/"/
12677 p
12678 b
12679 :more2
12680 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12681 p
12682 g
12683 s/.\{148\}//
12684 t delim
12685 ' <conf$$subs.awk | sed '
12686 /^[^""]/{
12687 N
12688 s/\n//
12689 }
12690 ' >>$CONFIG_STATUS || ac_write_fail=1
12691 rm -f conf$$subs.awk
12692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12693 _ACAWK
12694 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12695 for (key in S) S_is_set[key] = 1
12696 FS = "\a"
12697
12698 }
12699 {
12700 line = $ 0
12701 nfields = split(line, field, "@")
12702 substed = 0
12703 len = length(field[1])
12704 for (i = 2; i < nfields; i++) {
12705 key = field[i]
12706 keylen = length(key)
12707 if (S_is_set[key]) {
12708 value = S[key]
12709 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12710 len += length(value) + length(field[++i])
12711 substed = 1
12712 } else
12713 len += 1 + keylen
12714 }
12715
12716 print line
12717 }
12718
12719 _ACAWK
12720 _ACEOF
12721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12722 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12723 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12724 else
12725 cat
12726 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12727 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12728 _ACEOF
12729
12730 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12731 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12732 # trailing colons and then remove the whole line if VPATH becomes empty
12733 # (actually we leave an empty line to preserve line numbers).
12734 if test "x$srcdir" = x.; then
12735 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12736 h
12737 s///
12738 s/^/:/
12739 s/[ ]*$/:/
12740 s/:\$(srcdir):/:/g
12741 s/:\${srcdir}:/:/g
12742 s/:@srcdir@:/:/g
12743 s/^:*//
12744 s/:*$//
12745 x
12746 s/\(=[ ]*\).*/\1/
12747 G
12748 s/\n//
12749 s/^[^=]*=[ ]*$//
12750 }'
12751 fi
12752
12753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12754 fi # test -n "$CONFIG_FILES"
12755
12756 # Set up the scripts for CONFIG_HEADERS section.
12757 # No need to generate them if there are no CONFIG_HEADERS.
12758 # This happens for instance with `./config.status Makefile'.
12759 if test -n "$CONFIG_HEADERS"; then
12760 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12761 BEGIN {
12762 _ACEOF
12763
12764 # Transform confdefs.h into an awk script `defines.awk', embedded as
12765 # here-document in config.status, that substitutes the proper values into
12766 # config.h.in to produce config.h.
12767
12768 # Create a delimiter string that does not exist in confdefs.h, to ease
12769 # handling of long lines.
12770 ac_delim='%!_!# '
12771 for ac_last_try in false false :; do
12772 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12773 if test -z "$ac_tt"; then
12774 break
12775 elif $ac_last_try; then
12776 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12777 else
12778 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12779 fi
12780 done
12781
12782 # For the awk script, D is an array of macro values keyed by name,
12783 # likewise P contains macro parameters if any. Preserve backslash
12784 # newline sequences.
12785
12786 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12787 sed -n '
12788 s/.\{148\}/&'"$ac_delim"'/g
12789 t rset
12790 :rset
12791 s/^[ ]*#[ ]*define[ ][ ]*/ /
12792 t def
12793 d
12794 :def
12795 s/\\$//
12796 t bsnl
12797 s/["\\]/\\&/g
12798 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12799 D["\1"]=" \3"/p
12800 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12801 d
12802 :bsnl
12803 s/["\\]/\\&/g
12804 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12805 D["\1"]=" \3\\\\\\n"\\/p
12806 t cont
12807 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12808 t cont
12809 d
12810 :cont
12811 n
12812 s/.\{148\}/&'"$ac_delim"'/g
12813 t clear
12814 :clear
12815 s/\\$//
12816 t bsnlc
12817 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12818 d
12819 :bsnlc
12820 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12821 b cont
12822 ' <confdefs.h | sed '
12823 s/'"$ac_delim"'/"\\\
12824 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12825
12826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12827 for (key in D) D_is_set[key] = 1
12828 FS = "\a"
12829 }
12830 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12831 line = \$ 0
12832 split(line, arg, " ")
12833 if (arg[1] == "#") {
12834 defundef = arg[2]
12835 mac1 = arg[3]
12836 } else {
12837 defundef = substr(arg[1], 2)
12838 mac1 = arg[2]
12839 }
12840 split(mac1, mac2, "(") #)
12841 macro = mac2[1]
12842 prefix = substr(line, 1, index(line, defundef) - 1)
12843 if (D_is_set[macro]) {
12844 # Preserve the white space surrounding the "#".
12845 print prefix "define", macro P[macro] D[macro]
12846 next
12847 } else {
12848 # Replace #undef with comments. This is necessary, for example,
12849 # in the case of _POSIX_SOURCE, which is predefined and required
12850 # on some systems where configure will not decide to define it.
12851 if (defundef == "undef") {
12852 print "/*", prefix defundef, macro, "*/"
12853 next
12854 }
12855 }
12856 }
12857 { print }
12858 _ACAWK
12859 _ACEOF
12860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12861 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12862 fi # test -n "$CONFIG_HEADERS"
12863
12864
12865 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12866 shift
12867 for ac_tag
12868 do
12869 case $ac_tag in
12870 :[FHLC]) ac_mode=$ac_tag; continue;;
12871 esac
12872 case $ac_mode$ac_tag in
12873 :[FHL]*:*);;
12874 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12875 :[FH]-) ac_tag=-:-;;
12876 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12877 esac
12878 ac_save_IFS=$IFS
12879 IFS=:
12880 set x $ac_tag
12881 IFS=$ac_save_IFS
12882 shift
12883 ac_file=$1
12884 shift
12885
12886 case $ac_mode in
12887 :L) ac_source=$1;;
12888 :[FH])
12889 ac_file_inputs=
12890 for ac_f
12891 do
12892 case $ac_f in
12893 -) ac_f="$ac_tmp/stdin";;
12894 *) # Look for the file first in the build tree, then in the source tree
12895 # (if the path is not absolute). The absolute path cannot be DOS-style,
12896 # because $ac_f cannot contain `:'.
12897 test -f "$ac_f" ||
12898 case $ac_f in
12899 [\\/$]*) false;;
12900 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12901 esac ||
12902 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12903 esac
12904 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12905 as_fn_append ac_file_inputs " '$ac_f'"
12906 done
12907
12908 # Let's still pretend it is `configure' which instantiates (i.e., don't
12909 # use $as_me), people would be surprised to read:
12910 # /* config.h. Generated by config.status. */
12911 configure_input='Generated from '`
12912 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12913 `' by configure.'
12914 if test x"$ac_file" != x-; then
12915 configure_input="$ac_file. $configure_input"
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12917 $as_echo "$as_me: creating $ac_file" >&6;}
12918 fi
12919 # Neutralize special characters interpreted by sed in replacement strings.
12920 case $configure_input in #(
12921 *\&* | *\|* | *\\* )
12922 ac_sed_conf_input=`$as_echo "$configure_input" |
12923 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12924 *) ac_sed_conf_input=$configure_input;;
12925 esac
12926
12927 case $ac_tag in
12928 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12929 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12930 esac
12931 ;;
12932 esac
12933
12934 ac_dir=`$as_dirname -- "$ac_file" ||
12935 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12936 X"$ac_file" : 'X\(//\)[^/]' \| \
12937 X"$ac_file" : 'X\(//\)$' \| \
12938 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12939 $as_echo X"$ac_file" |
12940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12941 s//\1/
12942 q
12943 }
12944 /^X\(\/\/\)[^/].*/{
12945 s//\1/
12946 q
12947 }
12948 /^X\(\/\/\)$/{
12949 s//\1/
12950 q
12951 }
12952 /^X\(\/\).*/{
12953 s//\1/
12954 q
12955 }
12956 s/.*/./; q'`
12957 as_dir="$ac_dir"; as_fn_mkdir_p
12958 ac_builddir=.
12959
12960 case "$ac_dir" in
12961 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12962 *)
12963 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12964 # A ".." for each directory in $ac_dir_suffix.
12965 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12966 case $ac_top_builddir_sub in
12967 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12968 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12969 esac ;;
12970 esac
12971 ac_abs_top_builddir=$ac_pwd
12972 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12973 # for backward compatibility:
12974 ac_top_builddir=$ac_top_build_prefix
12975
12976 case $srcdir in
12977 .) # We are building in place.
12978 ac_srcdir=.
12979 ac_top_srcdir=$ac_top_builddir_sub
12980 ac_abs_top_srcdir=$ac_pwd ;;
12981 [\\/]* | ?:[\\/]* ) # Absolute name.
12982 ac_srcdir=$srcdir$ac_dir_suffix;
12983 ac_top_srcdir=$srcdir
12984 ac_abs_top_srcdir=$srcdir ;;
12985 *) # Relative name.
12986 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12987 ac_top_srcdir=$ac_top_build_prefix$srcdir
12988 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12989 esac
12990 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12991
12992
12993 case $ac_mode in
12994 :F)
12995 #
12996 # CONFIG_FILE
12997 #
12998
12999 case $INSTALL in
13000 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13001 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13002 esac
13003 ac_MKDIR_P=$MKDIR_P
13004 case $MKDIR_P in
13005 [\\/$]* | ?:[\\/]* ) ;;
13006 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13007 esac
13008 _ACEOF
13009
13010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13011 # If the template does not know about datarootdir, expand it.
13012 # FIXME: This hack should be removed a few years after 2.60.
13013 ac_datarootdir_hack=; ac_datarootdir_seen=
13014 ac_sed_dataroot='
13015 /datarootdir/ {
13016 p
13017 q
13018 }
13019 /@datadir@/p
13020 /@docdir@/p
13021 /@infodir@/p
13022 /@localedir@/p
13023 /@mandir@/p'
13024 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13025 *datarootdir*) ac_datarootdir_seen=yes;;
13026 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13028 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13029 _ACEOF
13030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13031 ac_datarootdir_hack='
13032 s&@datadir@&$datadir&g
13033 s&@docdir@&$docdir&g
13034 s&@infodir@&$infodir&g
13035 s&@localedir@&$localedir&g
13036 s&@mandir@&$mandir&g
13037 s&\\\${datarootdir}&$datarootdir&g' ;;
13038 esac
13039 _ACEOF
13040
13041 # Neutralize VPATH when `$srcdir' = `.'.
13042 # Shell code in configure.ac might set extrasub.
13043 # FIXME: do we really want to maintain this feature?
13044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13045 ac_sed_extra="$ac_vpsub
13046 $extrasub
13047 _ACEOF
13048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13049 :t
13050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13051 s|@configure_input@|$ac_sed_conf_input|;t t
13052 s&@top_builddir@&$ac_top_builddir_sub&;t t
13053 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13054 s&@srcdir@&$ac_srcdir&;t t
13055 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13056 s&@top_srcdir@&$ac_top_srcdir&;t t
13057 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13058 s&@builddir@&$ac_builddir&;t t
13059 s&@abs_builddir@&$ac_abs_builddir&;t t
13060 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13061 s&@INSTALL@&$ac_INSTALL&;t t
13062 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13063 $ac_datarootdir_hack
13064 "
13065 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13066 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13067
13068 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13069 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13070 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13071 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13073 which seems to be undefined. Please make sure it is defined" >&5
13074 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13075 which seems to be undefined. Please make sure it is defined" >&2;}
13076
13077 rm -f "$ac_tmp/stdin"
13078 case $ac_file in
13079 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13080 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13081 esac \
13082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13083 ;;
13084 :H)
13085 #
13086 # CONFIG_HEADER
13087 #
13088 if test x"$ac_file" != x-; then
13089 {
13090 $as_echo "/* $configure_input */" \
13091 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13092 } >"$ac_tmp/config.h" \
13093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13094 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13096 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13097 else
13098 rm -f "$ac_file"
13099 mv "$ac_tmp/config.h" "$ac_file" \
13100 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13101 fi
13102 else
13103 $as_echo "/* $configure_input */" \
13104 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13105 || as_fn_error $? "could not create -" "$LINENO" 5
13106 fi
13107 # Compute "$ac_file"'s index in $config_headers.
13108 _am_arg="$ac_file"
13109 _am_stamp_count=1
13110 for _am_header in $config_headers :; do
13111 case $_am_header in
13112 $_am_arg | $_am_arg:* )
13113 break ;;
13114 * )
13115 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13116 esac
13117 done
13118 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13119 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13120 X"$_am_arg" : 'X\(//\)[^/]' \| \
13121 X"$_am_arg" : 'X\(//\)$' \| \
13122 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13123 $as_echo X"$_am_arg" |
13124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13125 s//\1/
13126 q
13127 }
13128 /^X\(\/\/\)[^/].*/{
13129 s//\1/
13130 q
13131 }
13132 /^X\(\/\/\)$/{
13133 s//\1/
13134 q
13135 }
13136 /^X\(\/\).*/{
13137 s//\1/
13138 q
13139 }
13140 s/.*/./; q'`/stamp-h$_am_stamp_count
13141 ;;
13142
13143 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13144 $as_echo "$as_me: executing $ac_file commands" >&6;}
13145 ;;
13146 esac
13147
13148
13149 case $ac_file$ac_mode in
13150 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13151 # Older Autoconf quotes --file arguments for eval, but not when files
13152 # are listed without --file. Let's play safe and only enable the eval
13153 # if we detect the quoting.
13154 case $CONFIG_FILES in
13155 *\'*) eval set x "$CONFIG_FILES" ;;
13156 *) set x $CONFIG_FILES ;;
13157 esac
13158 shift
13159 for mf
13160 do
13161 # Strip MF so we end up with the name of the file.
13162 mf=`echo "$mf" | sed -e 's/:.*$//'`
13163 # Check whether this is an Automake generated Makefile or not.
13164 # We used to match only the files named 'Makefile.in', but
13165 # some people rename them; so instead we look at the file content.
13166 # Grep'ing the first line is not enough: some people post-process
13167 # each Makefile.in and add a new line on top of each file to say so.
13168 # Grep'ing the whole file is not good either: AIX grep has a line
13169 # limit of 2048, but all sed's we know have understand at least 4000.
13170 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13171 dirpart=`$as_dirname -- "$mf" ||
13172 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13173 X"$mf" : 'X\(//\)[^/]' \| \
13174 X"$mf" : 'X\(//\)$' \| \
13175 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13176 $as_echo X"$mf" |
13177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13178 s//\1/
13179 q
13180 }
13181 /^X\(\/\/\)[^/].*/{
13182 s//\1/
13183 q
13184 }
13185 /^X\(\/\/\)$/{
13186 s//\1/
13187 q
13188 }
13189 /^X\(\/\).*/{
13190 s//\1/
13191 q
13192 }
13193 s/.*/./; q'`
13194 else
13195 continue
13196 fi
13197 # Extract the definition of DEPDIR, am__include, and am__quote
13198 # from the Makefile without running 'make'.
13199 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13200 test -z "$DEPDIR" && continue
13201 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13202 test -z "$am__include" && continue
13203 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13204 # Find all dependency output files, they are included files with
13205 # $(DEPDIR) in their names. We invoke sed twice because it is the
13206 # simplest approach to changing $(DEPDIR) to its actual value in the
13207 # expansion.
13208 for file in `sed -n "
13209 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13210 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13211 # Make sure the directory exists.
13212 test -f "$dirpart/$file" && continue
13213 fdir=`$as_dirname -- "$file" ||
13214 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13215 X"$file" : 'X\(//\)[^/]' \| \
13216 X"$file" : 'X\(//\)$' \| \
13217 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13218 $as_echo X"$file" |
13219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13220 s//\1/
13221 q
13222 }
13223 /^X\(\/\/\)[^/].*/{
13224 s//\1/
13225 q
13226 }
13227 /^X\(\/\/\)$/{
13228 s//\1/
13229 q
13230 }
13231 /^X\(\/\).*/{
13232 s//\1/
13233 q
13234 }
13235 s/.*/./; q'`
13236 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13237 # echo "creating $dirpart/$file"
13238 echo '# dummy' > "$dirpart/$file"
13239 done
13240 done
13241 }
13242 ;;
13243 "po-directories":C)
13244 for ac_file in $CONFIG_FILES; do
13245 # Support "outfile[:infile[:infile...]]"
13246 case "$ac_file" in
13247 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13248 esac
13249 # PO directories have a Makefile.in generated from Makefile.in.in.
13250 case "$ac_file" in */Makefile.in)
13251 # Adjust a relative srcdir.
13252 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13253 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
13254 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13255 # In autoconf-2.13 it is called $ac_given_srcdir.
13256 # In autoconf-2.50 it is called $srcdir.
13257 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13258 case "$ac_given_srcdir" in
13259 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13260 /*) top_srcdir="$ac_given_srcdir" ;;
13261 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13262 esac
13263 # Treat a directory as a PO directory if and only if it has a
13264 # POTFILES.in file. This allows packages to have multiple PO
13265 # directories under different names or in different locations.
13266 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13267 rm -f "$ac_dir/POTFILES"
13268 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13269 gt_tab=`printf '\t'`
13270 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"
13271 POMAKEFILEDEPS="POTFILES.in"
13272 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13273 # on $ac_dir but don't depend on user-specified configuration
13274 # parameters.
13275 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13276 # The LINGUAS file contains the set of available languages.
13277 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13278 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13279 fi
13280 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13281 # Hide the ALL_LINGUAS assignment from automake < 1.5.
13282 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13283 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13284 else
13285 # The set of available languages was given in configure.in.
13286 # Hide the ALL_LINGUAS assignment from automake < 1.5.
13287 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13288 fi
13289 # Compute POFILES
13290 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13291 # Compute UPDATEPOFILES
13292 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13293 # Compute DUMMYPOFILES
13294 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13295 # Compute GMOFILES
13296 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13297 case "$ac_given_srcdir" in
13298 .) srcdirpre= ;;
13299 *) srcdirpre='$(srcdir)/' ;;
13300 esac
13301 POFILES=
13302 UPDATEPOFILES=
13303 DUMMYPOFILES=
13304 GMOFILES=
13305 for lang in $ALL_LINGUAS; do
13306 POFILES="$POFILES $srcdirpre$lang.po"
13307 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13308 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13309 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13310 done
13311 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13312 # environment variable.
13313 INST_LINGUAS=
13314 if test -n "$ALL_LINGUAS"; then
13315 for presentlang in $ALL_LINGUAS; do
13316 useit=no
13317 if test "%UNSET%" != "$LINGUAS"; then
13318 desiredlanguages="$LINGUAS"
13319 else
13320 desiredlanguages="$ALL_LINGUAS"
13321 fi
13322 for desiredlang in $desiredlanguages; do
13323 # Use the presentlang catalog if desiredlang is
13324 # a. equal to presentlang, or
13325 # b. a variant of presentlang (because in this case,
13326 # presentlang can be used as a fallback for messages
13327 # which are not translated in the desiredlang catalog).
13328 case "$desiredlang" in
13329 "$presentlang"*) useit=yes;;
13330 esac
13331 done
13332 if test $useit = yes; then
13333 INST_LINGUAS="$INST_LINGUAS $presentlang"
13334 fi
13335 done
13336 fi
13337 CATALOGS=
13338 if test -n "$INST_LINGUAS"; then
13339 for lang in $INST_LINGUAS; do
13340 CATALOGS="$CATALOGS $lang.gmo"
13341 done
13342 fi
13343 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13344 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"
13345 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13346 if test -f "$f"; then
13347 case "$f" in
13348 *.orig | *.bak | *~) ;;
13349 *) cat "$f" >> "$ac_dir/Makefile" ;;
13350 esac
13351 fi
13352 done
13353 fi
13354 ;;
13355 esac
13356 done ;;
13357 "run-stap":F) chmod +x run-stap ;;
13358 "dtrace":F) chmod +x dtrace ;;
13359 "java/stapbm":F) chmod +x java/stapbm ;;
13360 "staprun/run-staprun":F) chmod +x staprun/run-staprun ;;
13361 "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;;
13362 "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;;
13363 "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 ;;
13364
13365 esac
13366 done # for ac_tag
13367
13368
13369 as_fn_exit 0
13370 _ACEOF
13371 ac_clean_files=$ac_clean_files_save
13372
13373 test $ac_write_fail = 0 ||
13374 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13375
13376
13377 # configure is writing to config.log, and then calls config.status.
13378 # config.status does its own redirection, appending to config.log.
13379 # Unfortunately, on DOS this fails, as config.log is still kept open
13380 # by configure, so config.status won't be able to write to it; its
13381 # output is simply discarded. So we exec the FD to /dev/null,
13382 # effectively closing config.log, so it can be properly (re)opened and
13383 # appended to by config.status. When coming back to configure, we
13384 # need to make the FD available again.
13385 if test "$no_create" != yes; then
13386 ac_cs_success=:
13387 ac_config_status_args=
13388 test "$silent" = yes &&
13389 ac_config_status_args="$ac_config_status_args --quiet"
13390 exec 5>/dev/null
13391 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13392 exec 5>>config.log
13393 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13394 # would make configure fail if this is the last instruction.
13395 $ac_cs_success || as_fn_exit 1
13396 fi
13397
13398 #
13399 # CONFIG_SUBDIRS section.
13400 #
13401 if test "$no_recursion" != yes; then
13402
13403 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
13404 # so they do not pile up.
13405 ac_sub_configure_args=
13406 ac_prev=
13407 eval "set x $ac_configure_args"
13408 shift
13409 for ac_arg
13410 do
13411 if test -n "$ac_prev"; then
13412 ac_prev=
13413 continue
13414 fi
13415 case $ac_arg in
13416 -cache-file | --cache-file | --cache-fil | --cache-fi \
13417 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13418 ac_prev=cache_file ;;
13419 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13420 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13421 | --c=*)
13422 ;;
13423 --config-cache | -C)
13424 ;;
13425 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13426 ac_prev=srcdir ;;
13427 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13428 ;;
13429 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13430 ac_prev=prefix ;;
13431 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13432 ;;
13433 --disable-option-checking)
13434 ;;
13435 *)
13436 case $ac_arg in
13437 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13438 esac
13439 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
13440 esac
13441 done
13442
13443 # Always prepend --prefix to ensure using the same prefix
13444 # in subdir configurations.
13445 ac_arg="--prefix=$prefix"
13446 case $ac_arg in
13447 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13448 esac
13449 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
13450
13451 # Pass --silent
13452 if test "$silent" = yes; then
13453 ac_sub_configure_args="--silent $ac_sub_configure_args"
13454 fi
13455
13456 # Always prepend --disable-option-checking to silence warnings, since
13457 # different subdirs can have different --enable and --with options.
13458 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
13459
13460 ac_popdir=`pwd`
13461 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13462
13463 # Do not complain, so a configure script can configure whichever
13464 # parts of a large source tree are present.
13465 test -d "$srcdir/$ac_dir" || continue
13466
13467 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
13468 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
13469 $as_echo "$ac_msg" >&6
13470 as_dir="$ac_dir"; as_fn_mkdir_p
13471 ac_builddir=.
13472
13473 case "$ac_dir" in
13474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13475 *)
13476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13477 # A ".." for each directory in $ac_dir_suffix.
13478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13479 case $ac_top_builddir_sub in
13480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13482 esac ;;
13483 esac
13484 ac_abs_top_builddir=$ac_pwd
13485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13486 # for backward compatibility:
13487 ac_top_builddir=$ac_top_build_prefix
13488
13489 case $srcdir in
13490 .) # We are building in place.
13491 ac_srcdir=.
13492 ac_top_srcdir=$ac_top_builddir_sub
13493 ac_abs_top_srcdir=$ac_pwd ;;
13494 [\\/]* | ?:[\\/]* ) # Absolute name.
13495 ac_srcdir=$srcdir$ac_dir_suffix;
13496 ac_top_srcdir=$srcdir
13497 ac_abs_top_srcdir=$srcdir ;;
13498 *) # Relative name.
13499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13500 ac_top_srcdir=$ac_top_build_prefix$srcdir
13501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13502 esac
13503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13504
13505
13506 cd "$ac_dir"
13507
13508 # Check for guested configure; otherwise get Cygnus style configure.
13509 if test -f "$ac_srcdir/configure.gnu"; then
13510 ac_sub_configure=$ac_srcdir/configure.gnu
13511 elif test -f "$ac_srcdir/configure"; then
13512 ac_sub_configure=$ac_srcdir/configure
13513 elif test -f "$ac_srcdir/configure.in"; then
13514 # This should be Cygnus configure.
13515 ac_sub_configure=$ac_aux_dir/configure
13516 else
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
13518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13519 ac_sub_configure=
13520 fi
13521
13522 # The recursion is here.
13523 if test -n "$ac_sub_configure"; then
13524 # Make the cache file name correct relative to the subdirectory.
13525 case $cache_file in
13526 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13527 *) # Relative name.
13528 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
13529 esac
13530
13531 { $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
13532 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13533 # The eval makes quoting arguments work.
13534 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13535 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13536 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
13537 fi
13538
13539 cd "$ac_popdir"
13540 done
13541 fi
13542 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13544 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13545 fi
13546
13547
13548 if test "${prefix}" = "/usr/local"; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
13550 $as_echo "$as_me: " >&6;}
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
13552 $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
13554 $as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
13556 $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
13558 $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5
13560 $as_echo "$as_me: is not supported." >&6;}
13561 fi
This page took 0.697565 seconds and 6 git commands to generate.